blob: 6699d673438af42739f9e2fecd3ffc2e549418fa [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencera773bd52006-08-04 18:18:08 +00003# Generated by GNU Autoconf 2.60 for llvm 1.9cvs.
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#
John Criswellc0c186d2005-11-08 21:11:33 +000012# Copyright (c) 2003-2005 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 Spencer1bc68642006-07-27 23:00:30 +0000718PACKAGE_VERSION='1.9cvs'
719PACKAGE_STRING='llvm 1.9cvs'
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
833DEBUG_RUNTIME
834JIT
835TARGET_HAS_JIT
836ENABLE_DOXYGEN
837ENABLE_THREADS
838TARGETS_TO_BUILD
839EXTRA_OPTIONS
840CXX
841CXXFLAGS
842ac_ct_CXX
843LEX
844LEXLIB
845LEX_OUTPUT_ROOT
846FLEX
847YACC
848YFLAGS
849BISON
850NM
851ifGNUmake
852LN_S
853CMP
854CP
855DATE
856FIND
857MKDIR
858MV
859RANLIB
860RM
861SED
862TAR
863BINPWD
864GRAPHVIZ
865DOT
866GV
867DOTTY
868PERL
869HAVE_PERL
870INSTALL_PROGRAM
871INSTALL_SCRIPT
872INSTALL_DATA
873BZIP2
874DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000875GROFF
876GZIP
877POD2HTML
878POD2MAN
879RUNTEST
880TCLSH
881ZIP
882INSTALL_LTDL_TRUE
883INSTALL_LTDL_FALSE
884CONVENIENCE_LTDL_TRUE
885CONVENIENCE_LTDL_FALSE
886LIBADD_DL
887ECHO
888AR
889STRIP
890CXXCPP
891F77
892FFLAGS
893ac_ct_F77
894LIBTOOL
895ETAGSFLAGS
896LLVMGCC
897LLVMGXX
Reid Spencerb2ed05262006-11-03 18:04:08 +0000898HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000899ALLOCA
900MMAP_FILE
901LLVMCC1
902LLVMCC1PLUS
903LLVMGCCDIR
904LLVMGCC_VERSION
905LLVMGCC_MAJVERS
906SHLIBEXT
907LLVM_PREFIX
908LLVM_BINDIR
909LLVM_LIBDIR
910LLVM_DATADIR
911LLVM_DOCSDIR
912LLVM_ETCDIR
913LLVM_INCLUDEDIR
914LLVM_INFODIR
915LLVM_MANDIR
916LLVM_CONFIGTIME
917LIBOBJS
918LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000919ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000920 ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926CPPFLAGS
927CPP
928CXX
929CXXFLAGS
930CCC
931YACC
932YFLAGS
933CXXCPP
934F77
935FFLAGS'
936ac_subdirs_all='projects/sample
937projects/Stacker
938projects/privbracket
939projects/llvm-test
940projects/llvm-reopt
941projects/llvm-gcc
942projects/llvm-java
943projects/llvm-tv
944projects/llvm-poolalloc
945projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000946
947# Initialize some variables set by options.
948ac_init_help=
949ac_init_version=false
950# The variables have the same names as the options, with
951# dashes changed to underlines.
952cache_file=/dev/null
953exec_prefix=NONE
954no_create=
955no_recursion=
956prefix=NONE
957program_prefix=NONE
958program_suffix=NONE
959program_transform_name=s,x,x,
960silent=
961site=
962srcdir=
963verbose=
964x_includes=NONE
965x_libraries=NONE
966
967# Installation directory options.
968# These are left unexpanded so users can "make install exec_prefix=/foo"
969# and all the variables that are supposed to be based on exec_prefix
970# by default will actually change.
971# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000972# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000973bindir='${exec_prefix}/bin'
974sbindir='${exec_prefix}/sbin'
975libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000976datarootdir='${prefix}/share'
977datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000978sysconfdir='${prefix}/etc'
979sharedstatedir='${prefix}/com'
980localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000981includedir='${prefix}/include'
982oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000983docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984infodir='${datarootdir}/info'
985htmldir='${docdir}'
986dvidir='${docdir}'
987pdfdir='${docdir}'
988psdir='${docdir}'
989libdir='${exec_prefix}/lib'
990localedir='${datarootdir}/locale'
991mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000992
993ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000994ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000995for ac_option
996do
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000999 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001000 ac_prev=
1001 continue
1002 fi
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 case $ac_option in
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *) ac_optarg=yes ;;
1007 esac
John Criswell7a73b802003-06-30 21:59:07 +00001008
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1010
Reid Spencera773bd52006-08-04 18:18:08 +00001011 case $ac_dashdash$ac_option in
1012 --)
1013 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001014
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1019
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1024
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1031
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1034
Reid Spencera773bd52006-08-04 18:18:08 +00001035 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001036 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001038 datadir=$ac_optarg ;;
1039
Reid Spencera773bd52006-08-04 18:18:08 +00001040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1046
John Criswell7a73b802003-06-30 21:59:07 +00001047 -disable-* | --disable-*)
1048 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001054 eval enable_$ac_feature=no ;;
1055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001065
1066 -enable-* | --enable-*)
1067 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001073 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001074
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1083
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1086 with_gas=yes ;;
1087
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1094
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1099
Reid Spencera773bd52006-08-04 18:18:08 +00001100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101 ac_prev=htmldir ;;
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103 | --ht=*)
1104 htmldir=$ac_optarg ;;
1105
John Criswell7a73b802003-06-30 21:59:07 +00001106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1112
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1114 ac_prev=infodir ;;
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1117
1118 -libdir | --libdir | --libdi | --libd)
1119 ac_prev=libdir ;;
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1122
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1129
Reid Spencera773bd52006-08-04 18:18:08 +00001130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1134
John Criswell7a73b802003-06-30 21:59:07 +00001135 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001136 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001140 localstatedir=$ac_optarg ;;
1141
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143 ac_prev=mandir ;;
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1146
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1149 with_fp=no ;;
1150
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1153 no_create=yes ;;
1154
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 no_recursion=yes ;;
1158
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1167
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169 ac_prev=prefix ;;
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1172
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1179
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1186
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1203
Reid Spencera773bd52006-08-04 18:18:08 +00001204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205 ac_prev=pdfdir ;;
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1208
1209 -psdir | --psdir | --psdi | --psd | --ps)
1210 ac_prev=psdir ;;
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 psdir=$ac_optarg ;;
1213
John Criswell7a73b802003-06-30 21:59:07 +00001214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 silent=yes ;;
1217
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 ac_prev=sbindir ;;
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 | --sbi=* | --sb=*)
1222 sbindir=$ac_optarg ;;
1223
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1227 | --sha | --sh)
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 | --sha=* | --sh=*)
1233 sharedstatedir=$ac_optarg ;;
1234
1235 -site | --site | --sit)
1236 ac_prev=site ;;
1237 -site=* | --site=* | --sit=*)
1238 site=$ac_optarg ;;
1239
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 ac_prev=srcdir ;;
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1244
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1251
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1256
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 verbose=yes ;;
1259
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1262
1263 -with-* | --with-*)
1264 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid package name: $ac_package" >&2
1268 { (exit 1); exit 1; }; }
1269 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001270 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001271
1272 -without-* | --without-*)
1273 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1298
1299 -*) { echo "$as_me: error: unrecognized option: $ac_option
1300Try \`$0 --help' for more information." >&2
1301 { (exit 1); exit 1; }; }
1302 ;;
1303
1304 *=*)
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1308 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1309 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001310 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001311 export $ac_envvar ;;
1312
1313 *)
1314 # FIXME: should be removed in autoconf 3.0.
1315 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1319 ;;
1320
1321 esac
1322done
1323
1324if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 { echo "$as_me: error: missing argument to $ac_option" >&2
1327 { (exit 1); exit 1; }; }
1328fi
1329
Reid Spencera773bd52006-08-04 18:18:08 +00001330# Be sure to have absolute directory names.
1331for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001335do
Reid Spencera773bd52006-08-04 18:18:08 +00001336 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001337 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001340 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001341 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1342 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001343done
1344
1345# There might be people who depend on the old broken behavior: `$host'
1346# used to hold the argument of --host etc.
1347# FIXME: To remove some day.
1348build=$build_alias
1349host=$host_alias
1350target=$target_alias
1351
1352# FIXME: To remove some day.
1353if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used." >&2
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361fi
1362
1363ac_tool_prefix=
1364test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366test "$silent" = yes && exec 6>/dev/null
1367
1368
Reid Spencera773bd52006-08-04 18:18:08 +00001369ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370ac_ls_di=`ls -di .` &&
1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 { echo "$as_me: error: Working directory cannot be determined" >&2
1373 { (exit 1); exit 1; }; }
1374test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 { echo "$as_me: error: pwd does not report name of working directory" >&2
1376 { (exit 1); exit 1; }; }
1377
1378
John Criswell7a73b802003-06-30 21:59:07 +00001379# Find the source files, if location was not specified.
1380if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001384$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001385 X"$0" : 'X\(//\)[^/]' \| \
1386 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001388echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)[^/].*/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\).*/{
1402 s//\1/
1403 q
1404 }
1405 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001406 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001407 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001408 srcdir=..
1409 fi
1410else
1411 ac_srcdir_defaulted=no
1412fi
Reid Spencera773bd52006-08-04 18:18:08 +00001413if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001416 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001417fi
Reid Spencera773bd52006-08-04 18:18:08 +00001418ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419ac_abs_confdir=`(
1420 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001421 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001422 pwd)`
1423# When building in place, set srcdir=.
1424if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426fi
1427# Remove unnecessary trailing slashes from srcdir.
1428# Double slashes in file names in object file debugging info
1429# mess up M-x gdb in Emacs.
1430case $srcdir in
1431*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432esac
1433for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438done
John Criswell7a73b802003-06-30 21:59:07 +00001439
1440#
1441# Report the --help message.
1442#
1443if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1446 cat <<_ACEOF
Reid Spencer1bc68642006-07-27 23:00:30 +00001447\`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001448
1449Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452VAR=VALUE. See below for descriptions of some of the useful variables.
1453
1454Defaults for the options are specified in brackets.
1455
1456Configuration:
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466
John Criswell7a73b802003-06-30 21:59:07 +00001467Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001472
1473By default, \`make install' will install all the files in
1474\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476for instance \`--prefix=\$HOME'.
1477
1478For better control, use the options below.
1479
1480Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001500_ACEOF
1501
1502 cat <<\_ACEOF
1503
1504System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508_ACEOF
1509fi
1510
1511if test -n "$ac_init_help"; then
1512 case $ac_init_help in
Reid Spencer1bc68642006-07-27 23:00:30 +00001513 short | recursive ) echo "Configuration of llvm 1.9cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001514 esac
1515 cat <<\_ACEOF
1516
1517Optional Features:
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001520 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001521 --enable-assertions
Reid Spencer6e96d812005-12-21 03:31:53 +00001522 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001523 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001524 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001525 --enable-threads Use threads if available (default is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001526 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001527 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001528 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001529 --enable-shared[=PKGS] build shared libraries
1530 [default=enable_shared_default]
1531 --enable-static[=PKGS] build static libraries
1532 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001533 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001534 optimize for fast installation
1535 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001536 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001537
1538Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001541 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1542 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001543 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001544 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 --with-pic try to use only PIC/non-PIC objects [default=use
1547 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001548 --with-tags[=TAGS] include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001549
1550Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001551 CC C compiler command
1552 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001555 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001557 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001558 CXX C++ compiler command
1559 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001560 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1561 the first program found out of: `bison -y', `byacc', `yacc'.
1562 YFLAGS The list of arguments that will be passed by default to $YACC.
1563 This script will default YFLAGS to the empty string to avoid a
1564 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001565 CXXCPP C++ preprocessor
1566 F77 Fortran 77 compiler command
1567 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001568
1569Use these variables to override the choices made by `configure' or to help
1570it to find libraries and programs with nonstandard names/locations.
1571
1572Report bugs to <llvmbugs@cs.uiuc.edu>.
1573_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001574ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001575fi
1576
1577if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001580 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001581 ac_builddir=.
1582
Reid Spencera773bd52006-08-04 18:18:08 +00001583case "$ac_dir" in
1584.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585*)
John Criswell7a73b802003-06-30 21:59:07 +00001586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001587 # A ".." for each directory in $ac_dir_suffix.
1588 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1589 case $ac_top_builddir_sub in
1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 esac ;;
1593esac
1594ac_abs_top_builddir=$ac_pwd
1595ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596# for backward compatibility:
1597ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001598
1599case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001600 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001601 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001602 ac_top_srcdir=$ac_top_builddir_sub
1603 ac_abs_top_srcdir=$ac_pwd ;;
1604 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001605 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001606 ac_top_srcdir=$srcdir
1607 ac_abs_top_srcdir=$srcdir ;;
1608 *) # Relative name.
1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610 ac_top_srcdir=$ac_top_build_prefix$srcdir
1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001612esac
Reid Spencera773bd52006-08-04 18:18:08 +00001613ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001614
Reid Spencera773bd52006-08-04 18:18:08 +00001615 cd "$ac_dir" || { ac_status=$?; continue; }
1616 # Check for guested configure.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001623 else
1624 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001625 fi || ac_status=$?
1626 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001627 done
1628fi
1629
Reid Spencera773bd52006-08-04 18:18:08 +00001630test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001631if $ac_init_version; then
1632 cat <<\_ACEOF
Reid Spencer1bc68642006-07-27 23:00:30 +00001633llvm configure 1.9cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001634generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001635
Reid Spencera773bd52006-08-04 18:18:08 +00001636Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16372002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001638This configure script is free software; the Free Software Foundation
1639gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001640
John Criswellc0c186d2005-11-08 21:11:33 +00001641Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001642_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001643 exit
John Criswell7a73b802003-06-30 21:59:07 +00001644fi
Reid Spencera773bd52006-08-04 18:18:08 +00001645cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001646This file contains any messages produced by compilers while
1647running configure, to aid debugging if configure makes a mistake.
1648
Reid Spencer1bc68642006-07-27 23:00:30 +00001649It was created by llvm $as_me 1.9cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001650generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001651
1652 $ $0 $@
1653
1654_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001655exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001656{
1657cat <<_ASUNAME
1658## --------- ##
1659## Platform. ##
1660## --------- ##
1661
1662hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1663uname -m = `(uname -m) 2>/dev/null || echo unknown`
1664uname -r = `(uname -r) 2>/dev/null || echo unknown`
1665uname -s = `(uname -s) 2>/dev/null || echo unknown`
1666uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667
1668/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1669/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1670
1671/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1672/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1673/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001674/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001675/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1676/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1677/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1678
1679_ASUNAME
1680
1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 echo "PATH: $as_dir"
1687done
Reid Spencera773bd52006-08-04 18:18:08 +00001688IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001689
1690} >&5
1691
1692cat >&5 <<_ACEOF
1693
1694
1695## ----------- ##
1696## Core tests. ##
1697## ----------- ##
1698
1699_ACEOF
1700
1701
1702# Keep a trace of the command line.
1703# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001704# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001705# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001706# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001707ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001708ac_configure_args0=
1709ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001710ac_must_keep_next=false
1711for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001712do
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 for ac_arg
1714 do
1715 case $ac_arg in
1716 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1718 | -silent | --silent | --silen | --sile | --sil)
1719 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001720 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1722 esac
1723 case $ac_pass in
1724 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 2)
1726 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1727 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001728 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001729 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001730 case $ac_arg in
1731 *=* | --config-cache | -C | -disable-* | --disable-* \
1732 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1733 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1734 | -with-* | --with-* | -without-* | --without-* | --x)
1735 case "$ac_configure_args0 " in
1736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737 esac
1738 ;;
1739 -* ) ac_must_keep_next=true ;;
1740 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001741 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001742 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ;;
1744 esac
1745 done
John Criswell7a73b802003-06-30 21:59:07 +00001746done
John Criswell0c38eaf2003-09-10 15:17:25 +00001747$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1748$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 +00001749
1750# When interrupted or exit'd, cleanup temporary files, and complete
1751# config.log. We remove comments because anyway the quotes in there
1752# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001753# WARNING: Use '\'' to represent an apostrophe within the trap.
1754# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001755trap 'exit_status=$?
1756 # Save into config.log some information that might help in debugging.
1757 {
1758 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001759
John Criswell7a73b802003-06-30 21:59:07 +00001760 cat <<\_ASBOX
1761## ---------------- ##
1762## Cache variables. ##
1763## ---------------- ##
1764_ASBOX
1765 echo
1766 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001767(
1768 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in #(
1771 *${as_nl}*)
1772 case $ac_var in #(
1773 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1774echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1775 esac
1776 case $ac_var in #(
1777 _ | IFS | as_nl) ;; #(
1778 *) $as_unset $ac_var ;;
1779 esac ;;
1780 esac
1781 done
John Criswell7a73b802003-06-30 21:59:07 +00001782 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001783 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1784 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001785 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001786 "s/'\''/'\''\\\\'\'''\''/g;
1787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001789 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001791 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001792 esac |
1793 sort
1794)
John Criswell7a73b802003-06-30 21:59:07 +00001795 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001796
1797 cat <<\_ASBOX
1798## ----------------- ##
1799## Output variables. ##
1800## ----------------- ##
1801_ASBOX
1802 echo
1803 for ac_var in $ac_subst_vars
1804 do
Reid Spencera773bd52006-08-04 18:18:08 +00001805 eval ac_val=\$$ac_var
1806 case $ac_val in
1807 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 esac
1809 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001810 done | sort
1811 echo
1812
1813 if test -n "$ac_subst_files"; then
1814 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001815## ------------------- ##
1816## File substitutions. ##
1817## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001818_ASBOX
1819 echo
1820 for ac_var in $ac_subst_files
1821 do
Reid Spencera773bd52006-08-04 18:18:08 +00001822 eval ac_val=\$$ac_var
1823 case $ac_val in
1824 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 esac
1826 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001827 done | sort
1828 echo
1829 fi
1830
John Criswell7a73b802003-06-30 21:59:07 +00001831 if test -s confdefs.h; then
1832 cat <<\_ASBOX
1833## ----------- ##
1834## confdefs.h. ##
1835## ----------- ##
1836_ASBOX
1837 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001838 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001839 echo
1840 fi
1841 test "$ac_signal" != 0 &&
1842 echo "$as_me: caught signal $ac_signal"
1843 echo "$as_me: exit $exit_status"
1844 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001845 rm -f core *.core core.conftest.* &&
1846 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001847 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001848' 0
John Criswell7a73b802003-06-30 21:59:07 +00001849for ac_signal in 1 2 13 15; do
1850 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1851done
1852ac_signal=0
1853
1854# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001855rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001856
1857# Predefined preprocessor variables.
1858
1859cat >>confdefs.h <<_ACEOF
1860#define PACKAGE_NAME "$PACKAGE_NAME"
1861_ACEOF
1862
1863
1864cat >>confdefs.h <<_ACEOF
1865#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1866_ACEOF
1867
1868
1869cat >>confdefs.h <<_ACEOF
1870#define PACKAGE_VERSION "$PACKAGE_VERSION"
1871_ACEOF
1872
1873
1874cat >>confdefs.h <<_ACEOF
1875#define PACKAGE_STRING "$PACKAGE_STRING"
1876_ACEOF
1877
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1881_ACEOF
1882
1883
1884# Let the site file select an alternate cache file if it wants to.
1885# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001886if test -n "$CONFIG_SITE"; then
1887 set x "$CONFIG_SITE"
1888elif test "x$prefix" != xNONE; then
1889 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1890else
1891 set x "$ac_default_prefix/share/config.site" \
1892 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001893fi
Reid Spencera773bd52006-08-04 18:18:08 +00001894shift
1895for ac_site_file
1896do
John Criswell7a73b802003-06-30 21:59:07 +00001897 if test -r "$ac_site_file"; then
1898 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1899echo "$as_me: loading site script $ac_site_file" >&6;}
1900 sed 's/^/| /' "$ac_site_file" >&5
1901 . "$ac_site_file"
1902 fi
1903done
1904
1905if test -r "$cache_file"; then
1906 # Some versions of bash will fail to source /dev/null (special
1907 # files actually), so we avoid doing that.
1908 if test -f "$cache_file"; then
1909 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910echo "$as_me: loading cache $cache_file" >&6;}
1911 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001914 esac
1915 fi
1916else
1917 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918echo "$as_me: creating cache $cache_file" >&6;}
1919 >$cache_file
1920fi
1921
1922# Check that the precious variables saved in the cache have kept the same
1923# value.
1924ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001925for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001930 case $ac_old_set,$ac_new_set in
1931 set,)
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1935 ,set)
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1939 ,);;
1940 *)
1941 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001942 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001943echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001944 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001945echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001947echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001948 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001949 fi;;
1950 esac
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1953 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001954 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001955 *) ac_arg=$ac_var=$ac_new_val ;;
1956 esac
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 esac
1961 fi
1962done
1963if $ac_cache_corrupted; then
1964 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1969fi
1970
Reid Spencera773bd52006-08-04 18:18:08 +00001971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
John Criswell7a73b802003-06-30 21:59:07 +00001995ac_ext=c
1996ac_cpp='$CPP $CPPFLAGS'
1997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000
2001
2002
Misha Brukman19098e52005-05-12 22:15:34 +00002003LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002004
2005
2006
2007
2008
2009
2010
John Criswell7a73b802003-06-30 21:59:07 +00002011ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002012for ac_dir in autoconf "$srcdir"/autoconf; do
2013 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002014 ac_aux_dir=$ac_dir
2015 ac_install_sh="$ac_aux_dir/install-sh -c"
2016 break
Reid Spencera773bd52006-08-04 18:18:08 +00002017 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002018 ac_aux_dir=$ac_dir
2019 ac_install_sh="$ac_aux_dir/install.sh -c"
2020 break
Reid Spencera773bd52006-08-04 18:18:08 +00002021 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002022 ac_aux_dir=$ac_dir
2023 ac_install_sh="$ac_aux_dir/shtool install -c"
2024 break
2025 fi
2026done
2027if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002028 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2029echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002030 { (exit 1); exit 1; }; }
2031fi
Reid Spencera773bd52006-08-04 18:18:08 +00002032
2033# These three variables are undocumented and unsupported,
2034# and are intended to be withdrawn in a future Autoconf release.
2035# They can cause serious problems if a builder's source tree is in a directory
2036# whose full name contains unusual characters.
2037ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2038ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2039ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2040
John Criswell7a73b802003-06-30 21:59:07 +00002041
John Criswell392aaa32003-07-22 19:18:09 +00002042
Reid Spencer2706f8c2004-09-19 23:53:36 +00002043if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002044 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2045 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002046echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2047 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048 fi
John Criswell93e1c722003-09-15 17:04:06 +00002049fi
2050
John Criswell33a911a2003-11-25 20:36:46 +00002051for i in `ls ${srcdir}/projects`
2052do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002053 if test -d ${srcdir}/projects/${i} ; then
2054 case ${i} in
2055 "CVS") ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002056 "sample") subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002057 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002058 "Stacker") subdirs="$subdirs projects/Stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002059 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002060 "privbracket") subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002061 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002062 "llvm-test") subdirs="$subdirs projects/llvm-test"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002063 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002064 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002065;;
Reid Spencera773bd52006-08-04 18:18:08 +00002066 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002067 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002068 "llvm-java") subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002069 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002070 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002071 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002072 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002073 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002074 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002075 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002076 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002077 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2078echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002079 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002080 esac
John Criswell33a911a2003-11-25 20:36:46 +00002081 fi
2082done
John Criswell559a6c12003-09-30 16:31:48 +00002083
John Criswell7a73b802003-06-30 21:59:07 +00002084
2085# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002086$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002089 { (exit 1); exit 1; }; }
2090
Reid Spencera773bd52006-08-04 18:18:08 +00002091{ echo "$as_me:$LINENO: checking build system type" >&5
2092echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002093if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
Reid Spencera773bd52006-08-04 18:18:08 +00002096 ac_build_alias=$build_alias
2097test "x$ac_build_alias" = x &&
2098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2099test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002103ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002106 { (exit 1); exit 1; }; }
2107
2108fi
Reid Spencera773bd52006-08-04 18:18:08 +00002109{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110echo "${ECHO_T}$ac_cv_build" >&6; }
2111case $ac_cv_build in
2112*-*-*) ;;
2113*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2116esac
John Criswell7a73b802003-06-30 21:59:07 +00002117build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002118ac_save_IFS=$IFS; IFS='-'
2119set x $ac_cv_build
2120shift
2121build_cpu=$1
2122build_vendor=$2
2123shift; shift
2124# Remember, the first character of IFS is used to create $*,
2125# except with old shells:
2126build_os=$*
2127IFS=$ac_save_IFS
2128case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002129
2130
Reid Spencera773bd52006-08-04 18:18:08 +00002131{ echo "$as_me:$LINENO: checking host system type" >&5
2132echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002133if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
Reid Spencera773bd52006-08-04 18:18:08 +00002136 if test "x$host_alias" = x; then
2137 ac_cv_host=$ac_cv_build
2138else
2139 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002142 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002143fi
John Criswell7a73b802003-06-30 21:59:07 +00002144
2145fi
Reid Spencera773bd52006-08-04 18:18:08 +00002146{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147echo "${ECHO_T}$ac_cv_host" >&6; }
2148case $ac_cv_host in
2149*-*-*) ;;
2150*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2153esac
John Criswell7a73b802003-06-30 21:59:07 +00002154host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002155ac_save_IFS=$IFS; IFS='-'
2156set x $ac_cv_host
2157shift
2158host_cpu=$1
2159host_vendor=$2
2160shift; shift
2161# Remember, the first character of IFS is used to create $*,
2162# except with old shells:
2163host_os=$*
2164IFS=$ac_save_IFS
2165case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002166
2167
Reid Spencera773bd52006-08-04 18:18:08 +00002168{ echo "$as_me:$LINENO: checking target system type" >&5
2169echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002170if test "${ac_cv_target+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
Reid Spencera773bd52006-08-04 18:18:08 +00002173 if test "x$target_alias" = x; then
2174 ac_cv_target=$ac_cv_host
2175else
2176 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2178echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002179 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002180fi
John Criswell7a73b802003-06-30 21:59:07 +00002181
2182fi
Reid Spencera773bd52006-08-04 18:18:08 +00002183{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2184echo "${ECHO_T}$ac_cv_target" >&6; }
2185case $ac_cv_target in
2186*-*-*) ;;
2187*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2188echo "$as_me: error: invalid value of canonical target" >&2;}
2189 { (exit 1); exit 1; }; };;
2190esac
John Criswell7a73b802003-06-30 21:59:07 +00002191target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002192ac_save_IFS=$IFS; IFS='-'
2193set x $ac_cv_target
2194shift
2195target_cpu=$1
2196target_vendor=$2
2197shift; shift
2198# Remember, the first character of IFS is used to create $*,
2199# except with old shells:
2200target_os=$*
2201IFS=$ac_save_IFS
2202case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002203
2204
2205# The aliases save the names the user supplied, while $host etc.
2206# will get canonicalized.
2207test -n "$target_alias" &&
2208 test "$program_prefix$program_suffix$program_transform_name" = \
2209 NONENONEs,x,x, &&
2210 program_prefix=${target_alias}-
2211
Reid Spencera773bd52006-08-04 18:18:08 +00002212{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2213echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002214if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002217 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002221 llvm_cv_os_type="AIX"
2222 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002223 *-*-irix*)
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="IRIX"
2227 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002228 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002231 llvm_cv_os_type="Cygwin"
2232 llvm_cv_platform_type="Unix" ;;
2233 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002234 llvm_cv_link_all_option="-Wl,-all_load"
2235 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002236 llvm_cv_os_type="Darwin"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002241 llvm_cv_os_type="FreeBSD"
2242 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002243 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002246 llvm_cv_os_type="OpenBSD"
2247 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002248 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002251 llvm_cv_os_type="HP-UX"
2252 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 llvm_cv_os_type="Interix"
2257 llvm_cv_platform_type="Unix" ;;
2258 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261 llvm_cv_os_type="Linux"
2262 llvm_cv_platform_type="Unix" ;;
2263 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,-z,allextract"
2265 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="SunOS"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="Win32"
2272 llvm_cv_platform_type="Win32" ;;
2273 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="MingW"
2277 llvm_cv_platform_type="Win32" ;;
2278 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option=""
2280 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 llvm_cv_os_type="Unknown"
2282 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002283esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002284fi
Reid Spencera773bd52006-08-04 18:18:08 +00002285{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2286echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002287
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288if test "$llvm_cv_os_type" = "Unknown" ; then
2289 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2290echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002291 { (exit 1); exit 1; }; }
2292fi
2293
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002295
2296
Reid Spencera773bd52006-08-04 18:18:08 +00002297LINKALL=$llvm_cv_link_all_option
2298
2299NOLINKALL=$llvm_cv_no_link_all_option
2300
2301
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302case $llvm_cv_platform_type in
2303 Unix)
2304
2305cat >>confdefs.h <<\_ACEOF
2306#define LLVM_ON_UNIX 1
2307_ACEOF
2308
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002309 LLVM_ON_UNIX=1
2310
2311 LLVM_ON_WIN32=0
2312
Reid Spencer7b3e8512004-12-24 06:29:05 +00002313 ;;
2314 Win32)
2315
2316cat >>confdefs.h <<\_ACEOF
2317#define LLVM_ON_WIN32 1
2318_ACEOF
2319
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002320 LLVM_ON_UNIX=0
2321
2322 LLVM_ON_WIN32=1
2323
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324 ;;
2325esac
2326
Reid Spencera773bd52006-08-04 18:18:08 +00002327{ echo "$as_me:$LINENO: checking target architecture" >&5
2328echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002329if test "${llvm_cv_target_arch+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002333 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002334 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002335 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2336 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002337 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002338 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002339 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002340esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002341fi
Reid Spencera773bd52006-08-04 18:18:08 +00002342{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2343echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002344
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345if test "$llvm_cv_target_arch" = "Unknown" ; then
2346 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2347echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2348fi
John Criswell76595452003-07-01 22:07:39 +00002349
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002350ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002351
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002352
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002353ac_ext=c
2354ac_cpp='$CPP $CPPFLAGS'
2355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002358if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002363if test "${ac_cv_prog_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2368else
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002375 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 +00002376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2379 fi
2380done
2381done
Reid Spencera773bd52006-08-04 18:18:08 +00002382IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002383
2384fi
2385fi
2386CC=$ac_cv_prog_CC
2387if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002388 { echo "$as_me:$LINENO: result: $CC" >&5
2389echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390else
Reid Spencera773bd52006-08-04 18:18:08 +00002391 { echo "$as_me:$LINENO: result: no" >&5
2392echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393fi
2394
Reid Spencera773bd52006-08-04 18:18:08 +00002395
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396fi
2397if test -z "$ac_cv_prog_CC"; then
2398 ac_ct_CC=$CC
2399 # Extract the first word of "gcc", so it can be a program name with args.
2400set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2405else
2406 if test -n "$ac_ct_CC"; then
2407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002415 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 +00002416 ac_cv_prog_ac_ct_CC="gcc"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2419 fi
2420done
2421done
Reid Spencera773bd52006-08-04 18:18:08 +00002422IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423
2424fi
2425fi
2426ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002428 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430else
Reid Spencera773bd52006-08-04 18:18:08 +00002431 { echo "$as_me:$LINENO: result: no" >&5
2432echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433fi
2434
Reid Spencera773bd52006-08-04 18:18:08 +00002435 if test "x$ac_ct_CC" = x; then
2436 CC=""
2437 else
2438 case $cross_compiling:$ac_tool_warned in
2439yes:)
2440{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2441whose name does not start with the host triplet. If you think this
2442configuration is useful to you, please write to autoconf@gnu.org." >&5
2443echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2444whose name does not start with the host triplet. If you think this
2445configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2446ac_tool_warned=yes ;;
2447esac
2448 CC=$ac_ct_CC
2449 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450else
2451 CC="$ac_cv_prog_CC"
2452fi
2453
2454if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002455 if test -n "$ac_tool_prefix"; then
2456 # 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 +00002457set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460if test "${ac_cv_prog_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463 if test -n "$CC"; then
2464 ac_cv_prog_CC="$CC" # Let the user override the test.
2465else
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002472 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 +00002473 ac_cv_prog_CC="${ac_tool_prefix}cc"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477done
2478done
Reid Spencera773bd52006-08-04 18:18:08 +00002479IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480
2481fi
2482fi
2483CC=$ac_cv_prog_CC
2484if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002485 { echo "$as_me:$LINENO: result: $CC" >&5
2486echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002487else
Reid Spencera773bd52006-08-04 18:18:08 +00002488 { echo "$as_me:$LINENO: result: no" >&5
2489echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490fi
2491
Reid Spencera773bd52006-08-04 18:18:08 +00002492
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494fi
2495if test -z "$CC"; then
2496 # Extract the first word of "cc", so it can be a program name with args.
2497set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
2506 ac_prog_rejected=no
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002513 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 +00002514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2515 ac_prog_rejected=yes
2516 continue
2517 fi
2518 ac_cv_prog_CC="cc"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522done
2523done
Reid Spencera773bd52006-08-04 18:18:08 +00002524IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525
2526if test $ac_prog_rejected = yes; then
2527 # We found a bogon in the path, so make sure we never use it.
2528 set dummy $ac_cv_prog_CC
2529 shift
2530 if test $# != 0; then
2531 # We chose a different compiler from the bogus one.
2532 # However, it has the same basename, so the bogon will be chosen
2533 # first if we set CC to just the basename; use the full file name.
2534 shift
2535 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2536 fi
2537fi
2538fi
2539fi
2540CC=$ac_cv_prog_CC
2541if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002542 { echo "$as_me:$LINENO: result: $CC" >&5
2543echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002544else
Reid Spencera773bd52006-08-04 18:18:08 +00002545 { echo "$as_me:$LINENO: result: no" >&5
2546echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547fi
2548
Reid Spencera773bd52006-08-04 18:18:08 +00002549
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550fi
2551if test -z "$CC"; then
2552 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002553 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002554 do
2555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002571 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 +00002572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576done
2577done
Reid Spencera773bd52006-08-04 18:18:08 +00002578IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002579
2580fi
2581fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582CC=$ac_cv_prog_CC
2583if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002584 { echo "$as_me:$LINENO: result: $CC" >&5
2585echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002586else
Reid Spencera773bd52006-08-04 18:18:08 +00002587 { echo "$as_me:$LINENO: result: no" >&5
2588echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002589fi
2590
Reid Spencera773bd52006-08-04 18:18:08 +00002591
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002592 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002593 done
2594fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595if test -z "$CC"; then
2596 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002597 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002598do
2599 # Extract the first word of "$ac_prog", so it can be a program name with args.
2600set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606 if test -n "$ac_ct_CC"; then
2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002615 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 +00002616 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620done
2621done
Reid Spencera773bd52006-08-04 18:18:08 +00002622IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002623
2624fi
2625fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002628 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2629echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002630else
Reid Spencera773bd52006-08-04 18:18:08 +00002631 { echo "$as_me:$LINENO: result: no" >&5
2632echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002633fi
2634
Reid Spencera773bd52006-08-04 18:18:08 +00002635
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002637done
John Criswell7a73b802003-06-30 21:59:07 +00002638
Reid Spencera773bd52006-08-04 18:18:08 +00002639 if test "x$ac_ct_CC" = x; then
2640 CC=""
2641 else
2642 case $cross_compiling:$ac_tool_warned in
2643yes:)
2644{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2645whose name does not start with the host triplet. If you think this
2646configuration is useful to you, please write to autoconf@gnu.org." >&5
2647echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2648whose name does not start with the host triplet. If you think this
2649configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2650ac_tool_warned=yes ;;
2651esac
2652 CC=$ac_ct_CC
2653 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654fi
2655
John Criswell7a73b802003-06-30 21:59:07 +00002656fi
2657
2658
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2660See \`config.log' for more details." >&5
2661echo "$as_me: error: no acceptable C compiler found in \$PATH
2662See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2664
John Criswell7a73b802003-06-30 21:59:07 +00002665# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002666echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002667ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002668{ (ac_try="$ac_compiler --version >&5"
2669case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672esac
2673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002678{ (ac_try="$ac_compiler -v >&5"
2679case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682esac
2683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002688{ (ac_try="$ac_compiler -V >&5"
2689case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692esac
2693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698
2699cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002700/* confdefs.h. */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002705
John Criswell7a73b802003-06-30 21:59:07 +00002706int
2707main ()
2708{
2709
2710 ;
2711 return 0;
2712}
2713_ACEOF
2714ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002715ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002716# Try to create an executable without -o first, disregard a.out.
2717# It will help us diagnose broken compilers, and finding out an intuition
2718# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002719{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2720echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002721ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002722#
2723# List of possible output files, starting from the most likely.
2724# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2725# only as a last resort. b.out is created by i960 compilers.
2726ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2727#
2728# The IRIX 6 linker writes into existing files which may not be
2729# executable, retaining their permissions. Remove them first so a
2730# subsequent execution test works.
2731ac_rmfiles=
2732for ac_file in $ac_files
2733do
2734 case $ac_file in
2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2736 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2737 esac
2738done
2739rm -f $ac_rmfiles
2740
2741if { (ac_try="$ac_link_default"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2752# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2753# in a Makefile. We should not override ac_cv_exeext if it was cached,
2754# so that the user can short-circuit this test for compilers unknown to
2755# Autoconf.
2756for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002757do
2758 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002759 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002761 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002762 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002763 # We found the default executable, but exeext='' is most
2764 # certainly right.
2765 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002766 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2768 then :; else
2769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2770 fi
2771 # We set ac_cv_exeext here because the later test for it is not
2772 # safe: cross compilers may not add the suffix if given an `-o'
2773 # argument, so we may need to know it at that point already.
2774 # Even if this section looks crufty: it has the advantage of
2775 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002776 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002777 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002778 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002779 esac
2780done
Reid Spencera773bd52006-08-04 18:18:08 +00002781test "$ac_cv_exeext" = no && ac_cv_exeext=
2782
John Criswell7a73b802003-06-30 21:59:07 +00002783else
2784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002785sed 's/^/| /' conftest.$ac_ext >&5
2786
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002787{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002788See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002789echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002790See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002791 { (exit 77); exit 77; }; }
2792fi
2793
2794ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002795{ echo "$as_me:$LINENO: result: $ac_file" >&5
2796echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002797
Reid Spencera773bd52006-08-04 18:18:08 +00002798# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002799# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002800{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2801echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002802# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2803# If not cross compiling, check that we can run a simple program.
2804if test "$cross_compiling" != yes; then
2805 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002806 { (case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809esac
2810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 cross_compiling=no
2816 else
2817 if test "$cross_compiling" = maybe; then
2818 cross_compiling=yes
2819 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002820 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002821If you meant to cross compile, use \`--host'.
2822See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002823echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002824If you meant to cross compile, use \`--host'.
2825See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002826 { (exit 1); exit 1; }; }
2827 fi
2828 fi
2829fi
Reid Spencera773bd52006-08-04 18:18:08 +00002830{ echo "$as_me:$LINENO: result: yes" >&5
2831echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002832
John Criswell0c38eaf2003-09-10 15:17:25 +00002833rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002834ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002835# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002836# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002837{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2838echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2839{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2840echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002841
Reid Spencera773bd52006-08-04 18:18:08 +00002842{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2843echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2844if { (ac_try="$ac_link"
2845case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; then
2854 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2855# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2856# work properly (i.e., refer to `conftest.exe'), while it won't with
2857# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002858for ac_file in conftest.exe conftest conftest.*; do
2859 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002860 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002862 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002863 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002864 * ) break;;
2865 esac
2866done
2867else
John Criswell0c38eaf2003-09-10 15:17:25 +00002868 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2869See \`config.log' for more details." >&5
2870echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2871See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002872 { (exit 1); exit 1; }; }
2873fi
2874
2875rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002876{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2877echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002878
2879rm -f conftest.$ac_ext
2880EXEEXT=$ac_cv_exeext
2881ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002882{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2883echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002884if test "${ac_cv_objext+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002888/* confdefs.h. */
2889_ACEOF
2890cat confdefs.h >>conftest.$ac_ext
2891cat >>conftest.$ac_ext <<_ACEOF
2892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002893
John Criswell7a73b802003-06-30 21:59:07 +00002894int
2895main ()
2896{
2897
2898 ;
2899 return 0;
2900}
2901_ACEOF
2902rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002903if { (ac_try="$ac_compile"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002913 for ac_file in conftest.o conftest.obj conftest.*; do
2914 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002915 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2918 break;;
2919 esac
2920done
2921else
2922 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2926See \`config.log' for more details." >&5
2927echo "$as_me: error: cannot compute suffix of object files: cannot compile
2928See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002929 { (exit 1); exit 1; }; }
2930fi
2931
2932rm -f conftest.$ac_cv_objext conftest.$ac_ext
2933fi
Reid Spencera773bd52006-08-04 18:18:08 +00002934{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2935echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002936OBJEXT=$ac_cv_objext
2937ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002938{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2939echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002940if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942else
2943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002944/* confdefs.h. */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002949
John Criswell7a73b802003-06-30 21:59:07 +00002950int
2951main ()
2952{
2953#ifndef __GNUC__
2954 choke me
2955#endif
2956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002962if { (ac_try="$ac_compile"
2963case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002970 grep -v '^ *+' conftest.er1 >conftest.err
2971 rm -f conftest.er1
2972 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2976 { (case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; } &&
2985 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00002986 { (case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2995 ac_compiler_gnu=yes
2996else
2997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002998sed 's/^/| /' conftest.$ac_ext >&5
2999
Reid Spencera773bd52006-08-04 18:18:08 +00003000 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003001fi
Reid Spencera773bd52006-08-04 18:18:08 +00003002
3003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003004ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003005
3006fi
Reid Spencera773bd52006-08-04 18:18:08 +00003007{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3008echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003009GCC=`test $ac_compiler_gnu = yes && echo yes`
3010ac_test_CFLAGS=${CFLAGS+set}
3011ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003012{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3013echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003014if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
Reid Spencera773bd52006-08-04 18:18:08 +00003017 ac_save_c_werror_flag=$ac_c_werror_flag
3018 ac_c_werror_flag=yes
3019 ac_cv_prog_cc_g=no
3020 CFLAGS="-g"
3021 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003027
John Criswell7a73b802003-06-30 21:59:07 +00003028int
3029main ()
3030{
3031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003037if { (ac_try="$ac_compile"
3038case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003044 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003045 grep -v '^ *+' conftest.er1 >conftest.err
3046 rm -f conftest.er1
3047 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3051 { (case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054esac
3055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; } &&
3060 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064esac
3065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003070 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003071else
3072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003073sed 's/^/| /' conftest.$ac_ext >&5
3074
Reid Spencera773bd52006-08-04 18:18:08 +00003075 CFLAGS=""
3076 cat >conftest.$ac_ext <<_ACEOF
3077/* confdefs.h. */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h. */
3082
3083int
3084main ()
3085{
3086
3087 ;
3088 return 0;
3089}
3090_ACEOF
3091rm -f conftest.$ac_objext
3092if { (ac_try="$ac_compile"
3093case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_compile") 2>conftest.er1
3099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119esac
3120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_try") 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3125 :
3126else
3127 echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 ac_c_werror_flag=$ac_save_c_werror_flag
3131 CFLAGS="-g"
3132 cat >conftest.$ac_ext <<_ACEOF
3133/* confdefs.h. */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h. */
3138
3139int
3140main ()
3141{
3142
3143 ;
3144 return 0;
3145}
3146_ACEOF
3147rm -f conftest.$ac_objext
3148if { (ac_try="$ac_compile"
3149case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_compile") 2>conftest.er1
3155 ac_status=$?
3156 grep -v '^ *+' conftest.er1 >conftest.err
3157 rm -f conftest.er1
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } &&
3161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_try") 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 ac_cv_prog_cc_g=yes
3182else
3183 echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
John Criswell7a73b802003-06-30 21:59:07 +00003187fi
Reid Spencera773bd52006-08-04 18:18:08 +00003188
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003190fi
Reid Spencera773bd52006-08-04 18:18:08 +00003191
3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193fi
3194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3197fi
3198{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003200if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3204 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003205 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003206 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003207 fi
3208else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209 if test "$GCC" = yes; then
3210 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003211 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003213 fi
3214fi
Reid Spencera773bd52006-08-04 18:18:08 +00003215{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
Reid Spencera773bd52006-08-04 18:18:08 +00003220 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003221ac_save_CC=$CC
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228#include <stdarg.h>
3229#include <stdio.h>
3230#include <sys/types.h>
3231#include <sys/stat.h>
3232/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233struct buf { int x; };
3234FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235static char *e (p, i)
3236 char **p;
3237 int i;
3238{
3239 return p[i];
3240}
3241static char *f (char * (*g) (char **, int), char **p, ...)
3242{
3243 char *s;
3244 va_list v;
3245 va_start (v,p);
3246 s = g (p, va_arg (v,int));
3247 va_end (v);
3248 return s;
3249}
3250
3251/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003254 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003257 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
Reid Spencera773bd52006-08-04 18:18:08 +00003260/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3262#define FOO(x) 'x'
3263int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265int test (int i, double x);
3266struct s1 {int (*f) (int a);};
3267struct s2 {int (*f) (double a);};
3268int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269int argc;
3270char **argv;
3271int
3272main ()
3273{
3274return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3275 ;
3276 return 0;
3277}
3278_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281do
3282 CC="$ac_save_CC $ac_arg"
3283 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003284if { (ac_try="$ac_compile"
3285case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3298 { (case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301esac
3302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003308 { (case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311esac
3312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003317 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318else
3319 echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
Reid Spencera773bd52006-08-04 18:18:08 +00003322
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003323fi
Reid Spencera773bd52006-08-04 18:18:08 +00003324
3325rm -f core conftest.err conftest.$ac_objext
3326 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327done
Reid Spencera773bd52006-08-04 18:18:08 +00003328rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329CC=$ac_save_CC
3330
3331fi
Reid Spencera773bd52006-08-04 18:18:08 +00003332# AC_CACHE_VAL
3333case "x$ac_cv_prog_cc_c89" in
3334 x)
3335 { echo "$as_me:$LINENO: result: none needed" >&5
3336echo "${ECHO_T}none needed" >&6; } ;;
3337 xno)
3338 { echo "$as_me:$LINENO: result: unsupported" >&5
3339echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003340 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003341 CC="$CC $ac_cv_prog_cc_c89"
3342 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3343echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344esac
3345
John Criswell0c38eaf2003-09-10 15:17:25 +00003346
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347ac_ext=c
3348ac_cpp='$CPP $CPPFLAGS'
3349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352
3353
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003354ac_ext=c
3355ac_cpp='$CPP $CPPFLAGS'
3356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003359{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3360echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361# On Suns, sometimes $CPP names a directory.
3362if test -n "$CPP" && test -d "$CPP"; then
3363 CPP=
3364fi
3365if test -z "$CPP"; then
3366 if test "${ac_cv_prog_CPP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369 # Double quotes because CPP needs to be expanded
3370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3371 do
3372 ac_preproc_ok=false
3373for ac_c_preproc_warn_flag in '' yes
3374do
3375 # Use a header file that comes with gcc, so configuring glibc
3376 # with a fresh cross-compiler works.
3377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3378 # <limits.h> exists even on freestanding compilers.
3379 # On the NeXT, cc -E runs the code through the compiler's parser,
3380 # not just through cpp. "Syntax error" is here to catch this case.
3381 cat >conftest.$ac_ext <<_ACEOF
3382/* confdefs.h. */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
3386/* end confdefs.h. */
3387#ifdef __STDC__
3388# include <limits.h>
3389#else
3390# include <assert.h>
3391#endif
3392 Syntax error
3393_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003394if { (ac_try="$ac_cpp conftest.$ac_ext"
3395case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398esac
3399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } >/dev/null; then
3407 if test -s conftest.err; then
3408 ac_cpp_err=$ac_c_preproc_warn_flag
3409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410 else
3411 ac_cpp_err=
3412 fi
3413else
3414 ac_cpp_err=yes
3415fi
3416if test -z "$ac_cpp_err"; then
3417 :
3418else
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 # Broken: fails on valid input.
3423continue
3424fi
Reid Spencera773bd52006-08-04 18:18:08 +00003425
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003426rm -f conftest.err conftest.$ac_ext
3427
Reid Spencera773bd52006-08-04 18:18:08 +00003428 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h. */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h. */
3436#include <ac_nonexistent.h>
3437_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003438if { (ac_try="$ac_cpp conftest.$ac_ext"
3439case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442esac
3443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } >/dev/null; then
3451 if test -s conftest.err; then
3452 ac_cpp_err=$ac_c_preproc_warn_flag
3453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 else
3455 ac_cpp_err=
3456 fi
3457else
3458 ac_cpp_err=yes
3459fi
3460if test -z "$ac_cpp_err"; then
3461 # Broken: success on invalid input.
3462continue
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 # Passes both tests.
3468ac_preproc_ok=:
3469break
3470fi
Reid Spencera773bd52006-08-04 18:18:08 +00003471
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003472rm -f conftest.err conftest.$ac_ext
3473
3474done
3475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3476rm -f conftest.err conftest.$ac_ext
3477if $ac_preproc_ok; then
3478 break
3479fi
3480
3481 done
3482 ac_cv_prog_CPP=$CPP
3483
3484fi
3485 CPP=$ac_cv_prog_CPP
3486else
3487 ac_cv_prog_CPP=$CPP
3488fi
Reid Spencera773bd52006-08-04 18:18:08 +00003489{ echo "$as_me:$LINENO: result: $CPP" >&5
3490echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003491ac_preproc_ok=false
3492for ac_c_preproc_warn_flag in '' yes
3493do
3494 # Use a header file that comes with gcc, so configuring glibc
3495 # with a fresh cross-compiler works.
3496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3497 # <limits.h> exists even on freestanding compilers.
3498 # On the NeXT, cc -E runs the code through the compiler's parser,
3499 # not just through cpp. "Syntax error" is here to catch this case.
3500 cat >conftest.$ac_ext <<_ACEOF
3501/* confdefs.h. */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h. */
3506#ifdef __STDC__
3507# include <limits.h>
3508#else
3509# include <assert.h>
3510#endif
3511 Syntax error
3512_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003513if { (ac_try="$ac_cpp conftest.$ac_ext"
3514case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517esac
3518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } >/dev/null; then
3526 if test -s conftest.err; then
3527 ac_cpp_err=$ac_c_preproc_warn_flag
3528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3529 else
3530 ac_cpp_err=
3531 fi
3532else
3533 ac_cpp_err=yes
3534fi
3535if test -z "$ac_cpp_err"; then
3536 :
3537else
3538 echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541 # Broken: fails on valid input.
3542continue
3543fi
Reid Spencera773bd52006-08-04 18:18:08 +00003544
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003545rm -f conftest.err conftest.$ac_ext
3546
Reid Spencera773bd52006-08-04 18:18:08 +00003547 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548 # can be detected and how.
3549 cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h. */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h. */
3555#include <ac_nonexistent.h>
3556_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003557if { (ac_try="$ac_cpp conftest.$ac_ext"
3558case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561esac
3562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null; then
3570 if test -s conftest.err; then
3571 ac_cpp_err=$ac_c_preproc_warn_flag
3572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573 else
3574 ac_cpp_err=
3575 fi
3576else
3577 ac_cpp_err=yes
3578fi
3579if test -z "$ac_cpp_err"; then
3580 # Broken: success on invalid input.
3581continue
3582else
3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 # Passes both tests.
3587ac_preproc_ok=:
3588break
3589fi
Reid Spencera773bd52006-08-04 18:18:08 +00003590
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003591rm -f conftest.err conftest.$ac_ext
3592
3593done
3594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3595rm -f conftest.err conftest.$ac_ext
3596if $ac_preproc_ok; then
3597 :
3598else
3599 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3600See \`config.log' for more details." >&5
3601echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3602See \`config.log' for more details." >&2;}
3603 { (exit 1); exit 1; }; }
3604fi
3605
John Criswell7a73b802003-06-30 21:59:07 +00003606ac_ext=c
3607ac_cpp='$CPP $CPPFLAGS'
3608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611
John Criswell7a73b802003-06-30 21:59:07 +00003612
Reid Spencera773bd52006-08-04 18:18:08 +00003613{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3614echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003615if test "${ac_cv_path_GREP+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617else
Reid Spencera773bd52006-08-04 18:18:08 +00003618 # Extract the first word of "grep ggrep" to use in msg output
3619if test -z "$GREP"; then
3620set dummy grep ggrep; ac_prog_name=$2
3621if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
Reid Spencera773bd52006-08-04 18:18:08 +00003624 ac_path_GREP_found=false
3625# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003628do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003631 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003632 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003633 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3634 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3635 # Check for GNU ac_path_GREP and select it if it is found.
3636 # Check for GNU $ac_path_GREP
3637case `"$ac_path_GREP" --version 2>&1` in
3638*GNU*)
3639 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3640*)
3641 ac_count=0
3642 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3643 while :
3644 do
3645 cat "conftest.in" "conftest.in" >"conftest.tmp"
3646 mv "conftest.tmp" "conftest.in"
3647 cp "conftest.in" "conftest.nl"
3648 echo 'GREP' >> "conftest.nl"
3649 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3651 ac_count=`expr $ac_count + 1`
3652 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3653 # Best one so far, save it but keep looking for a better one
3654 ac_cv_path_GREP="$ac_path_GREP"
3655 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003656 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003657 # 10*(2^10) chars as input seems more than enough
3658 test $ac_count -gt 10 && break
3659 done
3660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3661esac
3662
3663
3664 $ac_path_GREP_found && break 3
3665 done
3666done
3667
3668done
3669IFS=$as_save_IFS
3670
3671
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003672fi
Reid Spencera773bd52006-08-04 18:18:08 +00003673
3674GREP="$ac_cv_path_GREP"
3675if test -z "$GREP"; then
3676 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3677echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3678 { (exit 1); exit 1; }; }
3679fi
3680
3681else
3682 ac_cv_path_GREP=$GREP
3683fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003684
John Criswell7a73b802003-06-30 21:59:07 +00003685
Reid Spencera773bd52006-08-04 18:18:08 +00003686fi
3687{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3688echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3689 GREP="$ac_cv_path_GREP"
3690
3691
3692{ echo "$as_me:$LINENO: checking for egrep" >&5
3693echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3694if test "${ac_cv_path_EGREP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696else
3697 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3698 then ac_cv_path_EGREP="$GREP -E"
3699 else
3700 # Extract the first word of "egrep" to use in msg output
3701if test -z "$EGREP"; then
3702set dummy egrep; ac_prog_name=$2
3703if test "${ac_cv_path_EGREP+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705else
3706 ac_path_EGREP_found=false
3707# Loop through the user's path and test for each of PROGNAME-LIST
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3710do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_prog in egrep; do
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3716 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3717 # Check for GNU ac_path_EGREP and select it if it is found.
3718 # Check for GNU $ac_path_EGREP
3719case `"$ac_path_EGREP" --version 2>&1` in
3720*GNU*)
3721 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3722*)
3723 ac_count=0
3724 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3725 while :
3726 do
3727 cat "conftest.in" "conftest.in" >"conftest.tmp"
3728 mv "conftest.tmp" "conftest.in"
3729 cp "conftest.in" "conftest.nl"
3730 echo 'EGREP' >> "conftest.nl"
3731 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3733 ac_count=`expr $ac_count + 1`
3734 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3735 # Best one so far, save it but keep looking for a better one
3736 ac_cv_path_EGREP="$ac_path_EGREP"
3737 ac_path_EGREP_max=$ac_count
3738 fi
3739 # 10*(2^10) chars as input seems more than enough
3740 test $ac_count -gt 10 && break
3741 done
3742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3743esac
3744
3745
3746 $ac_path_EGREP_found && break 3
3747 done
3748done
3749
3750done
3751IFS=$as_save_IFS
3752
3753
3754fi
3755
3756EGREP="$ac_cv_path_EGREP"
3757if test -z "$EGREP"; then
3758 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3759echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3760 { (exit 1); exit 1; }; }
3761fi
3762
3763else
3764 ac_cv_path_EGREP=$EGREP
3765fi
3766
3767
3768 fi
3769fi
3770{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3771echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3772 EGREP="$ac_cv_path_EGREP"
3773
3774
3775{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3776echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003777if test "${ac_cv_header_stdc+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003781/* confdefs.h. */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003786#include <stdlib.h>
3787#include <stdarg.h>
3788#include <string.h>
3789#include <float.h>
3790
John Criswell0c38eaf2003-09-10 15:17:25 +00003791int
3792main ()
3793{
3794
3795 ;
3796 return 0;
3797}
John Criswell7a73b802003-06-30 21:59:07 +00003798_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003799rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003800if { (ac_try="$ac_compile"
3801case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804esac
3805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003812 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3814 { (case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817esac
3818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003824 { (case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827esac
3828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003833 ac_cv_header_stdc=yes
3834else
3835 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003836sed 's/^/| /' conftest.$ac_ext >&5
3837
Reid Spencera773bd52006-08-04 18:18:08 +00003838 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003839fi
Reid Spencera773bd52006-08-04 18:18:08 +00003840
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003842
3843if test $ac_cv_header_stdc = yes; then
3844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3845 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003846/* confdefs.h. */
3847_ACEOF
3848cat confdefs.h >>conftest.$ac_ext
3849cat >>conftest.$ac_ext <<_ACEOF
3850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003851#include <string.h>
3852
3853_ACEOF
3854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003855 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003856 :
3857else
3858 ac_cv_header_stdc=no
3859fi
3860rm -f conftest*
3861
3862fi
3863
3864if test $ac_cv_header_stdc = yes; then
3865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3866 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003867/* confdefs.h. */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
3871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003872#include <stdlib.h>
3873
3874_ACEOF
3875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003876 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003877 :
3878else
3879 ac_cv_header_stdc=no
3880fi
3881rm -f conftest*
3882
3883fi
3884
3885if test $ac_cv_header_stdc = yes; then
3886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3887 if test "$cross_compiling" = yes; then
3888 :
3889else
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 <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003897#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003898#if ((' ' & 0x0FF) == 0x020)
3899# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3900# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3901#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003902# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003903 (('a' <= (c) && (c) <= 'i') \
3904 || ('j' <= (c) && (c) <= 'r') \
3905 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003906# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3907#endif
3908
3909#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3910int
3911main ()
3912{
3913 int i;
3914 for (i = 0; i < 256; i++)
3915 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003916 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003917 return 2;
3918 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003919}
3920_ACEOF
3921rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003922if { (ac_try="$ac_link"
3923case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926esac
3927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003932 { (case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935esac
3936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 :
3942else
3943 echo "$as_me: program exited with status $ac_status" >&5
3944echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003945sed 's/^/| /' conftest.$ac_ext >&5
3946
John Criswell7a73b802003-06-30 21:59:07 +00003947( exit $ac_status )
3948ac_cv_header_stdc=no
3949fi
Reid Spencera773bd52006-08-04 18:18:08 +00003950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3951fi
3952
3953
John Criswell7a73b802003-06-30 21:59:07 +00003954fi
3955fi
Reid Spencera773bd52006-08-04 18:18:08 +00003956{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3957echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003958if test $ac_cv_header_stdc = yes; then
3959
3960cat >>confdefs.h <<\_ACEOF
3961#define STDC_HEADERS 1
3962_ACEOF
3963
3964fi
3965
Reid Spencera773bd52006-08-04 18:18:08 +00003966# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3977 inttypes.h stdint.h unistd.h
3978do
3979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3980{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984else
3985 cat >conftest.$ac_ext <<_ACEOF
3986/* confdefs.h. */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h. */
3991$ac_includes_default
3992
3993#include <$ac_header>
3994_ACEOF
3995rm -f conftest.$ac_objext
3996if { (ac_try="$ac_compile"
3997case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000esac
4001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4010 { (case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013esac
4014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_try") 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023esac
4024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_try") 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; }; then
4029 eval "$as_ac_Header=yes"
4030else
4031 echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 eval "$as_ac_Header=no"
4035fi
4036
4037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038fi
4039ac_res=`eval echo '${'$as_ac_Header'}'`
4040 { echo "$as_me:$LINENO: result: $ac_res" >&5
4041echo "${ECHO_T}$ac_res" >&6; }
4042if test `eval echo '${'$as_ac_Header'}'` = yes; then
4043 cat >>confdefs.h <<_ACEOF
4044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4045_ACEOF
4046
4047fi
4048
4049done
4050
4051
4052{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4053echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4054if test "${ac_cv_c_bigendian+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056else
4057 # See if sys/param.h defines the BYTE_ORDER macro.
4058cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h. */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h. */
4064#include <sys/types.h>
4065#include <sys/param.h>
4066
4067int
4068main ()
4069{
4070#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4071 bogus endian macros
4072#endif
4073
4074 ;
4075 return 0;
4076}
4077_ACEOF
4078rm -f conftest.$ac_objext
4079if { (ac_try="$ac_compile"
4080case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083esac
4084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106esac
4107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 # It does; now see whether it defined to BIG_ENDIAN or not.
4113cat >conftest.$ac_ext <<_ACEOF
4114/* confdefs.h. */
4115_ACEOF
4116cat confdefs.h >>conftest.$ac_ext
4117cat >>conftest.$ac_ext <<_ACEOF
4118/* end confdefs.h. */
4119#include <sys/types.h>
4120#include <sys/param.h>
4121
4122int
4123main ()
4124{
4125#if BYTE_ORDER != BIG_ENDIAN
4126 not big endian
4127#endif
4128
4129 ;
4130 return 0;
4131}
4132_ACEOF
4133rm -f conftest.$ac_objext
4134if { (ac_try="$ac_compile"
4135case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138esac
4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161esac
4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_cv_c_bigendian=yes
4168else
4169 echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 ac_cv_c_bigendian=no
4173fi
4174
4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176else
4177 echo "$as_me: failed program was:" >&5
4178sed 's/^/| /' conftest.$ac_ext >&5
4179
4180 # It does not; compile a test program.
4181if test "$cross_compiling" = yes; then
4182 # try to guess the endianness by grepping values into an object file
4183 ac_cv_c_bigendian=unknown
4184 cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h. */
4190short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4191short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4192void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4193short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4194short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4195void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4196int
4197main ()
4198{
4199 _ascii (); _ebcdic ();
4200 ;
4201 return 0;
4202}
4203_ACEOF
4204rm -f conftest.$ac_objext
4205if { (ac_try="$ac_compile"
4206case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209esac
4210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_compile") 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4219 { (case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222esac
4223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_try") 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest.$ac_objext'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4239 ac_cv_c_bigendian=yes
4240fi
4241if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4242 if test "$ac_cv_c_bigendian" = unknown; then
4243 ac_cv_c_bigendian=no
4244 else
4245 # finding both strings is unlikely to happen, but who knows?
4246 ac_cv_c_bigendian=unknown
4247 fi
4248fi
4249else
4250 echo "$as_me: failed program was:" >&5
4251sed 's/^/| /' conftest.$ac_ext >&5
4252
4253
4254fi
4255
4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257else
4258 cat >conftest.$ac_ext <<_ACEOF
4259/* confdefs.h. */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h. */
4264$ac_includes_default
4265int
4266main ()
4267{
4268
4269 /* Are we little or big endian? From Harbison&Steele. */
4270 union
4271 {
4272 long int l;
4273 char c[sizeof (long int)];
4274 } u;
4275 u.l = 1;
4276 return u.c[sizeof (long int) - 1] == 1;
4277
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest$ac_exeext
4283if { (ac_try="$ac_link"
4284case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287esac
4288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_link") 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4293 { (case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296esac
4297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 ac_cv_c_bigendian=no
4303else
4304 echo "$as_me: program exited with status $ac_status" >&5
4305echo "$as_me: failed program was:" >&5
4306sed 's/^/| /' conftest.$ac_ext >&5
4307
4308( exit $ac_status )
4309ac_cv_c_bigendian=yes
4310fi
4311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4312fi
4313
4314
4315fi
4316
4317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318fi
4319{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4320echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4321case $ac_cv_c_bigendian in
4322 yes)
4323 ENDIAN=big
4324 ;;
4325 no)
4326 ENDIAN=little
4327 ;;
4328 *)
4329 { { echo "$as_me:$LINENO: error: unknown endianness
4330presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4331echo "$as_me: error: unknown endianness
4332presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4333 { (exit 1); exit 1; }; } ;;
4334esac
4335
4336
4337if test "$cross_compiling" = yes; then
4338 LLVM_CROSS_COMPILING=1
4339
4340
4341{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4342echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4343if test "${ac_cv_build_exeext+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345else
4346 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4347 ac_cv_build_exeext=.exe
4348else
4349 ac_build_prefix=${build_alias}-
4350
4351 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4352set dummy ${ac_build_prefix}gcc; ac_word=$2
4353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4355if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357else
4358 if test -n "$BUILD_CC"; then
4359 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4360else
4361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362for as_dir in $PATH
4363do
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4371 fi
4372done
4373done
4374IFS=$as_save_IFS
4375
4376fi
4377fi
4378BUILD_CC=$ac_cv_prog_BUILD_CC
4379if test -n "$BUILD_CC"; then
4380 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4381echo "${ECHO_T}$BUILD_CC" >&6; }
4382else
4383 { echo "$as_me:$LINENO: result: no" >&5
4384echo "${ECHO_T}no" >&6; }
4385fi
4386
4387
4388 if test -z "$BUILD_CC"; then
4389 # Extract the first word of "gcc", so it can be a program name with args.
4390set dummy gcc; ac_word=$2
4391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396 if test -n "$BUILD_CC"; then
4397 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398else
4399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH
4401do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_BUILD_CC="gcc"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4409 fi
4410done
4411done
4412IFS=$as_save_IFS
4413
4414fi
4415fi
4416BUILD_CC=$ac_cv_prog_BUILD_CC
4417if test -n "$BUILD_CC"; then
4418 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419echo "${ECHO_T}$BUILD_CC" >&6; }
4420else
4421 { echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6; }
4423fi
4424
4425
4426 if test -z "$BUILD_CC"; then
4427 # Extract the first word of "cc", so it can be a program name with args.
4428set dummy cc; ac_word=$2
4429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436else
4437 ac_prog_rejected=no
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4446 ac_prog_rejected=yes
4447 continue
4448 fi
4449 ac_cv_prog_BUILD_CC="cc"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453done
4454done
4455IFS=$as_save_IFS
4456
4457if test $ac_prog_rejected = yes; then
4458 # We found a bogon in the path, so make sure we never use it.
4459 set dummy $ac_cv_prog_BUILD_CC
4460 shift
4461 if test $# != 0; then
4462 # We chose a different compiler from the bogus one.
4463 # However, it has the same basename, so the bogon will be chosen
4464 # first if we set BUILD_CC to just the basename; use the full file name.
4465 shift
4466 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4467 fi
4468fi
4469fi
4470fi
4471BUILD_CC=$ac_cv_prog_BUILD_CC
4472if test -n "$BUILD_CC"; then
4473 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4474echo "${ECHO_T}$BUILD_CC" >&6; }
4475else
4476 { echo "$as_me:$LINENO: result: no" >&5
4477echo "${ECHO_T}no" >&6; }
4478fi
4479
4480
4481 fi
4482 fi
4483 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4484echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4485 { (exit 1); exit 1; }; }
4486 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4487 rm -f conftest*
4488 echo 'int main () { return 0; }' > conftest.$ac_ext
4489 ac_cv_build_exeext=
4490 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4491 (eval $ac_build_link) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; then
4495 for file in conftest.*; do
4496 case $file in
4497 *.c | *.o | *.obj) ;;
4498 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4499 esac
4500 done
4501 else
4502 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4503echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4504 { (exit 1); exit 1; }; }
4505 fi
4506 rm -f conftest*
4507 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4508fi
4509fi
4510
4511BUILD_EXEEXT=""
4512test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4513{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4514echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4515ac_build_exeext=$BUILD_EXEEXT
4516
4517else
4518 LLVM_CROSS_COMPILING=0
4519
4520fi
4521
4522if test -d "CVS" -o -d "${srcdir}/CVS"; then
4523 cvsbuild="yes"
4524 optimize="no"
4525 CVSBUILD=CVSBUILD=1
4526
4527else
4528 cvsbuild="no"
4529 optimize="yes"
4530fi
4531
4532
4533# Check whether --enable-optimized was given.
4534if test "${enable_optimized+set}" = set; then
4535 enableval=$enable_optimized;
4536else
4537 enableval=$optimize
4538fi
4539
4540if test ${enableval} = "no" ; then
4541 ENABLE_OPTIMIZED=
4542
4543else
4544 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4545
4546fi
4547
4548# Check whether --enable-assertions was given.
4549if test "${enable_assertions+set}" = set; then
4550 enableval=$enable_assertions;
4551else
4552 enableval="yes"
4553fi
4554
4555if test ${enableval} = "yes" ; then
4556 DISABLE_ASSERTIONS=
4557
4558else
4559 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4560
4561fi
4562
4563# Check whether --enable-debug-runtime was given.
4564if test "${enable_debug_runtime+set}" = set; then
4565 enableval=$enable_debug_runtime;
4566else
4567 enableval=no
4568fi
4569
4570if test ${enableval} = "no" ; then
4571 DEBUG_RUNTIME=
4572
4573else
4574 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4575
4576fi
4577
4578# Check whether --enable-jit was given.
4579if test "${enable_jit+set}" = set; then
4580 enableval=$enable_jit;
4581else
4582 enableval=default
4583fi
4584
4585if test ${enableval} = "no"
4586then
4587 JIT=
4588
4589else
4590 case "$llvm_cv_target_arch" in
4591 x86) TARGET_HAS_JIT=1
4592 ;;
4593 Sparc) TARGET_HAS_JIT=1
4594 ;;
4595 PowerPC) TARGET_HAS_JIT=1
4596 ;;
4597 x86_64) TARGET_HAS_JIT=0
4598 ;;
4599 Alpha) TARGET_HAS_JIT=1
4600 ;;
4601 IA64) TARGET_HAS_JIT=0
4602 ;;
4603 *) TARGET_HAS_JIT=0
4604 ;;
4605 esac
4606fi
4607
4608# Check whether --enable-doxygen was given.
4609if test "${enable_doxygen+set}" = set; then
4610 enableval=$enable_doxygen;
4611else
4612 enableval=default
4613fi
4614
4615case "$enableval" in
4616 yes) ENABLE_DOXYGEN=1
4617 ;;
4618 no) ENABLE_DOXYGEN=0
4619 ;;
4620 default) ENABLE_DOXYGEN=0
4621 ;;
4622 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4623echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4624 { (exit 1); exit 1; }; } ;;
4625esac
4626
4627# Check whether --enable-threads was given.
4628if test "${enable_threads+set}" = set; then
4629 enableval=$enable_threads;
4630else
4631 enableval=yes
4632fi
4633
4634case "$enableval" in
4635 yes) ENABLE_THREADS=1
4636 ;;
4637 no) ENABLE_THREADS=0
4638 ;;
4639 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4640echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4641 { (exit 1); exit 1; }; } ;;
4642esac
4643
4644cat >>confdefs.h <<_ACEOF
4645#define ENABLE_THREADS $ENABLE_THREADS
4646_ACEOF
4647
4648
4649TARGETS_TO_BUILD=""
4650# Check whether --enable-targets was given.
4651if test "${enable_targets+set}" = set; then
4652 enableval=$enable_targets;
4653else
4654 enableval=all
4655fi
4656
4657case "$enableval" in
4658 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4659 host-only)
4660 case "$llvm_cv_target_arch" in
4661 x86) TARGETS_TO_BUILD="X86" ;;
4662 x86_64) TARGETS_TO_BUILD="X86" ;;
4663 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4664 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4665 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4666 IA64) TARGETS_TO_BUILD="IA64" ;;
4667 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4668echo "$as_me: error: Can not set target to build" >&2;}
4669 { (exit 1); exit 1; }; } ;;
4670 esac
4671 ;;
4672 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4673 case "$a_target" in
4674 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4675 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4676 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4677 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4678 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4679 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4680 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4681echo "$as_me: error: Unrecognized target $a_target" >&2;}
4682 { (exit 1); exit 1; }; } ;;
4683 esac
4684 done
4685 ;;
4686esac
4687TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4688TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4689
4690
4691
4692# Check whether --with-llvmgccdir was given.
4693if test "${with_llvmgccdir+set}" = set; then
4694 withval=$with_llvmgccdir;
4695else
4696 withval=default
4697fi
4698
4699case "$withval" in
4700 default) WITH_LLVMGCCDIR=default ;;
4701 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4702 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4703echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4704 { (exit 1); exit 1; }; } ;;
4705esac
4706
4707
4708# Check whether --with-extra-options was given.
4709if test "${with_extra_options+set}" = set; then
4710 withval=$with_extra_options;
4711else
4712 withval=default
4713fi
4714
4715case "$withval" in
4716 default) EXTRA_OPTIONS= ;;
4717 *) EXTRA_OPTIONS=$withval ;;
4718esac
4719EXTRA_OPTIONS=$EXTRA_OPTIONS
4720
4721
4722
4723ac_ext=c
4724ac_cpp='$CPP $CPPFLAGS'
4725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4729echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4730# On Suns, sometimes $CPP names a directory.
4731if test -n "$CPP" && test -d "$CPP"; then
4732 CPP=
4733fi
4734if test -z "$CPP"; then
4735 if test "${ac_cv_prog_CPP+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738 # Double quotes because CPP needs to be expanded
4739 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4740 do
4741 ac_preproc_ok=false
4742for ac_c_preproc_warn_flag in '' yes
4743do
4744 # Use a header file that comes with gcc, so configuring glibc
4745 # with a fresh cross-compiler works.
4746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4747 # <limits.h> exists even on freestanding compilers.
4748 # On the NeXT, cc -E runs the code through the compiler's parser,
4749 # not just through cpp. "Syntax error" is here to catch this case.
4750 cat >conftest.$ac_ext <<_ACEOF
4751/* confdefs.h. */
4752_ACEOF
4753cat confdefs.h >>conftest.$ac_ext
4754cat >>conftest.$ac_ext <<_ACEOF
4755/* end confdefs.h. */
4756#ifdef __STDC__
4757# include <limits.h>
4758#else
4759# include <assert.h>
4760#endif
4761 Syntax error
4762_ACEOF
4763if { (ac_try="$ac_cpp conftest.$ac_ext"
4764case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767esac
4768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null; then
4776 if test -s conftest.err; then
4777 ac_cpp_err=$ac_c_preproc_warn_flag
4778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4779 else
4780 ac_cpp_err=
4781 fi
4782else
4783 ac_cpp_err=yes
4784fi
4785if test -z "$ac_cpp_err"; then
4786 :
4787else
4788 echo "$as_me: failed program was:" >&5
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 # Broken: fails on valid input.
4792continue
4793fi
4794
4795rm -f conftest.err conftest.$ac_ext
4796
4797 # OK, works on sane cases. Now check whether nonexistent headers
4798 # can be detected and how.
4799 cat >conftest.$ac_ext <<_ACEOF
4800/* confdefs.h. */
4801_ACEOF
4802cat confdefs.h >>conftest.$ac_ext
4803cat >>conftest.$ac_ext <<_ACEOF
4804/* end confdefs.h. */
4805#include <ac_nonexistent.h>
4806_ACEOF
4807if { (ac_try="$ac_cpp conftest.$ac_ext"
4808case "(($ac_try" in
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4811esac
4812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev/null; then
4820 if test -s conftest.err; then
4821 ac_cpp_err=$ac_c_preproc_warn_flag
4822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4823 else
4824 ac_cpp_err=
4825 fi
4826else
4827 ac_cpp_err=yes
4828fi
4829if test -z "$ac_cpp_err"; then
4830 # Broken: success on invalid input.
4831continue
4832else
4833 echo "$as_me: failed program was:" >&5
4834sed 's/^/| /' conftest.$ac_ext >&5
4835
4836 # Passes both tests.
4837ac_preproc_ok=:
4838break
4839fi
4840
4841rm -f conftest.err conftest.$ac_ext
4842
4843done
4844# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845rm -f conftest.err conftest.$ac_ext
4846if $ac_preproc_ok; then
4847 break
4848fi
4849
4850 done
4851 ac_cv_prog_CPP=$CPP
4852
4853fi
4854 CPP=$ac_cv_prog_CPP
4855else
4856 ac_cv_prog_CPP=$CPP
4857fi
4858{ echo "$as_me:$LINENO: result: $CPP" >&5
4859echo "${ECHO_T}$CPP" >&6; }
4860ac_preproc_ok=false
4861for ac_c_preproc_warn_flag in '' yes
4862do
4863 # Use a header file that comes with gcc, so configuring glibc
4864 # with a fresh cross-compiler works.
4865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866 # <limits.h> exists even on freestanding compilers.
4867 # On the NeXT, cc -E runs the code through the compiler's parser,
4868 # not just through cpp. "Syntax error" is here to catch this case.
4869 cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875#ifdef __STDC__
4876# include <limits.h>
4877#else
4878# include <assert.h>
4879#endif
4880 Syntax error
4881_ACEOF
4882if { (ac_try="$ac_cpp conftest.$ac_ext"
4883case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886esac
4887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null; then
4895 if test -s conftest.err; then
4896 ac_cpp_err=$ac_c_preproc_warn_flag
4897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4898 else
4899 ac_cpp_err=
4900 fi
4901else
4902 ac_cpp_err=yes
4903fi
4904if test -z "$ac_cpp_err"; then
4905 :
4906else
4907 echo "$as_me: failed program was:" >&5
4908sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 # Broken: fails on valid input.
4911continue
4912fi
4913
4914rm -f conftest.err conftest.$ac_ext
4915
4916 # OK, works on sane cases. Now check whether nonexistent headers
4917 # can be detected and how.
4918 cat >conftest.$ac_ext <<_ACEOF
4919/* confdefs.h. */
4920_ACEOF
4921cat confdefs.h >>conftest.$ac_ext
4922cat >>conftest.$ac_ext <<_ACEOF
4923/* end confdefs.h. */
4924#include <ac_nonexistent.h>
4925_ACEOF
4926if { (ac_try="$ac_cpp conftest.$ac_ext"
4927case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930esac
4931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } >/dev/null; then
4939 if test -s conftest.err; then
4940 ac_cpp_err=$ac_c_preproc_warn_flag
4941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4942 else
4943 ac_cpp_err=
4944 fi
4945else
4946 ac_cpp_err=yes
4947fi
4948if test -z "$ac_cpp_err"; then
4949 # Broken: success on invalid input.
4950continue
4951else
4952 echo "$as_me: failed program was:" >&5
4953sed 's/^/| /' conftest.$ac_ext >&5
4954
4955 # Passes both tests.
4956ac_preproc_ok=:
4957break
4958fi
4959
4960rm -f conftest.err conftest.$ac_ext
4961
4962done
4963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4964rm -f conftest.err conftest.$ac_ext
4965if $ac_preproc_ok; then
4966 :
4967else
4968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4969See \`config.log' for more details." >&5
4970echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4971See \`config.log' for more details." >&2;}
4972 { (exit 1); exit 1; }; }
4973fi
4974
4975ac_ext=c
4976ac_cpp='$CPP $CPPFLAGS'
4977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981ac_ext=c
4982ac_cpp='$CPP $CPPFLAGS'
4983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986if test -n "$ac_tool_prefix"; then
4987 for ac_prog in gcc
4988 do
4989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4990set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4993if test "${ac_cv_prog_CC+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996 if test -n "$CC"; then
4997 ac_cv_prog_CC="$CC" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010done
5011done
5012IFS=$as_save_IFS
5013
5014fi
5015fi
5016CC=$ac_cv_prog_CC
5017if test -n "$CC"; then
5018 { echo "$as_me:$LINENO: result: $CC" >&5
5019echo "${ECHO_T}$CC" >&6; }
5020else
5021 { echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6; }
5023fi
5024
5025
5026 test -n "$CC" && break
5027 done
5028fi
5029if test -z "$CC"; then
5030 ac_ct_CC=$CC
5031 for ac_prog in gcc
5032do
5033 # Extract the first word of "$ac_prog", so it can be a program name with args.
5034set dummy $ac_prog; ac_word=$2
5035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5037if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039else
5040 if test -n "$ac_ct_CC"; then
5041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5042else
5043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044for as_dir in $PATH
5045do
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5050 ac_cv_prog_ac_ct_CC="$ac_prog"
5051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5053 fi
5054done
5055done
5056IFS=$as_save_IFS
5057
5058fi
5059fi
5060ac_ct_CC=$ac_cv_prog_ac_ct_CC
5061if test -n "$ac_ct_CC"; then
5062 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5063echo "${ECHO_T}$ac_ct_CC" >&6; }
5064else
5065 { echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6; }
5067fi
5068
5069
5070 test -n "$ac_ct_CC" && break
5071done
5072
5073 if test "x$ac_ct_CC" = x; then
5074 CC=""
5075 else
5076 case $cross_compiling:$ac_tool_warned in
5077yes:)
5078{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5079whose name does not start with the host triplet. If you think this
5080configuration is useful to you, please write to autoconf@gnu.org." >&5
5081echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5082whose name does not start with the host triplet. If you think this
5083configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5084ac_tool_warned=yes ;;
5085esac
5086 CC=$ac_ct_CC
5087 fi
5088fi
5089
5090
5091test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5092See \`config.log' for more details." >&5
5093echo "$as_me: error: no acceptable C compiler found in \$PATH
5094See \`config.log' for more details." >&2;}
5095 { (exit 1); exit 1; }; }
5096
5097# Provide some information about the compiler.
5098echo "$as_me:$LINENO: checking for C compiler version" >&5
5099ac_compiler=`set X $ac_compile; echo $2`
5100{ (ac_try="$ac_compiler --version >&5"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_compiler --version >&5") 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }
5110{ (ac_try="$ac_compiler -v >&5"
5111case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114esac
5115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_compiler -v >&5") 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }
5120{ (ac_try="$ac_compiler -V >&5"
5121case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compiler -V >&5") 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }
5130
5131{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5132echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5133if test "${ac_cv_c_compiler_gnu+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136 cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h. */
5138_ACEOF
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h. */
5142
5143int
5144main ()
5145{
5146#ifndef __GNUC__
5147 choke me
5148#endif
5149
5150 ;
5151 return 0;
5152}
5153_ACEOF
5154rm -f conftest.$ac_objext
5155if { (ac_try="$ac_compile"
5156case "(($ac_try" in
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5159esac
5160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_compile") 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5169 { (case "(($ac_try" in
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5172esac
5173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_try") 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; } &&
5178 { ac_try='test -s conftest.$ac_objext'
5179 { (case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182esac
5183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_try") 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 ac_compiler_gnu=yes
5189else
5190 echo "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
5193 ac_compiler_gnu=no
5194fi
5195
5196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197ac_cv_c_compiler_gnu=$ac_compiler_gnu
5198
5199fi
5200{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5201echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5202GCC=`test $ac_compiler_gnu = yes && echo yes`
5203ac_test_CFLAGS=${CFLAGS+set}
5204ac_save_CFLAGS=$CFLAGS
5205{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5206echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5207if test "${ac_cv_prog_cc_g+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210 ac_save_c_werror_flag=$ac_c_werror_flag
5211 ac_c_werror_flag=yes
5212 ac_cv_prog_cc_g=no
5213 CFLAGS="-g"
5214 cat >conftest.$ac_ext <<_ACEOF
5215/* confdefs.h. */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h. */
5220
5221int
5222main ()
5223{
5224
5225 ;
5226 return 0;
5227}
5228_ACEOF
5229rm -f conftest.$ac_objext
5230if { (ac_try="$ac_compile"
5231case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5234esac
5235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_compile") 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5244 { (case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247esac
5248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_try") 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try='test -s conftest.$ac_objext'
5254 { (case "(($ac_try" in
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5257esac
5258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_try") 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 ac_cv_prog_cc_g=yes
5264else
5265 echo "$as_me: failed program was:" >&5
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
5268 CFLAGS=""
5269 cat >conftest.$ac_ext <<_ACEOF
5270/* confdefs.h. */
5271_ACEOF
5272cat confdefs.h >>conftest.$ac_ext
5273cat >>conftest.$ac_ext <<_ACEOF
5274/* end confdefs.h. */
5275
5276int
5277main ()
5278{
5279
5280 ;
5281 return 0;
5282}
5283_ACEOF
5284rm -f conftest.$ac_objext
5285if { (ac_try="$ac_compile"
5286case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289esac
5290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compile") 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5299 { (case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302esac
5303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_try") 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; } &&
5308 { ac_try='test -s conftest.$ac_objext'
5309 { (case "(($ac_try" in
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5312esac
5313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_try") 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5318 :
5319else
5320 echo "$as_me: failed program was:" >&5
5321sed 's/^/| /' conftest.$ac_ext >&5
5322
5323 ac_c_werror_flag=$ac_save_c_werror_flag
5324 CFLAGS="-g"
5325 cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h. */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h. */
5331
5332int
5333main ()
5334{
5335
5336 ;
5337 return 0;
5338}
5339_ACEOF
5340rm -f conftest.$ac_objext
5341if { (ac_try="$ac_compile"
5342case "(($ac_try" in
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5345esac
5346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_compile") 2>conftest.er1
5348 ac_status=$?
5349 grep -v '^ *+' conftest.er1 >conftest.err
5350 rm -f conftest.er1
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5355 { (case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358esac
5359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_try") 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368esac
5369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_try") 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5374 ac_cv_prog_cc_g=yes
5375else
5376 echo "$as_me: failed program was:" >&5
5377sed 's/^/| /' conftest.$ac_ext >&5
5378
5379
5380fi
5381
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383fi
5384
5385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386fi
5387
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_c_werror_flag=$ac_save_c_werror_flag
5390fi
5391{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5392echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5393if test "$ac_test_CFLAGS" = set; then
5394 CFLAGS=$ac_save_CFLAGS
5395elif test $ac_cv_prog_cc_g = yes; then
5396 if test "$GCC" = yes; then
5397 CFLAGS="-g -O2"
5398 else
5399 CFLAGS="-g"
5400 fi
5401else
5402 if test "$GCC" = yes; then
5403 CFLAGS="-O2"
5404 else
5405 CFLAGS=
5406 fi
5407fi
5408{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5409echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5410if test "${ac_cv_prog_cc_c89+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413 ac_cv_prog_cc_c89=no
5414ac_save_CC=$CC
5415cat >conftest.$ac_ext <<_ACEOF
5416/* confdefs.h. */
5417_ACEOF
5418cat confdefs.h >>conftest.$ac_ext
5419cat >>conftest.$ac_ext <<_ACEOF
5420/* end confdefs.h. */
5421#include <stdarg.h>
5422#include <stdio.h>
5423#include <sys/types.h>
5424#include <sys/stat.h>
5425/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5426struct buf { int x; };
5427FILE * (*rcsopen) (struct buf *, struct stat *, int);
5428static char *e (p, i)
5429 char **p;
5430 int i;
5431{
5432 return p[i];
5433}
5434static char *f (char * (*g) (char **, int), char **p, ...)
5435{
5436 char *s;
5437 va_list v;
5438 va_start (v,p);
5439 s = g (p, va_arg (v,int));
5440 va_end (v);
5441 return s;
5442}
5443
5444/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5445 function prototypes and stuff, but not '\xHH' hex character constants.
5446 These don't provoke an error unfortunately, instead are silently treated
5447 as 'x'. The following induces an error, until -std is added to get
5448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5449 array size at least. It's necessary to write '\x00'==0 to get something
5450 that's true only with -std. */
5451int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5452
5453/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5454 inside strings and character constants. */
5455#define FOO(x) 'x'
5456int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5457
5458int test (int i, double x);
5459struct s1 {int (*f) (int a);};
5460struct s2 {int (*f) (double a);};
5461int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5462int argc;
5463char **argv;
5464int
5465main ()
5466{
5467return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5468 ;
5469 return 0;
5470}
5471_ACEOF
5472for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5474do
5475 CC="$ac_save_CC $ac_arg"
5476 rm -f conftest.$ac_objext
5477if { (ac_try="$ac_compile"
5478case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481esac
5482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compile") 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5491 { (case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494esac
5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_try") 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; } &&
5500 { ac_try='test -s conftest.$ac_objext'
5501 { (case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5504esac
5505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_try") 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 ac_cv_prog_cc_c89=$ac_arg
5511else
5512 echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
5515
5516fi
5517
5518rm -f core conftest.err conftest.$ac_objext
5519 test "x$ac_cv_prog_cc_c89" != "xno" && break
5520done
5521rm -f conftest.$ac_ext
5522CC=$ac_save_CC
5523
5524fi
5525# AC_CACHE_VAL
5526case "x$ac_cv_prog_cc_c89" in
5527 x)
5528 { echo "$as_me:$LINENO: result: none needed" >&5
5529echo "${ECHO_T}none needed" >&6; } ;;
5530 xno)
5531 { echo "$as_me:$LINENO: result: unsupported" >&5
5532echo "${ECHO_T}unsupported" >&6; } ;;
5533 *)
5534 CC="$CC $ac_cv_prog_cc_c89"
5535 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5536echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5537esac
5538
5539
5540ac_ext=c
5541ac_cpp='$CPP $CPPFLAGS'
5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
5546ac_ext=cpp
5547ac_cpp='$CXXCPP $CPPFLAGS'
5548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5551if test -z "$CXX"; then
5552 if test -n "$CCC"; then
5553 CXX=$CCC
5554 else
5555 if test -n "$ac_tool_prefix"; then
5556 for ac_prog in g++
5557 do
5558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5562if test "${ac_cv_prog_CXX+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564else
5565 if test -n "$CXX"; then
5566 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5567else
5568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569for as_dir in $PATH
5570do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579done
5580done
5581IFS=$as_save_IFS
5582
5583fi
5584fi
5585CXX=$ac_cv_prog_CXX
5586if test -n "$CXX"; then
5587 { echo "$as_me:$LINENO: result: $CXX" >&5
5588echo "${ECHO_T}$CXX" >&6; }
5589else
5590 { echo "$as_me:$LINENO: result: no" >&5
5591echo "${ECHO_T}no" >&6; }
5592fi
5593
5594
5595 test -n "$CXX" && break
5596 done
5597fi
5598if test -z "$CXX"; then
5599 ac_ct_CXX=$CXX
5600 for ac_prog in g++
5601do
5602 # Extract the first word of "$ac_prog", so it can be a program name with args.
5603set dummy $ac_prog; ac_word=$2
5604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5606if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609 if test -n "$ac_ct_CXX"; then
5610 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_ac_ct_CXX="$ac_prog"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624done
5625IFS=$as_save_IFS
5626
5627fi
5628fi
5629ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5630if test -n "$ac_ct_CXX"; then
5631 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5632echo "${ECHO_T}$ac_ct_CXX" >&6; }
5633else
5634 { echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6; }
5636fi
5637
5638
5639 test -n "$ac_ct_CXX" && break
5640done
5641
5642 if test "x$ac_ct_CXX" = x; then
5643 CXX="g++"
5644 else
5645 case $cross_compiling:$ac_tool_warned in
5646yes:)
5647{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5648whose name does not start with the host triplet. If you think this
5649configuration is useful to you, please write to autoconf@gnu.org." >&5
5650echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5651whose name does not start with the host triplet. If you think this
5652configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5653ac_tool_warned=yes ;;
5654esac
5655 CXX=$ac_ct_CXX
5656 fi
5657fi
5658
5659 fi
5660fi
5661# Provide some information about the compiler.
5662echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5663ac_compiler=`set X $ac_compile; echo $2`
5664{ (ac_try="$ac_compiler --version >&5"
5665case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668esac
5669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compiler --version >&5") 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }
5674{ (ac_try="$ac_compiler -v >&5"
5675case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678esac
5679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_compiler -v >&5") 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }
5684{ (ac_try="$ac_compiler -V >&5"
5685case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688esac
5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compiler -V >&5") 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }
5694
5695{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5696echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5697if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700 cat >conftest.$ac_ext <<_ACEOF
5701/* confdefs.h. */
5702_ACEOF
5703cat confdefs.h >>conftest.$ac_ext
5704cat >>conftest.$ac_ext <<_ACEOF
5705/* end confdefs.h. */
5706
5707int
5708main ()
5709{
5710#ifndef __GNUC__
5711 choke me
5712#endif
5713
5714 ;
5715 return 0;
5716}
5717_ACEOF
5718rm -f conftest.$ac_objext
5719if { (ac_try="$ac_compile"
5720case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723esac
5724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5733 { (case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736esac
5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_try") 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746esac
5747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_try") 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_compiler_gnu=yes
5753else
5754 echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 ac_compiler_gnu=no
5758fi
5759
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5762
5763fi
5764{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5765echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5766GXX=`test $ac_compiler_gnu = yes && echo yes`
5767ac_test_CXXFLAGS=${CXXFLAGS+set}
5768ac_save_CXXFLAGS=$CXXFLAGS
5769{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5770echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5771if test "${ac_cv_prog_cxx_g+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5775 ac_cxx_werror_flag=yes
5776 ac_cv_prog_cxx_g=no
5777 CXXFLAGS="-g"
5778 cat >conftest.$ac_ext <<_ACEOF
5779/* confdefs.h. */
5780_ACEOF
5781cat confdefs.h >>conftest.$ac_ext
5782cat >>conftest.$ac_ext <<_ACEOF
5783/* end confdefs.h. */
5784
5785int
5786main ()
5787{
5788
5789 ;
5790 return 0;
5791}
5792_ACEOF
5793rm -f conftest.$ac_objext
5794if { (ac_try="$ac_compile"
5795case "(($ac_try" in
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5798esac
5799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_compile") 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5808 { (case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_try") 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try='test -s conftest.$ac_objext'
5818 { (case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_try") 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 ac_cv_prog_cxx_g=yes
5828else
5829 echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832 CXXFLAGS=""
5833 cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h. */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h. */
5839
5840int
5841main ()
5842{
5843
5844 ;
5845 return 0;
5846}
5847_ACEOF
5848rm -f conftest.$ac_objext
5849if { (ac_try="$ac_compile"
5850case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853esac
5854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5863 { (case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866esac
5867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_try") 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 :
5883else
5884 echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5888 CXXFLAGS="-g"
5889 cat >conftest.$ac_ext <<_ACEOF
5890/* confdefs.h. */
5891_ACEOF
5892cat confdefs.h >>conftest.$ac_ext
5893cat >>conftest.$ac_ext <<_ACEOF
5894/* end confdefs.h. */
5895
5896int
5897main ()
5898{
5899
5900 ;
5901 return 0;
5902}
5903_ACEOF
5904rm -f conftest.$ac_objext
5905if { (ac_try="$ac_compile"
5906case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5919 { (case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_try") 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 { (case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_try") 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_cv_prog_cxx_g=yes
5939else
5940 echo "$as_me: failed program was:" >&5
5941sed 's/^/| /' conftest.$ac_ext >&5
5942
5943
5944fi
5945
5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947fi
5948
5949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950fi
5951
5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5954fi
5955{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5956echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5957if test "$ac_test_CXXFLAGS" = set; then
5958 CXXFLAGS=$ac_save_CXXFLAGS
5959elif test $ac_cv_prog_cxx_g = yes; then
5960 if test "$GXX" = yes; then
5961 CXXFLAGS="-g -O2"
5962 else
5963 CXXFLAGS="-g"
5964 fi
5965else
5966 if test "$GXX" = yes; then
5967 CXXFLAGS="-O2"
5968 else
5969 CXXFLAGS=
5970 fi
5971fi
5972ac_ext=c
5973ac_cpp='$CPP $CPPFLAGS'
5974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977
5978{ echo "$as_me:$LINENO: checking " >&5
5979echo $ECHO_N "checking ... $ECHO_C" >&6; }
5980if test "${ac_cv_has_flex+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983 for ac_prog in flex lex
5984do
5985 # Extract the first word of "$ac_prog", so it can be a program name with args.
5986set dummy $ac_prog; ac_word=$2
5987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989if test "${ac_cv_prog_LEX+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991else
5992 if test -n "$LEX"; then
5993 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_LEX="$ac_prog"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006done
6007done
6008IFS=$as_save_IFS
6009
6010fi
6011fi
6012LEX=$ac_cv_prog_LEX
6013if test -n "$LEX"; then
6014 { echo "$as_me:$LINENO: result: $LEX" >&5
6015echo "${ECHO_T}$LEX" >&6; }
6016else
6017 { echo "$as_me:$LINENO: result: no" >&5
6018echo "${ECHO_T}no" >&6; }
6019fi
6020
6021
6022 test -n "$LEX" && break
6023done
6024test -n "$LEX" || LEX=":"
6025
6026if test -z "$LEXLIB"
6027then
6028 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6029echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6030if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 ac_check_lib_save_LIBS=$LIBS
6034LIBS="-lfl $LIBS"
6035cat >conftest.$ac_ext <<_ACEOF
6036/* confdefs.h. */
6037_ACEOF
6038cat confdefs.h >>conftest.$ac_ext
6039cat >>conftest.$ac_ext <<_ACEOF
6040/* end confdefs.h. */
6041
6042/* Override any GCC internal prototype to avoid an error.
6043 Use char because int might match the return type of a GCC
6044 builtin and then its argument prototype would still apply. */
6045#ifdef __cplusplus
6046extern "C"
6047#endif
6048char yywrap ();
6049int
6050main ()
6051{
6052return yywrap ();
6053 ;
6054 return 0;
6055}
6056_ACEOF
6057rm -f conftest.$ac_objext conftest$ac_exeext
6058if { (ac_try="$ac_link"
6059case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_link") 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072 { (case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075esac
6076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_try") 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest$ac_exeext'
6082 { (case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085esac
6086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_try") 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_lib_fl_yywrap=yes
6092else
6093 echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 ac_cv_lib_fl_yywrap=no
6097fi
6098
6099rm -f core conftest.err conftest.$ac_objext \
6100 conftest$ac_exeext conftest.$ac_ext
6101LIBS=$ac_check_lib_save_LIBS
6102fi
6103{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6104echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6105if test $ac_cv_lib_fl_yywrap = yes; then
6106 LEXLIB="-lfl"
6107else
6108 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6109echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6110if test "${ac_cv_lib_l_yywrap+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112else
6113 ac_check_lib_save_LIBS=$LIBS
6114LIBS="-ll $LIBS"
6115cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h. */
6121
6122/* Override any GCC internal prototype to avoid an error.
6123 Use char because int might match the return type of a GCC
6124 builtin and then its argument prototype would still apply. */
6125#ifdef __cplusplus
6126extern "C"
6127#endif
6128char yywrap ();
6129int
6130main ()
6131{
6132return yywrap ();
6133 ;
6134 return 0;
6135}
6136_ACEOF
6137rm -f conftest.$ac_objext conftest$ac_exeext
6138if { (ac_try="$ac_link"
6139case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142esac
6143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_link") 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6152 { (case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155esac
6156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest$ac_exeext'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165esac
6166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_cv_lib_l_yywrap=yes
6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 ac_cv_lib_l_yywrap=no
6177fi
6178
6179rm -f core conftest.err conftest.$ac_objext \
6180 conftest$ac_exeext conftest.$ac_ext
6181LIBS=$ac_check_lib_save_LIBS
6182fi
6183{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6184echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6185if test $ac_cv_lib_l_yywrap = yes; then
6186 LEXLIB="-ll"
6187fi
6188
6189fi
6190
6191fi
6192
6193if test "x$LEX" != "x:"; then
6194 { echo "$as_me:$LINENO: checking lex output file root" >&5
6195echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6196if test "${ac_cv_prog_lex_root+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6198else
6199 # The minimal lex program is just a single line: %%. But some broken lexes
6200# (Solaris, I think it was) want two %% lines, so accommodate them.
6201cat >conftest.l <<_ACEOF
6202%%
6203%%
6204_ACEOF
6205{ (ac_try="$LEX conftest.l"
6206case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209esac
6210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$LEX conftest.l") 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }
6215if test -f lex.yy.c; then
6216 ac_cv_prog_lex_root=lex.yy
6217elif test -f lexyy.c; then
6218 ac_cv_prog_lex_root=lexyy
6219else
6220 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6221echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6222 { (exit 1); exit 1; }; }
6223fi
6224fi
6225{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6226echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6227rm -f conftest.l
6228LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6229
6230{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6231echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6232if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234else
6235 # POSIX says lex can declare yytext either as a pointer or an array; the
6236# default is implementation-dependent. Figure out which it is, since
6237# not all implementations provide the %pointer and %array declarations.
6238ac_cv_prog_lex_yytext_pointer=no
6239echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6240ac_save_LIBS=$LIBS
6241LIBS="$LIBS $LEXLIB"
6242cat >conftest.$ac_ext <<_ACEOF
6243`cat $LEX_OUTPUT_ROOT.c`
6244_ACEOF
6245rm -f conftest.$ac_objext conftest$ac_exeext
6246if { (ac_try="$ac_link"
6247case "(($ac_try" in
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6250esac
6251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252 (eval "$ac_link") 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6260 { (case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263esac
6264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_try") 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest$ac_exeext'
6270 { (case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273esac
6274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_try") 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 ac_cv_prog_lex_yytext_pointer=yes
6280else
6281 echo "$as_me: failed program was:" >&5
6282sed 's/^/| /' conftest.$ac_ext >&5
6283
6284
6285fi
6286
6287rm -f core conftest.err conftest.$ac_objext \
6288 conftest$ac_exeext conftest.$ac_ext
6289LIBS=$ac_save_LIBS
6290rm -f "${LEX_OUTPUT_ROOT}.c"
6291
6292fi
6293{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6294echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6295if test $ac_cv_prog_lex_yytext_pointer = yes; then
6296
6297cat >>confdefs.h <<\_ACEOF
6298#define YYTEXT_POINTER 1
6299_ACEOF
6300
6301fi
6302
6303fi
6304
6305fi
6306{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6307echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6308if test "$LEX" != "flex"; then
6309 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6310echo "$as_me: error: flex not found but required" >&2;}
6311 { (exit 1); exit 1; }; }
6312else
6313 FLEX=flex
6314
6315fi
6316
6317{ echo "$as_me:$LINENO: checking " >&5
6318echo $ECHO_N "checking ... $ECHO_C" >&6; }
6319if test "${llvm_cv_has_bison+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322 for ac_prog in 'bison -y' byacc
6323do
6324 # Extract the first word of "$ac_prog", so it can be a program name with args.
6325set dummy $ac_prog; ac_word=$2
6326{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6328if test "${ac_cv_prog_YACC+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330else
6331 if test -n "$YACC"; then
6332 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_YACC="$ac_prog"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6344 fi
6345done
6346done
6347IFS=$as_save_IFS
6348
6349fi
6350fi
6351YACC=$ac_cv_prog_YACC
6352if test -n "$YACC"; then
6353 { echo "$as_me:$LINENO: result: $YACC" >&5
6354echo "${ECHO_T}$YACC" >&6; }
6355else
6356 { echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6; }
6358fi
6359
6360
6361 test -n "$YACC" && break
6362done
6363test -n "$YACC" || YACC="yacc"
6364
6365fi
6366{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6367echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6368if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006369
6370 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6371echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006372else
6373 BISON=bison
6374
6375fi
6376
6377{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6378echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6379if test "${lt_cv_path_NM+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
6382 if test -n "$NM"; then
6383 # Let the user override the test.
6384 lt_cv_path_NM="$NM"
6385else
6386 lt_nm_to_check="${ac_tool_prefix}nm"
6387 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6388 lt_nm_to_check="$lt_nm_to_check nm"
6389 fi
6390 for lt_tmp_nm in $lt_nm_to_check; do
6391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6392 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6393 IFS="$lt_save_ifs"
6394 test -z "$ac_dir" && ac_dir=.
6395 tmp_nm="$ac_dir/$lt_tmp_nm"
6396 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6397 # Check to see if the nm accepts a BSD-compat flag.
6398 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6399 # nm: unknown option "B" ignored
6400 # Tru64's nm complains that /dev/null is an invalid object file
6401 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6402 */dev/null* | *'Invalid file or object type'*)
6403 lt_cv_path_NM="$tmp_nm -B"
6404 break
6405 ;;
6406 *)
6407 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6408 */dev/null*)
6409 lt_cv_path_NM="$tmp_nm -p"
6410 break
6411 ;;
6412 *)
6413 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6414 continue # so that we can try to find one that supports BSD flags
6415 ;;
6416 esac
6417 ;;
6418 esac
6419 fi
6420 done
6421 IFS="$lt_save_ifs"
6422 done
6423 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6424fi
6425fi
6426{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6427echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6428NM="$lt_cv_path_NM"
6429
6430
6431
6432{ echo "$as_me:$LINENO: checking for GNU make" >&5
6433echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6434if test "${llvm_cv_gnu_make_command+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436else
6437 llvm_cv_gnu_make_command=''
6438 for a in "$MAKE" make gmake gnumake ; do
6439 if test -z "$a" ; then continue ; fi ;
6440 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6441 then
6442 llvm_cv_gnu_make_command=$a ;
6443 break;
6444 fi
6445 done
6446fi
6447{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6448echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6449 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6450 ifGNUmake='' ;
6451 else
6452 ifGNUmake='#' ;
6453 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6454echo "${ECHO_T}\"Not found\"" >&6; };
6455 fi
6456
6457
6458{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6459echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6460LN_S=$as_ln_s
6461if test "$LN_S" = "ln -s"; then
6462 { echo "$as_me:$LINENO: result: yes" >&5
6463echo "${ECHO_T}yes" >&6; }
6464else
6465 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6466echo "${ECHO_T}no, using $LN_S" >&6; }
6467fi
6468
6469# Extract the first word of "cmp", so it can be a program name with args.
6470set dummy cmp; ac_word=$2
6471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6473if test "${ac_cv_path_CMP+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476 case $CMP in
6477 [\\/]* | ?:[\\/]*)
6478 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6479 ;;
6480 *)
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492done
6493done
6494IFS=$as_save_IFS
6495
6496 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6497 ;;
6498esac
6499fi
6500CMP=$ac_cv_path_CMP
6501if test -n "$CMP"; then
6502 { echo "$as_me:$LINENO: result: $CMP" >&5
6503echo "${ECHO_T}$CMP" >&6; }
6504else
6505 { echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6; }
6507fi
6508
6509
6510# Extract the first word of "cp", so it can be a program name with args.
6511set dummy cp; ac_word=$2
6512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514if test "${ac_cv_path_CP+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516else
6517 case $CP in
6518 [\\/]* | ?:[\\/]*)
6519 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6520 ;;
6521 *)
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6532 fi
6533done
6534done
6535IFS=$as_save_IFS
6536
6537 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6538 ;;
6539esac
6540fi
6541CP=$ac_cv_path_CP
6542if test -n "$CP"; then
6543 { echo "$as_me:$LINENO: result: $CP" >&5
6544echo "${ECHO_T}$CP" >&6; }
6545else
6546 { echo "$as_me:$LINENO: result: no" >&5
6547echo "${ECHO_T}no" >&6; }
6548fi
6549
6550
6551# Extract the first word of "date", so it can be a program name with args.
6552set dummy date; ac_word=$2
6553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6555if test "${ac_cv_path_DATE+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557else
6558 case $DATE in
6559 [\\/]* | ?:[\\/]*)
6560 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6561 ;;
6562 *)
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574done
6575done
6576IFS=$as_save_IFS
6577
6578 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6579 ;;
6580esac
6581fi
6582DATE=$ac_cv_path_DATE
6583if test -n "$DATE"; then
6584 { echo "$as_me:$LINENO: result: $DATE" >&5
6585echo "${ECHO_T}$DATE" >&6; }
6586else
6587 { echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6; }
6589fi
6590
6591
6592# Extract the first word of "find", so it can be a program name with args.
6593set dummy find; ac_word=$2
6594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596if test "${ac_cv_path_FIND+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598else
6599 case $FIND in
6600 [\\/]* | ?:[\\/]*)
6601 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6602 ;;
6603 *)
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605for as_dir in $PATH
6606do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615done
6616done
6617IFS=$as_save_IFS
6618
6619 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6620 ;;
6621esac
6622fi
6623FIND=$ac_cv_path_FIND
6624if test -n "$FIND"; then
6625 { echo "$as_me:$LINENO: result: $FIND" >&5
6626echo "${ECHO_T}$FIND" >&6; }
6627else
6628 { echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6; }
6630fi
6631
6632
6633# Extract the first word of "grep", so it can be a program name with args.
6634set dummy grep; ac_word=$2
6635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6637if test "${ac_cv_path_GREP+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639else
6640 case $GREP in
6641 [\\/]* | ?:[\\/]*)
6642 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6643 ;;
6644 *)
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656done
6657done
6658IFS=$as_save_IFS
6659
6660 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6661 ;;
6662esac
6663fi
6664GREP=$ac_cv_path_GREP
6665if test -n "$GREP"; then
6666 { echo "$as_me:$LINENO: result: $GREP" >&5
6667echo "${ECHO_T}$GREP" >&6; }
6668else
6669 { echo "$as_me:$LINENO: result: no" >&5
6670echo "${ECHO_T}no" >&6; }
6671fi
6672
6673
6674# Extract the first word of "mkdir", so it can be a program name with args.
6675set dummy mkdir; ac_word=$2
6676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678if test "${ac_cv_path_MKDIR+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6680else
6681 case $MKDIR in
6682 [\\/]* | ?:[\\/]*)
6683 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6684 ;;
6685 *)
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697done
6698done
6699IFS=$as_save_IFS
6700
6701 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6702 ;;
6703esac
6704fi
6705MKDIR=$ac_cv_path_MKDIR
6706if test -n "$MKDIR"; then
6707 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6708echo "${ECHO_T}$MKDIR" >&6; }
6709else
6710 { echo "$as_me:$LINENO: result: no" >&5
6711echo "${ECHO_T}no" >&6; }
6712fi
6713
6714
6715# Extract the first word of "mv", so it can be a program name with args.
6716set dummy mv; ac_word=$2
6717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719if test "${ac_cv_path_MV+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721else
6722 case $MV in
6723 [\\/]* | ?:[\\/]*)
6724 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6725 ;;
6726 *)
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738done
6739done
6740IFS=$as_save_IFS
6741
6742 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6743 ;;
6744esac
6745fi
6746MV=$ac_cv_path_MV
6747if test -n "$MV"; then
6748 { echo "$as_me:$LINENO: result: $MV" >&5
6749echo "${ECHO_T}$MV" >&6; }
6750else
6751 { echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6; }
6753fi
6754
6755
6756if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6758set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761if test "${ac_cv_prog_RANLIB+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764 if test -n "$RANLIB"; then
6765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778done
6779done
6780IFS=$as_save_IFS
6781
6782fi
6783fi
6784RANLIB=$ac_cv_prog_RANLIB
6785if test -n "$RANLIB"; then
6786 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6787echo "${ECHO_T}$RANLIB" >&6; }
6788else
6789 { echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6; }
6791fi
6792
6793
6794fi
6795if test -z "$ac_cv_prog_RANLIB"; then
6796 ac_ct_RANLIB=$RANLIB
6797 # Extract the first word of "ranlib", so it can be a program name with args.
6798set dummy ranlib; ac_word=$2
6799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804 if test -n "$ac_ct_RANLIB"; then
6805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_ac_ct_RANLIB="ranlib"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6825if test -n "$ac_ct_RANLIB"; then
6826 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6827echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6828else
6829 { echo "$as_me:$LINENO: result: no" >&5
6830echo "${ECHO_T}no" >&6; }
6831fi
6832
6833 if test "x$ac_ct_RANLIB" = x; then
6834 RANLIB=":"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837yes:)
6838{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6839whose name does not start with the host triplet. If you think this
6840configuration is useful to you, please write to autoconf@gnu.org." >&5
6841echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6842whose name does not start with the host triplet. If you think this
6843configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6844ac_tool_warned=yes ;;
6845esac
6846 RANLIB=$ac_ct_RANLIB
6847 fi
6848else
6849 RANLIB="$ac_cv_prog_RANLIB"
6850fi
6851
6852# Extract the first word of "rm", so it can be a program name with args.
6853set dummy rm; ac_word=$2
6854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856if test "${ac_cv_path_RM+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6858else
6859 case $RM in
6860 [\\/]* | ?:[\\/]*)
6861 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6862 ;;
6863 *)
6864 as_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_path_RM="$as_dir/$ac_word$ac_exec_ext"
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
6879 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6880 ;;
6881esac
6882fi
6883RM=$ac_cv_path_RM
6884if test -n "$RM"; then
6885 { echo "$as_me:$LINENO: result: $RM" >&5
6886echo "${ECHO_T}$RM" >&6; }
6887else
6888 { echo "$as_me:$LINENO: result: no" >&5
6889echo "${ECHO_T}no" >&6; }
6890fi
6891
6892
6893# Extract the first word of "sed", so it can be a program name with args.
6894set dummy sed; ac_word=$2
6895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897if test "${ac_cv_path_SED+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899else
6900 case $SED in
6901 [\\/]* | ?:[\\/]*)
6902 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6903 ;;
6904 *)
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916done
6917done
6918IFS=$as_save_IFS
6919
6920 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6921 ;;
6922esac
6923fi
6924SED=$ac_cv_path_SED
6925if test -n "$SED"; then
6926 { echo "$as_me:$LINENO: result: $SED" >&5
6927echo "${ECHO_T}$SED" >&6; }
6928else
6929 { echo "$as_me:$LINENO: result: no" >&5
6930echo "${ECHO_T}no" >&6; }
6931fi
6932
6933
6934# Extract the first word of "tar", so it can be a program name with args.
6935set dummy tar; ac_word=$2
6936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6938if test "${ac_cv_path_TAR+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940else
6941 case $TAR in
6942 [\\/]* | ?:[\\/]*)
6943 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6944 ;;
6945 *)
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957done
6958done
6959IFS=$as_save_IFS
6960
6961 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6962 ;;
6963esac
6964fi
6965TAR=$ac_cv_path_TAR
6966if test -n "$TAR"; then
6967 { echo "$as_me:$LINENO: result: $TAR" >&5
6968echo "${ECHO_T}$TAR" >&6; }
6969else
6970 { echo "$as_me:$LINENO: result: no" >&5
6971echo "${ECHO_T}no" >&6; }
6972fi
6973
6974
6975# Extract the first word of "pwd", so it can be a program name with args.
6976set dummy pwd; ac_word=$2
6977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6979if test "${ac_cv_path_BINPWD+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982 case $BINPWD in
6983 [\\/]* | ?:[\\/]*)
6984 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6985 ;;
6986 *)
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6994 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998done
6999done
7000IFS=$as_save_IFS
7001
7002 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7003 ;;
7004esac
7005fi
7006BINPWD=$ac_cv_path_BINPWD
7007if test -n "$BINPWD"; then
7008 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7009echo "${ECHO_T}$BINPWD" >&6; }
7010else
7011 { echo "$as_me:$LINENO: result: no" >&5
7012echo "${ECHO_T}no" >&6; }
7013fi
7014
7015
7016
7017# Extract the first word of "Graphviz", so it can be a program name with args.
7018set dummy Graphviz; ac_word=$2
7019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024 case $GRAPHVIZ in
7025 [\\/]* | ?:[\\/]*)
7026 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7027 ;;
7028 *)
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040done
7041done
7042IFS=$as_save_IFS
7043
7044 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7045 ;;
7046esac
7047fi
7048GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7049if test -n "$GRAPHVIZ"; then
7050 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7051echo "${ECHO_T}$GRAPHVIZ" >&6; }
7052else
7053 { echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6; }
7055fi
7056
7057
7058if test "$GRAPHVIZ" != "echo Graphviz" ; then
7059
7060cat >>confdefs.h <<\_ACEOF
7061#define HAVE_GRAPHVIZ 1
7062_ACEOF
7063
7064 if test "$llvm_cv_os_type" == "MingW" ; then
7065 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7066 fi
7067
7068cat >>confdefs.h <<_ACEOF
7069#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7070_ACEOF
7071
7072fi
7073# Extract the first word of "dot", so it can be a program name with args.
7074set dummy dot; ac_word=$2
7075{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7077if test "${ac_cv_path_DOT+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079else
7080 case $DOT in
7081 [\\/]* | ?:[\\/]*)
7082 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7083 ;;
7084 *)
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086for as_dir in $PATH
7087do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7092 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096done
7097done
7098IFS=$as_save_IFS
7099
7100 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7101 ;;
7102esac
7103fi
7104DOT=$ac_cv_path_DOT
7105if test -n "$DOT"; then
7106 { echo "$as_me:$LINENO: result: $DOT" >&5
7107echo "${ECHO_T}$DOT" >&6; }
7108else
7109 { echo "$as_me:$LINENO: result: no" >&5
7110echo "${ECHO_T}no" >&6; }
7111fi
7112
7113
7114if test "$DOT" != "echo dot" ; then
7115
7116cat >>confdefs.h <<\_ACEOF
7117#define HAVE_DOT 1
7118_ACEOF
7119
7120 if test "$llvm_cv_os_type" == "MingW" ; then
7121 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7122 fi
7123
7124cat >>confdefs.h <<_ACEOF
7125#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7126_ACEOF
7127
7128fi
7129for ac_prog in gv gsview32
7130do
7131 # Extract the first word of "$ac_prog", so it can be a program name with args.
7132set dummy $ac_prog; ac_word=$2
7133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135if test "${ac_cv_path_GV+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138 case $GV in
7139 [\\/]* | ?:[\\/]*)
7140 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7141 ;;
7142 *)
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154done
7155done
7156IFS=$as_save_IFS
7157
7158 ;;
7159esac
7160fi
7161GV=$ac_cv_path_GV
7162if test -n "$GV"; then
7163 { echo "$as_me:$LINENO: result: $GV" >&5
7164echo "${ECHO_T}$GV" >&6; }
7165else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6; }
7168fi
7169
7170
7171 test -n "$GV" && break
7172done
7173test -n "$GV" || GV="echo gv"
7174
7175if test "$GV" != "echo gv" ; then
7176
7177cat >>confdefs.h <<\_ACEOF
7178#define HAVE_GV 1
7179_ACEOF
7180
7181 if test "$llvm_cv_os_type" == "MingW" ; then
7182 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7183 fi
7184
7185cat >>confdefs.h <<_ACEOF
7186#define LLVM_PATH_GV "$GV${EXEEXT}"
7187_ACEOF
7188
7189fi
7190# Extract the first word of "dotty", so it can be a program name with args.
7191set dummy dotty; ac_word=$2
7192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194if test "${ac_cv_path_DOTTY+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197 case $DOTTY in
7198 [\\/]* | ?:[\\/]*)
7199 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7200 ;;
7201 *)
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213done
7214done
7215IFS=$as_save_IFS
7216
7217 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7218 ;;
7219esac
7220fi
7221DOTTY=$ac_cv_path_DOTTY
7222if test -n "$DOTTY"; then
7223 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7224echo "${ECHO_T}$DOTTY" >&6; }
7225else
7226 { echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6; }
7228fi
7229
7230
7231if test "$DOTTY" != "echo dotty" ; then
7232
7233cat >>confdefs.h <<\_ACEOF
7234#define HAVE_DOTTY 1
7235_ACEOF
7236
7237 if test "$llvm_cv_os_type" == "MingW" ; then
7238 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7239 fi
7240
7241cat >>confdefs.h <<_ACEOF
7242#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7243_ACEOF
7244
7245fi
7246
7247
7248# Extract the first word of "perl", so it can be a program name with args.
7249set dummy perl; ac_word=$2
7250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252if test "${ac_cv_path_PERL+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else
7255 case $PERL in
7256 [\\/]* | ?:[\\/]*)
7257 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7258 ;;
7259 *)
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271done
7272done
7273IFS=$as_save_IFS
7274
7275 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7276 ;;
7277esac
7278fi
7279PERL=$ac_cv_path_PERL
7280if test -n "$PERL"; then
7281 { echo "$as_me:$LINENO: result: $PERL" >&5
7282echo "${ECHO_T}$PERL" >&6; }
7283else
7284 { echo "$as_me:$LINENO: result: no" >&5
7285echo "${ECHO_T}no" >&6; }
7286fi
7287
7288
7289if test "$PERL" != "none"; then
7290 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7291echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7292 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7293 { echo "$as_me:$LINENO: result: yes" >&5
7294echo "${ECHO_T}yes" >&6; }
7295 else
7296 PERL=none
7297 { echo "$as_me:$LINENO: result: not found" >&5
7298echo "${ECHO_T}not found" >&6; }
7299 fi
7300fi
7301
7302
7303if test x"$PERL" = xnone; then
7304 HAVE_PERL=0
7305
7306else
7307 HAVE_PERL=1
7308
7309fi
7310
7311# Find a good install program. We prefer a C program (faster),
7312# so one script is as good as another. But avoid the broken or
7313# incompatible versions:
7314# SysV /etc/install, /usr/sbin/install
7315# SunOS /usr/etc/install
7316# IRIX /sbin/install
7317# AIX /bin/install
7318# AmigaOS /C/install, which installs bootblocks on floppy discs
7319# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7320# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7321# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7322# OS/2's system install, which has a completely different semantic
7323# ./install, which can be erroneously created by make from ./install.sh.
7324{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7325echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7326if test -z "$INSTALL"; then
7327if test "${ac_cv_path_install+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 # Account for people who put trailing slashes in PATH elements.
7336case $as_dir/ in
7337 ./ | .// | /cC/* | \
7338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7339 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7340 /usr/ucb/* ) ;;
7341 *)
7342 # OSF1 and SCO ODT 3.0 have their own names for install.
7343 # Don't use installbsd from OSF since it installs stuff as root
7344 # by default.
7345 for ac_prog in ginstall scoinst install; do
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7348 if test $ac_prog = install &&
7349 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7350 # AIX install. It has an incompatible calling convention.
7351 :
7352 elif test $ac_prog = install &&
7353 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7354 # program-specific install script used by HP pwplus--don't use.
7355 :
7356 else
7357 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7358 break 3
7359 fi
7360 fi
7361 done
7362 done
7363 ;;
7364esac
7365done
7366IFS=$as_save_IFS
7367
7368
7369fi
7370 if test "${ac_cv_path_install+set}" = set; then
7371 INSTALL=$ac_cv_path_install
7372 else
7373 # As a last resort, use the slow shell script. Don't cache a
7374 # value for INSTALL within a source directory, because that will
7375 # break other packages using the cache if that directory is
7376 # removed, or if the value is a relative name.
7377 INSTALL=$ac_install_sh
7378 fi
7379fi
7380{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7381echo "${ECHO_T}$INSTALL" >&6; }
7382
7383# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7384# It thinks the first close brace ends the variable substitution.
7385test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7386
7387test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7388
7389test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7390
7391
7392# Extract the first word of "bzip2", so it can be a program name with args.
7393set dummy bzip2; ac_word=$2
7394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396if test "${ac_cv_path_BZIP2+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398else
7399 case $BZIP2 in
7400 [\\/]* | ?:[\\/]*)
7401 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7402 ;;
7403 *)
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415done
7416done
7417IFS=$as_save_IFS
7418
7419 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7420 ;;
7421esac
7422fi
7423BZIP2=$ac_cv_path_BZIP2
7424if test -n "$BZIP2"; then
7425 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7426echo "${ECHO_T}$BZIP2" >&6; }
7427else
7428 { echo "$as_me:$LINENO: result: no" >&5
7429echo "${ECHO_T}no" >&6; }
7430fi
7431
7432
7433# Extract the first word of "doxygen", so it can be a program name with args.
7434set dummy doxygen; ac_word=$2
7435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437if test "${ac_cv_path_DOXYGEN+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440 case $DOXYGEN in
7441 [\\/]* | ?:[\\/]*)
7442 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7443 ;;
7444 *)
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456done
7457done
7458IFS=$as_save_IFS
7459
7460 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7461 ;;
7462esac
7463fi
7464DOXYGEN=$ac_cv_path_DOXYGEN
7465if test -n "$DOXYGEN"; then
7466 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7467echo "${ECHO_T}$DOXYGEN" >&6; }
7468else
7469 { echo "$as_me:$LINENO: result: no" >&5
7470echo "${ECHO_T}no" >&6; }
7471fi
7472
7473
Reid Spencera773bd52006-08-04 18:18:08 +00007474# Extract the first word of "groff", so it can be a program name with args.
7475set dummy groff; ac_word=$2
7476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478if test "${ac_cv_path_GROFF+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481 case $GROFF in
7482 [\\/]* | ?:[\\/]*)
7483 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7484 ;;
7485 *)
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497done
7498done
7499IFS=$as_save_IFS
7500
7501 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7502 ;;
7503esac
7504fi
7505GROFF=$ac_cv_path_GROFF
7506if test -n "$GROFF"; then
7507 { echo "$as_me:$LINENO: result: $GROFF" >&5
7508echo "${ECHO_T}$GROFF" >&6; }
7509else
7510 { echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6; }
7512fi
7513
7514
7515# Extract the first word of "gzip", so it can be a program name with args.
7516set dummy gzip; ac_word=$2
7517{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519if test "${ac_cv_path_GZIP+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521else
7522 case $GZIP in
7523 [\\/]* | ?:[\\/]*)
7524 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7525 ;;
7526 *)
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7534 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 break 2
7537 fi
7538done
7539done
7540IFS=$as_save_IFS
7541
7542 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7543 ;;
7544esac
7545fi
7546GZIP=$ac_cv_path_GZIP
7547if test -n "$GZIP"; then
7548 { echo "$as_me:$LINENO: result: $GZIP" >&5
7549echo "${ECHO_T}$GZIP" >&6; }
7550else
7551 { echo "$as_me:$LINENO: result: no" >&5
7552echo "${ECHO_T}no" >&6; }
7553fi
7554
7555
7556# Extract the first word of "pod2html", so it can be a program name with args.
7557set dummy pod2html; ac_word=$2
7558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560if test "${ac_cv_path_POD2HTML+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 case $POD2HTML in
7564 [\\/]* | ?:[\\/]*)
7565 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7566 ;;
7567 *)
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569for as_dir in $PATH
7570do
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7578 fi
7579done
7580done
7581IFS=$as_save_IFS
7582
7583 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7584 ;;
7585esac
7586fi
7587POD2HTML=$ac_cv_path_POD2HTML
7588if test -n "$POD2HTML"; then
7589 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7590echo "${ECHO_T}$POD2HTML" >&6; }
7591else
7592 { echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6; }
7594fi
7595
7596
7597# Extract the first word of "pod2man", so it can be a program name with args.
7598set dummy pod2man; ac_word=$2
7599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_POD2MAN+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604 case $POD2MAN in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
7621done
7622IFS=$as_save_IFS
7623
7624 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7625 ;;
7626esac
7627fi
7628POD2MAN=$ac_cv_path_POD2MAN
7629if test -n "$POD2MAN"; then
7630 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7631echo "${ECHO_T}$POD2MAN" >&6; }
7632else
7633 { echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6; }
7635fi
7636
7637
7638# Extract the first word of "runtest", so it can be a program name with args.
7639set dummy runtest; ac_word=$2
7640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642if test "${ac_cv_path_RUNTEST+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644else
7645 case $RUNTEST in
7646 [\\/]* | ?:[\\/]*)
7647 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7648 ;;
7649 *)
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661done
7662done
7663IFS=$as_save_IFS
7664
7665 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7666 ;;
7667esac
7668fi
7669RUNTEST=$ac_cv_path_RUNTEST
7670if test -n "$RUNTEST"; then
7671 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7672echo "${ECHO_T}$RUNTEST" >&6; }
7673else
7674 { echo "$as_me:$LINENO: result: no" >&5
7675echo "${ECHO_T}no" >&6; }
7676fi
7677
7678
7679
7680no_itcl=true
7681{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7682echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7683
7684# Check whether --with-tclinclude was given.
7685if test "${with_tclinclude+set}" = set; then
7686 withval=$with_tclinclude; with_tclinclude=${withval}
7687else
7688 with_tclinclude=''
7689fi
7690
7691if test "${ac_cv_path_tclsh+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7693else
7694
7695if test x"${with_tclinclude}" != x ; then
7696 if test -f ${with_tclinclude}/tclsh ; then
7697 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7698 elif test -f ${with_tclinclude}/src/tclsh ; then
7699 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7700 else
7701 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7702echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7703 { (exit 1); exit 1; }; }
7704 fi
7705fi
7706
7707if test x"${ac_cv_path_tclsh}" = x ; then
7708 { echo "$as_me:$LINENO: result: none" >&5
7709echo "${ECHO_T}none" >&6; }
7710 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
7711do
7712 # Extract the first word of "$ac_prog", so it can be a program name with args.
7713set dummy $ac_prog; ac_word=$2
7714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716if test "${ac_cv_path_TCLSH+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719 case $TCLSH in
7720 [\\/]* | ?:[\\/]*)
7721 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7722 ;;
7723 *)
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735done
7736done
7737IFS=$as_save_IFS
7738
7739 ;;
7740esac
7741fi
7742TCLSH=$ac_cv_path_TCLSH
7743if test -n "$TCLSH"; then
7744 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7745echo "${ECHO_T}$TCLSH" >&6; }
7746else
7747 { echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6; }
7749fi
7750
7751
7752 test -n "$TCLSH" && break
7753done
7754
7755 if test x"${TCLSH}" = x ; then
7756 ac_cv_path_tclsh='';
7757 else
7758 ac_cv_path_tclsh="${TCLSH}";
7759 fi
7760else
7761 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7762echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7763 TCLSH="${ac_cv_path_tclsh}"
7764
7765fi
7766
7767fi
7768
7769# Extract the first word of "zip", so it can be a program name with args.
7770set dummy zip; ac_word=$2
7771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773if test "${ac_cv_path_ZIP+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776 case $ZIP in
7777 [\\/]* | ?:[\\/]*)
7778 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7779 ;;
7780 *)
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7788 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792done
7793done
7794IFS=$as_save_IFS
7795
7796 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7797 ;;
7798esac
7799fi
7800ZIP=$ac_cv_path_ZIP
7801if test -n "$ZIP"; then
7802 { echo "$as_me:$LINENO: result: $ZIP" >&5
7803echo "${ECHO_T}$ZIP" >&6; }
7804else
7805 { echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6; }
7807fi
7808
7809
7810
7811{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7812echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7813if test "${llvm_cv_link_use_r+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815else
7816 ac_ext=c
7817ac_cpp='$CPP $CPPFLAGS'
7818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822 oldcflags="$CFLAGS"
7823 CFLAGS="$CFLAGS -Wl,-R."
7824 cat >conftest.$ac_ext <<_ACEOF
7825/* confdefs.h. */
7826_ACEOF
7827cat confdefs.h >>conftest.$ac_ext
7828cat >>conftest.$ac_ext <<_ACEOF
7829/* end confdefs.h. */
7830
7831int
7832main ()
7833{
7834int main() { return 0; }
7835 ;
7836 return 0;
7837}
7838_ACEOF
7839rm -f conftest.$ac_objext conftest$ac_exeext
7840if { (ac_try="$ac_link"
7841case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844esac
7845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846 (eval "$ac_link") 2>conftest.er1
7847 ac_status=$?
7848 grep -v '^ *+' conftest.er1 >conftest.err
7849 rm -f conftest.er1
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; } &&
7863 { ac_try='test -s conftest$ac_exeext'
7864 { (case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_try") 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
7873 llvm_cv_link_use_r=yes
7874else
7875 echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 llvm_cv_link_use_r=no
7879fi
7880
7881rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 CFLAGS="$oldcflags"
7884 ac_ext=c
7885ac_cpp='$CPP $CPPFLAGS'
7886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7888ac_compiler_gnu=$ac_cv_c_compiler_gnu
7889
7890
7891fi
7892{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7893echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7894if test "$llvm_cv_link_use_r" = yes ; then
7895
7896cat >>confdefs.h <<\_ACEOF
7897#define HAVE_LINK_R 1
7898_ACEOF
7899
7900 fi
7901
7902
7903
7904
7905{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7906echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7907if test "${ac_cv_c_const+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910 cat >conftest.$ac_ext <<_ACEOF
7911/* confdefs.h. */
7912_ACEOF
7913cat confdefs.h >>conftest.$ac_ext
7914cat >>conftest.$ac_ext <<_ACEOF
7915/* end confdefs.h. */
7916
7917int
7918main ()
7919{
7920/* FIXME: Include the comments suggested by Paul. */
7921#ifndef __cplusplus
7922 /* Ultrix mips cc rejects this. */
7923 typedef int charset[2];
7924 const charset x;
7925 /* SunOS 4.1.1 cc rejects this. */
7926 char const *const *ccp;
7927 char **p;
7928 /* NEC SVR4.0.2 mips cc rejects this. */
7929 struct point {int x, y;};
7930 static struct point const zero = {0,0};
7931 /* AIX XL C 1.02.0.0 rejects this.
7932 It does not let you subtract one const X* pointer from another in
7933 an arm of an if-expression whose if-part is not a constant
7934 expression */
7935 const char *g = "string";
7936 ccp = &g + (g ? g-g : 0);
7937 /* HPUX 7.0 cc rejects these. */
7938 ++ccp;
7939 p = (char**) ccp;
7940 ccp = (char const *const *) p;
7941 { /* SCO 3.2v4 cc rejects this. */
7942 char *t;
7943 char const *s = 0 ? (char *) 0 : (char const *) 0;
7944
7945 *t++ = 0;
7946 if (s) return 0;
7947 }
7948 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7949 int x[] = {25, 17};
7950 const int *foo = &x[0];
7951 ++foo;
7952 }
7953 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7954 typedef const int *iptr;
7955 iptr p = 0;
7956 ++p;
7957 }
7958 { /* AIX XL C 1.02.0.0 rejects this saying
7959 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7960 struct s { int j; const int *ap[3]; };
7961 struct s *b; b->j = 5;
7962 }
7963 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7964 const int foo = 10;
7965 if (!foo) return 0;
7966 }
7967 return !x[0] && !zero.x;
7968#endif
7969
7970 ;
7971 return 0;
7972}
7973_ACEOF
7974rm -f conftest.$ac_objext
7975if { (ac_try="$ac_compile"
7976case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979esac
7980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7989 { (case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992esac
7993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_try") 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest.$ac_objext'
7999 { (case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8002esac
8003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_try") 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_c_const=yes
8009else
8010 echo "$as_me: failed program was:" >&5
8011sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ac_cv_c_const=no
8014fi
8015
8016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017fi
8018{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8019echo "${ECHO_T}$ac_cv_c_const" >&6; }
8020if test $ac_cv_c_const = no; then
8021
8022cat >>confdefs.h <<\_ACEOF
8023#define const
8024_ACEOF
8025
8026fi
8027
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008028
8029
8030
8031
8032
8033ac_header_dirent=no
8034for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8035 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008036{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8037echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041 cat >conftest.$ac_ext <<_ACEOF
8042/* confdefs.h. */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h. */
8047#include <sys/types.h>
8048#include <$ac_hdr>
8049
8050int
8051main ()
8052{
8053if ((DIR *) 0)
8054return 0;
8055 ;
8056 return 0;
8057}
8058_ACEOF
8059rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008060if { (ac_try="$ac_compile"
8061case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064esac
8065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077esac
8078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008084 { (case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087esac
8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 eval "$as_ac_Header=yes"
8094else
8095 echo "$as_me: failed program was:" >&5
8096sed 's/^/| /' conftest.$ac_ext >&5
8097
Reid Spencera773bd52006-08-04 18:18:08 +00008098 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008099fi
Reid Spencera773bd52006-08-04 18:18:08 +00008100
8101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008102fi
Reid Spencera773bd52006-08-04 18:18:08 +00008103ac_res=`eval echo '${'$as_ac_Header'}'`
8104 { echo "$as_me:$LINENO: result: $ac_res" >&5
8105echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008106if test `eval echo '${'$as_ac_Header'}'` = yes; then
8107 cat >>confdefs.h <<_ACEOF
8108#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8109_ACEOF
8110
8111ac_header_dirent=$ac_hdr; break
8112fi
8113
8114done
8115# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8116if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8118echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008119if test "${ac_cv_search_opendir+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008123cat >conftest.$ac_ext <<_ACEOF
8124/* confdefs.h. */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h. */
8129
Reid Spencera773bd52006-08-04 18:18:08 +00008130/* Override any GCC internal prototype to avoid an error.
8131 Use char because int might match the return type of a GCC
8132 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008133#ifdef __cplusplus
8134extern "C"
8135#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008136char opendir ();
8137int
8138main ()
8139{
Reid Spencera773bd52006-08-04 18:18:08 +00008140return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008141 ;
8142 return 0;
8143}
8144_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008145for ac_lib in '' dir; do
8146 if test -z "$ac_lib"; then
8147 ac_res="none required"
8148 else
8149 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008151 fi
8152 rm -f conftest.$ac_objext conftest$ac_exeext
8153if { (ac_try="$ac_link"
8154case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157esac
8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8167 { (case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170esac
8171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008177 { (case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180esac
8181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008186 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008187else
8188 echo "$as_me: failed program was:" >&5
8189sed 's/^/| /' conftest.$ac_ext >&5
8190
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008191
8192fi
8193
Reid Spencera773bd52006-08-04 18:18:08 +00008194rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext
8196 if test "${ac_cv_search_opendir+set}" = set; then
8197 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008198fi
John Criswell7a73b802003-06-30 21:59:07 +00008199done
Reid Spencera773bd52006-08-04 18:18:08 +00008200if test "${ac_cv_search_opendir+set}" = set; then
8201 :
8202else
8203 ac_cv_search_opendir=no
8204fi
8205rm conftest.$ac_ext
8206LIBS=$ac_func_search_save_LIBS
8207fi
8208{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8209echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8210ac_res=$ac_cv_search_opendir
8211if test "$ac_res" != no; then
8212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008213
Reid Spencera773bd52006-08-04 18:18:08 +00008214fi
8215
8216else
8217 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8218echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8219if test "${ac_cv_search_opendir+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222 ac_func_search_save_LIBS=$LIBS
8223cat >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
8230/* 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. */
8233#ifdef __cplusplus
8234extern "C"
8235#endif
8236char opendir ();
8237int
8238main ()
8239{
8240return opendir ();
8241 ;
8242 return 0;
8243}
8244_ACEOF
8245for ac_lib in '' x; do
8246 if test -z "$ac_lib"; then
8247 ac_res="none required"
8248 else
8249 ac_res=-l$ac_lib
8250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8251 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
8260 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); } &&
8266 { 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
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest$ac_exeext'
8277 { (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
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 ac_cv_search_opendir=$ac_res
8287else
8288 echo "$as_me: failed program was:" >&5
8289sed 's/^/| /' conftest.$ac_ext >&5
8290
8291
8292fi
8293
8294rm -f core conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext
8296 if test "${ac_cv_search_opendir+set}" = set; then
8297 break
8298fi
8299done
8300if 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"
8313
8314fi
8315
8316fi
John Criswell7a73b802003-06-30 21:59:07 +00008317
8318
8319for ac_header in dlfcn.h
8320do
8321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008326 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008327fi
Reid Spencera773bd52006-08-04 18:18:08 +00008328ac_res=`eval echo '${'$as_ac_Header'}'`
8329 { echo "$as_me:$LINENO: result: $ac_res" >&5
8330echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008331else
Brian Gaeke0a621332004-09-08 20:38:05 +00008332 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008333{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008335cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008336/* confdefs.h. */
8337_ACEOF
8338cat confdefs.h >>conftest.$ac_ext
8339cat >>conftest.$ac_ext <<_ACEOF
8340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008341$ac_includes_default
8342#include <$ac_header>
8343_ACEOF
8344rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008345if { (ac_try="$ac_compile"
8346case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8349esac
8350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008352 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372esac
8373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008378 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008379else
8380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008381sed 's/^/| /' conftest.$ac_ext >&5
8382
Reid Spencera773bd52006-08-04 18:18:08 +00008383 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008384fi
Reid Spencera773bd52006-08-04 18:18:08 +00008385
8386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8388echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008389
8390# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008391{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8392echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008393cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008394/* confdefs.h. */
8395_ACEOF
8396cat confdefs.h >>conftest.$ac_ext
8397cat >>conftest.$ac_ext <<_ACEOF
8398/* end confdefs.h. */
8399#include <$ac_header>
8400_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008401if { (ac_try="$ac_cpp conftest.$ac_ext"
8402case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405esac
8406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } >/dev/null; then
8414 if test -s conftest.err; then
8415 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008417 else
8418 ac_cpp_err=
8419 fi
8420else
8421 ac_cpp_err=yes
8422fi
8423if test -z "$ac_cpp_err"; then
8424 ac_header_preproc=yes
8425else
8426 echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429 ac_header_preproc=no
8430fi
Reid Spencera773bd52006-08-04 18:18:08 +00008431
Brian Gaeke0a621332004-09-08 20:38:05 +00008432rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008433{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008435
8436# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8438 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8443 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008444 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008445 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8453echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008458 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008459## ----------------------------------- ##
8460## Report this to llvmbugs@cs.uiuc.edu ##
8461## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008462_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008463 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008464 ;;
8465esac
Reid Spencera773bd52006-08-04 18:18:08 +00008466{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008469 echo $ECHO_N "(cached) $ECHO_C" >&6
8470else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008471 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008472fi
Reid Spencera773bd52006-08-04 18:18:08 +00008473ac_res=`eval echo '${'$as_ac_Header'}'`
8474 { echo "$as_me:$LINENO: result: $ac_res" >&5
8475echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008476
8477fi
John Criswell7a73b802003-06-30 21:59:07 +00008478if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481_ACEOF
8482
8483fi
8484
8485done
8486
Reid Spencera773bd52006-08-04 18:18:08 +00008487# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008488if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008489 enableval=$enable_ltdl_install;
8490fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008491
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008492
8493
8494
8495if test x"${enable_ltdl_install-no}" != xno; then
8496 INSTALL_LTDL_TRUE=
8497 INSTALL_LTDL_FALSE='#'
8498else
8499 INSTALL_LTDL_TRUE='#'
8500 INSTALL_LTDL_FALSE=
8501fi
8502
8503
8504
8505if test x"${enable_ltdl_convenience-no}" != xno; then
8506 CONVENIENCE_LTDL_TRUE=
8507 CONVENIENCE_LTDL_FALSE='#'
8508else
8509 CONVENIENCE_LTDL_TRUE='#'
8510 CONVENIENCE_LTDL_FALSE=
8511fi
8512
8513
Reid Spencera773bd52006-08-04 18:18:08 +00008514{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8515echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008516library_names_spec=
8517libname_spec='lib$name'
8518soname_spec=
8519shrext_cmds=".so"
8520postinstall_cmds=
8521postuninstall_cmds=
8522finish_cmds=
8523finish_eval=
8524shlibpath_var=
8525shlibpath_overrides_runpath=unknown
8526version_type=none
8527dynamic_linker="$host_os ld.so"
8528sys_lib_dlsearch_path_spec="/lib /usr/lib"
8529if test "$GCC" = yes; then
8530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8531 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8532 # if the path contains ";" then we assume it to be the separator
8533 # otherwise default to the standard path separator (i.e. ":") - it is
8534 # assumed that no part of a normal pathname contains ";" but that should
8535 # okay in the real world where ";" in dirpaths is itself problematic.
8536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8537 else
8538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8539 fi
8540else
8541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8542fi
8543need_lib_prefix=unknown
8544hardcode_into_libs=no
8545
8546# when you set need_version to no, make sure it does not cause -set_version
8547# flags to be left without arguments
8548need_version=unknown
8549
8550case $host_os in
8551aix3*)
8552 version_type=linux
8553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8554 shlibpath_var=LIBPATH
8555
8556 # AIX 3 has no versioning support, so we append a major version to the name.
8557 soname_spec='${libname}${release}${shared_ext}$major'
8558 ;;
8559
8560aix4* | aix5*)
8561 version_type=linux
8562 need_lib_prefix=no
8563 need_version=no
8564 hardcode_into_libs=yes
8565 if test "$host_cpu" = ia64; then
8566 # AIX 5 supports IA64
8567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 else
8570 # With GCC up to 2.95.x, collect2 would create an import file
8571 # for dependence libraries. The import file would start with
8572 # the line `#! .'. This would cause the generated library to
8573 # depend on `.', always an invalid library. This was fixed in
8574 # development snapshots of GCC prior to 3.0.
8575 case $host_os in
8576 aix4 | aix4.[01] | aix4.[01].*)
8577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8578 echo ' yes '
8579 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8580 :
8581 else
8582 can_build_shared=no
8583 fi
8584 ;;
8585 esac
8586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8587 # soname into executable. Probably we can add versioning support to
8588 # collect2, so additional links can be useful in future.
8589 if test "$aix_use_runtimelinking" = yes; then
8590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8591 # instead of lib<name>.a to let people know that these are not
8592 # typical AIX shared libraries.
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594 else
8595 # We preserve .a as extension for shared libraries through AIX4.2
8596 # and later when we are not doing run time linking.
8597 library_names_spec='${libname}${release}.a $libname.a'
8598 soname_spec='${libname}${release}${shared_ext}$major'
8599 fi
8600 shlibpath_var=LIBPATH
8601 fi
8602 ;;
8603
8604amigaos*)
8605 library_names_spec='$libname.ixlibrary $libname.a'
8606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8607 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'
8608 ;;
8609
8610beos*)
8611 library_names_spec='${libname}${shared_ext}'
8612 dynamic_linker="$host_os ld.so"
8613 shlibpath_var=LIBRARY_PATH
8614 ;;
8615
8616bsdi[45]*)
8617 version_type=linux
8618 need_version=no
8619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8620 soname_spec='${libname}${release}${shared_ext}$major'
8621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8622 shlibpath_var=LD_LIBRARY_PATH
8623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8625 # the default ld.so.conf also contains /usr/contrib/lib and
8626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8627 # libtool to hard-code these into programs
8628 ;;
8629
8630cygwin* | mingw* | pw32*)
8631 version_type=windows
8632 shrext_cmds=".dll"
8633 need_version=no
8634 need_lib_prefix=no
8635
8636 case $GCC,$host_os in
8637 yes,cygwin* | yes,mingw* | yes,pw32*)
8638 library_names_spec='$libname.dll.a'
8639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8640 postinstall_cmds='base_file=`basename \${file}`~
8641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8642 dldir=$destdir/`dirname \$dlpath`~
8643 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008644 $install_prog $dir/$dlname \$dldir/$dlname~
8645 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8647 dlpath=$dir/\$dldll~
8648 $rm \$dlpath'
8649 shlibpath_overrides_runpath=yes
8650
8651 case $host_os in
8652 cygwin*)
8653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8655 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8656 ;;
8657 mingw*)
8658 # MinGW DLLs use traditional 'lib' prefix
8659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8661 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8662 # It is most probably a Windows format PATH printed by
8663 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8664 # path with ; separators, and with drive letters. We can handle the
8665 # drive letters (cygwin fileutils understands them), so leave them,
8666 # especially as we might pass files found there to a mingw objdump,
8667 # which wouldn't understand a cygwinified path. Ahh.
8668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8669 else
8670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8671 fi
8672 ;;
8673 pw32*)
8674 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008675 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 +00008676 ;;
8677 esac
8678 ;;
8679
8680 *)
8681 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8682 ;;
8683 esac
8684 dynamic_linker='Win32 ld.exe'
8685 # FIXME: first we should search . and the directory the executable is in
8686 shlibpath_var=PATH
8687 ;;
8688
8689darwin* | rhapsody*)
8690 dynamic_linker="$host_os dyld"
8691 version_type=darwin
8692 need_lib_prefix=no
8693 need_version=no
8694 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8695 soname_spec='${libname}${release}${major}$shared_ext'
8696 shlibpath_overrides_runpath=yes
8697 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008698 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008699 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8700 if test "$GCC" = yes; then
8701 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"`
8702 else
8703 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8704 fi
8705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8706 ;;
8707
8708dgux*)
8709 version_type=linux
8710 need_lib_prefix=no
8711 need_version=no
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 ;;
8716
8717freebsd1*)
8718 dynamic_linker=no
8719 ;;
8720
8721kfreebsd*-gnu)
8722 version_type=linux
8723 need_lib_prefix=no
8724 need_version=no
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8726 soname_spec='${libname}${release}${shared_ext}$major'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 shlibpath_overrides_runpath=no
8729 hardcode_into_libs=yes
8730 dynamic_linker='GNU ld.so'
8731 ;;
8732
Reid Spencera773bd52006-08-04 18:18:08 +00008733freebsd* | dragonfly*)
8734 # DragonFly does not have aout. When/if they implement a new
8735 # versioning mechanism, adjust this.
8736 if test -x /usr/bin/objformat; then
8737 objformat=`/usr/bin/objformat`
8738 else
8739 case $host_os in
8740 freebsd[123]*) objformat=aout ;;
8741 *) objformat=elf ;;
8742 esac
8743 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008744 version_type=freebsd-$objformat
8745 case $version_type in
8746 freebsd-elf*)
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8748 need_version=no
8749 need_lib_prefix=no
8750 ;;
8751 freebsd-*)
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8753 need_version=yes
8754 ;;
8755 esac
8756 shlibpath_var=LD_LIBRARY_PATH
8757 case $host_os in
8758 freebsd2*)
8759 shlibpath_overrides_runpath=yes
8760 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008761 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008762 shlibpath_overrides_runpath=yes
8763 hardcode_into_libs=yes
8764 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008765 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8766 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008767 shlibpath_overrides_runpath=no
8768 hardcode_into_libs=yes
8769 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008770 freebsd*) # from 4.6 on
8771 shlibpath_overrides_runpath=yes
8772 hardcode_into_libs=yes
8773 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008774 esac
8775 ;;
8776
8777gnu*)
8778 version_type=linux
8779 need_lib_prefix=no
8780 need_version=no
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8782 soname_spec='${libname}${release}${shared_ext}$major'
8783 shlibpath_var=LD_LIBRARY_PATH
8784 hardcode_into_libs=yes
8785 ;;
8786
8787hpux9* | hpux10* | hpux11*)
8788 # Give a soname corresponding to the major version so that dld.sl refuses to
8789 # link against other versions.
8790 version_type=sunos
8791 need_lib_prefix=no
8792 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008793 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008794 ia64*)
8795 shrext_cmds='.so'
8796 hardcode_into_libs=yes
8797 dynamic_linker="$host_os dld.so"
8798 shlibpath_var=LD_LIBRARY_PATH
8799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 if test "X$HPUX_IA64_MODE" = X32; then
8803 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8804 else
8805 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8806 fi
8807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8808 ;;
8809 hppa*64*)
8810 shrext_cmds='.sl'
8811 hardcode_into_libs=yes
8812 dynamic_linker="$host_os dld.sl"
8813 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8816 soname_spec='${libname}${release}${shared_ext}$major'
8817 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8819 ;;
8820 *)
8821 shrext_cmds='.sl'
8822 dynamic_linker="$host_os dld.sl"
8823 shlibpath_var=SHLIB_PATH
8824 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
8828 esac
8829 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8830 postinstall_cmds='chmod 555 $lib'
8831 ;;
8832
Reid Spencera773bd52006-08-04 18:18:08 +00008833interix3*)
8834 version_type=linux
8835 need_lib_prefix=no
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8843 ;;
8844
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008845irix5* | irix6* | nonstopux*)
8846 case $host_os in
8847 nonstopux*) version_type=nonstopux ;;
8848 *)
8849 if test "$lt_cv_prog_gnu_ld" = yes; then
8850 version_type=linux
8851 else
8852 version_type=irix
8853 fi ;;
8854 esac
8855 need_lib_prefix=no
8856 need_version=no
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8859 case $host_os in
8860 irix5* | nonstopux*)
8861 libsuff= shlibsuff=
8862 ;;
8863 *)
8864 case $LD in # libtool.m4 will add one of these switches to LD
8865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8866 libsuff= shlibsuff= libmagic=32-bit;;
8867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8868 libsuff=32 shlibsuff=N32 libmagic=N32;;
8869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8871 *) libsuff= shlibsuff= libmagic=never-match;;
8872 esac
8873 ;;
8874 esac
8875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8876 shlibpath_overrides_runpath=no
8877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8879 hardcode_into_libs=yes
8880 ;;
8881
8882# No shared lib support for Linux oldld, aout, or coff.
8883linux*oldld* | linux*aout* | linux*coff*)
8884 dynamic_linker=no
8885 ;;
8886
8887# This must be Linux ELF.
8888linux*)
8889 version_type=linux
8890 need_lib_prefix=no
8891 need_version=no
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=no
8897 # This implies no fast_install, which is unacceptable.
8898 # Some rework will be needed to allow for fast_install
8899 # before this can be enabled.
8900 hardcode_into_libs=yes
8901
8902 # Append ld.so.conf contents to the search path
8903 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008904 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 +00008905 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8906 fi
8907
8908 # We used to test for /lib/ld.so.1 and disable shared libraries on
8909 # powerpc, because MkLinux only supported shared libraries with the
8910 # GNU dynamic linker. Since this was broken with cross compilers,
8911 # most powerpc-linux boxes support dynamic linking these days and
8912 # people can always --disable-shared, the test was removed, and we
8913 # assume the GNU/Linux dynamic linker is in use.
8914 dynamic_linker='GNU/Linux ld.so'
8915 ;;
8916
8917knetbsd*-gnu)
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 shlibpath_overrides_runpath=no
8925 hardcode_into_libs=yes
8926 dynamic_linker='GNU ld.so'
8927 ;;
8928
8929netbsd*)
8930 version_type=sunos
8931 need_lib_prefix=no
8932 need_version=no
8933 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8936 dynamic_linker='NetBSD (a.out) ld.so'
8937 else
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 dynamic_linker='NetBSD ld.elf_so'
8941 fi
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=yes
8944 hardcode_into_libs=yes
8945 ;;
8946
8947newsos6)
8948 version_type=linux
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=yes
8952 ;;
8953
8954nto-qnx*)
8955 version_type=linux
8956 need_lib_prefix=no
8957 need_version=no
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=yes
8962 ;;
8963
8964openbsd*)
8965 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008966 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008967 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008968 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8969 case $host_os in
8970 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8971 *) need_version=no ;;
8972 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8977 case $host_os in
8978 openbsd2.[89] | openbsd2.[89].*)
8979 shlibpath_overrides_runpath=no
8980 ;;
8981 *)
8982 shlibpath_overrides_runpath=yes
8983 ;;
8984 esac
8985 else
8986 shlibpath_overrides_runpath=yes
8987 fi
8988 ;;
8989
8990os2*)
8991 libname_spec='$name'
8992 shrext_cmds=".dll"
8993 need_lib_prefix=no
8994 library_names_spec='$libname${shared_ext} $libname.a'
8995 dynamic_linker='OS/2 ld.exe'
8996 shlibpath_var=LIBPATH
8997 ;;
8998
8999osf3* | osf4* | osf5*)
9000 version_type=osf
9001 need_lib_prefix=no
9002 need_version=no
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9008 ;;
9009
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009010solaris*)
9011 version_type=linux
9012 need_lib_prefix=no
9013 need_version=no
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes
9018 hardcode_into_libs=yes
9019 # ldd complains unless libraries are executable
9020 postinstall_cmds='chmod +x $lib'
9021 ;;
9022
9023sunos4*)
9024 version_type=sunos
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes
9029 if test "$with_gnu_ld" = yes; then
9030 need_lib_prefix=no
9031 fi
9032 need_version=yes
9033 ;;
9034
Reid Spencera773bd52006-08-04 18:18:08 +00009035sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009036 version_type=linux
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 case $host_vendor in
9041 sni)
9042 shlibpath_overrides_runpath=no
9043 need_lib_prefix=no
9044 export_dynamic_flag_spec='${wl}-Blargedynsym'
9045 runpath_var=LD_RUN_PATH
9046 ;;
9047 siemens)
9048 need_lib_prefix=no
9049 ;;
9050 motorola)
9051 need_lib_prefix=no
9052 need_version=no
9053 shlibpath_overrides_runpath=no
9054 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9055 ;;
9056 esac
9057 ;;
9058
9059sysv4*MP*)
9060 if test -d /usr/nec ;then
9061 version_type=linux
9062 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9063 soname_spec='$libname${shared_ext}.$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 fi
9066 ;;
9067
Reid Spencera773bd52006-08-04 18:18:08 +00009068sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9069 version_type=freebsd-elf
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 hardcode_into_libs=yes
9076 if test "$with_gnu_ld" = yes; then
9077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9078 shlibpath_overrides_runpath=no
9079 else
9080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9081 shlibpath_overrides_runpath=yes
9082 case $host_os in
9083 sco3.2v5*)
9084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9085 ;;
9086 esac
9087 fi
9088 sys_lib_dlsearch_path_spec='/usr/lib'
9089 ;;
9090
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009091uts4*)
9092 version_type=linux
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 ;;
9097
9098*)
9099 dynamic_linker=no
9100 ;;
9101esac
Reid Spencera773bd52006-08-04 18:18:08 +00009102{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9103echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009104test "$dynamic_linker" = no && can_build_shared=no
9105
Reid Spencera773bd52006-08-04 18:18:08 +00009106variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9107if test "$GCC" = yes; then
9108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9109fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009110
Reid Spencera773bd52006-08-04 18:18:08 +00009111
9112{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9113echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009114if test "${libltdl_cv_shlibext+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116else
9117
9118module=yes
9119eval libltdl_cv_shlibext=$shrext_cmds
9120
9121fi
Reid Spencera773bd52006-08-04 18:18:08 +00009122{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9123echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009124if test -n "$libltdl_cv_shlibext"; then
9125
9126cat >>confdefs.h <<_ACEOF
9127#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9128_ACEOF
9129
9130fi
9131
9132
Reid Spencera773bd52006-08-04 18:18:08 +00009133{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9134echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009135if test "${libltdl_cv_shlibpath_var+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137else
9138 libltdl_cv_shlibpath_var="$shlibpath_var"
9139fi
Reid Spencera773bd52006-08-04 18:18:08 +00009140{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9141echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009142if test -n "$libltdl_cv_shlibpath_var"; then
9143
9144cat >>confdefs.h <<_ACEOF
9145#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9146_ACEOF
9147
9148fi
9149
9150
Reid Spencera773bd52006-08-04 18:18:08 +00009151{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9152echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009153if test "${libltdl_cv_sys_search_path+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9155else
9156 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9157fi
Reid Spencera773bd52006-08-04 18:18:08 +00009158{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9159echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009160if test -n "$libltdl_cv_sys_search_path"; then
9161 sys_search_path=
9162 for dir in $libltdl_cv_sys_search_path; do
9163 if test -z "$sys_search_path"; then
9164 sys_search_path="$dir"
9165 else
9166 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9167 fi
9168 done
9169
9170cat >>confdefs.h <<_ACEOF
9171#define LTDL_SYSSEARCHPATH "$sys_search_path"
9172_ACEOF
9173
9174fi
9175
Reid Spencera773bd52006-08-04 18:18:08 +00009176{ echo "$as_me:$LINENO: checking for objdir" >&5
9177echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009178if test "${libltdl_cv_objdir+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181 libltdl_cv_objdir="$objdir"
9182 if test -n "$objdir"; then
9183 :
9184 else
9185 rm -f .libs 2>/dev/null
9186 mkdir .libs 2>/dev/null
9187 if test -d .libs; then
9188 libltdl_cv_objdir=.libs
9189 else
9190 # MS-DOS does not allow filenames that begin with a dot.
9191 libltdl_cv_objdir=_libs
9192 fi
9193 rmdir .libs 2>/dev/null
9194 fi
9195
9196fi
Reid Spencera773bd52006-08-04 18:18:08 +00009197{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9198echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009199
9200cat >>confdefs.h <<_ACEOF
9201#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9202_ACEOF
9203
9204
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009205
9206
9207
9208
9209# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009210{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9211echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009212if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215
9216# These are sane defaults that work on at least a few old systems.
9217# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9218
9219# Character class describing NM global symbol codes.
9220symcode='[BCDEGRST]'
9221
9222# Regexp to match symbols that can be accessed directly from C.
9223sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9224
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009225# Transform an extracted symbol line into a proper C declaration
9226lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9227
9228# Transform an extracted symbol line into symbol name and symbol address
9229lt_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'"
9230
9231# Define system-specific variables.
9232case $host_os in
9233aix*)
9234 symcode='[BCDT]'
9235 ;;
9236cygwin* | mingw* | pw32*)
9237 symcode='[ABCDGISTW]'
9238 ;;
9239hpux*) # Its linker distinguishes data from code symbols
9240 if test "$host_cpu" = ia64; then
9241 symcode='[ABCDEGRST]'
9242 fi
9243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9244 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'"
9245 ;;
9246linux*)
9247 if test "$host_cpu" = ia64; then
9248 symcode='[ABCDGIRSTW]'
9249 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9250 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'"
9251 fi
9252 ;;
9253irix* | nonstopux*)
9254 symcode='[BCDEGRST]'
9255 ;;
9256osf*)
9257 symcode='[BCDEGQRST]'
9258 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009259solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009260 symcode='[BDRT]'
9261 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009262sco3.2v5*)
9263 symcode='[DT]'
9264 ;;
9265sysv4.2uw2*)
9266 symcode='[DT]'
9267 ;;
9268sysv5* | sco5v6* | unixware* | OpenUNIX*)
9269 symcode='[ABDT]'
9270 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009271sysv4)
9272 symcode='[DFNSTU]'
9273 ;;
9274esac
9275
9276# Handle CRLF in mingw tool chain
9277opt_cr=
9278case $build_os in
9279mingw*)
9280 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9281 ;;
9282esac
9283
9284# If we're using GNU nm, then use its standard symbol codes.
9285case `$NM -V 2>&1` in
9286*GNU* | *'with BFD'*)
9287 symcode='[ABCDGIRSTW]' ;;
9288esac
9289
9290# Try without a prefix undercore, then with it.
9291for ac_symprfx in "" "_"; do
9292
Reid Spencera773bd52006-08-04 18:18:08 +00009293 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9294 symxfrm="\\1 $ac_symprfx\\2 \\2"
9295
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009296 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009297 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 +00009298
9299 # Check to see that the pipe works correctly.
9300 pipe_works=no
9301
9302 rm -f conftest*
9303 cat > conftest.$ac_ext <<EOF
9304#ifdef __cplusplus
9305extern "C" {
9306#endif
9307char nm_test_var;
9308void nm_test_func(){}
9309#ifdef __cplusplus
9310}
9311#endif
9312int main(){nm_test_var='a';nm_test_func();return(0);}
9313EOF
9314
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316 (eval $ac_compile) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; then
9320 # Now try to grab the symbols.
9321 nlist=conftest.nm
9322 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9323 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && test -s "$nlist"; then
9327 # Try sorting and uniquifying the output.
9328 if sort "$nlist" | uniq > "$nlist"T; then
9329 mv -f "$nlist"T "$nlist"
9330 else
9331 rm -f "$nlist"T
9332 fi
9333
9334 # Make sure that we snagged all the symbols we need.
9335 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9336 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9337 cat <<EOF > conftest.$ac_ext
9338#ifdef __cplusplus
9339extern "C" {
9340#endif
9341
9342EOF
9343 # Now generate the symbol file.
9344 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9345
9346 cat <<EOF >> conftest.$ac_ext
9347#if defined (__STDC__) && __STDC__
9348# define lt_ptr_t void *
9349#else
9350# define lt_ptr_t char *
9351# define const
9352#endif
9353
9354/* The mapping between symbol names and symbols. */
9355const struct {
9356 const char *name;
9357 lt_ptr_t address;
9358}
9359lt_preloaded_symbols[] =
9360{
9361EOF
9362 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9363 cat <<\EOF >> conftest.$ac_ext
9364 {0, (lt_ptr_t) 0}
9365};
9366
9367#ifdef __cplusplus
9368}
9369#endif
9370EOF
9371 # Now try linking the two files.
9372 mv conftest.$ac_objext conftstm.$ac_objext
9373 lt_save_LIBS="$LIBS"
9374 lt_save_CFLAGS="$CFLAGS"
9375 LIBS="conftstm.$ac_objext"
9376 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9382 pipe_works=yes
9383 fi
9384 LIBS="$lt_save_LIBS"
9385 CFLAGS="$lt_save_CFLAGS"
9386 else
9387 echo "cannot find nm_test_func in $nlist" >&5
9388 fi
9389 else
9390 echo "cannot find nm_test_var in $nlist" >&5
9391 fi
9392 else
9393 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9394 fi
9395 else
9396 echo "$progname: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9398 fi
9399 rm -f conftest* conftst*
9400
9401 # Do not use the global_symbol_pipe unless it works.
9402 if test "$pipe_works" = yes; then
9403 break
9404 else
9405 lt_cv_sys_global_symbol_pipe=
9406 fi
9407done
9408
9409fi
9410
9411if test -z "$lt_cv_sys_global_symbol_pipe"; then
9412 lt_cv_sys_global_symbol_to_cdecl=
9413fi
9414if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009415 { echo "$as_me:$LINENO: result: failed" >&5
9416echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009417else
Reid Spencera773bd52006-08-04 18:18:08 +00009418 { echo "$as_me:$LINENO: result: ok" >&5
9419echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420fi
9421
9422
Reid Spencera773bd52006-08-04 18:18:08 +00009423{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9424echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427else
9428 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9429 libltdl_cv_preloaded_symbols=yes
9430 else
9431 libltdl_cv_preloaded_symbols=no
9432 fi
9433
9434fi
Reid Spencera773bd52006-08-04 18:18:08 +00009435{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9436echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009437if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9438
9439cat >>confdefs.h <<\_ACEOF
9440#define HAVE_PRELOADED_SYMBOLS 1
9441_ACEOF
9442
9443fi
9444
9445LIBADD_DL=
9446
9447ac_ext=c
9448ac_cpp='$CPP $CPPFLAGS'
9449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9451ac_compiler_gnu=$ac_cv_c_compiler_gnu
9452
9453
Reid Spencera773bd52006-08-04 18:18:08 +00009454{ echo "$as_me:$LINENO: checking for shl_load" >&5
9455echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009456if test "${ac_cv_func_shl_load+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458else
9459 cat >conftest.$ac_ext <<_ACEOF
9460/* confdefs.h. */
9461_ACEOF
9462cat confdefs.h >>conftest.$ac_ext
9463cat >>conftest.$ac_ext <<_ACEOF
9464/* end confdefs.h. */
9465/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9467#define shl_load innocuous_shl_load
9468
9469/* System header to define __stub macros and hopefully few prototypes,
9470 which can conflict with char shl_load (); below.
9471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9472 <limits.h> exists even on freestanding compilers. */
9473
9474#ifdef __STDC__
9475# include <limits.h>
9476#else
9477# include <assert.h>
9478#endif
9479
9480#undef shl_load
9481
Reid Spencera773bd52006-08-04 18:18:08 +00009482/* Override any GCC internal prototype to avoid an error.
9483 Use char because int might match the return type of a GCC
9484 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485#ifdef __cplusplus
9486extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009488char shl_load ();
9489/* The GNU C library defines this for functions which it implements
9490 to always fail with ENOSYS. Some functions are actually named
9491 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009492#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009494#endif
9495
9496int
9497main ()
9498{
Reid Spencera773bd52006-08-04 18:18:08 +00009499return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009500 ;
9501 return 0;
9502}
9503_ACEOF
9504rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009505if { (ac_try="$ac_link"
9506case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9509esac
9510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9519 { (case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522esac
9523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009529 { (case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532esac
9533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 ac_cv_func_shl_load=yes
9539else
9540 echo "$as_me: failed program was:" >&5
9541sed 's/^/| /' conftest.$ac_ext >&5
9542
Reid Spencera773bd52006-08-04 18:18:08 +00009543 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009544fi
Reid Spencera773bd52006-08-04 18:18:08 +00009545
9546rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009547 conftest$ac_exeext conftest.$ac_ext
9548fi
Reid Spencera773bd52006-08-04 18:18:08 +00009549{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9550echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009551if test $ac_cv_func_shl_load = yes; then
9552
9553cat >>confdefs.h <<\_ACEOF
9554#define HAVE_SHL_LOAD 1
9555_ACEOF
9556
9557else
Reid Spencera773bd52006-08-04 18:18:08 +00009558 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9559echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009560if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562else
9563 ac_check_lib_save_LIBS=$LIBS
9564LIBS="-ldld $LIBS"
9565cat >conftest.$ac_ext <<_ACEOF
9566/* confdefs.h. */
9567_ACEOF
9568cat confdefs.h >>conftest.$ac_ext
9569cat >>conftest.$ac_ext <<_ACEOF
9570/* end confdefs.h. */
9571
Reid Spencera773bd52006-08-04 18:18:08 +00009572/* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009575#ifdef __cplusplus
9576extern "C"
9577#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009578char shl_load ();
9579int
9580main ()
9581{
Reid Spencera773bd52006-08-04 18:18:08 +00009582return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009583 ;
9584 return 0;
9585}
9586_ACEOF
9587rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009588if { (ac_try="$ac_link"
9589case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592esac
9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9602 { (case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605esac
9606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; } &&
9611 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009612 { (case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615esac
9616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_cv_lib_dld_shl_load=yes
9622else
9623 echo "$as_me: failed program was:" >&5
9624sed 's/^/| /' conftest.$ac_ext >&5
9625
Reid Spencera773bd52006-08-04 18:18:08 +00009626 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009627fi
Reid Spencera773bd52006-08-04 18:18:08 +00009628
9629rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630 conftest$ac_exeext conftest.$ac_ext
9631LIBS=$ac_check_lib_save_LIBS
9632fi
Reid Spencera773bd52006-08-04 18:18:08 +00009633{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9634echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009635if test $ac_cv_lib_dld_shl_load = yes; then
9636
9637cat >>confdefs.h <<\_ACEOF
9638#define HAVE_SHL_LOAD 1
9639_ACEOF
9640
9641 LIBADD_DL="$LIBADD_DL -ldld"
9642else
Reid Spencera773bd52006-08-04 18:18:08 +00009643 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009645if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647else
9648 ac_check_lib_save_LIBS=$LIBS
9649LIBS="-ldl $LIBS"
9650cat >conftest.$ac_ext <<_ACEOF
9651/* confdefs.h. */
9652_ACEOF
9653cat confdefs.h >>conftest.$ac_ext
9654cat >>conftest.$ac_ext <<_ACEOF
9655/* end confdefs.h. */
9656
Reid Spencera773bd52006-08-04 18:18:08 +00009657/* Override any GCC internal prototype to avoid an error.
9658 Use char because int might match the return type of a GCC
9659 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009660#ifdef __cplusplus
9661extern "C"
9662#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663char dlopen ();
9664int
9665main ()
9666{
Reid Spencera773bd52006-08-04 18:18:08 +00009667return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668 ;
9669 return 0;
9670}
9671_ACEOF
9672rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009673if { (ac_try="$ac_link"
9674case "(($ac_try" in
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9677esac
9678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690esac
9691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009697 { (case "(($ac_try" in
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9700esac
9701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_lib_dl_dlopen=yes
9707else
9708 echo "$as_me: failed program was:" >&5
9709sed 's/^/| /' conftest.$ac_ext >&5
9710
Reid Spencera773bd52006-08-04 18:18:08 +00009711 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009712fi
Reid Spencera773bd52006-08-04 18:18:08 +00009713
9714rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009715 conftest$ac_exeext conftest.$ac_ext
9716LIBS=$ac_check_lib_save_LIBS
9717fi
Reid Spencera773bd52006-08-04 18:18:08 +00009718{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9719echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009720if test $ac_cv_lib_dl_dlopen = yes; then
9721
9722cat >>confdefs.h <<\_ACEOF
9723#define HAVE_LIBDL 1
9724_ACEOF
9725
9726 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9727else
9728 cat >conftest.$ac_ext <<_ACEOF
9729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
9734#if HAVE_DLFCN_H
9735# include <dlfcn.h>
9736#endif
9737
9738int
9739main ()
9740{
9741dlopen(0, 0);
9742 ;
9743 return 0;
9744}
9745_ACEOF
9746rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009747if { (ac_try="$ac_link"
9748case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751esac
9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764esac
9765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774esac
9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780
9781cat >>confdefs.h <<\_ACEOF
9782#define HAVE_LIBDL 1
9783_ACEOF
9784 libltdl_cv_func_dlopen="yes"
9785else
9786 echo "$as_me: failed program was:" >&5
9787sed 's/^/| /' conftest.$ac_ext >&5
9788
Reid Spencera773bd52006-08-04 18:18:08 +00009789 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9790echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009791if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793else
9794 ac_check_lib_save_LIBS=$LIBS
9795LIBS="-lsvld $LIBS"
9796cat >conftest.$ac_ext <<_ACEOF
9797/* confdefs.h. */
9798_ACEOF
9799cat confdefs.h >>conftest.$ac_ext
9800cat >>conftest.$ac_ext <<_ACEOF
9801/* end confdefs.h. */
9802
Reid Spencera773bd52006-08-04 18:18:08 +00009803/* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009806#ifdef __cplusplus
9807extern "C"
9808#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009809char dlopen ();
9810int
9811main ()
9812{
Reid Spencera773bd52006-08-04 18:18:08 +00009813return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814 ;
9815 return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009819if { (ac_try="$ac_link"
9820case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846esac
9847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_svld_dlopen=yes
9853else
9854 echo "$as_me: failed program was:" >&5
9855sed 's/^/| /' conftest.$ac_ext >&5
9856
Reid Spencera773bd52006-08-04 18:18:08 +00009857 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858fi
Reid Spencera773bd52006-08-04 18:18:08 +00009859
9860rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861 conftest$ac_exeext conftest.$ac_ext
9862LIBS=$ac_check_lib_save_LIBS
9863fi
Reid Spencera773bd52006-08-04 18:18:08 +00009864{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9865echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866if test $ac_cv_lib_svld_dlopen = yes; then
9867
9868cat >>confdefs.h <<\_ACEOF
9869#define HAVE_LIBDL 1
9870_ACEOF
9871
9872 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9873else
Reid Spencera773bd52006-08-04 18:18:08 +00009874 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9875echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878else
9879 ac_check_lib_save_LIBS=$LIBS
9880LIBS="-ldld $LIBS"
9881cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h. */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h. */
9887
Reid Spencera773bd52006-08-04 18:18:08 +00009888/* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891#ifdef __cplusplus
9892extern "C"
9893#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894char dld_link ();
9895int
9896main ()
9897{
Reid Spencera773bd52006-08-04 18:18:08 +00009898return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899 ;
9900 return 0;
9901}
9902_ACEOF
9903rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009904if { (ac_try="$ac_link"
9905case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908esac
9909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921esac
9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931esac
9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_dld_dld_link=yes
9938else
9939 echo "$as_me: failed program was:" >&5
9940sed 's/^/| /' conftest.$ac_ext >&5
9941
Reid Spencera773bd52006-08-04 18:18:08 +00009942 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943fi
Reid Spencera773bd52006-08-04 18:18:08 +00009944
9945rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946 conftest$ac_exeext conftest.$ac_ext
9947LIBS=$ac_check_lib_save_LIBS
9948fi
Reid Spencera773bd52006-08-04 18:18:08 +00009949{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9950echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951if test $ac_cv_lib_dld_dld_link = yes; then
9952
9953cat >>confdefs.h <<\_ACEOF
9954#define HAVE_DLD 1
9955_ACEOF
9956
9957 LIBADD_DL="$LIBADD_DL -ldld"
9958else
Reid Spencera773bd52006-08-04 18:18:08 +00009959 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9960echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963else
9964 cat >conftest.$ac_ext <<_ACEOF
9965/* confdefs.h. */
9966_ACEOF
9967cat confdefs.h >>conftest.$ac_ext
9968cat >>conftest.$ac_ext <<_ACEOF
9969/* end confdefs.h. */
9970/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9972#define _dyld_func_lookup innocuous__dyld_func_lookup
9973
9974/* System header to define __stub macros and hopefully few prototypes,
9975 which can conflict with char _dyld_func_lookup (); below.
9976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977 <limits.h> exists even on freestanding compilers. */
9978
9979#ifdef __STDC__
9980# include <limits.h>
9981#else
9982# include <assert.h>
9983#endif
9984
9985#undef _dyld_func_lookup
9986
Reid Spencera773bd52006-08-04 18:18:08 +00009987/* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990#ifdef __cplusplus
9991extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993char _dyld_func_lookup ();
9994/* The GNU C library defines this for functions which it implements
9995 to always fail with ENOSYS. Some functions are actually named
9996 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009997#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999#endif
10000
10001int
10002main ()
10003{
Reid Spencera773bd52006-08-04 18:18:08 +000010004return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005 ;
10006 return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010010if { (ac_try="$ac_link"
10011case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10014esac
10015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010034 { (case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037esac
10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_cv_func__dyld_func_lookup=yes
10044else
10045 echo "$as_me: failed program was:" >&5
10046sed 's/^/| /' conftest.$ac_ext >&5
10047
Reid Spencera773bd52006-08-04 18:18:08 +000010048 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010049fi
Reid Spencera773bd52006-08-04 18:18:08 +000010050
10051rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052 conftest$ac_exeext conftest.$ac_ext
10053fi
Reid Spencera773bd52006-08-04 18:18:08 +000010054{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10055echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010056if test $ac_cv_func__dyld_func_lookup = yes; then
10057
10058cat >>confdefs.h <<\_ACEOF
10059#define HAVE_DYLD 1
10060_ACEOF
10061
10062fi
10063
10064
10065fi
10066
10067
10068fi
10069
10070
10071fi
Reid Spencera773bd52006-08-04 18:18:08 +000010072
10073rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010074 conftest$ac_exeext conftest.$ac_ext
10075
10076fi
10077
10078
10079fi
10080
10081
10082fi
10083
10084
10085if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10086then
10087 lt_save_LIBS="$LIBS"
10088 LIBS="$LIBS $LIBADD_DL"
10089
10090for ac_func in dlerror
10091do
10092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010093{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10095if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097else
10098 cat >conftest.$ac_ext <<_ACEOF
10099/* confdefs.h. */
10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h. */
10104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10106#define $ac_func innocuous_$ac_func
10107
10108/* System header to define __stub macros and hopefully few prototypes,
10109 which can conflict with char $ac_func (); below.
10110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10111 <limits.h> exists even on freestanding compilers. */
10112
10113#ifdef __STDC__
10114# include <limits.h>
10115#else
10116# include <assert.h>
10117#endif
10118
10119#undef $ac_func
10120
Reid Spencera773bd52006-08-04 18:18:08 +000010121/* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124#ifdef __cplusplus
10125extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010126#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127char $ac_func ();
10128/* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010131#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133#endif
10134
10135int
10136main ()
10137{
Reid Spencera773bd52006-08-04 18:18:08 +000010138return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139 ;
10140 return 0;
10141}
10142_ACEOF
10143rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010144if { (ac_try="$ac_link"
10145case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148esac
10149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161esac
10162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010168 { (case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171esac
10172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 eval "$as_ac_var=yes"
10178else
10179 echo "$as_me: failed program was:" >&5
10180sed 's/^/| /' conftest.$ac_ext >&5
10181
Reid Spencera773bd52006-08-04 18:18:08 +000010182 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183fi
Reid Spencera773bd52006-08-04 18:18:08 +000010184
10185rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186 conftest$ac_exeext conftest.$ac_ext
10187fi
Reid Spencera773bd52006-08-04 18:18:08 +000010188ac_res=`eval echo '${'$as_ac_var'}'`
10189 { echo "$as_me:$LINENO: result: $ac_res" >&5
10190echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191if test `eval echo '${'$as_ac_var'}'` = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10194_ACEOF
10195
10196fi
10197done
10198
10199 LIBS="$lt_save_LIBS"
10200fi
10201ac_ext=c
10202ac_cpp='$CPP $CPPFLAGS'
10203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10205ac_compiler_gnu=$ac_cv_c_compiler_gnu
10206
10207
10208
Reid Spencera773bd52006-08-04 18:18:08 +000010209{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10210echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213else
10214 ac_cv_sys_symbol_underscore=no
10215 cat > conftest.$ac_ext <<EOF
10216void nm_test_func(){}
10217int main(){nm_test_func;return 0;}
10218EOF
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; then
10224 # Now try to grab the symbols.
10225 ac_nlist=conftest.nm
10226 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10227 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } && test -s "$ac_nlist"; then
10231 # See whether the symbols have a leading underscore.
10232 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10233 ac_cv_sys_symbol_underscore=yes
10234 else
10235 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10236 :
10237 else
10238 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10239 fi
10240 fi
10241 else
10242 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10243 fi
10244 else
10245 echo "configure: failed program was:" >&5
10246 cat conftest.c >&5
10247 fi
10248 rm -rf conftest*
10249
10250fi
Reid Spencera773bd52006-08-04 18:18:08 +000010251{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10252echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010253
10254
10255if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10256 if test x"$libltdl_cv_func_dlopen" = xyes ||
10257 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010258 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10259echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260if test "${libltdl_cv_need_uscore+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262else
10263 libltdl_cv_need_uscore=unknown
10264 save_LIBS="$LIBS"
10265 LIBS="$LIBS $LIBADD_DL"
10266 if test "$cross_compiling" = yes; then :
10267 libltdl_cv_need_uscore=cross
10268else
10269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10270 lt_status=$lt_dlunknown
10271 cat > conftest.$ac_ext <<EOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000010272#line 10272 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273#include "confdefs.h"
10274
10275#if HAVE_DLFCN_H
10276#include <dlfcn.h>
10277#endif
10278
10279#include <stdio.h>
10280
10281#ifdef RTLD_GLOBAL
10282# define LT_DLGLOBAL RTLD_GLOBAL
10283#else
10284# ifdef DL_GLOBAL
10285# define LT_DLGLOBAL DL_GLOBAL
10286# else
10287# define LT_DLGLOBAL 0
10288# endif
10289#endif
10290
10291/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10292 find out it does not work in some platform. */
10293#ifndef LT_DLLAZY_OR_NOW
10294# ifdef RTLD_LAZY
10295# define LT_DLLAZY_OR_NOW RTLD_LAZY
10296# else
10297# ifdef DL_LAZY
10298# define LT_DLLAZY_OR_NOW DL_LAZY
10299# else
10300# ifdef RTLD_NOW
10301# define LT_DLLAZY_OR_NOW RTLD_NOW
10302# else
10303# ifdef DL_NOW
10304# define LT_DLLAZY_OR_NOW DL_NOW
10305# else
10306# define LT_DLLAZY_OR_NOW 0
10307# endif
10308# endif
10309# endif
10310# endif
10311#endif
10312
10313#ifdef __cplusplus
10314extern "C" void exit (int);
10315#endif
10316
10317void fnord() { int i=42;}
10318int main ()
10319{
10320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10321 int status = $lt_dlunknown;
10322
10323 if (self)
10324 {
10325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10326 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10327 /* dlclose (self); */
10328 }
Reid Spencera773bd52006-08-04 18:18:08 +000010329 else
10330 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331
10332 exit (status);
10333}
10334EOF
10335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336 (eval $ac_link) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010340 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010341 lt_status=$?
10342 case x$lt_status in
10343 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10344 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010345 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010346 esac
10347 else :
10348 # compilation failed
10349
10350 fi
10351fi
10352rm -fr conftest*
10353
10354 LIBS="$save_LIBS"
10355
10356fi
Reid Spencera773bd52006-08-04 18:18:08 +000010357{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10358echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359 fi
10360fi
10361
10362if test x"$libltdl_cv_need_uscore" = xyes; then
10363
10364cat >>confdefs.h <<\_ACEOF
10365#define NEED_USCORE 1
10366_ACEOF
10367
10368fi
10369
10370
Reid Spencera773bd52006-08-04 18:18:08 +000010371{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10372echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010373if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375else
10376 # PORTME does your system automatically load deplibs for dlopen?
10377 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10378 # For now, we just catch OSes we know something about -- in the
10379 # future, we'll try test this programmatically.
10380 libltdl_cv_sys_dlopen_deplibs=unknown
10381 case "$host_os" in
10382 aix3*|aix4.1.*|aix4.2.*)
10383 # Unknown whether this is true for these versions of AIX, but
10384 # we want this `case' here to explicitly catch those versions.
10385 libltdl_cv_sys_dlopen_deplibs=unknown
10386 ;;
10387 aix[45]*)
10388 libltdl_cv_sys_dlopen_deplibs=yes
10389 ;;
10390 darwin*)
10391 # Assuming the user has installed a libdl from somewhere, this is true
10392 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10393 libltdl_cv_sys_dlopen_deplibs=yes
10394 ;;
10395 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10396 # GNU and its variants, using gnu ld.so (Glibc)
10397 libltdl_cv_sys_dlopen_deplibs=yes
10398 ;;
10399 hpux10*|hpux11*)
10400 libltdl_cv_sys_dlopen_deplibs=yes
10401 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010402 interix*)
10403 libltdl_cv_sys_dlopen_deplibs=yes
10404 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405 irix[12345]*|irix6.[01]*)
10406 # Catch all versions of IRIX before 6.2, and indicate that we don't
10407 # know how it worked for any of those versions.
10408 libltdl_cv_sys_dlopen_deplibs=unknown
10409 ;;
10410 irix*)
10411 # The case above catches anything before 6.2, and it's known that
10412 # at 6.2 and later dlopen does load deplibs.
10413 libltdl_cv_sys_dlopen_deplibs=yes
10414 ;;
10415 netbsd*)
10416 libltdl_cv_sys_dlopen_deplibs=yes
10417 ;;
10418 openbsd*)
10419 libltdl_cv_sys_dlopen_deplibs=yes
10420 ;;
10421 osf[1234]*)
10422 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10423 # it did *not* use an RPATH in a shared library to find objects the
10424 # library depends on, so we explictly say `no'.
10425 libltdl_cv_sys_dlopen_deplibs=no
10426 ;;
10427 osf5.0|osf5.0a|osf5.1)
10428 # dlopen *does* load deplibs and with the right loader patch applied
10429 # it even uses RPATH in a shared library to search for shared objects
10430 # that the library depends on, but there's no easy way to know if that
10431 # patch is installed. Since this is the case, all we can really
10432 # say is unknown -- it depends on the patch being installed. If
10433 # it is, this changes to `yes'. Without it, it would be `no'.
10434 libltdl_cv_sys_dlopen_deplibs=unknown
10435 ;;
10436 osf*)
10437 # the two cases above should catch all versions of osf <= 5.1. Read
10438 # the comments above for what we know about them.
10439 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10440 # is used to find them so we can finally say `yes'.
10441 libltdl_cv_sys_dlopen_deplibs=yes
10442 ;;
10443 solaris*)
10444 libltdl_cv_sys_dlopen_deplibs=yes
10445 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10447 libltdl_cv_sys_dlopen_deplibs=yes
10448 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449 esac
10450
10451fi
Reid Spencera773bd52006-08-04 18:18:08 +000010452{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10453echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10455
10456cat >>confdefs.h <<\_ACEOF
10457#define LTDL_DLOPEN_DEPLIBS 1
10458_ACEOF
10459
10460fi
10461
10462
10463for ac_header in argz.h
10464do
10465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471fi
Reid Spencera773bd52006-08-04 18:18:08 +000010472ac_res=`eval echo '${'$as_ac_Header'}'`
10473 { echo "$as_me:$LINENO: result: $ac_res" >&5
10474echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010475else
10476 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010477{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479cat >conftest.$ac_ext <<_ACEOF
10480/* confdefs.h. */
10481_ACEOF
10482cat confdefs.h >>conftest.$ac_ext
10483cat >>conftest.$ac_ext <<_ACEOF
10484/* end confdefs.h. */
10485$ac_includes_default
10486#include <$ac_header>
10487_ACEOF
10488rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010489if { (ac_try="$ac_compile"
10490case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10493esac
10494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10495 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496 ac_status=$?
10497 grep -v '^ *+' conftest.er1 >conftest.err
10498 rm -f conftest.er1
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10503 { (case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10506esac
10507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010513 { (case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10516esac
10517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_header_compiler=yes
10523else
10524 echo "$as_me: failed program was:" >&5
10525sed 's/^/| /' conftest.$ac_ext >&5
10526
Reid Spencera773bd52006-08-04 18:18:08 +000010527 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528fi
Reid Spencera773bd52006-08-04 18:18:08 +000010529
10530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10532echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010533
10534# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010535{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10536echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537cat >conftest.$ac_ext <<_ACEOF
10538/* confdefs.h. */
10539_ACEOF
10540cat confdefs.h >>conftest.$ac_ext
10541cat >>conftest.$ac_ext <<_ACEOF
10542/* end confdefs.h. */
10543#include <$ac_header>
10544_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010545if { (ac_try="$ac_cpp conftest.$ac_ext"
10546case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549esac
10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010552 ac_status=$?
10553 grep -v '^ *+' conftest.er1 >conftest.err
10554 rm -f conftest.er1
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } >/dev/null; then
10558 if test -s conftest.err; then
10559 ac_cpp_err=$ac_c_preproc_warn_flag
10560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10561 else
10562 ac_cpp_err=
10563 fi
10564else
10565 ac_cpp_err=yes
10566fi
10567if test -z "$ac_cpp_err"; then
10568 ac_header_preproc=yes
10569else
10570 echo "$as_me: failed program was:" >&5
10571sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 ac_header_preproc=no
10574fi
Reid Spencera773bd52006-08-04 18:18:08 +000010575
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010577{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10578echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579
10580# So? What about this header?
10581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582 yes:no: )
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10587 ac_header_preproc=yes
10588 ;;
10589 no:yes:* )
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010602 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010603## ----------------------------------- ##
10604## Report this to llvmbugs@cs.uiuc.edu ##
10605## ----------------------------------- ##
10606_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010607 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608 ;;
10609esac
Reid Spencera773bd52006-08-04 18:18:08 +000010610{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010613 echo $ECHO_N "(cached) $ECHO_C" >&6
10614else
10615 eval "$as_ac_Header=\$ac_header_preproc"
10616fi
Reid Spencera773bd52006-08-04 18:18:08 +000010617ac_res=`eval echo '${'$as_ac_Header'}'`
10618 { echo "$as_me:$LINENO: result: $ac_res" >&5
10619echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620
10621fi
10622if test `eval echo '${'$as_ac_Header'}'` = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10625_ACEOF
10626
10627fi
10628
10629done
10630
10631
Reid Spencera773bd52006-08-04 18:18:08 +000010632{ echo "$as_me:$LINENO: checking for error_t" >&5
10633echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010634if test "${ac_cv_type_error_t+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637 cat >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#if HAVE_ARGZ_H
10644# include <argz.h>
10645#endif
10646
Reid Spencera773bd52006-08-04 18:18:08 +000010647typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010648int
10649main ()
10650{
Reid Spencera773bd52006-08-04 18:18:08 +000010651if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010652 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010653if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010654 return 0;
10655 ;
10656 return 0;
10657}
10658_ACEOF
10659rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010660if { (ac_try="$ac_compile"
10661case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10664esac
10665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677esac
10678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_type_error_t=yes
10694else
10695 echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
Reid Spencera773bd52006-08-04 18:18:08 +000010698 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010699fi
Reid Spencera773bd52006-08-04 18:18:08 +000010700
10701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010702fi
Reid Spencera773bd52006-08-04 18:18:08 +000010703{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10704echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705if test $ac_cv_type_error_t = yes; then
10706
10707cat >>confdefs.h <<_ACEOF
10708#define HAVE_ERROR_T 1
10709_ACEOF
10710
10711
10712else
10713
10714cat >>confdefs.h <<\_ACEOF
10715#define error_t int
10716_ACEOF
10717
10718fi
10719
10720
10721
10722
10723
10724
10725
10726for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10727do
10728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010729{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10731if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733else
10734 cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h. */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h. */
10740/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10742#define $ac_func innocuous_$ac_func
10743
10744/* System header to define __stub macros and hopefully few prototypes,
10745 which can conflict with char $ac_func (); below.
10746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747 <limits.h> exists even on freestanding compilers. */
10748
10749#ifdef __STDC__
10750# include <limits.h>
10751#else
10752# include <assert.h>
10753#endif
10754
10755#undef $ac_func
10756
Reid Spencera773bd52006-08-04 18:18:08 +000010757/* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760#ifdef __cplusplus
10761extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010763char $ac_func ();
10764/* The GNU C library defines this for functions which it implements
10765 to always fail with ENOSYS. Some functions are actually named
10766 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010767#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769#endif
10770
10771int
10772main ()
10773{
Reid Spencera773bd52006-08-04 18:18:08 +000010774return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775 ;
10776 return 0;
10777}
10778_ACEOF
10779rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010780if { (ac_try="$ac_link"
10781case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784esac
10785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797esac
10798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 eval "$as_ac_var=yes"
10814else
10815 echo "$as_me: failed program was:" >&5
10816sed 's/^/| /' conftest.$ac_ext >&5
10817
Reid Spencera773bd52006-08-04 18:18:08 +000010818 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819fi
Reid Spencera773bd52006-08-04 18:18:08 +000010820
10821rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010822 conftest$ac_exeext conftest.$ac_ext
10823fi
Reid Spencera773bd52006-08-04 18:18:08 +000010824ac_res=`eval echo '${'$as_ac_var'}'`
10825 { echo "$as_me:$LINENO: result: $ac_res" >&5
10826echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827if test `eval echo '${'$as_ac_var'}'` = yes; then
10828 cat >>confdefs.h <<_ACEOF
10829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10830_ACEOF
10831
10832fi
10833done
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10863 stdio.h unistd.h
10864do
10865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871fi
Reid Spencera773bd52006-08-04 18:18:08 +000010872ac_res=`eval echo '${'$as_ac_Header'}'`
10873 { echo "$as_me:$LINENO: result: $ac_res" >&5
10874echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010875else
10876 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010879cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
10885$ac_includes_default
10886#include <$ac_header>
10887_ACEOF
10888rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010889if { (ac_try="$ac_compile"
10890case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893esac
10894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10903 { (case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906esac
10907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; } &&
10912 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010913 { (case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916esac
10917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_header_compiler=yes
10923else
10924 echo "$as_me: failed program was:" >&5
10925sed 's/^/| /' conftest.$ac_ext >&5
10926
Reid Spencera773bd52006-08-04 18:18:08 +000010927 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928fi
Reid Spencera773bd52006-08-04 18:18:08 +000010929
10930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10932echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933
10934# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010937cat >conftest.$ac_ext <<_ACEOF
10938/* confdefs.h. */
10939_ACEOF
10940cat confdefs.h >>conftest.$ac_ext
10941cat >>conftest.$ac_ext <<_ACEOF
10942/* end confdefs.h. */
10943#include <$ac_header>
10944_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010945if { (ac_try="$ac_cpp conftest.$ac_ext"
10946case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949esac
10950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } >/dev/null; then
10958 if test -s conftest.err; then
10959 ac_cpp_err=$ac_c_preproc_warn_flag
10960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10961 else
10962 ac_cpp_err=
10963 fi
10964else
10965 ac_cpp_err=yes
10966fi
10967if test -z "$ac_cpp_err"; then
10968 ac_header_preproc=yes
10969else
10970 echo "$as_me: failed program was:" >&5
10971sed 's/^/| /' conftest.$ac_ext >&5
10972
10973 ac_header_preproc=no
10974fi
Reid Spencera773bd52006-08-04 18:18:08 +000010975
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10978echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979
10980# So? What about this header?
10981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10982 yes:no: )
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10987 ac_header_preproc=yes
10988 ;;
10989 no:yes:* )
10990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011002 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003## ----------------------------------- ##
11004## Report this to llvmbugs@cs.uiuc.edu ##
11005## ----------------------------------- ##
11006_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011007 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008 ;;
11009esac
Reid Spencera773bd52006-08-04 18:18:08 +000011010{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 eval "$as_ac_Header=\$ac_header_preproc"
11016fi
Reid Spencera773bd52006-08-04 18:18:08 +000011017ac_res=`eval echo '${'$as_ac_Header'}'`
11018 { echo "$as_me:$LINENO: result: $ac_res" >&5
11019echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011020
11021fi
11022if test `eval echo '${'$as_ac_Header'}'` = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11025_ACEOF
11026
11027fi
11028
11029done
11030
11031
11032
11033
11034
11035for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11036do
11037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043fi
Reid Spencera773bd52006-08-04 18:18:08 +000011044ac_res=`eval echo '${'$as_ac_Header'}'`
11045 { echo "$as_me:$LINENO: result: $ac_res" >&5
11046echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011047else
11048 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011049{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011051cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
11057$ac_includes_default
11058#include <$ac_header>
11059_ACEOF
11060rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011061if { (ac_try="$ac_compile"
11062case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
11066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11075 { (case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
11079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088esac
11089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_header_compiler=yes
11095else
11096 echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
Reid Spencera773bd52006-08-04 18:18:08 +000011099 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100fi
Reid Spencera773bd52006-08-04 18:18:08 +000011101
11102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011105
11106# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011107{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011109cat >conftest.$ac_ext <<_ACEOF
11110/* confdefs.h. */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h. */
11115#include <$ac_header>
11116_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011117if { (ac_try="$ac_cpp conftest.$ac_ext"
11118case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121esac
11122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } >/dev/null; then
11130 if test -s conftest.err; then
11131 ac_cpp_err=$ac_c_preproc_warn_flag
11132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11133 else
11134 ac_cpp_err=
11135 fi
11136else
11137 ac_cpp_err=yes
11138fi
11139if test -z "$ac_cpp_err"; then
11140 ac_header_preproc=yes
11141else
11142 echo "$as_me: failed program was:" >&5
11143sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 ac_header_preproc=no
11146fi
Reid Spencera773bd52006-08-04 18:18:08 +000011147
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011148rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011149{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11150echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011151
11152# So? What about this header?
11153case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11154 yes:no: )
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11156echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11158echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11159 ac_header_preproc=yes
11160 ;;
11161 no:yes:* )
11162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11163echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11165echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11167echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11169echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11171echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11173echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011174 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011175## ----------------------------------- ##
11176## Report this to llvmbugs@cs.uiuc.edu ##
11177## ----------------------------------- ##
11178_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011179 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011180 ;;
11181esac
Reid Spencera773bd52006-08-04 18:18:08 +000011182{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186else
11187 eval "$as_ac_Header=\$ac_header_preproc"
11188fi
Reid Spencera773bd52006-08-04 18:18:08 +000011189ac_res=`eval echo '${'$as_ac_Header'}'`
11190 { echo "$as_me:$LINENO: result: $ac_res" >&5
11191echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011192
11193fi
11194if test `eval echo '${'$as_ac_Header'}'` = yes; then
11195 cat >>confdefs.h <<_ACEOF
11196#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11197_ACEOF
11198
11199fi
11200
11201done
11202
11203
11204
11205for ac_header in string.h strings.h
11206do
11207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213fi
Reid Spencera773bd52006-08-04 18:18:08 +000011214ac_res=`eval echo '${'$as_ac_Header'}'`
11215 { echo "$as_me:$LINENO: result: $ac_res" >&5
11216echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011217else
11218 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011219{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11220echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227$ac_includes_default
11228#include <$ac_header>
11229_ACEOF
11230rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011231if { (ac_try="$ac_compile"
11232case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11235esac
11236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011238 ac_status=$?
11239 grep -v '^ *+' conftest.er1 >conftest.err
11240 rm -f conftest.er1
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11245 { (case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11248esac
11249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011255 { (case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258esac
11259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 ac_header_compiler=yes
11265else
11266 echo "$as_me: failed program was:" >&5
11267sed 's/^/| /' conftest.$ac_ext >&5
11268
Reid Spencera773bd52006-08-04 18:18:08 +000011269 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011270fi
Reid Spencera773bd52006-08-04 18:18:08 +000011271
11272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11274echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011275
11276# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011277{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011279cat >conftest.$ac_ext <<_ACEOF
11280/* confdefs.h. */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h. */
11285#include <$ac_header>
11286_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011287if { (ac_try="$ac_cpp conftest.$ac_ext"
11288case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291esac
11292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } >/dev/null; then
11300 if test -s conftest.err; then
11301 ac_cpp_err=$ac_c_preproc_warn_flag
11302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11303 else
11304 ac_cpp_err=
11305 fi
11306else
11307 ac_cpp_err=yes
11308fi
11309if test -z "$ac_cpp_err"; then
11310 ac_header_preproc=yes
11311else
11312 echo "$as_me: failed program was:" >&5
11313sed 's/^/| /' conftest.$ac_ext >&5
11314
11315 ac_header_preproc=no
11316fi
Reid Spencera773bd52006-08-04 18:18:08 +000011317
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011318rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011319{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11320echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321
11322# So? What about this header?
11323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11324 yes:no: )
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11329 ac_header_preproc=yes
11330 ;;
11331 no:yes:* )
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011344 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345## ----------------------------------- ##
11346## Report this to llvmbugs@cs.uiuc.edu ##
11347## ----------------------------------- ##
11348_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011349 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011350 ;;
11351esac
Reid Spencera773bd52006-08-04 18:18:08 +000011352{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011355 echo $ECHO_N "(cached) $ECHO_C" >&6
11356else
11357 eval "$as_ac_Header=\$ac_header_preproc"
11358fi
Reid Spencera773bd52006-08-04 18:18:08 +000011359ac_res=`eval echo '${'$as_ac_Header'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362
11363fi
11364if test `eval echo '${'$as_ac_Header'}'` = yes; then
11365 cat >>confdefs.h <<_ACEOF
11366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11367_ACEOF
11368 break
11369fi
11370
11371done
11372
11373
11374
11375
11376for ac_func in strchr index
11377do
11378as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011379{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11381if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383else
11384 cat >conftest.$ac_ext <<_ACEOF
11385/* confdefs.h. */
11386_ACEOF
11387cat confdefs.h >>conftest.$ac_ext
11388cat >>conftest.$ac_ext <<_ACEOF
11389/* end confdefs.h. */
11390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11392#define $ac_func innocuous_$ac_func
11393
11394/* System header to define __stub macros and hopefully few prototypes,
11395 which can conflict with char $ac_func (); below.
11396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11397 <limits.h> exists even on freestanding compilers. */
11398
11399#ifdef __STDC__
11400# include <limits.h>
11401#else
11402# include <assert.h>
11403#endif
11404
11405#undef $ac_func
11406
Reid Spencera773bd52006-08-04 18:18:08 +000011407/* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011410#ifdef __cplusplus
11411extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413char $ac_func ();
11414/* The GNU C library defines this for functions which it implements
11415 to always fail with ENOSYS. Some functions are actually named
11416 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011417#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419#endif
11420
11421int
11422main ()
11423{
Reid Spencera773bd52006-08-04 18:18:08 +000011424return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425 ;
11426 return 0;
11427}
11428_ACEOF
11429rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011430if { (ac_try="$ac_link"
11431case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434esac
11435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11444 { (case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447esac
11448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011454 { (case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457esac
11458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 eval "$as_ac_var=yes"
11464else
11465 echo "$as_me: failed program was:" >&5
11466sed 's/^/| /' conftest.$ac_ext >&5
11467
Reid Spencera773bd52006-08-04 18:18:08 +000011468 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469fi
Reid Spencera773bd52006-08-04 18:18:08 +000011470
11471rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472 conftest$ac_exeext conftest.$ac_ext
11473fi
Reid Spencera773bd52006-08-04 18:18:08 +000011474ac_res=`eval echo '${'$as_ac_var'}'`
11475 { echo "$as_me:$LINENO: result: $ac_res" >&5
11476echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011477if test `eval echo '${'$as_ac_var'}'` = yes; then
11478 cat >>confdefs.h <<_ACEOF
11479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11480_ACEOF
11481 break
11482fi
11483done
11484
11485
11486
11487for ac_func in strrchr rindex
11488do
11489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011490{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11492if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11503#define $ac_func innocuous_$ac_func
11504
11505/* System header to define __stub macros and hopefully few prototypes,
11506 which can conflict with char $ac_func (); below.
11507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11508 <limits.h> exists even on freestanding compilers. */
11509
11510#ifdef __STDC__
11511# include <limits.h>
11512#else
11513# include <assert.h>
11514#endif
11515
11516#undef $ac_func
11517
Reid Spencera773bd52006-08-04 18:18:08 +000011518/* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011521#ifdef __cplusplus
11522extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011524char $ac_func ();
11525/* The GNU C library defines this for functions which it implements
11526 to always fail with ENOSYS. Some functions are actually named
11527 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011528#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530#endif
11531
11532int
11533main ()
11534{
Reid Spencera773bd52006-08-04 18:18:08 +000011535return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011536 ;
11537 return 0;
11538}
11539_ACEOF
11540rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011541if { (ac_try="$ac_link"
11542case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545esac
11546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11555 { (case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558esac
11559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; } &&
11564 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011565 { (case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11568esac
11569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 eval "$as_ac_var=yes"
11575else
11576 echo "$as_me: failed program was:" >&5
11577sed 's/^/| /' conftest.$ac_ext >&5
11578
Reid Spencera773bd52006-08-04 18:18:08 +000011579 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580fi
Reid Spencera773bd52006-08-04 18:18:08 +000011581
11582rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583 conftest$ac_exeext conftest.$ac_ext
11584fi
Reid Spencera773bd52006-08-04 18:18:08 +000011585ac_res=`eval echo '${'$as_ac_var'}'`
11586 { echo "$as_me:$LINENO: result: $ac_res" >&5
11587echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011588if test `eval echo '${'$as_ac_var'}'` = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11591_ACEOF
11592 break
11593fi
11594done
11595
11596
11597
11598for ac_func in memcpy bcopy
11599do
11600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011601{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11603if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605else
11606 cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11614#define $ac_func innocuous_$ac_func
11615
11616/* System header to define __stub macros and hopefully few prototypes,
11617 which can conflict with char $ac_func (); below.
11618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619 <limits.h> exists even on freestanding compilers. */
11620
11621#ifdef __STDC__
11622# include <limits.h>
11623#else
11624# include <assert.h>
11625#endif
11626
11627#undef $ac_func
11628
Reid Spencera773bd52006-08-04 18:18:08 +000011629/* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011632#ifdef __cplusplus
11633extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011635char $ac_func ();
11636/* The GNU C library defines this for functions which it implements
11637 to always fail with ENOSYS. Some functions are actually named
11638 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011639#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641#endif
11642
11643int
11644main ()
11645{
Reid Spencera773bd52006-08-04 18:18:08 +000011646return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011647 ;
11648 return 0;
11649}
11650_ACEOF
11651rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011652if { (ac_try="$ac_link"
11653case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11656esac
11657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666 { (case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679esac
11680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 eval "$as_ac_var=yes"
11686else
11687 echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
Reid Spencera773bd52006-08-04 18:18:08 +000011690 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011691fi
Reid Spencera773bd52006-08-04 18:18:08 +000011692
11693rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694 conftest$ac_exeext conftest.$ac_ext
11695fi
Reid Spencera773bd52006-08-04 18:18:08 +000011696ac_res=`eval echo '${'$as_ac_var'}'`
11697 { echo "$as_me:$LINENO: result: $ac_res" >&5
11698echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011699if test `eval echo '${'$as_ac_var'}'` = yes; then
11700 cat >>confdefs.h <<_ACEOF
11701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11702_ACEOF
11703 break
11704fi
11705done
11706
11707
11708
11709for ac_func in memmove strcmp
11710do
11711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011712{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
11717 cat >conftest.$ac_ext <<_ACEOF
11718/* confdefs.h. */
11719_ACEOF
11720cat confdefs.h >>conftest.$ac_ext
11721cat >>conftest.$ac_ext <<_ACEOF
11722/* end confdefs.h. */
11723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11725#define $ac_func innocuous_$ac_func
11726
11727/* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11731
11732#ifdef __STDC__
11733# include <limits.h>
11734#else
11735# include <assert.h>
11736#endif
11737
11738#undef $ac_func
11739
Reid Spencera773bd52006-08-04 18:18:08 +000011740/* Override any GCC internal prototype to avoid an error.
11741 Use char because int might match the return type of a GCC
11742 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743#ifdef __cplusplus
11744extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746char $ac_func ();
11747/* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011750#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011751choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752#endif
11753
11754int
11755main ()
11756{
Reid Spencera773bd52006-08-04 18:18:08 +000011757return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011758 ;
11759 return 0;
11760}
11761_ACEOF
11762rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011763if { (ac_try="$ac_link"
11764case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767esac
11768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780esac
11781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011787 { (case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 eval "$as_ac_var=yes"
11797else
11798 echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
Reid Spencera773bd52006-08-04 18:18:08 +000011801 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011802fi
Reid Spencera773bd52006-08-04 18:18:08 +000011803
11804rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805 conftest$ac_exeext conftest.$ac_ext
11806fi
Reid Spencera773bd52006-08-04 18:18:08 +000011807ac_res=`eval echo '${'$as_ac_var'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011810if test `eval echo '${'$as_ac_var'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11813_ACEOF
11814
11815fi
11816done
11817
11818
11819
11820
11821for ac_func in closedir opendir readdir
11822do
11823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011824{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11826if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828else
11829 cat >conftest.$ac_ext <<_ACEOF
11830/* confdefs.h. */
11831_ACEOF
11832cat confdefs.h >>conftest.$ac_ext
11833cat >>conftest.$ac_ext <<_ACEOF
11834/* end confdefs.h. */
11835/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11837#define $ac_func innocuous_$ac_func
11838
11839/* System header to define __stub macros and hopefully few prototypes,
11840 which can conflict with char $ac_func (); below.
11841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842 <limits.h> exists even on freestanding compilers. */
11843
11844#ifdef __STDC__
11845# include <limits.h>
11846#else
11847# include <assert.h>
11848#endif
11849
11850#undef $ac_func
11851
Reid Spencera773bd52006-08-04 18:18:08 +000011852/* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011855#ifdef __cplusplus
11856extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011858char $ac_func ();
11859/* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011862#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011864#endif
11865
11866int
11867main ()
11868{
Reid Spencera773bd52006-08-04 18:18:08 +000011869return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011870 ;
11871 return 0;
11872}
11873_ACEOF
11874rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011875if { (ac_try="$ac_link"
11876case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11879esac
11880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892esac
11893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
11903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 eval "$as_ac_var=yes"
11909else
11910 echo "$as_me: failed program was:" >&5
11911sed 's/^/| /' conftest.$ac_ext >&5
11912
Reid Spencera773bd52006-08-04 18:18:08 +000011913 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011914fi
Reid Spencera773bd52006-08-04 18:18:08 +000011915
11916rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917 conftest$ac_exeext conftest.$ac_ext
11918fi
Reid Spencera773bd52006-08-04 18:18:08 +000011919ac_res=`eval echo '${'$as_ac_var'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011922if test `eval echo '${'$as_ac_var'}'` = yes; then
11923 cat >>confdefs.h <<_ACEOF
11924#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11925_ACEOF
11926
11927fi
11928done
11929
11930
Reid Spencera773bd52006-08-04 18:18:08 +000011931# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011932if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011933 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934 case $enableval in
11935 yes) enable_shared=yes ;;
11936 no) enable_shared=no ;;
11937 *)
11938 enable_shared=no
11939 # Look at the argument we got. We use all the common list separators.
11940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11941 for pkg in $enableval; do
11942 IFS="$lt_save_ifs"
11943 if test "X$pkg" = "X$p"; then
11944 enable_shared=yes
11945 fi
11946 done
11947 IFS="$lt_save_ifs"
11948 ;;
11949 esac
11950else
11951 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011952fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011953
Reid Spencera773bd52006-08-04 18:18:08 +000011954
11955# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011956if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011957 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958 case $enableval in
11959 yes) enable_static=yes ;;
11960 no) enable_static=no ;;
11961 *)
11962 enable_static=no
11963 # Look at the argument we got. We use all the common list separators.
11964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11965 for pkg in $enableval; do
11966 IFS="$lt_save_ifs"
11967 if test "X$pkg" = "X$p"; then
11968 enable_static=yes
11969 fi
11970 done
11971 IFS="$lt_save_ifs"
11972 ;;
11973 esac
11974else
11975 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011976fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011977
Reid Spencera773bd52006-08-04 18:18:08 +000011978
11979# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011980if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011981 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982 case $enableval in
11983 yes) enable_fast_install=yes ;;
11984 no) enable_fast_install=no ;;
11985 *)
11986 enable_fast_install=no
11987 # Look at the argument we got. We use all the common list separators.
11988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11989 for pkg in $enableval; do
11990 IFS="$lt_save_ifs"
11991 if test "X$pkg" = "X$p"; then
11992 enable_fast_install=yes
11993 fi
11994 done
11995 IFS="$lt_save_ifs"
11996 ;;
11997 esac
11998else
11999 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012000fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012001
Reid Spencera773bd52006-08-04 18:18:08 +000012002
12003{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12004echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005if test "${lt_cv_path_SED+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008 # Loop through the user's path and test for sed and gsed.
12009# Then use that list of sed's as ones to test for truncation.
12010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011for as_dir in $PATH
12012do
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for lt_ac_prog in sed gsed; do
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12018 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12019 fi
12020 done
12021 done
12022done
12023lt_ac_max=0
12024lt_ac_count=0
12025# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12026# along with /bin/sed that truncates output.
12027for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012028 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012029 cat /dev/null > conftest.in
12030 lt_ac_count=0
12031 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12032 # Check for GNU sed and select it if it is found.
12033 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12034 lt_cv_path_SED=$lt_ac_sed
12035 break
12036 fi
12037 while true; do
12038 cat conftest.in conftest.in >conftest.tmp
12039 mv conftest.tmp conftest.in
12040 cp conftest.in conftest.nl
12041 echo >>conftest.nl
12042 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12043 cmp -s conftest.out conftest.nl || break
12044 # 10000 chars as input seems more than enough
12045 test $lt_ac_count -gt 10 && break
12046 lt_ac_count=`expr $lt_ac_count + 1`
12047 if test $lt_ac_count -gt $lt_ac_max; then
12048 lt_ac_max=$lt_ac_count
12049 lt_cv_path_SED=$lt_ac_sed
12050 fi
12051 done
12052done
12053
12054fi
12055
12056SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012057{ echo "$as_me:$LINENO: result: $SED" >&5
12058echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059
12060
Reid Spencera773bd52006-08-04 18:18:08 +000012061# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012063 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012064else
12065 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012066fi
12067
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012068ac_prog=ld
12069if test "$GCC" = yes; then
12070 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012071 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12072echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012073 case $host in
12074 *-*-mingw*)
12075 # gcc leaves a trailing carriage return which upsets mingw
12076 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12077 *)
12078 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12079 esac
12080 case $ac_prog in
12081 # Accept absolute paths.
12082 [\\/]* | ?:[\\/]*)
12083 re_direlt='/[^/][^/]*/\.\./'
12084 # Canonicalize the pathname of ld
12085 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12086 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12087 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12088 done
12089 test -z "$LD" && LD="$ac_prog"
12090 ;;
12091 "")
12092 # If it fails, then pretend we aren't using GCC.
12093 ac_prog=ld
12094 ;;
12095 *)
12096 # If it is relative, then search for the first ld in PATH.
12097 with_gnu_ld=unknown
12098 ;;
12099 esac
12100elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012101 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12102echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012103else
Reid Spencera773bd52006-08-04 18:18:08 +000012104 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12105echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012106fi
12107if test "${lt_cv_path_LD+set}" = set; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109else
12110 if test -z "$LD"; then
12111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12112 for ac_dir in $PATH; do
12113 IFS="$lt_save_ifs"
12114 test -z "$ac_dir" && ac_dir=.
12115 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12116 lt_cv_path_LD="$ac_dir/$ac_prog"
12117 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012118 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012119 # Break only if it was the GNU/non-GNU ld that we prefer.
12120 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12121 *GNU* | *'with BFD'*)
12122 test "$with_gnu_ld" != no && break
12123 ;;
12124 *)
12125 test "$with_gnu_ld" != yes && break
12126 ;;
12127 esac
12128 fi
12129 done
12130 IFS="$lt_save_ifs"
12131else
12132 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12133fi
12134fi
12135
12136LD="$lt_cv_path_LD"
12137if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012138 { echo "$as_me:$LINENO: result: $LD" >&5
12139echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012140else
Reid Spencera773bd52006-08-04 18:18:08 +000012141 { echo "$as_me:$LINENO: result: no" >&5
12142echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143fi
12144test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12145echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12146 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012147{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12148echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012149if test "${lt_cv_prog_gnu_ld+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151else
Reid Spencera773bd52006-08-04 18:18:08 +000012152 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012153case `$LD -v 2>&1 </dev/null` in
12154*GNU* | *'with BFD'*)
12155 lt_cv_prog_gnu_ld=yes
12156 ;;
12157*)
12158 lt_cv_prog_gnu_ld=no
12159 ;;
12160esac
12161fi
Reid Spencera773bd52006-08-04 18:18:08 +000012162{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12163echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164with_gnu_ld=$lt_cv_prog_gnu_ld
12165
12166
Reid Spencera773bd52006-08-04 18:18:08 +000012167{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12168echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169if test "${lt_cv_ld_reload_flag+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171else
12172 lt_cv_ld_reload_flag='-r'
12173fi
Reid Spencera773bd52006-08-04 18:18:08 +000012174{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12175echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012176reload_flag=$lt_cv_ld_reload_flag
12177case $reload_flag in
12178"" | " "*) ;;
12179*) reload_flag=" $reload_flag" ;;
12180esac
12181reload_cmds='$LD$reload_flag -o $output$reload_objs'
12182case $host_os in
12183 darwin*)
12184 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012185 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012186 else
12187 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12188 fi
12189 ;;
12190esac
12191
Reid Spencera773bd52006-08-04 18:18:08 +000012192{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12193echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012194if test "${lt_cv_deplibs_check_method+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
12197 lt_cv_file_magic_cmd='$MAGIC_CMD'
12198lt_cv_file_magic_test_file=
12199lt_cv_deplibs_check_method='unknown'
12200# Need to set the preceding variable on all platforms that support
12201# interlibrary dependencies.
12202# 'none' -- dependencies not supported.
12203# `unknown' -- same as none, but documents that we really don't know.
12204# 'pass_all' -- all dependencies passed with no checks.
12205# 'test_compile' -- check by making test program.
12206# 'file_magic [[regex]]' -- check by looking for files in library path
12207# which responds to the $file_magic_cmd with a given extended regex.
12208# If you have `file' or equivalent on your system and you're not sure
12209# whether `pass_all' will *always* work, you probably want this one.
12210
12211case $host_os in
12212aix4* | aix5*)
12213 lt_cv_deplibs_check_method=pass_all
12214 ;;
12215
12216beos*)
12217 lt_cv_deplibs_check_method=pass_all
12218 ;;
12219
12220bsdi[45]*)
12221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12222 lt_cv_file_magic_cmd='/usr/bin/file -L'
12223 lt_cv_file_magic_test_file=/shlib/libc.so
12224 ;;
12225
12226cygwin*)
12227 # func_win32_libid is a shell function defined in ltmain.sh
12228 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12229 lt_cv_file_magic_cmd='func_win32_libid'
12230 ;;
12231
12232mingw* | pw32*)
12233 # Base MSYS/MinGW do not provide the 'file' command needed by
12234 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12235 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12236 lt_cv_file_magic_cmd='$OBJDUMP -f'
12237 ;;
12238
12239darwin* | rhapsody*)
12240 lt_cv_deplibs_check_method=pass_all
12241 ;;
12242
Reid Spencera773bd52006-08-04 18:18:08 +000012243freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012244 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12245 case $host_cpu in
12246 i*86 )
12247 # Not sure whether the presence of OpenBSD here was a mistake.
12248 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012249 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 +000012250 lt_cv_file_magic_cmd=/usr/bin/file
12251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12252 ;;
12253 esac
12254 else
12255 lt_cv_deplibs_check_method=pass_all
12256 fi
12257 ;;
12258
12259gnu*)
12260 lt_cv_deplibs_check_method=pass_all
12261 ;;
12262
12263hpux10.20* | hpux11*)
12264 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012265 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012266 ia64*)
12267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12268 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12269 ;;
12270 hppa*64*)
12271 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]'
12272 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12273 ;;
12274 *)
12275 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12276 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12277 ;;
12278 esac
12279 ;;
12280
Reid Spencera773bd52006-08-04 18:18:08 +000012281interix3*)
12282 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12284 ;;
12285
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012286irix5* | irix6* | nonstopux*)
12287 case $LD in
12288 *-32|*"-32 ") libmagic=32-bit;;
12289 *-n32|*"-n32 ") libmagic=N32;;
12290 *-64|*"-64 ") libmagic=64-bit;;
12291 *) libmagic=never-match;;
12292 esac
12293 lt_cv_deplibs_check_method=pass_all
12294 ;;
12295
12296# This must be Linux ELF.
12297linux*)
12298 lt_cv_deplibs_check_method=pass_all
12299 ;;
12300
12301netbsd*)
12302 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12304 else
12305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12306 fi
12307 ;;
12308
12309newos6*)
12310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12311 lt_cv_file_magic_cmd=/usr/bin/file
12312 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12313 ;;
12314
12315nto-qnx*)
12316 lt_cv_deplibs_check_method=unknown
12317 ;;
12318
12319openbsd*)
12320 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12322 else
12323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12324 fi
12325 ;;
12326
12327osf3* | osf4* | osf5*)
12328 lt_cv_deplibs_check_method=pass_all
12329 ;;
12330
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012331solaris*)
12332 lt_cv_deplibs_check_method=pass_all
12333 ;;
12334
Reid Spencera773bd52006-08-04 18:18:08 +000012335sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012336 case $host_vendor in
12337 motorola)
12338 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]'
12339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12340 ;;
12341 ncr)
12342 lt_cv_deplibs_check_method=pass_all
12343 ;;
12344 sequent)
12345 lt_cv_file_magic_cmd='/bin/file'
12346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12347 ;;
12348 sni)
12349 lt_cv_file_magic_cmd='/bin/file'
12350 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12351 lt_cv_file_magic_test_file=/lib/libc.so
12352 ;;
12353 siemens)
12354 lt_cv_deplibs_check_method=pass_all
12355 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012356 pc)
12357 lt_cv_deplibs_check_method=pass_all
12358 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012359 esac
12360 ;;
12361
Reid Spencera773bd52006-08-04 18:18:08 +000012362sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012363 lt_cv_deplibs_check_method=pass_all
12364 ;;
12365esac
12366
12367fi
Reid Spencera773bd52006-08-04 18:18:08 +000012368{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12369echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012370file_magic_cmd=$lt_cv_file_magic_cmd
12371deplibs_check_method=$lt_cv_deplibs_check_method
12372test -z "$deplibs_check_method" && deplibs_check_method=unknown
12373
12374
12375
12376# If no C compiler was specified, use CC.
12377LTCC=${LTCC-"$CC"}
12378
Reid Spencera773bd52006-08-04 18:18:08 +000012379# If no C compiler flags were specified, use CFLAGS.
12380LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12381
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382# Allow CC to be a program name with arguments.
12383compiler=$CC
12384
Reid Spencera773bd52006-08-04 18:18:08 +000012385# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012386if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012387 enableval=$enable_libtool_lock;
12388fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012389
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012390test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12391
12392# Some flags need to be propagated to the compiler or linker for good
12393# libtool support.
12394case $host in
12395ia64-*-hpux*)
12396 # Find out which ABI we are using.
12397 echo 'int i;' > conftest.$ac_ext
12398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12399 (eval $ac_compile) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; then
12403 case `/usr/bin/file conftest.$ac_objext` in
12404 *ELF-32*)
12405 HPUX_IA64_MODE="32"
12406 ;;
12407 *ELF-64*)
12408 HPUX_IA64_MODE="64"
12409 ;;
12410 esac
12411 fi
12412 rm -rf conftest*
12413 ;;
12414*-*-irix6*)
12415 # Find out which ABI we are using.
Reid Spencerb2ed05262006-11-03 18:04:08 +000012416 echo '#line 12416 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; then
12422 if test "$lt_cv_prog_gnu_ld" = yes; then
12423 case `/usr/bin/file conftest.$ac_objext` in
12424 *32-bit*)
12425 LD="${LD-ld} -melf32bsmip"
12426 ;;
12427 *N32*)
12428 LD="${LD-ld} -melf32bmipn32"
12429 ;;
12430 *64-bit*)
12431 LD="${LD-ld} -melf64bmip"
12432 ;;
12433 esac
12434 else
12435 case `/usr/bin/file conftest.$ac_objext` in
12436 *32-bit*)
12437 LD="${LD-ld} -32"
12438 ;;
12439 *N32*)
12440 LD="${LD-ld} -n32"
12441 ;;
12442 *64-bit*)
12443 LD="${LD-ld} -64"
12444 ;;
12445 esac
12446 fi
12447 fi
12448 rm -rf conftest*
12449 ;;
12450
12451x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12452 # Find out which ABI we are using.
12453 echo 'int i;' > conftest.$ac_ext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455 (eval $ac_compile) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012459 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012460 *32-bit*)
12461 case $host in
12462 x86_64-*linux*)
12463 LD="${LD-ld} -m elf_i386"
12464 ;;
12465 ppc64-*linux*|powerpc64-*linux*)
12466 LD="${LD-ld} -m elf32ppclinux"
12467 ;;
12468 s390x-*linux*)
12469 LD="${LD-ld} -m elf_s390"
12470 ;;
12471 sparc64-*linux*)
12472 LD="${LD-ld} -m elf32_sparc"
12473 ;;
12474 esac
12475 ;;
12476 *64-bit*)
12477 case $host in
12478 x86_64-*linux*)
12479 LD="${LD-ld} -m elf_x86_64"
12480 ;;
12481 ppc*-*linux*|powerpc*-*linux*)
12482 LD="${LD-ld} -m elf64ppc"
12483 ;;
12484 s390*-*linux*)
12485 LD="${LD-ld} -m elf64_s390"
12486 ;;
12487 sparc*-*linux*)
12488 LD="${LD-ld} -m elf64_sparc"
12489 ;;
12490 esac
12491 ;;
12492 esac
12493 fi
12494 rm -rf conftest*
12495 ;;
12496
12497*-*-sco3.2v5*)
12498 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12499 SAVE_CFLAGS="$CFLAGS"
12500 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012501 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12502echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012503if test "${lt_cv_cc_needs_belf+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505else
12506 ac_ext=c
12507ac_cpp='$CPP $CPPFLAGS'
12508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510ac_compiler_gnu=$ac_cv_c_compiler_gnu
12511
12512 cat >conftest.$ac_ext <<_ACEOF
12513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
12518
Reid Spencera773bd52006-08-04 18:18:08 +000012519int
12520main ()
12521{
12522
12523 ;
12524 return 0;
12525}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012526_ACEOF
12527rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012528if { (ac_try="$ac_link"
12529case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12532esac
12533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545esac
12546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012552 { (case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555esac
12556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 lt_cv_cc_needs_belf=yes
12562else
12563 echo "$as_me: failed program was:" >&5
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
Reid Spencera773bd52006-08-04 18:18:08 +000012566 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012567fi
Reid Spencera773bd52006-08-04 18:18:08 +000012568
12569rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012570 conftest$ac_exeext conftest.$ac_ext
12571 ac_ext=c
12572ac_cpp='$CPP $CPPFLAGS'
12573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12575ac_compiler_gnu=$ac_cv_c_compiler_gnu
12576
12577fi
Reid Spencera773bd52006-08-04 18:18:08 +000012578{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12579echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012580 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12581 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12582 CFLAGS="$SAVE_CFLAGS"
12583 fi
12584 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012585sparc*-*solaris*)
12586 # Find out which ABI we are using.
12587 echo 'int i;' > conftest.$ac_ext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; then
12593 case `/usr/bin/file conftest.o` in
12594 *64-bit*)
12595 case $lt_cv_prog_gnu_ld in
12596 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12597 *) LD="${LD-ld} -64" ;;
12598 esac
12599 ;;
12600 esac
12601 fi
12602 rm -rf conftest*
12603 ;;
12604
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012605
12606esac
12607
12608need_locks="$enable_libtool_lock"
12609
12610
Reid Spencer2706f8c2004-09-19 23:53:36 +000012611
12612
12613if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12614 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12615 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012616 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012617ac_cpp='$CXXCPP $CPPFLAGS'
12618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012621{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12622echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012623if test -z "$CXXCPP"; then
12624 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626else
John Criswell47fdd832003-07-14 16:52:07 +000012627 # Double quotes because CXXCPP needs to be expanded
12628 for CXXCPP in "$CXX -E" "/lib/cpp"
12629 do
12630 ac_preproc_ok=false
12631for ac_cxx_preproc_warn_flag in '' yes
12632do
12633 # Use a header file that comes with gcc, so configuring glibc
12634 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12636 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012637 # On the NeXT, cc -E runs the code through the compiler's parser,
12638 # not just through cpp. "Syntax error" is here to catch this case.
12639 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012640/* confdefs.h. */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
12644/* end confdefs.h. */
12645#ifdef __STDC__
12646# include <limits.h>
12647#else
12648# include <assert.h>
12649#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012650 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012651_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012652if { (ac_try="$ac_cpp conftest.$ac_ext"
12653case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12656esac
12657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012659 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012660 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } >/dev/null; then
12665 if test -s conftest.err; then
12666 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012667 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012668 else
John Criswell47fdd832003-07-14 16:52:07 +000012669 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012670 fi
John Criswell47fdd832003-07-14 16:52:07 +000012671else
12672 ac_cpp_err=yes
12673fi
12674if test -z "$ac_cpp_err"; then
12675 :
12676else
12677 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012678sed 's/^/| /' conftest.$ac_ext >&5
12679
John Criswell47fdd832003-07-14 16:52:07 +000012680 # Broken: fails on valid input.
12681continue
12682fi
Reid Spencera773bd52006-08-04 18:18:08 +000012683
John Criswell47fdd832003-07-14 16:52:07 +000012684rm -f conftest.err conftest.$ac_ext
12685
Reid Spencera773bd52006-08-04 18:18:08 +000012686 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012687 # can be detected and how.
12688 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012689/* confdefs.h. */
12690_ACEOF
12691cat confdefs.h >>conftest.$ac_ext
12692cat >>conftest.$ac_ext <<_ACEOF
12693/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012694#include <ac_nonexistent.h>
12695_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012696if { (ac_try="$ac_cpp conftest.$ac_ext"
12697case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12700esac
12701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012703 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012704 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } >/dev/null; then
12709 if test -s conftest.err; then
12710 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012711 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012712 else
12713 ac_cpp_err=
12714 fi
12715else
12716 ac_cpp_err=yes
12717fi
12718if test -z "$ac_cpp_err"; then
12719 # Broken: success on invalid input.
12720continue
12721else
12722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012723sed 's/^/| /' conftest.$ac_ext >&5
12724
John Criswell47fdd832003-07-14 16:52:07 +000012725 # Passes both tests.
12726ac_preproc_ok=:
12727break
12728fi
Reid Spencera773bd52006-08-04 18:18:08 +000012729
John Criswell47fdd832003-07-14 16:52:07 +000012730rm -f conftest.err conftest.$ac_ext
12731
12732done
12733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12734rm -f conftest.err conftest.$ac_ext
12735if $ac_preproc_ok; then
12736 break
John Criswell7a73b802003-06-30 21:59:07 +000012737fi
12738
John Criswell47fdd832003-07-14 16:52:07 +000012739 done
12740 ac_cv_prog_CXXCPP=$CXXCPP
12741
12742fi
12743 CXXCPP=$ac_cv_prog_CXXCPP
12744else
12745 ac_cv_prog_CXXCPP=$CXXCPP
12746fi
Reid Spencera773bd52006-08-04 18:18:08 +000012747{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12748echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012749ac_preproc_ok=false
12750for ac_cxx_preproc_warn_flag in '' yes
12751do
12752 # Use a header file that comes with gcc, so configuring glibc
12753 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12755 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012756 # On the NeXT, cc -E runs the code through the compiler's parser,
12757 # not just through cpp. "Syntax error" is here to catch this case.
12758 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012759/* confdefs.h. */
12760_ACEOF
12761cat confdefs.h >>conftest.$ac_ext
12762cat >>conftest.$ac_ext <<_ACEOF
12763/* end confdefs.h. */
12764#ifdef __STDC__
12765# include <limits.h>
12766#else
12767# include <assert.h>
12768#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012769 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012770_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012771if { (ac_try="$ac_cpp conftest.$ac_ext"
12772case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12775esac
12776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012778 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012779 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } >/dev/null; then
12784 if test -s conftest.err; then
12785 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012786 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012787 else
12788 ac_cpp_err=
12789 fi
12790else
12791 ac_cpp_err=yes
12792fi
12793if test -z "$ac_cpp_err"; then
12794 :
12795else
12796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012797sed 's/^/| /' conftest.$ac_ext >&5
12798
John Criswell47fdd832003-07-14 16:52:07 +000012799 # Broken: fails on valid input.
12800continue
12801fi
Reid Spencera773bd52006-08-04 18:18:08 +000012802
John Criswell47fdd832003-07-14 16:52:07 +000012803rm -f conftest.err conftest.$ac_ext
12804
Reid Spencera773bd52006-08-04 18:18:08 +000012805 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012806 # can be detected and how.
12807 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012808/* confdefs.h. */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012813#include <ac_nonexistent.h>
12814_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012815if { (ac_try="$ac_cpp conftest.$ac_ext"
12816case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819esac
12820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012822 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012823 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } >/dev/null; then
12828 if test -s conftest.err; then
12829 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012830 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012831 else
12832 ac_cpp_err=
12833 fi
12834else
12835 ac_cpp_err=yes
12836fi
12837if test -z "$ac_cpp_err"; then
12838 # Broken: success on invalid input.
12839continue
12840else
12841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012842sed 's/^/| /' conftest.$ac_ext >&5
12843
John Criswell47fdd832003-07-14 16:52:07 +000012844 # Passes both tests.
12845ac_preproc_ok=:
12846break
12847fi
Reid Spencera773bd52006-08-04 18:18:08 +000012848
John Criswell47fdd832003-07-14 16:52:07 +000012849rm -f conftest.err conftest.$ac_ext
12850
12851done
12852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12853rm -f conftest.err conftest.$ac_ext
12854if $ac_preproc_ok; then
12855 :
12856else
John Criswell0c38eaf2003-09-10 15:17:25 +000012857 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12858See \`config.log' for more details." >&5
12859echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12860See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012861 { (exit 1); exit 1; }; }
12862fi
12863
Reid Spencera773bd52006-08-04 18:18:08 +000012864ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012865ac_cpp='$CXXCPP $CPPFLAGS'
12866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12869
Reid Spencer2706f8c2004-09-19 23:53:36 +000012870fi
12871
John Criswell47fdd832003-07-14 16:52:07 +000012872
12873ac_ext=f
12874ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12875ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12877if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012878 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 +000012879 do
12880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12881set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012884if test "${ac_cv_prog_F77+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886else
12887 if test -n "$F77"; then
12888 ac_cv_prog_F77="$F77" # Let the user override the test.
12889else
12890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891for as_dir in $PATH
12892do
12893 IFS=$as_save_IFS
12894 test -z "$as_dir" && as_dir=.
12895 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012896 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 +000012897 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12899 break 2
12900 fi
12901done
12902done
Reid Spencera773bd52006-08-04 18:18:08 +000012903IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012904
12905fi
12906fi
12907F77=$ac_cv_prog_F77
12908if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012909 { echo "$as_me:$LINENO: result: $F77" >&5
12910echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012911else
Reid Spencera773bd52006-08-04 18:18:08 +000012912 { echo "$as_me:$LINENO: result: no" >&5
12913echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012914fi
12915
Reid Spencera773bd52006-08-04 18:18:08 +000012916
John Criswell47fdd832003-07-14 16:52:07 +000012917 test -n "$F77" && break
12918 done
12919fi
12920if test -z "$F77"; then
12921 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012922 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 +000012923do
12924 # Extract the first word of "$ac_prog", so it can be a program name with args.
12925set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012928if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930else
12931 if test -n "$ac_ct_F77"; then
12932 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12933else
12934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935for as_dir in $PATH
12936do
12937 IFS=$as_save_IFS
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012940 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 +000012941 ac_cv_prog_ac_ct_F77="$ac_prog"
12942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12943 break 2
12944 fi
12945done
12946done
Reid Spencera773bd52006-08-04 18:18:08 +000012947IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012948
12949fi
12950fi
12951ac_ct_F77=$ac_cv_prog_ac_ct_F77
12952if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012953 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12954echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012955else
Reid Spencera773bd52006-08-04 18:18:08 +000012956 { echo "$as_me:$LINENO: result: no" >&5
12957echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012958fi
12959
Reid Spencera773bd52006-08-04 18:18:08 +000012960
John Criswell47fdd832003-07-14 16:52:07 +000012961 test -n "$ac_ct_F77" && break
12962done
12963
Reid Spencera773bd52006-08-04 18:18:08 +000012964 if test "x$ac_ct_F77" = x; then
12965 F77=""
12966 else
12967 case $cross_compiling:$ac_tool_warned in
12968yes:)
12969{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12970whose name does not start with the host triplet. If you think this
12971configuration is useful to you, please write to autoconf@gnu.org." >&5
12972echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12973whose name does not start with the host triplet. If you think this
12974configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12975ac_tool_warned=yes ;;
12976esac
12977 F77=$ac_ct_F77
12978 fi
John Criswell47fdd832003-07-14 16:52:07 +000012979fi
12980
12981
12982# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000012983echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012984ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000012985{ (ac_try="$ac_compiler --version >&5"
12986case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989esac
12990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012995{ (ac_try="$ac_compiler -v >&5"
12996case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999esac
13000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013005{ (ac_try="$ac_compiler -V >&5"
13006case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13009esac
13010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013015rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013016
13017# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013018# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013019ac_save_ext=$ac_ext
13020ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013021{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13022echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013023if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025else
13026 cat >conftest.$ac_ext <<_ACEOF
13027 program main
13028#ifndef __GNUC__
13029 choke me
13030#endif
13031
13032 end
13033_ACEOF
13034rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013035if { (ac_try="$ac_compile"
13036case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13039esac
13040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013042 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013043 grep -v '^ *+' conftest.er1 >conftest.err
13044 rm -f conftest.er1
13045 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013048 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13049 { (case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13052esac
13053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013059 { (case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062esac
13063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_compiler_gnu=yes
13069else
13070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013071sed 's/^/| /' conftest.$ac_ext >&5
13072
Reid Spencera773bd52006-08-04 18:18:08 +000013073 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013074fi
Reid Spencera773bd52006-08-04 18:18:08 +000013075
13076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013077ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13078
13079fi
Reid Spencera773bd52006-08-04 18:18:08 +000013080{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13081echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013082ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013083ac_test_FFLAGS=${FFLAGS+set}
13084ac_save_FFLAGS=$FFLAGS
13085FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013086{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13087echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013088if test "${ac_cv_prog_f77_g+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090else
13091 FFLAGS=-g
13092cat >conftest.$ac_ext <<_ACEOF
13093 program main
13094
13095 end
13096_ACEOF
13097rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013098if { (ac_try="$ac_compile"
13099case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13102esac
13103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013105 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013111 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13112 { (case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115esac
13116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013122 { (case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125esac
13126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013128 ac_status=$?
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }; then
13131 ac_cv_prog_f77_g=yes
13132else
13133 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013134sed 's/^/| /' conftest.$ac_ext >&5
13135
Reid Spencera773bd52006-08-04 18:18:08 +000013136 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013137fi
Reid Spencera773bd52006-08-04 18:18:08 +000013138
13139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013140
13141fi
Reid Spencera773bd52006-08-04 18:18:08 +000013142{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13143echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013144if test "$ac_test_FFLAGS" = set; then
13145 FFLAGS=$ac_save_FFLAGS
13146elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013147 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013148 FFLAGS="-g -O2"
13149 else
13150 FFLAGS="-g"
13151 fi
13152else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013153 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013154 FFLAGS="-O2"
13155 else
13156 FFLAGS=
13157 fi
13158fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013159
13160G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013161ac_ext=c
13162ac_cpp='$CPP $CPPFLAGS'
13163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165ac_compiler_gnu=$ac_cv_c_compiler_gnu
13166
13167
13168
13169# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13170
13171# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013172{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13173echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013174if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13176else
13177 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013178 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013179
13180 case $build_os in
13181 msdosdjgpp*)
13182 # On DJGPP, this test can blow up pretty badly due to problems in libc
13183 # (any single argument exceeding 2000 bytes causes a buffer overrun
13184 # during glob expansion). Even if it were fixed, the result of this
13185 # check would be larger than it should be.
13186 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13187 ;;
13188
13189 gnu*)
13190 # Under GNU Hurd, this test is not required because there is
13191 # no limit to the length of command line arguments.
13192 # Libtool will interpret -1 as no limit whatsoever
13193 lt_cv_sys_max_cmd_len=-1;
13194 ;;
13195
13196 cygwin* | mingw*)
13197 # On Win9x/ME, this test blows up -- it succeeds, but takes
13198 # about 5 minutes as the teststring grows exponentially.
13199 # Worse, since 9x/ME are not pre-emptively multitasking,
13200 # you end up with a "frozen" computer, even though with patience
13201 # the test eventually succeeds (with a max line length of 256k).
13202 # Instead, let's just punt: use the minimum linelength reported by
13203 # all of the supported platforms: 8192 (on NT/2K/XP).
13204 lt_cv_sys_max_cmd_len=8192;
13205 ;;
13206
Reid Spencer2706f8c2004-09-19 23:53:36 +000013207 amigaos*)
13208 # On AmigaOS with pdksh, this test takes hours, literally.
13209 # So we just punt and use a minimum line length of 8192.
13210 lt_cv_sys_max_cmd_len=8192;
13211 ;;
13212
Reid Spencera773bd52006-08-04 18:18:08 +000013213 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013214 # This has been around since 386BSD, at least. Likely further.
13215 if test -x /sbin/sysctl; then
13216 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13217 elif test -x /usr/sbin/sysctl; then
13218 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13219 else
Reid Spencera773bd52006-08-04 18:18:08 +000013220 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013221 fi
13222 # And add a safety zone
13223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013225 ;;
13226
Reid Spencera773bd52006-08-04 18:18:08 +000013227 interix*)
13228 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13229 lt_cv_sys_max_cmd_len=196608
13230 ;;
13231
13232 osf*)
13233 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13234 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13235 # nice to cause kernel panics so lets avoid the loop below.
13236 # First set a reasonable default.
13237 lt_cv_sys_max_cmd_len=16384
13238 #
13239 if test -x /sbin/sysconfig; then
13240 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13241 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13242 esac
13243 fi
13244 ;;
13245 sco3.2v5*)
13246 lt_cv_sys_max_cmd_len=102400
13247 ;;
13248 sysv5* | sco5v6* | sysv4.2uw2*)
13249 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13250 if test -n "$kargmax"; then
13251 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13252 else
13253 lt_cv_sys_max_cmd_len=32768
13254 fi
13255 ;;
13256 *)
John Criswell47fdd832003-07-14 16:52:07 +000013257 # If test is not a shell built-in, we'll probably end up computing a
13258 # maximum length that is only half of the actual maximum length, but
13259 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013260 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13261 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13262 = "XX$teststring") >/dev/null 2>&1 &&
13263 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013264 lt_cv_sys_max_cmd_len=$new_result &&
13265 test $i != 17 # 1/2 MB should be enough
13266 do
13267 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013268 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013269 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013270 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013271 # Add a significant safety factor because C++ compilers can tack on massive
13272 # amounts of additional arguments before passing them to the linker.
13273 # It appears as though 1/2 is a usable value.
13274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13275 ;;
13276 esac
13277
13278fi
13279
13280if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013281 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13282echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013283else
Reid Spencera773bd52006-08-04 18:18:08 +000013284 { echo "$as_me:$LINENO: result: none" >&5
13285echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013286fi
13287
13288
13289
13290
13291# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013292{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13293echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013294if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13296else
13297
13298# These are sane defaults that work on at least a few old systems.
13299# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13300
13301# Character class describing NM global symbol codes.
13302symcode='[BCDEGRST]'
13303
13304# Regexp to match symbols that can be accessed directly from C.
13305sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13306
John Criswell47fdd832003-07-14 16:52:07 +000013307# Transform an extracted symbol line into a proper C declaration
13308lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13309
13310# Transform an extracted symbol line into symbol name and symbol address
13311lt_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'"
13312
13313# Define system-specific variables.
13314case $host_os in
13315aix*)
13316 symcode='[BCDT]'
13317 ;;
13318cygwin* | mingw* | pw32*)
13319 symcode='[ABCDGISTW]'
13320 ;;
13321hpux*) # Its linker distinguishes data from code symbols
13322 if test "$host_cpu" = ia64; then
13323 symcode='[ABCDEGRST]'
13324 fi
13325 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13326 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'"
13327 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013328linux*)
13329 if test "$host_cpu" = ia64; then
13330 symcode='[ABCDGIRSTW]'
13331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13332 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'"
13333 fi
13334 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013335irix* | nonstopux*)
13336 symcode='[BCDEGRST]'
13337 ;;
13338osf*)
13339 symcode='[BCDEGQRST]'
13340 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013341solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013342 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013343 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013344sco3.2v5*)
13345 symcode='[DT]'
13346 ;;
13347sysv4.2uw2*)
13348 symcode='[DT]'
13349 ;;
13350sysv5* | sco5v6* | unixware* | OpenUNIX*)
13351 symcode='[ABDT]'
13352 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013353sysv4)
13354 symcode='[DFNSTU]'
13355 ;;
13356esac
13357
13358# Handle CRLF in mingw tool chain
13359opt_cr=
13360case $build_os in
13361mingw*)
13362 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13363 ;;
13364esac
13365
13366# If we're using GNU nm, then use its standard symbol codes.
13367case `$NM -V 2>&1` in
13368*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013369 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013370esac
13371
13372# Try without a prefix undercore, then with it.
13373for ac_symprfx in "" "_"; do
13374
Reid Spencera773bd52006-08-04 18:18:08 +000013375 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13376 symxfrm="\\1 $ac_symprfx\\2 \\2"
13377
John Criswell47fdd832003-07-14 16:52:07 +000013378 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013379 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 +000013380
13381 # Check to see that the pipe works correctly.
13382 pipe_works=no
13383
13384 rm -f conftest*
13385 cat > conftest.$ac_ext <<EOF
13386#ifdef __cplusplus
13387extern "C" {
13388#endif
13389char nm_test_var;
13390void nm_test_func(){}
13391#ifdef __cplusplus
13392}
13393#endif
13394int main(){nm_test_var='a';nm_test_func();return(0);}
13395EOF
13396
13397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; then
13402 # Now try to grab the symbols.
13403 nlist=conftest.nm
13404 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13405 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } && test -s "$nlist"; then
13409 # Try sorting and uniquifying the output.
13410 if sort "$nlist" | uniq > "$nlist"T; then
13411 mv -f "$nlist"T "$nlist"
13412 else
13413 rm -f "$nlist"T
13414 fi
13415
13416 # Make sure that we snagged all the symbols we need.
13417 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13418 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13419 cat <<EOF > conftest.$ac_ext
13420#ifdef __cplusplus
13421extern "C" {
13422#endif
13423
13424EOF
13425 # Now generate the symbol file.
13426 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13427
13428 cat <<EOF >> conftest.$ac_ext
13429#if defined (__STDC__) && __STDC__
13430# define lt_ptr_t void *
13431#else
13432# define lt_ptr_t char *
13433# define const
13434#endif
13435
13436/* The mapping between symbol names and symbols. */
13437const struct {
13438 const char *name;
13439 lt_ptr_t address;
13440}
13441lt_preloaded_symbols[] =
13442{
13443EOF
13444 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13445 cat <<\EOF >> conftest.$ac_ext
13446 {0, (lt_ptr_t) 0}
13447};
13448
13449#ifdef __cplusplus
13450}
13451#endif
13452EOF
13453 # Now try linking the two files.
13454 mv conftest.$ac_objext conftstm.$ac_objext
13455 lt_save_LIBS="$LIBS"
13456 lt_save_CFLAGS="$CFLAGS"
13457 LIBS="conftstm.$ac_objext"
13458 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13460 (eval $ac_link) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13464 pipe_works=yes
13465 fi
13466 LIBS="$lt_save_LIBS"
13467 CFLAGS="$lt_save_CFLAGS"
13468 else
13469 echo "cannot find nm_test_func in $nlist" >&5
13470 fi
13471 else
13472 echo "cannot find nm_test_var in $nlist" >&5
13473 fi
13474 else
13475 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13476 fi
13477 else
13478 echo "$progname: failed program was:" >&5
13479 cat conftest.$ac_ext >&5
13480 fi
13481 rm -f conftest* conftst*
13482
13483 # Do not use the global_symbol_pipe unless it works.
13484 if test "$pipe_works" = yes; then
13485 break
13486 else
13487 lt_cv_sys_global_symbol_pipe=
13488 fi
13489done
13490
13491fi
13492
13493if test -z "$lt_cv_sys_global_symbol_pipe"; then
13494 lt_cv_sys_global_symbol_to_cdecl=
13495fi
13496if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013497 { echo "$as_me:$LINENO: result: failed" >&5
13498echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013499else
Reid Spencera773bd52006-08-04 18:18:08 +000013500 { echo "$as_me:$LINENO: result: ok" >&5
13501echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013502fi
13503
Reid Spencera773bd52006-08-04 18:18:08 +000013504{ echo "$as_me:$LINENO: checking for objdir" >&5
13505echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013506if test "${lt_cv_objdir+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508else
13509 rm -f .libs 2>/dev/null
13510mkdir .libs 2>/dev/null
13511if test -d .libs; then
13512 lt_cv_objdir=.libs
13513else
13514 # MS-DOS does not allow filenames that begin with a dot.
13515 lt_cv_objdir=_libs
13516fi
13517rmdir .libs 2>/dev/null
13518fi
Reid Spencera773bd52006-08-04 18:18:08 +000013519{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13520echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013521objdir=$lt_cv_objdir
13522
13523
13524
13525
13526
13527case $host_os in
13528aix3*)
13529 # AIX sometimes has problems with the GCC collect2 program. For some
13530 # reason, if we set the COLLECT_NAMES environment variable, the problems
13531 # vanish in a puff of smoke.
13532 if test "X${COLLECT_NAMES+set}" != Xset; then
13533 COLLECT_NAMES=
13534 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013535 fi
13536 ;;
13537esac
13538
John Criswell47fdd832003-07-14 16:52:07 +000013539# Sed substitution that helps us do robust quoting. It backslashifies
13540# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013541Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013542sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13543
13544# Same as above, but do not quote variable references.
13545double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13546
13547# Sed substitution to delay expansion of an escaped shell variable in a
13548# double_quote_subst'ed string.
13549delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13550
13551# Sed substitution to avoid accidental globbing in evaled expressions
13552no_glob_subst='s/\*/\\\*/g'
13553
13554# Constants:
13555rm="rm -f"
13556
13557# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013558default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013559can_build_shared=yes
13560
Reid Spencera773bd52006-08-04 18:18:08 +000013561# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013562# which needs '.lib').
13563libext=a
13564ltmain="$ac_aux_dir/ltmain.sh"
13565ofile="$default_ofile"
13566with_gnu_ld="$lt_cv_prog_gnu_ld"
13567
13568if test -n "$ac_tool_prefix"; then
13569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13570set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013573if test "${ac_cv_prog_AR+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13575else
13576 if test -n "$AR"; then
13577 ac_cv_prog_AR="$AR" # Let the user override the test.
13578else
13579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580for as_dir in $PATH
13581do
13582 IFS=$as_save_IFS
13583 test -z "$as_dir" && as_dir=.
13584 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013585 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 +000013586 ac_cv_prog_AR="${ac_tool_prefix}ar"
13587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13588 break 2
13589 fi
13590done
13591done
Reid Spencera773bd52006-08-04 18:18:08 +000013592IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013593
13594fi
13595fi
13596AR=$ac_cv_prog_AR
13597if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013598 { echo "$as_me:$LINENO: result: $AR" >&5
13599echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013600else
Reid Spencera773bd52006-08-04 18:18:08 +000013601 { echo "$as_me:$LINENO: result: no" >&5
13602echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013603fi
13604
Reid Spencera773bd52006-08-04 18:18:08 +000013605
John Criswell47fdd832003-07-14 16:52:07 +000013606fi
13607if test -z "$ac_cv_prog_AR"; then
13608 ac_ct_AR=$AR
13609 # Extract the first word of "ar", so it can be a program name with args.
13610set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013613if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615else
13616 if test -n "$ac_ct_AR"; then
13617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13618else
13619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13620for as_dir in $PATH
13621do
13622 IFS=$as_save_IFS
13623 test -z "$as_dir" && as_dir=.
13624 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013625 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 +000013626 ac_cv_prog_ac_ct_AR="ar"
13627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13628 break 2
13629 fi
13630done
13631done
Reid Spencera773bd52006-08-04 18:18:08 +000013632IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013633
John Criswell47fdd832003-07-14 16:52:07 +000013634fi
13635fi
13636ac_ct_AR=$ac_cv_prog_ac_ct_AR
13637if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013638 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13639echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013640else
Reid Spencera773bd52006-08-04 18:18:08 +000013641 { echo "$as_me:$LINENO: result: no" >&5
13642echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013643fi
13644
Reid Spencera773bd52006-08-04 18:18:08 +000013645 if test "x$ac_ct_AR" = x; then
13646 AR="false"
13647 else
13648 case $cross_compiling:$ac_tool_warned in
13649yes:)
13650{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13651whose name does not start with the host triplet. If you think this
13652configuration is useful to you, please write to autoconf@gnu.org." >&5
13653echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13654whose name does not start with the host triplet. If you think this
13655configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13656ac_tool_warned=yes ;;
13657esac
13658 AR=$ac_ct_AR
13659 fi
John Criswell47fdd832003-07-14 16:52:07 +000013660else
13661 AR="$ac_cv_prog_AR"
13662fi
13663
John Criswell7a73b802003-06-30 21:59:07 +000013664if test -n "$ac_tool_prefix"; then
13665 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13666set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013669if test "${ac_cv_prog_RANLIB+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671else
13672 if test -n "$RANLIB"; then
13673 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13674else
13675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676for as_dir in $PATH
13677do
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013681 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 +000013682 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13684 break 2
13685 fi
13686done
13687done
Reid Spencera773bd52006-08-04 18:18:08 +000013688IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013689
13690fi
13691fi
13692RANLIB=$ac_cv_prog_RANLIB
13693if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013694 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13695echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013696else
Reid Spencera773bd52006-08-04 18:18:08 +000013697 { echo "$as_me:$LINENO: result: no" >&5
13698echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013699fi
13700
Reid Spencera773bd52006-08-04 18:18:08 +000013701
John Criswell7a73b802003-06-30 21:59:07 +000013702fi
13703if test -z "$ac_cv_prog_RANLIB"; then
13704 ac_ct_RANLIB=$RANLIB
13705 # Extract the first word of "ranlib", so it can be a program name with args.
13706set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013709if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711else
13712 if test -n "$ac_ct_RANLIB"; then
13713 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13714else
13715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716for as_dir in $PATH
13717do
13718 IFS=$as_save_IFS
13719 test -z "$as_dir" && as_dir=.
13720 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013721 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 +000013722 ac_cv_prog_ac_ct_RANLIB="ranlib"
13723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13724 break 2
13725 fi
13726done
13727done
Reid Spencera773bd52006-08-04 18:18:08 +000013728IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013729
John Criswell7a73b802003-06-30 21:59:07 +000013730fi
13731fi
13732ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13733if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013734 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13735echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013736else
Reid Spencera773bd52006-08-04 18:18:08 +000013737 { echo "$as_me:$LINENO: result: no" >&5
13738echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013739fi
13740
Reid Spencera773bd52006-08-04 18:18:08 +000013741 if test "x$ac_ct_RANLIB" = x; then
13742 RANLIB=":"
13743 else
13744 case $cross_compiling:$ac_tool_warned in
13745yes:)
13746{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13747whose name does not start with the host triplet. If you think this
13748configuration is useful to you, please write to autoconf@gnu.org." >&5
13749echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13750whose name does not start with the host triplet. If you think this
13751configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13752ac_tool_warned=yes ;;
13753esac
13754 RANLIB=$ac_ct_RANLIB
13755 fi
John Criswell7a73b802003-06-30 21:59:07 +000013756else
13757 RANLIB="$ac_cv_prog_RANLIB"
13758fi
13759
13760if test -n "$ac_tool_prefix"; then
13761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13762set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013765if test "${ac_cv_prog_STRIP+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13767else
13768 if test -n "$STRIP"; then
13769 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13770else
13771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772for as_dir in $PATH
13773do
13774 IFS=$as_save_IFS
13775 test -z "$as_dir" && as_dir=.
13776 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013777 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 +000013778 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13780 break 2
13781 fi
13782done
13783done
Reid Spencera773bd52006-08-04 18:18:08 +000013784IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013785
13786fi
13787fi
13788STRIP=$ac_cv_prog_STRIP
13789if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013790 { echo "$as_me:$LINENO: result: $STRIP" >&5
13791echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013792else
Reid Spencera773bd52006-08-04 18:18:08 +000013793 { echo "$as_me:$LINENO: result: no" >&5
13794echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013795fi
13796
Reid Spencera773bd52006-08-04 18:18:08 +000013797
John Criswell7a73b802003-06-30 21:59:07 +000013798fi
13799if test -z "$ac_cv_prog_STRIP"; then
13800 ac_ct_STRIP=$STRIP
13801 # Extract the first word of "strip", so it can be a program name with args.
13802set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013805if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807else
13808 if test -n "$ac_ct_STRIP"; then
13809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13810else
13811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13812for as_dir in $PATH
13813do
13814 IFS=$as_save_IFS
13815 test -z "$as_dir" && as_dir=.
13816 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013817 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 +000013818 ac_cv_prog_ac_ct_STRIP="strip"
13819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13820 break 2
13821 fi
13822done
13823done
Reid Spencera773bd52006-08-04 18:18:08 +000013824IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013825
John Criswell7a73b802003-06-30 21:59:07 +000013826fi
13827fi
13828ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13829if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013830 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13831echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013832else
Reid Spencera773bd52006-08-04 18:18:08 +000013833 { echo "$as_me:$LINENO: result: no" >&5
13834echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013835fi
13836
Reid Spencera773bd52006-08-04 18:18:08 +000013837 if test "x$ac_ct_STRIP" = x; then
13838 STRIP=":"
13839 else
13840 case $cross_compiling:$ac_tool_warned in
13841yes:)
13842{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13843whose name does not start with the host triplet. If you think this
13844configuration is useful to you, please write to autoconf@gnu.org." >&5
13845echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13846whose name does not start with the host triplet. If you think this
13847configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13848ac_tool_warned=yes ;;
13849esac
13850 STRIP=$ac_ct_STRIP
13851 fi
John Criswell7a73b802003-06-30 21:59:07 +000013852else
13853 STRIP="$ac_cv_prog_STRIP"
13854fi
13855
13856
John Criswell7a73b802003-06-30 21:59:07 +000013857old_CC="$CC"
13858old_CFLAGS="$CFLAGS"
13859
13860# Set sane defaults for various variables
13861test -z "$AR" && AR=ar
13862test -z "$AR_FLAGS" && AR_FLAGS=cru
13863test -z "$AS" && AS=as
13864test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013865test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013866test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013867test -z "$DLLTOOL" && DLLTOOL=dlltool
13868test -z "$LD" && LD=ld
13869test -z "$LN_S" && LN_S="ln -s"
13870test -z "$MAGIC_CMD" && MAGIC_CMD=file
13871test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013872test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013873test -z "$OBJDUMP" && OBJDUMP=objdump
13874test -z "$RANLIB" && RANLIB=:
13875test -z "$STRIP" && STRIP=:
13876test -z "$ac_objext" && ac_objext=o
13877
John Criswell7a73b802003-06-30 21:59:07 +000013878# Determine commands to create old-style static archives.
13879old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13880old_postinstall_cmds='chmod 644 $oldlib'
13881old_postuninstall_cmds=
13882
13883if test -n "$RANLIB"; then
13884 case $host_os in
13885 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013886 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013887 ;;
13888 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013890 ;;
13891 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013892 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013893fi
13894
Reid Spencera773bd52006-08-04 18:18:08 +000013895for cc_temp in $compiler""; do
13896 case $cc_temp in
13897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13899 \-*) ;;
13900 *) break;;
13901 esac
13902done
13903cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13904
Reid Spencer2706f8c2004-09-19 23:53:36 +000013905
John Criswell47fdd832003-07-14 16:52:07 +000013906# Only perform the check for file, if the check method requires it
13907case $deplibs_check_method in
13908file_magic*)
13909 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013910 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13911echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013912if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013914else
John Criswell47fdd832003-07-14 16:52:07 +000013915 case $MAGIC_CMD in
13916[\\/*] | ?:[\\/]*)
13917 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13918 ;;
13919*)
13920 lt_save_MAGIC_CMD="$MAGIC_CMD"
13921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13922 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13923 for ac_dir in $ac_dummy; do
13924 IFS="$lt_save_ifs"
13925 test -z "$ac_dir" && ac_dir=.
13926 if test -f $ac_dir/${ac_tool_prefix}file; then
13927 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13928 if test -n "$file_magic_test_file"; then
13929 case $deplibs_check_method in
13930 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013931 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13934 $EGREP "$file_magic_regex" > /dev/null; then
13935 :
13936 else
13937 cat <<EOF 1>&2
13938
13939*** Warning: the command libtool uses to detect shared libraries,
13940*** $file_magic_cmd, produces output that libtool cannot recognize.
13941*** The result is that libtool may fail to recognize shared libraries
13942*** as such. This will affect the creation of libtool libraries that
13943*** depend on shared libraries, but programs linked with such libtool
13944*** libraries will work regardless of this problem. Nevertheless, you
13945*** may want to report the problem to your system manager and/or to
13946*** bug-libtool@gnu.org
13947
13948EOF
13949 fi ;;
13950 esac
13951 fi
13952 break
13953 fi
13954 done
13955 IFS="$lt_save_ifs"
13956 MAGIC_CMD="$lt_save_MAGIC_CMD"
13957 ;;
13958esac
John Criswell7a73b802003-06-30 21:59:07 +000013959fi
John Criswell7a73b802003-06-30 21:59:07 +000013960
John Criswell47fdd832003-07-14 16:52:07 +000013961MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13962if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013963 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13964echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013965else
Reid Spencera773bd52006-08-04 18:18:08 +000013966 { echo "$as_me:$LINENO: result: no" >&5
13967echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013968fi
John Criswell7a73b802003-06-30 21:59:07 +000013969
John Criswell47fdd832003-07-14 16:52:07 +000013970if test -z "$lt_cv_path_MAGIC_CMD"; then
13971 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013972 { echo "$as_me:$LINENO: checking for file" >&5
13973echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013974if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976else
13977 case $MAGIC_CMD in
13978[\\/*] | ?:[\\/]*)
13979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13980 ;;
13981*)
13982 lt_save_MAGIC_CMD="$MAGIC_CMD"
13983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13985 for ac_dir in $ac_dummy; do
13986 IFS="$lt_save_ifs"
13987 test -z "$ac_dir" && ac_dir=.
13988 if test -f $ac_dir/file; then
13989 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13990 if test -n "$file_magic_test_file"; then
13991 case $deplibs_check_method in
13992 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13996 $EGREP "$file_magic_regex" > /dev/null; then
13997 :
13998 else
13999 cat <<EOF 1>&2
14000
14001*** Warning: the command libtool uses to detect shared libraries,
14002*** $file_magic_cmd, produces output that libtool cannot recognize.
14003*** The result is that libtool may fail to recognize shared libraries
14004*** as such. This will affect the creation of libtool libraries that
14005*** depend on shared libraries, but programs linked with such libtool
14006*** libraries will work regardless of this problem. Nevertheless, you
14007*** may want to report the problem to your system manager and/or to
14008*** bug-libtool@gnu.org
14009
14010EOF
14011 fi ;;
14012 esac
14013 fi
14014 break
14015 fi
14016 done
14017 IFS="$lt_save_ifs"
14018 MAGIC_CMD="$lt_save_MAGIC_CMD"
14019 ;;
14020esac
14021fi
14022
14023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14024if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014025 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14026echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014027else
Reid Spencera773bd52006-08-04 18:18:08 +000014028 { echo "$as_me:$LINENO: result: no" >&5
14029echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014030fi
14031
14032 else
14033 MAGIC_CMD=:
14034 fi
14035fi
14036
14037 fi
14038 ;;
14039esac
14040
Reid Spencer17795972004-11-18 09:47:37 +000014041enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014042enable_win32_dll=no
14043
Reid Spencera773bd52006-08-04 18:18:08 +000014044# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014045if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014046 enableval=$enable_libtool_lock;
14047fi
John Criswell47fdd832003-07-14 16:52:07 +000014048
John Criswell47fdd832003-07-14 16:52:07 +000014049test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14050
John Criswell7a73b802003-06-30 21:59:07 +000014051
Reid Spencera773bd52006-08-04 18:18:08 +000014052# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014053if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014054 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014055else
14056 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014057fi
14058
John Criswell7a73b802003-06-30 21:59:07 +000014059test -z "$pic_mode" && pic_mode=default
14060
John Criswell47fdd832003-07-14 16:52:07 +000014061# Use C for the default configuration in the libtool script
14062tagname=
14063lt_save_CC="$CC"
14064ac_ext=c
14065ac_cpp='$CPP $CPPFLAGS'
14066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068ac_compiler_gnu=$ac_cv_c_compiler_gnu
14069
14070
14071# Source file extension for C test sources.
14072ac_ext=c
14073
14074# Object file extension for compiled C test sources.
14075objext=o
14076objext=$objext
14077
14078# Code to be used in simple compile tests
14079lt_simple_compile_test_code="int some_variable = 0;\n"
14080
14081# Code to be used in simple link tests
14082lt_simple_link_test_code='int main(){return(0);}\n'
14083
14084
14085# If no C compiler was specified, use CC.
14086LTCC=${LTCC-"$CC"}
14087
Reid Spencera773bd52006-08-04 18:18:08 +000014088# If no C compiler flags were specified, use CFLAGS.
14089LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14090
John Criswell47fdd832003-07-14 16:52:07 +000014091# Allow CC to be a program name with arguments.
14092compiler=$CC
14093
14094
Reid Spencera773bd52006-08-04 18:18:08 +000014095# save warnings/boilerplate of simple test code
14096ac_outfile=conftest.$ac_objext
14097printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14098eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14099_lt_compiler_boilerplate=`cat conftest.err`
14100$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014101
Reid Spencera773bd52006-08-04 18:18:08 +000014102ac_outfile=conftest.$ac_objext
14103printf "$lt_simple_link_test_code" >conftest.$ac_ext
14104eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14105_lt_linker_boilerplate=`cat conftest.err`
14106$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014107
14108
John Criswell47fdd832003-07-14 16:52:07 +000014109
14110lt_prog_compiler_no_builtin_flag=
14111
14112if test "$GCC" = yes; then
14113 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14114
Reid Spencer2706f8c2004-09-19 23:53:36 +000014115
Reid Spencera773bd52006-08-04 18:18:08 +000014116{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14117echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014118if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14120else
14121 lt_cv_prog_compiler_rtti_exceptions=no
14122 ac_outfile=conftest.$ac_objext
14123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14124 lt_compiler_flag="-fno-rtti -fno-exceptions"
14125 # Insert the option either (1) after the last *FLAGS variable, or
14126 # (2) before a word containing "conftest.", or (3) at the end.
14127 # Note that $ac_compile itself does not contain backslashes and begins
14128 # with a dollar sign (not a hyphen), so the echo should work correctly.
14129 # The option is referenced via a variable to avoid confusing sed.
14130 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14133 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb2ed05262006-11-03 18:04:08 +000014134 (eval echo "\"\$as_me:14134: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014135 (eval "$lt_compile" 2>conftest.err)
14136 ac_status=$?
14137 cat conftest.err >&5
Reid Spencerb2ed05262006-11-03 18:04:08 +000014138 echo "$as_me:14138: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014139 if (exit $ac_status) && test -s "$ac_outfile"; then
14140 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014141 # So say no if there are warnings other than the usual output.
14142 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014145 lt_cv_prog_compiler_rtti_exceptions=yes
14146 fi
14147 fi
14148 $rm conftest*
14149
14150fi
Reid Spencera773bd52006-08-04 18:18:08 +000014151{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14152echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014153
14154if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14155 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14156else
14157 :
14158fi
14159
14160fi
14161
14162lt_prog_compiler_wl=
14163lt_prog_compiler_pic=
14164lt_prog_compiler_static=
14165
Reid Spencera773bd52006-08-04 18:18:08 +000014166{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14167echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014168
14169 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014170 lt_prog_compiler_wl='-Wl,'
14171 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014172
14173 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014174 aix*)
14175 # All AIX code is PIC.
14176 if test "$host_cpu" = ia64; then
14177 # AIX 5 now supports IA64 processor
14178 lt_prog_compiler_static='-Bstatic'
14179 fi
John Criswell7a73b802003-06-30 21:59:07 +000014180 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014181
John Criswell7a73b802003-06-30 21:59:07 +000014182 amigaos*)
14183 # FIXME: we need at least 68020 code to build shared libraries, but
14184 # adding the `-m68020' flag to GCC prevents building anything better,
14185 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014186 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014187 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014188
14189 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014190 # PIC is the default for these OSes.
14191 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014192
14193 mingw* | pw32* | os2*)
14194 # This hack is so that the source file can tell whether it is being
14195 # built for inclusion in a dll (and should export symbols for example).
14196 lt_prog_compiler_pic='-DDLL_EXPORT'
14197 ;;
14198
John Criswell7a73b802003-06-30 21:59:07 +000014199 darwin* | rhapsody*)
14200 # PIC is the default on this platform
14201 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014202 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014203 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014204
Reid Spencera773bd52006-08-04 18:18:08 +000014205 interix3*)
14206 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14207 # Instead, we relocate shared libraries at runtime.
14208 ;;
14209
John Criswell47fdd832003-07-14 16:52:07 +000014210 msdosdjgpp*)
14211 # Just because we use GCC doesn't mean we suddenly get shared libraries
14212 # on systems that don't support them.
14213 lt_prog_compiler_can_build_shared=no
14214 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014215 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014216
John Criswell7a73b802003-06-30 21:59:07 +000014217 sysv4*MP*)
14218 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014219 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014220 fi
14221 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014222
14223 hpux*)
14224 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14225 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014226 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014227 hppa*64*|ia64*)
14228 # +Z the default
14229 ;;
14230 *)
14231 lt_prog_compiler_pic='-fPIC'
14232 ;;
14233 esac
14234 ;;
14235
John Criswell7a73b802003-06-30 21:59:07 +000014236 *)
John Criswell47fdd832003-07-14 16:52:07 +000014237 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014238 ;;
14239 esac
14240 else
John Criswell47fdd832003-07-14 16:52:07 +000014241 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014242 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014243 aix*)
14244 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014245 if test "$host_cpu" = ia64; then
14246 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014247 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014248 else
John Criswell47fdd832003-07-14 16:52:07 +000014249 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014250 fi
14251 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014252 darwin*)
14253 # PIC is the default on this platform
14254 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014255 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014256 xlc*)
14257 lt_prog_compiler_pic='-qnocommon'
14258 lt_prog_compiler_wl='-Wl,'
14259 ;;
14260 esac
14261 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014262
John Criswell47fdd832003-07-14 16:52:07 +000014263 mingw* | pw32* | os2*)
14264 # This hack is so that the source file can tell whether it is being
14265 # built for inclusion in a dll (and should export symbols for example).
14266 lt_prog_compiler_pic='-DDLL_EXPORT'
14267 ;;
14268
John Criswell7a73b802003-06-30 21:59:07 +000014269 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014270 lt_prog_compiler_wl='-Wl,'
14271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14272 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014273 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014274 hppa*64*|ia64*)
14275 # +Z the default
14276 ;;
14277 *)
14278 lt_prog_compiler_pic='+Z'
14279 ;;
14280 esac
14281 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14282 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014283 ;;
14284
John Criswell47fdd832003-07-14 16:52:07 +000014285 irix5* | irix6* | nonstopux*)
14286 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014287 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014288 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014289 ;;
14290
14291 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014292 lt_prog_compiler_pic='-KPIC'
14293 lt_prog_compiler_static='-Bstatic'
14294 ;;
14295
14296 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014297 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014298 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014299 lt_prog_compiler_wl='-Wl,'
14300 lt_prog_compiler_pic='-KPIC'
14301 lt_prog_compiler_static='-static'
14302 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014303 pgcc* | pgf77* | pgf90* | pgf95*)
14304 # Portland Group compilers (*not* the Pentium gcc compiler,
14305 # which looks to be a dead project)
14306 lt_prog_compiler_wl='-Wl,'
14307 lt_prog_compiler_pic='-fpic'
14308 lt_prog_compiler_static='-Bstatic'
14309 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014310 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014311 lt_prog_compiler_wl='-Wl,'
14312 # All Alpha code is PIC.
14313 lt_prog_compiler_static='-non_shared'
14314 ;;
14315 esac
John Criswell7a73b802003-06-30 21:59:07 +000014316 ;;
14317
14318 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014319 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014320 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014321 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014322 ;;
14323
John Criswell7a73b802003-06-30 21:59:07 +000014324 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014325 lt_prog_compiler_pic='-KPIC'
14326 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014327 case $cc_basename in
14328 f77* | f90* | f95*)
14329 lt_prog_compiler_wl='-Qoption ld ';;
14330 *)
14331 lt_prog_compiler_wl='-Wl,';;
14332 esac
John Criswell7a73b802003-06-30 21:59:07 +000014333 ;;
14334
14335 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014336 lt_prog_compiler_wl='-Qoption ld '
14337 lt_prog_compiler_pic='-PIC'
14338 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014339 ;;
14340
Reid Spencera773bd52006-08-04 18:18:08 +000014341 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014342 lt_prog_compiler_wl='-Wl,'
14343 lt_prog_compiler_pic='-KPIC'
14344 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014345 ;;
14346
14347 sysv4*MP*)
14348 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014349 lt_prog_compiler_pic='-Kconform_pic'
14350 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014351 fi
14352 ;;
14353
Reid Spencera773bd52006-08-04 18:18:08 +000014354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14355 lt_prog_compiler_wl='-Wl,'
14356 lt_prog_compiler_pic='-KPIC'
14357 lt_prog_compiler_static='-Bstatic'
14358 ;;
14359
14360 unicos*)
14361 lt_prog_compiler_wl='-Wl,'
14362 lt_prog_compiler_can_build_shared=no
14363 ;;
14364
John Criswell47fdd832003-07-14 16:52:07 +000014365 uts4*)
14366 lt_prog_compiler_pic='-pic'
14367 lt_prog_compiler_static='-Bstatic'
14368 ;;
14369
John Criswell7a73b802003-06-30 21:59:07 +000014370 *)
John Criswell47fdd832003-07-14 16:52:07 +000014371 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014372 ;;
14373 esac
14374 fi
14375
Reid Spencera773bd52006-08-04 18:18:08 +000014376{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14377echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014378
John Criswell47fdd832003-07-14 16:52:07 +000014379#
14380# Check to make sure the PIC flag actually works.
14381#
14382if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014383
Reid Spencera773bd52006-08-04 18:18:08 +000014384{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14385echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014386if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388else
John Criswell47fdd832003-07-14 16:52:07 +000014389 lt_prog_compiler_pic_works=no
14390 ac_outfile=conftest.$ac_objext
14391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14392 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14393 # Insert the option either (1) after the last *FLAGS variable, or
14394 # (2) before a word containing "conftest.", or (3) at the end.
14395 # Note that $ac_compile itself does not contain backslashes and begins
14396 # with a dollar sign (not a hyphen), so the echo should work correctly.
14397 # The option is referenced via a variable to avoid confusing sed.
14398 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14401 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb2ed05262006-11-03 18:04:08 +000014402 (eval echo "\"\$as_me:14402: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014403 (eval "$lt_compile" 2>conftest.err)
14404 ac_status=$?
14405 cat conftest.err >&5
Reid Spencerb2ed05262006-11-03 18:04:08 +000014406 echo "$as_me:14406: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014407 if (exit $ac_status) && test -s "$ac_outfile"; then
14408 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014409 # So say no if there are warnings other than the usual output.
14410 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014413 lt_prog_compiler_pic_works=yes
14414 fi
14415 fi
14416 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014417
John Criswell47fdd832003-07-14 16:52:07 +000014418fi
Reid Spencera773bd52006-08-04 18:18:08 +000014419{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14420echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014421
John Criswell47fdd832003-07-14 16:52:07 +000014422if test x"$lt_prog_compiler_pic_works" = xyes; then
14423 case $lt_prog_compiler_pic in
14424 "" | " "*) ;;
14425 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14426 esac
John Criswell7a73b802003-06-30 21:59:07 +000014427else
John Criswell47fdd832003-07-14 16:52:07 +000014428 lt_prog_compiler_pic=
14429 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014430fi
14431
John Criswell7a73b802003-06-30 21:59:07 +000014432fi
Reid Spencera773bd52006-08-04 18:18:08 +000014433case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014434 # For platforms which do not support PIC, -DPIC is meaningless:
14435 *djgpp*)
14436 lt_prog_compiler_pic=
14437 ;;
14438 *)
14439 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14440 ;;
14441esac
John Criswell7a73b802003-06-30 21:59:07 +000014442
Reid Spencera773bd52006-08-04 18:18:08 +000014443#
14444# Check to make sure the static flag actually works.
14445#
14446wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14447{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14448echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14449if test "${lt_prog_compiler_static_works+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451else
14452 lt_prog_compiler_static_works=no
14453 save_LDFLAGS="$LDFLAGS"
14454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14455 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14457 # The linker can only warn and ignore the option if not recognized
14458 # So say no if there are warnings
14459 if test -s conftest.err; then
14460 # Append any errors to the config.log.
14461 cat conftest.err 1>&5
14462 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14464 if diff conftest.exp conftest.er2 >/dev/null; then
14465 lt_prog_compiler_static_works=yes
14466 fi
14467 else
14468 lt_prog_compiler_static_works=yes
14469 fi
14470 fi
14471 $rm conftest*
14472 LDFLAGS="$save_LDFLAGS"
14473
14474fi
14475{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14476echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14477
14478if test x"$lt_prog_compiler_static_works" = xyes; then
14479 :
14480else
14481 lt_prog_compiler_static=
14482fi
14483
14484
14485{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14486echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014487if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489else
John Criswell47fdd832003-07-14 16:52:07 +000014490 lt_cv_prog_compiler_c_o=no
14491 $rm -r conftest 2>/dev/null
14492 mkdir conftest
14493 cd conftest
14494 mkdir out
14495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014496
John Criswell47fdd832003-07-14 16:52:07 +000014497 lt_compiler_flag="-o out/conftest2.$ac_objext"
14498 # Insert the option either (1) after the last *FLAGS variable, or
14499 # (2) before a word containing "conftest.", or (3) at the end.
14500 # Note that $ac_compile itself does not contain backslashes and begins
14501 # with a dollar sign (not a hyphen), so the echo should work correctly.
14502 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14505 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb2ed05262006-11-03 18:04:08 +000014506 (eval echo "\"\$as_me:14506: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014507 (eval "$lt_compile" 2>out/conftest.err)
14508 ac_status=$?
14509 cat out/conftest.err >&5
Reid Spencerb2ed05262006-11-03 18:04:08 +000014510 echo "$as_me:14510: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14512 then
14513 # The compiler can only warn and ignore the option if not recognized
14514 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014518 lt_cv_prog_compiler_c_o=yes
14519 fi
14520 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014521 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014522 $rm conftest*
14523 # SGI C++ compiler will create directory out/ii_files/ for
14524 # template instantiation
14525 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14526 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014527 cd ..
14528 rmdir conftest
14529 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014530
14531fi
Reid Spencera773bd52006-08-04 18:18:08 +000014532{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14533echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014534
John Criswell7a73b802003-06-30 21:59:07 +000014535
John Criswell7a73b802003-06-30 21:59:07 +000014536hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014537if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014538 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014539 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14540echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014541 hard_links=yes
14542 $rm conftest*
14543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14544 touch conftest.a
14545 ln conftest.a conftest.b 2>&5 || hard_links=no
14546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014547 { echo "$as_me:$LINENO: result: $hard_links" >&5
14548echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014549 if test "$hard_links" = no; then
14550 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14551echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14552 need_locks=warn
14553 fi
14554else
14555 need_locks=no
14556fi
John Criswell7a73b802003-06-30 21:59:07 +000014557
Reid Spencera773bd52006-08-04 18:18:08 +000014558{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14559echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014560
14561 runpath_var=
14562 allow_undefined_flag=
14563 enable_shared_with_static_runtimes=no
14564 archive_cmds=
14565 archive_expsym_cmds=
14566 old_archive_From_new_cmds=
14567 old_archive_from_expsyms_cmds=
14568 export_dynamic_flag_spec=
14569 whole_archive_flag_spec=
14570 thread_safe_flag_spec=
14571 hardcode_libdir_flag_spec=
14572 hardcode_libdir_flag_spec_ld=
14573 hardcode_libdir_separator=
14574 hardcode_direct=no
14575 hardcode_minus_L=no
14576 hardcode_shlibpath_var=unsupported
14577 link_all_deplibs=unknown
14578 hardcode_automatic=no
14579 module_cmds=
14580 module_expsym_cmds=
14581 always_export_symbols=no
14582 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14583 # include_expsyms should be a list of space-separated symbols to be *always*
14584 # included in the symbol list
14585 include_expsyms=
14586 # exclude_expsyms can be an extended regexp of symbols to exclude
14587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14589 # as well as any symbol that contains `d'.
14590 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14592 # platforms (ab)use it in PIC code, but their linkers get confused if
14593 # the symbol is explicitly referenced. Since portable code cannot
14594 # rely on this symbol name, it's probably fine to never include it in
14595 # preloaded symbol tables.
14596 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014597 # Just being paranoid about ensuring that cc_basename is set.
14598 for cc_temp in $compiler""; do
14599 case $cc_temp in
14600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14602 \-*) ;;
14603 *) break;;
14604 esac
14605done
14606cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014607
14608 case $host_os in
14609 cygwin* | mingw* | pw32*)
14610 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14611 # When not using gcc, we currently assume that we are using
14612 # Microsoft Visual C++.
14613 if test "$GCC" != yes; then
14614 with_gnu_ld=no
14615 fi
14616 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014617 interix*)
14618 # we just hope/assume this is gcc and not c89 (= MSVC++)
14619 with_gnu_ld=yes
14620 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014621 openbsd*)
14622 with_gnu_ld=no
14623 ;;
14624 esac
14625
14626 ld_shlibs=yes
14627 if test "$with_gnu_ld" = yes; then
14628 # If archive_cmds runs LD, not CC, wlarc should be empty
14629 wlarc='${wl}'
14630
Reid Spencera773bd52006-08-04 18:18:08 +000014631 # Set some defaults for GNU ld with shared library support. These
14632 # are reset later if shared libraries are not supported. Putting them
14633 # here allows them to be overridden if necessary.
14634 runpath_var=LD_RUN_PATH
14635 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14636 export_dynamic_flag_spec='${wl}--export-dynamic'
14637 # ancient GNU ld didn't support --whole-archive et. al.
14638 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14639 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14640 else
14641 whole_archive_flag_spec=
14642 fi
14643 supports_anon_versioning=no
14644 case `$LD -v 2>/dev/null` in
14645 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14646 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14647 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14648 *\ 2.11.*) ;; # other 2.11 versions
14649 *) supports_anon_versioning=yes ;;
14650 esac
14651
John Criswell47fdd832003-07-14 16:52:07 +000014652 # See if GNU ld supports shared libraries.
14653 case $host_os in
14654 aix3* | aix4* | aix5*)
14655 # On AIX/PPC, the GNU linker is very broken
14656 if test "$host_cpu" != ia64; then
14657 ld_shlibs=no
14658 cat <<EOF 1>&2
14659
14660*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14661*** to be unable to reliably create shared libraries on AIX.
14662*** Therefore, libtool is disabling shared libraries support. If you
14663*** really care for shared libraries, you may want to modify your PATH
14664*** so that a non-GNU linker is found, and then restart.
14665
14666EOF
14667 fi
14668 ;;
14669
14670 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014671 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 +000014672 hardcode_libdir_flag_spec='-L$libdir'
14673 hardcode_minus_L=yes
14674
14675 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14676 # that the semantics of dynamic libraries on AmigaOS, at least up
14677 # to version 4, is to share data among multiple programs linked
14678 # with the same dynamic library. Since this doesn't match the
14679 # behavior of shared libraries on other platforms, we can't use
14680 # them.
14681 ld_shlibs=no
14682 ;;
14683
14684 beos*)
14685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14686 allow_undefined_flag=unsupported
14687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14688 # support --undefined. This deserves some investigation. FIXME
14689 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14690 else
14691 ld_shlibs=no
14692 fi
14693 ;;
14694
14695 cygwin* | mingw* | pw32*)
14696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14697 # as there is no search path for DLLs.
14698 hardcode_libdir_flag_spec='-L$libdir'
14699 allow_undefined_flag=unsupported
14700 always_export_symbols=no
14701 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014702 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 +000014703
14704 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014705 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 +000014706 # If the export-symbols file already is a .def file (1st line
14707 # is EXPORTS), use it as is; otherwise, prepend...
14708 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14709 cp $export_symbols $output_objdir/$soname.def;
14710 else
14711 echo EXPORTS > $output_objdir/$soname.def;
14712 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014713 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14715 else
14716 ld_shlibs=no
14717 fi
14718 ;;
14719
14720 interix3*)
14721 hardcode_direct=no
14722 hardcode_shlibpath_var=no
14723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14724 export_dynamic_flag_spec='${wl}-E'
14725 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14726 # Instead, shared libraries are loaded at an image base (0x10000000 by
14727 # default) and relocated if they conflict, which is a slow very memory
14728 # consuming and fragmenting process. To avoid this, we pick a random,
14729 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14730 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14731 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14732 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'
14733 ;;
14734
14735 linux*)
14736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14737 tmp_addflag=
14738 case $cc_basename,$host_cpu in
14739 pgcc*) # Portland Group C compiler
14740 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'
14741 tmp_addflag=' $pic_flag'
14742 ;;
14743 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14744 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'
14745 tmp_addflag=' $pic_flag -Mnomain' ;;
14746 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14747 tmp_addflag=' -i_dynamic' ;;
14748 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14749 tmp_addflag=' -i_dynamic -nofor_main' ;;
14750 ifc* | ifort*) # Intel Fortran compiler
14751 tmp_addflag=' -nofor_main' ;;
14752 esac
14753 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14754
14755 if test $supports_anon_versioning = yes; then
14756 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14758 $echo "local: *; };" >> $output_objdir/$libname.ver~
14759 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14760 fi
John Criswell47fdd832003-07-14 16:52:07 +000014761 else
14762 ld_shlibs=no
14763 fi
14764 ;;
14765
14766 netbsd*)
14767 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14768 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14769 wlarc=
14770 else
14771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14773 fi
14774 ;;
14775
Reid Spencera773bd52006-08-04 18:18:08 +000014776 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014777 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14778 ld_shlibs=no
14779 cat <<EOF 1>&2
14780
14781*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14782*** create shared libraries on Solaris systems. Therefore, libtool
14783*** is disabling shared libraries support. We urge you to upgrade GNU
14784*** binutils to release 2.9.1 or newer. Another option is to modify
14785*** your PATH or compiler configuration so that the native linker is
14786*** used, and then restart.
14787
14788EOF
14789 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14792 else
14793 ld_shlibs=no
14794 fi
14795 ;;
14796
Reid Spencera773bd52006-08-04 18:18:08 +000014797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14798 case `$LD -v 2>&1` in
14799 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14800 ld_shlibs=no
14801 cat <<_LT_EOF 1>&2
14802
14803*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14804*** reliably create shared libraries on SCO systems. Therefore, libtool
14805*** is disabling shared libraries support. We urge you to upgrade GNU
14806*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14807*** your PATH or compiler configuration so that the native linker is
14808*** used, and then restart.
14809
14810_LT_EOF
14811 ;;
14812 *)
14813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14814 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14817 else
14818 ld_shlibs=no
14819 fi
14820 ;;
14821 esac
14822 ;;
14823
John Criswell47fdd832003-07-14 16:52:07 +000014824 sunos4*)
14825 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14826 wlarc=
14827 hardcode_direct=yes
14828 hardcode_shlibpath_var=no
14829 ;;
14830
14831 *)
14832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14835 else
14836 ld_shlibs=no
14837 fi
14838 ;;
14839 esac
14840
Reid Spencera773bd52006-08-04 18:18:08 +000014841 if test "$ld_shlibs" = no; then
14842 runpath_var=
14843 hardcode_libdir_flag_spec=
14844 export_dynamic_flag_spec=
14845 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014846 fi
14847 else
14848 # PORTME fill in a description of your system's linker (not GNU ld)
14849 case $host_os in
14850 aix3*)
14851 allow_undefined_flag=unsupported
14852 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014853 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 +000014854 # Note: this linker hardcodes the directories in LIBPATH if there
14855 # are no directories specified by -L.
14856 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014857 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014858 # Neither direct hardcoding nor static linking is supported with a
14859 # broken collect2.
14860 hardcode_direct=unsupported
14861 fi
14862 ;;
14863
14864 aix4* | aix5*)
14865 if test "$host_cpu" = ia64; then
14866 # On IA64, the linker does run time linking by default, so we don't
14867 # have to do anything special.
14868 aix_use_runtimelinking=no
14869 exp_sym_flag='-Bexport'
14870 no_entry_flag=""
14871 else
14872 # If we're using GNU nm, then we don't want the "-C" option.
14873 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14874 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14875 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'
14876 else
14877 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'
14878 fi
14879 aix_use_runtimelinking=no
14880
14881 # Test if we are trying to use run time linking or normal
14882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14883 # need to do runtime linking.
14884 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14885 for ld_flag in $LDFLAGS; do
14886 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14887 aix_use_runtimelinking=yes
14888 break
14889 fi
14890 done
Reid Spencera773bd52006-08-04 18:18:08 +000014891 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014892 esac
14893
14894 exp_sym_flag='-bexport'
14895 no_entry_flag='-bnoentry'
14896 fi
14897
14898 # When large executables or shared objects are built, AIX ld can
14899 # have problems creating the table of contents. If linking a library
14900 # or program results in "error TOC overflow" add -mminimal-toc to
14901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14903
14904 archive_cmds=''
14905 hardcode_direct=yes
14906 hardcode_libdir_separator=':'
14907 link_all_deplibs=yes
14908
14909 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014910 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014911 # We only want to do this on AIX 4.2 and lower, the check
14912 # below for broken collect2 doesn't work under 4.3+
14913 collect2name=`${CC} -print-prog-name=collect2`
14914 if test -f "$collect2name" && \
14915 strings "$collect2name" | grep resolve_lib_name >/dev/null
14916 then
14917 # We have reworked collect2
14918 hardcode_direct=yes
14919 else
14920 # We have old collect2
14921 hardcode_direct=unsupported
14922 # It fails to find uninstalled libraries when the uninstalled
14923 # path is not listed in the libpath. Setting hardcode_minus_L
14924 # to unsupported forces relinking
14925 hardcode_minus_L=yes
14926 hardcode_libdir_flag_spec='-L$libdir'
14927 hardcode_libdir_separator=
14928 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014929 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014930 esac
14931 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014932 if test "$aix_use_runtimelinking" = yes; then
14933 shared_flag="$shared_flag "'${wl}-G'
14934 fi
John Criswell47fdd832003-07-14 16:52:07 +000014935 else
14936 # not using gcc
14937 if test "$host_cpu" = ia64; then
14938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14939 # chokes on -Wl,-G. The following line is correct:
14940 shared_flag='-G'
14941 else
Reid Spencera773bd52006-08-04 18:18:08 +000014942 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014943 shared_flag='${wl}-G'
14944 else
14945 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014946 fi
John Criswell47fdd832003-07-14 16:52:07 +000014947 fi
14948 fi
14949
14950 # It seems that -bexpall does not export symbols beginning with
14951 # underscore (_), so it is better to generate a list of symbols to export.
14952 always_export_symbols=yes
14953 if test "$aix_use_runtimelinking" = yes; then
14954 # Warning - without using the other runtime loading flags (-brtl),
14955 # -berok will link without error, but may produce a broken library.
14956 allow_undefined_flag='-berok'
14957 # Determine the default libpath from the value encoded in an empty executable.
14958 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014959/* confdefs.h. */
14960_ACEOF
14961cat confdefs.h >>conftest.$ac_ext
14962cat >>conftest.$ac_ext <<_ACEOF
14963/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014964
John Criswell7a73b802003-06-30 21:59:07 +000014965int
14966main ()
14967{
John Criswell47fdd832003-07-14 16:52:07 +000014968
John Criswell7a73b802003-06-30 21:59:07 +000014969 ;
14970 return 0;
14971}
14972_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000014973rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014974if { (ac_try="$ac_link"
14975case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14978esac
14979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014981 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014982 grep -v '^ *+' conftest.er1 >conftest.err
14983 rm -f conftest.er1
14984 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000014987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14988 { (case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991esac
14992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; } &&
14997 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000014998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001esac
15002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015007
John Criswell47fdd832003-07-14 16:52:07 +000015008aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15009}'`
15010# Check for a 64-bit object if we didn't find anything.
15011if 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; }
15012}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015013else
15014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015015sed 's/^/| /' conftest.$ac_ext >&5
15016
Reid Spencera773bd52006-08-04 18:18:08 +000015017
John Criswell7a73b802003-06-30 21:59:07 +000015018fi
Reid Spencera773bd52006-08-04 18:18:08 +000015019
15020rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015021 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015022if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015023
John Criswell47fdd832003-07-14 16:52:07 +000015024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015025 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 +000015026 else
15027 if test "$host_cpu" = ia64; then
15028 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15029 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015030 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 +000015031 else
15032 # Determine the default libpath from the value encoded in an empty executable.
15033 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015034/* confdefs.h. */
15035_ACEOF
15036cat confdefs.h >>conftest.$ac_ext
15037cat >>conftest.$ac_ext <<_ACEOF
15038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015039
John Criswell47fdd832003-07-14 16:52:07 +000015040int
15041main ()
15042{
John Criswell7a73b802003-06-30 21:59:07 +000015043
John Criswell47fdd832003-07-14 16:52:07 +000015044 ;
15045 return 0;
15046}
15047_ACEOF
15048rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015049if { (ac_try="$ac_link"
15050case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053esac
15054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015056 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15063 { (case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066esac
15067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015073 { (case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15076esac
15077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015082
John Criswell47fdd832003-07-14 16:52:07 +000015083aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15084}'`
15085# Check for a 64-bit object if we didn't find anything.
15086if 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; }
15087}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015088else
John Criswell47fdd832003-07-14 16:52:07 +000015089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015090sed 's/^/| /' conftest.$ac_ext >&5
15091
Reid Spencera773bd52006-08-04 18:18:08 +000015092
John Criswell47fdd832003-07-14 16:52:07 +000015093fi
Reid Spencera773bd52006-08-04 18:18:08 +000015094
15095rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015096 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015097if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015098
John Criswell47fdd832003-07-14 16:52:07 +000015099 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15100 # Warning - without using the other run time loading flags,
15101 # -berok will link without error, but may produce a broken library.
15102 no_undefined_flag=' ${wl}-bernotok'
15103 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015104 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015105 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015106 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015107 # This is similar to how AIX traditionally builds its shared libraries.
15108 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 +000015109 fi
15110 fi
John Criswell7a73b802003-06-30 21:59:07 +000015111 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015112
15113 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015114 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 +000015115 hardcode_libdir_flag_spec='-L$libdir'
15116 hardcode_minus_L=yes
15117 # see comment about different semantics on the GNU ld section
15118 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015119 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015120
Reid Spencer2706f8c2004-09-19 23:53:36 +000015121 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015122 export_dynamic_flag_spec=-rdynamic
15123 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015124
John Criswell47fdd832003-07-14 16:52:07 +000015125 cygwin* | mingw* | pw32*)
15126 # When not using gcc, we currently assume that we are using
15127 # Microsoft Visual C++.
15128 # hardcode_libdir_flag_spec is actually meaningless, as there is
15129 # no search path for DLLs.
15130 hardcode_libdir_flag_spec=' '
15131 allow_undefined_flag=unsupported
15132 # Tell ltmain to make .lib files, not .a files.
15133 libext=lib
15134 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015135 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015136 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015137 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015138 # The linker will automatically build a .lib file if we build a DLL.
15139 old_archive_From_new_cmds='true'
15140 # FIXME: Should let the user specify the lib program.
15141 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15142 fix_srcfile_path='`cygpath -w "$srcfile"`'
15143 enable_shared_with_static_runtimes=yes
15144 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015145
John Criswell47fdd832003-07-14 16:52:07 +000015146 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015147 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015148 rhapsody* | darwin1.[012])
15149 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15150 ;;
15151 *) # Darwin 1.3 on
15152 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15153 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15154 else
15155 case ${MACOSX_DEPLOYMENT_TARGET} in
15156 10.[012])
15157 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15158 ;;
15159 10.*)
15160 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15161 ;;
15162 esac
15163 fi
15164 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015165 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015166 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015167 hardcode_direct=no
15168 hardcode_automatic=yes
15169 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015170 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015171 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015172 if test "$GCC" = yes ; then
15173 output_verbose_link_cmd='echo'
15174 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15175 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015176 # 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 +000015177 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}'
15178 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 +000015179 else
Reid Spencera773bd52006-08-04 18:18:08 +000015180 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015181 xlc*)
15182 output_verbose_link_cmd='echo'
15183 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15184 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015185 # 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 +000015186 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}'
15187 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 +000015188 ;;
15189 *)
15190 ld_shlibs=no
15191 ;;
15192 esac
John Criswell7a73b802003-06-30 21:59:07 +000015193 fi
John Criswell47fdd832003-07-14 16:52:07 +000015194 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015195
John Criswell47fdd832003-07-14 16:52:07 +000015196 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015198 hardcode_libdir_flag_spec='-L$libdir'
15199 hardcode_shlibpath_var=no
15200 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015201
John Criswell47fdd832003-07-14 16:52:07 +000015202 freebsd1*)
15203 ld_shlibs=no
15204 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015205
John Criswell47fdd832003-07-14 16:52:07 +000015206 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15207 # support. Future versions do this automatically, but an explicit c++rt0.o
15208 # does not break anything, and helps significantly (at the cost of a little
15209 # extra space).
15210 freebsd2.2*)
15211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15212 hardcode_libdir_flag_spec='-R$libdir'
15213 hardcode_direct=yes
15214 hardcode_shlibpath_var=no
15215 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015216
John Criswell47fdd832003-07-14 16:52:07 +000015217 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15218 freebsd2*)
15219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15220 hardcode_direct=yes
15221 hardcode_minus_L=yes
15222 hardcode_shlibpath_var=no
15223 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015224
John Criswell47fdd832003-07-14 16:52:07 +000015225 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015226 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015227 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15228 hardcode_libdir_flag_spec='-R$libdir'
15229 hardcode_direct=yes
15230 hardcode_shlibpath_var=no
15231 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015232
John Criswell47fdd832003-07-14 16:52:07 +000015233 hpux9*)
15234 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015235 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 +000015236 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015237 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 +000015238 fi
15239 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15240 hardcode_libdir_separator=:
15241 hardcode_direct=yes
15242
15243 # hardcode_minus_L: Not really in the search PATH,
15244 # but as the default location of the library.
15245 hardcode_minus_L=yes
15246 export_dynamic_flag_spec='${wl}-E'
15247 ;;
15248
Reid Spencera773bd52006-08-04 18:18:08 +000015249 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015250 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015251 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15252 else
15253 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15254 fi
15255 if test "$with_gnu_ld" = no; then
15256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15257 hardcode_libdir_separator=:
15258
15259 hardcode_direct=yes
15260 export_dynamic_flag_spec='${wl}-E'
15261
15262 # hardcode_minus_L: Not really in the search PATH,
15263 # but as the default location of the library.
15264 hardcode_minus_L=yes
15265 fi
15266 ;;
15267
15268 hpux11*)
15269 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15270 case $host_cpu in
15271 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015272 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15273 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015274 ia64*)
15275 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15276 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015277 *)
15278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15279 ;;
15280 esac
15281 else
Reid Spencera773bd52006-08-04 18:18:08 +000015282 case $host_cpu in
15283 hppa*64*)
15284 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15285 ;;
15286 ia64*)
15287 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015288 ;;
15289 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015290 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 +000015291 ;;
15292 esac
15293 fi
15294 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15296 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015297
Reid Spencera773bd52006-08-04 18:18:08 +000015298 case $host_cpu in
15299 hppa*64*|ia64*)
15300 hardcode_libdir_flag_spec_ld='+b $libdir'
15301 hardcode_direct=no
15302 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015303 ;;
15304 *)
John Criswell47fdd832003-07-14 16:52:07 +000015305 hardcode_direct=yes
15306 export_dynamic_flag_spec='${wl}-E'
15307
15308 # hardcode_minus_L: Not really in the search PATH,
15309 # but as the default location of the library.
15310 hardcode_minus_L=yes
15311 ;;
15312 esac
15313 fi
15314 ;;
15315
15316 irix5* | irix6* | nonstopux*)
15317 if test "$GCC" = yes; then
15318 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'
15319 else
15320 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'
15321 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15322 fi
15323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15324 hardcode_libdir_separator=:
15325 link_all_deplibs=yes
15326 ;;
15327
15328 netbsd*)
15329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15331 else
15332 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15333 fi
15334 hardcode_libdir_flag_spec='-R$libdir'
15335 hardcode_direct=yes
15336 hardcode_shlibpath_var=no
15337 ;;
15338
15339 newsos6)
15340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15341 hardcode_direct=yes
15342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15343 hardcode_libdir_separator=:
15344 hardcode_shlibpath_var=no
15345 ;;
15346
15347 openbsd*)
15348 hardcode_direct=yes
15349 hardcode_shlibpath_var=no
15350 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015352 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 +000015353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15354 export_dynamic_flag_spec='${wl}-E'
15355 else
15356 case $host_os in
15357 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15359 hardcode_libdir_flag_spec='-R$libdir'
15360 ;;
15361 *)
15362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15364 ;;
15365 esac
15366 fi
15367 ;;
15368
15369 os2*)
15370 hardcode_libdir_flag_spec='-L$libdir'
15371 hardcode_minus_L=yes
15372 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015373 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 +000015374 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15375 ;;
15376
15377 osf3*)
15378 if test "$GCC" = yes; then
15379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15380 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'
15381 else
15382 allow_undefined_flag=' -expect_unresolved \*'
15383 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'
15384 fi
15385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15386 hardcode_libdir_separator=:
15387 ;;
15388
15389 osf4* | osf5*) # as osf3* with the addition of -msym flag
15390 if test "$GCC" = yes; then
15391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15392 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'
15393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15394 else
15395 allow_undefined_flag=' -expect_unresolved \*'
15396 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 +000015397 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 +000015398 $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 +000015399
John Criswell47fdd832003-07-14 16:52:07 +000015400 # Both c and cxx compiler support -rpath directly
15401 hardcode_libdir_flag_spec='-rpath $libdir'
15402 fi
15403 hardcode_libdir_separator=:
15404 ;;
15405
John Criswell47fdd832003-07-14 16:52:07 +000015406 solaris*)
15407 no_undefined_flag=' -z text'
15408 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015409 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015410 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015411 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15412 $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 +000015413 else
Reid Spencera773bd52006-08-04 18:18:08 +000015414 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015415 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015416 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15417 $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 +000015418 fi
15419 hardcode_libdir_flag_spec='-R$libdir'
15420 hardcode_shlibpath_var=no
15421 case $host_os in
15422 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015423 *)
15424 # The compiler driver will combine linker options so we
15425 # cannot just pass the convience library names through
15426 # without $wl, iff we do not link with $LD.
15427 # Luckily, gcc supports the same syntax we need for Sun Studio.
15428 # Supported since Solaris 2.6 (maybe 2.5.1?)
15429 case $wlarc in
15430 '')
15431 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15432 *)
15433 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' ;;
15434 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015435 esac
15436 link_all_deplibs=yes
15437 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015438
John Criswell47fdd832003-07-14 16:52:07 +000015439 sunos4*)
15440 if test "x$host_vendor" = xsequent; then
15441 # Use $CC to link under sequent, because it throws in some extra .o
15442 # files that make .init and .fini sections work.
15443 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15444 else
15445 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15446 fi
15447 hardcode_libdir_flag_spec='-L$libdir'
15448 hardcode_direct=yes
15449 hardcode_minus_L=yes
15450 hardcode_shlibpath_var=no
15451 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015452
John Criswell47fdd832003-07-14 16:52:07 +000015453 sysv4)
15454 case $host_vendor in
15455 sni)
15456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15457 hardcode_direct=yes # is this really true???
15458 ;;
15459 siemens)
15460 ## LD is ld it makes a PLAMLIB
15461 ## CC just makes a GrossModule.
15462 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15463 reload_cmds='$CC -r -o $output$reload_objs'
15464 hardcode_direct=no
15465 ;;
15466 motorola)
15467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15468 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15469 ;;
15470 esac
15471 runpath_var='LD_RUN_PATH'
15472 hardcode_shlibpath_var=no
15473 ;;
15474
15475 sysv4.3*)
15476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15477 hardcode_shlibpath_var=no
15478 export_dynamic_flag_spec='-Bexport'
15479 ;;
15480
15481 sysv4*MP*)
15482 if test -d /usr/nec; then
15483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484 hardcode_shlibpath_var=no
15485 runpath_var=LD_RUN_PATH
15486 hardcode_runpath_var=yes
15487 ld_shlibs=yes
15488 fi
15489 ;;
15490
Reid Spencera773bd52006-08-04 18:18:08 +000015491 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15492 no_undefined_flag='${wl}-z,text'
15493 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015494 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015495 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015496
John Criswell47fdd832003-07-14 16:52:07 +000015497 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015498 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15499 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 +000015500 else
Reid Spencera773bd52006-08-04 18:18:08 +000015501 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 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 +000015503 fi
John Criswell47fdd832003-07-14 16:52:07 +000015504 ;;
15505
Reid Spencera773bd52006-08-04 18:18:08 +000015506 sysv5* | sco3.2v5* | sco5v6*)
15507 # Note: We can NOT use -z defs as we might desire, because we do not
15508 # link with -lc, and that would cause any symbols used from libc to
15509 # always be unresolved, which means just about no library would
15510 # ever link correctly. If we're not using GNU ld we use -z text
15511 # though, which does catch some bad symbols but isn't as heavy-handed
15512 # as -z defs.
15513 no_undefined_flag='${wl}-z,text'
15514 allow_undefined_flag='${wl}-z,nodefs'
15515 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015516 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015517 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15518 hardcode_libdir_separator=':'
15519 link_all_deplibs=yes
15520 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015521 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015522
15523 if test "$GCC" = yes; then
15524 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15525 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15526 else
15527 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15528 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15529 fi
John Criswell47fdd832003-07-14 16:52:07 +000015530 ;;
15531
15532 uts4*)
15533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534 hardcode_libdir_flag_spec='-L$libdir'
15535 hardcode_shlibpath_var=no
15536 ;;
15537
15538 *)
15539 ld_shlibs=no
15540 ;;
15541 esac
15542 fi
15543
Reid Spencera773bd52006-08-04 18:18:08 +000015544{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15545echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015546test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015547
John Criswell47fdd832003-07-14 16:52:07 +000015548#
15549# Do we need to explicitly link libc?
15550#
15551case "x$archive_cmds_need_lc" in
15552x|xyes)
15553 # Assume -lc should be added
15554 archive_cmds_need_lc=yes
15555
15556 if test "$enable_shared" = yes && test "$GCC" = yes; then
15557 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015558 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015559 # FIXME: we may have to deal with multi-command sequences.
15560 ;;
15561 '$CC '*)
15562 # Test whether the compiler implicitly links with -lc since on some
15563 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15564 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015565 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15566echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015567 $rm conftest*
15568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15569
15570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571 (eval $ac_compile) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } 2>conftest.err; then
15575 soname=conftest
15576 lib=conftest
15577 libobjs=conftest.$ac_objext
15578 deplibs=
15579 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015580 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015581 compiler_flags=-v
15582 linker_flags=-v
15583 verstring=
15584 output_objdir=.
15585 libname=conftest
15586 lt_save_allow_undefined_flag=$allow_undefined_flag
15587 allow_undefined_flag=
15588 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15589 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }
15593 then
15594 archive_cmds_need_lc=no
15595 else
15596 archive_cmds_need_lc=yes
15597 fi
15598 allow_undefined_flag=$lt_save_allow_undefined_flag
15599 else
15600 cat conftest.err 1>&5
15601 fi
15602 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015603 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15604echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015605 ;;
15606 esac
15607 fi
15608 ;;
15609esac
15610
Reid Spencera773bd52006-08-04 18:18:08 +000015611{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15612echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015613library_names_spec=
15614libname_spec='lib$name'
15615soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015616shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015617postinstall_cmds=
15618postuninstall_cmds=
15619finish_cmds=
15620finish_eval=
15621shlibpath_var=
15622shlibpath_overrides_runpath=unknown
15623version_type=none
15624dynamic_linker="$host_os ld.so"
15625sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015626if test "$GCC" = yes; then
15627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15628 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15629 # if the path contains ";" then we assume it to be the separator
15630 # otherwise default to the standard path separator (i.e. ":") - it is
15631 # assumed that no part of a normal pathname contains ";" but that should
15632 # okay in the real world where ";" in dirpaths is itself problematic.
15633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15634 else
15635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15636 fi
15637else
15638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15639fi
15640need_lib_prefix=unknown
15641hardcode_into_libs=no
15642
15643# when you set need_version to no, make sure it does not cause -set_version
15644# flags to be left without arguments
15645need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015646
15647case $host_os in
15648aix3*)
15649 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015651 shlibpath_var=LIBPATH
15652
John Criswell47fdd832003-07-14 16:52:07 +000015653 # AIX 3 has no versioning support, so we append a major version to the name.
15654 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015655 ;;
15656
15657aix4* | aix5*)
15658 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015659 need_lib_prefix=no
15660 need_version=no
15661 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015662 if test "$host_cpu" = ia64; then
15663 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015665 shlibpath_var=LD_LIBRARY_PATH
15666 else
15667 # With GCC up to 2.95.x, collect2 would create an import file
15668 # for dependence libraries. The import file would start with
15669 # the line `#! .'. This would cause the generated library to
15670 # depend on `.', always an invalid library. This was fixed in
15671 # development snapshots of GCC prior to 3.0.
15672 case $host_os in
15673 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15675 echo ' yes '
15676 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15677 :
15678 else
15679 can_build_shared=no
15680 fi
15681 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015682 esac
John Criswell47fdd832003-07-14 16:52:07 +000015683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15684 # soname into executable. Probably we can add versioning support to
15685 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015686 if test "$aix_use_runtimelinking" = yes; then
15687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15688 # instead of lib<name>.a to let people know that these are not
15689 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015691 else
15692 # We preserve .a as extension for shared libraries through AIX4.2
15693 # and later when we are not doing run time linking.
15694 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015695 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015696 fi
15697 shlibpath_var=LIBPATH
15698 fi
15699 ;;
15700
15701amigaos*)
15702 library_names_spec='$libname.ixlibrary $libname.a'
15703 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015704 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 +000015705 ;;
15706
15707beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015708 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015709 dynamic_linker="$host_os ld.so"
15710 shlibpath_var=LIBRARY_PATH
15711 ;;
15712
Reid Spencer2706f8c2004-09-19 23:53:36 +000015713bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015714 version_type=linux
15715 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015718 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15719 shlibpath_var=LD_LIBRARY_PATH
15720 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15721 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015722 # the default ld.so.conf also contains /usr/contrib/lib and
15723 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15724 # libtool to hard-code these into programs
15725 ;;
15726
15727cygwin* | mingw* | pw32*)
15728 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015729 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015730 need_version=no
15731 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015732
John Criswell7a73b802003-06-30 21:59:07 +000015733 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015734 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015735 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015736 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015737 postinstall_cmds='base_file=`basename \${file}`~
15738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15739 dldir=$destdir/`dirname \$dlpath`~
15740 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015741 $install_prog $dir/$dlname \$dldir/$dlname~
15742 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15744 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015745 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015746 shlibpath_overrides_runpath=yes
15747
15748 case $host_os in
15749 cygwin*)
15750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15751 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 +000015752 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015753 ;;
15754 mingw*)
15755 # MinGW DLLs use traditional 'lib' prefix
15756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15758 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15759 # It is most probably a Windows format PATH printed by
15760 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15761 # path with ; separators, and with drive letters. We can handle the
15762 # drive letters (cygwin fileutils understands them), so leave them,
15763 # especially as we might pass files found there to a mingw objdump,
15764 # which wouldn't understand a cygwinified path. Ahh.
15765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15766 else
15767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15768 fi
15769 ;;
15770 pw32*)
15771 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015772 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 +000015773 ;;
15774 esac
John Criswell7a73b802003-06-30 21:59:07 +000015775 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015776
John Criswell7a73b802003-06-30 21:59:07 +000015777 *)
John Criswell47fdd832003-07-14 16:52:07 +000015778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015779 ;;
15780 esac
15781 dynamic_linker='Win32 ld.exe'
15782 # FIXME: first we should search . and the directory the executable is in
15783 shlibpath_var=PATH
15784 ;;
15785
15786darwin* | rhapsody*)
15787 dynamic_linker="$host_os dyld"
15788 version_type=darwin
15789 need_lib_prefix=no
15790 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015791 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015792 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015793 shlibpath_overrides_runpath=yes
15794 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015795 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015796 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015797 if test "$GCC" = yes; then
15798 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"`
15799 else
15800 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015801 fi
15802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15803 ;;
15804
15805dgux*)
15806 version_type=linux
15807 need_lib_prefix=no
15808 need_version=no
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15810 soname_spec='${libname}${release}${shared_ext}$major'
15811 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015812 ;;
15813
15814freebsd1*)
15815 dynamic_linker=no
15816 ;;
15817
Reid Spencer2706f8c2004-09-19 23:53:36 +000015818kfreebsd*-gnu)
15819 version_type=linux
15820 need_lib_prefix=no
15821 need_version=no
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 shlibpath_overrides_runpath=no
15826 hardcode_into_libs=yes
15827 dynamic_linker='GNU ld.so'
15828 ;;
15829
Reid Spencera773bd52006-08-04 18:18:08 +000015830freebsd* | dragonfly*)
15831 # DragonFly does not have aout. When/if they implement a new
15832 # versioning mechanism, adjust this.
15833 if test -x /usr/bin/objformat; then
15834 objformat=`/usr/bin/objformat`
15835 else
15836 case $host_os in
15837 freebsd[123]*) objformat=aout ;;
15838 *) objformat=elf ;;
15839 esac
15840 fi
John Criswell7a73b802003-06-30 21:59:07 +000015841 version_type=freebsd-$objformat
15842 case $version_type in
15843 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015845 need_version=no
15846 need_lib_prefix=no
15847 ;;
15848 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015850 need_version=yes
15851 ;;
15852 esac
15853 shlibpath_var=LD_LIBRARY_PATH
15854 case $host_os in
15855 freebsd2*)
15856 shlibpath_overrides_runpath=yes
15857 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015858 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015859 shlibpath_overrides_runpath=yes
15860 hardcode_into_libs=yes
15861 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015862 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15863 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015864 shlibpath_overrides_runpath=no
15865 hardcode_into_libs=yes
15866 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015867 freebsd*) # from 4.6 on
15868 shlibpath_overrides_runpath=yes
15869 hardcode_into_libs=yes
15870 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015871 esac
15872 ;;
15873
15874gnu*)
15875 version_type=linux
15876 need_lib_prefix=no
15877 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015880 shlibpath_var=LD_LIBRARY_PATH
15881 hardcode_into_libs=yes
15882 ;;
15883
15884hpux9* | hpux10* | hpux11*)
15885 # Give a soname corresponding to the major version so that dld.sl refuses to
15886 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015887 version_type=sunos
15888 need_lib_prefix=no
15889 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015890 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015891 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015892 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015893 hardcode_into_libs=yes
15894 dynamic_linker="$host_os dld.so"
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 if test "X$HPUX_IA64_MODE" = X32; then
15900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15901 else
15902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15903 fi
15904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15905 ;;
15906 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015907 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015908 hardcode_into_libs=yes
15909 dynamic_linker="$host_os dld.sl"
15910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15916 ;;
15917 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015918 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015919 dynamic_linker="$host_os dld.sl"
15920 shlibpath_var=SHLIB_PATH
15921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
15925 esac
John Criswell7a73b802003-06-30 21:59:07 +000015926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15927 postinstall_cmds='chmod 555 $lib'
15928 ;;
15929
Reid Spencera773bd52006-08-04 18:18:08 +000015930interix3*)
15931 version_type=linux
15932 need_lib_prefix=no
15933 need_version=no
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15937 shlibpath_var=LD_LIBRARY_PATH
15938 shlibpath_overrides_runpath=no
15939 hardcode_into_libs=yes
15940 ;;
15941
John Criswell47fdd832003-07-14 16:52:07 +000015942irix5* | irix6* | nonstopux*)
15943 case $host_os in
15944 nonstopux*) version_type=nonstopux ;;
15945 *)
15946 if test "$lt_cv_prog_gnu_ld" = yes; then
15947 version_type=linux
15948 else
15949 version_type=irix
15950 fi ;;
15951 esac
John Criswell7a73b802003-06-30 21:59:07 +000015952 need_lib_prefix=no
15953 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015954 soname_spec='${libname}${release}${shared_ext}$major'
15955 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 +000015956 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015957 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015958 libsuff= shlibsuff=
15959 ;;
15960 *)
15961 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015962 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15963 libsuff= shlibsuff= libmagic=32-bit;;
15964 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15965 libsuff=32 shlibsuff=N32 libmagic=N32;;
15966 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15967 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015968 *) libsuff= shlibsuff= libmagic=never-match;;
15969 esac
15970 ;;
15971 esac
15972 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15973 shlibpath_overrides_runpath=no
15974 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15975 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000015976 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015977 ;;
15978
15979# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000015980linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000015981 dynamic_linker=no
15982 ;;
15983
15984# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000015985linux*)
John Criswell7a73b802003-06-30 21:59:07 +000015986 version_type=linux
15987 need_lib_prefix=no
15988 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15990 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15992 shlibpath_var=LD_LIBRARY_PATH
15993 shlibpath_overrides_runpath=no
15994 # This implies no fast_install, which is unacceptable.
15995 # Some rework will be needed to allow for fast_install
15996 # before this can be enabled.
15997 hardcode_into_libs=yes
15998
Reid Spencer2706f8c2004-09-19 23:53:36 +000015999 # Append ld.so.conf contents to the search path
16000 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016001 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 +000016002 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16003 fi
16004
John Criswell7a73b802003-06-30 21:59:07 +000016005 # We used to test for /lib/ld.so.1 and disable shared libraries on
16006 # powerpc, because MkLinux only supported shared libraries with the
16007 # GNU dynamic linker. Since this was broken with cross compilers,
16008 # most powerpc-linux boxes support dynamic linking these days and
16009 # people can always --disable-shared, the test was removed, and we
16010 # assume the GNU/Linux dynamic linker is in use.
16011 dynamic_linker='GNU/Linux ld.so'
16012 ;;
16013
Reid Spencer2706f8c2004-09-19 23:53:36 +000016014knetbsd*-gnu)
16015 version_type=linux
16016 need_lib_prefix=no
16017 need_version=no
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 shlibpath_overrides_runpath=no
16022 hardcode_into_libs=yes
16023 dynamic_linker='GNU ld.so'
16024 ;;
16025
John Criswell7a73b802003-06-30 21:59:07 +000016026netbsd*)
16027 version_type=sunos
16028 need_lib_prefix=no
16029 need_version=no
16030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16033 dynamic_linker='NetBSD (a.out) ld.so'
16034 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016036 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016037 dynamic_linker='NetBSD ld.elf_so'
16038 fi
16039 shlibpath_var=LD_LIBRARY_PATH
16040 shlibpath_overrides_runpath=yes
16041 hardcode_into_libs=yes
16042 ;;
16043
16044newsos6)
16045 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 shlibpath_overrides_runpath=yes
16049 ;;
16050
Reid Spencer2706f8c2004-09-19 23:53:36 +000016051nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016052 version_type=linux
16053 need_lib_prefix=no
16054 need_version=no
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=yes
16059 ;;
16060
16061openbsd*)
16062 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016063 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016064 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16066 case $host_os in
16067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16068 *) need_version=no ;;
16069 esac
John Criswell47fdd832003-07-14 16:52:07 +000016070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016073 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 +000016074 case $host_os in
16075 openbsd2.[89] | openbsd2.[89].*)
16076 shlibpath_overrides_runpath=no
16077 ;;
16078 *)
16079 shlibpath_overrides_runpath=yes
16080 ;;
16081 esac
John Criswell7a73b802003-06-30 21:59:07 +000016082 else
16083 shlibpath_overrides_runpath=yes
16084 fi
John Criswell7a73b802003-06-30 21:59:07 +000016085 ;;
16086
16087os2*)
16088 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016089 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016090 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016091 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016092 dynamic_linker='OS/2 ld.exe'
16093 shlibpath_var=LIBPATH
16094 ;;
16095
16096osf3* | osf4* | osf5*)
16097 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016098 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016099 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016100 soname_spec='${libname}${release}${shared_ext}$major'
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016102 shlibpath_var=LD_LIBRARY_PATH
16103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16105 ;;
16106
John Criswell7a73b802003-06-30 21:59:07 +000016107solaris*)
16108 version_type=linux
16109 need_lib_prefix=no
16110 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016113 shlibpath_var=LD_LIBRARY_PATH
16114 shlibpath_overrides_runpath=yes
16115 hardcode_into_libs=yes
16116 # ldd complains unless libraries are executable
16117 postinstall_cmds='chmod +x $lib'
16118 ;;
16119
16120sunos4*)
16121 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 shlibpath_overrides_runpath=yes
16126 if test "$with_gnu_ld" = yes; then
16127 need_lib_prefix=no
16128 fi
16129 need_version=yes
16130 ;;
16131
Reid Spencera773bd52006-08-04 18:18:08 +000016132sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016133 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016136 shlibpath_var=LD_LIBRARY_PATH
16137 case $host_vendor in
16138 sni)
16139 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016140 need_lib_prefix=no
16141 export_dynamic_flag_spec='${wl}-Blargedynsym'
16142 runpath_var=LD_RUN_PATH
16143 ;;
16144 siemens)
16145 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016146 ;;
16147 motorola)
16148 need_lib_prefix=no
16149 need_version=no
16150 shlibpath_overrides_runpath=no
16151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16152 ;;
16153 esac
16154 ;;
16155
John Criswell7a73b802003-06-30 21:59:07 +000016156sysv4*MP*)
16157 if test -d /usr/nec ;then
16158 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16160 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016161 shlibpath_var=LD_LIBRARY_PATH
16162 fi
16163 ;;
16164
Reid Spencera773bd52006-08-04 18:18:08 +000016165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16166 version_type=freebsd-elf
16167 need_lib_prefix=no
16168 need_version=no
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 hardcode_into_libs=yes
16173 if test "$with_gnu_ld" = yes; then
16174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16175 shlibpath_overrides_runpath=no
16176 else
16177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16178 shlibpath_overrides_runpath=yes
16179 case $host_os in
16180 sco3.2v5*)
16181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16182 ;;
16183 esac
16184 fi
16185 sys_lib_dlsearch_path_spec='/usr/lib'
16186 ;;
16187
John Criswell47fdd832003-07-14 16:52:07 +000016188uts4*)
16189 version_type=linux
16190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16191 soname_spec='${libname}${release}${shared_ext}$major'
16192 shlibpath_var=LD_LIBRARY_PATH
16193 ;;
16194
John Criswell7a73b802003-06-30 21:59:07 +000016195*)
16196 dynamic_linker=no
16197 ;;
16198esac
Reid Spencera773bd52006-08-04 18:18:08 +000016199{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16200echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016201test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016202
Reid Spencera773bd52006-08-04 18:18:08 +000016203variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16204if test "$GCC" = yes; then
16205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16206fi
16207
16208{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16209echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016210hardcode_action=
16211if test -n "$hardcode_libdir_flag_spec" || \
16212 test -n "$runpath_var" || \
16213 test "X$hardcode_automatic" = "Xyes" ; then
16214
16215 # We can hardcode non-existant directories.
16216 if test "$hardcode_direct" != no &&
16217 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16218 # have to relink, otherwise we might link with an installed library
16219 # when we should be linking with a yet-to-be-installed one
16220 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16221 test "$hardcode_minus_L" != no; then
16222 # Linking always hardcodes the temporary library directory.
16223 hardcode_action=relink
16224 else
16225 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16226 hardcode_action=immediate
16227 fi
16228else
16229 # We cannot hardcode anything, or else we can only hardcode existing
16230 # directories.
16231 hardcode_action=unsupported
16232fi
Reid Spencera773bd52006-08-04 18:18:08 +000016233{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16234echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016235
16236if test "$hardcode_action" = relink; then
16237 # Fast installation is not supported
16238 enable_fast_install=no
16239elif test "$shlibpath_overrides_runpath" = yes ||
16240 test "$enable_shared" = no; then
16241 # Fast installation is not necessary
16242 enable_fast_install=needless
16243fi
16244
16245striplib=
16246old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016247{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16248echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016249if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16250 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16251 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016252 { echo "$as_me:$LINENO: result: yes" >&5
16253echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016254else
16255# FIXME - insert some real tests, host_os isn't really good enough
16256 case $host_os in
16257 darwin*)
16258 if test -n "$STRIP" ; then
16259 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016260 { echo "$as_me:$LINENO: result: yes" >&5
16261echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016262 else
Reid Spencera773bd52006-08-04 18:18:08 +000016263 { echo "$as_me:$LINENO: result: no" >&5
16264echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016265fi
16266 ;;
16267 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016268 { echo "$as_me:$LINENO: result: no" >&5
16269echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016270 ;;
16271 esac
16272fi
16273
John Criswell7a73b802003-06-30 21:59:07 +000016274if test "x$enable_dlopen" != xyes; then
16275 enable_dlopen=unknown
16276 enable_dlopen_self=unknown
16277 enable_dlopen_self_static=unknown
16278else
16279 lt_cv_dlopen=no
16280 lt_cv_dlopen_libs=
16281
16282 case $host_os in
16283 beos*)
16284 lt_cv_dlopen="load_add_on"
16285 lt_cv_dlopen_libs=
16286 lt_cv_dlopen_self=yes
16287 ;;
16288
John Criswell47fdd832003-07-14 16:52:07 +000016289 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016290 lt_cv_dlopen="LoadLibrary"
16291 lt_cv_dlopen_libs=
16292 ;;
16293
John Criswell47fdd832003-07-14 16:52:07 +000016294 cygwin*)
16295 lt_cv_dlopen="dlopen"
16296 lt_cv_dlopen_libs=
16297 ;;
16298
16299 darwin*)
16300 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016301 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16302echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016303if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305else
16306 ac_check_lib_save_LIBS=$LIBS
16307LIBS="-ldl $LIBS"
16308cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016309/* confdefs.h. */
16310_ACEOF
16311cat confdefs.h >>conftest.$ac_ext
16312cat >>conftest.$ac_ext <<_ACEOF
16313/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016314
Reid Spencera773bd52006-08-04 18:18:08 +000016315/* Override any GCC internal prototype to avoid an error.
16316 Use char because int might match the return type of a GCC
16317 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016318#ifdef __cplusplus
16319extern "C"
16320#endif
John Criswell47fdd832003-07-14 16:52:07 +000016321char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016322int
16323main ()
16324{
Reid Spencera773bd52006-08-04 18:18:08 +000016325return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016326 ;
16327 return 0;
16328}
16329_ACEOF
16330rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016331if { (ac_try="$ac_link"
16332case "(($ac_try" in
16333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334 *) ac_try_echo=$ac_try;;
16335esac
16336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16337 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016338 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16348esac
16349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016355 { (case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16358esac
16359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_lib_dl_dlopen=yes
16365else
16366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016367sed 's/^/| /' conftest.$ac_ext >&5
16368
Reid Spencera773bd52006-08-04 18:18:08 +000016369 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016370fi
Reid Spencera773bd52006-08-04 18:18:08 +000016371
16372rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016373 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016374LIBS=$ac_check_lib_save_LIBS
16375fi
Reid Spencera773bd52006-08-04 18:18:08 +000016376{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16377echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016378if test $ac_cv_lib_dl_dlopen = yes; then
16379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16380else
16381
16382 lt_cv_dlopen="dyld"
16383 lt_cv_dlopen_libs=
16384 lt_cv_dlopen_self=yes
16385
16386fi
16387
16388 ;;
16389
John Criswell7a73b802003-06-30 21:59:07 +000016390 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016391 { echo "$as_me:$LINENO: checking for shl_load" >&5
16392echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016393if test "${ac_cv_func_shl_load+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16395else
16396 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016397/* confdefs.h. */
16398_ACEOF
16399cat confdefs.h >>conftest.$ac_ext
16400cat >>conftest.$ac_ext <<_ACEOF
16401/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016402/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16404#define shl_load innocuous_shl_load
16405
John Criswell7a73b802003-06-30 21:59:07 +000016406/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016407 which can conflict with char shl_load (); below.
16408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16409 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016410
John Criswell0c38eaf2003-09-10 15:17:25 +000016411#ifdef __STDC__
16412# include <limits.h>
16413#else
16414# include <assert.h>
16415#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016416
16417#undef shl_load
16418
Reid Spencera773bd52006-08-04 18:18:08 +000016419/* Override any GCC internal prototype to avoid an error.
16420 Use char because int might match the return type of a GCC
16421 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016422#ifdef __cplusplus
16423extern "C"
16424#endif
John Criswell7a73b802003-06-30 21:59:07 +000016425char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016426/* The GNU C library defines this for functions which it implements
16427 to always fail with ENOSYS. Some functions are actually named
16428 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016429#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016430choke me
John Criswell7a73b802003-06-30 21:59:07 +000016431#endif
16432
John Criswell0c38eaf2003-09-10 15:17:25 +000016433int
16434main ()
16435{
Reid Spencera773bd52006-08-04 18:18:08 +000016436return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016437 ;
16438 return 0;
16439}
16440_ACEOF
16441rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016442if { (ac_try="$ac_link"
16443case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16446esac
16447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016449 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016450 grep -v '^ *+' conftest.er1 >conftest.err
16451 rm -f conftest.er1
16452 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16456 { (case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459esac
16460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; } &&
16465 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016466 { (case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469esac
16470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_func_shl_load=yes
16476else
16477 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016478sed 's/^/| /' conftest.$ac_ext >&5
16479
Reid Spencera773bd52006-08-04 18:18:08 +000016480 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016481fi
Reid Spencera773bd52006-08-04 18:18:08 +000016482
16483rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016484 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016485fi
Reid Spencera773bd52006-08-04 18:18:08 +000016486{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16487echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016488if test $ac_cv_func_shl_load = yes; then
16489 lt_cv_dlopen="shl_load"
16490else
Reid Spencera773bd52006-08-04 18:18:08 +000016491 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16492echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016493if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16495else
16496 ac_check_lib_save_LIBS=$LIBS
16497LIBS="-ldld $LIBS"
16498cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016499/* confdefs.h. */
16500_ACEOF
16501cat confdefs.h >>conftest.$ac_ext
16502cat >>conftest.$ac_ext <<_ACEOF
16503/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016504
Reid Spencera773bd52006-08-04 18:18:08 +000016505/* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016508#ifdef __cplusplus
16509extern "C"
16510#endif
John Criswell7a73b802003-06-30 21:59:07 +000016511char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016512int
16513main ()
16514{
Reid Spencera773bd52006-08-04 18:18:08 +000016515return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016516 ;
16517 return 0;
16518}
16519_ACEOF
16520rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016521if { (ac_try="$ac_link"
16522case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525esac
16526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016528 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16535 { (case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16538esac
16539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016545 { (case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548esac
16549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_cv_lib_dld_shl_load=yes
16555else
16556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016557sed 's/^/| /' conftest.$ac_ext >&5
16558
Reid Spencera773bd52006-08-04 18:18:08 +000016559 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016560fi
Reid Spencera773bd52006-08-04 18:18:08 +000016561
16562rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016563 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016564LIBS=$ac_check_lib_save_LIBS
16565fi
Reid Spencera773bd52006-08-04 18:18:08 +000016566{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16567echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016568if test $ac_cv_lib_dld_shl_load = yes; then
16569 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16570else
Reid Spencera773bd52006-08-04 18:18:08 +000016571 { echo "$as_me:$LINENO: checking for dlopen" >&5
16572echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016573if test "${ac_cv_func_dlopen+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16575else
16576 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016577/* confdefs.h. */
16578_ACEOF
16579cat confdefs.h >>conftest.$ac_ext
16580cat >>conftest.$ac_ext <<_ACEOF
16581/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016582/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16584#define dlopen innocuous_dlopen
16585
John Criswell7a73b802003-06-30 21:59:07 +000016586/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016587 which can conflict with char dlopen (); below.
16588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16589 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016590
John Criswell0c38eaf2003-09-10 15:17:25 +000016591#ifdef __STDC__
16592# include <limits.h>
16593#else
16594# include <assert.h>
16595#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016596
16597#undef dlopen
16598
Reid Spencera773bd52006-08-04 18:18:08 +000016599/* Override any GCC internal prototype to avoid an error.
16600 Use char because int might match the return type of a GCC
16601 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016602#ifdef __cplusplus
16603extern "C"
16604#endif
John Criswell7a73b802003-06-30 21:59:07 +000016605char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016606/* The GNU C library defines this for functions which it implements
16607 to always fail with ENOSYS. Some functions are actually named
16608 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016609#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016610choke me
John Criswell7a73b802003-06-30 21:59:07 +000016611#endif
16612
John Criswell0c38eaf2003-09-10 15:17:25 +000016613int
16614main ()
16615{
Reid Spencera773bd52006-08-04 18:18:08 +000016616return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016617 ;
16618 return 0;
16619}
16620_ACEOF
16621rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016622if { (ac_try="$ac_link"
16623case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16626esac
16627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016629 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016630 grep -v '^ *+' conftest.er1 >conftest.err
16631 rm -f conftest.er1
16632 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16636 { (case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16639esac
16640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016642 ac_status=$?
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; } &&
16645 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649esac
16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 ac_cv_func_dlopen=yes
16656else
16657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016658sed 's/^/| /' conftest.$ac_ext >&5
16659
Reid Spencera773bd52006-08-04 18:18:08 +000016660 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016661fi
Reid Spencera773bd52006-08-04 18:18:08 +000016662
16663rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016664 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016665fi
Reid Spencera773bd52006-08-04 18:18:08 +000016666{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16667echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016668if test $ac_cv_func_dlopen = yes; then
16669 lt_cv_dlopen="dlopen"
16670else
Reid Spencera773bd52006-08-04 18:18:08 +000016671 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16672echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016673if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675else
16676 ac_check_lib_save_LIBS=$LIBS
16677LIBS="-ldl $LIBS"
16678cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016679/* confdefs.h. */
16680_ACEOF
16681cat confdefs.h >>conftest.$ac_ext
16682cat >>conftest.$ac_ext <<_ACEOF
16683/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016684
Reid Spencera773bd52006-08-04 18:18:08 +000016685/* Override any GCC internal prototype to avoid an error.
16686 Use char because int might match the return type of a GCC
16687 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016688#ifdef __cplusplus
16689extern "C"
16690#endif
John Criswell7a73b802003-06-30 21:59:07 +000016691char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016692int
16693main ()
16694{
Reid Spencera773bd52006-08-04 18:18:08 +000016695return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016696 ;
16697 return 0;
16698}
16699_ACEOF
16700rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016701if { (ac_try="$ac_link"
16702case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16705esac
16706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016709 grep -v '^ *+' conftest.er1 >conftest.err
16710 rm -f conftest.er1
16711 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718esac
16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016725 { (case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728esac
16729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 ac_cv_lib_dl_dlopen=yes
16735else
16736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016737sed 's/^/| /' conftest.$ac_ext >&5
16738
Reid Spencera773bd52006-08-04 18:18:08 +000016739 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016740fi
Reid Spencera773bd52006-08-04 18:18:08 +000016741
16742rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016743 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016744LIBS=$ac_check_lib_save_LIBS
16745fi
Reid Spencera773bd52006-08-04 18:18:08 +000016746{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16747echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016748if test $ac_cv_lib_dl_dlopen = yes; then
16749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16750else
Reid Spencera773bd52006-08-04 18:18:08 +000016751 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16752echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016753if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755else
16756 ac_check_lib_save_LIBS=$LIBS
16757LIBS="-lsvld $LIBS"
16758cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016759/* confdefs.h. */
16760_ACEOF
16761cat confdefs.h >>conftest.$ac_ext
16762cat >>conftest.$ac_ext <<_ACEOF
16763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016764
Reid Spencera773bd52006-08-04 18:18:08 +000016765/* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016768#ifdef __cplusplus
16769extern "C"
16770#endif
John Criswell7a73b802003-06-30 21:59:07 +000016771char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016772int
16773main ()
16774{
Reid Spencera773bd52006-08-04 18:18:08 +000016775return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016776 ;
16777 return 0;
16778}
16779_ACEOF
16780rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016781if { (ac_try="$ac_link"
16782case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785esac
16786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016788 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16798esac
16799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808esac
16809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_lib_svld_dlopen=yes
16815else
16816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016817sed 's/^/| /' conftest.$ac_ext >&5
16818
Reid Spencera773bd52006-08-04 18:18:08 +000016819 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016820fi
Reid Spencera773bd52006-08-04 18:18:08 +000016821
16822rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016823 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016824LIBS=$ac_check_lib_save_LIBS
16825fi
Reid Spencera773bd52006-08-04 18:18:08 +000016826{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16827echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016828if test $ac_cv_lib_svld_dlopen = yes; then
16829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16830else
Reid Spencera773bd52006-08-04 18:18:08 +000016831 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16832echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016833if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835else
16836 ac_check_lib_save_LIBS=$LIBS
16837LIBS="-ldld $LIBS"
16838cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016839/* confdefs.h. */
16840_ACEOF
16841cat confdefs.h >>conftest.$ac_ext
16842cat >>conftest.$ac_ext <<_ACEOF
16843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016844
Reid Spencera773bd52006-08-04 18:18:08 +000016845/* Override any GCC internal prototype to avoid an error.
16846 Use char because int might match the return type of a GCC
16847 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016848#ifdef __cplusplus
16849extern "C"
16850#endif
John Criswell7a73b802003-06-30 21:59:07 +000016851char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016852int
16853main ()
16854{
Reid Spencera773bd52006-08-04 18:18:08 +000016855return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016856 ;
16857 return 0;
16858}
16859_ACEOF
16860rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016861if { (ac_try="$ac_link"
16862case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16865esac
16866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016868 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16878esac
16879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16888esac
16889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_cv_lib_dld_dld_link=yes
16895else
16896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016897sed 's/^/| /' conftest.$ac_ext >&5
16898
Reid Spencera773bd52006-08-04 18:18:08 +000016899 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016900fi
Reid Spencera773bd52006-08-04 18:18:08 +000016901
16902rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016903 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016904LIBS=$ac_check_lib_save_LIBS
16905fi
Reid Spencera773bd52006-08-04 18:18:08 +000016906{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16907echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016908if test $ac_cv_lib_dld_dld_link = yes; then
16909 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16910fi
16911
16912
16913fi
16914
16915
16916fi
16917
16918
16919fi
16920
16921
16922fi
16923
16924
16925fi
16926
16927 ;;
16928 esac
16929
16930 if test "x$lt_cv_dlopen" != xno; then
16931 enable_dlopen=yes
16932 else
16933 enable_dlopen=no
16934 fi
16935
16936 case $lt_cv_dlopen in
16937 dlopen)
16938 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016939 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016940
16941 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016942 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016943
16944 save_LIBS="$LIBS"
16945 LIBS="$lt_cv_dlopen_libs $LIBS"
16946
Reid Spencera773bd52006-08-04 18:18:08 +000016947 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16948echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016949if test "${lt_cv_dlopen_self+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16951else
16952 if test "$cross_compiling" = yes; then :
16953 lt_cv_dlopen_self=cross
16954else
John Criswell47fdd832003-07-14 16:52:07 +000016955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016956 lt_status=$lt_dlunknown
16957 cat > conftest.$ac_ext <<EOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016958#line 16958 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016959#include "confdefs.h"
16960
16961#if HAVE_DLFCN_H
16962#include <dlfcn.h>
16963#endif
16964
16965#include <stdio.h>
16966
16967#ifdef RTLD_GLOBAL
16968# define LT_DLGLOBAL RTLD_GLOBAL
16969#else
16970# ifdef DL_GLOBAL
16971# define LT_DLGLOBAL DL_GLOBAL
16972# else
16973# define LT_DLGLOBAL 0
16974# endif
16975#endif
16976
16977/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16978 find out it does not work in some platform. */
16979#ifndef LT_DLLAZY_OR_NOW
16980# ifdef RTLD_LAZY
16981# define LT_DLLAZY_OR_NOW RTLD_LAZY
16982# else
16983# ifdef DL_LAZY
16984# define LT_DLLAZY_OR_NOW DL_LAZY
16985# else
16986# ifdef RTLD_NOW
16987# define LT_DLLAZY_OR_NOW RTLD_NOW
16988# else
16989# ifdef DL_NOW
16990# define LT_DLLAZY_OR_NOW DL_NOW
16991# else
16992# define LT_DLLAZY_OR_NOW 0
16993# endif
16994# endif
16995# endif
16996# endif
16997#endif
16998
16999#ifdef __cplusplus
17000extern "C" void exit (int);
17001#endif
17002
17003void fnord() { int i=42;}
17004int main ()
17005{
17006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17007 int status = $lt_dlunknown;
17008
17009 if (self)
17010 {
17011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17012 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17013 /* dlclose (self); */
17014 }
Reid Spencera773bd52006-08-04 18:18:08 +000017015 else
17016 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017017
17018 exit (status);
17019}
17020EOF
17021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17022 (eval $ac_link) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017026 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017027 lt_status=$?
17028 case x$lt_status in
17029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017032 esac
17033 else :
17034 # compilation failed
17035 lt_cv_dlopen_self=no
17036 fi
17037fi
17038rm -fr conftest*
17039
17040
17041fi
Reid Spencera773bd52006-08-04 18:18:08 +000017042{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17043echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017044
17045 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17047 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17048echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017049if test "${lt_cv_dlopen_self_static+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052 if test "$cross_compiling" = yes; then :
17053 lt_cv_dlopen_self_static=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
Reid Spencerb2ed05262006-11-03 18:04:08 +000017058#line 17058 "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_static=yes ;;
17130 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017131 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017132 esac
17133 else :
17134 # compilation failed
17135 lt_cv_dlopen_self_static=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_static" >&5
17143echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017144 fi
17145
17146 CPPFLAGS="$save_CPPFLAGS"
17147 LDFLAGS="$save_LDFLAGS"
17148 LIBS="$save_LIBS"
17149 ;;
17150 esac
17151
17152 case $lt_cv_dlopen_self in
17153 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17154 *) enable_dlopen_self=unknown ;;
17155 esac
17156
17157 case $lt_cv_dlopen_self_static in
17158 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17159 *) enable_dlopen_self_static=unknown ;;
17160 esac
17161fi
17162
17163
Reid Spencera773bd52006-08-04 18:18:08 +000017164# Report which library types will actually be built
17165{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17166echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17167{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17168echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017169
Reid Spencera773bd52006-08-04 18:18:08 +000017170{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17171echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017172test "$can_build_shared" = "no" && enable_shared=no
17173
17174# On AIX, shared libraries and static libraries use the same namespace, and
17175# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017176case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017177aix3*)
17178 test "$enable_shared" = yes && enable_static=no
17179 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017180 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017181 postinstall_cmds='$RANLIB $lib'
17182 fi
17183 ;;
17184
Reid Spencer2706f8c2004-09-19 23:53:36 +000017185aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017186 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17187 test "$enable_shared" = yes && enable_static=no
17188 fi
John Criswell7a73b802003-06-30 21:59:07 +000017189 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017190esac
Reid Spencera773bd52006-08-04 18:18:08 +000017191{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17192echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017193
Reid Spencera773bd52006-08-04 18:18:08 +000017194{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17195echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017196# Make sure either enable_shared or enable_static is yes.
17197test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017198{ echo "$as_me:$LINENO: result: $enable_static" >&5
17199echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017200
17201# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017202# libtool distribution, otherwise you forgot to ship ltmain.sh
17203# with your package, and you will get complaints that there are
17204# no rules to generate ltmain.sh.
17205if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017206 # See if we are running on zsh, and set the options which allow our commands through
17207 # without removal of \ escapes.
17208 if test -n "${ZSH_VERSION+set}" ; then
17209 setopt NO_GLOB_SUBST
17210 fi
John Criswell7a73b802003-06-30 21:59:07 +000017211 # Now quote all the things that may contain metacharacters while being
17212 # careful not to overquote the AC_SUBSTed values. We take copies of the
17213 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017214 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 +000017215 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017216 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17217 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17218 deplibs_check_method reload_flag reload_cmds need_locks \
17219 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17220 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017221 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017222 old_postinstall_cmds old_postuninstall_cmds \
17223 compiler \
17224 CC \
17225 LD \
17226 lt_prog_compiler_wl \
17227 lt_prog_compiler_pic \
17228 lt_prog_compiler_static \
17229 lt_prog_compiler_no_builtin_flag \
17230 export_dynamic_flag_spec \
17231 thread_safe_flag_spec \
17232 whole_archive_flag_spec \
17233 enable_shared_with_static_runtimes \
17234 old_archive_cmds \
17235 old_archive_from_new_cmds \
17236 predep_objects \
17237 postdep_objects \
17238 predeps \
17239 postdeps \
17240 compiler_lib_search_path \
17241 archive_cmds \
17242 archive_expsym_cmds \
17243 postinstall_cmds \
17244 postuninstall_cmds \
17245 old_archive_from_expsyms_cmds \
17246 allow_undefined_flag \
17247 no_undefined_flag \
17248 export_symbols_cmds \
17249 hardcode_libdir_flag_spec \
17250 hardcode_libdir_flag_spec_ld \
17251 hardcode_libdir_separator \
17252 hardcode_automatic \
17253 module_cmds \
17254 module_expsym_cmds \
17255 lt_cv_prog_compiler_c_o \
17256 exclude_expsyms \
17257 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017258
17259 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017260 old_archive_cmds | \
17261 old_archive_from_new_cmds | \
17262 archive_cmds | \
17263 archive_expsym_cmds | \
17264 module_cmds | \
17265 module_expsym_cmds | \
17266 old_archive_from_expsyms_cmds | \
17267 export_symbols_cmds | \
17268 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017269 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017270 old_postinstall_cmds | old_postuninstall_cmds | \
17271 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017272 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017273 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 +000017274 ;;
17275 *)
17276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17277 ;;
17278 esac
17279 done
17280
John Criswell47fdd832003-07-14 16:52:07 +000017281 case $lt_echo in
17282 *'\$0 --fallback-echo"')
17283 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17284 ;;
17285 esac
17286
17287cfgfile="${ofile}T"
17288 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17289 $rm -f "$cfgfile"
17290 { echo "$as_me:$LINENO: creating $ofile" >&5
17291echo "$as_me: creating $ofile" >&6;}
17292
17293 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017294#! $SHELL
17295
John Criswell47fdd832003-07-14 16:52:07 +000017296# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017297# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17298# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17299#
John Criswell47fdd832003-07-14 16:52:07 +000017300# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17301# Free Software Foundation, Inc.
17302#
17303# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017304# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17305#
17306# This program is free software; you can redistribute it and/or modify
17307# it under the terms of the GNU General Public License as published by
17308# the Free Software Foundation; either version 2 of the License, or
17309# (at your option) any later version.
17310#
17311# This program is distributed in the hope that it will be useful, but
17312# WITHOUT ANY WARRANTY; without even the implied warranty of
17313# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17314# General Public License for more details.
17315#
17316# You should have received a copy of the GNU General Public License
17317# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017318# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017319#
17320# As a special exception to the GNU General Public License, if you
17321# distribute this file as part of a program that contains a
17322# configuration script generated by Autoconf, you may include it under
17323# the same distribution terms that you use for the rest of that program.
17324
John Criswell47fdd832003-07-14 16:52:07 +000017325# A sed program that does not truncate output.
17326SED=$lt_SED
17327
John Criswell7a73b802003-06-30 21:59:07 +000017328# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017329Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017330
17331# The HP-UX ksh and POSIX shell print the target directory to stdout
17332# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017333(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017334
John Criswell47fdd832003-07-14 16:52:07 +000017335# The names of the tagged configurations supported by this script.
17336available_tags=
17337
John Criswell7a73b802003-06-30 21:59:07 +000017338# ### BEGIN LIBTOOL CONFIG
17339
17340# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17341
17342# Shell to use when invoking shell scripts.
17343SHELL=$lt_SHELL
17344
17345# Whether or not to build shared libraries.
17346build_libtool_libs=$enable_shared
17347
17348# Whether or not to build static libraries.
17349build_old_libs=$enable_static
17350
17351# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017352build_libtool_need_lc=$archive_cmds_need_lc
17353
17354# Whether or not to disallow shared libs when runtime libs are static
17355allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017356
17357# Whether or not to optimize for fast installation.
17358fast_install=$enable_fast_install
17359
17360# The host system.
17361host_alias=$host_alias
17362host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017363host_os=$host_os
17364
17365# The build system.
17366build_alias=$build_alias
17367build=$build
17368build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017369
17370# An echo program that does not interpret backslashes.
17371echo=$lt_echo
17372
17373# The archiver.
17374AR=$lt_AR
17375AR_FLAGS=$lt_AR_FLAGS
17376
John Criswell47fdd832003-07-14 16:52:07 +000017377# A C compiler.
17378LTCC=$lt_LTCC
17379
Reid Spencera773bd52006-08-04 18:18:08 +000017380# LTCC compiler flags.
17381LTCFLAGS=$lt_LTCFLAGS
17382
John Criswell47fdd832003-07-14 16:52:07 +000017383# A language-specific compiler.
17384CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017385
17386# Is the compiler the GNU C compiler?
17387with_gcc=$GCC
17388
John Criswell47fdd832003-07-14 16:52:07 +000017389# An ERE matcher.
17390EGREP=$lt_EGREP
17391
John Criswell7a73b802003-06-30 21:59:07 +000017392# The linker used to build libraries.
17393LD=$lt_LD
17394
17395# Whether we need hard or soft links.
17396LN_S=$lt_LN_S
17397
17398# A BSD-compatible nm program.
17399NM=$lt_NM
17400
17401# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017402STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017403
17404# Used to examine libraries when file_magic_cmd begins "file"
17405MAGIC_CMD=$MAGIC_CMD
17406
17407# Used on cygwin: DLL creation program.
17408DLLTOOL="$DLLTOOL"
17409
17410# Used on cygwin: object dumper.
17411OBJDUMP="$OBJDUMP"
17412
17413# Used on cygwin: assembler.
17414AS="$AS"
17415
17416# The name of the directory that contains temporary libtool files.
17417objdir=$objdir
17418
17419# How to create reloadable object files.
17420reload_flag=$lt_reload_flag
17421reload_cmds=$lt_reload_cmds
17422
17423# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017424wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017425
17426# Object file suffix (normally "o").
17427objext="$ac_objext"
17428
17429# Old archive suffix (normally "a").
17430libext="$libext"
17431
John Criswell47fdd832003-07-14 16:52:07 +000017432# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017433shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017434
John Criswell7a73b802003-06-30 21:59:07 +000017435# Executable file suffix (normally "").
17436exeext="$exeext"
17437
17438# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017439pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017440pic_mode=$pic_mode
17441
John Criswell47fdd832003-07-14 16:52:07 +000017442# What is the maximum length of a command?
17443max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017444
John Criswell47fdd832003-07-14 16:52:07 +000017445# Does compiler simultaneously support -c and -o options?
17446compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017447
Reid Spencera773bd52006-08-04 18:18:08 +000017448# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017449need_locks=$lt_need_locks
17450
17451# Do we need the lib prefix for modules?
17452need_lib_prefix=$need_lib_prefix
17453
17454# Do we need a version for libraries?
17455need_version=$need_version
17456
17457# Whether dlopen is supported.
17458dlopen_support=$enable_dlopen
17459
17460# Whether dlopen of programs is supported.
17461dlopen_self=$enable_dlopen_self
17462
17463# Whether dlopen of statically linked programs is supported.
17464dlopen_self_static=$enable_dlopen_self_static
17465
17466# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017467link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017468
17469# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017470no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017471
17472# Compiler flag to allow reflexive dlopens.
17473export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17474
17475# Compiler flag to generate shared objects directly from archives.
17476whole_archive_flag_spec=$lt_whole_archive_flag_spec
17477
17478# Compiler flag to generate thread-safe objects.
17479thread_safe_flag_spec=$lt_thread_safe_flag_spec
17480
17481# Library versioning type.
17482version_type=$version_type
17483
17484# Format of library name prefix.
17485libname_spec=$lt_libname_spec
17486
17487# List of archive names. First name is the real one, the rest are links.
17488# The last name is the one that the linker finds with -lNAME.
17489library_names_spec=$lt_library_names_spec
17490
17491# The coded name of the library, if different from the real name.
17492soname_spec=$lt_soname_spec
17493
17494# Commands used to build and install an old-style archive.
17495RANLIB=$lt_RANLIB
17496old_archive_cmds=$lt_old_archive_cmds
17497old_postinstall_cmds=$lt_old_postinstall_cmds
17498old_postuninstall_cmds=$lt_old_postuninstall_cmds
17499
17500# Create an old-style archive from a shared archive.
17501old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17502
17503# Create a temporary old-style archive to link instead of a shared archive.
17504old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17505
17506# Commands used to build and install a shared archive.
17507archive_cmds=$lt_archive_cmds
17508archive_expsym_cmds=$lt_archive_expsym_cmds
17509postinstall_cmds=$lt_postinstall_cmds
17510postuninstall_cmds=$lt_postuninstall_cmds
17511
John Criswell47fdd832003-07-14 16:52:07 +000017512# Commands used to build a loadable module (assumed same as above if empty)
17513module_cmds=$lt_module_cmds
17514module_expsym_cmds=$lt_module_expsym_cmds
17515
John Criswell7a73b802003-06-30 21:59:07 +000017516# Commands to strip libraries.
17517old_striplib=$lt_old_striplib
17518striplib=$lt_striplib
17519
John Criswell47fdd832003-07-14 16:52:07 +000017520# Dependencies to place before the objects being linked to create a
17521# shared library.
17522predep_objects=$lt_predep_objects
17523
17524# Dependencies to place after the objects being linked to create a
17525# shared library.
17526postdep_objects=$lt_postdep_objects
17527
17528# Dependencies to place before the objects being linked to create a
17529# shared library.
17530predeps=$lt_predeps
17531
17532# Dependencies to place after the objects being linked to create a
17533# shared library.
17534postdeps=$lt_postdeps
17535
17536# The library search path used internally by the compiler when linking
17537# a shared library.
17538compiler_lib_search_path=$lt_compiler_lib_search_path
17539
John Criswell7a73b802003-06-30 21:59:07 +000017540# Method to check whether dependent libraries are shared objects.
17541deplibs_check_method=$lt_deplibs_check_method
17542
17543# Command to use when deplibs_check_method == file_magic.
17544file_magic_cmd=$lt_file_magic_cmd
17545
17546# Flag that allows shared libraries with undefined symbols to be built.
17547allow_undefined_flag=$lt_allow_undefined_flag
17548
17549# Flag that forces no undefined symbols.
17550no_undefined_flag=$lt_no_undefined_flag
17551
17552# Commands used to finish a libtool library installation in a directory.
17553finish_cmds=$lt_finish_cmds
17554
17555# Same as above, but a single script fragment to be evaled but not shown.
17556finish_eval=$lt_finish_eval
17557
17558# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017559global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017560
17561# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017562global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017563
17564# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017565global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017566
17567# This is the shared library runtime path variable.
17568runpath_var=$runpath_var
17569
17570# This is the shared library path variable.
17571shlibpath_var=$shlibpath_var
17572
17573# Is shlibpath searched before the hard-coded library search path?
17574shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17575
17576# How to hardcode a shared library path into an executable.
17577hardcode_action=$hardcode_action
17578
17579# Whether we should hardcode library paths into libraries.
17580hardcode_into_libs=$hardcode_into_libs
17581
17582# Flag to hardcode \$libdir into a binary during linking.
17583# This must work even if \$libdir does not exist.
17584hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17585
John Criswell47fdd832003-07-14 16:52:07 +000017586# If ld is used when linking, flag to hardcode \$libdir into
17587# a binary during linking. This must work even if \$libdir does
17588# not exist.
17589hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17590
John Criswell7a73b802003-06-30 21:59:07 +000017591# Whether we need a single -rpath flag with a separated argument.
17592hardcode_libdir_separator=$lt_hardcode_libdir_separator
17593
John Criswell47fdd832003-07-14 16:52:07 +000017594# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017595# resulting binary.
17596hardcode_direct=$hardcode_direct
17597
17598# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17599# resulting binary.
17600hardcode_minus_L=$hardcode_minus_L
17601
17602# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17603# the resulting binary.
17604hardcode_shlibpath_var=$hardcode_shlibpath_var
17605
John Criswell47fdd832003-07-14 16:52:07 +000017606# Set to yes if building a shared library automatically hardcodes DIR into the library
17607# and all subsequent libraries and executables linked against it.
17608hardcode_automatic=$hardcode_automatic
17609
John Criswell7a73b802003-06-30 21:59:07 +000017610# Variables whose values should be saved in libtool wrapper scripts and
17611# restored at relink time.
17612variables_saved_for_relink="$variables_saved_for_relink"
17613
17614# Whether libtool must link a program against all its dependency libraries.
17615link_all_deplibs=$link_all_deplibs
17616
17617# Compile-time system search path for libraries
17618sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17619
17620# Run-time system search path for libraries
17621sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17622
17623# Fix the shell variable \$srcfile for the compiler.
17624fix_srcfile_path="$fix_srcfile_path"
17625
17626# Set to yes if exported symbols are required.
17627always_export_symbols=$always_export_symbols
17628
17629# The commands to list exported symbols.
17630export_symbols_cmds=$lt_export_symbols_cmds
17631
17632# The commands to extract the exported symbol list from a shared archive.
17633extract_expsyms_cmds=$lt_extract_expsyms_cmds
17634
17635# Symbols that should not be listed in the preloaded symbols.
17636exclude_expsyms=$lt_exclude_expsyms
17637
17638# Symbols that must always be exported.
17639include_expsyms=$lt_include_expsyms
17640
17641# ### END LIBTOOL CONFIG
17642
17643__EOF__
17644
John Criswell47fdd832003-07-14 16:52:07 +000017645
John Criswell7a73b802003-06-30 21:59:07 +000017646 case $host_os in
17647 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017648 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017649
17650# AIX sometimes has problems with the GCC collect2 program. For some
17651# reason, if we set the COLLECT_NAMES environment variable, the problems
17652# vanish in a puff of smoke.
17653if test "X${COLLECT_NAMES+set}" != Xset; then
17654 COLLECT_NAMES=
17655 export COLLECT_NAMES
17656fi
17657EOF
17658 ;;
17659 esac
17660
John Criswell7a73b802003-06-30 21:59:07 +000017661 # We use sed instead of cat because bash on DJGPP gets confused if
17662 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17663 # text mode, it properly converts lines to CR/LF. This bash problem
17664 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017665 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017666
John Criswell47fdd832003-07-14 16:52:07 +000017667 mv -f "$cfgfile" "$ofile" || \
17668 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017669 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017670
17671else
17672 # If there is no Makefile yet, we rely on a make rule to execute
17673 # `config.status --recheck' to rerun these tests and create the
17674 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017675 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17676 if test -f "$ltmain_in"; then
17677 test -f Makefile && make "$ltmain"
17678 fi
John Criswell7a73b802003-06-30 21:59:07 +000017679fi
John Criswell7a73b802003-06-30 21:59:07 +000017680
17681
John Criswell47fdd832003-07-14 16:52:07 +000017682ac_ext=c
17683ac_cpp='$CPP $CPPFLAGS'
17684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17686ac_compiler_gnu=$ac_cv_c_compiler_gnu
17687
17688CC="$lt_save_CC"
17689
17690
Reid Spencera773bd52006-08-04 18:18:08 +000017691# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017692if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017693 withval=$with_tags; tagnames="$withval"
17694fi
17695
John Criswell47fdd832003-07-14 16:52:07 +000017696
17697if test -f "$ltmain" && test -n "$tagnames"; then
17698 if test ! -f "${ofile}"; then
17699 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17700echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17701 fi
17702
17703 if test -z "$LTCC"; then
17704 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17705 if test -z "$LTCC"; then
17706 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17707echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17708 else
17709 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17710echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17711 fi
17712 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017713 if test -z "$LTCFLAGS"; then
17714 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17715 fi
John Criswell47fdd832003-07-14 16:52:07 +000017716
17717 # Extract list of available tagged configurations in $ofile.
17718 # Note that this assumes the entire list is on one line.
17719 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17720
17721 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17722 for tagname in $tagnames; do
17723 IFS="$lt_save_ifs"
17724 # Check whether tagname contains only valid characters
17725 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17726 "") ;;
17727 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17728echo "$as_me: error: invalid tag name: $tagname" >&2;}
17729 { (exit 1); exit 1; }; }
17730 ;;
17731 esac
17732
17733 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17734 then
17735 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17736echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17737 { (exit 1); exit 1; }; }
17738 fi
17739
17740 # Update the list of available tags.
17741 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017742 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017743
17744 case $tagname in
17745 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017746 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17747 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17748 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017749 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017750ac_cpp='$CXXCPP $CPPFLAGS'
17751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17754
17755
17756
17757
17758archive_cmds_need_lc_CXX=no
17759allow_undefined_flag_CXX=
17760always_export_symbols_CXX=no
17761archive_expsym_cmds_CXX=
17762export_dynamic_flag_spec_CXX=
17763hardcode_direct_CXX=no
17764hardcode_libdir_flag_spec_CXX=
17765hardcode_libdir_flag_spec_ld_CXX=
17766hardcode_libdir_separator_CXX=
17767hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017768hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017769hardcode_automatic_CXX=no
17770module_cmds_CXX=
17771module_expsym_cmds_CXX=
17772link_all_deplibs_CXX=unknown
17773old_archive_cmds_CXX=$old_archive_cmds
17774no_undefined_flag_CXX=
17775whole_archive_flag_spec_CXX=
17776enable_shared_with_static_runtimes_CXX=no
17777
17778# Dependencies to place before and after the object being linked:
17779predep_objects_CXX=
17780postdep_objects_CXX=
17781predeps_CXX=
17782postdeps_CXX=
17783compiler_lib_search_path_CXX=
17784
17785# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017786ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017787
17788# Object file extension for compiled C++ test sources.
17789objext=o
17790objext_CXX=$objext
17791
17792# Code to be used in simple compile tests
17793lt_simple_compile_test_code="int some_variable = 0;\n"
17794
17795# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017796lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017797
17798# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17799
17800# If no C compiler was specified, use CC.
17801LTCC=${LTCC-"$CC"}
17802
Reid Spencera773bd52006-08-04 18:18:08 +000017803# If no C compiler flags were specified, use CFLAGS.
17804LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17805
John Criswell47fdd832003-07-14 16:52:07 +000017806# Allow CC to be a program name with arguments.
17807compiler=$CC
17808
17809
Reid Spencera773bd52006-08-04 18:18:08 +000017810# save warnings/boilerplate of simple test code
17811ac_outfile=conftest.$ac_objext
17812printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17813eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17814_lt_compiler_boilerplate=`cat conftest.err`
17815$rm conftest*
17816
17817ac_outfile=conftest.$ac_objext
17818printf "$lt_simple_link_test_code" >conftest.$ac_ext
17819eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17820_lt_linker_boilerplate=`cat conftest.err`
17821$rm conftest*
17822
17823
John Criswell47fdd832003-07-14 16:52:07 +000017824# Allow CC to be a program name with arguments.
17825lt_save_CC=$CC
17826lt_save_LD=$LD
17827lt_save_GCC=$GCC
17828GCC=$GXX
17829lt_save_with_gnu_ld=$with_gnu_ld
17830lt_save_path_LD=$lt_cv_path_LD
17831if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17832 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17833else
Reid Spencera773bd52006-08-04 18:18:08 +000017834 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017835fi
17836if test -n "${lt_cv_path_LDCXX+set}"; then
17837 lt_cv_path_LD=$lt_cv_path_LDCXX
17838else
Reid Spencera773bd52006-08-04 18:18:08 +000017839 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017840fi
17841test -z "${LDCXX+set}" || LD=$LDCXX
17842CC=${CXX-"c++"}
17843compiler=$CC
17844compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017845for cc_temp in $compiler""; do
17846 case $cc_temp in
17847 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17848 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17849 \-*) ;;
17850 *) break;;
17851 esac
17852done
17853cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17854
John Criswell47fdd832003-07-14 16:52:07 +000017855
17856# We don't want -fno-exception wen compiling C++ code, so set the
17857# no_builtin_flag separately
17858if test "$GXX" = yes; then
17859 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17860else
17861 lt_prog_compiler_no_builtin_flag_CXX=
17862fi
17863
17864if test "$GXX" = yes; then
17865 # Set up default GNU C++ configuration
17866
17867
Reid Spencera773bd52006-08-04 18:18:08 +000017868# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017869if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017870 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017871else
17872 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017873fi
17874
John Criswell47fdd832003-07-14 16:52:07 +000017875ac_prog=ld
17876if test "$GCC" = yes; then
17877 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017878 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17879echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017880 case $host in
17881 *-*-mingw*)
17882 # gcc leaves a trailing carriage return which upsets mingw
17883 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17884 *)
17885 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17886 esac
17887 case $ac_prog in
17888 # Accept absolute paths.
17889 [\\/]* | ?:[\\/]*)
17890 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017891 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017892 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17893 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17894 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17895 done
17896 test -z "$LD" && LD="$ac_prog"
17897 ;;
17898 "")
17899 # If it fails, then pretend we aren't using GCC.
17900 ac_prog=ld
17901 ;;
17902 *)
17903 # If it is relative, then search for the first ld in PATH.
17904 with_gnu_ld=unknown
17905 ;;
17906 esac
17907elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017908 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17909echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017910else
Reid Spencera773bd52006-08-04 18:18:08 +000017911 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17912echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017913fi
17914if test "${lt_cv_path_LD+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916else
17917 if test -z "$LD"; then
17918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17919 for ac_dir in $PATH; do
17920 IFS="$lt_save_ifs"
17921 test -z "$ac_dir" && ac_dir=.
17922 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17923 lt_cv_path_LD="$ac_dir/$ac_prog"
17924 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017925 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017926 # Break only if it was the GNU/non-GNU ld that we prefer.
17927 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17928 *GNU* | *'with BFD'*)
17929 test "$with_gnu_ld" != no && break
17930 ;;
17931 *)
17932 test "$with_gnu_ld" != yes && break
17933 ;;
17934 esac
17935 fi
17936 done
17937 IFS="$lt_save_ifs"
17938else
17939 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17940fi
17941fi
17942
17943LD="$lt_cv_path_LD"
17944if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017945 { echo "$as_me:$LINENO: result: $LD" >&5
17946echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017947else
Reid Spencera773bd52006-08-04 18:18:08 +000017948 { echo "$as_me:$LINENO: result: no" >&5
17949echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017950fi
17951test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17952echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17953 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017954{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17955echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017956if test "${lt_cv_prog_gnu_ld+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17958else
Reid Spencera773bd52006-08-04 18:18:08 +000017959 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017960case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017961*GNU* | *'with BFD'*)
17962 lt_cv_prog_gnu_ld=yes
17963 ;;
17964*)
17965 lt_cv_prog_gnu_ld=no
17966 ;;
17967esac
17968fi
Reid Spencera773bd52006-08-04 18:18:08 +000017969{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17970echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017971with_gnu_ld=$lt_cv_prog_gnu_ld
17972
17973
17974
17975 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17976 # archiving commands below assume that GNU ld is being used.
17977 if test "$with_gnu_ld" = yes; then
17978 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17979 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'
17980
17981 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17983
17984 # If archive_cmds runs LD, not CC, wlarc should be empty
17985 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17986 # investigate it a little bit more. (MM)
17987 wlarc='${wl}'
17988
17989 # ancient GNU ld didn't support --whole-archive et. al.
17990 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17991 grep 'no-whole-archive' > /dev/null; then
17992 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17993 else
17994 whole_archive_flag_spec_CXX=
17995 fi
17996 else
17997 with_gnu_ld=no
17998 wlarc=
17999
18000 # A generic and very simple default shared library creation
18001 # command for GNU C++ for the case where it uses the native
18002 # linker, instead of GNU ld. If possible, this setting should
18003 # overridden to take advantage of the native linker features on
18004 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018005 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018006 fi
18007
18008 # Commands to make compiler produce verbose output that lists
18009 # what "hidden" libraries, object files and flags are used when
18010 # linking a shared library.
18011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18012
18013else
18014 GXX=no
18015 with_gnu_ld=no
18016 wlarc=
18017fi
18018
18019# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018020{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18021echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018022ld_shlibs_CXX=yes
18023case $host_os in
18024 aix3*)
18025 # FIXME: insert proper C++ library support
18026 ld_shlibs_CXX=no
18027 ;;
18028 aix4* | aix5*)
18029 if test "$host_cpu" = ia64; then
18030 # On IA64, the linker does run time linking by default, so we don't
18031 # have to do anything special.
18032 aix_use_runtimelinking=no
18033 exp_sym_flag='-Bexport'
18034 no_entry_flag=""
18035 else
18036 aix_use_runtimelinking=no
18037
18038 # Test if we are trying to use run time linking or normal
18039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18040 # need to do runtime linking.
18041 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18042 for ld_flag in $LDFLAGS; do
18043 case $ld_flag in
18044 *-brtl*)
18045 aix_use_runtimelinking=yes
18046 break
18047 ;;
18048 esac
18049 done
Reid Spencera773bd52006-08-04 18:18:08 +000018050 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018051 esac
18052
18053 exp_sym_flag='-bexport'
18054 no_entry_flag='-bnoentry'
18055 fi
18056
18057 # When large executables or shared objects are built, AIX ld can
18058 # have problems creating the table of contents. If linking a library
18059 # or program results in "error TOC overflow" add -mminimal-toc to
18060 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18061 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18062
18063 archive_cmds_CXX=''
18064 hardcode_direct_CXX=yes
18065 hardcode_libdir_separator_CXX=':'
18066 link_all_deplibs_CXX=yes
18067
18068 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018069 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018070 # We only want to do this on AIX 4.2 and lower, the check
18071 # below for broken collect2 doesn't work under 4.3+
18072 collect2name=`${CC} -print-prog-name=collect2`
18073 if test -f "$collect2name" && \
18074 strings "$collect2name" | grep resolve_lib_name >/dev/null
18075 then
18076 # We have reworked collect2
18077 hardcode_direct_CXX=yes
18078 else
18079 # We have old collect2
18080 hardcode_direct_CXX=unsupported
18081 # It fails to find uninstalled libraries when the uninstalled
18082 # path is not listed in the libpath. Setting hardcode_minus_L
18083 # to unsupported forces relinking
18084 hardcode_minus_L_CXX=yes
18085 hardcode_libdir_flag_spec_CXX='-L$libdir'
18086 hardcode_libdir_separator_CXX=
18087 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018088 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018089 esac
18090 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018091 if test "$aix_use_runtimelinking" = yes; then
18092 shared_flag="$shared_flag "'${wl}-G'
18093 fi
John Criswell47fdd832003-07-14 16:52:07 +000018094 else
18095 # not using gcc
18096 if test "$host_cpu" = ia64; then
18097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18098 # chokes on -Wl,-G. The following line is correct:
18099 shared_flag='-G'
18100 else
18101 if test "$aix_use_runtimelinking" = yes; then
18102 shared_flag='${wl}-G'
18103 else
18104 shared_flag='${wl}-bM:SRE'
18105 fi
18106 fi
18107 fi
18108
18109 # It seems that -bexpall does not export symbols beginning with
18110 # underscore (_), so it is better to generate a list of symbols to export.
18111 always_export_symbols_CXX=yes
18112 if test "$aix_use_runtimelinking" = yes; then
18113 # Warning - without using the other runtime loading flags (-brtl),
18114 # -berok will link without error, but may produce a broken library.
18115 allow_undefined_flag_CXX='-berok'
18116 # Determine the default libpath from the value encoded in an empty executable.
18117 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018118/* confdefs.h. */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018123
John Criswell47fdd832003-07-14 16:52:07 +000018124int
18125main ()
18126{
18127
18128 ;
18129 return 0;
18130}
18131_ACEOF
18132rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018133if { (ac_try="$ac_link"
18134case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18137esac
18138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018140 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018141 grep -v '^ *+' conftest.er1 >conftest.err
18142 rm -f conftest.er1
18143 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150esac
18151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018157 { (case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160esac
18161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166
18167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18168}'`
18169# Check for a 64-bit object if we didn't find anything.
18170if 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; }
18171}'`; fi
18172else
18173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018174sed 's/^/| /' conftest.$ac_ext >&5
18175
Reid Spencera773bd52006-08-04 18:18:08 +000018176
John Criswell47fdd832003-07-14 16:52:07 +000018177fi
Reid Spencera773bd52006-08-04 18:18:08 +000018178
18179rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018180 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018181if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18182
18183 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18184
Reid Spencera773bd52006-08-04 18:18:08 +000018185 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 +000018186 else
18187 if test "$host_cpu" = ia64; then
18188 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18189 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018190 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 +000018191 else
18192 # Determine the default libpath from the value encoded in an empty executable.
18193 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018199
John Criswell47fdd832003-07-14 16:52:07 +000018200int
18201main ()
18202{
18203
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018209if { (ac_try="$ac_link"
18210case "(($ac_try" in
18211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212 *) ac_try_echo=$ac_try;;
18213esac
18214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018216 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18226esac
18227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018233 { (case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236esac
18237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018239 ac_status=$?
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; }; then
18242
18243aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18244}'`
18245# Check for a 64-bit object if we didn't find anything.
18246if 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; }
18247}'`; fi
18248else
18249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018250sed 's/^/| /' conftest.$ac_ext >&5
18251
Reid Spencera773bd52006-08-04 18:18:08 +000018252
John Criswell47fdd832003-07-14 16:52:07 +000018253fi
Reid Spencera773bd52006-08-04 18:18:08 +000018254
18255rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018256 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018257if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18258
18259 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18260 # Warning - without using the other run time loading flags,
18261 # -berok will link without error, but may produce a broken library.
18262 no_undefined_flag_CXX=' ${wl}-bernotok'
18263 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018264 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018265 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018266 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018267 # This is similar to how AIX traditionally builds its shared libraries.
18268 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 +000018269 fi
18270 fi
18271 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018272
18273 beos*)
18274 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18275 allow_undefined_flag_CXX=unsupported
18276 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18277 # support --undefined. This deserves some investigation. FIXME
18278 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18279 else
18280 ld_shlibs_CXX=no
18281 fi
18282 ;;
18283
John Criswell47fdd832003-07-14 16:52:07 +000018284 chorus*)
18285 case $cc_basename in
18286 *)
18287 # FIXME: insert proper C++ library support
18288 ld_shlibs_CXX=no
18289 ;;
18290 esac
18291 ;;
18292
18293 cygwin* | mingw* | pw32*)
18294 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18295 # as there is no search path for DLLs.
18296 hardcode_libdir_flag_spec_CXX='-L$libdir'
18297 allow_undefined_flag_CXX=unsupported
18298 always_export_symbols_CXX=no
18299 enable_shared_with_static_runtimes_CXX=yes
18300
18301 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018302 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 +000018303 # If the export-symbols file already is a .def file (1st line
18304 # is EXPORTS), use it as is; otherwise, prepend...
18305 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18306 cp $export_symbols $output_objdir/$soname.def;
18307 else
18308 echo EXPORTS > $output_objdir/$soname.def;
18309 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018310 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018311 $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 +000018312 else
18313 ld_shlibs_CXX=no
18314 fi
18315 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018316 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018317 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018318 rhapsody* | darwin1.[012])
18319 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18320 ;;
18321 *) # Darwin 1.3 on
18322 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18323 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18324 else
18325 case ${MACOSX_DEPLOYMENT_TARGET} in
18326 10.[012])
18327 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18328 ;;
18329 10.*)
18330 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18331 ;;
18332 esac
18333 fi
18334 ;;
18335 esac
18336 archive_cmds_need_lc_CXX=no
18337 hardcode_direct_CXX=no
18338 hardcode_automatic_CXX=yes
18339 hardcode_shlibpath_var_CXX=unsupported
18340 whole_archive_flag_spec_CXX=''
18341 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018342
Reid Spencer2706f8c2004-09-19 23:53:36 +000018343 if test "$GXX" = yes ; then
18344 lt_int_apple_cc_single_mod=no
18345 output_verbose_link_cmd='echo'
18346 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18347 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018348 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018349 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018350 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 +000018351 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018352 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 +000018353 fi
18354 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018355 # 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 +000018356 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018357 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 +000018358 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018359 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 +000018360 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018361 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 +000018362 else
Reid Spencera773bd52006-08-04 18:18:08 +000018363 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018364 xlc*)
18365 output_verbose_link_cmd='echo'
18366 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'
18367 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018368 # 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 +000018369 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}'
18370 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 +000018371 ;;
18372 *)
18373 ld_shlibs_CXX=no
18374 ;;
18375 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018376 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018377 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018378
18379 dgux*)
18380 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018381 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018382 # FIXME: insert proper C++ library support
18383 ld_shlibs_CXX=no
18384 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018385 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018386 # Green Hills C++ Compiler
18387 # FIXME: insert proper C++ library support
18388 ld_shlibs_CXX=no
18389 ;;
18390 *)
18391 # FIXME: insert proper C++ library support
18392 ld_shlibs_CXX=no
18393 ;;
18394 esac
18395 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018396 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018397 # C++ shared libraries reported to be fairly broken before switch to ELF
18398 ld_shlibs_CXX=no
18399 ;;
18400 freebsd-elf*)
18401 archive_cmds_need_lc_CXX=no
18402 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018403 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018404 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18405 # conventions
18406 ld_shlibs_CXX=yes
18407 ;;
18408 gnu*)
18409 ;;
18410 hpux9*)
18411 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18412 hardcode_libdir_separator_CXX=:
18413 export_dynamic_flag_spec_CXX='${wl}-E'
18414 hardcode_direct_CXX=yes
18415 hardcode_minus_L_CXX=yes # Not in the search PATH,
18416 # but as the default
18417 # location of the library.
18418
18419 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018420 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018421 # FIXME: insert proper C++ library support
18422 ld_shlibs_CXX=no
18423 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018424 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018425 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 +000018426 # Commands to make compiler produce verbose output that lists
18427 # what "hidden" libraries, object files and flags are used when
18428 # linking a shared library.
18429 #
18430 # There doesn't appear to be a way to prevent this compiler from
18431 # explicitly linking system object files so we need to strip them
18432 # from the output so that they don't get included in the library
18433 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018434 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 +000018435 ;;
18436 *)
18437 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018438 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 +000018439 else
18440 # FIXME: insert proper C++ library support
18441 ld_shlibs_CXX=no
18442 fi
18443 ;;
18444 esac
18445 ;;
18446 hpux10*|hpux11*)
18447 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018448 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18449 hardcode_libdir_separator_CXX=:
18450
18451 case $host_cpu in
18452 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018453 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018454 ;;
18455 *)
John Criswell47fdd832003-07-14 16:52:07 +000018456 export_dynamic_flag_spec_CXX='${wl}-E'
18457 ;;
18458 esac
18459 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018460 case $host_cpu in
18461 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018462 hardcode_direct_CXX=no
18463 hardcode_shlibpath_var_CXX=no
18464 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018465 *)
18466 hardcode_direct_CXX=yes
18467 hardcode_minus_L_CXX=yes # Not in the search PATH,
18468 # but as the default
18469 # location of the library.
18470 ;;
18471 esac
18472
18473 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018474 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018475 # FIXME: insert proper C++ library support
18476 ld_shlibs_CXX=no
18477 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018478 aCC*)
18479 case $host_cpu in
18480 hppa*64*)
18481 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18482 ;;
18483 ia64*)
18484 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 +000018485 ;;
18486 *)
18487 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18488 ;;
18489 esac
18490 # Commands to make compiler produce verbose output that lists
18491 # what "hidden" libraries, object files and flags are used when
18492 # linking a shared library.
18493 #
18494 # There doesn't appear to be a way to prevent this compiler from
18495 # explicitly linking system object files so we need to strip them
18496 # from the output so that they don't get included in the library
18497 # dependencies.
18498 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'
18499 ;;
18500 *)
18501 if test "$GXX" = yes; then
18502 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018503 case $host_cpu in
18504 hppa*64*)
18505 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18506 ;;
18507 ia64*)
18508 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 +000018509 ;;
18510 *)
18511 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'
18512 ;;
18513 esac
18514 fi
18515 else
18516 # FIXME: insert proper C++ library support
18517 ld_shlibs_CXX=no
18518 fi
18519 ;;
18520 esac
18521 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018522 interix3*)
18523 hardcode_direct_CXX=no
18524 hardcode_shlibpath_var_CXX=no
18525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18526 export_dynamic_flag_spec_CXX='${wl}-E'
18527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18528 # Instead, shared libraries are loaded at an image base (0x10000000 by
18529 # default) and relocated if they conflict, which is a slow very memory
18530 # consuming and fragmenting process. To avoid this, we pick a random,
18531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18532 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18533 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'
18534 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'
18535 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018536 irix5* | irix6*)
18537 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018538 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018539 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018540 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 +000018541
18542 # Archives containing C++ object files must be created using
18543 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18544 # necessary to make sure instantiated templates are included
18545 # in the archive.
18546 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18547 ;;
18548 *)
18549 if test "$GXX" = yes; then
18550 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018551 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 +000018552 else
18553 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'
18554 fi
18555 fi
18556 link_all_deplibs_CXX=yes
18557 ;;
18558 esac
18559 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18560 hardcode_libdir_separator_CXX=:
18561 ;;
18562 linux*)
18563 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018564 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018565 # Kuck and Associates, Inc. (KAI) C++ Compiler
18566
18567 # KCC will only create a shared library if the output file
18568 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18569 # to its proper name (with version) after linking.
18570 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'
18571 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'
18572 # Commands to make compiler produce verbose output that lists
18573 # what "hidden" libraries, object files and flags are used when
18574 # linking a shared library.
18575 #
18576 # There doesn't appear to be a way to prevent this compiler from
18577 # explicitly linking system object files so we need to strip them
18578 # from the output so that they don't get included in the library
18579 # dependencies.
18580 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'
18581
18582 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18584
18585 # Archives containing C++ object files must be created using
18586 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18587 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18588 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018589 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018590 # Intel C++
18591 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018592 # version 8.0 and above of icpc choke on multiply defined symbols
18593 # if we add $predep_objects and $postdep_objects, however 7.1 and
18594 # earlier do not add the objects themselves.
18595 case `$CC -V 2>&1` in
18596 *"Version 7."*)
18597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18598 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'
18599 ;;
18600 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018601 tmp_idyn=
18602 case $host_cpu in
18603 ia64*) tmp_idyn=' -i_dynamic';;
18604 esac
18605 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18606 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 +000018607 ;;
18608 esac
John Criswell47fdd832003-07-14 16:52:07 +000018609 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18611 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18612 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18613 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018614 pgCC*)
18615 # Portland Group C++ compiler
18616 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18617 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'
18618
18619 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18621 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'
18622 ;;
18623 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018624 # Compaq C++
18625 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18626 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'
18627
18628 runpath_var=LD_RUN_PATH
18629 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18630 hardcode_libdir_separator_CXX=:
18631
18632 # Commands to make compiler produce verbose output that lists
18633 # what "hidden" libraries, object files and flags are used when
18634 # linking a shared library.
18635 #
18636 # There doesn't appear to be a way to prevent this compiler from
18637 # explicitly linking system object files so we need to strip them
18638 # from the output so that they don't get included in the library
18639 # dependencies.
18640 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'
18641 ;;
18642 esac
18643 ;;
18644 lynxos*)
18645 # FIXME: insert proper C++ library support
18646 ld_shlibs_CXX=no
18647 ;;
18648 m88k*)
18649 # FIXME: insert proper C++ library support
18650 ld_shlibs_CXX=no
18651 ;;
18652 mvs*)
18653 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018654 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018655 # FIXME: insert proper C++ library support
18656 ld_shlibs_CXX=no
18657 ;;
18658 *)
18659 # FIXME: insert proper C++ library support
18660 ld_shlibs_CXX=no
18661 ;;
18662 esac
18663 ;;
18664 netbsd*)
18665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18666 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18667 wlarc=
18668 hardcode_libdir_flag_spec_CXX='-R$libdir'
18669 hardcode_direct_CXX=yes
18670 hardcode_shlibpath_var_CXX=no
18671 fi
18672 # Workaround some broken pre-1.5 toolchains
18673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18674 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018675 openbsd2*)
18676 # C++ shared libraries are fairly broken
18677 ld_shlibs_CXX=no
18678 ;;
18679 openbsd*)
18680 hardcode_direct_CXX=yes
18681 hardcode_shlibpath_var_CXX=no
18682 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18683 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18685 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18686 export_dynamic_flag_spec_CXX='${wl}-E'
18687 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18688 fi
18689 output_verbose_link_cmd='echo'
18690 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018691 osf3*)
18692 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018693 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018694 # Kuck and Associates, Inc. (KAI) C++ Compiler
18695
18696 # KCC will only create a shared library if the output file
18697 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18698 # to its proper name (with version) after linking.
18699 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'
18700
18701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18702 hardcode_libdir_separator_CXX=:
18703
18704 # Archives containing C++ object files must be created using
18705 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18706 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18707
18708 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018709 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018710 # Rational C++ 2.4.1
18711 # FIXME: insert proper C++ library support
18712 ld_shlibs_CXX=no
18713 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018714 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018715 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018716 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 +000018717
18718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18719 hardcode_libdir_separator_CXX=:
18720
18721 # Commands to make compiler produce verbose output that lists
18722 # what "hidden" libraries, object files and flags are used when
18723 # linking a shared library.
18724 #
18725 # There doesn't appear to be a way to prevent this compiler from
18726 # explicitly linking system object files so we need to strip them
18727 # from the output so that they don't get included in the library
18728 # dependencies.
18729 output_verbose_link_cmd='templist=`$CC -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'
18730 ;;
18731 *)
18732 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18733 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018734 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 +000018735
18736 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18737 hardcode_libdir_separator_CXX=:
18738
18739 # Commands to make compiler produce verbose output that lists
18740 # what "hidden" libraries, object files and flags are used when
18741 # linking a shared library.
18742 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18743
18744 else
18745 # FIXME: insert proper C++ library support
18746 ld_shlibs_CXX=no
18747 fi
18748 ;;
18749 esac
18750 ;;
18751 osf4* | osf5*)
18752 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018753 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018754 # Kuck and Associates, Inc. (KAI) C++ Compiler
18755
18756 # KCC will only create a shared library if the output file
18757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18758 # to its proper name (with version) after linking.
18759 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'
18760
18761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18762 hardcode_libdir_separator_CXX=:
18763
18764 # Archives containing C++ object files must be created using
18765 # the KAI C++ compiler.
18766 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18767 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018768 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018769 # Rational C++ 2.4.1
18770 # FIXME: insert proper C++ library support
18771 ld_shlibs_CXX=no
18772 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018773 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018774 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018775 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 +000018776 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18777 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018778 $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 +000018779 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018780
18781 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18782 hardcode_libdir_separator_CXX=:
18783
18784 # Commands to make compiler produce verbose output that lists
18785 # what "hidden" libraries, object files and flags are used when
18786 # linking a shared library.
18787 #
18788 # There doesn't appear to be a way to prevent this compiler from
18789 # explicitly linking system object files so we need to strip them
18790 # from the output so that they don't get included in the library
18791 # dependencies.
18792 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'
18793 ;;
18794 *)
18795 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18796 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018797 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 +000018798
18799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18800 hardcode_libdir_separator_CXX=:
18801
18802 # Commands to make compiler produce verbose output that lists
18803 # what "hidden" libraries, object files and flags are used when
18804 # linking a shared library.
18805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18806
18807 else
18808 # FIXME: insert proper C++ library support
18809 ld_shlibs_CXX=no
18810 fi
18811 ;;
18812 esac
18813 ;;
18814 psos*)
18815 # FIXME: insert proper C++ library support
18816 ld_shlibs_CXX=no
18817 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018818 sunos4*)
18819 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018820 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018821 # Sun C++ 4.x
18822 # FIXME: insert proper C++ library support
18823 ld_shlibs_CXX=no
18824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018825 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018826 # Lucid
18827 # FIXME: insert proper C++ library support
18828 ld_shlibs_CXX=no
18829 ;;
18830 *)
18831 # FIXME: insert proper C++ library support
18832 ld_shlibs_CXX=no
18833 ;;
18834 esac
18835 ;;
18836 solaris*)
18837 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018838 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018839 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018840 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018841 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018842 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 +000018843 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 +000018844 $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 +000018845
18846 hardcode_libdir_flag_spec_CXX='-R$libdir'
18847 hardcode_shlibpath_var_CXX=no
18848 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018849 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018850 *)
18851 # The C++ compiler is used as linker so we must use $wl
18852 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018853 # linker. We must also pass each convience library through
18854 # to the system linker between allextract/defaultextract.
18855 # The C++ compiler will combine linker options so we
18856 # cannot just pass the convience library names through
18857 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018858 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018859 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 +000018860 ;;
18861 esac
18862 link_all_deplibs_CXX=yes
18863
Reid Spencera773bd52006-08-04 18:18:08 +000018864 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018865
18866 # Archives containing C++ object files must be created using
18867 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18868 # necessary to make sure instantiated templates are included
18869 # in the archive.
18870 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18871 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018872 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018873 # Green Hills C++ Compiler
18874 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18875
18876 # The C++ compiler must be used to create the archive.
18877 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18878 ;;
18879 *)
18880 # GNU C++ compiler with Solaris linker
18881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18882 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18883 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018884 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 +000018885 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18886 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18887
John Criswell47fdd832003-07-14 16:52:07 +000018888 # Commands to make compiler produce verbose output that lists
18889 # what "hidden" libraries, object files and flags are used when
18890 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018891 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018892 else
18893 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18894 # platform.
18895 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 +000018896 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18897 $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 +000018898
18899 # Commands to make compiler produce verbose output that lists
18900 # what "hidden" libraries, object files and flags are used when
18901 # linking a shared library.
18902 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18903 fi
18904
18905 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18906 fi
18907 ;;
18908 esac
18909 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18911 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018912 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018913 hardcode_shlibpath_var_CXX=no
18914 runpath_var='LD_RUN_PATH'
18915
18916 case $cc_basename in
18917 CC*)
18918 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18919 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18920 ;;
18921 *)
18922 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18923 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18924 ;;
18925 esac
18926 ;;
18927 sysv5* | sco3.2v5* | sco5v6*)
18928 # Note: We can NOT use -z defs as we might desire, because we do not
18929 # link with -lc, and that would cause any symbols used from libc to
18930 # always be unresolved, which means just about no library would
18931 # ever link correctly. If we're not using GNU ld we use -z text
18932 # though, which does catch some bad symbols but isn't as heavy-handed
18933 # as -z defs.
18934 # For security reasons, it is highly recommended that you always
18935 # use absolute paths for naming shared libraries, and exclude the
18936 # DT_RUNPATH tag from executables and libraries. But doing so
18937 # requires that you compile everything twice, which is a pain.
18938 # So that behaviour is only enabled if SCOABSPATH is set to a
18939 # non-empty value in the environment. Most likely only useful for
18940 # creating official distributions of packages.
18941 # This is a hack until libtool officially supports absolute path
18942 # names for shared libraries.
18943 no_undefined_flag_CXX='${wl}-z,text'
18944 allow_undefined_flag_CXX='${wl}-z,nodefs'
18945 archive_cmds_need_lc_CXX=no
18946 hardcode_shlibpath_var_CXX=no
18947 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18948 hardcode_libdir_separator_CXX=':'
18949 link_all_deplibs_CXX=yes
18950 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18951 runpath_var='LD_RUN_PATH'
18952
18953 case $cc_basename in
18954 CC*)
18955 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18956 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18957 ;;
18958 *)
18959 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18960 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18961 ;;
18962 esac
John Criswell47fdd832003-07-14 16:52:07 +000018963 ;;
18964 tandem*)
18965 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018966 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018967 # NonStop-UX NCC 3.20
18968 # FIXME: insert proper C++ library support
18969 ld_shlibs_CXX=no
18970 ;;
18971 *)
18972 # FIXME: insert proper C++ library support
18973 ld_shlibs_CXX=no
18974 ;;
18975 esac
18976 ;;
18977 vxworks*)
18978 # FIXME: insert proper C++ library support
18979 ld_shlibs_CXX=no
18980 ;;
18981 *)
18982 # FIXME: insert proper C++ library support
18983 ld_shlibs_CXX=no
18984 ;;
18985esac
Reid Spencera773bd52006-08-04 18:18:08 +000018986{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18987echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018988test "$ld_shlibs_CXX" = no && can_build_shared=no
18989
18990GCC_CXX="$GXX"
18991LD_CXX="$LD"
18992
John Criswell47fdd832003-07-14 16:52:07 +000018993
18994cat > conftest.$ac_ext <<EOF
18995class Foo
18996{
18997public:
18998 Foo (void) { a = 0; }
18999private:
19000 int a;
19001};
19002EOF
19003
19004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19005 (eval $ac_compile) 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; then
19009 # Parse the compiler output and extract the necessary
19010 # objects, libraries and library flags.
19011
19012 # Sentinel used to keep track of whether or not we are before
19013 # the conftest object file.
19014 pre_test_object_deps_done=no
19015
19016 # The `*' in the case matches for architectures that use `case' in
19017 # $output_verbose_cmd can trigger glob expansion during the loop
19018 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019019 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019020
19021 for p in `eval $output_verbose_link_cmd`; do
19022 case $p in
19023
19024 -L* | -R* | -l*)
19025 # Some compilers place space between "-{L,R}" and the path.
19026 # Remove the space.
19027 if test $p = "-L" \
19028 || test $p = "-R"; then
19029 prev=$p
19030 continue
19031 else
19032 prev=
19033 fi
19034
19035 if test "$pre_test_object_deps_done" = no; then
19036 case $p in
19037 -L* | -R*)
19038 # Internal compiler library paths should come after those
19039 # provided the user. The postdeps already come after the
19040 # user supplied libs so there is no need to process them.
19041 if test -z "$compiler_lib_search_path_CXX"; then
19042 compiler_lib_search_path_CXX="${prev}${p}"
19043 else
19044 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19045 fi
19046 ;;
19047 # The "-l" case would never come before the object being
19048 # linked, so don't bother handling this case.
19049 esac
19050 else
19051 if test -z "$postdeps_CXX"; then
19052 postdeps_CXX="${prev}${p}"
19053 else
19054 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19055 fi
19056 fi
19057 ;;
19058
19059 *.$objext)
19060 # This assumes that the test object file only shows up
19061 # once in the compiler output.
19062 if test "$p" = "conftest.$objext"; then
19063 pre_test_object_deps_done=yes
19064 continue
19065 fi
19066
19067 if test "$pre_test_object_deps_done" = no; then
19068 if test -z "$predep_objects_CXX"; then
19069 predep_objects_CXX="$p"
19070 else
19071 predep_objects_CXX="$predep_objects_CXX $p"
19072 fi
19073 else
19074 if test -z "$postdep_objects_CXX"; then
19075 postdep_objects_CXX="$p"
19076 else
19077 postdep_objects_CXX="$postdep_objects_CXX $p"
19078 fi
19079 fi
19080 ;;
19081
19082 *) ;; # Ignore the rest.
19083
19084 esac
19085 done
19086
19087 # Clean up.
19088 rm -f a.out a.exe
19089else
19090 echo "libtool.m4: error: problem compiling CXX test program"
19091fi
19092
19093$rm -f confest.$objext
19094
Reid Spencera773bd52006-08-04 18:18:08 +000019095# PORTME: override above test on systems where it is broken
19096case $host_os in
19097interix3*)
19098 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19099 # hack all around it, let's just trust "g++" to DTRT.
19100 predep_objects_CXX=
19101 postdep_objects_CXX=
19102 postdeps_CXX=
19103 ;;
19104
19105solaris*)
19106 case $cc_basename in
19107 CC*)
19108 # Adding this requires a known-good setup of shared libraries for
19109 # Sun compiler versions before 5.6, else PIC objects from an old
19110 # archive will be linked into the output, leading to subtle bugs.
19111 postdeps_CXX='-lCstd -lCrun'
19112 ;;
19113 esac
19114 ;;
19115esac
19116
19117
John Criswell47fdd832003-07-14 16:52:07 +000019118case " $postdeps_CXX " in
19119*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19120esac
19121
19122lt_prog_compiler_wl_CXX=
19123lt_prog_compiler_pic_CXX=
19124lt_prog_compiler_static_CXX=
19125
Reid Spencera773bd52006-08-04 18:18:08 +000019126{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19127echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019128
19129 # C++ specific cases for pic, static, wl, etc.
19130 if test "$GXX" = yes; then
19131 lt_prog_compiler_wl_CXX='-Wl,'
19132 lt_prog_compiler_static_CXX='-static'
19133
19134 case $host_os in
19135 aix*)
19136 # All AIX code is PIC.
19137 if test "$host_cpu" = ia64; then
19138 # AIX 5 now supports IA64 processor
19139 lt_prog_compiler_static_CXX='-Bstatic'
19140 fi
19141 ;;
19142 amigaos*)
19143 # FIXME: we need at least 68020 code to build shared libraries, but
19144 # adding the `-m68020' flag to GCC prevents building anything better,
19145 # like `-m68040'.
19146 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19147 ;;
19148 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19149 # PIC is the default for these OSes.
19150 ;;
19151 mingw* | os2* | pw32*)
19152 # This hack is so that the source file can tell whether it is being
19153 # built for inclusion in a dll (and should export symbols for example).
19154 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19155 ;;
19156 darwin* | rhapsody*)
19157 # PIC is the default on this platform
19158 # Common symbols not allowed in MH_DYLIB files
19159 lt_prog_compiler_pic_CXX='-fno-common'
19160 ;;
19161 *djgpp*)
19162 # DJGPP does not support shared libraries at all
19163 lt_prog_compiler_pic_CXX=
19164 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019165 interix3*)
19166 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19167 # Instead, we relocate shared libraries at runtime.
19168 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019169 sysv4*MP*)
19170 if test -d /usr/nec; then
19171 lt_prog_compiler_pic_CXX=-Kconform_pic
19172 fi
19173 ;;
19174 hpux*)
19175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19176 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019177 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019178 hppa*64*|ia64*)
19179 ;;
19180 *)
19181 lt_prog_compiler_pic_CXX='-fPIC'
19182 ;;
19183 esac
19184 ;;
19185 *)
19186 lt_prog_compiler_pic_CXX='-fPIC'
19187 ;;
19188 esac
19189 else
19190 case $host_os in
19191 aix4* | aix5*)
19192 # All AIX code is PIC.
19193 if test "$host_cpu" = ia64; then
19194 # AIX 5 now supports IA64 processor
19195 lt_prog_compiler_static_CXX='-Bstatic'
19196 else
19197 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19198 fi
19199 ;;
19200 chorus*)
19201 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019202 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019203 # Green Hills C++ Compiler
19204 # _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"
19205 ;;
19206 esac
19207 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019208 darwin*)
19209 # PIC is the default on this platform
19210 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019211 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019212 xlc*)
19213 lt_prog_compiler_pic_CXX='-qnocommon'
19214 lt_prog_compiler_wl_CXX='-Wl,'
19215 ;;
19216 esac
19217 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019218 dgux*)
19219 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019220 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019221 lt_prog_compiler_pic_CXX='-KPIC'
19222 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019223 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019224 # Green Hills C++ Compiler
19225 lt_prog_compiler_pic_CXX='-pic'
19226 ;;
19227 *)
19228 ;;
19229 esac
19230 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019231 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019232 # FreeBSD uses GNU C++
19233 ;;
19234 hpux9* | hpux10* | hpux11*)
19235 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019236 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019237 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019238 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019239 if test "$host_cpu" != ia64; then
19240 lt_prog_compiler_pic_CXX='+Z'
19241 fi
19242 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019243 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019244 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019245 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19246 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019247 hppa*64*|ia64*)
19248 # +Z the default
19249 ;;
19250 *)
19251 lt_prog_compiler_pic_CXX='+Z'
19252 ;;
19253 esac
19254 ;;
19255 *)
19256 ;;
19257 esac
19258 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019259 interix*)
19260 # This is c89, which is MS Visual C++ (no shared libs)
19261 # Anyone wants to do a port?
19262 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019263 irix5* | irix6* | nonstopux*)
19264 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019265 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019266 lt_prog_compiler_wl_CXX='-Wl,'
19267 lt_prog_compiler_static_CXX='-non_shared'
19268 # CC pic flag -KPIC is the default.
19269 ;;
19270 *)
19271 ;;
19272 esac
19273 ;;
19274 linux*)
19275 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019276 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019277 # KAI C++ Compiler
19278 lt_prog_compiler_wl_CXX='--backend -Wl,'
19279 lt_prog_compiler_pic_CXX='-fPIC'
19280 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019281 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019282 # Intel C++
19283 lt_prog_compiler_wl_CXX='-Wl,'
19284 lt_prog_compiler_pic_CXX='-KPIC'
19285 lt_prog_compiler_static_CXX='-static'
19286 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019287 pgCC*)
19288 # Portland Group C++ compiler.
19289 lt_prog_compiler_wl_CXX='-Wl,'
19290 lt_prog_compiler_pic_CXX='-fpic'
19291 lt_prog_compiler_static_CXX='-Bstatic'
19292 ;;
19293 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019294 # Compaq C++
19295 # Make sure the PIC flag is empty. It appears that all Alpha
19296 # Linux and Compaq Tru64 Unix objects are PIC.
19297 lt_prog_compiler_pic_CXX=
19298 lt_prog_compiler_static_CXX='-non_shared'
19299 ;;
19300 *)
19301 ;;
19302 esac
19303 ;;
19304 lynxos*)
19305 ;;
19306 m88k*)
19307 ;;
19308 mvs*)
19309 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019310 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019311 lt_prog_compiler_pic_CXX='-W c,exportall'
19312 ;;
19313 *)
19314 ;;
19315 esac
19316 ;;
19317 netbsd*)
19318 ;;
19319 osf3* | osf4* | osf5*)
19320 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019321 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019322 lt_prog_compiler_wl_CXX='--backend -Wl,'
19323 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019324 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019325 # Rational C++ 2.4.1
19326 lt_prog_compiler_pic_CXX='-pic'
19327 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019328 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019329 # Digital/Compaq C++
19330 lt_prog_compiler_wl_CXX='-Wl,'
19331 # Make sure the PIC flag is empty. It appears that all Alpha
19332 # Linux and Compaq Tru64 Unix objects are PIC.
19333 lt_prog_compiler_pic_CXX=
19334 lt_prog_compiler_static_CXX='-non_shared'
19335 ;;
19336 *)
19337 ;;
19338 esac
19339 ;;
19340 psos*)
19341 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019342 solaris*)
19343 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019344 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019345 # Sun C++ 4.2, 5.x and Centerline C++
19346 lt_prog_compiler_pic_CXX='-KPIC'
19347 lt_prog_compiler_static_CXX='-Bstatic'
19348 lt_prog_compiler_wl_CXX='-Qoption ld '
19349 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019350 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019351 # Green Hills C++ Compiler
19352 lt_prog_compiler_pic_CXX='-PIC'
19353 ;;
19354 *)
19355 ;;
19356 esac
19357 ;;
19358 sunos4*)
19359 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019360 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019361 # Sun C++ 4.x
19362 lt_prog_compiler_pic_CXX='-pic'
19363 lt_prog_compiler_static_CXX='-Bstatic'
19364 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019365 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019366 # Lucid
19367 lt_prog_compiler_pic_CXX='-pic'
19368 ;;
19369 *)
19370 ;;
19371 esac
19372 ;;
19373 tandem*)
19374 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019375 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019376 # NonStop-UX NCC 3.20
19377 lt_prog_compiler_pic_CXX='-KPIC'
19378 ;;
19379 *)
19380 ;;
19381 esac
19382 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19384 case $cc_basename in
19385 CC*)
19386 lt_prog_compiler_wl_CXX='-Wl,'
19387 lt_prog_compiler_pic_CXX='-KPIC'
19388 lt_prog_compiler_static_CXX='-Bstatic'
19389 ;;
19390 esac
John Criswell47fdd832003-07-14 16:52:07 +000019391 ;;
19392 vxworks*)
19393 ;;
19394 *)
19395 lt_prog_compiler_can_build_shared_CXX=no
19396 ;;
19397 esac
19398 fi
19399
Reid Spencera773bd52006-08-04 18:18:08 +000019400{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19401echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019402
19403#
19404# Check to make sure the PIC flag actually works.
19405#
19406if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019407
Reid Spencera773bd52006-08-04 18:18:08 +000019408{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19409echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019410if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19412else
19413 lt_prog_compiler_pic_works_CXX=no
19414 ac_outfile=conftest.$ac_objext
19415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19416 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19417 # Insert the option either (1) after the last *FLAGS variable, or
19418 # (2) before a word containing "conftest.", or (3) at the end.
19419 # Note that $ac_compile itself does not contain backslashes and begins
19420 # with a dollar sign (not a hyphen), so the echo should work correctly.
19421 # The option is referenced via a variable to avoid confusing sed.
19422 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19425 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb2ed05262006-11-03 18:04:08 +000019426 (eval echo "\"\$as_me:19426: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019427 (eval "$lt_compile" 2>conftest.err)
19428 ac_status=$?
19429 cat conftest.err >&5
Reid Spencerb2ed05262006-11-03 18:04:08 +000019430 echo "$as_me:19430: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019431 if (exit $ac_status) && test -s "$ac_outfile"; then
19432 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019433 # So say no if there are warnings other than the usual output.
19434 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019437 lt_prog_compiler_pic_works_CXX=yes
19438 fi
19439 fi
19440 $rm conftest*
19441
19442fi
Reid Spencera773bd52006-08-04 18:18:08 +000019443{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19444echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019445
19446if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19447 case $lt_prog_compiler_pic_CXX in
19448 "" | " "*) ;;
19449 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19450 esac
19451else
19452 lt_prog_compiler_pic_CXX=
19453 lt_prog_compiler_can_build_shared_CXX=no
19454fi
19455
19456fi
Reid Spencera773bd52006-08-04 18:18:08 +000019457case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019458 # For platforms which do not support PIC, -DPIC is meaningless:
19459 *djgpp*)
19460 lt_prog_compiler_pic_CXX=
19461 ;;
19462 *)
19463 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19464 ;;
19465esac
19466
Reid Spencera773bd52006-08-04 18:18:08 +000019467#
19468# Check to make sure the static flag actually works.
19469#
19470wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19471{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19472echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19473if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475else
19476 lt_prog_compiler_static_works_CXX=no
19477 save_LDFLAGS="$LDFLAGS"
19478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19479 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19481 # The linker can only warn and ignore the option if not recognized
19482 # So say no if there are warnings
19483 if test -s conftest.err; then
19484 # Append any errors to the config.log.
19485 cat conftest.err 1>&5
19486 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19488 if diff conftest.exp conftest.er2 >/dev/null; then
19489 lt_prog_compiler_static_works_CXX=yes
19490 fi
19491 else
19492 lt_prog_compiler_static_works_CXX=yes
19493 fi
19494 fi
19495 $rm conftest*
19496 LDFLAGS="$save_LDFLAGS"
19497
19498fi
19499{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19500echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19501
19502if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19503 :
19504else
19505 lt_prog_compiler_static_CXX=
19506fi
19507
19508
19509{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19510echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019511if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19513else
19514 lt_cv_prog_compiler_c_o_CXX=no
19515 $rm -r conftest 2>/dev/null
19516 mkdir conftest
19517 cd conftest
19518 mkdir out
19519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19520
John Criswell47fdd832003-07-14 16:52:07 +000019521 lt_compiler_flag="-o out/conftest2.$ac_objext"
19522 # Insert the option either (1) after the last *FLAGS variable, or
19523 # (2) before a word containing "conftest.", or (3) at the end.
19524 # Note that $ac_compile itself does not contain backslashes and begins
19525 # with a dollar sign (not a hyphen), so the echo should work correctly.
19526 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19529 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb2ed05262006-11-03 18:04:08 +000019530 (eval echo "\"\$as_me:19530: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019531 (eval "$lt_compile" 2>out/conftest.err)
19532 ac_status=$?
19533 cat out/conftest.err >&5
Reid Spencerb2ed05262006-11-03 18:04:08 +000019534 echo "$as_me:19534: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19536 then
19537 # The compiler can only warn and ignore the option if not recognized
19538 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019542 lt_cv_prog_compiler_c_o_CXX=yes
19543 fi
19544 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019545 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019546 $rm conftest*
19547 # SGI C++ compiler will create directory out/ii_files/ for
19548 # template instantiation
19549 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19550 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019551 cd ..
19552 rmdir conftest
19553 $rm conftest*
19554
19555fi
Reid Spencera773bd52006-08-04 18:18:08 +000019556{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19557echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019558
19559
19560hard_links="nottested"
19561if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19562 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019563 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19564echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019565 hard_links=yes
19566 $rm conftest*
19567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19568 touch conftest.a
19569 ln conftest.a conftest.b 2>&5 || hard_links=no
19570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019571 { echo "$as_me:$LINENO: result: $hard_links" >&5
19572echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019573 if test "$hard_links" = no; then
19574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19575echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19576 need_locks=warn
19577 fi
19578else
19579 need_locks=no
19580fi
19581
Reid Spencera773bd52006-08-04 18:18:08 +000019582{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19583echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019584
19585 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19586 case $host_os in
19587 aix4* | aix5*)
19588 # If we're using GNU nm, then we don't want the "-C" option.
19589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19591 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'
19592 else
19593 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'
19594 fi
19595 ;;
19596 pw32*)
19597 export_symbols_cmds_CXX="$ltdll_cmds"
19598 ;;
19599 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019600 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 +000019601 ;;
19602 *)
19603 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19604 ;;
19605 esac
19606
Reid Spencera773bd52006-08-04 18:18:08 +000019607{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19608echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019609test "$ld_shlibs_CXX" = no && can_build_shared=no
19610
John Criswell47fdd832003-07-14 16:52:07 +000019611#
19612# Do we need to explicitly link libc?
19613#
19614case "x$archive_cmds_need_lc_CXX" in
19615x|xyes)
19616 # Assume -lc should be added
19617 archive_cmds_need_lc_CXX=yes
19618
19619 if test "$enable_shared" = yes && test "$GCC" = yes; then
19620 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019621 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019622 # FIXME: we may have to deal with multi-command sequences.
19623 ;;
19624 '$CC '*)
19625 # Test whether the compiler implicitly links with -lc since on some
19626 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19627 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019628 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19629echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019630 $rm conftest*
19631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19632
19633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634 (eval $ac_compile) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } 2>conftest.err; then
19638 soname=conftest
19639 lib=conftest
19640 libobjs=conftest.$ac_objext
19641 deplibs=
19642 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019643 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019644 compiler_flags=-v
19645 linker_flags=-v
19646 verstring=
19647 output_objdir=.
19648 libname=conftest
19649 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19650 allow_undefined_flag_CXX=
19651 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19652 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }
19656 then
19657 archive_cmds_need_lc_CXX=no
19658 else
19659 archive_cmds_need_lc_CXX=yes
19660 fi
19661 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19662 else
19663 cat conftest.err 1>&5
19664 fi
19665 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019666 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19667echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019668 ;;
19669 esac
19670 fi
19671 ;;
19672esac
19673
Reid Spencera773bd52006-08-04 18:18:08 +000019674{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19675echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019676library_names_spec=
19677libname_spec='lib$name'
19678soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019679shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019680postinstall_cmds=
19681postuninstall_cmds=
19682finish_cmds=
19683finish_eval=
19684shlibpath_var=
19685shlibpath_overrides_runpath=unknown
19686version_type=none
19687dynamic_linker="$host_os ld.so"
19688sys_lib_dlsearch_path_spec="/lib /usr/lib"
19689if test "$GCC" = yes; then
19690 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19691 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19692 # if the path contains ";" then we assume it to be the separator
19693 # otherwise default to the standard path separator (i.e. ":") - it is
19694 # assumed that no part of a normal pathname contains ";" but that should
19695 # okay in the real world where ";" in dirpaths is itself problematic.
19696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19697 else
19698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19699 fi
19700else
19701 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19702fi
19703need_lib_prefix=unknown
19704hardcode_into_libs=no
19705
19706# when you set need_version to no, make sure it does not cause -set_version
19707# flags to be left without arguments
19708need_version=unknown
19709
19710case $host_os in
19711aix3*)
19712 version_type=linux
19713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19714 shlibpath_var=LIBPATH
19715
19716 # AIX 3 has no versioning support, so we append a major version to the name.
19717 soname_spec='${libname}${release}${shared_ext}$major'
19718 ;;
19719
19720aix4* | aix5*)
19721 version_type=linux
19722 need_lib_prefix=no
19723 need_version=no
19724 hardcode_into_libs=yes
19725 if test "$host_cpu" = ia64; then
19726 # AIX 5 supports IA64
19727 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19728 shlibpath_var=LD_LIBRARY_PATH
19729 else
19730 # With GCC up to 2.95.x, collect2 would create an import file
19731 # for dependence libraries. The import file would start with
19732 # the line `#! .'. This would cause the generated library to
19733 # depend on `.', always an invalid library. This was fixed in
19734 # development snapshots of GCC prior to 3.0.
19735 case $host_os in
19736 aix4 | aix4.[01] | aix4.[01].*)
19737 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19738 echo ' yes '
19739 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19740 :
19741 else
19742 can_build_shared=no
19743 fi
19744 ;;
19745 esac
19746 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19747 # soname into executable. Probably we can add versioning support to
19748 # collect2, so additional links can be useful in future.
19749 if test "$aix_use_runtimelinking" = yes; then
19750 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19751 # instead of lib<name>.a to let people know that these are not
19752 # typical AIX shared libraries.
19753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19754 else
19755 # We preserve .a as extension for shared libraries through AIX4.2
19756 # and later when we are not doing run time linking.
19757 library_names_spec='${libname}${release}.a $libname.a'
19758 soname_spec='${libname}${release}${shared_ext}$major'
19759 fi
19760 shlibpath_var=LIBPATH
19761 fi
19762 ;;
19763
19764amigaos*)
19765 library_names_spec='$libname.ixlibrary $libname.a'
19766 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019767 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 +000019768 ;;
19769
19770beos*)
19771 library_names_spec='${libname}${shared_ext}'
19772 dynamic_linker="$host_os ld.so"
19773 shlibpath_var=LIBRARY_PATH
19774 ;;
19775
Reid Spencer2706f8c2004-09-19 23:53:36 +000019776bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019777 version_type=linux
19778 need_version=no
19779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19780 soname_spec='${libname}${release}${shared_ext}$major'
19781 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19782 shlibpath_var=LD_LIBRARY_PATH
19783 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19784 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19785 # the default ld.so.conf also contains /usr/contrib/lib and
19786 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19787 # libtool to hard-code these into programs
19788 ;;
19789
19790cygwin* | mingw* | pw32*)
19791 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019792 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019793 need_version=no
19794 need_lib_prefix=no
19795
19796 case $GCC,$host_os in
19797 yes,cygwin* | yes,mingw* | yes,pw32*)
19798 library_names_spec='$libname.dll.a'
19799 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019800 postinstall_cmds='base_file=`basename \${file}`~
19801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19802 dldir=$destdir/`dirname \$dlpath`~
19803 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019804 $install_prog $dir/$dlname \$dldir/$dlname~
19805 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19807 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019808 $rm \$dlpath'
19809 shlibpath_overrides_runpath=yes
19810
19811 case $host_os in
19812 cygwin*)
19813 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19814 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 +000019815 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019816 ;;
19817 mingw*)
19818 # MinGW DLLs use traditional 'lib' prefix
19819 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19820 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19821 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19822 # It is most probably a Windows format PATH printed by
19823 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19824 # path with ; separators, and with drive letters. We can handle the
19825 # drive letters (cygwin fileutils understands them), so leave them,
19826 # especially as we might pass files found there to a mingw objdump,
19827 # which wouldn't understand a cygwinified path. Ahh.
19828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19829 else
19830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19831 fi
19832 ;;
19833 pw32*)
19834 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019835 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 +000019836 ;;
19837 esac
19838 ;;
19839
19840 *)
19841 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19842 ;;
19843 esac
19844 dynamic_linker='Win32 ld.exe'
19845 # FIXME: first we should search . and the directory the executable is in
19846 shlibpath_var=PATH
19847 ;;
19848
19849darwin* | rhapsody*)
19850 dynamic_linker="$host_os dyld"
19851 version_type=darwin
19852 need_lib_prefix=no
19853 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019854 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019855 soname_spec='${libname}${release}${major}$shared_ext'
19856 shlibpath_overrides_runpath=yes
19857 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019858 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019859 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019860 if test "$GCC" = yes; then
19861 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"`
19862 else
19863 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019864 fi
19865 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19866 ;;
19867
19868dgux*)
19869 version_type=linux
19870 need_lib_prefix=no
19871 need_version=no
19872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19873 soname_spec='${libname}${release}${shared_ext}$major'
19874 shlibpath_var=LD_LIBRARY_PATH
19875 ;;
19876
19877freebsd1*)
19878 dynamic_linker=no
19879 ;;
19880
Reid Spencer2706f8c2004-09-19 23:53:36 +000019881kfreebsd*-gnu)
19882 version_type=linux
19883 need_lib_prefix=no
19884 need_version=no
19885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19886 soname_spec='${libname}${release}${shared_ext}$major'
19887 shlibpath_var=LD_LIBRARY_PATH
19888 shlibpath_overrides_runpath=no
19889 hardcode_into_libs=yes
19890 dynamic_linker='GNU ld.so'
19891 ;;
19892
Reid Spencera773bd52006-08-04 18:18:08 +000019893freebsd* | dragonfly*)
19894 # DragonFly does not have aout. When/if they implement a new
19895 # versioning mechanism, adjust this.
19896 if test -x /usr/bin/objformat; then
19897 objformat=`/usr/bin/objformat`
19898 else
19899 case $host_os in
19900 freebsd[123]*) objformat=aout ;;
19901 *) objformat=elf ;;
19902 esac
19903 fi
John Criswell47fdd832003-07-14 16:52:07 +000019904 version_type=freebsd-$objformat
19905 case $version_type in
19906 freebsd-elf*)
19907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19908 need_version=no
19909 need_lib_prefix=no
19910 ;;
19911 freebsd-*)
19912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19913 need_version=yes
19914 ;;
19915 esac
19916 shlibpath_var=LD_LIBRARY_PATH
19917 case $host_os in
19918 freebsd2*)
19919 shlibpath_overrides_runpath=yes
19920 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019921 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019922 shlibpath_overrides_runpath=yes
19923 hardcode_into_libs=yes
19924 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019925 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19926 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019927 shlibpath_overrides_runpath=no
19928 hardcode_into_libs=yes
19929 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019930 freebsd*) # from 4.6 on
19931 shlibpath_overrides_runpath=yes
19932 hardcode_into_libs=yes
19933 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019934 esac
19935 ;;
19936
19937gnu*)
19938 version_type=linux
19939 need_lib_prefix=no
19940 need_version=no
19941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19942 soname_spec='${libname}${release}${shared_ext}$major'
19943 shlibpath_var=LD_LIBRARY_PATH
19944 hardcode_into_libs=yes
19945 ;;
19946
19947hpux9* | hpux10* | hpux11*)
19948 # Give a soname corresponding to the major version so that dld.sl refuses to
19949 # link against other versions.
19950 version_type=sunos
19951 need_lib_prefix=no
19952 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019953 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019954 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019955 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019956 hardcode_into_libs=yes
19957 dynamic_linker="$host_os dld.so"
19958 shlibpath_var=LD_LIBRARY_PATH
19959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19961 soname_spec='${libname}${release}${shared_ext}$major'
19962 if test "X$HPUX_IA64_MODE" = X32; then
19963 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19964 else
19965 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19966 fi
19967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19968 ;;
19969 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019970 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019971 hardcode_into_libs=yes
19972 dynamic_linker="$host_os dld.sl"
19973 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19976 soname_spec='${libname}${release}${shared_ext}$major'
19977 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19979 ;;
19980 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019981 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019982 dynamic_linker="$host_os dld.sl"
19983 shlibpath_var=SHLIB_PATH
19984 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
19988 esac
19989 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19990 postinstall_cmds='chmod 555 $lib'
19991 ;;
19992
Reid Spencera773bd52006-08-04 18:18:08 +000019993interix3*)
19994 version_type=linux
19995 need_lib_prefix=no
19996 need_version=no
19997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19998 soname_spec='${libname}${release}${shared_ext}$major'
19999 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20000 shlibpath_var=LD_LIBRARY_PATH
20001 shlibpath_overrides_runpath=no
20002 hardcode_into_libs=yes
20003 ;;
20004
John Criswell47fdd832003-07-14 16:52:07 +000020005irix5* | irix6* | nonstopux*)
20006 case $host_os in
20007 nonstopux*) version_type=nonstopux ;;
20008 *)
20009 if test "$lt_cv_prog_gnu_ld" = yes; then
20010 version_type=linux
20011 else
20012 version_type=irix
20013 fi ;;
20014 esac
20015 need_lib_prefix=no
20016 need_version=no
20017 soname_spec='${libname}${release}${shared_ext}$major'
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20019 case $host_os in
20020 irix5* | nonstopux*)
20021 libsuff= shlibsuff=
20022 ;;
20023 *)
20024 case $LD in # libtool.m4 will add one of these switches to LD
20025 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20026 libsuff= shlibsuff= libmagic=32-bit;;
20027 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20028 libsuff=32 shlibsuff=N32 libmagic=N32;;
20029 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20030 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20031 *) libsuff= shlibsuff= libmagic=never-match;;
20032 esac
20033 ;;
20034 esac
20035 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20036 shlibpath_overrides_runpath=no
20037 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20038 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20039 hardcode_into_libs=yes
20040 ;;
20041
20042# No shared lib support for Linux oldld, aout, or coff.
20043linux*oldld* | linux*aout* | linux*coff*)
20044 dynamic_linker=no
20045 ;;
20046
20047# This must be Linux ELF.
20048linux*)
20049 version_type=linux
20050 need_lib_prefix=no
20051 need_version=no
20052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20053 soname_spec='${libname}${release}${shared_ext}$major'
20054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20055 shlibpath_var=LD_LIBRARY_PATH
20056 shlibpath_overrides_runpath=no
20057 # This implies no fast_install, which is unacceptable.
20058 # Some rework will be needed to allow for fast_install
20059 # before this can be enabled.
20060 hardcode_into_libs=yes
20061
Reid Spencer2706f8c2004-09-19 23:53:36 +000020062 # Append ld.so.conf contents to the search path
20063 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020064 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 +000020065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20066 fi
20067
John Criswell47fdd832003-07-14 16:52:07 +000020068 # We used to test for /lib/ld.so.1 and disable shared libraries on
20069 # powerpc, because MkLinux only supported shared libraries with the
20070 # GNU dynamic linker. Since this was broken with cross compilers,
20071 # most powerpc-linux boxes support dynamic linking these days and
20072 # people can always --disable-shared, the test was removed, and we
20073 # assume the GNU/Linux dynamic linker is in use.
20074 dynamic_linker='GNU/Linux ld.so'
20075 ;;
20076
Reid Spencer2706f8c2004-09-19 23:53:36 +000020077knetbsd*-gnu)
20078 version_type=linux
20079 need_lib_prefix=no
20080 need_version=no
20081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20082 soname_spec='${libname}${release}${shared_ext}$major'
20083 shlibpath_var=LD_LIBRARY_PATH
20084 shlibpath_overrides_runpath=no
20085 hardcode_into_libs=yes
20086 dynamic_linker='GNU ld.so'
20087 ;;
20088
John Criswell47fdd832003-07-14 16:52:07 +000020089netbsd*)
20090 version_type=sunos
20091 need_lib_prefix=no
20092 need_version=no
20093 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20096 dynamic_linker='NetBSD (a.out) ld.so'
20097 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020099 soname_spec='${libname}${release}${shared_ext}$major'
20100 dynamic_linker='NetBSD ld.elf_so'
20101 fi
20102 shlibpath_var=LD_LIBRARY_PATH
20103 shlibpath_overrides_runpath=yes
20104 hardcode_into_libs=yes
20105 ;;
20106
20107newsos6)
20108 version_type=linux
20109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20110 shlibpath_var=LD_LIBRARY_PATH
20111 shlibpath_overrides_runpath=yes
20112 ;;
20113
Reid Spencer2706f8c2004-09-19 23:53:36 +000020114nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020115 version_type=linux
20116 need_lib_prefix=no
20117 need_version=no
20118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20119 soname_spec='${libname}${release}${shared_ext}$major'
20120 shlibpath_var=LD_LIBRARY_PATH
20121 shlibpath_overrides_runpath=yes
20122 ;;
20123
20124openbsd*)
20125 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020126 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020127 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020128 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20129 case $host_os in
20130 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20131 *) need_version=no ;;
20132 esac
John Criswell47fdd832003-07-14 16:52:07 +000020133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20135 shlibpath_var=LD_LIBRARY_PATH
20136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20137 case $host_os in
20138 openbsd2.[89] | openbsd2.[89].*)
20139 shlibpath_overrides_runpath=no
20140 ;;
20141 *)
20142 shlibpath_overrides_runpath=yes
20143 ;;
20144 esac
20145 else
20146 shlibpath_overrides_runpath=yes
20147 fi
20148 ;;
20149
20150os2*)
20151 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020152 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020153 need_lib_prefix=no
20154 library_names_spec='$libname${shared_ext} $libname.a'
20155 dynamic_linker='OS/2 ld.exe'
20156 shlibpath_var=LIBPATH
20157 ;;
20158
20159osf3* | osf4* | osf5*)
20160 version_type=osf
20161 need_lib_prefix=no
20162 need_version=no
20163 soname_spec='${libname}${release}${shared_ext}$major'
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165 shlibpath_var=LD_LIBRARY_PATH
20166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20168 ;;
20169
John Criswell47fdd832003-07-14 16:52:07 +000020170solaris*)
20171 version_type=linux
20172 need_lib_prefix=no
20173 need_version=no
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20175 soname_spec='${libname}${release}${shared_ext}$major'
20176 shlibpath_var=LD_LIBRARY_PATH
20177 shlibpath_overrides_runpath=yes
20178 hardcode_into_libs=yes
20179 # ldd complains unless libraries are executable
20180 postinstall_cmds='chmod +x $lib'
20181 ;;
20182
20183sunos4*)
20184 version_type=sunos
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20186 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20187 shlibpath_var=LD_LIBRARY_PATH
20188 shlibpath_overrides_runpath=yes
20189 if test "$with_gnu_ld" = yes; then
20190 need_lib_prefix=no
20191 fi
20192 need_version=yes
20193 ;;
20194
Reid Spencera773bd52006-08-04 18:18:08 +000020195sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020196 version_type=linux
20197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20198 soname_spec='${libname}${release}${shared_ext}$major'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 case $host_vendor in
20201 sni)
20202 shlibpath_overrides_runpath=no
20203 need_lib_prefix=no
20204 export_dynamic_flag_spec='${wl}-Blargedynsym'
20205 runpath_var=LD_RUN_PATH
20206 ;;
20207 siemens)
20208 need_lib_prefix=no
20209 ;;
20210 motorola)
20211 need_lib_prefix=no
20212 need_version=no
20213 shlibpath_overrides_runpath=no
20214 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20215 ;;
20216 esac
20217 ;;
20218
20219sysv4*MP*)
20220 if test -d /usr/nec ;then
20221 version_type=linux
20222 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20223 soname_spec='$libname${shared_ext}.$major'
20224 shlibpath_var=LD_LIBRARY_PATH
20225 fi
20226 ;;
20227
Reid Spencera773bd52006-08-04 18:18:08 +000020228sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20229 version_type=freebsd-elf
20230 need_lib_prefix=no
20231 need_version=no
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 shlibpath_var=LD_LIBRARY_PATH
20235 hardcode_into_libs=yes
20236 if test "$with_gnu_ld" = yes; then
20237 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20238 shlibpath_overrides_runpath=no
20239 else
20240 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20241 shlibpath_overrides_runpath=yes
20242 case $host_os in
20243 sco3.2v5*)
20244 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20245 ;;
20246 esac
20247 fi
20248 sys_lib_dlsearch_path_spec='/usr/lib'
20249 ;;
20250
John Criswell47fdd832003-07-14 16:52:07 +000020251uts4*)
20252 version_type=linux
20253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254 soname_spec='${libname}${release}${shared_ext}$major'
20255 shlibpath_var=LD_LIBRARY_PATH
20256 ;;
20257
20258*)
20259 dynamic_linker=no
20260 ;;
20261esac
Reid Spencera773bd52006-08-04 18:18:08 +000020262{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20263echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020264test "$dynamic_linker" = no && can_build_shared=no
20265
Reid Spencera773bd52006-08-04 18:18:08 +000020266variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20267if test "$GCC" = yes; then
20268 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20269fi
20270
20271{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20272echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020273hardcode_action_CXX=
20274if test -n "$hardcode_libdir_flag_spec_CXX" || \
20275 test -n "$runpath_var_CXX" || \
20276 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20277
20278 # We can hardcode non-existant directories.
20279 if test "$hardcode_direct_CXX" != no &&
20280 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20281 # have to relink, otherwise we might link with an installed library
20282 # when we should be linking with a yet-to-be-installed one
20283 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20284 test "$hardcode_minus_L_CXX" != no; then
20285 # Linking always hardcodes the temporary library directory.
20286 hardcode_action_CXX=relink
20287 else
20288 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20289 hardcode_action_CXX=immediate
20290 fi
20291else
20292 # We cannot hardcode anything, or else we can only hardcode existing
20293 # directories.
20294 hardcode_action_CXX=unsupported
20295fi
Reid Spencera773bd52006-08-04 18:18:08 +000020296{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20297echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020298
20299if test "$hardcode_action_CXX" = relink; then
20300 # Fast installation is not supported
20301 enable_fast_install=no
20302elif test "$shlibpath_overrides_runpath" = yes ||
20303 test "$enable_shared" = no; then
20304 # Fast installation is not necessary
20305 enable_fast_install=needless
20306fi
20307
John Criswell47fdd832003-07-14 16:52:07 +000020308
20309# The else clause should only fire when bootstrapping the
20310# libtool distribution, otherwise you forgot to ship ltmain.sh
20311# with your package, and you will get complaints that there are
20312# no rules to generate ltmain.sh.
20313if test -f "$ltmain"; then
20314 # See if we are running on zsh, and set the options which allow our commands through
20315 # without removal of \ escapes.
20316 if test -n "${ZSH_VERSION+set}" ; then
20317 setopt NO_GLOB_SUBST
20318 fi
20319 # Now quote all the things that may contain metacharacters while being
20320 # careful not to overquote the AC_SUBSTed values. We take copies of the
20321 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020322 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 +000020323 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020324 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20325 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20326 deplibs_check_method reload_flag reload_cmds need_locks \
20327 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20328 lt_cv_sys_global_symbol_to_c_name_address \
20329 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20330 old_postinstall_cmds old_postuninstall_cmds \
20331 compiler_CXX \
20332 CC_CXX \
20333 LD_CXX \
20334 lt_prog_compiler_wl_CXX \
20335 lt_prog_compiler_pic_CXX \
20336 lt_prog_compiler_static_CXX \
20337 lt_prog_compiler_no_builtin_flag_CXX \
20338 export_dynamic_flag_spec_CXX \
20339 thread_safe_flag_spec_CXX \
20340 whole_archive_flag_spec_CXX \
20341 enable_shared_with_static_runtimes_CXX \
20342 old_archive_cmds_CXX \
20343 old_archive_from_new_cmds_CXX \
20344 predep_objects_CXX \
20345 postdep_objects_CXX \
20346 predeps_CXX \
20347 postdeps_CXX \
20348 compiler_lib_search_path_CXX \
20349 archive_cmds_CXX \
20350 archive_expsym_cmds_CXX \
20351 postinstall_cmds_CXX \
20352 postuninstall_cmds_CXX \
20353 old_archive_from_expsyms_cmds_CXX \
20354 allow_undefined_flag_CXX \
20355 no_undefined_flag_CXX \
20356 export_symbols_cmds_CXX \
20357 hardcode_libdir_flag_spec_CXX \
20358 hardcode_libdir_flag_spec_ld_CXX \
20359 hardcode_libdir_separator_CXX \
20360 hardcode_automatic_CXX \
20361 module_cmds_CXX \
20362 module_expsym_cmds_CXX \
20363 lt_cv_prog_compiler_c_o_CXX \
20364 exclude_expsyms_CXX \
20365 include_expsyms_CXX; do
20366
20367 case $var in
20368 old_archive_cmds_CXX | \
20369 old_archive_from_new_cmds_CXX | \
20370 archive_cmds_CXX | \
20371 archive_expsym_cmds_CXX | \
20372 module_cmds_CXX | \
20373 module_expsym_cmds_CXX | \
20374 old_archive_from_expsyms_cmds_CXX | \
20375 export_symbols_cmds_CXX | \
20376 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20377 postinstall_cmds | postuninstall_cmds | \
20378 old_postinstall_cmds | old_postuninstall_cmds | \
20379 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20380 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020381 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 +000020382 ;;
20383 *)
20384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20385 ;;
20386 esac
20387 done
20388
20389 case $lt_echo in
20390 *'\$0 --fallback-echo"')
20391 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20392 ;;
20393 esac
20394
20395cfgfile="$ofile"
20396
20397 cat <<__EOF__ >> "$cfgfile"
20398# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20399
20400# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20401
20402# Shell to use when invoking shell scripts.
20403SHELL=$lt_SHELL
20404
20405# Whether or not to build shared libraries.
20406build_libtool_libs=$enable_shared
20407
20408# Whether or not to build static libraries.
20409build_old_libs=$enable_static
20410
20411# Whether or not to add -lc for building shared libraries.
20412build_libtool_need_lc=$archive_cmds_need_lc_CXX
20413
20414# Whether or not to disallow shared libs when runtime libs are static
20415allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20416
20417# Whether or not to optimize for fast installation.
20418fast_install=$enable_fast_install
20419
20420# The host system.
20421host_alias=$host_alias
20422host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020423host_os=$host_os
20424
20425# The build system.
20426build_alias=$build_alias
20427build=$build
20428build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020429
20430# An echo program that does not interpret backslashes.
20431echo=$lt_echo
20432
20433# The archiver.
20434AR=$lt_AR
20435AR_FLAGS=$lt_AR_FLAGS
20436
20437# A C compiler.
20438LTCC=$lt_LTCC
20439
Reid Spencera773bd52006-08-04 18:18:08 +000020440# LTCC compiler flags.
20441LTCFLAGS=$lt_LTCFLAGS
20442
John Criswell47fdd832003-07-14 16:52:07 +000020443# A language-specific compiler.
20444CC=$lt_compiler_CXX
20445
20446# Is the compiler the GNU C compiler?
20447with_gcc=$GCC_CXX
20448
20449# An ERE matcher.
20450EGREP=$lt_EGREP
20451
20452# The linker used to build libraries.
20453LD=$lt_LD_CXX
20454
20455# Whether we need hard or soft links.
20456LN_S=$lt_LN_S
20457
20458# A BSD-compatible nm program.
20459NM=$lt_NM
20460
20461# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020462STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020463
20464# Used to examine libraries when file_magic_cmd begins "file"
20465MAGIC_CMD=$MAGIC_CMD
20466
20467# Used on cygwin: DLL creation program.
20468DLLTOOL="$DLLTOOL"
20469
20470# Used on cygwin: object dumper.
20471OBJDUMP="$OBJDUMP"
20472
20473# Used on cygwin: assembler.
20474AS="$AS"
20475
20476# The name of the directory that contains temporary libtool files.
20477objdir=$objdir
20478
20479# How to create reloadable object files.
20480reload_flag=$lt_reload_flag
20481reload_cmds=$lt_reload_cmds
20482
20483# How to pass a linker flag through the compiler.
20484wl=$lt_lt_prog_compiler_wl_CXX
20485
20486# Object file suffix (normally "o").
20487objext="$ac_objext"
20488
20489# Old archive suffix (normally "a").
20490libext="$libext"
20491
20492# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020493shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020494
20495# Executable file suffix (normally "").
20496exeext="$exeext"
20497
20498# Additional compiler flags for building library objects.
20499pic_flag=$lt_lt_prog_compiler_pic_CXX
20500pic_mode=$pic_mode
20501
20502# What is the maximum length of a command?
20503max_cmd_len=$lt_cv_sys_max_cmd_len
20504
20505# Does compiler simultaneously support -c and -o options?
20506compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20507
Reid Spencera773bd52006-08-04 18:18:08 +000020508# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020509need_locks=$lt_need_locks
20510
20511# Do we need the lib prefix for modules?
20512need_lib_prefix=$need_lib_prefix
20513
20514# Do we need a version for libraries?
20515need_version=$need_version
20516
20517# Whether dlopen is supported.
20518dlopen_support=$enable_dlopen
20519
20520# Whether dlopen of programs is supported.
20521dlopen_self=$enable_dlopen_self
20522
20523# Whether dlopen of statically linked programs is supported.
20524dlopen_self_static=$enable_dlopen_self_static
20525
20526# Compiler flag to prevent dynamic linking.
20527link_static_flag=$lt_lt_prog_compiler_static_CXX
20528
20529# Compiler flag to turn off builtin functions.
20530no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20531
20532# Compiler flag to allow reflexive dlopens.
20533export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20534
20535# Compiler flag to generate shared objects directly from archives.
20536whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20537
20538# Compiler flag to generate thread-safe objects.
20539thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20540
20541# Library versioning type.
20542version_type=$version_type
20543
20544# Format of library name prefix.
20545libname_spec=$lt_libname_spec
20546
20547# List of archive names. First name is the real one, the rest are links.
20548# The last name is the one that the linker finds with -lNAME.
20549library_names_spec=$lt_library_names_spec
20550
20551# The coded name of the library, if different from the real name.
20552soname_spec=$lt_soname_spec
20553
20554# Commands used to build and install an old-style archive.
20555RANLIB=$lt_RANLIB
20556old_archive_cmds=$lt_old_archive_cmds_CXX
20557old_postinstall_cmds=$lt_old_postinstall_cmds
20558old_postuninstall_cmds=$lt_old_postuninstall_cmds
20559
20560# Create an old-style archive from a shared archive.
20561old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20562
20563# Create a temporary old-style archive to link instead of a shared archive.
20564old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20565
20566# Commands used to build and install a shared archive.
20567archive_cmds=$lt_archive_cmds_CXX
20568archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20569postinstall_cmds=$lt_postinstall_cmds
20570postuninstall_cmds=$lt_postuninstall_cmds
20571
20572# Commands used to build a loadable module (assumed same as above if empty)
20573module_cmds=$lt_module_cmds_CXX
20574module_expsym_cmds=$lt_module_expsym_cmds_CXX
20575
20576# Commands to strip libraries.
20577old_striplib=$lt_old_striplib
20578striplib=$lt_striplib
20579
20580# Dependencies to place before the objects being linked to create a
20581# shared library.
20582predep_objects=$lt_predep_objects_CXX
20583
20584# Dependencies to place after the objects being linked to create a
20585# shared library.
20586postdep_objects=$lt_postdep_objects_CXX
20587
20588# Dependencies to place before the objects being linked to create a
20589# shared library.
20590predeps=$lt_predeps_CXX
20591
20592# Dependencies to place after the objects being linked to create a
20593# shared library.
20594postdeps=$lt_postdeps_CXX
20595
20596# The library search path used internally by the compiler when linking
20597# a shared library.
20598compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20599
20600# Method to check whether dependent libraries are shared objects.
20601deplibs_check_method=$lt_deplibs_check_method
20602
20603# Command to use when deplibs_check_method == file_magic.
20604file_magic_cmd=$lt_file_magic_cmd
20605
20606# Flag that allows shared libraries with undefined symbols to be built.
20607allow_undefined_flag=$lt_allow_undefined_flag_CXX
20608
20609# Flag that forces no undefined symbols.
20610no_undefined_flag=$lt_no_undefined_flag_CXX
20611
20612# Commands used to finish a libtool library installation in a directory.
20613finish_cmds=$lt_finish_cmds
20614
20615# Same as above, but a single script fragment to be evaled but not shown.
20616finish_eval=$lt_finish_eval
20617
20618# Take the output of nm and produce a listing of raw symbols and C names.
20619global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20620
20621# Transform the output of nm in a proper C declaration
20622global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20623
20624# Transform the output of nm in a C name address pair
20625global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20626
20627# This is the shared library runtime path variable.
20628runpath_var=$runpath_var
20629
20630# This is the shared library path variable.
20631shlibpath_var=$shlibpath_var
20632
20633# Is shlibpath searched before the hard-coded library search path?
20634shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20635
20636# How to hardcode a shared library path into an executable.
20637hardcode_action=$hardcode_action_CXX
20638
20639# Whether we should hardcode library paths into libraries.
20640hardcode_into_libs=$hardcode_into_libs
20641
20642# Flag to hardcode \$libdir into a binary during linking.
20643# This must work even if \$libdir does not exist.
20644hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20645
20646# If ld is used when linking, flag to hardcode \$libdir into
20647# a binary during linking. This must work even if \$libdir does
20648# not exist.
20649hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20650
20651# Whether we need a single -rpath flag with a separated argument.
20652hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20653
20654# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20655# resulting binary.
20656hardcode_direct=$hardcode_direct_CXX
20657
20658# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20659# resulting binary.
20660hardcode_minus_L=$hardcode_minus_L_CXX
20661
20662# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20663# the resulting binary.
20664hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20665
20666# Set to yes if building a shared library automatically hardcodes DIR into the library
20667# and all subsequent libraries and executables linked against it.
20668hardcode_automatic=$hardcode_automatic_CXX
20669
20670# Variables whose values should be saved in libtool wrapper scripts and
20671# restored at relink time.
20672variables_saved_for_relink="$variables_saved_for_relink"
20673
20674# Whether libtool must link a program against all its dependency libraries.
20675link_all_deplibs=$link_all_deplibs_CXX
20676
20677# Compile-time system search path for libraries
20678sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20679
20680# Run-time system search path for libraries
20681sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20682
20683# Fix the shell variable \$srcfile for the compiler.
20684fix_srcfile_path="$fix_srcfile_path_CXX"
20685
20686# Set to yes if exported symbols are required.
20687always_export_symbols=$always_export_symbols_CXX
20688
20689# The commands to list exported symbols.
20690export_symbols_cmds=$lt_export_symbols_cmds_CXX
20691
20692# The commands to extract the exported symbol list from a shared archive.
20693extract_expsyms_cmds=$lt_extract_expsyms_cmds
20694
20695# Symbols that should not be listed in the preloaded symbols.
20696exclude_expsyms=$lt_exclude_expsyms_CXX
20697
20698# Symbols that must always be exported.
20699include_expsyms=$lt_include_expsyms_CXX
20700
20701# ### END LIBTOOL TAG CONFIG: $tagname
20702
20703__EOF__
20704
20705
20706else
20707 # If there is no Makefile yet, we rely on a make rule to execute
20708 # `config.status --recheck' to rerun these tests and create the
20709 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020710 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20711 if test -f "$ltmain_in"; then
20712 test -f Makefile && make "$ltmain"
20713 fi
John Criswell47fdd832003-07-14 16:52:07 +000020714fi
20715
20716
20717ac_ext=c
20718ac_cpp='$CPP $CPPFLAGS'
20719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20721ac_compiler_gnu=$ac_cv_c_compiler_gnu
20722
20723CC=$lt_save_CC
20724LDCXX=$LD
20725LD=$lt_save_LD
20726GCC=$lt_save_GCC
20727with_gnu_ldcxx=$with_gnu_ld
20728with_gnu_ld=$lt_save_with_gnu_ld
20729lt_cv_path_LDCXX=$lt_cv_path_LD
20730lt_cv_path_LD=$lt_save_path_LD
20731lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20732lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20733
20734 else
20735 tagname=""
20736 fi
20737 ;;
20738
20739 F77)
20740 if test -n "$F77" && test "X$F77" != "Xno"; then
20741
20742ac_ext=f
20743ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20744ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20745ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20746
20747
20748archive_cmds_need_lc_F77=no
20749allow_undefined_flag_F77=
20750always_export_symbols_F77=no
20751archive_expsym_cmds_F77=
20752export_dynamic_flag_spec_F77=
20753hardcode_direct_F77=no
20754hardcode_libdir_flag_spec_F77=
20755hardcode_libdir_flag_spec_ld_F77=
20756hardcode_libdir_separator_F77=
20757hardcode_minus_L_F77=no
20758hardcode_automatic_F77=no
20759module_cmds_F77=
20760module_expsym_cmds_F77=
20761link_all_deplibs_F77=unknown
20762old_archive_cmds_F77=$old_archive_cmds
20763no_undefined_flag_F77=
20764whole_archive_flag_spec_F77=
20765enable_shared_with_static_runtimes_F77=no
20766
20767# Source file extension for f77 test sources.
20768ac_ext=f
20769
20770# Object file extension for compiled f77 test sources.
20771objext=o
20772objext_F77=$objext
20773
20774# Code to be used in simple compile tests
20775lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20776
20777# Code to be used in simple link tests
20778lt_simple_link_test_code=" program t\n end\n"
20779
20780# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20781
20782# If no C compiler was specified, use CC.
20783LTCC=${LTCC-"$CC"}
20784
Reid Spencera773bd52006-08-04 18:18:08 +000020785# If no C compiler flags were specified, use CFLAGS.
20786LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20787
John Criswell47fdd832003-07-14 16:52:07 +000020788# Allow CC to be a program name with arguments.
20789compiler=$CC
20790
20791
Reid Spencera773bd52006-08-04 18:18:08 +000020792# save warnings/boilerplate of simple test code
20793ac_outfile=conftest.$ac_objext
20794printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20795eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20796_lt_compiler_boilerplate=`cat conftest.err`
20797$rm conftest*
20798
20799ac_outfile=conftest.$ac_objext
20800printf "$lt_simple_link_test_code" >conftest.$ac_ext
20801eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20802_lt_linker_boilerplate=`cat conftest.err`
20803$rm conftest*
20804
20805
John Criswell47fdd832003-07-14 16:52:07 +000020806# Allow CC to be a program name with arguments.
20807lt_save_CC="$CC"
20808CC=${F77-"f77"}
20809compiler=$CC
20810compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020811for cc_temp in $compiler""; do
20812 case $cc_temp in
20813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20815 \-*) ;;
20816 *) break;;
20817 esac
20818done
20819cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020820
John Criswell47fdd832003-07-14 16:52:07 +000020821
Reid Spencera773bd52006-08-04 18:18:08 +000020822{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20823echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20824{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20825echo "${ECHO_T}$can_build_shared" >&6; }
20826
20827{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20828echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020829test "$can_build_shared" = "no" && enable_shared=no
20830
20831# On AIX, shared libraries and static libraries use the same namespace, and
20832# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020833case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020834aix3*)
20835 test "$enable_shared" = yes && enable_static=no
20836 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020837 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020838 postinstall_cmds='$RANLIB $lib'
20839 fi
20840 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020841aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020842 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20843 test "$enable_shared" = yes && enable_static=no
20844 fi
John Criswell47fdd832003-07-14 16:52:07 +000020845 ;;
20846esac
Reid Spencera773bd52006-08-04 18:18:08 +000020847{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20848echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020849
Reid Spencera773bd52006-08-04 18:18:08 +000020850{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20851echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020852# Make sure either enable_shared or enable_static is yes.
20853test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020854{ echo "$as_me:$LINENO: result: $enable_static" >&5
20855echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020856
20857GCC_F77="$G77"
20858LD_F77="$LD"
20859
20860lt_prog_compiler_wl_F77=
20861lt_prog_compiler_pic_F77=
20862lt_prog_compiler_static_F77=
20863
Reid Spencera773bd52006-08-04 18:18:08 +000020864{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20865echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020866
20867 if test "$GCC" = yes; then
20868 lt_prog_compiler_wl_F77='-Wl,'
20869 lt_prog_compiler_static_F77='-static'
20870
20871 case $host_os in
20872 aix*)
20873 # All AIX code is PIC.
20874 if test "$host_cpu" = ia64; then
20875 # AIX 5 now supports IA64 processor
20876 lt_prog_compiler_static_F77='-Bstatic'
20877 fi
20878 ;;
20879
20880 amigaos*)
20881 # FIXME: we need at least 68020 code to build shared libraries, but
20882 # adding the `-m68020' flag to GCC prevents building anything better,
20883 # like `-m68040'.
20884 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20885 ;;
20886
20887 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20888 # PIC is the default for these OSes.
20889 ;;
20890
20891 mingw* | pw32* | os2*)
20892 # This hack is so that the source file can tell whether it is being
20893 # built for inclusion in a dll (and should export symbols for example).
20894 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20895 ;;
20896
20897 darwin* | rhapsody*)
20898 # PIC is the default on this platform
20899 # Common symbols not allowed in MH_DYLIB files
20900 lt_prog_compiler_pic_F77='-fno-common'
20901 ;;
20902
Reid Spencera773bd52006-08-04 18:18:08 +000020903 interix3*)
20904 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20905 # Instead, we relocate shared libraries at runtime.
20906 ;;
20907
John Criswell47fdd832003-07-14 16:52:07 +000020908 msdosdjgpp*)
20909 # Just because we use GCC doesn't mean we suddenly get shared libraries
20910 # on systems that don't support them.
20911 lt_prog_compiler_can_build_shared_F77=no
20912 enable_shared=no
20913 ;;
20914
20915 sysv4*MP*)
20916 if test -d /usr/nec; then
20917 lt_prog_compiler_pic_F77=-Kconform_pic
20918 fi
20919 ;;
20920
20921 hpux*)
20922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20923 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020924 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020925 hppa*64*|ia64*)
20926 # +Z the default
20927 ;;
20928 *)
20929 lt_prog_compiler_pic_F77='-fPIC'
20930 ;;
20931 esac
20932 ;;
20933
20934 *)
20935 lt_prog_compiler_pic_F77='-fPIC'
20936 ;;
20937 esac
20938 else
20939 # PORTME Check for flag to pass linker flags through the system compiler.
20940 case $host_os in
20941 aix*)
20942 lt_prog_compiler_wl_F77='-Wl,'
20943 if test "$host_cpu" = ia64; then
20944 # AIX 5 now supports IA64 processor
20945 lt_prog_compiler_static_F77='-Bstatic'
20946 else
20947 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20948 fi
20949 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020950 darwin*)
20951 # PIC is the default on this platform
20952 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020953 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020954 xlc*)
20955 lt_prog_compiler_pic_F77='-qnocommon'
20956 lt_prog_compiler_wl_F77='-Wl,'
20957 ;;
20958 esac
20959 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020960
20961 mingw* | pw32* | os2*)
20962 # This hack is so that the source file can tell whether it is being
20963 # built for inclusion in a dll (and should export symbols for example).
20964 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20965 ;;
20966
20967 hpux9* | hpux10* | hpux11*)
20968 lt_prog_compiler_wl_F77='-Wl,'
20969 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20970 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020971 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020972 hppa*64*|ia64*)
20973 # +Z the default
20974 ;;
20975 *)
20976 lt_prog_compiler_pic_F77='+Z'
20977 ;;
20978 esac
20979 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20980 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20981 ;;
20982
20983 irix5* | irix6* | nonstopux*)
20984 lt_prog_compiler_wl_F77='-Wl,'
20985 # PIC (with -KPIC) is the default.
20986 lt_prog_compiler_static_F77='-non_shared'
20987 ;;
20988
20989 newsos6)
20990 lt_prog_compiler_pic_F77='-KPIC'
20991 lt_prog_compiler_static_F77='-Bstatic'
20992 ;;
20993
20994 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000020995 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020996 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000020997 lt_prog_compiler_wl_F77='-Wl,'
20998 lt_prog_compiler_pic_F77='-KPIC'
20999 lt_prog_compiler_static_F77='-static'
21000 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021001 pgcc* | pgf77* | pgf90* | pgf95*)
21002 # Portland Group compilers (*not* the Pentium gcc compiler,
21003 # which looks to be a dead project)
21004 lt_prog_compiler_wl_F77='-Wl,'
21005 lt_prog_compiler_pic_F77='-fpic'
21006 lt_prog_compiler_static_F77='-Bstatic'
21007 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021008 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021009 lt_prog_compiler_wl_F77='-Wl,'
21010 # All Alpha code is PIC.
21011 lt_prog_compiler_static_F77='-non_shared'
21012 ;;
21013 esac
21014 ;;
21015
21016 osf3* | osf4* | osf5*)
21017 lt_prog_compiler_wl_F77='-Wl,'
21018 # All OSF/1 code is PIC.
21019 lt_prog_compiler_static_F77='-non_shared'
21020 ;;
21021
John Criswell47fdd832003-07-14 16:52:07 +000021022 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021023 lt_prog_compiler_pic_F77='-KPIC'
21024 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021025 case $cc_basename in
21026 f77* | f90* | f95*)
21027 lt_prog_compiler_wl_F77='-Qoption ld ';;
21028 *)
21029 lt_prog_compiler_wl_F77='-Wl,';;
21030 esac
John Criswell47fdd832003-07-14 16:52:07 +000021031 ;;
21032
21033 sunos4*)
21034 lt_prog_compiler_wl_F77='-Qoption ld '
21035 lt_prog_compiler_pic_F77='-PIC'
21036 lt_prog_compiler_static_F77='-Bstatic'
21037 ;;
21038
Reid Spencera773bd52006-08-04 18:18:08 +000021039 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021040 lt_prog_compiler_wl_F77='-Wl,'
21041 lt_prog_compiler_pic_F77='-KPIC'
21042 lt_prog_compiler_static_F77='-Bstatic'
21043 ;;
21044
21045 sysv4*MP*)
21046 if test -d /usr/nec ;then
21047 lt_prog_compiler_pic_F77='-Kconform_pic'
21048 lt_prog_compiler_static_F77='-Bstatic'
21049 fi
21050 ;;
21051
Reid Spencera773bd52006-08-04 18:18:08 +000021052 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21053 lt_prog_compiler_wl_F77='-Wl,'
21054 lt_prog_compiler_pic_F77='-KPIC'
21055 lt_prog_compiler_static_F77='-Bstatic'
21056 ;;
21057
21058 unicos*)
21059 lt_prog_compiler_wl_F77='-Wl,'
21060 lt_prog_compiler_can_build_shared_F77=no
21061 ;;
21062
John Criswell47fdd832003-07-14 16:52:07 +000021063 uts4*)
21064 lt_prog_compiler_pic_F77='-pic'
21065 lt_prog_compiler_static_F77='-Bstatic'
21066 ;;
21067
21068 *)
21069 lt_prog_compiler_can_build_shared_F77=no
21070 ;;
21071 esac
21072 fi
21073
Reid Spencera773bd52006-08-04 18:18:08 +000021074{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21075echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021076
21077#
21078# Check to make sure the PIC flag actually works.
21079#
21080if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021081
Reid Spencera773bd52006-08-04 18:18:08 +000021082{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21083echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021084if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21086else
21087 lt_prog_compiler_pic_works_F77=no
21088 ac_outfile=conftest.$ac_objext
21089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21090 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21091 # Insert the option either (1) after the last *FLAGS variable, or
21092 # (2) before a word containing "conftest.", or (3) at the end.
21093 # Note that $ac_compile itself does not contain backslashes and begins
21094 # with a dollar sign (not a hyphen), so the echo should work correctly.
21095 # The option is referenced via a variable to avoid confusing sed.
21096 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21099 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb2ed05262006-11-03 18:04:08 +000021100 (eval echo "\"\$as_me:21100: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021101 (eval "$lt_compile" 2>conftest.err)
21102 ac_status=$?
21103 cat conftest.err >&5
Reid Spencerb2ed05262006-11-03 18:04:08 +000021104 echo "$as_me:21104: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021105 if (exit $ac_status) && test -s "$ac_outfile"; then
21106 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021107 # So say no if there are warnings other than the usual output.
21108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021111 lt_prog_compiler_pic_works_F77=yes
21112 fi
21113 fi
21114 $rm conftest*
21115
21116fi
Reid Spencera773bd52006-08-04 18:18:08 +000021117{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21118echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021119
21120if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21121 case $lt_prog_compiler_pic_F77 in
21122 "" | " "*) ;;
21123 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21124 esac
21125else
21126 lt_prog_compiler_pic_F77=
21127 lt_prog_compiler_can_build_shared_F77=no
21128fi
21129
21130fi
Reid Spencera773bd52006-08-04 18:18:08 +000021131case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021132 # For platforms which do not support PIC, -DPIC is meaningless:
21133 *djgpp*)
21134 lt_prog_compiler_pic_F77=
21135 ;;
21136 *)
21137 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21138 ;;
21139esac
21140
Reid Spencera773bd52006-08-04 18:18:08 +000021141#
21142# Check to make sure the static flag actually works.
21143#
21144wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21145{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21146echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21147if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149else
21150 lt_prog_compiler_static_works_F77=no
21151 save_LDFLAGS="$LDFLAGS"
21152 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21153 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21155 # The linker can only warn and ignore the option if not recognized
21156 # So say no if there are warnings
21157 if test -s conftest.err; then
21158 # Append any errors to the config.log.
21159 cat conftest.err 1>&5
21160 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21162 if diff conftest.exp conftest.er2 >/dev/null; then
21163 lt_prog_compiler_static_works_F77=yes
21164 fi
21165 else
21166 lt_prog_compiler_static_works_F77=yes
21167 fi
21168 fi
21169 $rm conftest*
21170 LDFLAGS="$save_LDFLAGS"
21171
21172fi
21173{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21174echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21175
21176if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21177 :
21178else
21179 lt_prog_compiler_static_F77=
21180fi
21181
21182
21183{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21184echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021185if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21187else
21188 lt_cv_prog_compiler_c_o_F77=no
21189 $rm -r conftest 2>/dev/null
21190 mkdir conftest
21191 cd conftest
21192 mkdir out
21193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21194
John Criswell47fdd832003-07-14 16:52:07 +000021195 lt_compiler_flag="-o out/conftest2.$ac_objext"
21196 # Insert the option either (1) after the last *FLAGS variable, or
21197 # (2) before a word containing "conftest.", or (3) at the end.
21198 # Note that $ac_compile itself does not contain backslashes and begins
21199 # with a dollar sign (not a hyphen), so the echo should work correctly.
21200 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21203 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb2ed05262006-11-03 18:04:08 +000021204 (eval echo "\"\$as_me:21204: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021205 (eval "$lt_compile" 2>out/conftest.err)
21206 ac_status=$?
21207 cat out/conftest.err >&5
Reid Spencerb2ed05262006-11-03 18:04:08 +000021208 echo "$as_me:21208: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21210 then
21211 # The compiler can only warn and ignore the option if not recognized
21212 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021216 lt_cv_prog_compiler_c_o_F77=yes
21217 fi
21218 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021219 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021220 $rm conftest*
21221 # SGI C++ compiler will create directory out/ii_files/ for
21222 # template instantiation
21223 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21224 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021225 cd ..
21226 rmdir conftest
21227 $rm conftest*
21228
21229fi
Reid Spencera773bd52006-08-04 18:18:08 +000021230{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21231echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021232
21233
21234hard_links="nottested"
21235if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21236 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021237 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21238echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021239 hard_links=yes
21240 $rm conftest*
21241 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21242 touch conftest.a
21243 ln conftest.a conftest.b 2>&5 || hard_links=no
21244 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021245 { echo "$as_me:$LINENO: result: $hard_links" >&5
21246echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021247 if test "$hard_links" = no; then
21248 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21249echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21250 need_locks=warn
21251 fi
21252else
21253 need_locks=no
21254fi
21255
Reid Spencera773bd52006-08-04 18:18:08 +000021256{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21257echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021258
21259 runpath_var=
21260 allow_undefined_flag_F77=
21261 enable_shared_with_static_runtimes_F77=no
21262 archive_cmds_F77=
21263 archive_expsym_cmds_F77=
21264 old_archive_From_new_cmds_F77=
21265 old_archive_from_expsyms_cmds_F77=
21266 export_dynamic_flag_spec_F77=
21267 whole_archive_flag_spec_F77=
21268 thread_safe_flag_spec_F77=
21269 hardcode_libdir_flag_spec_F77=
21270 hardcode_libdir_flag_spec_ld_F77=
21271 hardcode_libdir_separator_F77=
21272 hardcode_direct_F77=no
21273 hardcode_minus_L_F77=no
21274 hardcode_shlibpath_var_F77=unsupported
21275 link_all_deplibs_F77=unknown
21276 hardcode_automatic_F77=no
21277 module_cmds_F77=
21278 module_expsym_cmds_F77=
21279 always_export_symbols_F77=no
21280 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21281 # include_expsyms should be a list of space-separated symbols to be *always*
21282 # included in the symbol list
21283 include_expsyms_F77=
21284 # exclude_expsyms can be an extended regexp of symbols to exclude
21285 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21286 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21287 # as well as any symbol that contains `d'.
21288 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21289 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21290 # platforms (ab)use it in PIC code, but their linkers get confused if
21291 # the symbol is explicitly referenced. Since portable code cannot
21292 # rely on this symbol name, it's probably fine to never include it in
21293 # preloaded symbol tables.
21294 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021295 # Just being paranoid about ensuring that cc_basename is set.
21296 for cc_temp in $compiler""; do
21297 case $cc_temp in
21298 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21299 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21300 \-*) ;;
21301 *) break;;
21302 esac
21303done
21304cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021305
21306 case $host_os in
21307 cygwin* | mingw* | pw32*)
21308 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21309 # When not using gcc, we currently assume that we are using
21310 # Microsoft Visual C++.
21311 if test "$GCC" != yes; then
21312 with_gnu_ld=no
21313 fi
21314 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021315 interix*)
21316 # we just hope/assume this is gcc and not c89 (= MSVC++)
21317 with_gnu_ld=yes
21318 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021319 openbsd*)
21320 with_gnu_ld=no
21321 ;;
21322 esac
21323
21324 ld_shlibs_F77=yes
21325 if test "$with_gnu_ld" = yes; then
21326 # If archive_cmds runs LD, not CC, wlarc should be empty
21327 wlarc='${wl}'
21328
Reid Spencera773bd52006-08-04 18:18:08 +000021329 # Set some defaults for GNU ld with shared library support. These
21330 # are reset later if shared libraries are not supported. Putting them
21331 # here allows them to be overridden if necessary.
21332 runpath_var=LD_RUN_PATH
21333 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21334 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21335 # ancient GNU ld didn't support --whole-archive et. al.
21336 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21337 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21338 else
21339 whole_archive_flag_spec_F77=
21340 fi
21341 supports_anon_versioning=no
21342 case `$LD -v 2>/dev/null` in
21343 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21344 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21345 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21346 *\ 2.11.*) ;; # other 2.11 versions
21347 *) supports_anon_versioning=yes ;;
21348 esac
21349
John Criswell47fdd832003-07-14 16:52:07 +000021350 # See if GNU ld supports shared libraries.
21351 case $host_os in
21352 aix3* | aix4* | aix5*)
21353 # On AIX/PPC, the GNU linker is very broken
21354 if test "$host_cpu" != ia64; then
21355 ld_shlibs_F77=no
21356 cat <<EOF 1>&2
21357
21358*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21359*** to be unable to reliably create shared libraries on AIX.
21360*** Therefore, libtool is disabling shared libraries support. If you
21361*** really care for shared libraries, you may want to modify your PATH
21362*** so that a non-GNU linker is found, and then restart.
21363
21364EOF
21365 fi
21366 ;;
21367
21368 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021369 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 +000021370 hardcode_libdir_flag_spec_F77='-L$libdir'
21371 hardcode_minus_L_F77=yes
21372
21373 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21374 # that the semantics of dynamic libraries on AmigaOS, at least up
21375 # to version 4, is to share data among multiple programs linked
21376 # with the same dynamic library. Since this doesn't match the
21377 # behavior of shared libraries on other platforms, we can't use
21378 # them.
21379 ld_shlibs_F77=no
21380 ;;
21381
21382 beos*)
21383 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21384 allow_undefined_flag_F77=unsupported
21385 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21386 # support --undefined. This deserves some investigation. FIXME
21387 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21388 else
21389 ld_shlibs_F77=no
21390 fi
21391 ;;
21392
21393 cygwin* | mingw* | pw32*)
21394 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21395 # as there is no search path for DLLs.
21396 hardcode_libdir_flag_spec_F77='-L$libdir'
21397 allow_undefined_flag_F77=unsupported
21398 always_export_symbols_F77=no
21399 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021400 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 +000021401
21402 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021403 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 +000021404 # If the export-symbols file already is a .def file (1st line
21405 # is EXPORTS), use it as is; otherwise, prepend...
21406 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21407 cp $export_symbols $output_objdir/$soname.def;
21408 else
21409 echo EXPORTS > $output_objdir/$soname.def;
21410 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021411 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021412 $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 +000021413 else
Reid Spencera773bd52006-08-04 18:18:08 +000021414 ld_shlibs_F77=no
21415 fi
21416 ;;
21417
21418 interix3*)
21419 hardcode_direct_F77=no
21420 hardcode_shlibpath_var_F77=no
21421 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21422 export_dynamic_flag_spec_F77='${wl}-E'
21423 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21424 # Instead, shared libraries are loaded at an image base (0x10000000 by
21425 # default) and relocated if they conflict, which is a slow very memory
21426 # consuming and fragmenting process. To avoid this, we pick a random,
21427 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21428 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21429 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'
21430 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'
21431 ;;
21432
21433 linux*)
21434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21435 tmp_addflag=
21436 case $cc_basename,$host_cpu in
21437 pgcc*) # Portland Group C compiler
21438 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'
21439 tmp_addflag=' $pic_flag'
21440 ;;
21441 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21442 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'
21443 tmp_addflag=' $pic_flag -Mnomain' ;;
21444 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21445 tmp_addflag=' -i_dynamic' ;;
21446 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21447 tmp_addflag=' -i_dynamic -nofor_main' ;;
21448 ifc* | ifort*) # Intel Fortran compiler
21449 tmp_addflag=' -nofor_main' ;;
21450 esac
21451 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21452
21453 if test $supports_anon_versioning = yes; then
21454 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21456 $echo "local: *; };" >> $output_objdir/$libname.ver~
21457 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21458 fi
21459 else
21460 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021461 fi
21462 ;;
21463
21464 netbsd*)
21465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21466 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21467 wlarc=
21468 else
21469 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21470 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21471 fi
21472 ;;
21473
Reid Spencera773bd52006-08-04 18:18:08 +000021474 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021475 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21476 ld_shlibs_F77=no
21477 cat <<EOF 1>&2
21478
21479*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21480*** create shared libraries on Solaris systems. Therefore, libtool
21481*** is disabling shared libraries support. We urge you to upgrade GNU
21482*** binutils to release 2.9.1 or newer. Another option is to modify
21483*** your PATH or compiler configuration so that the native linker is
21484*** used, and then restart.
21485
21486EOF
21487 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21488 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21489 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21490 else
21491 ld_shlibs_F77=no
21492 fi
21493 ;;
21494
Reid Spencera773bd52006-08-04 18:18:08 +000021495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21496 case `$LD -v 2>&1` in
21497 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21498 ld_shlibs_F77=no
21499 cat <<_LT_EOF 1>&2
21500
21501*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21502*** reliably create shared libraries on SCO systems. Therefore, libtool
21503*** is disabling shared libraries support. We urge you to upgrade GNU
21504*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21505*** your PATH or compiler configuration so that the native linker is
21506*** used, and then restart.
21507
21508_LT_EOF
21509 ;;
21510 *)
21511 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21512 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21513 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21514 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21515 else
21516 ld_shlibs_F77=no
21517 fi
21518 ;;
21519 esac
21520 ;;
21521
John Criswell47fdd832003-07-14 16:52:07 +000021522 sunos4*)
21523 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21524 wlarc=
21525 hardcode_direct_F77=yes
21526 hardcode_shlibpath_var_F77=no
21527 ;;
21528
21529 *)
21530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21532 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21533 else
21534 ld_shlibs_F77=no
21535 fi
21536 ;;
21537 esac
21538
Reid Spencera773bd52006-08-04 18:18:08 +000021539 if test "$ld_shlibs_F77" = no; then
21540 runpath_var=
21541 hardcode_libdir_flag_spec_F77=
21542 export_dynamic_flag_spec_F77=
21543 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021544 fi
21545 else
21546 # PORTME fill in a description of your system's linker (not GNU ld)
21547 case $host_os in
21548 aix3*)
21549 allow_undefined_flag_F77=unsupported
21550 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021551 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 +000021552 # Note: this linker hardcodes the directories in LIBPATH if there
21553 # are no directories specified by -L.
21554 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021555 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021556 # Neither direct hardcoding nor static linking is supported with a
21557 # broken collect2.
21558 hardcode_direct_F77=unsupported
21559 fi
21560 ;;
21561
21562 aix4* | aix5*)
21563 if test "$host_cpu" = ia64; then
21564 # On IA64, the linker does run time linking by default, so we don't
21565 # have to do anything special.
21566 aix_use_runtimelinking=no
21567 exp_sym_flag='-Bexport'
21568 no_entry_flag=""
21569 else
21570 # If we're using GNU nm, then we don't want the "-C" option.
21571 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21572 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21573 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'
21574 else
21575 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'
21576 fi
21577 aix_use_runtimelinking=no
21578
21579 # Test if we are trying to use run time linking or normal
21580 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21581 # need to do runtime linking.
21582 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21583 for ld_flag in $LDFLAGS; do
21584 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21585 aix_use_runtimelinking=yes
21586 break
21587 fi
21588 done
Reid Spencera773bd52006-08-04 18:18:08 +000021589 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021590 esac
21591
21592 exp_sym_flag='-bexport'
21593 no_entry_flag='-bnoentry'
21594 fi
21595
21596 # When large executables or shared objects are built, AIX ld can
21597 # have problems creating the table of contents. If linking a library
21598 # or program results in "error TOC overflow" add -mminimal-toc to
21599 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21600 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21601
21602 archive_cmds_F77=''
21603 hardcode_direct_F77=yes
21604 hardcode_libdir_separator_F77=':'
21605 link_all_deplibs_F77=yes
21606
21607 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021608 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021609 # We only want to do this on AIX 4.2 and lower, the check
21610 # below for broken collect2 doesn't work under 4.3+
21611 collect2name=`${CC} -print-prog-name=collect2`
21612 if test -f "$collect2name" && \
21613 strings "$collect2name" | grep resolve_lib_name >/dev/null
21614 then
21615 # We have reworked collect2
21616 hardcode_direct_F77=yes
21617 else
21618 # We have old collect2
21619 hardcode_direct_F77=unsupported
21620 # It fails to find uninstalled libraries when the uninstalled
21621 # path is not listed in the libpath. Setting hardcode_minus_L
21622 # to unsupported forces relinking
21623 hardcode_minus_L_F77=yes
21624 hardcode_libdir_flag_spec_F77='-L$libdir'
21625 hardcode_libdir_separator_F77=
21626 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021627 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021628 esac
21629 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021630 if test "$aix_use_runtimelinking" = yes; then
21631 shared_flag="$shared_flag "'${wl}-G'
21632 fi
John Criswell47fdd832003-07-14 16:52:07 +000021633 else
21634 # not using gcc
21635 if test "$host_cpu" = ia64; then
21636 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21637 # chokes on -Wl,-G. The following line is correct:
21638 shared_flag='-G'
21639 else
Reid Spencera773bd52006-08-04 18:18:08 +000021640 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021641 shared_flag='${wl}-G'
21642 else
21643 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021644 fi
John Criswell47fdd832003-07-14 16:52:07 +000021645 fi
21646 fi
21647
21648 # It seems that -bexpall does not export symbols beginning with
21649 # underscore (_), so it is better to generate a list of symbols to export.
21650 always_export_symbols_F77=yes
21651 if test "$aix_use_runtimelinking" = yes; then
21652 # Warning - without using the other runtime loading flags (-brtl),
21653 # -berok will link without error, but may produce a broken library.
21654 allow_undefined_flag_F77='-berok'
21655 # Determine the default libpath from the value encoded in an empty executable.
21656 cat >conftest.$ac_ext <<_ACEOF
21657 program main
21658
21659 end
21660_ACEOF
21661rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021662if { (ac_try="$ac_link"
21663case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21666esac
21667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021669 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021675 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21676 { (case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21679esac
21680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021686 { (case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21689esac
21690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; }; then
21695
21696aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21697}'`
21698# Check for a 64-bit object if we didn't find anything.
21699if 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; }
21700}'`; fi
21701else
21702 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021703sed 's/^/| /' conftest.$ac_ext >&5
21704
Reid Spencera773bd52006-08-04 18:18:08 +000021705
John Criswell47fdd832003-07-14 16:52:07 +000021706fi
Reid Spencera773bd52006-08-04 18:18:08 +000021707
21708rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021709 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21711
21712 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021713 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 +000021714 else
21715 if test "$host_cpu" = ia64; then
21716 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21717 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021718 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 +000021719 else
21720 # Determine the default libpath from the value encoded in an empty executable.
21721 cat >conftest.$ac_ext <<_ACEOF
21722 program main
21723
21724 end
21725_ACEOF
21726rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021727if { (ac_try="$ac_link"
21728case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21731esac
21732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021734 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021735 grep -v '^ *+' conftest.er1 >conftest.err
21736 rm -f conftest.er1
21737 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021740 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21741 { (case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21744esac
21745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; } &&
21750 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021751 { (case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21754esac
21755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21760
21761aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21762}'`
21763# Check for a 64-bit object if we didn't find anything.
21764if 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; }
21765}'`; fi
21766else
21767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021768sed 's/^/| /' conftest.$ac_ext >&5
21769
Reid Spencera773bd52006-08-04 18:18:08 +000021770
John Criswell47fdd832003-07-14 16:52:07 +000021771fi
Reid Spencera773bd52006-08-04 18:18:08 +000021772
21773rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021774 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21776
21777 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21778 # Warning - without using the other run time loading flags,
21779 # -berok will link without error, but may produce a broken library.
21780 no_undefined_flag_F77=' ${wl}-bernotok'
21781 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021782 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021783 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021784 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021785 # This is similar to how AIX traditionally builds its shared libraries.
21786 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 +000021787 fi
21788 fi
21789 ;;
21790
21791 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021792 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 +000021793 hardcode_libdir_flag_spec_F77='-L$libdir'
21794 hardcode_minus_L_F77=yes
21795 # see comment about different semantics on the GNU ld section
21796 ld_shlibs_F77=no
21797 ;;
21798
Reid Spencer2706f8c2004-09-19 23:53:36 +000021799 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021800 export_dynamic_flag_spec_F77=-rdynamic
21801 ;;
21802
21803 cygwin* | mingw* | pw32*)
21804 # When not using gcc, we currently assume that we are using
21805 # Microsoft Visual C++.
21806 # hardcode_libdir_flag_spec is actually meaningless, as there is
21807 # no search path for DLLs.
21808 hardcode_libdir_flag_spec_F77=' '
21809 allow_undefined_flag_F77=unsupported
21810 # Tell ltmain to make .lib files, not .a files.
21811 libext=lib
21812 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021813 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021814 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021815 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 +000021816 # The linker will automatically build a .lib file if we build a DLL.
21817 old_archive_From_new_cmds_F77='true'
21818 # FIXME: Should let the user specify the lib program.
21819 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021820 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021821 enable_shared_with_static_runtimes_F77=yes
21822 ;;
21823
21824 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021825 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021826 rhapsody* | darwin1.[012])
21827 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21828 ;;
21829 *) # Darwin 1.3 on
21830 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21831 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21832 else
21833 case ${MACOSX_DEPLOYMENT_TARGET} in
21834 10.[012])
21835 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21836 ;;
21837 10.*)
21838 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21839 ;;
21840 esac
21841 fi
21842 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021843 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021844 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021845 hardcode_direct_F77=no
21846 hardcode_automatic_F77=yes
21847 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021848 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021849 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021850 if test "$GCC" = yes ; then
21851 output_verbose_link_cmd='echo'
21852 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21853 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021854 # 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 +000021855 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}'
21856 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 +000021857 else
Reid Spencera773bd52006-08-04 18:18:08 +000021858 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021859 xlc*)
21860 output_verbose_link_cmd='echo'
21861 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21862 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021863 # 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 +000021864 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}'
21865 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 +000021866 ;;
21867 *)
21868 ld_shlibs_F77=no
21869 ;;
21870 esac
John Criswell47fdd832003-07-14 16:52:07 +000021871 fi
21872 ;;
21873
21874 dgux*)
21875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21876 hardcode_libdir_flag_spec_F77='-L$libdir'
21877 hardcode_shlibpath_var_F77=no
21878 ;;
21879
21880 freebsd1*)
21881 ld_shlibs_F77=no
21882 ;;
21883
21884 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21885 # support. Future versions do this automatically, but an explicit c++rt0.o
21886 # does not break anything, and helps significantly (at the cost of a little
21887 # extra space).
21888 freebsd2.2*)
21889 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21890 hardcode_libdir_flag_spec_F77='-R$libdir'
21891 hardcode_direct_F77=yes
21892 hardcode_shlibpath_var_F77=no
21893 ;;
21894
21895 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21896 freebsd2*)
21897 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21898 hardcode_direct_F77=yes
21899 hardcode_minus_L_F77=yes
21900 hardcode_shlibpath_var_F77=no
21901 ;;
21902
21903 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021904 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021905 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21906 hardcode_libdir_flag_spec_F77='-R$libdir'
21907 hardcode_direct_F77=yes
21908 hardcode_shlibpath_var_F77=no
21909 ;;
21910
21911 hpux9*)
21912 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021913 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 +000021914 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021915 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 +000021916 fi
21917 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21918 hardcode_libdir_separator_F77=:
21919 hardcode_direct_F77=yes
21920
21921 # hardcode_minus_L: Not really in the search PATH,
21922 # but as the default location of the library.
21923 hardcode_minus_L_F77=yes
21924 export_dynamic_flag_spec_F77='${wl}-E'
21925 ;;
21926
Reid Spencera773bd52006-08-04 18:18:08 +000021927 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021928 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021929 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21930 else
21931 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21932 fi
21933 if test "$with_gnu_ld" = no; then
21934 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21935 hardcode_libdir_separator_F77=:
21936
21937 hardcode_direct_F77=yes
21938 export_dynamic_flag_spec_F77='${wl}-E'
21939
21940 # hardcode_minus_L: Not really in the search PATH,
21941 # but as the default location of the library.
21942 hardcode_minus_L_F77=yes
21943 fi
21944 ;;
21945
21946 hpux11*)
21947 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21948 case $host_cpu in
21949 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021950 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21951 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021952 ia64*)
21953 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21954 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021955 *)
21956 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21957 ;;
21958 esac
21959 else
Reid Spencera773bd52006-08-04 18:18:08 +000021960 case $host_cpu in
21961 hppa*64*)
21962 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21963 ;;
21964 ia64*)
21965 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021966 ;;
21967 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021968 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 +000021969 ;;
21970 esac
21971 fi
21972 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021973 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21974 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000021975
Reid Spencera773bd52006-08-04 18:18:08 +000021976 case $host_cpu in
21977 hppa*64*|ia64*)
21978 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21979 hardcode_direct_F77=no
21980 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021981 ;;
21982 *)
John Criswell47fdd832003-07-14 16:52:07 +000021983 hardcode_direct_F77=yes
21984 export_dynamic_flag_spec_F77='${wl}-E'
21985
21986 # hardcode_minus_L: Not really in the search PATH,
21987 # but as the default location of the library.
21988 hardcode_minus_L_F77=yes
21989 ;;
21990 esac
21991 fi
21992 ;;
21993
21994 irix5* | irix6* | nonstopux*)
21995 if test "$GCC" = yes; then
21996 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'
21997 else
21998 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'
21999 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22000 fi
22001 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22002 hardcode_libdir_separator_F77=:
22003 link_all_deplibs_F77=yes
22004 ;;
22005
22006 netbsd*)
22007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22008 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22009 else
22010 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22011 fi
22012 hardcode_libdir_flag_spec_F77='-R$libdir'
22013 hardcode_direct_F77=yes
22014 hardcode_shlibpath_var_F77=no
22015 ;;
22016
22017 newsos6)
22018 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22019 hardcode_direct_F77=yes
22020 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22021 hardcode_libdir_separator_F77=:
22022 hardcode_shlibpath_var_F77=no
22023 ;;
22024
22025 openbsd*)
22026 hardcode_direct_F77=yes
22027 hardcode_shlibpath_var_F77=no
22028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22029 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022030 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 +000022031 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22032 export_dynamic_flag_spec_F77='${wl}-E'
22033 else
22034 case $host_os in
22035 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22036 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22037 hardcode_libdir_flag_spec_F77='-R$libdir'
22038 ;;
22039 *)
22040 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22041 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22042 ;;
22043 esac
22044 fi
22045 ;;
22046
22047 os2*)
22048 hardcode_libdir_flag_spec_F77='-L$libdir'
22049 hardcode_minus_L_F77=yes
22050 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022051 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 +000022052 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22053 ;;
22054
22055 osf3*)
22056 if test "$GCC" = yes; then
22057 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22058 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'
22059 else
22060 allow_undefined_flag_F77=' -expect_unresolved \*'
22061 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'
22062 fi
22063 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22064 hardcode_libdir_separator_F77=:
22065 ;;
22066
22067 osf4* | osf5*) # as osf3* with the addition of -msym flag
22068 if test "$GCC" = yes; then
22069 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22070 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'
22071 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22072 else
22073 allow_undefined_flag_F77=' -expect_unresolved \*'
22074 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 +000022075 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 +000022076 $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 +000022077
John Criswell47fdd832003-07-14 16:52:07 +000022078 # Both c and cxx compiler support -rpath directly
22079 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22080 fi
22081 hardcode_libdir_separator_F77=:
22082 ;;
22083
John Criswell47fdd832003-07-14 16:52:07 +000022084 solaris*)
22085 no_undefined_flag_F77=' -z text'
22086 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022087 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022088 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022089 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22090 $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 +000022091 else
Reid Spencera773bd52006-08-04 18:18:08 +000022092 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022093 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022094 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22095 $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 +000022096 fi
22097 hardcode_libdir_flag_spec_F77='-R$libdir'
22098 hardcode_shlibpath_var_F77=no
22099 case $host_os in
22100 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022101 *)
22102 # The compiler driver will combine linker options so we
22103 # cannot just pass the convience library names through
22104 # without $wl, iff we do not link with $LD.
22105 # Luckily, gcc supports the same syntax we need for Sun Studio.
22106 # Supported since Solaris 2.6 (maybe 2.5.1?)
22107 case $wlarc in
22108 '')
22109 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22110 *)
22111 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' ;;
22112 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022113 esac
22114 link_all_deplibs_F77=yes
22115 ;;
22116
22117 sunos4*)
22118 if test "x$host_vendor" = xsequent; then
22119 # Use $CC to link under sequent, because it throws in some extra .o
22120 # files that make .init and .fini sections work.
22121 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22122 else
22123 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22124 fi
22125 hardcode_libdir_flag_spec_F77='-L$libdir'
22126 hardcode_direct_F77=yes
22127 hardcode_minus_L_F77=yes
22128 hardcode_shlibpath_var_F77=no
22129 ;;
22130
22131 sysv4)
22132 case $host_vendor in
22133 sni)
22134 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22135 hardcode_direct_F77=yes # is this really true???
22136 ;;
22137 siemens)
22138 ## LD is ld it makes a PLAMLIB
22139 ## CC just makes a GrossModule.
22140 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22141 reload_cmds_F77='$CC -r -o $output$reload_objs'
22142 hardcode_direct_F77=no
22143 ;;
22144 motorola)
22145 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22146 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22147 ;;
22148 esac
22149 runpath_var='LD_RUN_PATH'
22150 hardcode_shlibpath_var_F77=no
22151 ;;
22152
22153 sysv4.3*)
22154 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22155 hardcode_shlibpath_var_F77=no
22156 export_dynamic_flag_spec_F77='-Bexport'
22157 ;;
22158
22159 sysv4*MP*)
22160 if test -d /usr/nec; then
22161 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22162 hardcode_shlibpath_var_F77=no
22163 runpath_var=LD_RUN_PATH
22164 hardcode_runpath_var=yes
22165 ld_shlibs_F77=yes
22166 fi
22167 ;;
22168
Reid Spencera773bd52006-08-04 18:18:08 +000022169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22170 no_undefined_flag_F77='${wl}-z,text'
22171 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022172 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022173 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022174
John Criswell47fdd832003-07-14 16:52:07 +000022175 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022176 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22177 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 +000022178 else
Reid Spencera773bd52006-08-04 18:18:08 +000022179 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22180 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 +000022181 fi
John Criswell47fdd832003-07-14 16:52:07 +000022182 ;;
22183
Reid Spencera773bd52006-08-04 18:18:08 +000022184 sysv5* | sco3.2v5* | sco5v6*)
22185 # Note: We can NOT use -z defs as we might desire, because we do not
22186 # link with -lc, and that would cause any symbols used from libc to
22187 # always be unresolved, which means just about no library would
22188 # ever link correctly. If we're not using GNU ld we use -z text
22189 # though, which does catch some bad symbols but isn't as heavy-handed
22190 # as -z defs.
22191 no_undefined_flag_F77='${wl}-z,text'
22192 allow_undefined_flag_F77='${wl}-z,nodefs'
22193 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022194 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022195 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22196 hardcode_libdir_separator_F77=':'
22197 link_all_deplibs_F77=yes
22198 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022199 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022200
22201 if test "$GCC" = yes; then
22202 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22203 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22204 else
22205 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22206 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22207 fi
John Criswell47fdd832003-07-14 16:52:07 +000022208 ;;
22209
22210 uts4*)
22211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22212 hardcode_libdir_flag_spec_F77='-L$libdir'
22213 hardcode_shlibpath_var_F77=no
22214 ;;
22215
22216 *)
22217 ld_shlibs_F77=no
22218 ;;
22219 esac
22220 fi
22221
Reid Spencera773bd52006-08-04 18:18:08 +000022222{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22223echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022224test "$ld_shlibs_F77" = no && can_build_shared=no
22225
John Criswell47fdd832003-07-14 16:52:07 +000022226#
22227# Do we need to explicitly link libc?
22228#
22229case "x$archive_cmds_need_lc_F77" in
22230x|xyes)
22231 # Assume -lc should be added
22232 archive_cmds_need_lc_F77=yes
22233
22234 if test "$enable_shared" = yes && test "$GCC" = yes; then
22235 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022236 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022237 # FIXME: we may have to deal with multi-command sequences.
22238 ;;
22239 '$CC '*)
22240 # Test whether the compiler implicitly links with -lc since on some
22241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22242 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022243 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22244echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022245 $rm conftest*
22246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22247
22248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22249 (eval $ac_compile) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } 2>conftest.err; then
22253 soname=conftest
22254 lib=conftest
22255 libobjs=conftest.$ac_objext
22256 deplibs=
22257 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022258 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022259 compiler_flags=-v
22260 linker_flags=-v
22261 verstring=
22262 output_objdir=.
22263 libname=conftest
22264 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22265 allow_undefined_flag_F77=
22266 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22267 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22268 ac_status=$?
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); }
22271 then
22272 archive_cmds_need_lc_F77=no
22273 else
22274 archive_cmds_need_lc_F77=yes
22275 fi
22276 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22277 else
22278 cat conftest.err 1>&5
22279 fi
22280 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022281 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22282echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022283 ;;
22284 esac
22285 fi
22286 ;;
22287esac
22288
Reid Spencera773bd52006-08-04 18:18:08 +000022289{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22290echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022291library_names_spec=
22292libname_spec='lib$name'
22293soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022294shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022295postinstall_cmds=
22296postuninstall_cmds=
22297finish_cmds=
22298finish_eval=
22299shlibpath_var=
22300shlibpath_overrides_runpath=unknown
22301version_type=none
22302dynamic_linker="$host_os ld.so"
22303sys_lib_dlsearch_path_spec="/lib /usr/lib"
22304if test "$GCC" = yes; then
22305 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22306 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22307 # if the path contains ";" then we assume it to be the separator
22308 # otherwise default to the standard path separator (i.e. ":") - it is
22309 # assumed that no part of a normal pathname contains ";" but that should
22310 # okay in the real world where ";" in dirpaths is itself problematic.
22311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22312 else
22313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22314 fi
22315else
22316 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22317fi
22318need_lib_prefix=unknown
22319hardcode_into_libs=no
22320
22321# when you set need_version to no, make sure it does not cause -set_version
22322# flags to be left without arguments
22323need_version=unknown
22324
22325case $host_os in
22326aix3*)
22327 version_type=linux
22328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22329 shlibpath_var=LIBPATH
22330
22331 # AIX 3 has no versioning support, so we append a major version to the name.
22332 soname_spec='${libname}${release}${shared_ext}$major'
22333 ;;
22334
22335aix4* | aix5*)
22336 version_type=linux
22337 need_lib_prefix=no
22338 need_version=no
22339 hardcode_into_libs=yes
22340 if test "$host_cpu" = ia64; then
22341 # AIX 5 supports IA64
22342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22343 shlibpath_var=LD_LIBRARY_PATH
22344 else
22345 # With GCC up to 2.95.x, collect2 would create an import file
22346 # for dependence libraries. The import file would start with
22347 # the line `#! .'. This would cause the generated library to
22348 # depend on `.', always an invalid library. This was fixed in
22349 # development snapshots of GCC prior to 3.0.
22350 case $host_os in
22351 aix4 | aix4.[01] | aix4.[01].*)
22352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22353 echo ' yes '
22354 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22355 :
22356 else
22357 can_build_shared=no
22358 fi
22359 ;;
22360 esac
22361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22362 # soname into executable. Probably we can add versioning support to
22363 # collect2, so additional links can be useful in future.
22364 if test "$aix_use_runtimelinking" = yes; then
22365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22366 # instead of lib<name>.a to let people know that these are not
22367 # typical AIX shared libraries.
22368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22369 else
22370 # We preserve .a as extension for shared libraries through AIX4.2
22371 # and later when we are not doing run time linking.
22372 library_names_spec='${libname}${release}.a $libname.a'
22373 soname_spec='${libname}${release}${shared_ext}$major'
22374 fi
22375 shlibpath_var=LIBPATH
22376 fi
22377 ;;
22378
22379amigaos*)
22380 library_names_spec='$libname.ixlibrary $libname.a'
22381 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022382 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 +000022383 ;;
22384
22385beos*)
22386 library_names_spec='${libname}${shared_ext}'
22387 dynamic_linker="$host_os ld.so"
22388 shlibpath_var=LIBRARY_PATH
22389 ;;
22390
Reid Spencer2706f8c2004-09-19 23:53:36 +000022391bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022392 version_type=linux
22393 need_version=no
22394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22395 soname_spec='${libname}${release}${shared_ext}$major'
22396 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22397 shlibpath_var=LD_LIBRARY_PATH
22398 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22399 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22400 # the default ld.so.conf also contains /usr/contrib/lib and
22401 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22402 # libtool to hard-code these into programs
22403 ;;
22404
22405cygwin* | mingw* | pw32*)
22406 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022407 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022408 need_version=no
22409 need_lib_prefix=no
22410
22411 case $GCC,$host_os in
22412 yes,cygwin* | yes,mingw* | yes,pw32*)
22413 library_names_spec='$libname.dll.a'
22414 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022415 postinstall_cmds='base_file=`basename \${file}`~
22416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22417 dldir=$destdir/`dirname \$dlpath`~
22418 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022419 $install_prog $dir/$dlname \$dldir/$dlname~
22420 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22422 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022423 $rm \$dlpath'
22424 shlibpath_overrides_runpath=yes
22425
22426 case $host_os in
22427 cygwin*)
22428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22429 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 +000022430 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022431 ;;
22432 mingw*)
22433 # MinGW DLLs use traditional 'lib' prefix
22434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22435 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22436 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22437 # It is most probably a Windows format PATH printed by
22438 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22439 # path with ; separators, and with drive letters. We can handle the
22440 # drive letters (cygwin fileutils understands them), so leave them,
22441 # especially as we might pass files found there to a mingw objdump,
22442 # which wouldn't understand a cygwinified path. Ahh.
22443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22444 else
22445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22446 fi
22447 ;;
22448 pw32*)
22449 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022450 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 +000022451 ;;
22452 esac
22453 ;;
22454
22455 *)
22456 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22457 ;;
22458 esac
22459 dynamic_linker='Win32 ld.exe'
22460 # FIXME: first we should search . and the directory the executable is in
22461 shlibpath_var=PATH
22462 ;;
22463
22464darwin* | rhapsody*)
22465 dynamic_linker="$host_os dyld"
22466 version_type=darwin
22467 need_lib_prefix=no
22468 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022469 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022470 soname_spec='${libname}${release}${major}$shared_ext'
22471 shlibpath_overrides_runpath=yes
22472 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022473 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022474 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022475 if test "$GCC" = yes; then
22476 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"`
22477 else
22478 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022479 fi
22480 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22481 ;;
22482
22483dgux*)
22484 version_type=linux
22485 need_lib_prefix=no
22486 need_version=no
22487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22488 soname_spec='${libname}${release}${shared_ext}$major'
22489 shlibpath_var=LD_LIBRARY_PATH
22490 ;;
22491
22492freebsd1*)
22493 dynamic_linker=no
22494 ;;
22495
Reid Spencer2706f8c2004-09-19 23:53:36 +000022496kfreebsd*-gnu)
22497 version_type=linux
22498 need_lib_prefix=no
22499 need_version=no
22500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22501 soname_spec='${libname}${release}${shared_ext}$major'
22502 shlibpath_var=LD_LIBRARY_PATH
22503 shlibpath_overrides_runpath=no
22504 hardcode_into_libs=yes
22505 dynamic_linker='GNU ld.so'
22506 ;;
22507
Reid Spencera773bd52006-08-04 18:18:08 +000022508freebsd* | dragonfly*)
22509 # DragonFly does not have aout. When/if they implement a new
22510 # versioning mechanism, adjust this.
22511 if test -x /usr/bin/objformat; then
22512 objformat=`/usr/bin/objformat`
22513 else
22514 case $host_os in
22515 freebsd[123]*) objformat=aout ;;
22516 *) objformat=elf ;;
22517 esac
22518 fi
John Criswell47fdd832003-07-14 16:52:07 +000022519 version_type=freebsd-$objformat
22520 case $version_type in
22521 freebsd-elf*)
22522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22523 need_version=no
22524 need_lib_prefix=no
22525 ;;
22526 freebsd-*)
22527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22528 need_version=yes
22529 ;;
22530 esac
22531 shlibpath_var=LD_LIBRARY_PATH
22532 case $host_os in
22533 freebsd2*)
22534 shlibpath_overrides_runpath=yes
22535 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022536 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022537 shlibpath_overrides_runpath=yes
22538 hardcode_into_libs=yes
22539 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022540 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22541 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022542 shlibpath_overrides_runpath=no
22543 hardcode_into_libs=yes
22544 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022545 freebsd*) # from 4.6 on
22546 shlibpath_overrides_runpath=yes
22547 hardcode_into_libs=yes
22548 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022549 esac
22550 ;;
22551
22552gnu*)
22553 version_type=linux
22554 need_lib_prefix=no
22555 need_version=no
22556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22557 soname_spec='${libname}${release}${shared_ext}$major'
22558 shlibpath_var=LD_LIBRARY_PATH
22559 hardcode_into_libs=yes
22560 ;;
22561
22562hpux9* | hpux10* | hpux11*)
22563 # Give a soname corresponding to the major version so that dld.sl refuses to
22564 # link against other versions.
22565 version_type=sunos
22566 need_lib_prefix=no
22567 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022568 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022569 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022570 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022571 hardcode_into_libs=yes
22572 dynamic_linker="$host_os dld.so"
22573 shlibpath_var=LD_LIBRARY_PATH
22574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22576 soname_spec='${libname}${release}${shared_ext}$major'
22577 if test "X$HPUX_IA64_MODE" = X32; then
22578 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22579 else
22580 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22581 fi
22582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22583 ;;
22584 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022585 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022586 hardcode_into_libs=yes
22587 dynamic_linker="$host_os dld.sl"
22588 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591 soname_spec='${libname}${release}${shared_ext}$major'
22592 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22594 ;;
22595 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022596 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022597 dynamic_linker="$host_os dld.sl"
22598 shlibpath_var=SHLIB_PATH
22599 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
22603 esac
22604 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22605 postinstall_cmds='chmod 555 $lib'
22606 ;;
22607
Reid Spencera773bd52006-08-04 18:18:08 +000022608interix3*)
22609 version_type=linux
22610 need_lib_prefix=no
22611 need_version=no
22612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22613 soname_spec='${libname}${release}${shared_ext}$major'
22614 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22615 shlibpath_var=LD_LIBRARY_PATH
22616 shlibpath_overrides_runpath=no
22617 hardcode_into_libs=yes
22618 ;;
22619
John Criswell47fdd832003-07-14 16:52:07 +000022620irix5* | irix6* | nonstopux*)
22621 case $host_os in
22622 nonstopux*) version_type=nonstopux ;;
22623 *)
22624 if test "$lt_cv_prog_gnu_ld" = yes; then
22625 version_type=linux
22626 else
22627 version_type=irix
22628 fi ;;
22629 esac
22630 need_lib_prefix=no
22631 need_version=no
22632 soname_spec='${libname}${release}${shared_ext}$major'
22633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22634 case $host_os in
22635 irix5* | nonstopux*)
22636 libsuff= shlibsuff=
22637 ;;
22638 *)
22639 case $LD in # libtool.m4 will add one of these switches to LD
22640 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22641 libsuff= shlibsuff= libmagic=32-bit;;
22642 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22643 libsuff=32 shlibsuff=N32 libmagic=N32;;
22644 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22645 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22646 *) libsuff= shlibsuff= libmagic=never-match;;
22647 esac
22648 ;;
22649 esac
22650 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22651 shlibpath_overrides_runpath=no
22652 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22653 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22654 hardcode_into_libs=yes
22655 ;;
22656
22657# No shared lib support for Linux oldld, aout, or coff.
22658linux*oldld* | linux*aout* | linux*coff*)
22659 dynamic_linker=no
22660 ;;
22661
22662# This must be Linux ELF.
22663linux*)
22664 version_type=linux
22665 need_lib_prefix=no
22666 need_version=no
22667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22668 soname_spec='${libname}${release}${shared_ext}$major'
22669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22670 shlibpath_var=LD_LIBRARY_PATH
22671 shlibpath_overrides_runpath=no
22672 # This implies no fast_install, which is unacceptable.
22673 # Some rework will be needed to allow for fast_install
22674 # before this can be enabled.
22675 hardcode_into_libs=yes
22676
Reid Spencer2706f8c2004-09-19 23:53:36 +000022677 # Append ld.so.conf contents to the search path
22678 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022679 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 +000022680 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22681 fi
22682
John Criswell47fdd832003-07-14 16:52:07 +000022683 # We used to test for /lib/ld.so.1 and disable shared libraries on
22684 # powerpc, because MkLinux only supported shared libraries with the
22685 # GNU dynamic linker. Since this was broken with cross compilers,
22686 # most powerpc-linux boxes support dynamic linking these days and
22687 # people can always --disable-shared, the test was removed, and we
22688 # assume the GNU/Linux dynamic linker is in use.
22689 dynamic_linker='GNU/Linux ld.so'
22690 ;;
22691
Reid Spencer2706f8c2004-09-19 23:53:36 +000022692knetbsd*-gnu)
22693 version_type=linux
22694 need_lib_prefix=no
22695 need_version=no
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22697 soname_spec='${libname}${release}${shared_ext}$major'
22698 shlibpath_var=LD_LIBRARY_PATH
22699 shlibpath_overrides_runpath=no
22700 hardcode_into_libs=yes
22701 dynamic_linker='GNU ld.so'
22702 ;;
22703
John Criswell47fdd832003-07-14 16:52:07 +000022704netbsd*)
22705 version_type=sunos
22706 need_lib_prefix=no
22707 need_version=no
22708 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22711 dynamic_linker='NetBSD (a.out) ld.so'
22712 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022714 soname_spec='${libname}${release}${shared_ext}$major'
22715 dynamic_linker='NetBSD ld.elf_so'
22716 fi
22717 shlibpath_var=LD_LIBRARY_PATH
22718 shlibpath_overrides_runpath=yes
22719 hardcode_into_libs=yes
22720 ;;
22721
22722newsos6)
22723 version_type=linux
22724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22725 shlibpath_var=LD_LIBRARY_PATH
22726 shlibpath_overrides_runpath=yes
22727 ;;
22728
Reid Spencer2706f8c2004-09-19 23:53:36 +000022729nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022730 version_type=linux
22731 need_lib_prefix=no
22732 need_version=no
22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22734 soname_spec='${libname}${release}${shared_ext}$major'
22735 shlibpath_var=LD_LIBRARY_PATH
22736 shlibpath_overrides_runpath=yes
22737 ;;
22738
22739openbsd*)
22740 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022741 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022742 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022743 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22744 case $host_os in
22745 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22746 *) need_version=no ;;
22747 esac
John Criswell47fdd832003-07-14 16:52:07 +000022748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22750 shlibpath_var=LD_LIBRARY_PATH
22751 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22752 case $host_os in
22753 openbsd2.[89] | openbsd2.[89].*)
22754 shlibpath_overrides_runpath=no
22755 ;;
22756 *)
22757 shlibpath_overrides_runpath=yes
22758 ;;
22759 esac
22760 else
22761 shlibpath_overrides_runpath=yes
22762 fi
22763 ;;
22764
22765os2*)
22766 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022767 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022768 need_lib_prefix=no
22769 library_names_spec='$libname${shared_ext} $libname.a'
22770 dynamic_linker='OS/2 ld.exe'
22771 shlibpath_var=LIBPATH
22772 ;;
22773
22774osf3* | osf4* | osf5*)
22775 version_type=osf
22776 need_lib_prefix=no
22777 need_version=no
22778 soname_spec='${libname}${release}${shared_ext}$major'
22779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22780 shlibpath_var=LD_LIBRARY_PATH
22781 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22782 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22783 ;;
22784
John Criswell47fdd832003-07-14 16:52:07 +000022785solaris*)
22786 version_type=linux
22787 need_lib_prefix=no
22788 need_version=no
22789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22790 soname_spec='${libname}${release}${shared_ext}$major'
22791 shlibpath_var=LD_LIBRARY_PATH
22792 shlibpath_overrides_runpath=yes
22793 hardcode_into_libs=yes
22794 # ldd complains unless libraries are executable
22795 postinstall_cmds='chmod +x $lib'
22796 ;;
22797
22798sunos4*)
22799 version_type=sunos
22800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22802 shlibpath_var=LD_LIBRARY_PATH
22803 shlibpath_overrides_runpath=yes
22804 if test "$with_gnu_ld" = yes; then
22805 need_lib_prefix=no
22806 fi
22807 need_version=yes
22808 ;;
22809
Reid Spencera773bd52006-08-04 18:18:08 +000022810sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022811 version_type=linux
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22813 soname_spec='${libname}${release}${shared_ext}$major'
22814 shlibpath_var=LD_LIBRARY_PATH
22815 case $host_vendor in
22816 sni)
22817 shlibpath_overrides_runpath=no
22818 need_lib_prefix=no
22819 export_dynamic_flag_spec='${wl}-Blargedynsym'
22820 runpath_var=LD_RUN_PATH
22821 ;;
22822 siemens)
22823 need_lib_prefix=no
22824 ;;
22825 motorola)
22826 need_lib_prefix=no
22827 need_version=no
22828 shlibpath_overrides_runpath=no
22829 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22830 ;;
22831 esac
22832 ;;
22833
22834sysv4*MP*)
22835 if test -d /usr/nec ;then
22836 version_type=linux
22837 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22838 soname_spec='$libname${shared_ext}.$major'
22839 shlibpath_var=LD_LIBRARY_PATH
22840 fi
22841 ;;
22842
Reid Spencera773bd52006-08-04 18:18:08 +000022843sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22844 version_type=freebsd-elf
22845 need_lib_prefix=no
22846 need_version=no
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 hardcode_into_libs=yes
22851 if test "$with_gnu_ld" = yes; then
22852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22853 shlibpath_overrides_runpath=no
22854 else
22855 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22856 shlibpath_overrides_runpath=yes
22857 case $host_os in
22858 sco3.2v5*)
22859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22860 ;;
22861 esac
22862 fi
22863 sys_lib_dlsearch_path_spec='/usr/lib'
22864 ;;
22865
John Criswell47fdd832003-07-14 16:52:07 +000022866uts4*)
22867 version_type=linux
22868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22869 soname_spec='${libname}${release}${shared_ext}$major'
22870 shlibpath_var=LD_LIBRARY_PATH
22871 ;;
22872
22873*)
22874 dynamic_linker=no
22875 ;;
22876esac
Reid Spencera773bd52006-08-04 18:18:08 +000022877{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22878echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022879test "$dynamic_linker" = no && can_build_shared=no
22880
Reid Spencera773bd52006-08-04 18:18:08 +000022881variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22882if test "$GCC" = yes; then
22883 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22884fi
22885
22886{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22887echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022888hardcode_action_F77=
22889if test -n "$hardcode_libdir_flag_spec_F77" || \
22890 test -n "$runpath_var_F77" || \
22891 test "X$hardcode_automatic_F77" = "Xyes" ; then
22892
22893 # We can hardcode non-existant directories.
22894 if test "$hardcode_direct_F77" != no &&
22895 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22896 # have to relink, otherwise we might link with an installed library
22897 # when we should be linking with a yet-to-be-installed one
22898 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22899 test "$hardcode_minus_L_F77" != no; then
22900 # Linking always hardcodes the temporary library directory.
22901 hardcode_action_F77=relink
22902 else
22903 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22904 hardcode_action_F77=immediate
22905 fi
22906else
22907 # We cannot hardcode anything, or else we can only hardcode existing
22908 # directories.
22909 hardcode_action_F77=unsupported
22910fi
Reid Spencera773bd52006-08-04 18:18:08 +000022911{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22912echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022913
22914if test "$hardcode_action_F77" = relink; then
22915 # Fast installation is not supported
22916 enable_fast_install=no
22917elif test "$shlibpath_overrides_runpath" = yes ||
22918 test "$enable_shared" = no; then
22919 # Fast installation is not necessary
22920 enable_fast_install=needless
22921fi
22922
John Criswell47fdd832003-07-14 16:52:07 +000022923
22924# The else clause should only fire when bootstrapping the
22925# libtool distribution, otherwise you forgot to ship ltmain.sh
22926# with your package, and you will get complaints that there are
22927# no rules to generate ltmain.sh.
22928if test -f "$ltmain"; then
22929 # See if we are running on zsh, and set the options which allow our commands through
22930 # without removal of \ escapes.
22931 if test -n "${ZSH_VERSION+set}" ; then
22932 setopt NO_GLOB_SUBST
22933 fi
22934 # Now quote all the things that may contain metacharacters while being
22935 # careful not to overquote the AC_SUBSTed values. We take copies of the
22936 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022937 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 +000022938 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022939 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22940 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22941 deplibs_check_method reload_flag reload_cmds need_locks \
22942 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22943 lt_cv_sys_global_symbol_to_c_name_address \
22944 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22945 old_postinstall_cmds old_postuninstall_cmds \
22946 compiler_F77 \
22947 CC_F77 \
22948 LD_F77 \
22949 lt_prog_compiler_wl_F77 \
22950 lt_prog_compiler_pic_F77 \
22951 lt_prog_compiler_static_F77 \
22952 lt_prog_compiler_no_builtin_flag_F77 \
22953 export_dynamic_flag_spec_F77 \
22954 thread_safe_flag_spec_F77 \
22955 whole_archive_flag_spec_F77 \
22956 enable_shared_with_static_runtimes_F77 \
22957 old_archive_cmds_F77 \
22958 old_archive_from_new_cmds_F77 \
22959 predep_objects_F77 \
22960 postdep_objects_F77 \
22961 predeps_F77 \
22962 postdeps_F77 \
22963 compiler_lib_search_path_F77 \
22964 archive_cmds_F77 \
22965 archive_expsym_cmds_F77 \
22966 postinstall_cmds_F77 \
22967 postuninstall_cmds_F77 \
22968 old_archive_from_expsyms_cmds_F77 \
22969 allow_undefined_flag_F77 \
22970 no_undefined_flag_F77 \
22971 export_symbols_cmds_F77 \
22972 hardcode_libdir_flag_spec_F77 \
22973 hardcode_libdir_flag_spec_ld_F77 \
22974 hardcode_libdir_separator_F77 \
22975 hardcode_automatic_F77 \
22976 module_cmds_F77 \
22977 module_expsym_cmds_F77 \
22978 lt_cv_prog_compiler_c_o_F77 \
22979 exclude_expsyms_F77 \
22980 include_expsyms_F77; do
22981
22982 case $var in
22983 old_archive_cmds_F77 | \
22984 old_archive_from_new_cmds_F77 | \
22985 archive_cmds_F77 | \
22986 archive_expsym_cmds_F77 | \
22987 module_cmds_F77 | \
22988 module_expsym_cmds_F77 | \
22989 old_archive_from_expsyms_cmds_F77 | \
22990 export_symbols_cmds_F77 | \
22991 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22992 postinstall_cmds | postuninstall_cmds | \
22993 old_postinstall_cmds | old_postuninstall_cmds | \
22994 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22995 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022996 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 +000022997 ;;
22998 *)
22999 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23000 ;;
23001 esac
23002 done
23003
23004 case $lt_echo in
23005 *'\$0 --fallback-echo"')
23006 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23007 ;;
23008 esac
23009
23010cfgfile="$ofile"
23011
23012 cat <<__EOF__ >> "$cfgfile"
23013# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23014
23015# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23016
23017# Shell to use when invoking shell scripts.
23018SHELL=$lt_SHELL
23019
23020# Whether or not to build shared libraries.
23021build_libtool_libs=$enable_shared
23022
23023# Whether or not to build static libraries.
23024build_old_libs=$enable_static
23025
23026# Whether or not to add -lc for building shared libraries.
23027build_libtool_need_lc=$archive_cmds_need_lc_F77
23028
23029# Whether or not to disallow shared libs when runtime libs are static
23030allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23031
23032# Whether or not to optimize for fast installation.
23033fast_install=$enable_fast_install
23034
23035# The host system.
23036host_alias=$host_alias
23037host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023038host_os=$host_os
23039
23040# The build system.
23041build_alias=$build_alias
23042build=$build
23043build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023044
23045# An echo program that does not interpret backslashes.
23046echo=$lt_echo
23047
23048# The archiver.
23049AR=$lt_AR
23050AR_FLAGS=$lt_AR_FLAGS
23051
23052# A C compiler.
23053LTCC=$lt_LTCC
23054
Reid Spencera773bd52006-08-04 18:18:08 +000023055# LTCC compiler flags.
23056LTCFLAGS=$lt_LTCFLAGS
23057
John Criswell47fdd832003-07-14 16:52:07 +000023058# A language-specific compiler.
23059CC=$lt_compiler_F77
23060
23061# Is the compiler the GNU C compiler?
23062with_gcc=$GCC_F77
23063
23064# An ERE matcher.
23065EGREP=$lt_EGREP
23066
23067# The linker used to build libraries.
23068LD=$lt_LD_F77
23069
23070# Whether we need hard or soft links.
23071LN_S=$lt_LN_S
23072
23073# A BSD-compatible nm program.
23074NM=$lt_NM
23075
23076# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023077STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023078
23079# Used to examine libraries when file_magic_cmd begins "file"
23080MAGIC_CMD=$MAGIC_CMD
23081
23082# Used on cygwin: DLL creation program.
23083DLLTOOL="$DLLTOOL"
23084
23085# Used on cygwin: object dumper.
23086OBJDUMP="$OBJDUMP"
23087
23088# Used on cygwin: assembler.
23089AS="$AS"
23090
23091# The name of the directory that contains temporary libtool files.
23092objdir=$objdir
23093
23094# How to create reloadable object files.
23095reload_flag=$lt_reload_flag
23096reload_cmds=$lt_reload_cmds
23097
23098# How to pass a linker flag through the compiler.
23099wl=$lt_lt_prog_compiler_wl_F77
23100
23101# Object file suffix (normally "o").
23102objext="$ac_objext"
23103
23104# Old archive suffix (normally "a").
23105libext="$libext"
23106
23107# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023108shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023109
23110# Executable file suffix (normally "").
23111exeext="$exeext"
23112
23113# Additional compiler flags for building library objects.
23114pic_flag=$lt_lt_prog_compiler_pic_F77
23115pic_mode=$pic_mode
23116
23117# What is the maximum length of a command?
23118max_cmd_len=$lt_cv_sys_max_cmd_len
23119
23120# Does compiler simultaneously support -c and -o options?
23121compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23122
Reid Spencera773bd52006-08-04 18:18:08 +000023123# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023124need_locks=$lt_need_locks
23125
23126# Do we need the lib prefix for modules?
23127need_lib_prefix=$need_lib_prefix
23128
23129# Do we need a version for libraries?
23130need_version=$need_version
23131
23132# Whether dlopen is supported.
23133dlopen_support=$enable_dlopen
23134
23135# Whether dlopen of programs is supported.
23136dlopen_self=$enable_dlopen_self
23137
23138# Whether dlopen of statically linked programs is supported.
23139dlopen_self_static=$enable_dlopen_self_static
23140
23141# Compiler flag to prevent dynamic linking.
23142link_static_flag=$lt_lt_prog_compiler_static_F77
23143
23144# Compiler flag to turn off builtin functions.
23145no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23146
23147# Compiler flag to allow reflexive dlopens.
23148export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23149
23150# Compiler flag to generate shared objects directly from archives.
23151whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23152
23153# Compiler flag to generate thread-safe objects.
23154thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23155
23156# Library versioning type.
23157version_type=$version_type
23158
23159# Format of library name prefix.
23160libname_spec=$lt_libname_spec
23161
23162# List of archive names. First name is the real one, the rest are links.
23163# The last name is the one that the linker finds with -lNAME.
23164library_names_spec=$lt_library_names_spec
23165
23166# The coded name of the library, if different from the real name.
23167soname_spec=$lt_soname_spec
23168
23169# Commands used to build and install an old-style archive.
23170RANLIB=$lt_RANLIB
23171old_archive_cmds=$lt_old_archive_cmds_F77
23172old_postinstall_cmds=$lt_old_postinstall_cmds
23173old_postuninstall_cmds=$lt_old_postuninstall_cmds
23174
23175# Create an old-style archive from a shared archive.
23176old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23177
23178# Create a temporary old-style archive to link instead of a shared archive.
23179old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23180
23181# Commands used to build and install a shared archive.
23182archive_cmds=$lt_archive_cmds_F77
23183archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23184postinstall_cmds=$lt_postinstall_cmds
23185postuninstall_cmds=$lt_postuninstall_cmds
23186
23187# Commands used to build a loadable module (assumed same as above if empty)
23188module_cmds=$lt_module_cmds_F77
23189module_expsym_cmds=$lt_module_expsym_cmds_F77
23190
23191# Commands to strip libraries.
23192old_striplib=$lt_old_striplib
23193striplib=$lt_striplib
23194
23195# Dependencies to place before the objects being linked to create a
23196# shared library.
23197predep_objects=$lt_predep_objects_F77
23198
23199# Dependencies to place after the objects being linked to create a
23200# shared library.
23201postdep_objects=$lt_postdep_objects_F77
23202
23203# Dependencies to place before the objects being linked to create a
23204# shared library.
23205predeps=$lt_predeps_F77
23206
23207# Dependencies to place after the objects being linked to create a
23208# shared library.
23209postdeps=$lt_postdeps_F77
23210
23211# The library search path used internally by the compiler when linking
23212# a shared library.
23213compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23214
23215# Method to check whether dependent libraries are shared objects.
23216deplibs_check_method=$lt_deplibs_check_method
23217
23218# Command to use when deplibs_check_method == file_magic.
23219file_magic_cmd=$lt_file_magic_cmd
23220
23221# Flag that allows shared libraries with undefined symbols to be built.
23222allow_undefined_flag=$lt_allow_undefined_flag_F77
23223
23224# Flag that forces no undefined symbols.
23225no_undefined_flag=$lt_no_undefined_flag_F77
23226
23227# Commands used to finish a libtool library installation in a directory.
23228finish_cmds=$lt_finish_cmds
23229
23230# Same as above, but a single script fragment to be evaled but not shown.
23231finish_eval=$lt_finish_eval
23232
23233# Take the output of nm and produce a listing of raw symbols and C names.
23234global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23235
23236# Transform the output of nm in a proper C declaration
23237global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23238
23239# Transform the output of nm in a C name address pair
23240global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23241
23242# This is the shared library runtime path variable.
23243runpath_var=$runpath_var
23244
23245# This is the shared library path variable.
23246shlibpath_var=$shlibpath_var
23247
23248# Is shlibpath searched before the hard-coded library search path?
23249shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23250
23251# How to hardcode a shared library path into an executable.
23252hardcode_action=$hardcode_action_F77
23253
23254# Whether we should hardcode library paths into libraries.
23255hardcode_into_libs=$hardcode_into_libs
23256
23257# Flag to hardcode \$libdir into a binary during linking.
23258# This must work even if \$libdir does not exist.
23259hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23260
23261# If ld is used when linking, flag to hardcode \$libdir into
23262# a binary during linking. This must work even if \$libdir does
23263# not exist.
23264hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23265
23266# Whether we need a single -rpath flag with a separated argument.
23267hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23268
23269# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23270# resulting binary.
23271hardcode_direct=$hardcode_direct_F77
23272
23273# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23274# resulting binary.
23275hardcode_minus_L=$hardcode_minus_L_F77
23276
23277# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23278# the resulting binary.
23279hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23280
23281# Set to yes if building a shared library automatically hardcodes DIR into the library
23282# and all subsequent libraries and executables linked against it.
23283hardcode_automatic=$hardcode_automatic_F77
23284
23285# Variables whose values should be saved in libtool wrapper scripts and
23286# restored at relink time.
23287variables_saved_for_relink="$variables_saved_for_relink"
23288
23289# Whether libtool must link a program against all its dependency libraries.
23290link_all_deplibs=$link_all_deplibs_F77
23291
23292# Compile-time system search path for libraries
23293sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23294
23295# Run-time system search path for libraries
23296sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23297
23298# Fix the shell variable \$srcfile for the compiler.
23299fix_srcfile_path="$fix_srcfile_path_F77"
23300
23301# Set to yes if exported symbols are required.
23302always_export_symbols=$always_export_symbols_F77
23303
23304# The commands to list exported symbols.
23305export_symbols_cmds=$lt_export_symbols_cmds_F77
23306
23307# The commands to extract the exported symbol list from a shared archive.
23308extract_expsyms_cmds=$lt_extract_expsyms_cmds
23309
23310# Symbols that should not be listed in the preloaded symbols.
23311exclude_expsyms=$lt_exclude_expsyms_F77
23312
23313# Symbols that must always be exported.
23314include_expsyms=$lt_include_expsyms_F77
23315
23316# ### END LIBTOOL TAG CONFIG: $tagname
23317
23318__EOF__
23319
23320
23321else
23322 # If there is no Makefile yet, we rely on a make rule to execute
23323 # `config.status --recheck' to rerun these tests and create the
23324 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023325 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23326 if test -f "$ltmain_in"; then
23327 test -f Makefile && make "$ltmain"
23328 fi
John Criswell47fdd832003-07-14 16:52:07 +000023329fi
23330
23331
23332ac_ext=c
23333ac_cpp='$CPP $CPPFLAGS'
23334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23336ac_compiler_gnu=$ac_cv_c_compiler_gnu
23337
23338CC="$lt_save_CC"
23339
23340 else
23341 tagname=""
23342 fi
23343 ;;
23344
23345 GCJ)
23346 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023347 ac_ext=c
23348ac_cpp='$CPP $CPPFLAGS'
23349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23351ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023352
23353
23354# Source file extension for Java test sources.
23355ac_ext=java
23356
23357# Object file extension for compiled Java test sources.
23358objext=o
23359objext_GCJ=$objext
23360
23361# Code to be used in simple compile tests
23362lt_simple_compile_test_code="class foo {}\n"
23363
23364# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023365lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023366
23367# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23368
23369# If no C compiler was specified, use CC.
23370LTCC=${LTCC-"$CC"}
23371
Reid Spencera773bd52006-08-04 18:18:08 +000023372# If no C compiler flags were specified, use CFLAGS.
23373LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23374
John Criswell47fdd832003-07-14 16:52:07 +000023375# Allow CC to be a program name with arguments.
23376compiler=$CC
23377
23378
Reid Spencera773bd52006-08-04 18:18:08 +000023379# save warnings/boilerplate of simple test code
23380ac_outfile=conftest.$ac_objext
23381printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23382eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23383_lt_compiler_boilerplate=`cat conftest.err`
23384$rm conftest*
23385
23386ac_outfile=conftest.$ac_objext
23387printf "$lt_simple_link_test_code" >conftest.$ac_ext
23388eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23389_lt_linker_boilerplate=`cat conftest.err`
23390$rm conftest*
23391
23392
John Criswell47fdd832003-07-14 16:52:07 +000023393# Allow CC to be a program name with arguments.
23394lt_save_CC="$CC"
23395CC=${GCJ-"gcj"}
23396compiler=$CC
23397compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023398for cc_temp in $compiler""; do
23399 case $cc_temp in
23400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23402 \-*) ;;
23403 *) break;;
23404 esac
23405done
23406cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23407
John Criswell47fdd832003-07-14 16:52:07 +000023408
23409# GCJ did not exist at the time GCC didn't implicitly link libc in.
23410archive_cmds_need_lc_GCJ=no
23411
Reid Spencera773bd52006-08-04 18:18:08 +000023412old_archive_cmds_GCJ=$old_archive_cmds
23413
John Criswell47fdd832003-07-14 16:52:07 +000023414
23415lt_prog_compiler_no_builtin_flag_GCJ=
23416
23417if test "$GCC" = yes; then
23418 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23419
Reid Spencer2706f8c2004-09-19 23:53:36 +000023420
Reid Spencera773bd52006-08-04 18:18:08 +000023421{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23422echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023423if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
23425else
23426 lt_cv_prog_compiler_rtti_exceptions=no
23427 ac_outfile=conftest.$ac_objext
23428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23429 lt_compiler_flag="-fno-rtti -fno-exceptions"
23430 # Insert the option either (1) after the last *FLAGS variable, or
23431 # (2) before a word containing "conftest.", or (3) at the end.
23432 # Note that $ac_compile itself does not contain backslashes and begins
23433 # with a dollar sign (not a hyphen), so the echo should work correctly.
23434 # The option is referenced via a variable to avoid confusing sed.
23435 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23438 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb2ed05262006-11-03 18:04:08 +000023439 (eval echo "\"\$as_me:23439: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023440 (eval "$lt_compile" 2>conftest.err)
23441 ac_status=$?
23442 cat conftest.err >&5
Reid Spencerb2ed05262006-11-03 18:04:08 +000023443 echo "$as_me:23443: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023444 if (exit $ac_status) && test -s "$ac_outfile"; then
23445 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023446 # So say no if there are warnings other than the usual output.
23447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023450 lt_cv_prog_compiler_rtti_exceptions=yes
23451 fi
23452 fi
23453 $rm conftest*
23454
23455fi
Reid Spencera773bd52006-08-04 18:18:08 +000023456{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23457echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023458
23459if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23460 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23461else
23462 :
23463fi
23464
23465fi
23466
23467lt_prog_compiler_wl_GCJ=
23468lt_prog_compiler_pic_GCJ=
23469lt_prog_compiler_static_GCJ=
23470
Reid Spencera773bd52006-08-04 18:18:08 +000023471{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23472echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023473
23474 if test "$GCC" = yes; then
23475 lt_prog_compiler_wl_GCJ='-Wl,'
23476 lt_prog_compiler_static_GCJ='-static'
23477
23478 case $host_os in
23479 aix*)
23480 # All AIX code is PIC.
23481 if test "$host_cpu" = ia64; then
23482 # AIX 5 now supports IA64 processor
23483 lt_prog_compiler_static_GCJ='-Bstatic'
23484 fi
23485 ;;
23486
23487 amigaos*)
23488 # FIXME: we need at least 68020 code to build shared libraries, but
23489 # adding the `-m68020' flag to GCC prevents building anything better,
23490 # like `-m68040'.
23491 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23492 ;;
23493
23494 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23495 # PIC is the default for these OSes.
23496 ;;
23497
23498 mingw* | pw32* | os2*)
23499 # This hack is so that the source file can tell whether it is being
23500 # built for inclusion in a dll (and should export symbols for example).
23501 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23502 ;;
23503
23504 darwin* | rhapsody*)
23505 # PIC is the default on this platform
23506 # Common symbols not allowed in MH_DYLIB files
23507 lt_prog_compiler_pic_GCJ='-fno-common'
23508 ;;
23509
Reid Spencera773bd52006-08-04 18:18:08 +000023510 interix3*)
23511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23512 # Instead, we relocate shared libraries at runtime.
23513 ;;
23514
John Criswell47fdd832003-07-14 16:52:07 +000023515 msdosdjgpp*)
23516 # Just because we use GCC doesn't mean we suddenly get shared libraries
23517 # on systems that don't support them.
23518 lt_prog_compiler_can_build_shared_GCJ=no
23519 enable_shared=no
23520 ;;
23521
23522 sysv4*MP*)
23523 if test -d /usr/nec; then
23524 lt_prog_compiler_pic_GCJ=-Kconform_pic
23525 fi
23526 ;;
23527
23528 hpux*)
23529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23530 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023531 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023532 hppa*64*|ia64*)
23533 # +Z the default
23534 ;;
23535 *)
23536 lt_prog_compiler_pic_GCJ='-fPIC'
23537 ;;
23538 esac
23539 ;;
23540
23541 *)
23542 lt_prog_compiler_pic_GCJ='-fPIC'
23543 ;;
23544 esac
23545 else
23546 # PORTME Check for flag to pass linker flags through the system compiler.
23547 case $host_os in
23548 aix*)
23549 lt_prog_compiler_wl_GCJ='-Wl,'
23550 if test "$host_cpu" = ia64; then
23551 # AIX 5 now supports IA64 processor
23552 lt_prog_compiler_static_GCJ='-Bstatic'
23553 else
23554 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23555 fi
23556 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023557 darwin*)
23558 # PIC is the default on this platform
23559 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023560 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023561 xlc*)
23562 lt_prog_compiler_pic_GCJ='-qnocommon'
23563 lt_prog_compiler_wl_GCJ='-Wl,'
23564 ;;
23565 esac
23566 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023567
23568 mingw* | pw32* | os2*)
23569 # This hack is so that the source file can tell whether it is being
23570 # built for inclusion in a dll (and should export symbols for example).
23571 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23572 ;;
23573
23574 hpux9* | hpux10* | hpux11*)
23575 lt_prog_compiler_wl_GCJ='-Wl,'
23576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23577 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023578 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023579 hppa*64*|ia64*)
23580 # +Z the default
23581 ;;
23582 *)
23583 lt_prog_compiler_pic_GCJ='+Z'
23584 ;;
23585 esac
23586 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23587 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23588 ;;
23589
23590 irix5* | irix6* | nonstopux*)
23591 lt_prog_compiler_wl_GCJ='-Wl,'
23592 # PIC (with -KPIC) is the default.
23593 lt_prog_compiler_static_GCJ='-non_shared'
23594 ;;
23595
23596 newsos6)
23597 lt_prog_compiler_pic_GCJ='-KPIC'
23598 lt_prog_compiler_static_GCJ='-Bstatic'
23599 ;;
23600
23601 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023602 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023603 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023604 lt_prog_compiler_wl_GCJ='-Wl,'
23605 lt_prog_compiler_pic_GCJ='-KPIC'
23606 lt_prog_compiler_static_GCJ='-static'
23607 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023608 pgcc* | pgf77* | pgf90* | pgf95*)
23609 # Portland Group compilers (*not* the Pentium gcc compiler,
23610 # which looks to be a dead project)
23611 lt_prog_compiler_wl_GCJ='-Wl,'
23612 lt_prog_compiler_pic_GCJ='-fpic'
23613 lt_prog_compiler_static_GCJ='-Bstatic'
23614 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023615 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023616 lt_prog_compiler_wl_GCJ='-Wl,'
23617 # All Alpha code is PIC.
23618 lt_prog_compiler_static_GCJ='-non_shared'
23619 ;;
23620 esac
23621 ;;
23622
23623 osf3* | osf4* | osf5*)
23624 lt_prog_compiler_wl_GCJ='-Wl,'
23625 # All OSF/1 code is PIC.
23626 lt_prog_compiler_static_GCJ='-non_shared'
23627 ;;
23628
John Criswell47fdd832003-07-14 16:52:07 +000023629 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023630 lt_prog_compiler_pic_GCJ='-KPIC'
23631 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023632 case $cc_basename in
23633 f77* | f90* | f95*)
23634 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23635 *)
23636 lt_prog_compiler_wl_GCJ='-Wl,';;
23637 esac
John Criswell47fdd832003-07-14 16:52:07 +000023638 ;;
23639
23640 sunos4*)
23641 lt_prog_compiler_wl_GCJ='-Qoption ld '
23642 lt_prog_compiler_pic_GCJ='-PIC'
23643 lt_prog_compiler_static_GCJ='-Bstatic'
23644 ;;
23645
Reid Spencera773bd52006-08-04 18:18:08 +000023646 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023647 lt_prog_compiler_wl_GCJ='-Wl,'
23648 lt_prog_compiler_pic_GCJ='-KPIC'
23649 lt_prog_compiler_static_GCJ='-Bstatic'
23650 ;;
23651
23652 sysv4*MP*)
23653 if test -d /usr/nec ;then
23654 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23655 lt_prog_compiler_static_GCJ='-Bstatic'
23656 fi
23657 ;;
23658
Reid Spencera773bd52006-08-04 18:18:08 +000023659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23660 lt_prog_compiler_wl_GCJ='-Wl,'
23661 lt_prog_compiler_pic_GCJ='-KPIC'
23662 lt_prog_compiler_static_GCJ='-Bstatic'
23663 ;;
23664
23665 unicos*)
23666 lt_prog_compiler_wl_GCJ='-Wl,'
23667 lt_prog_compiler_can_build_shared_GCJ=no
23668 ;;
23669
John Criswell47fdd832003-07-14 16:52:07 +000023670 uts4*)
23671 lt_prog_compiler_pic_GCJ='-pic'
23672 lt_prog_compiler_static_GCJ='-Bstatic'
23673 ;;
23674
23675 *)
23676 lt_prog_compiler_can_build_shared_GCJ=no
23677 ;;
23678 esac
23679 fi
23680
Reid Spencera773bd52006-08-04 18:18:08 +000023681{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23682echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023683
23684#
23685# Check to make sure the PIC flag actually works.
23686#
23687if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023688
Reid Spencera773bd52006-08-04 18:18:08 +000023689{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23690echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023691if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23692 echo $ECHO_N "(cached) $ECHO_C" >&6
23693else
23694 lt_prog_compiler_pic_works_GCJ=no
23695 ac_outfile=conftest.$ac_objext
23696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23697 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23698 # Insert the option either (1) after the last *FLAGS variable, or
23699 # (2) before a word containing "conftest.", or (3) at the end.
23700 # Note that $ac_compile itself does not contain backslashes and begins
23701 # with a dollar sign (not a hyphen), so the echo should work correctly.
23702 # The option is referenced via a variable to avoid confusing sed.
23703 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23706 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb2ed05262006-11-03 18:04:08 +000023707 (eval echo "\"\$as_me:23707: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023708 (eval "$lt_compile" 2>conftest.err)
23709 ac_status=$?
23710 cat conftest.err >&5
Reid Spencerb2ed05262006-11-03 18:04:08 +000023711 echo "$as_me:23711: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023712 if (exit $ac_status) && test -s "$ac_outfile"; then
23713 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023714 # So say no if there are warnings other than the usual output.
23715 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023718 lt_prog_compiler_pic_works_GCJ=yes
23719 fi
23720 fi
23721 $rm conftest*
23722
23723fi
Reid Spencera773bd52006-08-04 18:18:08 +000023724{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23725echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023726
23727if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23728 case $lt_prog_compiler_pic_GCJ in
23729 "" | " "*) ;;
23730 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23731 esac
23732else
23733 lt_prog_compiler_pic_GCJ=
23734 lt_prog_compiler_can_build_shared_GCJ=no
23735fi
23736
23737fi
Reid Spencera773bd52006-08-04 18:18:08 +000023738case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023739 # For platforms which do not support PIC, -DPIC is meaningless:
23740 *djgpp*)
23741 lt_prog_compiler_pic_GCJ=
23742 ;;
23743 *)
23744 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23745 ;;
23746esac
23747
Reid Spencera773bd52006-08-04 18:18:08 +000023748#
23749# Check to make sure the static flag actually works.
23750#
23751wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23752{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23753echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23754if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23756else
23757 lt_prog_compiler_static_works_GCJ=no
23758 save_LDFLAGS="$LDFLAGS"
23759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23760 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23762 # The linker can only warn and ignore the option if not recognized
23763 # So say no if there are warnings
23764 if test -s conftest.err; then
23765 # Append any errors to the config.log.
23766 cat conftest.err 1>&5
23767 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23769 if diff conftest.exp conftest.er2 >/dev/null; then
23770 lt_prog_compiler_static_works_GCJ=yes
23771 fi
23772 else
23773 lt_prog_compiler_static_works_GCJ=yes
23774 fi
23775 fi
23776 $rm conftest*
23777 LDFLAGS="$save_LDFLAGS"
23778
23779fi
23780{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23781echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23782
23783if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23784 :
23785else
23786 lt_prog_compiler_static_GCJ=
23787fi
23788
23789
23790{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23791echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023792if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23793 echo $ECHO_N "(cached) $ECHO_C" >&6
23794else
23795 lt_cv_prog_compiler_c_o_GCJ=no
23796 $rm -r conftest 2>/dev/null
23797 mkdir conftest
23798 cd conftest
23799 mkdir out
23800 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23801
John Criswell47fdd832003-07-14 16:52:07 +000023802 lt_compiler_flag="-o out/conftest2.$ac_objext"
23803 # Insert the option either (1) after the last *FLAGS variable, or
23804 # (2) before a word containing "conftest.", or (3) at the end.
23805 # Note that $ac_compile itself does not contain backslashes and begins
23806 # with a dollar sign (not a hyphen), so the echo should work correctly.
23807 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23810 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb2ed05262006-11-03 18:04:08 +000023811 (eval echo "\"\$as_me:23811: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023812 (eval "$lt_compile" 2>out/conftest.err)
23813 ac_status=$?
23814 cat out/conftest.err >&5
Reid Spencerb2ed05262006-11-03 18:04:08 +000023815 echo "$as_me:23815: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23817 then
23818 # The compiler can only warn and ignore the option if not recognized
23819 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023823 lt_cv_prog_compiler_c_o_GCJ=yes
23824 fi
23825 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023826 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023827 $rm conftest*
23828 # SGI C++ compiler will create directory out/ii_files/ for
23829 # template instantiation
23830 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23831 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023832 cd ..
23833 rmdir conftest
23834 $rm conftest*
23835
23836fi
Reid Spencera773bd52006-08-04 18:18:08 +000023837{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23838echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023839
23840
23841hard_links="nottested"
23842if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23843 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023844 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23845echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023846 hard_links=yes
23847 $rm conftest*
23848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23849 touch conftest.a
23850 ln conftest.a conftest.b 2>&5 || hard_links=no
23851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023852 { echo "$as_me:$LINENO: result: $hard_links" >&5
23853echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023854 if test "$hard_links" = no; then
23855 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23856echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23857 need_locks=warn
23858 fi
23859else
23860 need_locks=no
23861fi
23862
Reid Spencera773bd52006-08-04 18:18:08 +000023863{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23864echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023865
23866 runpath_var=
23867 allow_undefined_flag_GCJ=
23868 enable_shared_with_static_runtimes_GCJ=no
23869 archive_cmds_GCJ=
23870 archive_expsym_cmds_GCJ=
23871 old_archive_From_new_cmds_GCJ=
23872 old_archive_from_expsyms_cmds_GCJ=
23873 export_dynamic_flag_spec_GCJ=
23874 whole_archive_flag_spec_GCJ=
23875 thread_safe_flag_spec_GCJ=
23876 hardcode_libdir_flag_spec_GCJ=
23877 hardcode_libdir_flag_spec_ld_GCJ=
23878 hardcode_libdir_separator_GCJ=
23879 hardcode_direct_GCJ=no
23880 hardcode_minus_L_GCJ=no
23881 hardcode_shlibpath_var_GCJ=unsupported
23882 link_all_deplibs_GCJ=unknown
23883 hardcode_automatic_GCJ=no
23884 module_cmds_GCJ=
23885 module_expsym_cmds_GCJ=
23886 always_export_symbols_GCJ=no
23887 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23888 # include_expsyms should be a list of space-separated symbols to be *always*
23889 # included in the symbol list
23890 include_expsyms_GCJ=
23891 # exclude_expsyms can be an extended regexp of symbols to exclude
23892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23894 # as well as any symbol that contains `d'.
23895 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23897 # platforms (ab)use it in PIC code, but their linkers get confused if
23898 # the symbol is explicitly referenced. Since portable code cannot
23899 # rely on this symbol name, it's probably fine to never include it in
23900 # preloaded symbol tables.
23901 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023902 # Just being paranoid about ensuring that cc_basename is set.
23903 for cc_temp in $compiler""; do
23904 case $cc_temp in
23905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23907 \-*) ;;
23908 *) break;;
23909 esac
23910done
23911cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023912
23913 case $host_os in
23914 cygwin* | mingw* | pw32*)
23915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23916 # When not using gcc, we currently assume that we are using
23917 # Microsoft Visual C++.
23918 if test "$GCC" != yes; then
23919 with_gnu_ld=no
23920 fi
23921 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023922 interix*)
23923 # we just hope/assume this is gcc and not c89 (= MSVC++)
23924 with_gnu_ld=yes
23925 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023926 openbsd*)
23927 with_gnu_ld=no
23928 ;;
23929 esac
23930
23931 ld_shlibs_GCJ=yes
23932 if test "$with_gnu_ld" = yes; then
23933 # If archive_cmds runs LD, not CC, wlarc should be empty
23934 wlarc='${wl}'
23935
Reid Spencera773bd52006-08-04 18:18:08 +000023936 # Set some defaults for GNU ld with shared library support. These
23937 # are reset later if shared libraries are not supported. Putting them
23938 # here allows them to be overridden if necessary.
23939 runpath_var=LD_RUN_PATH
23940 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23941 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23942 # ancient GNU ld didn't support --whole-archive et. al.
23943 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23944 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23945 else
23946 whole_archive_flag_spec_GCJ=
23947 fi
23948 supports_anon_versioning=no
23949 case `$LD -v 2>/dev/null` in
23950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23953 *\ 2.11.*) ;; # other 2.11 versions
23954 *) supports_anon_versioning=yes ;;
23955 esac
23956
John Criswell47fdd832003-07-14 16:52:07 +000023957 # See if GNU ld supports shared libraries.
23958 case $host_os in
23959 aix3* | aix4* | aix5*)
23960 # On AIX/PPC, the GNU linker is very broken
23961 if test "$host_cpu" != ia64; then
23962 ld_shlibs_GCJ=no
23963 cat <<EOF 1>&2
23964
23965*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23966*** to be unable to reliably create shared libraries on AIX.
23967*** Therefore, libtool is disabling shared libraries support. If you
23968*** really care for shared libraries, you may want to modify your PATH
23969*** so that a non-GNU linker is found, and then restart.
23970
23971EOF
23972 fi
23973 ;;
23974
23975 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023976 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 +000023977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23978 hardcode_minus_L_GCJ=yes
23979
23980 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23981 # that the semantics of dynamic libraries on AmigaOS, at least up
23982 # to version 4, is to share data among multiple programs linked
23983 # with the same dynamic library. Since this doesn't match the
23984 # behavior of shared libraries on other platforms, we can't use
23985 # them.
23986 ld_shlibs_GCJ=no
23987 ;;
23988
23989 beos*)
23990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23991 allow_undefined_flag_GCJ=unsupported
23992 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23993 # support --undefined. This deserves some investigation. FIXME
23994 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23995 else
23996 ld_shlibs_GCJ=no
23997 fi
23998 ;;
23999
24000 cygwin* | mingw* | pw32*)
24001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24002 # as there is no search path for DLLs.
24003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24004 allow_undefined_flag_GCJ=unsupported
24005 always_export_symbols_GCJ=no
24006 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024007 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 +000024008
24009 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024010 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 +000024011 # If the export-symbols file already is a .def file (1st line
24012 # is EXPORTS), use it as is; otherwise, prepend...
24013 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24014 cp $export_symbols $output_objdir/$soname.def;
24015 else
24016 echo EXPORTS > $output_objdir/$soname.def;
24017 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024018 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024019 $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 +000024020 else
Reid Spencera773bd52006-08-04 18:18:08 +000024021 ld_shlibs_GCJ=no
24022 fi
24023 ;;
24024
24025 interix3*)
24026 hardcode_direct_GCJ=no
24027 hardcode_shlibpath_var_GCJ=no
24028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24029 export_dynamic_flag_spec_GCJ='${wl}-E'
24030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24031 # Instead, shared libraries are loaded at an image base (0x10000000 by
24032 # default) and relocated if they conflict, which is a slow very memory
24033 # consuming and fragmenting process. To avoid this, we pick a random,
24034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24036 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'
24037 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'
24038 ;;
24039
24040 linux*)
24041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24042 tmp_addflag=
24043 case $cc_basename,$host_cpu in
24044 pgcc*) # Portland Group C compiler
24045 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'
24046 tmp_addflag=' $pic_flag'
24047 ;;
24048 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24049 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'
24050 tmp_addflag=' $pic_flag -Mnomain' ;;
24051 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24052 tmp_addflag=' -i_dynamic' ;;
24053 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24054 tmp_addflag=' -i_dynamic -nofor_main' ;;
24055 ifc* | ifort*) # Intel Fortran compiler
24056 tmp_addflag=' -nofor_main' ;;
24057 esac
24058 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24059
24060 if test $supports_anon_versioning = yes; then
24061 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24063 $echo "local: *; };" >> $output_objdir/$libname.ver~
24064 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24065 fi
24066 else
24067 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024068 fi
24069 ;;
24070
24071 netbsd*)
24072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24073 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24074 wlarc=
24075 else
24076 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24077 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24078 fi
24079 ;;
24080
Reid Spencera773bd52006-08-04 18:18:08 +000024081 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024082 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24083 ld_shlibs_GCJ=no
24084 cat <<EOF 1>&2
24085
24086*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24087*** create shared libraries on Solaris systems. Therefore, libtool
24088*** is disabling shared libraries support. We urge you to upgrade GNU
24089*** binutils to release 2.9.1 or newer. Another option is to modify
24090*** your PATH or compiler configuration so that the native linker is
24091*** used, and then restart.
24092
24093EOF
24094 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24095 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24096 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24097 else
24098 ld_shlibs_GCJ=no
24099 fi
24100 ;;
24101
Reid Spencera773bd52006-08-04 18:18:08 +000024102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24103 case `$LD -v 2>&1` in
24104 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24105 ld_shlibs_GCJ=no
24106 cat <<_LT_EOF 1>&2
24107
24108*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24109*** reliably create shared libraries on SCO systems. Therefore, libtool
24110*** is disabling shared libraries support. We urge you to upgrade GNU
24111*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24112*** your PATH or compiler configuration so that the native linker is
24113*** used, and then restart.
24114
24115_LT_EOF
24116 ;;
24117 *)
24118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24119 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24120 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24121 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24122 else
24123 ld_shlibs_GCJ=no
24124 fi
24125 ;;
24126 esac
24127 ;;
24128
John Criswell47fdd832003-07-14 16:52:07 +000024129 sunos4*)
24130 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24131 wlarc=
24132 hardcode_direct_GCJ=yes
24133 hardcode_shlibpath_var_GCJ=no
24134 ;;
24135
24136 *)
24137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24138 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24139 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24140 else
24141 ld_shlibs_GCJ=no
24142 fi
24143 ;;
24144 esac
24145
Reid Spencera773bd52006-08-04 18:18:08 +000024146 if test "$ld_shlibs_GCJ" = no; then
24147 runpath_var=
24148 hardcode_libdir_flag_spec_GCJ=
24149 export_dynamic_flag_spec_GCJ=
24150 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024151 fi
24152 else
24153 # PORTME fill in a description of your system's linker (not GNU ld)
24154 case $host_os in
24155 aix3*)
24156 allow_undefined_flag_GCJ=unsupported
24157 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024158 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 +000024159 # Note: this linker hardcodes the directories in LIBPATH if there
24160 # are no directories specified by -L.
24161 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024162 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024163 # Neither direct hardcoding nor static linking is supported with a
24164 # broken collect2.
24165 hardcode_direct_GCJ=unsupported
24166 fi
24167 ;;
24168
24169 aix4* | aix5*)
24170 if test "$host_cpu" = ia64; then
24171 # On IA64, the linker does run time linking by default, so we don't
24172 # have to do anything special.
24173 aix_use_runtimelinking=no
24174 exp_sym_flag='-Bexport'
24175 no_entry_flag=""
24176 else
24177 # If we're using GNU nm, then we don't want the "-C" option.
24178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24179 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24180 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'
24181 else
24182 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'
24183 fi
24184 aix_use_runtimelinking=no
24185
24186 # Test if we are trying to use run time linking or normal
24187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24188 # need to do runtime linking.
24189 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24190 for ld_flag in $LDFLAGS; do
24191 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24192 aix_use_runtimelinking=yes
24193 break
24194 fi
24195 done
Reid Spencera773bd52006-08-04 18:18:08 +000024196 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024197 esac
24198
24199 exp_sym_flag='-bexport'
24200 no_entry_flag='-bnoentry'
24201 fi
24202
24203 # When large executables or shared objects are built, AIX ld can
24204 # have problems creating the table of contents. If linking a library
24205 # or program results in "error TOC overflow" add -mminimal-toc to
24206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24208
24209 archive_cmds_GCJ=''
24210 hardcode_direct_GCJ=yes
24211 hardcode_libdir_separator_GCJ=':'
24212 link_all_deplibs_GCJ=yes
24213
24214 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024215 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024216 # We only want to do this on AIX 4.2 and lower, the check
24217 # below for broken collect2 doesn't work under 4.3+
24218 collect2name=`${CC} -print-prog-name=collect2`
24219 if test -f "$collect2name" && \
24220 strings "$collect2name" | grep resolve_lib_name >/dev/null
24221 then
24222 # We have reworked collect2
24223 hardcode_direct_GCJ=yes
24224 else
24225 # We have old collect2
24226 hardcode_direct_GCJ=unsupported
24227 # It fails to find uninstalled libraries when the uninstalled
24228 # path is not listed in the libpath. Setting hardcode_minus_L
24229 # to unsupported forces relinking
24230 hardcode_minus_L_GCJ=yes
24231 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24232 hardcode_libdir_separator_GCJ=
24233 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024234 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024235 esac
24236 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024237 if test "$aix_use_runtimelinking" = yes; then
24238 shared_flag="$shared_flag "'${wl}-G'
24239 fi
John Criswell47fdd832003-07-14 16:52:07 +000024240 else
24241 # not using gcc
24242 if test "$host_cpu" = ia64; then
24243 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24244 # chokes on -Wl,-G. The following line is correct:
24245 shared_flag='-G'
24246 else
Reid Spencera773bd52006-08-04 18:18:08 +000024247 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024248 shared_flag='${wl}-G'
24249 else
24250 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024251 fi
John Criswell47fdd832003-07-14 16:52:07 +000024252 fi
24253 fi
24254
24255 # It seems that -bexpall does not export symbols beginning with
24256 # underscore (_), so it is better to generate a list of symbols to export.
24257 always_export_symbols_GCJ=yes
24258 if test "$aix_use_runtimelinking" = yes; then
24259 # Warning - without using the other runtime loading flags (-brtl),
24260 # -berok will link without error, but may produce a broken library.
24261 allow_undefined_flag_GCJ='-berok'
24262 # Determine the default libpath from the value encoded in an empty executable.
24263 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024264/* confdefs.h. */
24265_ACEOF
24266cat confdefs.h >>conftest.$ac_ext
24267cat >>conftest.$ac_ext <<_ACEOF
24268/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024269
John Criswell47fdd832003-07-14 16:52:07 +000024270int
24271main ()
24272{
24273
24274 ;
24275 return 0;
24276}
24277_ACEOF
24278rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024279if { (ac_try="$ac_link"
24280case "(($ac_try" in
24281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24282 *) ac_try_echo=$ac_try;;
24283esac
24284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24285 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024286 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24293 { (case "(($ac_try" in
24294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295 *) ac_try_echo=$ac_try;;
24296esac
24297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024299 ac_status=$?
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); }; } &&
24302 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024303 { (case "(($ac_try" in
24304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305 *) ac_try_echo=$ac_try;;
24306esac
24307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24308 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; }; then
24312
24313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24314}'`
24315# Check for a 64-bit object if we didn't find anything.
24316if 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; }
24317}'`; fi
24318else
24319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024320sed 's/^/| /' conftest.$ac_ext >&5
24321
Reid Spencera773bd52006-08-04 18:18:08 +000024322
John Criswell47fdd832003-07-14 16:52:07 +000024323fi
Reid Spencera773bd52006-08-04 18:18:08 +000024324
24325rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024326 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24328
24329 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024330 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 +000024331 else
24332 if test "$host_cpu" = ia64; then
24333 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24334 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024335 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 +000024336 else
24337 # Determine the default libpath from the value encoded in an empty executable.
24338 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024339/* confdefs.h. */
24340_ACEOF
24341cat confdefs.h >>conftest.$ac_ext
24342cat >>conftest.$ac_ext <<_ACEOF
24343/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024344
John Criswell47fdd832003-07-14 16:52:07 +000024345int
24346main ()
24347{
24348
24349 ;
24350 return 0;
24351}
24352_ACEOF
24353rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024354if { (ac_try="$ac_link"
24355case "(($ac_try" in
24356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24357 *) ac_try_echo=$ac_try;;
24358esac
24359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24360 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024361 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024362 grep -v '^ *+' conftest.er1 >conftest.err
24363 rm -f conftest.er1
24364 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24368 { (case "(($ac_try" in
24369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24370 *) ac_try_echo=$ac_try;;
24371esac
24372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24373 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024374 ac_status=$?
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; } &&
24377 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024378 { (case "(($ac_try" in
24379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24380 *) ac_try_echo=$ac_try;;
24381esac
24382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24383 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024384 ac_status=$?
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); }; }; then
24387
24388aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24389}'`
24390# Check for a 64-bit object if we didn't find anything.
24391if 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; }
24392}'`; fi
24393else
24394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024395sed 's/^/| /' conftest.$ac_ext >&5
24396
Reid Spencera773bd52006-08-04 18:18:08 +000024397
John Criswell47fdd832003-07-14 16:52:07 +000024398fi
Reid Spencera773bd52006-08-04 18:18:08 +000024399
24400rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024401 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024402if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24403
24404 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24405 # Warning - without using the other run time loading flags,
24406 # -berok will link without error, but may produce a broken library.
24407 no_undefined_flag_GCJ=' ${wl}-bernotok'
24408 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024409 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024410 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024411 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024412 # This is similar to how AIX traditionally builds its shared libraries.
24413 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 +000024414 fi
24415 fi
24416 ;;
24417
24418 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024419 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 +000024420 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24421 hardcode_minus_L_GCJ=yes
24422 # see comment about different semantics on the GNU ld section
24423 ld_shlibs_GCJ=no
24424 ;;
24425
Reid Spencer2706f8c2004-09-19 23:53:36 +000024426 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024427 export_dynamic_flag_spec_GCJ=-rdynamic
24428 ;;
24429
24430 cygwin* | mingw* | pw32*)
24431 # When not using gcc, we currently assume that we are using
24432 # Microsoft Visual C++.
24433 # hardcode_libdir_flag_spec is actually meaningless, as there is
24434 # no search path for DLLs.
24435 hardcode_libdir_flag_spec_GCJ=' '
24436 allow_undefined_flag_GCJ=unsupported
24437 # Tell ltmain to make .lib files, not .a files.
24438 libext=lib
24439 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024440 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024441 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024442 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 +000024443 # The linker will automatically build a .lib file if we build a DLL.
24444 old_archive_From_new_cmds_GCJ='true'
24445 # FIXME: Should let the user specify the lib program.
24446 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024447 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024448 enable_shared_with_static_runtimes_GCJ=yes
24449 ;;
24450
24451 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024452 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024453 rhapsody* | darwin1.[012])
24454 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24455 ;;
24456 *) # Darwin 1.3 on
24457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24458 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24459 else
24460 case ${MACOSX_DEPLOYMENT_TARGET} in
24461 10.[012])
24462 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24463 ;;
24464 10.*)
24465 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24466 ;;
24467 esac
24468 fi
24469 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024470 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024471 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024472 hardcode_direct_GCJ=no
24473 hardcode_automatic_GCJ=yes
24474 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024475 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024476 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024477 if test "$GCC" = yes ; then
24478 output_verbose_link_cmd='echo'
24479 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24480 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024481 # 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 +000024482 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}'
24483 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 +000024484 else
Reid Spencera773bd52006-08-04 18:18:08 +000024485 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024486 xlc*)
24487 output_verbose_link_cmd='echo'
24488 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24489 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024490 # 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 +000024491 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}'
24492 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 +000024493 ;;
24494 *)
24495 ld_shlibs_GCJ=no
24496 ;;
24497 esac
John Criswell47fdd832003-07-14 16:52:07 +000024498 fi
24499 ;;
24500
24501 dgux*)
24502 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24503 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24504 hardcode_shlibpath_var_GCJ=no
24505 ;;
24506
24507 freebsd1*)
24508 ld_shlibs_GCJ=no
24509 ;;
24510
24511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24512 # support. Future versions do this automatically, but an explicit c++rt0.o
24513 # does not break anything, and helps significantly (at the cost of a little
24514 # extra space).
24515 freebsd2.2*)
24516 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24517 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24518 hardcode_direct_GCJ=yes
24519 hardcode_shlibpath_var_GCJ=no
24520 ;;
24521
24522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24523 freebsd2*)
24524 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24525 hardcode_direct_GCJ=yes
24526 hardcode_minus_L_GCJ=yes
24527 hardcode_shlibpath_var_GCJ=no
24528 ;;
24529
24530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024531 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024532 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24533 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24534 hardcode_direct_GCJ=yes
24535 hardcode_shlibpath_var_GCJ=no
24536 ;;
24537
24538 hpux9*)
24539 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024540 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 +000024541 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024542 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 +000024543 fi
24544 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24545 hardcode_libdir_separator_GCJ=:
24546 hardcode_direct_GCJ=yes
24547
24548 # hardcode_minus_L: Not really in the search PATH,
24549 # but as the default location of the library.
24550 hardcode_minus_L_GCJ=yes
24551 export_dynamic_flag_spec_GCJ='${wl}-E'
24552 ;;
24553
Reid Spencera773bd52006-08-04 18:18:08 +000024554 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024555 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024556 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24557 else
24558 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24559 fi
24560 if test "$with_gnu_ld" = no; then
24561 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24562 hardcode_libdir_separator_GCJ=:
24563
24564 hardcode_direct_GCJ=yes
24565 export_dynamic_flag_spec_GCJ='${wl}-E'
24566
24567 # hardcode_minus_L: Not really in the search PATH,
24568 # but as the default location of the library.
24569 hardcode_minus_L_GCJ=yes
24570 fi
24571 ;;
24572
24573 hpux11*)
24574 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24575 case $host_cpu in
24576 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024577 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24578 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024579 ia64*)
24580 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24581 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024582 *)
24583 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24584 ;;
24585 esac
24586 else
Reid Spencera773bd52006-08-04 18:18:08 +000024587 case $host_cpu in
24588 hppa*64*)
24589 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24590 ;;
24591 ia64*)
24592 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024593 ;;
24594 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024595 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 +000024596 ;;
24597 esac
24598 fi
24599 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024600 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24601 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024602
Reid Spencera773bd52006-08-04 18:18:08 +000024603 case $host_cpu in
24604 hppa*64*|ia64*)
24605 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24606 hardcode_direct_GCJ=no
24607 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024608 ;;
24609 *)
John Criswell47fdd832003-07-14 16:52:07 +000024610 hardcode_direct_GCJ=yes
24611 export_dynamic_flag_spec_GCJ='${wl}-E'
24612
24613 # hardcode_minus_L: Not really in the search PATH,
24614 # but as the default location of the library.
24615 hardcode_minus_L_GCJ=yes
24616 ;;
24617 esac
24618 fi
24619 ;;
24620
24621 irix5* | irix6* | nonstopux*)
24622 if test "$GCC" = yes; then
24623 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'
24624 else
24625 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'
24626 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24627 fi
24628 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24629 hardcode_libdir_separator_GCJ=:
24630 link_all_deplibs_GCJ=yes
24631 ;;
24632
24633 netbsd*)
24634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24635 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24636 else
24637 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24638 fi
24639 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24640 hardcode_direct_GCJ=yes
24641 hardcode_shlibpath_var_GCJ=no
24642 ;;
24643
24644 newsos6)
24645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24646 hardcode_direct_GCJ=yes
24647 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24648 hardcode_libdir_separator_GCJ=:
24649 hardcode_shlibpath_var_GCJ=no
24650 ;;
24651
24652 openbsd*)
24653 hardcode_direct_GCJ=yes
24654 hardcode_shlibpath_var_GCJ=no
24655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24656 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024657 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 +000024658 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24659 export_dynamic_flag_spec_GCJ='${wl}-E'
24660 else
24661 case $host_os in
24662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24663 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24664 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24665 ;;
24666 *)
24667 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24668 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24669 ;;
24670 esac
24671 fi
24672 ;;
24673
24674 os2*)
24675 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24676 hardcode_minus_L_GCJ=yes
24677 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024678 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 +000024679 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24680 ;;
24681
24682 osf3*)
24683 if test "$GCC" = yes; then
24684 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24685 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'
24686 else
24687 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24688 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'
24689 fi
24690 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24691 hardcode_libdir_separator_GCJ=:
24692 ;;
24693
24694 osf4* | osf5*) # as osf3* with the addition of -msym flag
24695 if test "$GCC" = yes; then
24696 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24697 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'
24698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24699 else
24700 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24701 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 +000024702 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 +000024703 $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 +000024704
John Criswell47fdd832003-07-14 16:52:07 +000024705 # Both c and cxx compiler support -rpath directly
24706 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24707 fi
24708 hardcode_libdir_separator_GCJ=:
24709 ;;
24710
John Criswell47fdd832003-07-14 16:52:07 +000024711 solaris*)
24712 no_undefined_flag_GCJ=' -z text'
24713 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024714 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024715 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024716 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24717 $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 +000024718 else
Reid Spencera773bd52006-08-04 18:18:08 +000024719 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024720 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024721 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24722 $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 +000024723 fi
24724 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24725 hardcode_shlibpath_var_GCJ=no
24726 case $host_os in
24727 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024728 *)
24729 # The compiler driver will combine linker options so we
24730 # cannot just pass the convience library names through
24731 # without $wl, iff we do not link with $LD.
24732 # Luckily, gcc supports the same syntax we need for Sun Studio.
24733 # Supported since Solaris 2.6 (maybe 2.5.1?)
24734 case $wlarc in
24735 '')
24736 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24737 *)
24738 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' ;;
24739 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024740 esac
24741 link_all_deplibs_GCJ=yes
24742 ;;
24743
24744 sunos4*)
24745 if test "x$host_vendor" = xsequent; then
24746 # Use $CC to link under sequent, because it throws in some extra .o
24747 # files that make .init and .fini sections work.
24748 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24749 else
24750 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24751 fi
24752 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24753 hardcode_direct_GCJ=yes
24754 hardcode_minus_L_GCJ=yes
24755 hardcode_shlibpath_var_GCJ=no
24756 ;;
24757
24758 sysv4)
24759 case $host_vendor in
24760 sni)
24761 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24762 hardcode_direct_GCJ=yes # is this really true???
24763 ;;
24764 siemens)
24765 ## LD is ld it makes a PLAMLIB
24766 ## CC just makes a GrossModule.
24767 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24768 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24769 hardcode_direct_GCJ=no
24770 ;;
24771 motorola)
24772 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24773 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24774 ;;
24775 esac
24776 runpath_var='LD_RUN_PATH'
24777 hardcode_shlibpath_var_GCJ=no
24778 ;;
24779
24780 sysv4.3*)
24781 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24782 hardcode_shlibpath_var_GCJ=no
24783 export_dynamic_flag_spec_GCJ='-Bexport'
24784 ;;
24785
24786 sysv4*MP*)
24787 if test -d /usr/nec; then
24788 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24789 hardcode_shlibpath_var_GCJ=no
24790 runpath_var=LD_RUN_PATH
24791 hardcode_runpath_var=yes
24792 ld_shlibs_GCJ=yes
24793 fi
24794 ;;
24795
Reid Spencera773bd52006-08-04 18:18:08 +000024796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24797 no_undefined_flag_GCJ='${wl}-z,text'
24798 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024799 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024800 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024801
John Criswell47fdd832003-07-14 16:52:07 +000024802 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024803 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24804 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 +000024805 else
Reid Spencera773bd52006-08-04 18:18:08 +000024806 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24807 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 +000024808 fi
John Criswell47fdd832003-07-14 16:52:07 +000024809 ;;
24810
Reid Spencera773bd52006-08-04 18:18:08 +000024811 sysv5* | sco3.2v5* | sco5v6*)
24812 # Note: We can NOT use -z defs as we might desire, because we do not
24813 # link with -lc, and that would cause any symbols used from libc to
24814 # always be unresolved, which means just about no library would
24815 # ever link correctly. If we're not using GNU ld we use -z text
24816 # though, which does catch some bad symbols but isn't as heavy-handed
24817 # as -z defs.
24818 no_undefined_flag_GCJ='${wl}-z,text'
24819 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24820 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024821 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024822 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24823 hardcode_libdir_separator_GCJ=':'
24824 link_all_deplibs_GCJ=yes
24825 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024826 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024827
24828 if test "$GCC" = yes; then
24829 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24830 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24831 else
24832 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24833 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24834 fi
John Criswell47fdd832003-07-14 16:52:07 +000024835 ;;
24836
24837 uts4*)
24838 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24840 hardcode_shlibpath_var_GCJ=no
24841 ;;
24842
24843 *)
24844 ld_shlibs_GCJ=no
24845 ;;
24846 esac
24847 fi
24848
Reid Spencera773bd52006-08-04 18:18:08 +000024849{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24850echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024851test "$ld_shlibs_GCJ" = no && can_build_shared=no
24852
John Criswell47fdd832003-07-14 16:52:07 +000024853#
24854# Do we need to explicitly link libc?
24855#
24856case "x$archive_cmds_need_lc_GCJ" in
24857x|xyes)
24858 # Assume -lc should be added
24859 archive_cmds_need_lc_GCJ=yes
24860
24861 if test "$enable_shared" = yes && test "$GCC" = yes; then
24862 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024863 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024864 # FIXME: we may have to deal with multi-command sequences.
24865 ;;
24866 '$CC '*)
24867 # Test whether the compiler implicitly links with -lc since on some
24868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24869 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024870 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24871echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024872 $rm conftest*
24873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24874
24875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24876 (eval $ac_compile) 2>&5
24877 ac_status=$?
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); } 2>conftest.err; then
24880 soname=conftest
24881 lib=conftest
24882 libobjs=conftest.$ac_objext
24883 deplibs=
24884 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024885 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024886 compiler_flags=-v
24887 linker_flags=-v
24888 verstring=
24889 output_objdir=.
24890 libname=conftest
24891 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24892 allow_undefined_flag_GCJ=
24893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24894 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24895 ac_status=$?
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); }
24898 then
24899 archive_cmds_need_lc_GCJ=no
24900 else
24901 archive_cmds_need_lc_GCJ=yes
24902 fi
24903 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24904 else
24905 cat conftest.err 1>&5
24906 fi
24907 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024908 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24909echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024910 ;;
24911 esac
24912 fi
24913 ;;
24914esac
24915
Reid Spencera773bd52006-08-04 18:18:08 +000024916{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24917echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024918library_names_spec=
24919libname_spec='lib$name'
24920soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024921shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024922postinstall_cmds=
24923postuninstall_cmds=
24924finish_cmds=
24925finish_eval=
24926shlibpath_var=
24927shlibpath_overrides_runpath=unknown
24928version_type=none
24929dynamic_linker="$host_os ld.so"
24930sys_lib_dlsearch_path_spec="/lib /usr/lib"
24931if test "$GCC" = yes; then
24932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24933 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24934 # if the path contains ";" then we assume it to be the separator
24935 # otherwise default to the standard path separator (i.e. ":") - it is
24936 # assumed that no part of a normal pathname contains ";" but that should
24937 # okay in the real world where ";" in dirpaths is itself problematic.
24938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24939 else
24940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24941 fi
24942else
24943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24944fi
24945need_lib_prefix=unknown
24946hardcode_into_libs=no
24947
24948# when you set need_version to no, make sure it does not cause -set_version
24949# flags to be left without arguments
24950need_version=unknown
24951
24952case $host_os in
24953aix3*)
24954 version_type=linux
24955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24956 shlibpath_var=LIBPATH
24957
24958 # AIX 3 has no versioning support, so we append a major version to the name.
24959 soname_spec='${libname}${release}${shared_ext}$major'
24960 ;;
24961
24962aix4* | aix5*)
24963 version_type=linux
24964 need_lib_prefix=no
24965 need_version=no
24966 hardcode_into_libs=yes
24967 if test "$host_cpu" = ia64; then
24968 # AIX 5 supports IA64
24969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24970 shlibpath_var=LD_LIBRARY_PATH
24971 else
24972 # With GCC up to 2.95.x, collect2 would create an import file
24973 # for dependence libraries. The import file would start with
24974 # the line `#! .'. This would cause the generated library to
24975 # depend on `.', always an invalid library. This was fixed in
24976 # development snapshots of GCC prior to 3.0.
24977 case $host_os in
24978 aix4 | aix4.[01] | aix4.[01].*)
24979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24980 echo ' yes '
24981 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24982 :
24983 else
24984 can_build_shared=no
24985 fi
24986 ;;
24987 esac
24988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24989 # soname into executable. Probably we can add versioning support to
24990 # collect2, so additional links can be useful in future.
24991 if test "$aix_use_runtimelinking" = yes; then
24992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24993 # instead of lib<name>.a to let people know that these are not
24994 # typical AIX shared libraries.
24995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24996 else
24997 # We preserve .a as extension for shared libraries through AIX4.2
24998 # and later when we are not doing run time linking.
24999 library_names_spec='${libname}${release}.a $libname.a'
25000 soname_spec='${libname}${release}${shared_ext}$major'
25001 fi
25002 shlibpath_var=LIBPATH
25003 fi
25004 ;;
25005
25006amigaos*)
25007 library_names_spec='$libname.ixlibrary $libname.a'
25008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025009 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 +000025010 ;;
25011
25012beos*)
25013 library_names_spec='${libname}${shared_ext}'
25014 dynamic_linker="$host_os ld.so"
25015 shlibpath_var=LIBRARY_PATH
25016 ;;
25017
Reid Spencer2706f8c2004-09-19 23:53:36 +000025018bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025019 version_type=linux
25020 need_version=no
25021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25022 soname_spec='${libname}${release}${shared_ext}$major'
25023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25024 shlibpath_var=LD_LIBRARY_PATH
25025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25027 # the default ld.so.conf also contains /usr/contrib/lib and
25028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25029 # libtool to hard-code these into programs
25030 ;;
25031
25032cygwin* | mingw* | pw32*)
25033 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025034 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025035 need_version=no
25036 need_lib_prefix=no
25037
25038 case $GCC,$host_os in
25039 yes,cygwin* | yes,mingw* | yes,pw32*)
25040 library_names_spec='$libname.dll.a'
25041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025042 postinstall_cmds='base_file=`basename \${file}`~
25043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25044 dldir=$destdir/`dirname \$dlpath`~
25045 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025046 $install_prog $dir/$dlname \$dldir/$dlname~
25047 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25049 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025050 $rm \$dlpath'
25051 shlibpath_overrides_runpath=yes
25052
25053 case $host_os in
25054 cygwin*)
25055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25056 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 +000025057 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025058 ;;
25059 mingw*)
25060 # MinGW DLLs use traditional 'lib' prefix
25061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25063 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25064 # It is most probably a Windows format PATH printed by
25065 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25066 # path with ; separators, and with drive letters. We can handle the
25067 # drive letters (cygwin fileutils understands them), so leave them,
25068 # especially as we might pass files found there to a mingw objdump,
25069 # which wouldn't understand a cygwinified path. Ahh.
25070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25071 else
25072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25073 fi
25074 ;;
25075 pw32*)
25076 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025077 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 +000025078 ;;
25079 esac
25080 ;;
25081
25082 *)
25083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25084 ;;
25085 esac
25086 dynamic_linker='Win32 ld.exe'
25087 # FIXME: first we should search . and the directory the executable is in
25088 shlibpath_var=PATH
25089 ;;
25090
25091darwin* | rhapsody*)
25092 dynamic_linker="$host_os dyld"
25093 version_type=darwin
25094 need_lib_prefix=no
25095 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025096 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025097 soname_spec='${libname}${release}${major}$shared_ext'
25098 shlibpath_overrides_runpath=yes
25099 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025101 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025102 if test "$GCC" = yes; then
25103 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"`
25104 else
25105 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025106 fi
25107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25108 ;;
25109
25110dgux*)
25111 version_type=linux
25112 need_lib_prefix=no
25113 need_version=no
25114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25115 soname_spec='${libname}${release}${shared_ext}$major'
25116 shlibpath_var=LD_LIBRARY_PATH
25117 ;;
25118
25119freebsd1*)
25120 dynamic_linker=no
25121 ;;
25122
Reid Spencer2706f8c2004-09-19 23:53:36 +000025123kfreebsd*-gnu)
25124 version_type=linux
25125 need_lib_prefix=no
25126 need_version=no
25127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25128 soname_spec='${libname}${release}${shared_ext}$major'
25129 shlibpath_var=LD_LIBRARY_PATH
25130 shlibpath_overrides_runpath=no
25131 hardcode_into_libs=yes
25132 dynamic_linker='GNU ld.so'
25133 ;;
25134
Reid Spencera773bd52006-08-04 18:18:08 +000025135freebsd* | dragonfly*)
25136 # DragonFly does not have aout. When/if they implement a new
25137 # versioning mechanism, adjust this.
25138 if test -x /usr/bin/objformat; then
25139 objformat=`/usr/bin/objformat`
25140 else
25141 case $host_os in
25142 freebsd[123]*) objformat=aout ;;
25143 *) objformat=elf ;;
25144 esac
25145 fi
John Criswell47fdd832003-07-14 16:52:07 +000025146 version_type=freebsd-$objformat
25147 case $version_type in
25148 freebsd-elf*)
25149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25150 need_version=no
25151 need_lib_prefix=no
25152 ;;
25153 freebsd-*)
25154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25155 need_version=yes
25156 ;;
25157 esac
25158 shlibpath_var=LD_LIBRARY_PATH
25159 case $host_os in
25160 freebsd2*)
25161 shlibpath_overrides_runpath=yes
25162 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025163 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025164 shlibpath_overrides_runpath=yes
25165 hardcode_into_libs=yes
25166 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025169 shlibpath_overrides_runpath=no
25170 hardcode_into_libs=yes
25171 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025172 freebsd*) # from 4.6 on
25173 shlibpath_overrides_runpath=yes
25174 hardcode_into_libs=yes
25175 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025176 esac
25177 ;;
25178
25179gnu*)
25180 version_type=linux
25181 need_lib_prefix=no
25182 need_version=no
25183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25184 soname_spec='${libname}${release}${shared_ext}$major'
25185 shlibpath_var=LD_LIBRARY_PATH
25186 hardcode_into_libs=yes
25187 ;;
25188
25189hpux9* | hpux10* | hpux11*)
25190 # Give a soname corresponding to the major version so that dld.sl refuses to
25191 # link against other versions.
25192 version_type=sunos
25193 need_lib_prefix=no
25194 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025195 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025196 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025197 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025198 hardcode_into_libs=yes
25199 dynamic_linker="$host_os dld.so"
25200 shlibpath_var=LD_LIBRARY_PATH
25201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25203 soname_spec='${libname}${release}${shared_ext}$major'
25204 if test "X$HPUX_IA64_MODE" = X32; then
25205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25206 else
25207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25208 fi
25209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25210 ;;
25211 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025212 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025213 hardcode_into_libs=yes
25214 dynamic_linker="$host_os dld.sl"
25215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25218 soname_spec='${libname}${release}${shared_ext}$major'
25219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25221 ;;
25222 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025223 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025224 dynamic_linker="$host_os dld.sl"
25225 shlibpath_var=SHLIB_PATH
25226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
25230 esac
25231 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25232 postinstall_cmds='chmod 555 $lib'
25233 ;;
25234
Reid Spencera773bd52006-08-04 18:18:08 +000025235interix3*)
25236 version_type=linux
25237 need_lib_prefix=no
25238 need_version=no
25239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25240 soname_spec='${libname}${release}${shared_ext}$major'
25241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25242 shlibpath_var=LD_LIBRARY_PATH
25243 shlibpath_overrides_runpath=no
25244 hardcode_into_libs=yes
25245 ;;
25246
John Criswell47fdd832003-07-14 16:52:07 +000025247irix5* | irix6* | nonstopux*)
25248 case $host_os in
25249 nonstopux*) version_type=nonstopux ;;
25250 *)
25251 if test "$lt_cv_prog_gnu_ld" = yes; then
25252 version_type=linux
25253 else
25254 version_type=irix
25255 fi ;;
25256 esac
25257 need_lib_prefix=no
25258 need_version=no
25259 soname_spec='${libname}${release}${shared_ext}$major'
25260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25261 case $host_os in
25262 irix5* | nonstopux*)
25263 libsuff= shlibsuff=
25264 ;;
25265 *)
25266 case $LD in # libtool.m4 will add one of these switches to LD
25267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25268 libsuff= shlibsuff= libmagic=32-bit;;
25269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25270 libsuff=32 shlibsuff=N32 libmagic=N32;;
25271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25272 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25273 *) libsuff= shlibsuff= libmagic=never-match;;
25274 esac
25275 ;;
25276 esac
25277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25278 shlibpath_overrides_runpath=no
25279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25281 hardcode_into_libs=yes
25282 ;;
25283
25284# No shared lib support for Linux oldld, aout, or coff.
25285linux*oldld* | linux*aout* | linux*coff*)
25286 dynamic_linker=no
25287 ;;
25288
25289# This must be Linux ELF.
25290linux*)
25291 version_type=linux
25292 need_lib_prefix=no
25293 need_version=no
25294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25295 soname_spec='${libname}${release}${shared_ext}$major'
25296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25297 shlibpath_var=LD_LIBRARY_PATH
25298 shlibpath_overrides_runpath=no
25299 # This implies no fast_install, which is unacceptable.
25300 # Some rework will be needed to allow for fast_install
25301 # before this can be enabled.
25302 hardcode_into_libs=yes
25303
Reid Spencer2706f8c2004-09-19 23:53:36 +000025304 # Append ld.so.conf contents to the search path
25305 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025306 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 +000025307 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25308 fi
25309
John Criswell47fdd832003-07-14 16:52:07 +000025310 # We used to test for /lib/ld.so.1 and disable shared libraries on
25311 # powerpc, because MkLinux only supported shared libraries with the
25312 # GNU dynamic linker. Since this was broken with cross compilers,
25313 # most powerpc-linux boxes support dynamic linking these days and
25314 # people can always --disable-shared, the test was removed, and we
25315 # assume the GNU/Linux dynamic linker is in use.
25316 dynamic_linker='GNU/Linux ld.so'
25317 ;;
25318
Reid Spencer2706f8c2004-09-19 23:53:36 +000025319knetbsd*-gnu)
25320 version_type=linux
25321 need_lib_prefix=no
25322 need_version=no
25323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25324 soname_spec='${libname}${release}${shared_ext}$major'
25325 shlibpath_var=LD_LIBRARY_PATH
25326 shlibpath_overrides_runpath=no
25327 hardcode_into_libs=yes
25328 dynamic_linker='GNU ld.so'
25329 ;;
25330
John Criswell47fdd832003-07-14 16:52:07 +000025331netbsd*)
25332 version_type=sunos
25333 need_lib_prefix=no
25334 need_version=no
25335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25338 dynamic_linker='NetBSD (a.out) ld.so'
25339 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025341 soname_spec='${libname}${release}${shared_ext}$major'
25342 dynamic_linker='NetBSD ld.elf_so'
25343 fi
25344 shlibpath_var=LD_LIBRARY_PATH
25345 shlibpath_overrides_runpath=yes
25346 hardcode_into_libs=yes
25347 ;;
25348
25349newsos6)
25350 version_type=linux
25351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25352 shlibpath_var=LD_LIBRARY_PATH
25353 shlibpath_overrides_runpath=yes
25354 ;;
25355
Reid Spencer2706f8c2004-09-19 23:53:36 +000025356nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025357 version_type=linux
25358 need_lib_prefix=no
25359 need_version=no
25360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25361 soname_spec='${libname}${release}${shared_ext}$major'
25362 shlibpath_var=LD_LIBRARY_PATH
25363 shlibpath_overrides_runpath=yes
25364 ;;
25365
25366openbsd*)
25367 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025368 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025369 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25371 case $host_os in
25372 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25373 *) need_version=no ;;
25374 esac
John Criswell47fdd832003-07-14 16:52:07 +000025375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25377 shlibpath_var=LD_LIBRARY_PATH
25378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25379 case $host_os in
25380 openbsd2.[89] | openbsd2.[89].*)
25381 shlibpath_overrides_runpath=no
25382 ;;
25383 *)
25384 shlibpath_overrides_runpath=yes
25385 ;;
25386 esac
25387 else
25388 shlibpath_overrides_runpath=yes
25389 fi
25390 ;;
25391
25392os2*)
25393 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025394 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025395 need_lib_prefix=no
25396 library_names_spec='$libname${shared_ext} $libname.a'
25397 dynamic_linker='OS/2 ld.exe'
25398 shlibpath_var=LIBPATH
25399 ;;
25400
25401osf3* | osf4* | osf5*)
25402 version_type=osf
25403 need_lib_prefix=no
25404 need_version=no
25405 soname_spec='${libname}${release}${shared_ext}$major'
25406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25407 shlibpath_var=LD_LIBRARY_PATH
25408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25410 ;;
25411
John Criswell47fdd832003-07-14 16:52:07 +000025412solaris*)
25413 version_type=linux
25414 need_lib_prefix=no
25415 need_version=no
25416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25417 soname_spec='${libname}${release}${shared_ext}$major'
25418 shlibpath_var=LD_LIBRARY_PATH
25419 shlibpath_overrides_runpath=yes
25420 hardcode_into_libs=yes
25421 # ldd complains unless libraries are executable
25422 postinstall_cmds='chmod +x $lib'
25423 ;;
25424
25425sunos4*)
25426 version_type=sunos
25427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25429 shlibpath_var=LD_LIBRARY_PATH
25430 shlibpath_overrides_runpath=yes
25431 if test "$with_gnu_ld" = yes; then
25432 need_lib_prefix=no
25433 fi
25434 need_version=yes
25435 ;;
25436
Reid Spencera773bd52006-08-04 18:18:08 +000025437sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025438 version_type=linux
25439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25440 soname_spec='${libname}${release}${shared_ext}$major'
25441 shlibpath_var=LD_LIBRARY_PATH
25442 case $host_vendor in
25443 sni)
25444 shlibpath_overrides_runpath=no
25445 need_lib_prefix=no
25446 export_dynamic_flag_spec='${wl}-Blargedynsym'
25447 runpath_var=LD_RUN_PATH
25448 ;;
25449 siemens)
25450 need_lib_prefix=no
25451 ;;
25452 motorola)
25453 need_lib_prefix=no
25454 need_version=no
25455 shlibpath_overrides_runpath=no
25456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25457 ;;
25458 esac
25459 ;;
25460
25461sysv4*MP*)
25462 if test -d /usr/nec ;then
25463 version_type=linux
25464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25465 soname_spec='$libname${shared_ext}.$major'
25466 shlibpath_var=LD_LIBRARY_PATH
25467 fi
25468 ;;
25469
Reid Spencera773bd52006-08-04 18:18:08 +000025470sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25471 version_type=freebsd-elf
25472 need_lib_prefix=no
25473 need_version=no
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 shlibpath_var=LD_LIBRARY_PATH
25477 hardcode_into_libs=yes
25478 if test "$with_gnu_ld" = yes; then
25479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25480 shlibpath_overrides_runpath=no
25481 else
25482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25483 shlibpath_overrides_runpath=yes
25484 case $host_os in
25485 sco3.2v5*)
25486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25487 ;;
25488 esac
25489 fi
25490 sys_lib_dlsearch_path_spec='/usr/lib'
25491 ;;
25492
John Criswell47fdd832003-07-14 16:52:07 +000025493uts4*)
25494 version_type=linux
25495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25496 soname_spec='${libname}${release}${shared_ext}$major'
25497 shlibpath_var=LD_LIBRARY_PATH
25498 ;;
25499
25500*)
25501 dynamic_linker=no
25502 ;;
25503esac
Reid Spencera773bd52006-08-04 18:18:08 +000025504{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25505echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025506test "$dynamic_linker" = no && can_build_shared=no
25507
Reid Spencera773bd52006-08-04 18:18:08 +000025508variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25509if test "$GCC" = yes; then
25510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25511fi
25512
25513{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25514echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025515hardcode_action_GCJ=
25516if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25517 test -n "$runpath_var_GCJ" || \
25518 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25519
25520 # We can hardcode non-existant directories.
25521 if test "$hardcode_direct_GCJ" != no &&
25522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25523 # have to relink, otherwise we might link with an installed library
25524 # when we should be linking with a yet-to-be-installed one
25525 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25526 test "$hardcode_minus_L_GCJ" != no; then
25527 # Linking always hardcodes the temporary library directory.
25528 hardcode_action_GCJ=relink
25529 else
25530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25531 hardcode_action_GCJ=immediate
25532 fi
25533else
25534 # We cannot hardcode anything, or else we can only hardcode existing
25535 # directories.
25536 hardcode_action_GCJ=unsupported
25537fi
Reid Spencera773bd52006-08-04 18:18:08 +000025538{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25539echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025540
25541if test "$hardcode_action_GCJ" = relink; then
25542 # Fast installation is not supported
25543 enable_fast_install=no
25544elif test "$shlibpath_overrides_runpath" = yes ||
25545 test "$enable_shared" = no; then
25546 # Fast installation is not necessary
25547 enable_fast_install=needless
25548fi
25549
John Criswell47fdd832003-07-14 16:52:07 +000025550
25551# The else clause should only fire when bootstrapping the
25552# libtool distribution, otherwise you forgot to ship ltmain.sh
25553# with your package, and you will get complaints that there are
25554# no rules to generate ltmain.sh.
25555if test -f "$ltmain"; then
25556 # See if we are running on zsh, and set the options which allow our commands through
25557 # without removal of \ escapes.
25558 if test -n "${ZSH_VERSION+set}" ; then
25559 setopt NO_GLOB_SUBST
25560 fi
25561 # Now quote all the things that may contain metacharacters while being
25562 # careful not to overquote the AC_SUBSTed values. We take copies of the
25563 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025564 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 +000025565 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025566 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25567 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25568 deplibs_check_method reload_flag reload_cmds need_locks \
25569 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25570 lt_cv_sys_global_symbol_to_c_name_address \
25571 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25572 old_postinstall_cmds old_postuninstall_cmds \
25573 compiler_GCJ \
25574 CC_GCJ \
25575 LD_GCJ \
25576 lt_prog_compiler_wl_GCJ \
25577 lt_prog_compiler_pic_GCJ \
25578 lt_prog_compiler_static_GCJ \
25579 lt_prog_compiler_no_builtin_flag_GCJ \
25580 export_dynamic_flag_spec_GCJ \
25581 thread_safe_flag_spec_GCJ \
25582 whole_archive_flag_spec_GCJ \
25583 enable_shared_with_static_runtimes_GCJ \
25584 old_archive_cmds_GCJ \
25585 old_archive_from_new_cmds_GCJ \
25586 predep_objects_GCJ \
25587 postdep_objects_GCJ \
25588 predeps_GCJ \
25589 postdeps_GCJ \
25590 compiler_lib_search_path_GCJ \
25591 archive_cmds_GCJ \
25592 archive_expsym_cmds_GCJ \
25593 postinstall_cmds_GCJ \
25594 postuninstall_cmds_GCJ \
25595 old_archive_from_expsyms_cmds_GCJ \
25596 allow_undefined_flag_GCJ \
25597 no_undefined_flag_GCJ \
25598 export_symbols_cmds_GCJ \
25599 hardcode_libdir_flag_spec_GCJ \
25600 hardcode_libdir_flag_spec_ld_GCJ \
25601 hardcode_libdir_separator_GCJ \
25602 hardcode_automatic_GCJ \
25603 module_cmds_GCJ \
25604 module_expsym_cmds_GCJ \
25605 lt_cv_prog_compiler_c_o_GCJ \
25606 exclude_expsyms_GCJ \
25607 include_expsyms_GCJ; do
25608
25609 case $var in
25610 old_archive_cmds_GCJ | \
25611 old_archive_from_new_cmds_GCJ | \
25612 archive_cmds_GCJ | \
25613 archive_expsym_cmds_GCJ | \
25614 module_cmds_GCJ | \
25615 module_expsym_cmds_GCJ | \
25616 old_archive_from_expsyms_cmds_GCJ | \
25617 export_symbols_cmds_GCJ | \
25618 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25619 postinstall_cmds | postuninstall_cmds | \
25620 old_postinstall_cmds | old_postuninstall_cmds | \
25621 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25622 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025623 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 +000025624 ;;
25625 *)
25626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25627 ;;
25628 esac
25629 done
25630
25631 case $lt_echo in
25632 *'\$0 --fallback-echo"')
25633 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25634 ;;
25635 esac
25636
25637cfgfile="$ofile"
25638
25639 cat <<__EOF__ >> "$cfgfile"
25640# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25641
25642# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25643
25644# Shell to use when invoking shell scripts.
25645SHELL=$lt_SHELL
25646
25647# Whether or not to build shared libraries.
25648build_libtool_libs=$enable_shared
25649
25650# Whether or not to build static libraries.
25651build_old_libs=$enable_static
25652
25653# Whether or not to add -lc for building shared libraries.
25654build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25655
25656# Whether or not to disallow shared libs when runtime libs are static
25657allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25658
25659# Whether or not to optimize for fast installation.
25660fast_install=$enable_fast_install
25661
25662# The host system.
25663host_alias=$host_alias
25664host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025665host_os=$host_os
25666
25667# The build system.
25668build_alias=$build_alias
25669build=$build
25670build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025671
25672# An echo program that does not interpret backslashes.
25673echo=$lt_echo
25674
25675# The archiver.
25676AR=$lt_AR
25677AR_FLAGS=$lt_AR_FLAGS
25678
25679# A C compiler.
25680LTCC=$lt_LTCC
25681
Reid Spencera773bd52006-08-04 18:18:08 +000025682# LTCC compiler flags.
25683LTCFLAGS=$lt_LTCFLAGS
25684
John Criswell47fdd832003-07-14 16:52:07 +000025685# A language-specific compiler.
25686CC=$lt_compiler_GCJ
25687
25688# Is the compiler the GNU C compiler?
25689with_gcc=$GCC_GCJ
25690
25691# An ERE matcher.
25692EGREP=$lt_EGREP
25693
25694# The linker used to build libraries.
25695LD=$lt_LD_GCJ
25696
25697# Whether we need hard or soft links.
25698LN_S=$lt_LN_S
25699
25700# A BSD-compatible nm program.
25701NM=$lt_NM
25702
25703# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025704STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025705
25706# Used to examine libraries when file_magic_cmd begins "file"
25707MAGIC_CMD=$MAGIC_CMD
25708
25709# Used on cygwin: DLL creation program.
25710DLLTOOL="$DLLTOOL"
25711
25712# Used on cygwin: object dumper.
25713OBJDUMP="$OBJDUMP"
25714
25715# Used on cygwin: assembler.
25716AS="$AS"
25717
25718# The name of the directory that contains temporary libtool files.
25719objdir=$objdir
25720
25721# How to create reloadable object files.
25722reload_flag=$lt_reload_flag
25723reload_cmds=$lt_reload_cmds
25724
25725# How to pass a linker flag through the compiler.
25726wl=$lt_lt_prog_compiler_wl_GCJ
25727
25728# Object file suffix (normally "o").
25729objext="$ac_objext"
25730
25731# Old archive suffix (normally "a").
25732libext="$libext"
25733
25734# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025735shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025736
25737# Executable file suffix (normally "").
25738exeext="$exeext"
25739
25740# Additional compiler flags for building library objects.
25741pic_flag=$lt_lt_prog_compiler_pic_GCJ
25742pic_mode=$pic_mode
25743
25744# What is the maximum length of a command?
25745max_cmd_len=$lt_cv_sys_max_cmd_len
25746
25747# Does compiler simultaneously support -c and -o options?
25748compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25749
Reid Spencera773bd52006-08-04 18:18:08 +000025750# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025751need_locks=$lt_need_locks
25752
25753# Do we need the lib prefix for modules?
25754need_lib_prefix=$need_lib_prefix
25755
25756# Do we need a version for libraries?
25757need_version=$need_version
25758
25759# Whether dlopen is supported.
25760dlopen_support=$enable_dlopen
25761
25762# Whether dlopen of programs is supported.
25763dlopen_self=$enable_dlopen_self
25764
25765# Whether dlopen of statically linked programs is supported.
25766dlopen_self_static=$enable_dlopen_self_static
25767
25768# Compiler flag to prevent dynamic linking.
25769link_static_flag=$lt_lt_prog_compiler_static_GCJ
25770
25771# Compiler flag to turn off builtin functions.
25772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25773
25774# Compiler flag to allow reflexive dlopens.
25775export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25776
25777# Compiler flag to generate shared objects directly from archives.
25778whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25779
25780# Compiler flag to generate thread-safe objects.
25781thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25782
25783# Library versioning type.
25784version_type=$version_type
25785
25786# Format of library name prefix.
25787libname_spec=$lt_libname_spec
25788
25789# List of archive names. First name is the real one, the rest are links.
25790# The last name is the one that the linker finds with -lNAME.
25791library_names_spec=$lt_library_names_spec
25792
25793# The coded name of the library, if different from the real name.
25794soname_spec=$lt_soname_spec
25795
25796# Commands used to build and install an old-style archive.
25797RANLIB=$lt_RANLIB
25798old_archive_cmds=$lt_old_archive_cmds_GCJ
25799old_postinstall_cmds=$lt_old_postinstall_cmds
25800old_postuninstall_cmds=$lt_old_postuninstall_cmds
25801
25802# Create an old-style archive from a shared archive.
25803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25804
25805# Create a temporary old-style archive to link instead of a shared archive.
25806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25807
25808# Commands used to build and install a shared archive.
25809archive_cmds=$lt_archive_cmds_GCJ
25810archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25811postinstall_cmds=$lt_postinstall_cmds
25812postuninstall_cmds=$lt_postuninstall_cmds
25813
25814# Commands used to build a loadable module (assumed same as above if empty)
25815module_cmds=$lt_module_cmds_GCJ
25816module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25817
25818# Commands to strip libraries.
25819old_striplib=$lt_old_striplib
25820striplib=$lt_striplib
25821
25822# Dependencies to place before the objects being linked to create a
25823# shared library.
25824predep_objects=$lt_predep_objects_GCJ
25825
25826# Dependencies to place after the objects being linked to create a
25827# shared library.
25828postdep_objects=$lt_postdep_objects_GCJ
25829
25830# Dependencies to place before the objects being linked to create a
25831# shared library.
25832predeps=$lt_predeps_GCJ
25833
25834# Dependencies to place after the objects being linked to create a
25835# shared library.
25836postdeps=$lt_postdeps_GCJ
25837
25838# The library search path used internally by the compiler when linking
25839# a shared library.
25840compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25841
25842# Method to check whether dependent libraries are shared objects.
25843deplibs_check_method=$lt_deplibs_check_method
25844
25845# Command to use when deplibs_check_method == file_magic.
25846file_magic_cmd=$lt_file_magic_cmd
25847
25848# Flag that allows shared libraries with undefined symbols to be built.
25849allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25850
25851# Flag that forces no undefined symbols.
25852no_undefined_flag=$lt_no_undefined_flag_GCJ
25853
25854# Commands used to finish a libtool library installation in a directory.
25855finish_cmds=$lt_finish_cmds
25856
25857# Same as above, but a single script fragment to be evaled but not shown.
25858finish_eval=$lt_finish_eval
25859
25860# Take the output of nm and produce a listing of raw symbols and C names.
25861global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25862
25863# Transform the output of nm in a proper C declaration
25864global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25865
25866# Transform the output of nm in a C name address pair
25867global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25868
25869# This is the shared library runtime path variable.
25870runpath_var=$runpath_var
25871
25872# This is the shared library path variable.
25873shlibpath_var=$shlibpath_var
25874
25875# Is shlibpath searched before the hard-coded library search path?
25876shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25877
25878# How to hardcode a shared library path into an executable.
25879hardcode_action=$hardcode_action_GCJ
25880
25881# Whether we should hardcode library paths into libraries.
25882hardcode_into_libs=$hardcode_into_libs
25883
25884# Flag to hardcode \$libdir into a binary during linking.
25885# This must work even if \$libdir does not exist.
25886hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25887
25888# If ld is used when linking, flag to hardcode \$libdir into
25889# a binary during linking. This must work even if \$libdir does
25890# not exist.
25891hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25892
25893# Whether we need a single -rpath flag with a separated argument.
25894hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25895
25896# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25897# resulting binary.
25898hardcode_direct=$hardcode_direct_GCJ
25899
25900# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25901# resulting binary.
25902hardcode_minus_L=$hardcode_minus_L_GCJ
25903
25904# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25905# the resulting binary.
25906hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25907
25908# Set to yes if building a shared library automatically hardcodes DIR into the library
25909# and all subsequent libraries and executables linked against it.
25910hardcode_automatic=$hardcode_automatic_GCJ
25911
25912# Variables whose values should be saved in libtool wrapper scripts and
25913# restored at relink time.
25914variables_saved_for_relink="$variables_saved_for_relink"
25915
25916# Whether libtool must link a program against all its dependency libraries.
25917link_all_deplibs=$link_all_deplibs_GCJ
25918
25919# Compile-time system search path for libraries
25920sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25921
25922# Run-time system search path for libraries
25923sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25924
25925# Fix the shell variable \$srcfile for the compiler.
25926fix_srcfile_path="$fix_srcfile_path_GCJ"
25927
25928# Set to yes if exported symbols are required.
25929always_export_symbols=$always_export_symbols_GCJ
25930
25931# The commands to list exported symbols.
25932export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25933
25934# The commands to extract the exported symbol list from a shared archive.
25935extract_expsyms_cmds=$lt_extract_expsyms_cmds
25936
25937# Symbols that should not be listed in the preloaded symbols.
25938exclude_expsyms=$lt_exclude_expsyms_GCJ
25939
25940# Symbols that must always be exported.
25941include_expsyms=$lt_include_expsyms_GCJ
25942
25943# ### END LIBTOOL TAG CONFIG: $tagname
25944
25945__EOF__
25946
25947
25948else
25949 # If there is no Makefile yet, we rely on a make rule to execute
25950 # `config.status --recheck' to rerun these tests and create the
25951 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25953 if test -f "$ltmain_in"; then
25954 test -f Makefile && make "$ltmain"
25955 fi
John Criswell47fdd832003-07-14 16:52:07 +000025956fi
25957
25958
25959ac_ext=c
25960ac_cpp='$CPP $CPPFLAGS'
25961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25963ac_compiler_gnu=$ac_cv_c_compiler_gnu
25964
25965CC="$lt_save_CC"
25966
25967 else
25968 tagname=""
25969 fi
25970 ;;
25971
25972 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025973 ac_ext=c
25974ac_cpp='$CPP $CPPFLAGS'
25975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25977ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000025978
25979
25980# Source file extension for RC test sources.
25981ac_ext=rc
25982
25983# Object file extension for compiled RC test sources.
25984objext=o
25985objext_RC=$objext
25986
25987# Code to be used in simple compile tests
25988lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25989
25990# Code to be used in simple link tests
25991lt_simple_link_test_code="$lt_simple_compile_test_code"
25992
25993# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25994
25995# If no C compiler was specified, use CC.
25996LTCC=${LTCC-"$CC"}
25997
Reid Spencera773bd52006-08-04 18:18:08 +000025998# If no C compiler flags were specified, use CFLAGS.
25999LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26000
John Criswell47fdd832003-07-14 16:52:07 +000026001# Allow CC to be a program name with arguments.
26002compiler=$CC
26003
26004
Reid Spencera773bd52006-08-04 18:18:08 +000026005# save warnings/boilerplate of simple test code
26006ac_outfile=conftest.$ac_objext
26007printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26008eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26009_lt_compiler_boilerplate=`cat conftest.err`
26010$rm conftest*
26011
26012ac_outfile=conftest.$ac_objext
26013printf "$lt_simple_link_test_code" >conftest.$ac_ext
26014eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26015_lt_linker_boilerplate=`cat conftest.err`
26016$rm conftest*
26017
26018
John Criswell47fdd832003-07-14 16:52:07 +000026019# Allow CC to be a program name with arguments.
26020lt_save_CC="$CC"
26021CC=${RC-"windres"}
26022compiler=$CC
26023compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026024for cc_temp in $compiler""; do
26025 case $cc_temp in
26026 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26027 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26028 \-*) ;;
26029 *) break;;
26030 esac
26031done
26032cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26033
John Criswell47fdd832003-07-14 16:52:07 +000026034lt_cv_prog_compiler_c_o_RC=yes
26035
26036# The else clause should only fire when bootstrapping the
26037# libtool distribution, otherwise you forgot to ship ltmain.sh
26038# with your package, and you will get complaints that there are
26039# no rules to generate ltmain.sh.
26040if test -f "$ltmain"; then
26041 # See if we are running on zsh, and set the options which allow our commands through
26042 # without removal of \ escapes.
26043 if test -n "${ZSH_VERSION+set}" ; then
26044 setopt NO_GLOB_SUBST
26045 fi
26046 # Now quote all the things that may contain metacharacters while being
26047 # careful not to overquote the AC_SUBSTed values. We take copies of the
26048 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026049 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 +000026050 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026051 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26052 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26053 deplibs_check_method reload_flag reload_cmds need_locks \
26054 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26055 lt_cv_sys_global_symbol_to_c_name_address \
26056 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26057 old_postinstall_cmds old_postuninstall_cmds \
26058 compiler_RC \
26059 CC_RC \
26060 LD_RC \
26061 lt_prog_compiler_wl_RC \
26062 lt_prog_compiler_pic_RC \
26063 lt_prog_compiler_static_RC \
26064 lt_prog_compiler_no_builtin_flag_RC \
26065 export_dynamic_flag_spec_RC \
26066 thread_safe_flag_spec_RC \
26067 whole_archive_flag_spec_RC \
26068 enable_shared_with_static_runtimes_RC \
26069 old_archive_cmds_RC \
26070 old_archive_from_new_cmds_RC \
26071 predep_objects_RC \
26072 postdep_objects_RC \
26073 predeps_RC \
26074 postdeps_RC \
26075 compiler_lib_search_path_RC \
26076 archive_cmds_RC \
26077 archive_expsym_cmds_RC \
26078 postinstall_cmds_RC \
26079 postuninstall_cmds_RC \
26080 old_archive_from_expsyms_cmds_RC \
26081 allow_undefined_flag_RC \
26082 no_undefined_flag_RC \
26083 export_symbols_cmds_RC \
26084 hardcode_libdir_flag_spec_RC \
26085 hardcode_libdir_flag_spec_ld_RC \
26086 hardcode_libdir_separator_RC \
26087 hardcode_automatic_RC \
26088 module_cmds_RC \
26089 module_expsym_cmds_RC \
26090 lt_cv_prog_compiler_c_o_RC \
26091 exclude_expsyms_RC \
26092 include_expsyms_RC; do
26093
26094 case $var in
26095 old_archive_cmds_RC | \
26096 old_archive_from_new_cmds_RC | \
26097 archive_cmds_RC | \
26098 archive_expsym_cmds_RC | \
26099 module_cmds_RC | \
26100 module_expsym_cmds_RC | \
26101 old_archive_from_expsyms_cmds_RC | \
26102 export_symbols_cmds_RC | \
26103 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26104 postinstall_cmds | postuninstall_cmds | \
26105 old_postinstall_cmds | old_postuninstall_cmds | \
26106 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26107 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026108 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 +000026109 ;;
26110 *)
26111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26112 ;;
26113 esac
26114 done
26115
26116 case $lt_echo in
26117 *'\$0 --fallback-echo"')
26118 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26119 ;;
26120 esac
26121
26122cfgfile="$ofile"
26123
26124 cat <<__EOF__ >> "$cfgfile"
26125# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26126
26127# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26128
26129# Shell to use when invoking shell scripts.
26130SHELL=$lt_SHELL
26131
26132# Whether or not to build shared libraries.
26133build_libtool_libs=$enable_shared
26134
26135# Whether or not to build static libraries.
26136build_old_libs=$enable_static
26137
26138# Whether or not to add -lc for building shared libraries.
26139build_libtool_need_lc=$archive_cmds_need_lc_RC
26140
26141# Whether or not to disallow shared libs when runtime libs are static
26142allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26143
26144# Whether or not to optimize for fast installation.
26145fast_install=$enable_fast_install
26146
26147# The host system.
26148host_alias=$host_alias
26149host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026150host_os=$host_os
26151
26152# The build system.
26153build_alias=$build_alias
26154build=$build
26155build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026156
26157# An echo program that does not interpret backslashes.
26158echo=$lt_echo
26159
26160# The archiver.
26161AR=$lt_AR
26162AR_FLAGS=$lt_AR_FLAGS
26163
26164# A C compiler.
26165LTCC=$lt_LTCC
26166
Reid Spencera773bd52006-08-04 18:18:08 +000026167# LTCC compiler flags.
26168LTCFLAGS=$lt_LTCFLAGS
26169
John Criswell47fdd832003-07-14 16:52:07 +000026170# A language-specific compiler.
26171CC=$lt_compiler_RC
26172
26173# Is the compiler the GNU C compiler?
26174with_gcc=$GCC_RC
26175
26176# An ERE matcher.
26177EGREP=$lt_EGREP
26178
26179# The linker used to build libraries.
26180LD=$lt_LD_RC
26181
26182# Whether we need hard or soft links.
26183LN_S=$lt_LN_S
26184
26185# A BSD-compatible nm program.
26186NM=$lt_NM
26187
26188# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026189STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026190
26191# Used to examine libraries when file_magic_cmd begins "file"
26192MAGIC_CMD=$MAGIC_CMD
26193
26194# Used on cygwin: DLL creation program.
26195DLLTOOL="$DLLTOOL"
26196
26197# Used on cygwin: object dumper.
26198OBJDUMP="$OBJDUMP"
26199
26200# Used on cygwin: assembler.
26201AS="$AS"
26202
26203# The name of the directory that contains temporary libtool files.
26204objdir=$objdir
26205
26206# How to create reloadable object files.
26207reload_flag=$lt_reload_flag
26208reload_cmds=$lt_reload_cmds
26209
26210# How to pass a linker flag through the compiler.
26211wl=$lt_lt_prog_compiler_wl_RC
26212
26213# Object file suffix (normally "o").
26214objext="$ac_objext"
26215
26216# Old archive suffix (normally "a").
26217libext="$libext"
26218
26219# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026220shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026221
26222# Executable file suffix (normally "").
26223exeext="$exeext"
26224
26225# Additional compiler flags for building library objects.
26226pic_flag=$lt_lt_prog_compiler_pic_RC
26227pic_mode=$pic_mode
26228
26229# What is the maximum length of a command?
26230max_cmd_len=$lt_cv_sys_max_cmd_len
26231
26232# Does compiler simultaneously support -c and -o options?
26233compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26234
Reid Spencera773bd52006-08-04 18:18:08 +000026235# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026236need_locks=$lt_need_locks
26237
26238# Do we need the lib prefix for modules?
26239need_lib_prefix=$need_lib_prefix
26240
26241# Do we need a version for libraries?
26242need_version=$need_version
26243
26244# Whether dlopen is supported.
26245dlopen_support=$enable_dlopen
26246
26247# Whether dlopen of programs is supported.
26248dlopen_self=$enable_dlopen_self
26249
26250# Whether dlopen of statically linked programs is supported.
26251dlopen_self_static=$enable_dlopen_self_static
26252
26253# Compiler flag to prevent dynamic linking.
26254link_static_flag=$lt_lt_prog_compiler_static_RC
26255
26256# Compiler flag to turn off builtin functions.
26257no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26258
26259# Compiler flag to allow reflexive dlopens.
26260export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26261
26262# Compiler flag to generate shared objects directly from archives.
26263whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26264
26265# Compiler flag to generate thread-safe objects.
26266thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26267
26268# Library versioning type.
26269version_type=$version_type
26270
26271# Format of library name prefix.
26272libname_spec=$lt_libname_spec
26273
26274# List of archive names. First name is the real one, the rest are links.
26275# The last name is the one that the linker finds with -lNAME.
26276library_names_spec=$lt_library_names_spec
26277
26278# The coded name of the library, if different from the real name.
26279soname_spec=$lt_soname_spec
26280
26281# Commands used to build and install an old-style archive.
26282RANLIB=$lt_RANLIB
26283old_archive_cmds=$lt_old_archive_cmds_RC
26284old_postinstall_cmds=$lt_old_postinstall_cmds
26285old_postuninstall_cmds=$lt_old_postuninstall_cmds
26286
26287# Create an old-style archive from a shared archive.
26288old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26289
26290# Create a temporary old-style archive to link instead of a shared archive.
26291old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26292
26293# Commands used to build and install a shared archive.
26294archive_cmds=$lt_archive_cmds_RC
26295archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26296postinstall_cmds=$lt_postinstall_cmds
26297postuninstall_cmds=$lt_postuninstall_cmds
26298
26299# Commands used to build a loadable module (assumed same as above if empty)
26300module_cmds=$lt_module_cmds_RC
26301module_expsym_cmds=$lt_module_expsym_cmds_RC
26302
26303# Commands to strip libraries.
26304old_striplib=$lt_old_striplib
26305striplib=$lt_striplib
26306
26307# Dependencies to place before the objects being linked to create a
26308# shared library.
26309predep_objects=$lt_predep_objects_RC
26310
26311# Dependencies to place after the objects being linked to create a
26312# shared library.
26313postdep_objects=$lt_postdep_objects_RC
26314
26315# Dependencies to place before the objects being linked to create a
26316# shared library.
26317predeps=$lt_predeps_RC
26318
26319# Dependencies to place after the objects being linked to create a
26320# shared library.
26321postdeps=$lt_postdeps_RC
26322
26323# The library search path used internally by the compiler when linking
26324# a shared library.
26325compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26326
26327# Method to check whether dependent libraries are shared objects.
26328deplibs_check_method=$lt_deplibs_check_method
26329
26330# Command to use when deplibs_check_method == file_magic.
26331file_magic_cmd=$lt_file_magic_cmd
26332
26333# Flag that allows shared libraries with undefined symbols to be built.
26334allow_undefined_flag=$lt_allow_undefined_flag_RC
26335
26336# Flag that forces no undefined symbols.
26337no_undefined_flag=$lt_no_undefined_flag_RC
26338
26339# Commands used to finish a libtool library installation in a directory.
26340finish_cmds=$lt_finish_cmds
26341
26342# Same as above, but a single script fragment to be evaled but not shown.
26343finish_eval=$lt_finish_eval
26344
26345# Take the output of nm and produce a listing of raw symbols and C names.
26346global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26347
26348# Transform the output of nm in a proper C declaration
26349global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26350
26351# Transform the output of nm in a C name address pair
26352global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26353
26354# This is the shared library runtime path variable.
26355runpath_var=$runpath_var
26356
26357# This is the shared library path variable.
26358shlibpath_var=$shlibpath_var
26359
26360# Is shlibpath searched before the hard-coded library search path?
26361shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26362
26363# How to hardcode a shared library path into an executable.
26364hardcode_action=$hardcode_action_RC
26365
26366# Whether we should hardcode library paths into libraries.
26367hardcode_into_libs=$hardcode_into_libs
26368
26369# Flag to hardcode \$libdir into a binary during linking.
26370# This must work even if \$libdir does not exist.
26371hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26372
26373# If ld is used when linking, flag to hardcode \$libdir into
26374# a binary during linking. This must work even if \$libdir does
26375# not exist.
26376hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26377
26378# Whether we need a single -rpath flag with a separated argument.
26379hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26380
26381# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26382# resulting binary.
26383hardcode_direct=$hardcode_direct_RC
26384
26385# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26386# resulting binary.
26387hardcode_minus_L=$hardcode_minus_L_RC
26388
26389# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26390# the resulting binary.
26391hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26392
26393# Set to yes if building a shared library automatically hardcodes DIR into the library
26394# and all subsequent libraries and executables linked against it.
26395hardcode_automatic=$hardcode_automatic_RC
26396
26397# Variables whose values should be saved in libtool wrapper scripts and
26398# restored at relink time.
26399variables_saved_for_relink="$variables_saved_for_relink"
26400
26401# Whether libtool must link a program against all its dependency libraries.
26402link_all_deplibs=$link_all_deplibs_RC
26403
26404# Compile-time system search path for libraries
26405sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26406
26407# Run-time system search path for libraries
26408sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26409
26410# Fix the shell variable \$srcfile for the compiler.
26411fix_srcfile_path="$fix_srcfile_path_RC"
26412
26413# Set to yes if exported symbols are required.
26414always_export_symbols=$always_export_symbols_RC
26415
26416# The commands to list exported symbols.
26417export_symbols_cmds=$lt_export_symbols_cmds_RC
26418
26419# The commands to extract the exported symbol list from a shared archive.
26420extract_expsyms_cmds=$lt_extract_expsyms_cmds
26421
26422# Symbols that should not be listed in the preloaded symbols.
26423exclude_expsyms=$lt_exclude_expsyms_RC
26424
26425# Symbols that must always be exported.
26426include_expsyms=$lt_include_expsyms_RC
26427
26428# ### END LIBTOOL TAG CONFIG: $tagname
26429
26430__EOF__
26431
26432
26433else
26434 # If there is no Makefile yet, we rely on a make rule to execute
26435 # `config.status --recheck' to rerun these tests and create the
26436 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026437 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26438 if test -f "$ltmain_in"; then
26439 test -f Makefile && make "$ltmain"
26440 fi
John Criswell47fdd832003-07-14 16:52:07 +000026441fi
26442
26443
26444ac_ext=c
26445ac_cpp='$CPP $CPPFLAGS'
26446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26448ac_compiler_gnu=$ac_cv_c_compiler_gnu
26449
26450CC="$lt_save_CC"
26451
26452 ;;
26453
26454 *)
26455 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26456echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26457 { (exit 1); exit 1; }; }
26458 ;;
26459 esac
26460
26461 # Append the new tag name to the list of available tags.
26462 if test -n "$tagname" ; then
26463 available_tags="$available_tags $tagname"
26464 fi
26465 fi
26466 done
26467 IFS="$lt_save_ifs"
26468
26469 # Now substitute the updated list of available tags.
26470 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26471 mv "${ofile}T" "$ofile"
26472 chmod +x "$ofile"
26473 else
26474 rm -f "${ofile}T"
26475 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26476echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26477 { (exit 1); exit 1; }; }
26478 fi
26479fi
John Criswell7a73b802003-06-30 21:59:07 +000026480
26481
26482
26483# This can be used to rebuild libtool when needed
26484LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26485
26486# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026487LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026488
26489# Prevent multiple expansion
26490
26491
26492
John Criswell47fdd832003-07-14 16:52:07 +000026493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026510
Reid Spencer582a23c2004-12-29 07:07:57 +000026511if test "$lt_cv_dlopen_self" = "yes" ; then
26512
26513cat >>confdefs.h <<\_ACEOF
26514#define CAN_DLOPEN_SELF 1
26515_ACEOF
26516
26517fi
26518
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026519etags_version=`$ETAGS --version 2>&1`
26520case "$etags_version" in
26521 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26522 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26523 *) ETAGSFLAGS="" ;;
26524esac
26525ETAGSFLAGS=$ETAGSFLAGS
26526
26527
Reid Spencer7931a782004-12-27 06:15:02 +000026528if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026529 LLVMGCC="llvm-gcc${EXEEXT}"
26530 LLVMGXX="llvm-g++${EXEEXT}"
26531 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26532set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026535if test "${ac_cv_path_LLVMGCC+set}" = set; then
26536 echo $ECHO_N "(cached) $ECHO_C" >&6
26537else
26538 case $LLVMGCC in
26539 [\\/]* | ?:[\\/]*)
26540 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26541 ;;
26542 *)
26543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26544for as_dir in $PATH
26545do
26546 IFS=$as_save_IFS
26547 test -z "$as_dir" && as_dir=.
26548 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026549 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 +000026550 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26552 break 2
26553 fi
26554done
26555done
Reid Spencera773bd52006-08-04 18:18:08 +000026556IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026557
Reid Spencer59473af2004-12-25 07:31:29 +000026558 ;;
26559esac
26560fi
26561LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026562if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026563 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26564echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026565else
Reid Spencera773bd52006-08-04 18:18:08 +000026566 { echo "$as_me:$LINENO: result: no" >&5
26567echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026568fi
26569
Reid Spencera773bd52006-08-04 18:18:08 +000026570
Reid Spencerc84492c2005-06-02 22:34:49 +000026571 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26572set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026575if test "${ac_cv_path_LLVMGXX+set}" = set; then
26576 echo $ECHO_N "(cached) $ECHO_C" >&6
26577else
26578 case $LLVMGXX in
26579 [\\/]* | ?:[\\/]*)
26580 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26581 ;;
26582 *)
26583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26584for as_dir in $PATH
26585do
26586 IFS=$as_save_IFS
26587 test -z "$as_dir" && as_dir=.
26588 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026589 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 +000026590 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26592 break 2
26593 fi
26594done
26595done
Reid Spencera773bd52006-08-04 18:18:08 +000026596IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026597
Reid Spencer59473af2004-12-25 07:31:29 +000026598 ;;
26599esac
26600fi
26601LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026602if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026603 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26604echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026605else
Reid Spencera773bd52006-08-04 18:18:08 +000026606 { echo "$as_me:$LINENO: result: no" >&5
26607echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026608fi
26609
Reid Spencera773bd52006-08-04 18:18:08 +000026610
Reid Spencer59473af2004-12-25 07:31:29 +000026611else
Reid Spencerc84492c2005-06-02 22:34:49 +000026612 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26613 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026614 LLVMGCC=$LLVMGCC
26615
26616 LLVMGXX=$LLVMGXX
26617
26618fi
26619
Reid Spencera773bd52006-08-04 18:18:08 +000026620{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26621echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026622
Reid Spencer86901802004-12-08 23:07:27 +000026623ICC=no
26624IXX=no
26625case $CC in
26626 icc*|icpc*)
26627 ICC=yes
26628 IXX=yes
26629 ;;
26630 *)
26631 ;;
26632esac
26633
Duraid Madina937c60a2006-02-15 07:57:42 +000026634if test "$GCC" != "yes" && test "$ICC" != "yes"
26635then
26636 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26637echo "$as_me: error: gcc|icc required but not found" >&2;}
26638 { (exit 1); exit 1; }; }
26639fi
26640
26641if test "$GXX" != "yes" && test "$IXX" != "yes"
26642then
26643 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26644echo "$as_me: error: g++|icc required but not found" >&2;}
26645 { (exit 1); exit 1; }; }
26646fi
26647
Reid Spencer86901802004-12-08 23:07:27 +000026648if test "$GCC" = "yes"
26649then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026650 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026651 if test "$gccmajor" -lt "3"
26652 then
26653 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026654echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26655 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026656 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026657fi
26658
26659if test -z "$llvm_cv_gnu_make_command"
26660then
26661 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26662echo "$as_me: error: GNU Make required but not found" >&2;}
26663 { (exit 1); exit 1; }; }
26664fi
26665
Reid Spencera773bd52006-08-04 18:18:08 +000026666{ echo "$as_me:$LINENO: result: ok" >&5
26667echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026668
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026669
John Criswell7a73b802003-06-30 21:59:07 +000026670
Reid Spencera773bd52006-08-04 18:18:08 +000026671{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26672echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026673if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26674 echo $ECHO_N "(cached) $ECHO_C" >&6
26675else
26676 ac_check_lib_save_LIBS=$LIBS
26677LIBS="-lelf $LIBS"
26678cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026679/* confdefs.h. */
26680_ACEOF
26681cat confdefs.h >>conftest.$ac_ext
26682cat >>conftest.$ac_ext <<_ACEOF
26683/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026684
Reid Spencera773bd52006-08-04 18:18:08 +000026685/* Override any GCC internal prototype to avoid an error.
26686 Use char because int might match the return type of a GCC
26687 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026688#ifdef __cplusplus
26689extern "C"
26690#endif
John Criswell7a73b802003-06-30 21:59:07 +000026691char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026692int
26693main ()
26694{
Reid Spencera773bd52006-08-04 18:18:08 +000026695return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026696 ;
26697 return 0;
26698}
26699_ACEOF
26700rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026701if { (ac_try="$ac_link"
26702case "(($ac_try" in
26703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26704 *) ac_try_echo=$ac_try;;
26705esac
26706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26707 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026709 grep -v '^ *+' conftest.er1 >conftest.err
26710 rm -f conftest.er1
26711 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26715 { (case "(($ac_try" in
26716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26717 *) ac_try_echo=$ac_try;;
26718esac
26719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26720 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026721 ac_status=$?
26722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723 (exit $ac_status); }; } &&
26724 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026725 { (case "(($ac_try" in
26726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26727 *) ac_try_echo=$ac_try;;
26728esac
26729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26730 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026731 ac_status=$?
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); }; }; then
26734 ac_cv_lib_elf_elf_begin=yes
26735else
26736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026737sed 's/^/| /' conftest.$ac_ext >&5
26738
Reid Spencera773bd52006-08-04 18:18:08 +000026739 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026740fi
Reid Spencera773bd52006-08-04 18:18:08 +000026741
26742rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026743 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026744LIBS=$ac_check_lib_save_LIBS
26745fi
Reid Spencera773bd52006-08-04 18:18:08 +000026746{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26747echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026748if test $ac_cv_lib_elf_elf_begin = yes; then
26749 cat >>confdefs.h <<_ACEOF
26750#define HAVE_LIBELF 1
26751_ACEOF
26752
26753 LIBS="-lelf $LIBS"
26754
26755fi
26756
26757
Reid Spencera773bd52006-08-04 18:18:08 +000026758{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26759echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026760if test "${ac_cv_lib_m_sin+set}" = set; then
26761 echo $ECHO_N "(cached) $ECHO_C" >&6
26762else
26763 ac_check_lib_save_LIBS=$LIBS
26764LIBS="-lm $LIBS"
26765cat >conftest.$ac_ext <<_ACEOF
26766/* confdefs.h. */
26767_ACEOF
26768cat confdefs.h >>conftest.$ac_ext
26769cat >>conftest.$ac_ext <<_ACEOF
26770/* end confdefs.h. */
26771
Reid Spencera773bd52006-08-04 18:18:08 +000026772/* Override any GCC internal prototype to avoid an error.
26773 Use char because int might match the return type of a GCC
26774 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026775#ifdef __cplusplus
26776extern "C"
26777#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026778char sin ();
26779int
26780main ()
26781{
Reid Spencera773bd52006-08-04 18:18:08 +000026782return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026783 ;
26784 return 0;
26785}
26786_ACEOF
26787rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026788if { (ac_try="$ac_link"
26789case "(($ac_try" in
26790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26791 *) ac_try_echo=$ac_try;;
26792esac
26793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26794 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026795 ac_status=$?
26796 grep -v '^ *+' conftest.er1 >conftest.err
26797 rm -f conftest.er1
26798 cat conftest.err >&5
26799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26802 { (case "(($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_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026808 ac_status=$?
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); }; } &&
26811 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026812 { (case "(($ac_try" in
26813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26815esac
26816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; }; then
26821 ac_cv_lib_m_sin=yes
26822else
26823 echo "$as_me: failed program was:" >&5
26824sed 's/^/| /' conftest.$ac_ext >&5
26825
Reid Spencera773bd52006-08-04 18:18:08 +000026826 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026827fi
Reid Spencera773bd52006-08-04 18:18:08 +000026828
26829rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026830 conftest$ac_exeext conftest.$ac_ext
26831LIBS=$ac_check_lib_save_LIBS
26832fi
Reid Spencera773bd52006-08-04 18:18:08 +000026833{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26834echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026835if test $ac_cv_lib_m_sin = yes; then
26836 cat >>confdefs.h <<_ACEOF
26837#define HAVE_LIBM 1
26838_ACEOF
26839
26840 LIBS="-lm $LIBS"
26841
26842fi
26843
Reid Spencer484fc8e2006-06-01 16:55:59 +000026844if test "$llvm_cv_os_type" == "MingW" ; then
26845
Reid Spencera773bd52006-08-04 18:18:08 +000026846{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26847echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026848if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026849 echo $ECHO_N "(cached) $ECHO_C" >&6
26850else
26851 ac_check_lib_save_LIBS=$LIBS
26852LIBS="-limagehlp $LIBS"
26853cat >conftest.$ac_ext <<_ACEOF
26854/* confdefs.h. */
26855_ACEOF
26856cat confdefs.h >>conftest.$ac_ext
26857cat >>conftest.$ac_ext <<_ACEOF
26858/* end confdefs.h. */
26859
Reid Spencer48fdf912006-06-01 19:03:21 +000026860
Reid Spencer484fc8e2006-06-01 16:55:59 +000026861int
26862main ()
26863{
Reid Spencera773bd52006-08-04 18:18:08 +000026864return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026865 ;
26866 return 0;
26867}
26868_ACEOF
26869rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026870if { (ac_try="$ac_link"
26871case "(($ac_try" in
26872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26873 *) ac_try_echo=$ac_try;;
26874esac
26875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26876 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026877 ac_status=$?
26878 grep -v '^ *+' conftest.er1 >conftest.err
26879 rm -f conftest.er1
26880 cat conftest.err >&5
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26884 { (case "(($ac_try" in
26885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26886 *) ac_try_echo=$ac_try;;
26887esac
26888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26889 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026890 ac_status=$?
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; } &&
26893 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026894 { (case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26897esac
26898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026900 ac_status=$?
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026903 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026904else
26905 echo "$as_me: failed program was:" >&5
26906sed 's/^/| /' conftest.$ac_ext >&5
26907
Reid Spencera773bd52006-08-04 18:18:08 +000026908 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026909fi
Reid Spencera773bd52006-08-04 18:18:08 +000026910
26911rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026912 conftest$ac_exeext conftest.$ac_ext
26913LIBS=$ac_check_lib_save_LIBS
26914fi
Reid Spencera773bd52006-08-04 18:18:08 +000026915{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26916echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026917if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026918 cat >>confdefs.h <<_ACEOF
26919#define HAVE_LIBIMAGEHLP 1
26920_ACEOF
26921
26922 LIBS="-limagehlp $LIBS"
26923
26924fi
26925
26926
Reid Spencera773bd52006-08-04 18:18:08 +000026927{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26928echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026929if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026930 echo $ECHO_N "(cached) $ECHO_C" >&6
26931else
26932 ac_check_lib_save_LIBS=$LIBS
26933LIBS="-lpsapi $LIBS"
26934cat >conftest.$ac_ext <<_ACEOF
26935/* confdefs.h. */
26936_ACEOF
26937cat confdefs.h >>conftest.$ac_ext
26938cat >>conftest.$ac_ext <<_ACEOF
26939/* end confdefs.h. */
26940
Reid Spencer48fdf912006-06-01 19:03:21 +000026941
Reid Spencer484fc8e2006-06-01 16:55:59 +000026942int
26943main ()
26944{
Reid Spencera773bd52006-08-04 18:18:08 +000026945return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026946 ;
26947 return 0;
26948}
26949_ACEOF
26950rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026951if { (ac_try="$ac_link"
26952case "(($ac_try" in
26953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954 *) ac_try_echo=$ac_try;;
26955esac
26956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026958 ac_status=$?
26959 grep -v '^ *+' conftest.er1 >conftest.err
26960 rm -f conftest.er1
26961 cat conftest.err >&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26965 { (case "(($ac_try" in
26966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967 *) ac_try_echo=$ac_try;;
26968esac
26969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026971 ac_status=$?
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; } &&
26974 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026975 { (case "(($ac_try" in
26976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26977 *) ac_try_echo=$ac_try;;
26978esac
26979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26980 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026981 ac_status=$?
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026984 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026985else
26986 echo "$as_me: failed program was:" >&5
26987sed 's/^/| /' conftest.$ac_ext >&5
26988
Reid Spencera773bd52006-08-04 18:18:08 +000026989 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026990fi
Reid Spencera773bd52006-08-04 18:18:08 +000026991
26992rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026993 conftest$ac_exeext conftest.$ac_ext
26994LIBS=$ac_check_lib_save_LIBS
26995fi
Reid Spencera773bd52006-08-04 18:18:08 +000026996{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26997echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026998if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026999 cat >>confdefs.h <<_ACEOF
27000#define HAVE_LIBPSAPI 1
27001_ACEOF
27002
27003 LIBS="-lpsapi $LIBS"
27004
27005fi
27006
27007fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027008
Reid Spencera773bd52006-08-04 18:18:08 +000027009{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27010echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027011if test "${ac_cv_search_lt_dlopen+set}" = set; then
27012 echo $ECHO_N "(cached) $ECHO_C" >&6
27013else
27014 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027015cat >conftest.$ac_ext <<_ACEOF
27016/* confdefs.h. */
27017_ACEOF
27018cat confdefs.h >>conftest.$ac_ext
27019cat >>conftest.$ac_ext <<_ACEOF
27020/* end confdefs.h. */
27021
Reid Spencera773bd52006-08-04 18:18:08 +000027022/* Override any GCC internal prototype to avoid an error.
27023 Use char because int might match the return type of a GCC
27024 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027025#ifdef __cplusplus
27026extern "C"
27027#endif
Reid Spencer17795972004-11-18 09:47:37 +000027028char lt_dlopen ();
27029int
27030main ()
27031{
Reid Spencera773bd52006-08-04 18:18:08 +000027032return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027033 ;
27034 return 0;
27035}
27036_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027037for ac_lib in '' ltdl; do
27038 if test -z "$ac_lib"; then
27039 ac_res="none required"
27040 else
27041 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027043 fi
27044 rm -f conftest.$ac_objext conftest$ac_exeext
27045if { (ac_try="$ac_link"
27046case "(($ac_try" in
27047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048 *) ac_try_echo=$ac_try;;
27049esac
27050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027052 ac_status=$?
27053 grep -v '^ *+' conftest.er1 >conftest.err
27054 rm -f conftest.er1
27055 cat conftest.err >&5
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27059 { (case "(($ac_try" in
27060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061 *) ac_try_echo=$ac_try;;
27062esac
27063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27064 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027065 ac_status=$?
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); }; } &&
27068 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027069 { (case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27072esac
27073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027078 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027079else
27080 echo "$as_me: failed program was:" >&5
27081sed 's/^/| /' conftest.$ac_ext >&5
27082
Reid Spencera773bd52006-08-04 18:18:08 +000027083
Reid Spencer17795972004-11-18 09:47:37 +000027084fi
Reid Spencera773bd52006-08-04 18:18:08 +000027085
27086rm -f core conftest.err conftest.$ac_objext \
27087 conftest$ac_exeext
27088 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27089 break
Reid Spencer17795972004-11-18 09:47:37 +000027090fi
Reid Spencera773bd52006-08-04 18:18:08 +000027091done
27092if test "${ac_cv_search_lt_dlopen+set}" = set; then
27093 :
27094else
27095 ac_cv_search_lt_dlopen=no
27096fi
27097rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027098LIBS=$ac_func_search_save_LIBS
27099fi
Reid Spencera773bd52006-08-04 18:18:08 +000027100{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27101echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27102ac_res=$ac_cv_search_lt_dlopen
27103if test "$ac_res" != no; then
27104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027105
27106cat >>confdefs.h <<\_ACEOF
27107#define HAVE_LT_DLOPEN 1
27108_ACEOF
27109
27110else
27111 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27112 not be available" >&5
27113echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27114 not be available" >&2;}
27115fi
27116
27117
Reid Spencera773bd52006-08-04 18:18:08 +000027118{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27119echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027120if test "${ac_cv_search_dlopen+set}" = set; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27122else
27123 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027124cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027125/* confdefs.h. */
27126_ACEOF
27127cat confdefs.h >>conftest.$ac_ext
27128cat >>conftest.$ac_ext <<_ACEOF
27129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027130
Reid Spencera773bd52006-08-04 18:18:08 +000027131/* Override any GCC internal prototype to avoid an error.
27132 Use char because int might match the return type of a GCC
27133 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027134#ifdef __cplusplus
27135extern "C"
27136#endif
John Criswell7a73b802003-06-30 21:59:07 +000027137char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027138int
27139main ()
27140{
Reid Spencera773bd52006-08-04 18:18:08 +000027141return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027142 ;
27143 return 0;
27144}
27145_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027146for ac_lib in '' dl; do
27147 if test -z "$ac_lib"; then
27148 ac_res="none required"
27149 else
27150 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027152 fi
27153 rm -f conftest.$ac_objext conftest$ac_exeext
27154if { (ac_try="$ac_link"
27155case "(($ac_try" in
27156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27157 *) ac_try_echo=$ac_try;;
27158esac
27159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27160 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027161 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027162 grep -v '^ *+' conftest.er1 >conftest.err
27163 rm -f conftest.er1
27164 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27168 { (case "(($ac_try" in
27169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170 *) ac_try_echo=$ac_try;;
27171esac
27172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027174 ac_status=$?
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); }; } &&
27177 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027178 { (case "(($ac_try" in
27179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27180 *) ac_try_echo=$ac_try;;
27181esac
27182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27183 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027184 ac_status=$?
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027187 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027188else
27189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027190sed 's/^/| /' conftest.$ac_ext >&5
27191
Reid Spencera773bd52006-08-04 18:18:08 +000027192
John Criswell7a73b802003-06-30 21:59:07 +000027193fi
Reid Spencera773bd52006-08-04 18:18:08 +000027194
27195rm -f core conftest.err conftest.$ac_objext \
27196 conftest$ac_exeext
27197 if test "${ac_cv_search_dlopen+set}" = set; then
27198 break
John Criswell7a73b802003-06-30 21:59:07 +000027199fi
Reid Spencera773bd52006-08-04 18:18:08 +000027200done
27201if test "${ac_cv_search_dlopen+set}" = set; then
27202 :
27203else
27204 ac_cv_search_dlopen=no
27205fi
27206rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027207LIBS=$ac_func_search_save_LIBS
27208fi
Reid Spencera773bd52006-08-04 18:18:08 +000027209{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27210echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27211ac_res=$ac_cv_search_dlopen
27212if test "$ac_res" != no; then
27213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027214
27215cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027216#define HAVE_DLOPEN 1
27217_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027218
27219else
Brian Gaekec45be042003-10-07 06:01:34 +000027220 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27221echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027222fi
27223
27224
Reid Spencera773bd52006-08-04 18:18:08 +000027225{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27226echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027227if test "${ac_cv_search_mallinfo+set}" = set; then
27228 echo $ECHO_N "(cached) $ECHO_C" >&6
27229else
27230 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027231cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027232/* confdefs.h. */
27233_ACEOF
27234cat confdefs.h >>conftest.$ac_ext
27235cat >>conftest.$ac_ext <<_ACEOF
27236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027237
Reid Spencera773bd52006-08-04 18:18:08 +000027238/* Override any GCC internal prototype to avoid an error.
27239 Use char because int might match the return type of a GCC
27240 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027241#ifdef __cplusplus
27242extern "C"
27243#endif
John Criswell7a73b802003-06-30 21:59:07 +000027244char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027245int
27246main ()
27247{
Reid Spencera773bd52006-08-04 18:18:08 +000027248return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027249 ;
27250 return 0;
27251}
27252_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027253for ac_lib in '' malloc; do
27254 if test -z "$ac_lib"; then
27255 ac_res="none required"
27256 else
27257 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027259 fi
27260 rm -f conftest.$ac_objext conftest$ac_exeext
27261if { (ac_try="$ac_link"
27262case "(($ac_try" in
27263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264 *) ac_try_echo=$ac_try;;
27265esac
27266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027268 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027269 grep -v '^ *+' conftest.er1 >conftest.err
27270 rm -f conftest.er1
27271 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27275 { (case "(($ac_try" in
27276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277 *) ac_try_echo=$ac_try;;
27278esac
27279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27280 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027281 ac_status=$?
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); }; } &&
27284 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027285 { (case "(($ac_try" in
27286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287 *) ac_try_echo=$ac_try;;
27288esac
27289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027291 ac_status=$?
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027294 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027295else
27296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027297sed 's/^/| /' conftest.$ac_ext >&5
27298
Reid Spencera773bd52006-08-04 18:18:08 +000027299
John Criswell7a73b802003-06-30 21:59:07 +000027300fi
Reid Spencera773bd52006-08-04 18:18:08 +000027301
27302rm -f core conftest.err conftest.$ac_objext \
27303 conftest$ac_exeext
27304 if test "${ac_cv_search_mallinfo+set}" = set; then
27305 break
John Criswell7a73b802003-06-30 21:59:07 +000027306fi
Reid Spencera773bd52006-08-04 18:18:08 +000027307done
27308if test "${ac_cv_search_mallinfo+set}" = set; then
27309 :
27310else
27311 ac_cv_search_mallinfo=no
27312fi
27313rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027314LIBS=$ac_func_search_save_LIBS
27315fi
Reid Spencera773bd52006-08-04 18:18:08 +000027316{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27317echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27318ac_res=$ac_cv_search_mallinfo
27319if test "$ac_res" != no; then
27320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027321
27322cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027323#define HAVE_MALLINFO 1
27324_ACEOF
27325
27326fi
27327
27328
Reid Spencer0a262ba2005-08-24 10:07:20 +000027329if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027330
Reid Spencera773bd52006-08-04 18:18:08 +000027331{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27332echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027333if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27334 echo $ECHO_N "(cached) $ECHO_C" >&6
27335else
27336 ac_check_lib_save_LIBS=$LIBS
27337LIBS="-lpthread $LIBS"
27338cat >conftest.$ac_ext <<_ACEOF
27339/* confdefs.h. */
27340_ACEOF
27341cat confdefs.h >>conftest.$ac_ext
27342cat >>conftest.$ac_ext <<_ACEOF
27343/* end confdefs.h. */
27344
Reid Spencera773bd52006-08-04 18:18:08 +000027345/* Override any GCC internal prototype to avoid an error.
27346 Use char because int might match the return type of a GCC
27347 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027348#ifdef __cplusplus
27349extern "C"
27350#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027351char pthread_mutex_init ();
27352int
27353main ()
27354{
Reid Spencera773bd52006-08-04 18:18:08 +000027355return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027356 ;
27357 return 0;
27358}
27359_ACEOF
27360rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027361if { (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
Reid Spencer22177fe2005-07-12 15:24:20 +000027368 ac_status=$?
27369 grep -v '^ *+' conftest.er1 >conftest.err
27370 rm -f conftest.er1
27371 cat conftest.err >&5
27372 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 Spencer22177fe2005-07-12 15:24:20 +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
Reid Spencer22177fe2005-07-12 15:24:20 +000027391 ac_status=$?
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; }; then
27394 ac_cv_lib_pthread_pthread_mutex_init=yes
27395else
27396 echo "$as_me: failed program was:" >&5
27397sed 's/^/| /' conftest.$ac_ext >&5
27398
Reid Spencera773bd52006-08-04 18:18:08 +000027399 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027400fi
Reid Spencera773bd52006-08-04 18:18:08 +000027401
27402rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027403 conftest$ac_exeext conftest.$ac_ext
27404LIBS=$ac_check_lib_save_LIBS
27405fi
Reid Spencera773bd52006-08-04 18:18:08 +000027406{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27407echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027408if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27409 cat >>confdefs.h <<_ACEOF
27410#define HAVE_LIBPTHREAD 1
27411_ACEOF
27412
27413 LIBS="-lpthread $LIBS"
27414
27415fi
27416
Reid Spencera773bd52006-08-04 18:18:08 +000027417 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27418echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027419if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27420 echo $ECHO_N "(cached) $ECHO_C" >&6
27421else
27422 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027423cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027424/* confdefs.h. */
27425_ACEOF
27426cat confdefs.h >>conftest.$ac_ext
27427cat >>conftest.$ac_ext <<_ACEOF
27428/* end confdefs.h. */
27429
Reid Spencera773bd52006-08-04 18:18:08 +000027430/* Override any GCC internal prototype to avoid an error.
27431 Use char because int might match the return type of a GCC
27432 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027433#ifdef __cplusplus
27434extern "C"
27435#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027436char pthread_mutex_lock ();
27437int
27438main ()
27439{
Reid Spencera773bd52006-08-04 18:18:08 +000027440return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027441 ;
27442 return 0;
27443}
27444_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027445for ac_lib in '' pthread; do
27446 if test -z "$ac_lib"; then
27447 ac_res="none required"
27448 else
27449 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027451 fi
27452 rm -f conftest.$ac_objext conftest$ac_exeext
27453if { (ac_try="$ac_link"
27454case "(($ac_try" in
27455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27456 *) ac_try_echo=$ac_try;;
27457esac
27458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27459 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027460 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027461 grep -v '^ *+' conftest.er1 >conftest.err
27462 rm -f conftest.er1
27463 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27467 { (case "(($ac_try" in
27468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469 *) ac_try_echo=$ac_try;;
27470esac
27471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027473 ac_status=$?
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; } &&
27476 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027477 { (case "(($ac_try" in
27478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27479 *) ac_try_echo=$ac_try;;
27480esac
27481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27482 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027483 ac_status=$?
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027486 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027487else
27488 echo "$as_me: failed program was:" >&5
27489sed 's/^/| /' conftest.$ac_ext >&5
27490
Reid Spencera773bd52006-08-04 18:18:08 +000027491
Brian Gaeke5f268f72003-12-05 19:29:01 +000027492fi
Reid Spencera773bd52006-08-04 18:18:08 +000027493
27494rm -f core conftest.err conftest.$ac_objext \
27495 conftest$ac_exeext
27496 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27497 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027498fi
Reid Spencera773bd52006-08-04 18:18:08 +000027499done
27500if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27501 :
27502else
27503 ac_cv_search_pthread_mutex_lock=no
27504fi
27505rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027506LIBS=$ac_func_search_save_LIBS
27507fi
Reid Spencera773bd52006-08-04 18:18:08 +000027508{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27509echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27510ac_res=$ac_cv_search_pthread_mutex_lock
27511if test "$ac_res" != no; then
27512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027513
John Criswell40468462004-09-24 21:19:06 +000027514cat >>confdefs.h <<\_ACEOF
27515#define HAVE_PTHREAD_MUTEX_LOCK 1
27516_ACEOF
27517
27518fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027519
Reid Spencer0a262ba2005-08-24 10:07:20 +000027520fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027521
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027522
Reid Spencer59473af2004-12-25 07:31:29 +000027523
27524
27525
27526
27527
27528ac_header_dirent=no
27529for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27530 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027531{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27532echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027534 echo $ECHO_N "(cached) $ECHO_C" >&6
27535else
27536 cat >conftest.$ac_ext <<_ACEOF
27537/* confdefs.h. */
27538_ACEOF
27539cat confdefs.h >>conftest.$ac_ext
27540cat >>conftest.$ac_ext <<_ACEOF
27541/* end confdefs.h. */
27542#include <sys/types.h>
27543#include <$ac_hdr>
27544
27545int
27546main ()
27547{
27548if ((DIR *) 0)
27549return 0;
27550 ;
27551 return 0;
27552}
27553_ACEOF
27554rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027555if { (ac_try="$ac_compile"
27556case "(($ac_try" in
27557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558 *) ac_try_echo=$ac_try;;
27559esac
27560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027562 ac_status=$?
27563 grep -v '^ *+' conftest.er1 >conftest.err
27564 rm -f conftest.er1
27565 cat conftest.err >&5
27566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27569 { (case "(($ac_try" in
27570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571 *) ac_try_echo=$ac_try;;
27572esac
27573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027575 ac_status=$?
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); }; } &&
27578 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027579 { (case "(($ac_try" in
27580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27581 *) ac_try_echo=$ac_try;;
27582esac
27583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027585 ac_status=$?
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); }; }; then
27588 eval "$as_ac_Header=yes"
27589else
27590 echo "$as_me: failed program was:" >&5
27591sed 's/^/| /' conftest.$ac_ext >&5
27592
Reid Spencera773bd52006-08-04 18:18:08 +000027593 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027594fi
Reid Spencera773bd52006-08-04 18:18:08 +000027595
27596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027597fi
Reid Spencera773bd52006-08-04 18:18:08 +000027598ac_res=`eval echo '${'$as_ac_Header'}'`
27599 { echo "$as_me:$LINENO: result: $ac_res" >&5
27600echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027601if test `eval echo '${'$as_ac_Header'}'` = yes; then
27602 cat >>confdefs.h <<_ACEOF
27603#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27604_ACEOF
27605
27606ac_header_dirent=$ac_hdr; break
27607fi
27608
27609done
27610# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27611if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027612 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27613echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027614if test "${ac_cv_search_opendir+set}" = set; then
27615 echo $ECHO_N "(cached) $ECHO_C" >&6
27616else
27617 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027618cat >conftest.$ac_ext <<_ACEOF
27619/* confdefs.h. */
27620_ACEOF
27621cat confdefs.h >>conftest.$ac_ext
27622cat >>conftest.$ac_ext <<_ACEOF
27623/* end confdefs.h. */
27624
Reid Spencera773bd52006-08-04 18:18:08 +000027625/* Override any GCC internal prototype to avoid an error.
27626 Use char because int might match the return type of a GCC
27627 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027628#ifdef __cplusplus
27629extern "C"
27630#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027631char opendir ();
27632int
27633main ()
27634{
Reid Spencera773bd52006-08-04 18:18:08 +000027635return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027636 ;
27637 return 0;
27638}
27639_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027640for ac_lib in '' dir; do
27641 if test -z "$ac_lib"; then
27642 ac_res="none required"
27643 else
27644 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027646 fi
27647 rm -f conftest.$ac_objext conftest$ac_exeext
27648if { (ac_try="$ac_link"
27649case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27652esac
27653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027655 ac_status=$?
27656 grep -v '^ *+' conftest.er1 >conftest.err
27657 rm -f conftest.er1
27658 cat conftest.err >&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27662 { (case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27665esac
27666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027668 ac_status=$?
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; } &&
27671 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027672 { (case "(($ac_try" in
27673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674 *) ac_try_echo=$ac_try;;
27675esac
27676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27677 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027678 ac_status=$?
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027681 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027682else
27683 echo "$as_me: failed program was:" >&5
27684sed 's/^/| /' conftest.$ac_ext >&5
27685
Reid Spencera773bd52006-08-04 18:18:08 +000027686
Reid Spencer59473af2004-12-25 07:31:29 +000027687fi
Reid Spencera773bd52006-08-04 18:18:08 +000027688
27689rm -f core conftest.err conftest.$ac_objext \
27690 conftest$ac_exeext
27691 if test "${ac_cv_search_opendir+set}" = set; then
27692 break
Reid Spencer59473af2004-12-25 07:31:29 +000027693fi
Reid Spencera773bd52006-08-04 18:18:08 +000027694done
27695if test "${ac_cv_search_opendir+set}" = set; then
27696 :
27697else
27698 ac_cv_search_opendir=no
27699fi
27700rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027701LIBS=$ac_func_search_save_LIBS
27702fi
Reid Spencera773bd52006-08-04 18:18:08 +000027703{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27704echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27705ac_res=$ac_cv_search_opendir
27706if test "$ac_res" != no; then
27707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027708
27709fi
27710
27711else
Reid Spencera773bd52006-08-04 18:18:08 +000027712 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27713echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027714if test "${ac_cv_search_opendir+set}" = set; then
27715 echo $ECHO_N "(cached) $ECHO_C" >&6
27716else
27717 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027718cat >conftest.$ac_ext <<_ACEOF
27719/* confdefs.h. */
27720_ACEOF
27721cat confdefs.h >>conftest.$ac_ext
27722cat >>conftest.$ac_ext <<_ACEOF
27723/* end confdefs.h. */
27724
Reid Spencera773bd52006-08-04 18:18:08 +000027725/* Override any GCC internal prototype to avoid an error.
27726 Use char because int might match the return type of a GCC
27727 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027728#ifdef __cplusplus
27729extern "C"
27730#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027731char opendir ();
27732int
27733main ()
27734{
Reid Spencera773bd52006-08-04 18:18:08 +000027735return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027736 ;
27737 return 0;
27738}
27739_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027740for ac_lib in '' x; do
27741 if test -z "$ac_lib"; then
27742 ac_res="none required"
27743 else
27744 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027746 fi
27747 rm -f conftest.$ac_objext conftest$ac_exeext
27748if { (ac_try="$ac_link"
27749case "(($ac_try" in
27750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751 *) ac_try_echo=$ac_try;;
27752esac
27753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27754 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027755 ac_status=$?
27756 grep -v '^ *+' conftest.er1 >conftest.err
27757 rm -f conftest.er1
27758 cat conftest.err >&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27762 { (case "(($ac_try" in
27763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27764 *) ac_try_echo=$ac_try;;
27765esac
27766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027768 ac_status=$?
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); }; } &&
27771 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027772 { (case "(($ac_try" in
27773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27774 *) ac_try_echo=$ac_try;;
27775esac
27776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27777 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027778 ac_status=$?
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027781 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027782else
27783 echo "$as_me: failed program was:" >&5
27784sed 's/^/| /' conftest.$ac_ext >&5
27785
Reid Spencera773bd52006-08-04 18:18:08 +000027786
Reid Spencer59473af2004-12-25 07:31:29 +000027787fi
Reid Spencera773bd52006-08-04 18:18:08 +000027788
27789rm -f core conftest.err conftest.$ac_objext \
27790 conftest$ac_exeext
27791 if test "${ac_cv_search_opendir+set}" = set; then
27792 break
Reid Spencer59473af2004-12-25 07:31:29 +000027793fi
Reid Spencera773bd52006-08-04 18:18:08 +000027794done
27795if test "${ac_cv_search_opendir+set}" = set; then
27796 :
27797else
27798 ac_cv_search_opendir=no
27799fi
27800rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027801LIBS=$ac_func_search_save_LIBS
27802fi
Reid Spencera773bd52006-08-04 18:18:08 +000027803{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27804echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27805ac_res=$ac_cv_search_opendir
27806if test "$ac_res" != no; then
27807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027808
27809fi
27810
27811fi
27812
Reid Spencera773bd52006-08-04 18:18:08 +000027813{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27814echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027815if test "${ac_cv_header_mmap_anon+set}" = set; then
27816 echo $ECHO_N "(cached) $ECHO_C" >&6
27817else
27818 ac_ext=c
27819ac_cpp='$CPP $CPPFLAGS'
27820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27822ac_compiler_gnu=$ac_cv_c_compiler_gnu
27823
27824 cat >conftest.$ac_ext <<_ACEOF
27825/* confdefs.h. */
27826_ACEOF
27827cat confdefs.h >>conftest.$ac_ext
27828cat >>conftest.$ac_ext <<_ACEOF
27829/* end confdefs.h. */
27830#include <sys/mman.h>
27831#include <unistd.h>
27832#include <fcntl.h>
27833int
27834main ()
27835{
27836mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27837 ;
27838 return 0;
27839}
27840_ACEOF
27841rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027842if { (ac_try="$ac_compile"
27843case "(($ac_try" in
27844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27845 *) ac_try_echo=$ac_try;;
27846esac
27847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27848 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027849 ac_status=$?
27850 grep -v '^ *+' conftest.er1 >conftest.err
27851 rm -f conftest.er1
27852 cat conftest.err >&5
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27856 { (case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27859esac
27860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027862 ac_status=$?
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; } &&
27865 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027866 { (case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27869esac
27870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027872 ac_status=$?
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; }; then
27875 ac_cv_header_mmap_anon=yes
27876else
27877 echo "$as_me: failed program was:" >&5
27878sed 's/^/| /' conftest.$ac_ext >&5
27879
Reid Spencera773bd52006-08-04 18:18:08 +000027880 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000027881fi
Reid Spencera773bd52006-08-04 18:18:08 +000027882
27883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027884 ac_ext=c
27885ac_cpp='$CPP $CPPFLAGS'
27886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27888ac_compiler_gnu=$ac_cv_c_compiler_gnu
27889
27890
27891fi
Reid Spencera773bd52006-08-04 18:18:08 +000027892{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27893echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027894if test "$ac_cv_header_mmap_anon" = yes; then
27895
27896cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000027897#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000027898_ACEOF
27899
27900fi
27901
Reid Spencera773bd52006-08-04 18:18:08 +000027902{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27903echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027904if test "${ac_cv_header_stat_broken+set}" = set; then
27905 echo $ECHO_N "(cached) $ECHO_C" >&6
27906else
27907 cat >conftest.$ac_ext <<_ACEOF
27908/* confdefs.h. */
27909_ACEOF
27910cat confdefs.h >>conftest.$ac_ext
27911cat >>conftest.$ac_ext <<_ACEOF
27912/* end confdefs.h. */
27913#include <sys/types.h>
27914#include <sys/stat.h>
27915
Reid Spencera773bd52006-08-04 18:18:08 +000027916#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000027917# if S_ISBLK (S_IFDIR)
27918You lose.
27919# endif
27920#endif
27921
Reid Spencera773bd52006-08-04 18:18:08 +000027922#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000027923# if S_ISBLK (S_IFCHR)
27924You lose.
27925# endif
27926#endif
27927
Reid Spencera773bd52006-08-04 18:18:08 +000027928#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027929# if S_ISLNK (S_IFREG)
27930You lose.
27931# endif
27932#endif
27933
Reid Spencera773bd52006-08-04 18:18:08 +000027934#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027935# if S_ISSOCK (S_IFREG)
27936You lose.
27937# endif
27938#endif
27939
27940_ACEOF
27941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27942 $EGREP "You lose" >/dev/null 2>&1; then
27943 ac_cv_header_stat_broken=yes
27944else
27945 ac_cv_header_stat_broken=no
27946fi
27947rm -f conftest*
27948
27949fi
Reid Spencera773bd52006-08-04 18:18:08 +000027950{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27951echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027952if test $ac_cv_header_stat_broken = yes; then
27953
27954cat >>confdefs.h <<\_ACEOF
27955#define STAT_MACROS_BROKEN 1
27956_ACEOF
27957
27958fi
27959
Reid Spencera773bd52006-08-04 18:18:08 +000027960{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27961echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027962if test "${ac_cv_header_stdc+set}" = set; then
27963 echo $ECHO_N "(cached) $ECHO_C" >&6
27964else
27965 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027966/* confdefs.h. */
27967_ACEOF
27968cat confdefs.h >>conftest.$ac_ext
27969cat >>conftest.$ac_ext <<_ACEOF
27970/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027971#include <stdlib.h>
27972#include <stdarg.h>
27973#include <string.h>
27974#include <float.h>
27975
John Criswell0c38eaf2003-09-10 15:17:25 +000027976int
27977main ()
27978{
27979
27980 ;
27981 return 0;
27982}
John Criswell7a73b802003-06-30 21:59:07 +000027983_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027984rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027985if { (ac_try="$ac_compile"
27986case "(($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_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027992 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027993 grep -v '^ *+' conftest.er1 >conftest.err
27994 rm -f conftest.er1
27995 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027997 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27999 { (case "(($ac_try" in
28000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001 *) ac_try_echo=$ac_try;;
28002esac
28003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28004 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028005 ac_status=$?
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; } &&
28008 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028009 { (case "(($ac_try" in
28010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28011 *) ac_try_echo=$ac_try;;
28012esac
28013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28014 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028015 ac_status=$?
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028018 ac_cv_header_stdc=yes
28019else
28020 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028021sed 's/^/| /' conftest.$ac_ext >&5
28022
Reid Spencera773bd52006-08-04 18:18:08 +000028023 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028024fi
Reid Spencera773bd52006-08-04 18:18:08 +000028025
28026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028027
28028if test $ac_cv_header_stdc = yes; then
28029 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028031/* confdefs.h. */
28032_ACEOF
28033cat confdefs.h >>conftest.$ac_ext
28034cat >>conftest.$ac_ext <<_ACEOF
28035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028036#include <string.h>
28037
28038_ACEOF
28039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028040 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028041 :
28042else
28043 ac_cv_header_stdc=no
28044fi
28045rm -f conftest*
28046
28047fi
28048
28049if test $ac_cv_header_stdc = yes; then
28050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28051 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028052/* confdefs.h. */
28053_ACEOF
28054cat confdefs.h >>conftest.$ac_ext
28055cat >>conftest.$ac_ext <<_ACEOF
28056/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028057#include <stdlib.h>
28058
28059_ACEOF
28060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028061 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028062 :
28063else
28064 ac_cv_header_stdc=no
28065fi
28066rm -f conftest*
28067
28068fi
28069
28070if test $ac_cv_header_stdc = yes; then
28071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28072 if test "$cross_compiling" = yes; then
28073 :
28074else
28075 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028076/* confdefs.h. */
28077_ACEOF
28078cat confdefs.h >>conftest.$ac_ext
28079cat >>conftest.$ac_ext <<_ACEOF
28080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028081#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028082#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028083#if ((' ' & 0x0FF) == 0x020)
28084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28086#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028087# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028088 (('a' <= (c) && (c) <= 'i') \
28089 || ('j' <= (c) && (c) <= 'r') \
28090 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28092#endif
28093
28094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28095int
28096main ()
28097{
28098 int i;
28099 for (i = 0; i < 256; i++)
28100 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028101 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028102 return 2;
28103 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028104}
28105_ACEOF
28106rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028107if { (ac_try="$ac_link"
28108case "(($ac_try" in
28109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110 *) ac_try_echo=$ac_try;;
28111esac
28112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28113 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028114 ac_status=$?
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028117 { (case "(($ac_try" in
28118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119 *) ac_try_echo=$ac_try;;
28120esac
28121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028123 ac_status=$?
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; }; then
28126 :
28127else
28128 echo "$as_me: program exited with status $ac_status" >&5
28129echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028130sed 's/^/| /' conftest.$ac_ext >&5
28131
John Criswell7a73b802003-06-30 21:59:07 +000028132( exit $ac_status )
28133ac_cv_header_stdc=no
28134fi
Reid Spencera773bd52006-08-04 18:18:08 +000028135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28136fi
28137
28138
John Criswell7a73b802003-06-30 21:59:07 +000028139fi
28140fi
Reid Spencera773bd52006-08-04 18:18:08 +000028141{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28142echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028143if test $ac_cv_header_stdc = yes; then
28144
28145cat >>confdefs.h <<\_ACEOF
28146#define STDC_HEADERS 1
28147_ACEOF
28148
28149fi
28150
Reid Spencera773bd52006-08-04 18:18:08 +000028151{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28152echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028153if test "${ac_cv_header_sys_wait_h+set}" = set; then
28154 echo $ECHO_N "(cached) $ECHO_C" >&6
28155else
28156 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028157/* confdefs.h. */
28158_ACEOF
28159cat confdefs.h >>conftest.$ac_ext
28160cat >>conftest.$ac_ext <<_ACEOF
28161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028162#include <sys/types.h>
28163#include <sys/wait.h>
28164#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028165# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028166#endif
28167#ifndef WIFEXITED
28168# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28169#endif
28170
John Criswell7a73b802003-06-30 21:59:07 +000028171int
28172main ()
28173{
28174 int s;
28175 wait (&s);
28176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28177 ;
28178 return 0;
28179}
28180_ACEOF
28181rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028182if { (ac_try="$ac_compile"
28183case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28186esac
28187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028189 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028190 grep -v '^ *+' conftest.er1 >conftest.err
28191 rm -f conftest.er1
28192 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28196 { (case "(($ac_try" in
28197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28198 *) ac_try_echo=$ac_try;;
28199esac
28200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28201 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028202 ac_status=$?
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); }; } &&
28205 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028206 { (case "(($ac_try" in
28207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28208 *) ac_try_echo=$ac_try;;
28209esac
28210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28211 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028212 ac_status=$?
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); }; }; then
28215 ac_cv_header_sys_wait_h=yes
28216else
28217 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028218sed 's/^/| /' conftest.$ac_ext >&5
28219
Reid Spencera773bd52006-08-04 18:18:08 +000028220 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028221fi
Reid Spencera773bd52006-08-04 18:18:08 +000028222
28223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028224fi
Reid Spencera773bd52006-08-04 18:18:08 +000028225{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28226echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028227if test $ac_cv_header_sys_wait_h = yes; then
28228
28229cat >>confdefs.h <<\_ACEOF
28230#define HAVE_SYS_WAIT_H 1
28231_ACEOF
28232
28233fi
28234
Reid Spencera773bd52006-08-04 18:18:08 +000028235{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28236echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028237if test "${ac_cv_header_time+set}" = set; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28239else
28240 cat >conftest.$ac_ext <<_ACEOF
28241/* confdefs.h. */
28242_ACEOF
28243cat confdefs.h >>conftest.$ac_ext
28244cat >>conftest.$ac_ext <<_ACEOF
28245/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028246#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028247#include <sys/time.h>
28248#include <time.h>
28249
28250int
28251main ()
28252{
28253if ((struct tm *) 0)
28254return 0;
28255 ;
28256 return 0;
28257}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028258_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028259rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028260if { (ac_try="$ac_compile"
28261case "(($ac_try" in
28262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263 *) ac_try_echo=$ac_try;;
28264esac
28265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028267 ac_status=$?
28268 grep -v '^ *+' conftest.er1 >conftest.err
28269 rm -f conftest.er1
28270 cat conftest.err >&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028272 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28274 { (case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28277esac
28278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028280 ac_status=$?
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; } &&
28283 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028284 { (case "(($ac_try" in
28285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28286 *) ac_try_echo=$ac_try;;
28287esac
28288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28289 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028290 ac_status=$?
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; }; then
28293 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028294else
28295 echo "$as_me: failed program was:" >&5
28296sed 's/^/| /' conftest.$ac_ext >&5
28297
Reid Spencera773bd52006-08-04 18:18:08 +000028298 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028299fi
Reid Spencera773bd52006-08-04 18:18:08 +000028300
28301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028302fi
Reid Spencera773bd52006-08-04 18:18:08 +000028303{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28304echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028305if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028306
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028307cat >>confdefs.h <<\_ACEOF
28308#define TIME_WITH_SYS_TIME 1
28309_ACEOF
28310
28311fi
28312
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028313
Reid Spencer59473af2004-12-25 07:31:29 +000028314
28315
28316
28317
28318
28319
28320for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28321do
28322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028327 echo $ECHO_N "(cached) $ECHO_C" >&6
28328fi
Reid Spencera773bd52006-08-04 18:18:08 +000028329ac_res=`eval echo '${'$as_ac_Header'}'`
28330 { echo "$as_me:$LINENO: result: $ac_res" >&5
28331echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028332else
28333 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028334{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028336cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028337/* confdefs.h. */
28338_ACEOF
28339cat confdefs.h >>conftest.$ac_ext
28340cat >>conftest.$ac_ext <<_ACEOF
28341/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028342$ac_includes_default
28343#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028344_ACEOF
28345rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028346if { (ac_try="$ac_compile"
28347case "(($ac_try" in
28348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349 *) ac_try_echo=$ac_try;;
28350esac
28351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028353 ac_status=$?
28354 grep -v '^ *+' conftest.er1 >conftest.err
28355 rm -f conftest.er1
28356 cat conftest.err >&5
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28360 { (case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28363esac
28364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; } &&
28369 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028370 { (case "(($ac_try" in
28371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28372 *) ac_try_echo=$ac_try;;
28373esac
28374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28375 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028376 ac_status=$?
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028379 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028380else
28381 echo "$as_me: failed program was:" >&5
28382sed 's/^/| /' conftest.$ac_ext >&5
28383
Reid Spencera773bd52006-08-04 18:18:08 +000028384 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028385fi
Reid Spencera773bd52006-08-04 18:18:08 +000028386
28387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28388{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28389echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028390
Reid Spencer59473af2004-12-25 07:31:29 +000028391# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028392{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028394cat >conftest.$ac_ext <<_ACEOF
28395/* confdefs.h. */
28396_ACEOF
28397cat confdefs.h >>conftest.$ac_ext
28398cat >>conftest.$ac_ext <<_ACEOF
28399/* end confdefs.h. */
28400#include <$ac_header>
28401_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028402if { (ac_try="$ac_cpp conftest.$ac_ext"
28403case "(($ac_try" in
28404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405 *) ac_try_echo=$ac_try;;
28406esac
28407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028409 ac_status=$?
28410 grep -v '^ *+' conftest.er1 >conftest.err
28411 rm -f conftest.er1
28412 cat conftest.err >&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); } >/dev/null; then
28415 if test -s conftest.err; then
28416 ac_cpp_err=$ac_c_preproc_warn_flag
28417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28418 else
28419 ac_cpp_err=
28420 fi
28421else
28422 ac_cpp_err=yes
28423fi
28424if test -z "$ac_cpp_err"; then
28425 ac_header_preproc=yes
28426else
28427 echo "$as_me: failed program was:" >&5
28428sed 's/^/| /' conftest.$ac_ext >&5
28429
28430 ac_header_preproc=no
28431fi
Reid Spencera773bd52006-08-04 18:18:08 +000028432
Reid Spencer59473af2004-12-25 07:31:29 +000028433rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028434{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28435echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028436
28437# So? What about this header?
28438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28439 yes:no: )
28440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28444 ac_header_preproc=yes
28445 ;;
28446 no:yes:* )
28447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28454echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028459 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028460## ----------------------------------- ##
28461## Report this to llvmbugs@cs.uiuc.edu ##
28462## ----------------------------------- ##
28463_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028464 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028465 ;;
28466esac
Reid Spencera773bd52006-08-04 18:18:08 +000028467{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028470 echo $ECHO_N "(cached) $ECHO_C" >&6
28471else
28472 eval "$as_ac_Header=\$ac_header_preproc"
28473fi
Reid Spencera773bd52006-08-04 18:18:08 +000028474ac_res=`eval echo '${'$as_ac_Header'}'`
28475 { echo "$as_me:$LINENO: result: $ac_res" >&5
28476echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028477
28478fi
Reid Spencer59473af2004-12-25 07:31:29 +000028479if test `eval echo '${'$as_ac_Header'}'` = yes; then
28480 cat >>confdefs.h <<_ACEOF
28481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028482_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028483
28484fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028485
Reid Spencer59473af2004-12-25 07:31:29 +000028486done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028487
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028488
28489
Reid Spencer59473af2004-12-25 07:31:29 +000028490
28491
28492
28493
Reid Spencercdb08a32006-06-05 16:11:07 +000028494for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028495do
28496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028501 echo $ECHO_N "(cached) $ECHO_C" >&6
28502fi
Reid Spencera773bd52006-08-04 18:18:08 +000028503ac_res=`eval echo '${'$as_ac_Header'}'`
28504 { echo "$as_me:$LINENO: result: $ac_res" >&5
28505echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028506else
28507 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028508{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028510cat >conftest.$ac_ext <<_ACEOF
28511/* confdefs.h. */
28512_ACEOF
28513cat confdefs.h >>conftest.$ac_ext
28514cat >>conftest.$ac_ext <<_ACEOF
28515/* end confdefs.h. */
28516$ac_includes_default
28517#include <$ac_header>
28518_ACEOF
28519rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028520if { (ac_try="$ac_compile"
28521case "(($ac_try" in
28522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523 *) ac_try_echo=$ac_try;;
28524esac
28525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028527 ac_status=$?
28528 grep -v '^ *+' conftest.er1 >conftest.err
28529 rm -f conftest.er1
28530 cat conftest.err >&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28534 { (case "(($ac_try" in
28535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536 *) ac_try_echo=$ac_try;;
28537esac
28538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028540 ac_status=$?
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); }; } &&
28543 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028544 { (case "(($ac_try" in
28545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546 *) ac_try_echo=$ac_try;;
28547esac
28548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028550 ac_status=$?
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); }; }; then
28553 ac_header_compiler=yes
28554else
28555 echo "$as_me: failed program was:" >&5
28556sed 's/^/| /' conftest.$ac_ext >&5
28557
Reid Spencera773bd52006-08-04 18:18:08 +000028558 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028559fi
Reid Spencera773bd52006-08-04 18:18:08 +000028560
28561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28563echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028564
28565# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028568cat >conftest.$ac_ext <<_ACEOF
28569/* confdefs.h. */
28570_ACEOF
28571cat confdefs.h >>conftest.$ac_ext
28572cat >>conftest.$ac_ext <<_ACEOF
28573/* end confdefs.h. */
28574#include <$ac_header>
28575_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028576if { (ac_try="$ac_cpp conftest.$ac_ext"
28577case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28580esac
28581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028583 ac_status=$?
28584 grep -v '^ *+' conftest.er1 >conftest.err
28585 rm -f conftest.er1
28586 cat conftest.err >&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } >/dev/null; then
28589 if test -s conftest.err; then
28590 ac_cpp_err=$ac_c_preproc_warn_flag
28591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28592 else
28593 ac_cpp_err=
28594 fi
28595else
28596 ac_cpp_err=yes
28597fi
28598if test -z "$ac_cpp_err"; then
28599 ac_header_preproc=yes
28600else
28601 echo "$as_me: failed program was:" >&5
28602sed 's/^/| /' conftest.$ac_ext >&5
28603
28604 ac_header_preproc=no
28605fi
Reid Spencera773bd52006-08-04 18:18:08 +000028606
Reid Spencer59473af2004-12-25 07:31:29 +000028607rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028608{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28609echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028610
28611# So? What about this header?
28612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28613 yes:no: )
28614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28618 ac_header_preproc=yes
28619 ;;
28620 no:yes:* )
28621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028633 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028634## ----------------------------------- ##
28635## Report this to llvmbugs@cs.uiuc.edu ##
28636## ----------------------------------- ##
28637_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028638 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028639 ;;
28640esac
Reid Spencera773bd52006-08-04 18:18:08 +000028641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028644 echo $ECHO_N "(cached) $ECHO_C" >&6
28645else
28646 eval "$as_ac_Header=\$ac_header_preproc"
28647fi
Reid Spencera773bd52006-08-04 18:18:08 +000028648ac_res=`eval echo '${'$as_ac_Header'}'`
28649 { echo "$as_me:$LINENO: result: $ac_res" >&5
28650echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028651
28652fi
28653if test `eval echo '${'$as_ac_Header'}'` = yes; then
28654 cat >>confdefs.h <<_ACEOF
28655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28656_ACEOF
28657
28658fi
28659
28660done
28661
28662
28663
28664
28665
28666
Reid Spencercdb08a32006-06-05 16:11:07 +000028667for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028668do
28669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028674 echo $ECHO_N "(cached) $ECHO_C" >&6
28675fi
Reid Spencera773bd52006-08-04 18:18:08 +000028676ac_res=`eval echo '${'$as_ac_Header'}'`
28677 { echo "$as_me:$LINENO: result: $ac_res" >&5
28678echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028679else
28680 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028681{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028683cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028684/* confdefs.h. */
28685_ACEOF
28686cat confdefs.h >>conftest.$ac_ext
28687cat >>conftest.$ac_ext <<_ACEOF
28688/* end confdefs.h. */
28689$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028690#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028691_ACEOF
28692rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028693if { (ac_try="$ac_compile"
28694case "(($ac_try" in
28695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28696 *) ac_try_echo=$ac_try;;
28697esac
28698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28699 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028701 grep -v '^ *+' conftest.er1 >conftest.err
28702 rm -f conftest.er1
28703 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28707 { (case "(($ac_try" in
28708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709 *) ac_try_echo=$ac_try;;
28710esac
28711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028713 ac_status=$?
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); }; } &&
28716 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028717 { (case "(($ac_try" in
28718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28719 *) ac_try_echo=$ac_try;;
28720esac
28721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28722 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028723 ac_status=$?
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); }; }; then
28726 ac_header_compiler=yes
28727else
28728 echo "$as_me: failed program was:" >&5
28729sed 's/^/| /' conftest.$ac_ext >&5
28730
Reid Spencera773bd52006-08-04 18:18:08 +000028731 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028732fi
Reid Spencera773bd52006-08-04 18:18:08 +000028733
28734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28735{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28736echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028737
28738# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028739{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028741cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028742/* confdefs.h. */
28743_ACEOF
28744cat confdefs.h >>conftest.$ac_ext
28745cat >>conftest.$ac_ext <<_ACEOF
28746/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028747#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028748_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028749if { (ac_try="$ac_cpp conftest.$ac_ext"
28750case "(($ac_try" in
28751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28752 *) ac_try_echo=$ac_try;;
28753esac
28754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028756 ac_status=$?
28757 grep -v '^ *+' conftest.er1 >conftest.err
28758 rm -f conftest.er1
28759 cat conftest.err >&5
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); } >/dev/null; then
28762 if test -s conftest.err; then
28763 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028765 else
28766 ac_cpp_err=
28767 fi
28768else
28769 ac_cpp_err=yes
28770fi
28771if test -z "$ac_cpp_err"; then
28772 ac_header_preproc=yes
28773else
28774 echo "$as_me: failed program was:" >&5
28775sed 's/^/| /' conftest.$ac_ext >&5
28776
28777 ac_header_preproc=no
28778fi
Reid Spencera773bd52006-08-04 18:18:08 +000028779
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028780rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028781{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28782echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028783
28784# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28786 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028791 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028792 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028793 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28797echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28801echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028806 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028807## ----------------------------------- ##
28808## Report this to llvmbugs@cs.uiuc.edu ##
28809## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028810_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028811 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028812 ;;
28813esac
Reid Spencera773bd52006-08-04 18:18:08 +000028814{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028817 echo $ECHO_N "(cached) $ECHO_C" >&6
28818else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028819 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028820fi
Reid Spencera773bd52006-08-04 18:18:08 +000028821ac_res=`eval echo '${'$as_ac_Header'}'`
28822 { echo "$as_me:$LINENO: result: $ac_res" >&5
28823echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028824
28825fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028826if test `eval echo '${'$as_ac_Header'}'` = yes; then
28827 cat >>confdefs.h <<_ACEOF
28828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000028829_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000028830
28831fi
John Criswell7ed43ad2004-07-19 16:12:29 +000028832
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028833done
28834
John Criswell7ed43ad2004-07-19 16:12:29 +000028835
Reid Spencercdb08a32006-06-05 16:11:07 +000028836
Reid Spencera6d990a2006-09-14 06:17:21 +000028837
28838for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000028839do
28840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028845 echo $ECHO_N "(cached) $ECHO_C" >&6
28846fi
Reid Spencera773bd52006-08-04 18:18:08 +000028847ac_res=`eval echo '${'$as_ac_Header'}'`
28848 { echo "$as_me:$LINENO: result: $ac_res" >&5
28849echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028850else
28851 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028852{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028854cat >conftest.$ac_ext <<_ACEOF
28855/* confdefs.h. */
28856_ACEOF
28857cat confdefs.h >>conftest.$ac_ext
28858cat >>conftest.$ac_ext <<_ACEOF
28859/* end confdefs.h. */
28860$ac_includes_default
28861#include <$ac_header>
28862_ACEOF
28863rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028864if { (ac_try="$ac_compile"
28865case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28868esac
28869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028871 ac_status=$?
28872 grep -v '^ *+' conftest.er1 >conftest.err
28873 rm -f conftest.er1
28874 cat conftest.err >&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28878 { (case "(($ac_try" in
28879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28880 *) ac_try_echo=$ac_try;;
28881esac
28882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28883 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028884 ac_status=$?
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; } &&
28887 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028888 { (case "(($ac_try" in
28889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890 *) ac_try_echo=$ac_try;;
28891esac
28892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28893 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028894 ac_status=$?
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; }; then
28897 ac_header_compiler=yes
28898else
28899 echo "$as_me: failed program was:" >&5
28900sed 's/^/| /' conftest.$ac_ext >&5
28901
Reid Spencera773bd52006-08-04 18:18:08 +000028902 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000028903fi
Reid Spencera773bd52006-08-04 18:18:08 +000028904
28905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28906{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28907echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028908
28909# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028910{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028912cat >conftest.$ac_ext <<_ACEOF
28913/* confdefs.h. */
28914_ACEOF
28915cat confdefs.h >>conftest.$ac_ext
28916cat >>conftest.$ac_ext <<_ACEOF
28917/* end confdefs.h. */
28918#include <$ac_header>
28919_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028920if { (ac_try="$ac_cpp conftest.$ac_ext"
28921case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028927 ac_status=$?
28928 grep -v '^ *+' conftest.er1 >conftest.err
28929 rm -f conftest.er1
28930 cat conftest.err >&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } >/dev/null; then
28933 if test -s conftest.err; then
28934 ac_cpp_err=$ac_c_preproc_warn_flag
28935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28936 else
28937 ac_cpp_err=
28938 fi
28939else
28940 ac_cpp_err=yes
28941fi
28942if test -z "$ac_cpp_err"; then
28943 ac_header_preproc=yes
28944else
28945 echo "$as_me: failed program was:" >&5
28946sed 's/^/| /' conftest.$ac_ext >&5
28947
28948 ac_header_preproc=no
28949fi
Reid Spencera773bd52006-08-04 18:18:08 +000028950
Chris Lattner0b142592005-11-14 06:57:34 +000028951rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28953echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028954
28955# So? What about this header?
28956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28957 yes:no: )
28958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28962 ac_header_preproc=yes
28963 ;;
28964 no:yes:* )
28965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028977 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000028978## ----------------------------------- ##
28979## Report this to llvmbugs@cs.uiuc.edu ##
28980## ----------------------------------- ##
28981_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028982 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000028983 ;;
28984esac
Reid Spencera773bd52006-08-04 18:18:08 +000028985{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028988 echo $ECHO_N "(cached) $ECHO_C" >&6
28989else
28990 eval "$as_ac_Header=\$ac_header_preproc"
28991fi
Reid Spencera773bd52006-08-04 18:18:08 +000028992ac_res=`eval echo '${'$as_ac_Header'}'`
28993 { echo "$as_me:$LINENO: result: $ac_res" >&5
28994echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028995
28996fi
28997if test `eval echo '${'$as_ac_Header'}'` = yes; then
28998 cat >>confdefs.h <<_ACEOF
28999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29000_ACEOF
29001
29002fi
29003
29004done
29005
Reid Spencer0a262ba2005-08-24 10:07:20 +000029006if test "$ENABLE_THREADS" -eq 1 ; then
29007
29008for ac_header in pthread.h
29009do
29010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029015 echo $ECHO_N "(cached) $ECHO_C" >&6
29016fi
Reid Spencera773bd52006-08-04 18:18:08 +000029017ac_res=`eval echo '${'$as_ac_Header'}'`
29018 { echo "$as_me:$LINENO: result: $ac_res" >&5
29019echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029020else
29021 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029022{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029024cat >conftest.$ac_ext <<_ACEOF
29025/* confdefs.h. */
29026_ACEOF
29027cat confdefs.h >>conftest.$ac_ext
29028cat >>conftest.$ac_ext <<_ACEOF
29029/* end confdefs.h. */
29030$ac_includes_default
29031#include <$ac_header>
29032_ACEOF
29033rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029034if { (ac_try="$ac_compile"
29035case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29038esac
29039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029041 ac_status=$?
29042 grep -v '^ *+' conftest.er1 >conftest.err
29043 rm -f conftest.er1
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29048 { (case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29051esac
29052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029054 ac_status=$?
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; } &&
29057 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029058 { (case "(($ac_try" in
29059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060 *) ac_try_echo=$ac_try;;
29061esac
29062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029064 ac_status=$?
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; }; then
29067 ac_header_compiler=yes
29068else
29069 echo "$as_me: failed program was:" >&5
29070sed 's/^/| /' conftest.$ac_ext >&5
29071
Reid Spencera773bd52006-08-04 18:18:08 +000029072 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029073fi
Reid Spencera773bd52006-08-04 18:18:08 +000029074
29075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29076{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29077echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029078
29079# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029080{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029082cat >conftest.$ac_ext <<_ACEOF
29083/* confdefs.h. */
29084_ACEOF
29085cat confdefs.h >>conftest.$ac_ext
29086cat >>conftest.$ac_ext <<_ACEOF
29087/* end confdefs.h. */
29088#include <$ac_header>
29089_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029090if { (ac_try="$ac_cpp conftest.$ac_ext"
29091case "(($ac_try" in
29092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093 *) ac_try_echo=$ac_try;;
29094esac
29095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029097 ac_status=$?
29098 grep -v '^ *+' conftest.er1 >conftest.err
29099 rm -f conftest.er1
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } >/dev/null; then
29103 if test -s conftest.err; then
29104 ac_cpp_err=$ac_c_preproc_warn_flag
29105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29106 else
29107 ac_cpp_err=
29108 fi
29109else
29110 ac_cpp_err=yes
29111fi
29112if test -z "$ac_cpp_err"; then
29113 ac_header_preproc=yes
29114else
29115 echo "$as_me: failed program was:" >&5
29116sed 's/^/| /' conftest.$ac_ext >&5
29117
29118 ac_header_preproc=no
29119fi
Reid Spencera773bd52006-08-04 18:18:08 +000029120
Reid Spencer0a262ba2005-08-24 10:07:20 +000029121rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29123echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029124
29125# So? What about this header?
29126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29127 yes:no: )
29128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29132 ac_header_preproc=yes
29133 ;;
29134 no:yes:* )
29135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029147 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029148## ----------------------------------- ##
29149## Report this to llvmbugs@cs.uiuc.edu ##
29150## ----------------------------------- ##
29151_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029152 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029153 ;;
29154esac
Reid Spencera773bd52006-08-04 18:18:08 +000029155{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029158 echo $ECHO_N "(cached) $ECHO_C" >&6
29159else
29160 eval "$as_ac_Header=\$ac_header_preproc"
29161fi
Reid Spencera773bd52006-08-04 18:18:08 +000029162ac_res=`eval echo '${'$as_ac_Header'}'`
29163 { echo "$as_me:$LINENO: result: $ac_res" >&5
29164echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029165
29166fi
29167if test `eval echo '${'$as_ac_Header'}'` = yes; then
29168 cat >>confdefs.h <<_ACEOF
29169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29170_ACEOF
29171
29172fi
29173
29174done
29175
29176fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029177
29178
Reid Spencerb2ed05262006-11-03 18:04:08 +000029179
29180 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29181echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29182if test "${ac_cv_huge_val_sanity+set}" = set; then
29183 echo $ECHO_N "(cached) $ECHO_C" >&6
29184else
29185
29186 ac_ext=c
29187ac_cpp='$CPP $CPPFLAGS'
29188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29190ac_compiler_gnu=$ac_cv_c_compiler_gnu
29191
29192 CPPFLAGS=-pedantic
29193 if test "$cross_compiling" = yes; then
29194 ac_cv_huge_val_sanity=yes
29195else
29196 cat >conftest.$ac_ext <<_ACEOF
29197/* confdefs.h. */
29198_ACEOF
29199cat confdefs.h >>conftest.$ac_ext
29200cat >>conftest.$ac_ext <<_ACEOF
29201/* end confdefs.h. */
29202#include <math.h>
29203int
29204main ()
29205{
29206double x = HUGE_VAL; return x != x;
29207 ;
29208 return 0;
29209}
29210_ACEOF
29211rm -f conftest$ac_exeext
29212if { (ac_try="$ac_link"
29213case "(($ac_try" in
29214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29215 *) ac_try_echo=$ac_try;;
29216esac
29217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29218 (eval "$ac_link") 2>&5
29219 ac_status=$?
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29222 { (case "(($ac_try" in
29223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29224 *) ac_try_echo=$ac_try;;
29225esac
29226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29227 (eval "$ac_try") 2>&5
29228 ac_status=$?
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); }; }; then
29231 ac_cv_huge_val_sanity=yes
29232else
29233 echo "$as_me: program exited with status $ac_status" >&5
29234echo "$as_me: failed program was:" >&5
29235sed 's/^/| /' conftest.$ac_ext >&5
29236
29237( exit $ac_status )
29238ac_cv_huge_val_sanity=no
29239fi
29240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29241fi
29242
29243
29244 ac_ext=c
29245ac_cpp='$CPP $CPPFLAGS'
29246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29248ac_compiler_gnu=$ac_cv_c_compiler_gnu
29249
29250
29251fi
29252{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29253echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29254 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29255
29256
Reid Spencera773bd52006-08-04 18:18:08 +000029257{ echo "$as_me:$LINENO: checking for pid_t" >&5
29258echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029259if test "${ac_cv_type_pid_t+set}" = set; then
29260 echo $ECHO_N "(cached) $ECHO_C" >&6
29261else
29262 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029263/* confdefs.h. */
29264_ACEOF
29265cat confdefs.h >>conftest.$ac_ext
29266cat >>conftest.$ac_ext <<_ACEOF
29267/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029268$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029269typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029270int
29271main ()
29272{
Reid Spencera773bd52006-08-04 18:18:08 +000029273if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029274 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029275if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029276 return 0;
29277 ;
29278 return 0;
29279}
29280_ACEOF
29281rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029282if { (ac_try="$ac_compile"
29283case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29286esac
29287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029289 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029290 grep -v '^ *+' conftest.er1 >conftest.err
29291 rm -f conftest.er1
29292 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29299esac
29300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029302 ac_status=$?
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029306 { (case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29309esac
29310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029312 ac_status=$?
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 ac_cv_type_pid_t=yes
29316else
29317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029318sed 's/^/| /' conftest.$ac_ext >&5
29319
Reid Spencera773bd52006-08-04 18:18:08 +000029320 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029321fi
Reid Spencera773bd52006-08-04 18:18:08 +000029322
29323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029324fi
Reid Spencera773bd52006-08-04 18:18:08 +000029325{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29326echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029327if test $ac_cv_type_pid_t = yes; then
29328 :
29329else
29330
29331cat >>confdefs.h <<_ACEOF
29332#define pid_t int
29333_ACEOF
29334
29335fi
29336
Reid Spencera773bd52006-08-04 18:18:08 +000029337{ echo "$as_me:$LINENO: checking for size_t" >&5
29338echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029339if test "${ac_cv_type_size_t+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29341else
29342 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029343/* confdefs.h. */
29344_ACEOF
29345cat confdefs.h >>conftest.$ac_ext
29346cat >>conftest.$ac_ext <<_ACEOF
29347/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029348$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029349typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029350int
29351main ()
29352{
Reid Spencera773bd52006-08-04 18:18:08 +000029353if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029354 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029355if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029356 return 0;
29357 ;
29358 return 0;
29359}
29360_ACEOF
29361rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029362if { (ac_try="$ac_compile"
29363case "(($ac_try" in
29364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365 *) ac_try_echo=$ac_try;;
29366esac
29367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029369 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029370 grep -v '^ *+' conftest.er1 >conftest.err
29371 rm -f conftest.er1
29372 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29376 { (case "(($ac_try" in
29377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29378 *) ac_try_echo=$ac_try;;
29379esac
29380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29381 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029382 ac_status=$?
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; } &&
29385 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029386 { (case "(($ac_try" in
29387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388 *) ac_try_echo=$ac_try;;
29389esac
29390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029392 ac_status=$?
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; }; then
29395 ac_cv_type_size_t=yes
29396else
29397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029398sed 's/^/| /' conftest.$ac_ext >&5
29399
Reid Spencera773bd52006-08-04 18:18:08 +000029400 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029401fi
Reid Spencera773bd52006-08-04 18:18:08 +000029402
29403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029404fi
Reid Spencera773bd52006-08-04 18:18:08 +000029405{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29406echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029407if test $ac_cv_type_size_t = yes; then
29408 :
29409else
29410
29411cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029412#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029413_ACEOF
29414
29415fi
29416
Reid Spencera773bd52006-08-04 18:18:08 +000029417{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29418echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029419if test "${ac_cv_type_signal+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29421else
29422 cat >conftest.$ac_ext <<_ACEOF
29423/* confdefs.h. */
29424_ACEOF
29425cat confdefs.h >>conftest.$ac_ext
29426cat >>conftest.$ac_ext <<_ACEOF
29427/* end confdefs.h. */
29428#include <sys/types.h>
29429#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029430
29431int
29432main ()
29433{
Reid Spencera773bd52006-08-04 18:18:08 +000029434return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029435 ;
29436 return 0;
29437}
29438_ACEOF
29439rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029440if { (ac_try="$ac_compile"
29441case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29444esac
29445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029447 ac_status=$?
29448 grep -v '^ *+' conftest.er1 >conftest.err
29449 rm -f conftest.er1
29450 cat conftest.err >&5
29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29454 { (case "(($ac_try" in
29455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29457esac
29458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029460 ac_status=$?
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); }; } &&
29463 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029464 { (case "(($ac_try" in
29465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466 *) ac_try_echo=$ac_try;;
29467esac
29468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029470 ac_status=$?
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029473 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029474else
29475 echo "$as_me: failed program was:" >&5
29476sed 's/^/| /' conftest.$ac_ext >&5
29477
Reid Spencera773bd52006-08-04 18:18:08 +000029478 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029479fi
Reid Spencera773bd52006-08-04 18:18:08 +000029480
29481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029482fi
Reid Spencera773bd52006-08-04 18:18:08 +000029483{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29484echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029485
29486cat >>confdefs.h <<_ACEOF
29487#define RETSIGTYPE $ac_cv_type_signal
29488_ACEOF
29489
29490
Reid Spencera773bd52006-08-04 18:18:08 +000029491{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29492echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029493if test "${ac_cv_struct_tm+set}" = set; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29495else
29496 cat >conftest.$ac_ext <<_ACEOF
29497/* confdefs.h. */
29498_ACEOF
29499cat confdefs.h >>conftest.$ac_ext
29500cat >>conftest.$ac_ext <<_ACEOF
29501/* end confdefs.h. */
29502#include <sys/types.h>
29503#include <time.h>
29504
29505int
29506main ()
29507{
29508struct tm *tp; tp->tm_sec;
29509 ;
29510 return 0;
29511}
29512_ACEOF
29513rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029514if { (ac_try="$ac_compile"
29515case "(($ac_try" in
29516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29518esac
29519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029521 ac_status=$?
29522 grep -v '^ *+' conftest.er1 >conftest.err
29523 rm -f conftest.er1
29524 cat conftest.err >&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29528 { (case "(($ac_try" in
29529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29530 *) ac_try_echo=$ac_try;;
29531esac
29532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29533 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029534 ac_status=$?
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); }; } &&
29537 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029538 { (case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29541esac
29542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029544 ac_status=$?
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); }; }; then
29547 ac_cv_struct_tm=time.h
29548else
29549 echo "$as_me: failed program was:" >&5
29550sed 's/^/| /' conftest.$ac_ext >&5
29551
Reid Spencera773bd52006-08-04 18:18:08 +000029552 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029553fi
Reid Spencera773bd52006-08-04 18:18:08 +000029554
29555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029556fi
Reid Spencera773bd52006-08-04 18:18:08 +000029557{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29558echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029559if test $ac_cv_struct_tm = sys/time.h; then
29560
29561cat >>confdefs.h <<\_ACEOF
29562#define TM_IN_SYS_TIME 1
29563_ACEOF
29564
29565fi
29566
Reid Spencera773bd52006-08-04 18:18:08 +000029567{ echo "$as_me:$LINENO: checking for int64_t" >&5
29568echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029569if test "${ac_cv_type_int64_t+set}" = set; then
29570 echo $ECHO_N "(cached) $ECHO_C" >&6
29571else
29572 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029573/* confdefs.h. */
29574_ACEOF
29575cat confdefs.h >>conftest.$ac_ext
29576cat >>conftest.$ac_ext <<_ACEOF
29577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029578$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029579typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029580int
29581main ()
29582{
Reid Spencera773bd52006-08-04 18:18:08 +000029583if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029584 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029585if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029586 return 0;
29587 ;
29588 return 0;
29589}
29590_ACEOF
29591rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029592if { (ac_try="$ac_compile"
29593case "(($ac_try" in
29594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595 *) ac_try_echo=$ac_try;;
29596esac
29597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029600 grep -v '^ *+' conftest.er1 >conftest.err
29601 rm -f conftest.er1
29602 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29606 { (case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29609esac
29610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029612 ac_status=$?
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; } &&
29615 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029616 { (case "(($ac_try" in
29617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618 *) ac_try_echo=$ac_try;;
29619esac
29620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 ac_cv_type_int64_t=yes
29626else
29627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029628sed 's/^/| /' conftest.$ac_ext >&5
29629
Reid Spencera773bd52006-08-04 18:18:08 +000029630 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029631fi
Reid Spencera773bd52006-08-04 18:18:08 +000029632
29633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029634fi
Reid Spencera773bd52006-08-04 18:18:08 +000029635{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29636echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029637if test $ac_cv_type_int64_t = yes; then
29638
29639cat >>confdefs.h <<_ACEOF
29640#define HAVE_INT64_T 1
29641_ACEOF
29642
29643
29644else
29645 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29646echo "$as_me: error: Type int64_t required but not found" >&2;}
29647 { (exit 1); exit 1; }; }
29648fi
29649
Reid Spencera773bd52006-08-04 18:18:08 +000029650{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29651echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029652if test "${ac_cv_type_uint64_t+set}" = set; then
29653 echo $ECHO_N "(cached) $ECHO_C" >&6
29654else
29655 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029656/* confdefs.h. */
29657_ACEOF
29658cat confdefs.h >>conftest.$ac_ext
29659cat >>conftest.$ac_ext <<_ACEOF
29660/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029661$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029662typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029663int
29664main ()
29665{
Reid Spencera773bd52006-08-04 18:18:08 +000029666if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029667 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029668if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029669 return 0;
29670 ;
29671 return 0;
29672}
29673_ACEOF
29674rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029675if { (ac_try="$ac_compile"
29676case "(($ac_try" in
29677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29678 *) ac_try_echo=$ac_try;;
29679esac
29680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29681 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029682 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029683 grep -v '^ *+' conftest.er1 >conftest.err
29684 rm -f conftest.er1
29685 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29689 { (case "(($ac_try" in
29690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29691 *) ac_try_echo=$ac_try;;
29692esac
29693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29694 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029695 ac_status=$?
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); }; } &&
29698 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029699 { (case "(($ac_try" in
29700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29701 *) ac_try_echo=$ac_try;;
29702esac
29703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29704 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029705 ac_status=$?
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); }; }; then
29708 ac_cv_type_uint64_t=yes
29709else
29710 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029711sed 's/^/| /' conftest.$ac_ext >&5
29712
Reid Spencera773bd52006-08-04 18:18:08 +000029713 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029714fi
Reid Spencera773bd52006-08-04 18:18:08 +000029715
29716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029717fi
Reid Spencera773bd52006-08-04 18:18:08 +000029718{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29719echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029720if test $ac_cv_type_uint64_t = yes; then
29721
29722cat >>confdefs.h <<_ACEOF
29723#define HAVE_UINT64_T 1
29724_ACEOF
29725
29726
29727else
Reid Spencera773bd52006-08-04 18:18:08 +000029728 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29729echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029730if test "${ac_cv_type_u_int64_t+set}" = set; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29732else
29733 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029734/* confdefs.h. */
29735_ACEOF
29736cat confdefs.h >>conftest.$ac_ext
29737cat >>conftest.$ac_ext <<_ACEOF
29738/* end confdefs.h. */
29739$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029740typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029741int
29742main ()
29743{
Reid Spencera773bd52006-08-04 18:18:08 +000029744if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029745 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029746if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029747 return 0;
29748 ;
29749 return 0;
29750}
29751_ACEOF
29752rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029753if { (ac_try="$ac_compile"
29754case "(($ac_try" in
29755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756 *) ac_try_echo=$ac_try;;
29757esac
29758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029760 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029761 grep -v '^ *+' conftest.er1 >conftest.err
29762 rm -f conftest.er1
29763 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29767 { (case "(($ac_try" in
29768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29769 *) ac_try_echo=$ac_try;;
29770esac
29771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29772 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029773 ac_status=$?
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); }; } &&
29776 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029777 { (case "(($ac_try" in
29778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29779 *) ac_try_echo=$ac_try;;
29780esac
29781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29782 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029783 ac_status=$?
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; }; then
29786 ac_cv_type_u_int64_t=yes
29787else
29788 echo "$as_me: failed program was:" >&5
29789sed 's/^/| /' conftest.$ac_ext >&5
29790
Reid Spencera773bd52006-08-04 18:18:08 +000029791 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029792fi
Reid Spencera773bd52006-08-04 18:18:08 +000029793
29794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029795fi
Reid Spencera773bd52006-08-04 18:18:08 +000029796{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29797echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029798if test $ac_cv_type_u_int64_t = yes; then
29799
29800cat >>confdefs.h <<_ACEOF
29801#define HAVE_U_INT64_T 1
29802_ACEOF
29803
29804
Misha Brukmanceca9042004-09-02 23:02:30 +000029805else
29806 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29807echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29808 { (exit 1); exit 1; }; }
29809fi
29810
John Criswell679ff312004-09-02 18:44:44 +000029811fi
29812
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029813
29814
29815
29816
29817
29818
29819
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029820
29821
Reid Spencerdf3be822006-01-23 08:15:53 +000029822for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029823do
29824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029825{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29827if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029828 echo $ECHO_N "(cached) $ECHO_C" >&6
29829else
29830 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029831/* confdefs.h. */
29832_ACEOF
29833cat confdefs.h >>conftest.$ac_ext
29834cat >>conftest.$ac_ext <<_ACEOF
29835/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29838#define $ac_func innocuous_$ac_func
29839
29840/* System header to define __stub macros and hopefully few prototypes,
29841 which can conflict with char $ac_func (); below.
29842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29843 <limits.h> exists even on freestanding compilers. */
29844
29845#ifdef __STDC__
29846# include <limits.h>
29847#else
29848# include <assert.h>
29849#endif
29850
29851#undef $ac_func
29852
Reid Spencera773bd52006-08-04 18:18:08 +000029853/* Override any GCC internal prototype to avoid an error.
29854 Use char because int might match the return type of a GCC
29855 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029856#ifdef __cplusplus
29857extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029858#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029859char $ac_func ();
29860/* The GNU C library defines this for functions which it implements
29861 to always fail with ENOSYS. Some functions are actually named
29862 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029863#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029864choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029865#endif
John Criswell7a73b802003-06-30 21:59:07 +000029866
John Criswell7a73b802003-06-30 21:59:07 +000029867int
29868main ()
29869{
Reid Spencera773bd52006-08-04 18:18:08 +000029870return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029871 ;
29872 return 0;
29873}
29874_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029875rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029876if { (ac_try="$ac_link"
29877case "(($ac_try" in
29878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29879 *) ac_try_echo=$ac_try;;
29880esac
29881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29882 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029883 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029884 grep -v '^ *+' conftest.er1 >conftest.err
29885 rm -f conftest.er1
29886 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29890 { (case "(($ac_try" in
29891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29892 *) ac_try_echo=$ac_try;;
29893esac
29894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29895 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029896 ac_status=$?
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029899 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029900 { (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
John Criswell7a73b802003-06-30 21:59:07 +000029906 ac_status=$?
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029909 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029910else
29911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029912sed 's/^/| /' conftest.$ac_ext >&5
29913
Reid Spencera773bd52006-08-04 18:18:08 +000029914 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029915fi
Reid Spencera773bd52006-08-04 18:18:08 +000029916
29917rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029918 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029919fi
Reid Spencera773bd52006-08-04 18:18:08 +000029920ac_res=`eval echo '${'$as_ac_var'}'`
29921 { echo "$as_me:$LINENO: result: $ac_res" >&5
29922echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029923if test `eval echo '${'$as_ac_var'}'` = yes; then
29924 cat >>confdefs.h <<_ACEOF
29925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029926_ACEOF
29927
29928fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029929done
John Criswell7a73b802003-06-30 21:59:07 +000029930
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029931
29932
29933
Reid Spencer6af3d262004-12-15 04:01:48 +000029934
29935
Reid Spencer59473af2004-12-25 07:31:29 +000029936
Reid Spencerdf3be822006-01-23 08:15:53 +000029937for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29938do
29939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029940{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29942if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029943 echo $ECHO_N "(cached) $ECHO_C" >&6
29944else
29945 cat >conftest.$ac_ext <<_ACEOF
29946/* confdefs.h. */
29947_ACEOF
29948cat confdefs.h >>conftest.$ac_ext
29949cat >>conftest.$ac_ext <<_ACEOF
29950/* end confdefs.h. */
29951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29953#define $ac_func innocuous_$ac_func
29954
29955/* System header to define __stub macros and hopefully few prototypes,
29956 which can conflict with char $ac_func (); below.
29957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29958 <limits.h> exists even on freestanding compilers. */
29959
29960#ifdef __STDC__
29961# include <limits.h>
29962#else
29963# include <assert.h>
29964#endif
29965
29966#undef $ac_func
29967
Reid Spencera773bd52006-08-04 18:18:08 +000029968/* Override any GCC internal prototype to avoid an error.
29969 Use char because int might match the return type of a GCC
29970 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000029971#ifdef __cplusplus
29972extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000029973#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000029974char $ac_func ();
29975/* The GNU C library defines this for functions which it implements
29976 to always fail with ENOSYS. Some functions are actually named
29977 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029978#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000029979choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000029980#endif
29981
29982int
29983main ()
29984{
Reid Spencera773bd52006-08-04 18:18:08 +000029985return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000029986 ;
29987 return 0;
29988}
29989_ACEOF
29990rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029991if { (ac_try="$ac_link"
29992case "(($ac_try" in
29993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994 *) ac_try_echo=$ac_try;;
29995esac
29996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000029998 ac_status=$?
29999 grep -v '^ *+' conftest.er1 >conftest.err
30000 rm -f conftest.er1
30001 cat conftest.err >&5
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30005 { (case "(($ac_try" in
30006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30007 *) ac_try_echo=$ac_try;;
30008esac
30009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30010 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; } &&
30014 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030015 { (case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30018esac
30019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030021 ac_status=$?
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; }; then
30024 eval "$as_ac_var=yes"
30025else
30026 echo "$as_me: failed program was:" >&5
30027sed 's/^/| /' conftest.$ac_ext >&5
30028
Reid Spencera773bd52006-08-04 18:18:08 +000030029 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030030fi
Reid Spencera773bd52006-08-04 18:18:08 +000030031
30032rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030033 conftest$ac_exeext conftest.$ac_ext
30034fi
Reid Spencera773bd52006-08-04 18:18:08 +000030035ac_res=`eval echo '${'$as_ac_var'}'`
30036 { echo "$as_me:$LINENO: result: $ac_res" >&5
30037echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030038if test `eval echo '${'$as_ac_var'}'` = yes; then
30039 cat >>confdefs.h <<_ACEOF
30040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30041_ACEOF
30042
30043fi
30044done
30045
30046
30047
30048
30049
30050
30051
30052
30053for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030054do
30055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030056{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30058if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030059 echo $ECHO_N "(cached) $ECHO_C" >&6
30060else
30061 cat >conftest.$ac_ext <<_ACEOF
30062/* confdefs.h. */
30063_ACEOF
30064cat confdefs.h >>conftest.$ac_ext
30065cat >>conftest.$ac_ext <<_ACEOF
30066/* end confdefs.h. */
30067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30069#define $ac_func innocuous_$ac_func
30070
30071/* System header to define __stub macros and hopefully few prototypes,
30072 which can conflict with char $ac_func (); below.
30073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30074 <limits.h> exists even on freestanding compilers. */
30075
30076#ifdef __STDC__
30077# include <limits.h>
30078#else
30079# include <assert.h>
30080#endif
30081
30082#undef $ac_func
30083
Reid Spencera773bd52006-08-04 18:18:08 +000030084/* Override any GCC internal prototype to avoid an error.
30085 Use char because int might match the return type of a GCC
30086 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030087#ifdef __cplusplus
30088extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030089#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030090char $ac_func ();
30091/* The GNU C library defines this for functions which it implements
30092 to always fail with ENOSYS. Some functions are actually named
30093 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030094#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030095choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030096#endif
30097
30098int
30099main ()
30100{
Reid Spencera773bd52006-08-04 18:18:08 +000030101return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030102 ;
30103 return 0;
30104}
30105_ACEOF
30106rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030107if { (ac_try="$ac_link"
30108case "(($ac_try" in
30109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110 *) ac_try_echo=$ac_try;;
30111esac
30112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030114 ac_status=$?
30115 grep -v '^ *+' conftest.er1 >conftest.err
30116 rm -f conftest.er1
30117 cat conftest.err >&5
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30121 { (case "(($ac_try" in
30122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123 *) ac_try_echo=$ac_try;;
30124esac
30125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030127 ac_status=$?
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); }; } &&
30130 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030131 { (case "(($ac_try" in
30132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30133 *) ac_try_echo=$ac_try;;
30134esac
30135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30136 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030137 ac_status=$?
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); }; }; then
30140 eval "$as_ac_var=yes"
30141else
30142 echo "$as_me: failed program was:" >&5
30143sed 's/^/| /' conftest.$ac_ext >&5
30144
Reid Spencera773bd52006-08-04 18:18:08 +000030145 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030146fi
Reid Spencera773bd52006-08-04 18:18:08 +000030147
30148rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030149 conftest$ac_exeext conftest.$ac_ext
30150fi
Reid Spencera773bd52006-08-04 18:18:08 +000030151ac_res=`eval echo '${'$as_ac_var'}'`
30152 { echo "$as_me:$LINENO: result: $ac_res" >&5
30153echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030154if test `eval echo '${'$as_ac_var'}'` = yes; then
30155 cat >>confdefs.h <<_ACEOF
30156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30157_ACEOF
30158
30159fi
30160done
30161
30162
Reid Spencerba46ca32004-12-31 05:49:15 +000030163
30164
Chris Lattner0b142592005-11-14 06:57:34 +000030165
Chris Lattner511f11d2005-11-14 07:25:50 +000030166for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030167do
30168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030169{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30171if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030172 echo $ECHO_N "(cached) $ECHO_C" >&6
30173else
30174 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030175/* confdefs.h. */
30176_ACEOF
30177cat confdefs.h >>conftest.$ac_ext
30178cat >>conftest.$ac_ext <<_ACEOF
30179/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30182#define $ac_func innocuous_$ac_func
30183
30184/* System header to define __stub macros and hopefully few prototypes,
30185 which can conflict with char $ac_func (); below.
30186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30187 <limits.h> exists even on freestanding compilers. */
30188
30189#ifdef __STDC__
30190# include <limits.h>
30191#else
30192# include <assert.h>
30193#endif
30194
30195#undef $ac_func
30196
Reid Spencera773bd52006-08-04 18:18:08 +000030197/* Override any GCC internal prototype to avoid an error.
30198 Use char because int might match the return type of a GCC
30199 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030200#ifdef __cplusplus
30201extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030202#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030203char $ac_func ();
30204/* The GNU C library defines this for functions which it implements
30205 to always fail with ENOSYS. Some functions are actually named
30206 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030207#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030208choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030209#endif
John Criswell7a73b802003-06-30 21:59:07 +000030210
John Criswell7a73b802003-06-30 21:59:07 +000030211int
30212main ()
30213{
Reid Spencera773bd52006-08-04 18:18:08 +000030214return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030215 ;
30216 return 0;
30217}
30218_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030219rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030220if { (ac_try="$ac_link"
30221case "(($ac_try" in
30222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30223 *) ac_try_echo=$ac_try;;
30224esac
30225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30226 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030228 grep -v '^ *+' conftest.er1 >conftest.err
30229 rm -f conftest.er1
30230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30234 { (case "(($ac_try" in
30235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30236 *) ac_try_echo=$ac_try;;
30237esac
30238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30239 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030240 ac_status=$?
30241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030243 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030244 { (case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30247esac
30248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030250 ac_status=$?
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030253 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030254else
30255 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030256sed 's/^/| /' conftest.$ac_ext >&5
30257
Reid Spencera773bd52006-08-04 18:18:08 +000030258 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030259fi
Reid Spencera773bd52006-08-04 18:18:08 +000030260
30261rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030262 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030263fi
Reid Spencera773bd52006-08-04 18:18:08 +000030264ac_res=`eval echo '${'$as_ac_var'}'`
30265 { echo "$as_me:$LINENO: result: $ac_res" >&5
30266echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030267if test `eval echo '${'$as_ac_var'}'` = yes; then
30268 cat >>confdefs.h <<_ACEOF
30269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030270_ACEOF
30271
30272fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030273done
John Criswell7a73b802003-06-30 21:59:07 +000030274
Reid Spencercdb08a32006-06-05 16:11:07 +000030275
30276
30277
30278
30279
30280
30281for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30282do
30283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030284{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30286if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030287 echo $ECHO_N "(cached) $ECHO_C" >&6
30288else
30289 cat >conftest.$ac_ext <<_ACEOF
30290/* confdefs.h. */
30291_ACEOF
30292cat confdefs.h >>conftest.$ac_ext
30293cat >>conftest.$ac_ext <<_ACEOF
30294/* end confdefs.h. */
30295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30297#define $ac_func innocuous_$ac_func
30298
30299/* System header to define __stub macros and hopefully few prototypes,
30300 which can conflict with char $ac_func (); below.
30301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30302 <limits.h> exists even on freestanding compilers. */
30303
30304#ifdef __STDC__
30305# include <limits.h>
30306#else
30307# include <assert.h>
30308#endif
30309
30310#undef $ac_func
30311
Reid Spencera773bd52006-08-04 18:18:08 +000030312/* Override any GCC internal prototype to avoid an error.
30313 Use char because int might match the return type of a GCC
30314 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030315#ifdef __cplusplus
30316extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030317#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030318char $ac_func ();
30319/* The GNU C library defines this for functions which it implements
30320 to always fail with ENOSYS. Some functions are actually named
30321 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030322#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030323choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030324#endif
30325
30326int
30327main ()
30328{
Reid Spencera773bd52006-08-04 18:18:08 +000030329return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030330 ;
30331 return 0;
30332}
30333_ACEOF
30334rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030335if { (ac_try="$ac_link"
30336case "(($ac_try" in
30337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30338 *) ac_try_echo=$ac_try;;
30339esac
30340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30341 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030342 ac_status=$?
30343 grep -v '^ *+' conftest.er1 >conftest.err
30344 rm -f conftest.er1
30345 cat conftest.err >&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30349 { (case "(($ac_try" in
30350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30351 *) ac_try_echo=$ac_try;;
30352esac
30353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030355 ac_status=$?
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; } &&
30358 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030359 { (case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30362esac
30363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030365 ac_status=$?
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; }; then
30368 eval "$as_ac_var=yes"
30369else
30370 echo "$as_me: failed program was:" >&5
30371sed 's/^/| /' conftest.$ac_ext >&5
30372
Reid Spencera773bd52006-08-04 18:18:08 +000030373 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030374fi
Reid Spencera773bd52006-08-04 18:18:08 +000030375
30376rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030377 conftest$ac_exeext conftest.$ac_ext
30378fi
Reid Spencera773bd52006-08-04 18:18:08 +000030379ac_res=`eval echo '${'$as_ac_var'}'`
30380 { echo "$as_me:$LINENO: result: $ac_res" >&5
30381echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030382if test `eval echo '${'$as_ac_var'}'` = yes; then
30383 cat >>confdefs.h <<_ACEOF
30384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30385_ACEOF
30386
30387fi
30388done
30389
Reid Spencera773bd52006-08-04 18:18:08 +000030390{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30391echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030392if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030393 echo $ECHO_N "(cached) $ECHO_C" >&6
30394else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030395 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030396ac_cpp='$CPP $CPPFLAGS'
30397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30399ac_compiler_gnu=$ac_cv_c_compiler_gnu
30400
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030401 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030402 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030403else
30404 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030405
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030406 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030407_ACEOF
30408cat confdefs.h >>conftest.$ac_ext
30409cat >>conftest.$ac_ext <<_ACEOF
30410/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030411
John Criswella0137d32003-10-13 16:22:01 +000030412#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030413#include <stdlib.h>
30414
John Criswella0137d32003-10-13 16:22:01 +000030415int
30416main ()
30417{
30418
Reid Spencer2706f8c2004-09-19 23:53:36 +000030419volatile double A, B;
30420char Buffer[100];
30421A = 1;
30422A /= 10.0;
30423sprintf(Buffer, "%a", A);
30424B = atof(Buffer);
30425if (A != B)
30426 return (1);
30427if (A != 0x1.999999999999ap-4)
30428 return (1);
30429return (0);
John Criswella0137d32003-10-13 16:22:01 +000030430 ;
30431 return 0;
30432}
30433_ACEOF
30434rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030435if { (ac_try="$ac_link"
30436case "(($ac_try" in
30437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30438 *) ac_try_echo=$ac_try;;
30439esac
30440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30441 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030442 ac_status=$?
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030445 { (case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30448esac
30449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030451 ac_status=$?
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030454 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030455else
30456 echo "$as_me: program exited with status $ac_status" >&5
30457echo "$as_me: failed program was:" >&5
30458sed 's/^/| /' conftest.$ac_ext >&5
30459
30460( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030461llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030462fi
Reid Spencera773bd52006-08-04 18:18:08 +000030463rm -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 +000030464fi
Reid Spencera773bd52006-08-04 18:18:08 +000030465
30466
Reid Spencer2706f8c2004-09-19 23:53:36 +000030467 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030468ac_cpp='$CPP $CPPFLAGS'
30469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30471ac_compiler_gnu=$ac_cv_c_compiler_gnu
30472
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030473fi
Reid Spencera773bd52006-08-04 18:18:08 +000030474{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30475echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030476 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030477
30478cat >>confdefs.h <<\_ACEOF
30479#define HAVE_PRINTF_A 1
30480_ACEOF
30481
Reid Spencer2706f8c2004-09-19 23:53:36 +000030482 fi
John Criswella0137d32003-10-13 16:22:01 +000030483
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030484# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30485# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030486{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30487echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030488if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030489 echo $ECHO_N "(cached) $ECHO_C" >&6
30490else
John Criswell0021c312004-02-13 21:57:29 +000030491 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030492/* confdefs.h. */
30493_ACEOF
30494cat confdefs.h >>conftest.$ac_ext
30495cat >>conftest.$ac_ext <<_ACEOF
30496/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030497#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030498int
30499main ()
30500{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030501char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030502 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030503 ;
30504 return 0;
30505}
30506_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030507rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030508if { (ac_try="$ac_link"
30509case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30512esac
30513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030515 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030516 grep -v '^ *+' conftest.er1 >conftest.err
30517 rm -f conftest.er1
30518 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30522 { (case "(($ac_try" in
30523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30524 *) ac_try_echo=$ac_try;;
30525esac
30526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30527 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030528 ac_status=$?
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030531 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030532 { (case "(($ac_try" in
30533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30534 *) ac_try_echo=$ac_try;;
30535esac
30536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30537 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030538 ac_status=$?
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030541 ac_cv_working_alloca_h=yes
30542else
30543 echo "$as_me: failed program was:" >&5
30544sed 's/^/| /' conftest.$ac_ext >&5
30545
Reid Spencera773bd52006-08-04 18:18:08 +000030546 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030547fi
Reid Spencera773bd52006-08-04 18:18:08 +000030548
30549rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030550 conftest$ac_exeext conftest.$ac_ext
30551fi
Reid Spencera773bd52006-08-04 18:18:08 +000030552{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30553echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030554if test $ac_cv_working_alloca_h = yes; then
30555
30556cat >>confdefs.h <<\_ACEOF
30557#define HAVE_ALLOCA_H 1
30558_ACEOF
30559
30560fi
30561
Reid Spencera773bd52006-08-04 18:18:08 +000030562{ echo "$as_me:$LINENO: checking for alloca" >&5
30563echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030564if test "${ac_cv_func_alloca_works+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30566else
30567 cat >conftest.$ac_ext <<_ACEOF
30568/* confdefs.h. */
30569_ACEOF
30570cat confdefs.h >>conftest.$ac_ext
30571cat >>conftest.$ac_ext <<_ACEOF
30572/* end confdefs.h. */
30573#ifdef __GNUC__
30574# define alloca __builtin_alloca
30575#else
30576# ifdef _MSC_VER
30577# include <malloc.h>
30578# define alloca _alloca
30579# else
30580# if HAVE_ALLOCA_H
30581# include <alloca.h>
30582# else
30583# ifdef _AIX
30584 #pragma alloca
30585# else
30586# ifndef alloca /* predefined by HP cc +Olibcalls */
30587char *alloca ();
30588# endif
30589# endif
30590# endif
30591# endif
30592#endif
30593
30594int
30595main ()
30596{
30597char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030598 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030599 ;
30600 return 0;
30601}
30602_ACEOF
30603rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030604if { (ac_try="$ac_link"
30605case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30608esac
30609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030611 ac_status=$?
30612 grep -v '^ *+' conftest.er1 >conftest.err
30613 rm -f conftest.er1
30614 cat conftest.err >&5
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30618 { (case "(($ac_try" in
30619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30620 *) ac_try_echo=$ac_try;;
30621esac
30622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030624 ac_status=$?
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; } &&
30627 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030628 { (case "(($ac_try" in
30629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30630 *) ac_try_echo=$ac_try;;
30631esac
30632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30633 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030634 ac_status=$?
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; }; then
30637 ac_cv_func_alloca_works=yes
30638else
30639 echo "$as_me: failed program was:" >&5
30640sed 's/^/| /' conftest.$ac_ext >&5
30641
Reid Spencera773bd52006-08-04 18:18:08 +000030642 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030643fi
Reid Spencera773bd52006-08-04 18:18:08 +000030644
30645rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030646 conftest$ac_exeext conftest.$ac_ext
30647fi
Reid Spencera773bd52006-08-04 18:18:08 +000030648{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30649echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030650
30651if test $ac_cv_func_alloca_works = yes; then
30652
30653cat >>confdefs.h <<\_ACEOF
30654#define HAVE_ALLOCA 1
30655_ACEOF
30656
30657else
30658 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30659# that cause trouble. Some versions do not even contain alloca or
30660# contain a buggy version. If you still want to use their alloca,
30661# use ar to extract alloca.o from them instead of compiling alloca.c.
30662
Reid Spencera773bd52006-08-04 18:18:08 +000030663ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030664
30665cat >>confdefs.h <<\_ACEOF
30666#define C_ALLOCA 1
30667_ACEOF
30668
30669
Reid Spencera773bd52006-08-04 18:18:08 +000030670{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30671echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030672if test "${ac_cv_os_cray+set}" = set; then
30673 echo $ECHO_N "(cached) $ECHO_C" >&6
30674else
30675 cat >conftest.$ac_ext <<_ACEOF
30676/* confdefs.h. */
30677_ACEOF
30678cat confdefs.h >>conftest.$ac_ext
30679cat >>conftest.$ac_ext <<_ACEOF
30680/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030681#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030682webecray
30683#else
30684wenotbecray
30685#endif
30686
30687_ACEOF
30688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30689 $EGREP "webecray" >/dev/null 2>&1; then
30690 ac_cv_os_cray=yes
30691else
30692 ac_cv_os_cray=no
30693fi
30694rm -f conftest*
30695
30696fi
Reid Spencera773bd52006-08-04 18:18:08 +000030697{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30698echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030699if test $ac_cv_os_cray = yes; then
30700 for ac_func in _getb67 GETB67 getb67; do
30701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030702{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30704if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030705 echo $ECHO_N "(cached) $ECHO_C" >&6
30706else
30707 cat >conftest.$ac_ext <<_ACEOF
30708/* confdefs.h. */
30709_ACEOF
30710cat confdefs.h >>conftest.$ac_ext
30711cat >>conftest.$ac_ext <<_ACEOF
30712/* end confdefs.h. */
30713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30715#define $ac_func innocuous_$ac_func
30716
30717/* System header to define __stub macros and hopefully few prototypes,
30718 which can conflict with char $ac_func (); below.
30719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30720 <limits.h> exists even on freestanding compilers. */
30721
30722#ifdef __STDC__
30723# include <limits.h>
30724#else
30725# include <assert.h>
30726#endif
30727
30728#undef $ac_func
30729
Reid Spencera773bd52006-08-04 18:18:08 +000030730/* Override any GCC internal prototype to avoid an error.
30731 Use char because int might match the return type of a GCC
30732 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030733#ifdef __cplusplus
30734extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030735#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030736char $ac_func ();
30737/* The GNU C library defines this for functions which it implements
30738 to always fail with ENOSYS. Some functions are actually named
30739 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030740#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030741choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030742#endif
30743
30744int
30745main ()
30746{
Reid Spencera773bd52006-08-04 18:18:08 +000030747return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030748 ;
30749 return 0;
30750}
30751_ACEOF
30752rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030753if { (ac_try="$ac_link"
30754case "(($ac_try" in
30755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756 *) ac_try_echo=$ac_try;;
30757esac
30758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30759 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030760 ac_status=$?
30761 grep -v '^ *+' conftest.er1 >conftest.err
30762 rm -f conftest.er1
30763 cat conftest.err >&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30767 { (case "(($ac_try" in
30768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769 *) ac_try_echo=$ac_try;;
30770esac
30771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030773 ac_status=$?
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); }; } &&
30776 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030777 { (case "(($ac_try" in
30778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30779 *) ac_try_echo=$ac_try;;
30780esac
30781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30782 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030783 ac_status=$?
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); }; }; then
30786 eval "$as_ac_var=yes"
30787else
30788 echo "$as_me: failed program was:" >&5
30789sed 's/^/| /' conftest.$ac_ext >&5
30790
Reid Spencera773bd52006-08-04 18:18:08 +000030791 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030792fi
Reid Spencera773bd52006-08-04 18:18:08 +000030793
30794rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030795 conftest$ac_exeext conftest.$ac_ext
30796fi
Reid Spencera773bd52006-08-04 18:18:08 +000030797ac_res=`eval echo '${'$as_ac_var'}'`
30798 { echo "$as_me:$LINENO: result: $ac_res" >&5
30799echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030800if test `eval echo '${'$as_ac_var'}'` = yes; then
30801
30802cat >>confdefs.h <<_ACEOF
30803#define CRAY_STACKSEG_END $ac_func
30804_ACEOF
30805
30806 break
30807fi
30808
30809 done
30810fi
30811
Reid Spencera773bd52006-08-04 18:18:08 +000030812{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30813echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030814if test "${ac_cv_c_stack_direction+set}" = set; then
30815 echo $ECHO_N "(cached) $ECHO_C" >&6
30816else
30817 if test "$cross_compiling" = yes; then
30818 ac_cv_c_stack_direction=0
30819else
30820 cat >conftest.$ac_ext <<_ACEOF
30821/* confdefs.h. */
30822_ACEOF
30823cat confdefs.h >>conftest.$ac_ext
30824cat >>conftest.$ac_ext <<_ACEOF
30825/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030826$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030827int
30828find_stack_direction ()
30829{
30830 static char *addr = 0;
30831 auto char dummy;
30832 if (addr == 0)
30833 {
30834 addr = &dummy;
30835 return find_stack_direction ();
30836 }
John Criswell0021c312004-02-13 21:57:29 +000030837 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030838 return (&dummy > addr) ? 1 : -1;
30839}
John Criswell0021c312004-02-13 21:57:29 +000030840
John Criswell0021c312004-02-13 21:57:29 +000030841int
30842main ()
30843{
Reid Spencera773bd52006-08-04 18:18:08 +000030844 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000030845}
30846_ACEOF
30847rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030848if { (ac_try="$ac_link"
30849case "(($ac_try" in
30850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30851 *) ac_try_echo=$ac_try;;
30852esac
30853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30854 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030855 ac_status=$?
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030858 { (case "(($ac_try" in
30859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30860 *) ac_try_echo=$ac_try;;
30861esac
30862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30863 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030864 ac_status=$?
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030867 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000030868else
30869 echo "$as_me: program exited with status $ac_status" >&5
30870echo "$as_me: failed program was:" >&5
30871sed 's/^/| /' conftest.$ac_ext >&5
30872
30873( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030874ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000030875fi
Reid Spencera773bd52006-08-04 18:18:08 +000030876rm -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 +000030877fi
Reid Spencera773bd52006-08-04 18:18:08 +000030878
30879
John Criswell0021c312004-02-13 21:57:29 +000030880fi
Reid Spencera773bd52006-08-04 18:18:08 +000030881{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30882echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030883
30884cat >>confdefs.h <<_ACEOF
30885#define STACK_DIRECTION $ac_cv_c_stack_direction
30886_ACEOF
30887
30888
John Criswell0021c312004-02-13 21:57:29 +000030889fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030890
30891
Reid Spencera773bd52006-08-04 18:18:08 +000030892{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30893echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030894if test "${ac_cv_func_rand48+set}" = set; then
30895 echo $ECHO_N "(cached) $ECHO_C" >&6
30896else
Reid Spencera773bd52006-08-04 18:18:08 +000030897 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030898ac_cpp='$CXXCPP $CPPFLAGS'
30899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30902
30903 cat >conftest.$ac_ext <<_ACEOF
30904/* confdefs.h. */
30905_ACEOF
30906cat confdefs.h >>conftest.$ac_ext
30907cat >>conftest.$ac_ext <<_ACEOF
30908/* end confdefs.h. */
30909#include <stdlib.h>
30910int
30911main ()
30912{
30913srand48(0);lrand48();drand48();
30914 ;
30915 return 0;
30916}
30917_ACEOF
30918rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030919if { (ac_try="$ac_compile"
30920case "(($ac_try" in
30921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30922 *) ac_try_echo=$ac_try;;
30923esac
30924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30925 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030926 ac_status=$?
30927 grep -v '^ *+' conftest.er1 >conftest.err
30928 rm -f conftest.er1
30929 cat conftest.err >&5
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30933 { (case "(($ac_try" in
30934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935 *) ac_try_echo=$ac_try;;
30936esac
30937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030939 ac_status=$?
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); }; } &&
30942 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030943 { (case "(($ac_try" in
30944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945 *) ac_try_echo=$ac_try;;
30946esac
30947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030949 ac_status=$?
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; }; then
30952 ac_cv_func_rand48=yes
30953else
30954 echo "$as_me: failed program was:" >&5
30955sed 's/^/| /' conftest.$ac_ext >&5
30956
Reid Spencera773bd52006-08-04 18:18:08 +000030957 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030958fi
Reid Spencera773bd52006-08-04 18:18:08 +000030959
30960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030961 ac_ext=c
30962ac_cpp='$CPP $CPPFLAGS'
30963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30965ac_compiler_gnu=$ac_cv_c_compiler_gnu
30966
30967fi
Reid Spencera773bd52006-08-04 18:18:08 +000030968{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30969echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030970
30971if test "$ac_cv_func_rand48" = "yes" ; then
30972
30973cat >>confdefs.h <<\_ACEOF
30974#define HAVE_RAND48 1
30975_ACEOF
30976
30977fi
John Criswell0021c312004-02-13 21:57:29 +000030978
30979
Reid Spencera773bd52006-08-04 18:18:08 +000030980{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30981echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030982if test "${ac_cv_cxx_namespaces+set}" = set; then
30983 echo $ECHO_N "(cached) $ECHO_C" >&6
30984else
Reid Spencera773bd52006-08-04 18:18:08 +000030985 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030986ac_cpp='$CXXCPP $CPPFLAGS'
30987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30990
30991 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030992/* confdefs.h. */
30993_ACEOF
30994cat confdefs.h >>conftest.$ac_ext
30995cat >>conftest.$ac_ext <<_ACEOF
30996/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030997namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000030998int
30999main ()
31000{
31001using namespace Outer::Inner; return i;
31002 ;
31003 return 0;
31004}
31005_ACEOF
31006rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031007if { (ac_try="$ac_compile"
31008case "(($ac_try" in
31009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31010 *) ac_try_echo=$ac_try;;
31011esac
31012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31013 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031014 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031015 grep -v '^ *+' conftest.er1 >conftest.err
31016 rm -f conftest.er1
31017 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31021 { (case "(($ac_try" in
31022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31023 *) ac_try_echo=$ac_try;;
31024esac
31025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31026 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031027 ac_status=$?
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); }; } &&
31030 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031031 { (case "(($ac_try" in
31032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033 *) ac_try_echo=$ac_try;;
31034esac
31035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031037 ac_status=$?
31038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039 (exit $ac_status); }; }; then
31040 ac_cv_cxx_namespaces=yes
31041else
31042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031043sed 's/^/| /' conftest.$ac_ext >&5
31044
Reid Spencera773bd52006-08-04 18:18:08 +000031045 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031046fi
Reid Spencera773bd52006-08-04 18:18:08 +000031047
31048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031049 ac_ext=c
31050ac_cpp='$CPP $CPPFLAGS'
31051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31053ac_compiler_gnu=$ac_cv_c_compiler_gnu
31054
31055
31056fi
Reid Spencera773bd52006-08-04 18:18:08 +000031057{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31058echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031059if test "$ac_cv_cxx_namespaces" = yes; then
31060
31061cat >>confdefs.h <<\_ACEOF
31062#define HAVE_NAMESPACES
31063_ACEOF
31064
31065fi
31066
Reid Spencera773bd52006-08-04 18:18:08 +000031067{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31068echo $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 +000031069if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031070 echo $ECHO_N "(cached) $ECHO_C" >&6
31071else
31072
Reid Spencera773bd52006-08-04 18:18:08 +000031073 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031074ac_cpp='$CXXCPP $CPPFLAGS'
31075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31078
31079 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031080/* confdefs.h. */
31081_ACEOF
31082cat confdefs.h >>conftest.$ac_ext
31083cat >>conftest.$ac_ext <<_ACEOF
31084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031085#include <ext/hash_map>
31086#ifdef HAVE_NAMESPACES
31087using namespace std;
31088#endif
John Criswell7a73b802003-06-30 21:59:07 +000031089int
31090main ()
31091{
Brian Gaeke90583492003-11-10 03:06:28 +000031092hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031093 ;
31094 return 0;
31095}
31096_ACEOF
31097rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031098if { (ac_try="$ac_compile"
31099case "(($ac_try" in
31100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31101 *) ac_try_echo=$ac_try;;
31102esac
31103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31104 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031105 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031106 grep -v '^ *+' conftest.er1 >conftest.err
31107 rm -f conftest.er1
31108 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31112 { (case "(($ac_try" in
31113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31114 *) ac_try_echo=$ac_try;;
31115esac
31116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31117 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031118 ac_status=$?
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; } &&
31121 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031122 { (case "(($ac_try" in
31123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124 *) ac_try_echo=$ac_try;;
31125esac
31126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31127 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031128 ac_status=$?
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031131 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031132else
31133 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031134sed 's/^/| /' conftest.$ac_ext >&5
31135
Reid Spencera773bd52006-08-04 18:18:08 +000031136 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031137fi
Reid Spencera773bd52006-08-04 18:18:08 +000031138
31139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031140 ac_ext=c
31141ac_cpp='$CPP $CPPFLAGS'
31142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31144ac_compiler_gnu=$ac_cv_c_compiler_gnu
31145
John Criswell7a73b802003-06-30 21:59:07 +000031146fi
Reid Spencera773bd52006-08-04 18:18:08 +000031147{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31148echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031149 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31150 then
John Criswell9f011862004-09-24 18:28:00 +000031151
31152cat >>confdefs.h <<\_ACEOF
31153#define HAVE_STD_EXT_HASH_MAP 1
31154_ACEOF
31155
31156 else
31157
31158cat >>confdefs.h <<\_ACEOF
31159#define HAVE_STD_EXT_HASH_MAP 0
31160_ACEOF
31161
Brian Gaeke90583492003-11-10 03:06:28 +000031162 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031163
Reid Spencera773bd52006-08-04 18:18:08 +000031164 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31165echo $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 +000031166if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31167 echo $ECHO_N "(cached) $ECHO_C" >&6
31168else
31169
Reid Spencera773bd52006-08-04 18:18:08 +000031170 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031171ac_cpp='$CXXCPP $CPPFLAGS'
31172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31175
31176 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031177/* confdefs.h. */
31178_ACEOF
31179cat confdefs.h >>conftest.$ac_ext
31180cat >>conftest.$ac_ext <<_ACEOF
31181/* end confdefs.h. */
31182#include <ext/hash_map>
31183#ifdef HAVE_NAMESPACES
31184using namespace __gnu_cxx;
31185#endif
31186int
31187main ()
31188{
31189hash_map<int,int> t;
31190 ;
31191 return 0;
31192}
31193_ACEOF
31194rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031195if { (ac_try="$ac_compile"
31196case "(($ac_try" in
31197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198 *) ac_try_echo=$ac_try;;
31199esac
31200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031202 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031203 grep -v '^ *+' conftest.er1 >conftest.err
31204 rm -f conftest.er1
31205 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31209 { (case "(($ac_try" in
31210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211 *) ac_try_echo=$ac_try;;
31212esac
31213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031215 ac_status=$?
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; } &&
31218 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031219 { (case "(($ac_try" in
31220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31221 *) ac_try_echo=$ac_try;;
31222esac
31223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31224 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031225 ac_status=$?
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; }; then
31228 ac_cv_cxx_have_gnu_ext_hash_map=yes
31229else
31230 echo "$as_me: failed program was:" >&5
31231sed 's/^/| /' conftest.$ac_ext >&5
31232
Reid Spencera773bd52006-08-04 18:18:08 +000031233 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031234fi
Reid Spencera773bd52006-08-04 18:18:08 +000031235
31236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031237 ac_ext=c
31238ac_cpp='$CPP $CPPFLAGS'
31239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31241ac_compiler_gnu=$ac_cv_c_compiler_gnu
31242
31243fi
Reid Spencera773bd52006-08-04 18:18:08 +000031244{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31245echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031246 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31247 then
John Criswell9f011862004-09-24 18:28:00 +000031248
31249cat >>confdefs.h <<\_ACEOF
31250#define HAVE_GNU_EXT_HASH_MAP 1
31251_ACEOF
31252
31253 else
31254
31255cat >>confdefs.h <<\_ACEOF
31256#define HAVE_GNU_EXT_HASH_MAP 0
31257_ACEOF
31258
Brian Gaeke90583492003-11-10 03:06:28 +000031259 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031260
Reid Spencera773bd52006-08-04 18:18:08 +000031261 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31262echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031263if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31264 echo $ECHO_N "(cached) $ECHO_C" >&6
31265else
John Criswell7a73b802003-06-30 21:59:07 +000031266
Reid Spencera773bd52006-08-04 18:18:08 +000031267 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031268ac_cpp='$CXXCPP $CPPFLAGS'
31269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31272
31273 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031274/* confdefs.h. */
31275_ACEOF
31276cat confdefs.h >>conftest.$ac_ext
31277cat >>conftest.$ac_ext <<_ACEOF
31278/* end confdefs.h. */
31279#include <hash_map>
31280int
31281main ()
31282{
31283hash_map<int,int> t;
31284 ;
31285 return 0;
31286}
31287_ACEOF
31288rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031289if { (ac_try="$ac_compile"
31290case "(($ac_try" in
31291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31292 *) ac_try_echo=$ac_try;;
31293esac
31294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31295 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031297 grep -v '^ *+' conftest.er1 >conftest.err
31298 rm -f conftest.er1
31299 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31303 { (case "(($ac_try" in
31304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305 *) ac_try_echo=$ac_try;;
31306esac
31307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; } &&
31312 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031313 { (case "(($ac_try" in
31314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31315 *) ac_try_echo=$ac_try;;
31316esac
31317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31318 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031319 ac_status=$?
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; }; then
31322 ac_cv_cxx_have_global_hash_map=yes
31323else
31324 echo "$as_me: failed program was:" >&5
31325sed 's/^/| /' conftest.$ac_ext >&5
31326
Reid Spencera773bd52006-08-04 18:18:08 +000031327 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031328fi
Reid Spencera773bd52006-08-04 18:18:08 +000031329
31330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031331 ac_ext=c
31332ac_cpp='$CPP $CPPFLAGS'
31333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31335ac_compiler_gnu=$ac_cv_c_compiler_gnu
31336
31337fi
Reid Spencera773bd52006-08-04 18:18:08 +000031338{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31339echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031340 if test "$ac_cv_cxx_have_global_hash_map" = yes
31341 then
John Criswell9f011862004-09-24 18:28:00 +000031342
31343cat >>confdefs.h <<\_ACEOF
31344#define HAVE_GLOBAL_HASH_MAP 1
31345_ACEOF
31346
31347 else
31348
31349cat >>confdefs.h <<\_ACEOF
31350#define HAVE_GLOBAL_HASH_MAP 0
31351_ACEOF
31352
Brian Gaeke90583492003-11-10 03:06:28 +000031353 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031354
Reid Spencera773bd52006-08-04 18:18:08 +000031355{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31356echo $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 +000031357if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031358 echo $ECHO_N "(cached) $ECHO_C" >&6
31359else
31360
Reid Spencera773bd52006-08-04 18:18:08 +000031361 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031362ac_cpp='$CXXCPP $CPPFLAGS'
31363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31366
31367 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031368/* confdefs.h. */
31369_ACEOF
31370cat confdefs.h >>conftest.$ac_ext
31371cat >>conftest.$ac_ext <<_ACEOF
31372/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031373#include <ext/hash_set>
31374#ifdef HAVE_NAMESPACES
31375using namespace std;
31376#endif
John Criswell7a73b802003-06-30 21:59:07 +000031377int
31378main ()
31379{
Brian Gaeke90583492003-11-10 03:06:28 +000031380hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031381 ;
31382 return 0;
31383}
31384_ACEOF
31385rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031386if { (ac_try="$ac_compile"
31387case "(($ac_try" in
31388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31389 *) ac_try_echo=$ac_try;;
31390esac
31391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31392 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031393 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031394 grep -v '^ *+' conftest.er1 >conftest.err
31395 rm -f conftest.er1
31396 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31400 { (case "(($ac_try" in
31401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402 *) ac_try_echo=$ac_try;;
31403esac
31404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031406 ac_status=$?
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; } &&
31409 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031410 { (case "(($ac_try" in
31411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31412 *) ac_try_echo=$ac_try;;
31413esac
31414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31415 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031416 ac_status=$?
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031419 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031420else
31421 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031422sed 's/^/| /' conftest.$ac_ext >&5
31423
Reid Spencera773bd52006-08-04 18:18:08 +000031424 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031425fi
Reid Spencera773bd52006-08-04 18:18:08 +000031426
31427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031428 ac_ext=c
31429ac_cpp='$CPP $CPPFLAGS'
31430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31432ac_compiler_gnu=$ac_cv_c_compiler_gnu
31433
31434fi
Reid Spencera773bd52006-08-04 18:18:08 +000031435{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31436echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031437 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31438 then
John Criswell9f011862004-09-24 18:28:00 +000031439
31440cat >>confdefs.h <<\_ACEOF
31441#define HAVE_STD_EXT_HASH_SET 1
31442_ACEOF
31443
31444 else
31445
31446cat >>confdefs.h <<\_ACEOF
31447#define HAVE_STD_EXT_HASH_SET 0
31448_ACEOF
31449
Brian Gaeke90583492003-11-10 03:06:28 +000031450 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031451
Reid Spencera773bd52006-08-04 18:18:08 +000031452 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31453echo $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 +000031454if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31455 echo $ECHO_N "(cached) $ECHO_C" >&6
31456else
31457
Reid Spencera773bd52006-08-04 18:18:08 +000031458 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031459ac_cpp='$CXXCPP $CPPFLAGS'
31460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31463
John Criswell7a73b802003-06-30 21:59:07 +000031464 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031465/* confdefs.h. */
31466_ACEOF
31467cat confdefs.h >>conftest.$ac_ext
31468cat >>conftest.$ac_ext <<_ACEOF
31469/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031470#include <ext/hash_set>
31471#ifdef HAVE_NAMESPACES
31472using namespace __gnu_cxx;
31473#endif
John Criswell7a73b802003-06-30 21:59:07 +000031474int
31475main ()
31476{
Brian Gaeke90583492003-11-10 03:06:28 +000031477hash_set<int> t;
31478 ;
31479 return 0;
31480}
31481_ACEOF
31482rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031483if { (ac_try="$ac_compile"
31484case "(($ac_try" in
31485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486 *) ac_try_echo=$ac_try;;
31487esac
31488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031490 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031491 grep -v '^ *+' conftest.er1 >conftest.err
31492 rm -f conftest.er1
31493 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31497 { (case "(($ac_try" in
31498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31499 *) ac_try_echo=$ac_try;;
31500esac
31501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31502 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031503 ac_status=$?
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); }; } &&
31506 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031507 { (case "(($ac_try" in
31508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509 *) ac_try_echo=$ac_try;;
31510esac
31511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31512 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031513 ac_status=$?
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); }; }; then
31516 ac_cv_cxx_have_gnu_ext_hash_set=yes
31517else
31518 echo "$as_me: failed program was:" >&5
31519sed 's/^/| /' conftest.$ac_ext >&5
31520
Reid Spencera773bd52006-08-04 18:18:08 +000031521 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031522fi
Reid Spencera773bd52006-08-04 18:18:08 +000031523
31524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031525 ac_ext=c
31526ac_cpp='$CPP $CPPFLAGS'
31527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31529ac_compiler_gnu=$ac_cv_c_compiler_gnu
31530
31531fi
Reid Spencera773bd52006-08-04 18:18:08 +000031532{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31533echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031534 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31535 then
John Criswell9f011862004-09-24 18:28:00 +000031536
31537cat >>confdefs.h <<\_ACEOF
31538#define HAVE_GNU_EXT_HASH_SET 1
31539_ACEOF
31540
31541 else
31542
31543cat >>confdefs.h <<\_ACEOF
31544#define HAVE_GNU_EXT_HASH_SET 0
31545_ACEOF
31546
Brian Gaeke90583492003-11-10 03:06:28 +000031547 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031548
Reid Spencera773bd52006-08-04 18:18:08 +000031549 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31550echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031551if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31552 echo $ECHO_N "(cached) $ECHO_C" >&6
31553else
31554
Reid Spencera773bd52006-08-04 18:18:08 +000031555 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031556ac_cpp='$CXXCPP $CPPFLAGS'
31557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31560
31561 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031562/* confdefs.h. */
31563_ACEOF
31564cat confdefs.h >>conftest.$ac_ext
31565cat >>conftest.$ac_ext <<_ACEOF
31566/* end confdefs.h. */
31567#include <hash_set>
31568int
31569main ()
31570{
John Criswell7a73b802003-06-30 21:59:07 +000031571hash_set<int> t; return 0;
31572 ;
31573 return 0;
31574}
31575_ACEOF
31576rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031577if { (ac_try="$ac_compile"
31578case "(($ac_try" in
31579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31580 *) ac_try_echo=$ac_try;;
31581esac
31582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031584 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031585 grep -v '^ *+' conftest.er1 >conftest.err
31586 rm -f conftest.er1
31587 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31591 { (case "(($ac_try" in
31592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593 *) ac_try_echo=$ac_try;;
31594esac
31595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031597 ac_status=$?
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); }; } &&
31600 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031601 { (case "(($ac_try" in
31602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31603 *) ac_try_echo=$ac_try;;
31604esac
31605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31606 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031607 ac_status=$?
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031610 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031611else
31612 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031613sed 's/^/| /' conftest.$ac_ext >&5
31614
Reid Spencera773bd52006-08-04 18:18:08 +000031615 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031616fi
Reid Spencera773bd52006-08-04 18:18:08 +000031617
31618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031619 ac_ext=c
31620ac_cpp='$CPP $CPPFLAGS'
31621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31623ac_compiler_gnu=$ac_cv_c_compiler_gnu
31624
John Criswell7a73b802003-06-30 21:59:07 +000031625fi
Reid Spencera773bd52006-08-04 18:18:08 +000031626{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31627echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031628 if test "$ac_cv_cxx_have_global_hash_set" = yes
31629 then
John Criswell9f011862004-09-24 18:28:00 +000031630
31631cat >>confdefs.h <<\_ACEOF
31632#define HAVE_GLOBAL_HASH_SET 1
31633_ACEOF
31634
31635 else
31636
31637cat >>confdefs.h <<\_ACEOF
31638#define HAVE_GLOBAL_HASH_SET 0
31639_ACEOF
31640
Brian Gaeke90583492003-11-10 03:06:28 +000031641 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031642
Reid Spencera773bd52006-08-04 18:18:08 +000031643{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31644echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031645if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31646 echo $ECHO_N "(cached) $ECHO_C" >&6
31647else
31648
Reid Spencera773bd52006-08-04 18:18:08 +000031649 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031650ac_cpp='$CXXCPP $CPPFLAGS'
31651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31654
31655 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031656/* confdefs.h. */
31657_ACEOF
31658cat confdefs.h >>conftest.$ac_ext
31659cat >>conftest.$ac_ext <<_ACEOF
31660/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031661#include <iterator>
31662#ifdef HAVE_NAMESPACES
31663using namespace std;
31664#endif
John Criswell7a73b802003-06-30 21:59:07 +000031665int
31666main ()
31667{
31668iterator<int,int,int> t; return 0;
31669 ;
31670 return 0;
31671}
31672_ACEOF
31673rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031674if { (ac_try="$ac_compile"
31675case "(($ac_try" in
31676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677 *) ac_try_echo=$ac_try;;
31678esac
31679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031681 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031682 grep -v '^ *+' conftest.er1 >conftest.err
31683 rm -f conftest.er1
31684 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31688 { (case "(($ac_try" in
31689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31690 *) ac_try_echo=$ac_try;;
31691esac
31692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31693 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031694 ac_status=$?
31695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696 (exit $ac_status); }; } &&
31697 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031698 { (case "(($ac_try" in
31699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31700 *) ac_try_echo=$ac_try;;
31701esac
31702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031704 ac_status=$?
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); }; }; then
31707 ac_cv_cxx_have_std_iterator=yes
31708else
31709 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031710sed 's/^/| /' conftest.$ac_ext >&5
31711
Reid Spencera773bd52006-08-04 18:18:08 +000031712 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031713fi
Reid Spencera773bd52006-08-04 18:18:08 +000031714
31715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031716 ac_ext=c
31717ac_cpp='$CPP $CPPFLAGS'
31718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31720ac_compiler_gnu=$ac_cv_c_compiler_gnu
31721
31722
31723fi
Reid Spencera773bd52006-08-04 18:18:08 +000031724{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31725echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031726if test "$ac_cv_cxx_have_std_iterator" = yes
31727then
John Criswell40468462004-09-24 21:19:06 +000031728
31729cat >>confdefs.h <<\_ACEOF
31730#define HAVE_STD_ITERATOR 1
31731_ACEOF
31732
31733else
31734
31735cat >>confdefs.h <<\_ACEOF
31736#define HAVE_STD_ITERATOR 0
31737_ACEOF
31738
John Criswell7a73b802003-06-30 21:59:07 +000031739fi
31740
Reid Spencera773bd52006-08-04 18:18:08 +000031741{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31742echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031743if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31744 echo $ECHO_N "(cached) $ECHO_C" >&6
31745else
31746
Reid Spencera773bd52006-08-04 18:18:08 +000031747 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031748ac_cpp='$CXXCPP $CPPFLAGS'
31749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31752
31753 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031754/* confdefs.h. */
31755_ACEOF
31756cat confdefs.h >>conftest.$ac_ext
31757cat >>conftest.$ac_ext <<_ACEOF
31758/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031759#include <iterator>
31760#ifdef HAVE_NAMESPACES
31761using namespace std;
31762#endif
John Criswell7a73b802003-06-30 21:59:07 +000031763int
31764main ()
31765{
John Criswellc78022e2003-07-29 19:11:58 +000031766bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031767 ;
31768 return 0;
31769}
31770_ACEOF
31771rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031772if { (ac_try="$ac_compile"
31773case "(($ac_try" in
31774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31775 *) ac_try_echo=$ac_try;;
31776esac
31777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31778 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031779 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031780 grep -v '^ *+' conftest.er1 >conftest.err
31781 rm -f conftest.er1
31782 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31786 { (case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31789esac
31790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031792 ac_status=$?
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; } &&
31795 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031796 { (case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31799esac
31800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031802 ac_status=$?
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); }; }; then
31805 ac_cv_cxx_have_bi_iterator=yes
31806else
31807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031808sed 's/^/| /' conftest.$ac_ext >&5
31809
Reid Spencera773bd52006-08-04 18:18:08 +000031810 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031811fi
Reid Spencera773bd52006-08-04 18:18:08 +000031812
31813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031814 ac_ext=c
31815ac_cpp='$CPP $CPPFLAGS'
31816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31818ac_compiler_gnu=$ac_cv_c_compiler_gnu
31819
31820
31821fi
Reid Spencera773bd52006-08-04 18:18:08 +000031822{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31823echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031824if test "$ac_cv_cxx_have_bi_iterator" = yes
31825then
John Criswell40468462004-09-24 21:19:06 +000031826
31827cat >>confdefs.h <<\_ACEOF
31828#define HAVE_BI_ITERATOR 1
31829_ACEOF
31830
31831else
31832
31833cat >>confdefs.h <<\_ACEOF
31834#define HAVE_BI_ITERATOR 0
31835_ACEOF
31836
John Criswell7a73b802003-06-30 21:59:07 +000031837fi
31838
Reid Spencera773bd52006-08-04 18:18:08 +000031839{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31840echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031841if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31842 echo $ECHO_N "(cached) $ECHO_C" >&6
31843else
31844
Reid Spencera773bd52006-08-04 18:18:08 +000031845 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031846ac_cpp='$CXXCPP $CPPFLAGS'
31847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31850
31851 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031852/* confdefs.h. */
31853_ACEOF
31854cat confdefs.h >>conftest.$ac_ext
31855cat >>conftest.$ac_ext <<_ACEOF
31856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031857#include <iterator>
31858#ifdef HAVE_NAMESPACES
31859using namespace std;
31860#endif
John Criswell7a73b802003-06-30 21:59:07 +000031861int
31862main ()
31863{
John Criswellc78022e2003-07-29 19:11:58 +000031864forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031865 ;
31866 return 0;
31867}
31868_ACEOF
31869rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031870if { (ac_try="$ac_compile"
31871case "(($ac_try" in
31872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31873 *) ac_try_echo=$ac_try;;
31874esac
31875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31876 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031877 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031878 grep -v '^ *+' conftest.er1 >conftest.err
31879 rm -f conftest.er1
31880 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31884 { (case "(($ac_try" in
31885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31886 *) ac_try_echo=$ac_try;;
31887esac
31888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31889 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031890 ac_status=$?
31891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892 (exit $ac_status); }; } &&
31893 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031894 { (case "(($ac_try" in
31895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896 *) ac_try_echo=$ac_try;;
31897esac
31898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31899 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031900 ac_status=$?
31901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902 (exit $ac_status); }; }; then
31903 ac_cv_cxx_have_fwd_iterator=yes
31904else
31905 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031906sed 's/^/| /' conftest.$ac_ext >&5
31907
Reid Spencera773bd52006-08-04 18:18:08 +000031908 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031909fi
Reid Spencera773bd52006-08-04 18:18:08 +000031910
31911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031912 ac_ext=c
31913ac_cpp='$CPP $CPPFLAGS'
31914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31916ac_compiler_gnu=$ac_cv_c_compiler_gnu
31917
31918
31919fi
Reid Spencera773bd52006-08-04 18:18:08 +000031920{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31921echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031922if test "$ac_cv_cxx_have_fwd_iterator" = yes
31923then
John Criswell40468462004-09-24 21:19:06 +000031924
31925cat >>confdefs.h <<\_ACEOF
31926#define HAVE_FWD_ITERATOR 1
31927_ACEOF
31928
31929else
31930
31931cat >>confdefs.h <<\_ACEOF
31932#define HAVE_FWD_ITERATOR 0
31933_ACEOF
31934
John Criswell7a73b802003-06-30 21:59:07 +000031935fi
31936
31937
Reid Spencera773bd52006-08-04 18:18:08 +000031938{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31939echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031940if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31941 echo $ECHO_N "(cached) $ECHO_C" >&6
31942else
Reid Spencera773bd52006-08-04 18:18:08 +000031943 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031944ac_cpp='$CXXCPP $CPPFLAGS'
31945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31948
Reid Spencerabec8f92004-10-27 23:03:44 +000031949 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031950/* confdefs.h. */
31951_ACEOF
31952cat confdefs.h >>conftest.$ac_ext
31953cat >>conftest.$ac_ext <<_ACEOF
31954/* end confdefs.h. */
31955#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031956int
31957main ()
31958{
31959float f; isnan(f);
31960 ;
31961 return 0;
31962}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031963_ACEOF
31964rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031965if { (ac_try="$ac_compile"
31966case "(($ac_try" in
31967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968 *) ac_try_echo=$ac_try;;
31969esac
31970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031972 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031973 grep -v '^ *+' conftest.er1 >conftest.err
31974 rm -f conftest.er1
31975 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31979 { (case "(($ac_try" in
31980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981 *) ac_try_echo=$ac_try;;
31982esac
31983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031985 ac_status=$?
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); }; } &&
31988 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031989 { (case "(($ac_try" in
31990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991 *) ac_try_echo=$ac_try;;
31992esac
31993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031995 ac_status=$?
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; }; then
31998 ac_cv_func_isnan_in_math_h=yes
31999else
32000 echo "$as_me: failed program was:" >&5
32001sed 's/^/| /' conftest.$ac_ext >&5
32002
Reid Spencera773bd52006-08-04 18:18:08 +000032003 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032004fi
Reid Spencera773bd52006-08-04 18:18:08 +000032005
32006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032007 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032008ac_cpp='$CPP $CPPFLAGS'
32009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32011ac_compiler_gnu=$ac_cv_c_compiler_gnu
32012
32013fi
Reid Spencera773bd52006-08-04 18:18:08 +000032014{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32015echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032016
32017
32018if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032019
32020cat >>confdefs.h <<\_ACEOF
32021#define HAVE_ISNAN_IN_MATH_H 1
32022_ACEOF
32023
Reid Spencerabec8f92004-10-27 23:03:44 +000032024fi
32025
Reid Spencera773bd52006-08-04 18:18:08 +000032026{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32027echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032028if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32029 echo $ECHO_N "(cached) $ECHO_C" >&6
32030else
Reid Spencera773bd52006-08-04 18:18:08 +000032031 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032032ac_cpp='$CXXCPP $CPPFLAGS'
32033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32036
Reid Spencerabec8f92004-10-27 23:03:44 +000032037 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032038/* confdefs.h. */
32039_ACEOF
32040cat confdefs.h >>conftest.$ac_ext
32041cat >>conftest.$ac_ext <<_ACEOF
32042/* end confdefs.h. */
32043#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032044int
32045main ()
32046{
32047float f; isnan(f);
32048 ;
32049 return 0;
32050}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032051_ACEOF
32052rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032053if { (ac_try="$ac_compile"
32054case "(($ac_try" in
32055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32056 *) ac_try_echo=$ac_try;;
32057esac
32058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32059 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032061 grep -v '^ *+' conftest.er1 >conftest.err
32062 rm -f conftest.er1
32063 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32067 { (case "(($ac_try" in
32068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32069 *) ac_try_echo=$ac_try;;
32070esac
32071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32072 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032073 ac_status=$?
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); }; } &&
32076 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032077 { (case "(($ac_try" in
32078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079 *) ac_try_echo=$ac_try;;
32080esac
32081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032083 ac_status=$?
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); }; }; then
32086 ac_cv_func_isnan_in_cmath=yes
32087else
32088 echo "$as_me: failed program was:" >&5
32089sed 's/^/| /' conftest.$ac_ext >&5
32090
Reid Spencera773bd52006-08-04 18:18:08 +000032091 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032092fi
Reid Spencera773bd52006-08-04 18:18:08 +000032093
32094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032095 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032096ac_cpp='$CPP $CPPFLAGS'
32097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32099ac_compiler_gnu=$ac_cv_c_compiler_gnu
32100
32101fi
Reid Spencera773bd52006-08-04 18:18:08 +000032102{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32103echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032104
32105if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032106
32107cat >>confdefs.h <<\_ACEOF
32108#define HAVE_ISNAN_IN_CMATH 1
32109_ACEOF
32110
Reid Spencerabec8f92004-10-27 23:03:44 +000032111fi
32112
Reid Spencera773bd52006-08-04 18:18:08 +000032113{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32114echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032115if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32116 echo $ECHO_N "(cached) $ECHO_C" >&6
32117else
Reid Spencera773bd52006-08-04 18:18:08 +000032118 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032119ac_cpp='$CXXCPP $CPPFLAGS'
32120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32123
Reid Spencerabec8f92004-10-27 23:03:44 +000032124 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032125/* confdefs.h. */
32126_ACEOF
32127cat confdefs.h >>conftest.$ac_ext
32128cat >>conftest.$ac_ext <<_ACEOF
32129/* end confdefs.h. */
32130#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032131int
32132main ()
32133{
32134float f; std::isnan(f);
32135 ;
32136 return 0;
32137}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032138_ACEOF
32139rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032140if { (ac_try="$ac_compile"
32141case "(($ac_try" in
32142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143 *) ac_try_echo=$ac_try;;
32144esac
32145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032148 grep -v '^ *+' conftest.er1 >conftest.err
32149 rm -f conftest.er1
32150 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32154 { (case "(($ac_try" in
32155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156 *) ac_try_echo=$ac_try;;
32157esac
32158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032160 ac_status=$?
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; } &&
32163 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032164 { (case "(($ac_try" in
32165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166 *) ac_try_echo=$ac_try;;
32167esac
32168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; }; then
32173 ac_cv_func_std_isnan_in_cmath=yes
32174else
32175 echo "$as_me: failed program was:" >&5
32176sed 's/^/| /' conftest.$ac_ext >&5
32177
Reid Spencera773bd52006-08-04 18:18:08 +000032178 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032179fi
Reid Spencera773bd52006-08-04 18:18:08 +000032180
32181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032182 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032183ac_cpp='$CPP $CPPFLAGS'
32184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32186ac_compiler_gnu=$ac_cv_c_compiler_gnu
32187
32188fi
Reid Spencera773bd52006-08-04 18:18:08 +000032189{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32190echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032191
32192if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032193
32194cat >>confdefs.h <<\_ACEOF
32195#define HAVE_STD_ISNAN_IN_CMATH 1
32196_ACEOF
32197
Reid Spencerabec8f92004-10-27 23:03:44 +000032198fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032199
32200
Reid Spencera773bd52006-08-04 18:18:08 +000032201{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32202echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032203if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32204 echo $ECHO_N "(cached) $ECHO_C" >&6
32205else
Reid Spencera773bd52006-08-04 18:18:08 +000032206 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032207ac_cpp='$CXXCPP $CPPFLAGS'
32208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32211
Reid Spencerabec8f92004-10-27 23:03:44 +000032212 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032213/* confdefs.h. */
32214_ACEOF
32215cat confdefs.h >>conftest.$ac_ext
32216cat >>conftest.$ac_ext <<_ACEOF
32217/* end confdefs.h. */
32218#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032219int
32220main ()
32221{
32222float f; isinf(f);
32223 ;
32224 return 0;
32225}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032226_ACEOF
32227rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032228if { (ac_try="$ac_compile"
32229case "(($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_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032235 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032236 grep -v '^ *+' conftest.er1 >conftest.err
32237 rm -f conftest.er1
32238 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32242 { (case "(($ac_try" in
32243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244 *) ac_try_echo=$ac_try;;
32245esac
32246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32247 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032248 ac_status=$?
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); }; } &&
32251 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032252 { (case "(($ac_try" in
32253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32254 *) ac_try_echo=$ac_try;;
32255esac
32256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32257 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032258 ac_status=$?
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); }; }; then
32261 ac_cv_func_isinf_in_math_h=yes
32262else
32263 echo "$as_me: failed program was:" >&5
32264sed 's/^/| /' conftest.$ac_ext >&5
32265
Reid Spencera773bd52006-08-04 18:18:08 +000032266 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032267fi
Reid Spencera773bd52006-08-04 18:18:08 +000032268
32269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032270 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032271ac_cpp='$CPP $CPPFLAGS'
32272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32274ac_compiler_gnu=$ac_cv_c_compiler_gnu
32275
32276fi
Reid Spencera773bd52006-08-04 18:18:08 +000032277{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32278echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032279
32280if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032281
32282cat >>confdefs.h <<\_ACEOF
32283#define HAVE_ISINF_IN_MATH_H 1
32284_ACEOF
32285
Reid Spencerabec8f92004-10-27 23:03:44 +000032286fi
32287
Reid Spencera773bd52006-08-04 18:18:08 +000032288{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32289echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032290if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32291 echo $ECHO_N "(cached) $ECHO_C" >&6
32292else
Reid Spencera773bd52006-08-04 18:18:08 +000032293 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032294ac_cpp='$CXXCPP $CPPFLAGS'
32295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32298
Reid Spencerabec8f92004-10-27 23:03:44 +000032299 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032300/* confdefs.h. */
32301_ACEOF
32302cat confdefs.h >>conftest.$ac_ext
32303cat >>conftest.$ac_ext <<_ACEOF
32304/* end confdefs.h. */
32305#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032306int
32307main ()
32308{
32309float f; isinf(f);
32310 ;
32311 return 0;
32312}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032313_ACEOF
32314rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032315if { (ac_try="$ac_compile"
32316case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32319esac
32320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032322 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032323 grep -v '^ *+' conftest.er1 >conftest.err
32324 rm -f conftest.er1
32325 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32329 { (case "(($ac_try" in
32330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32331 *) ac_try_echo=$ac_try;;
32332esac
32333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32334 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032335 ac_status=$?
32336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337 (exit $ac_status); }; } &&
32338 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032339 { (case "(($ac_try" in
32340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341 *) ac_try_echo=$ac_try;;
32342esac
32343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032345 ac_status=$?
32346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347 (exit $ac_status); }; }; then
32348 ac_cv_func_isinf_in_cmath=yes
32349else
32350 echo "$as_me: failed program was:" >&5
32351sed 's/^/| /' conftest.$ac_ext >&5
32352
Reid Spencera773bd52006-08-04 18:18:08 +000032353 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032354fi
Reid Spencera773bd52006-08-04 18:18:08 +000032355
32356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032357 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032358ac_cpp='$CPP $CPPFLAGS'
32359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32361ac_compiler_gnu=$ac_cv_c_compiler_gnu
32362
32363fi
Reid Spencera773bd52006-08-04 18:18:08 +000032364{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32365echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032366
32367if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032368
32369cat >>confdefs.h <<\_ACEOF
32370#define HAVE_ISINF_IN_CMATH 1
32371_ACEOF
32372
Reid Spencerabec8f92004-10-27 23:03:44 +000032373fi
32374
Reid Spencera773bd52006-08-04 18:18:08 +000032375{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32376echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032377if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32378 echo $ECHO_N "(cached) $ECHO_C" >&6
32379else
Reid Spencera773bd52006-08-04 18:18:08 +000032380 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032381ac_cpp='$CXXCPP $CPPFLAGS'
32382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32385
Reid Spencerabec8f92004-10-27 23:03:44 +000032386 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032387/* confdefs.h. */
32388_ACEOF
32389cat confdefs.h >>conftest.$ac_ext
32390cat >>conftest.$ac_ext <<_ACEOF
32391/* end confdefs.h. */
32392#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032393int
32394main ()
32395{
32396float f; std::isinf(f)}
32397 ;
32398 return 0;
32399}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032400_ACEOF
32401rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032402if { (ac_try="$ac_compile"
32403case "(($ac_try" in
32404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32405 *) ac_try_echo=$ac_try;;
32406esac
32407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32408 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032410 grep -v '^ *+' conftest.er1 >conftest.err
32411 rm -f conftest.er1
32412 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32416 { (case "(($ac_try" in
32417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32418 *) ac_try_echo=$ac_try;;
32419esac
32420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32421 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032422 ac_status=$?
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); }; } &&
32425 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032426 { (case "(($ac_try" in
32427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32428 *) ac_try_echo=$ac_try;;
32429esac
32430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32431 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032432 ac_status=$?
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); }; }; then
32435 ac_cv_func_std_isinf_in_cmath=yes
32436else
32437 echo "$as_me: failed program was:" >&5
32438sed 's/^/| /' conftest.$ac_ext >&5
32439
Reid Spencera773bd52006-08-04 18:18:08 +000032440 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032441fi
Reid Spencera773bd52006-08-04 18:18:08 +000032442
32443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032444 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032445ac_cpp='$CPP $CPPFLAGS'
32446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32448ac_compiler_gnu=$ac_cv_c_compiler_gnu
32449
32450fi
Reid Spencera773bd52006-08-04 18:18:08 +000032451{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32452echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032453
32454if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032455
32456cat >>confdefs.h <<\_ACEOF
32457#define HAVE_STD_ISINF_IN_CMATH 1
32458_ACEOF
32459
Reid Spencerabec8f92004-10-27 23:03:44 +000032460fi
32461
Reid Spencera773bd52006-08-04 18:18:08 +000032462{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32463echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032464if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32465 echo $ECHO_N "(cached) $ECHO_C" >&6
32466else
Reid Spencera773bd52006-08-04 18:18:08 +000032467 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032468ac_cpp='$CXXCPP $CPPFLAGS'
32469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32472
Reid Spencerabec8f92004-10-27 23:03:44 +000032473 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032474/* confdefs.h. */
32475_ACEOF
32476cat confdefs.h >>conftest.$ac_ext
32477cat >>conftest.$ac_ext <<_ACEOF
32478/* end confdefs.h. */
32479#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032480int
32481main ()
32482{
32483float f; finite(f);
32484 ;
32485 return 0;
32486}
Brian Gaeked59a6472004-07-21 03:33:58 +000032487_ACEOF
32488rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032489if { (ac_try="$ac_compile"
32490case "(($ac_try" in
32491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492 *) ac_try_echo=$ac_try;;
32493esac
32494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32495 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032496 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032497 grep -v '^ *+' conftest.er1 >conftest.err
32498 rm -f conftest.er1
32499 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32503 { (case "(($ac_try" in
32504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505 *) ac_try_echo=$ac_try;;
32506esac
32507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32508 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032509 ac_status=$?
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); }; } &&
32512 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032513 { (case "(($ac_try" in
32514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515 *) ac_try_echo=$ac_try;;
32516esac
32517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32518 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032519 ac_status=$?
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; }; then
32522 ac_cv_func_finite_in_ieeefp_h=yes
32523else
32524 echo "$as_me: failed program was:" >&5
32525sed 's/^/| /' conftest.$ac_ext >&5
32526
Reid Spencera773bd52006-08-04 18:18:08 +000032527 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032528fi
Reid Spencera773bd52006-08-04 18:18:08 +000032529
32530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032531 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032532ac_cpp='$CPP $CPPFLAGS'
32533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535ac_compiler_gnu=$ac_cv_c_compiler_gnu
32536
32537fi
Reid Spencera773bd52006-08-04 18:18:08 +000032538{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32539echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032540
Brian Gaeke6802b552004-10-28 05:06:45 +000032541if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032542
32543cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032544#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032545_ACEOF
32546
Reid Spencerabec8f92004-10-27 23:03:44 +000032547fi
32548
32549
32550
John Criswell7a73b802003-06-30 21:59:07 +000032551
32552
32553for ac_header in stdlib.h unistd.h
32554do
32555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032560 echo $ECHO_N "(cached) $ECHO_C" >&6
32561fi
Reid Spencera773bd52006-08-04 18:18:08 +000032562ac_res=`eval echo '${'$as_ac_Header'}'`
32563 { echo "$as_me:$LINENO: result: $ac_res" >&5
32564echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032565else
32566 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032567{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032569cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032570/* confdefs.h. */
32571_ACEOF
32572cat confdefs.h >>conftest.$ac_ext
32573cat >>conftest.$ac_ext <<_ACEOF
32574/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032575$ac_includes_default
32576#include <$ac_header>
32577_ACEOF
32578rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032579if { (ac_try="$ac_compile"
32580case "(($ac_try" in
32581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32583esac
32584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032586 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032587 grep -v '^ *+' conftest.er1 >conftest.err
32588 rm -f conftest.er1
32589 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32593 { (case "(($ac_try" in
32594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32595 *) ac_try_echo=$ac_try;;
32596esac
32597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32598 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032599 ac_status=$?
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; } &&
32602 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032603 { (case "(($ac_try" in
32604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32605 *) ac_try_echo=$ac_try;;
32606esac
32607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32608 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032609 ac_status=$?
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); }; }; then
32612 ac_header_compiler=yes
32613else
32614 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032615sed 's/^/| /' conftest.$ac_ext >&5
32616
Reid Spencera773bd52006-08-04 18:18:08 +000032617 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032618fi
Reid Spencera773bd52006-08-04 18:18:08 +000032619
32620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32621{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32622echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032623
32624# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032625{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032627cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032628/* confdefs.h. */
32629_ACEOF
32630cat confdefs.h >>conftest.$ac_ext
32631cat >>conftest.$ac_ext <<_ACEOF
32632/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032633#include <$ac_header>
32634_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032635if { (ac_try="$ac_cpp conftest.$ac_ext"
32636case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32639esac
32640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032642 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032643 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032644 rm -f conftest.er1
32645 cat conftest.err >&5
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); } >/dev/null; then
32648 if test -s conftest.err; then
32649 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032651 else
32652 ac_cpp_err=
32653 fi
32654else
32655 ac_cpp_err=yes
32656fi
32657if test -z "$ac_cpp_err"; then
32658 ac_header_preproc=yes
32659else
32660 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032661sed 's/^/| /' conftest.$ac_ext >&5
32662
John Criswell7a73b802003-06-30 21:59:07 +000032663 ac_header_preproc=no
32664fi
Reid Spencera773bd52006-08-04 18:18:08 +000032665
John Criswell7a73b802003-06-30 21:59:07 +000032666rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32668echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032669
32670# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32672 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32677 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032678 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032679 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032692 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032693## ----------------------------------- ##
32694## Report this to llvmbugs@cs.uiuc.edu ##
32695## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032696_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032697 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032698 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032699esac
Reid Spencera773bd52006-08-04 18:18:08 +000032700{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032703 echo $ECHO_N "(cached) $ECHO_C" >&6
32704else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032705 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032706fi
Reid Spencera773bd52006-08-04 18:18:08 +000032707ac_res=`eval echo '${'$as_ac_Header'}'`
32708 { echo "$as_me:$LINENO: result: $ac_res" >&5
32709echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032710
32711fi
32712if test `eval echo '${'$as_ac_Header'}'` = yes; then
32713 cat >>confdefs.h <<_ACEOF
32714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32715_ACEOF
32716
32717fi
32718
32719done
32720
32721
32722for ac_func in getpagesize
32723do
32724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032725{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32727if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032728 echo $ECHO_N "(cached) $ECHO_C" >&6
32729else
32730 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032731/* confdefs.h. */
32732_ACEOF
32733cat confdefs.h >>conftest.$ac_ext
32734cat >>conftest.$ac_ext <<_ACEOF
32735/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32738#define $ac_func innocuous_$ac_func
32739
John Criswell7a73b802003-06-30 21:59:07 +000032740/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000032741 which can conflict with char $ac_func (); below.
32742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32743 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032744
John Criswell0c38eaf2003-09-10 15:17:25 +000032745#ifdef __STDC__
32746# include <limits.h>
32747#else
32748# include <assert.h>
32749#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000032750
32751#undef $ac_func
32752
Reid Spencera773bd52006-08-04 18:18:08 +000032753/* Override any GCC internal prototype to avoid an error.
32754 Use char because int might match the return type of a GCC
32755 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000032756#ifdef __cplusplus
32757extern "C"
32758#endif
John Criswell7a73b802003-06-30 21:59:07 +000032759char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032760/* The GNU C library defines this for functions which it implements
32761 to always fail with ENOSYS. Some functions are actually named
32762 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032763#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000032764choke me
John Criswell7a73b802003-06-30 21:59:07 +000032765#endif
32766
John Criswell0c38eaf2003-09-10 15:17:25 +000032767int
32768main ()
32769{
Reid Spencera773bd52006-08-04 18:18:08 +000032770return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032771 ;
32772 return 0;
32773}
32774_ACEOF
32775rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032776if { (ac_try="$ac_link"
32777case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32780esac
32781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032783 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032784 grep -v '^ *+' conftest.er1 >conftest.err
32785 rm -f conftest.er1
32786 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32803esac
32804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 eval "$as_ac_var=yes"
32810else
32811 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032812sed 's/^/| /' conftest.$ac_ext >&5
32813
Reid Spencera773bd52006-08-04 18:18:08 +000032814 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032815fi
Reid Spencera773bd52006-08-04 18:18:08 +000032816
32817rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032818 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032819fi
Reid Spencera773bd52006-08-04 18:18:08 +000032820ac_res=`eval echo '${'$as_ac_var'}'`
32821 { echo "$as_me:$LINENO: result: $ac_res" >&5
32822echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032823if test `eval echo '${'$as_ac_var'}'` = yes; then
32824 cat >>confdefs.h <<_ACEOF
32825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32826_ACEOF
32827
32828fi
32829done
32830
Reid Spencera773bd52006-08-04 18:18:08 +000032831{ echo "$as_me:$LINENO: checking for working mmap" >&5
32832echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032833if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32834 echo $ECHO_N "(cached) $ECHO_C" >&6
32835else
32836 if test "$cross_compiling" = yes; then
32837 ac_cv_func_mmap_fixed_mapped=no
32838else
32839 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032840/* confdefs.h. */
32841_ACEOF
32842cat confdefs.h >>conftest.$ac_ext
32843cat >>conftest.$ac_ext <<_ACEOF
32844/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032845$ac_includes_default
32846/* malloc might have been renamed as rpl_malloc. */
32847#undef malloc
32848
32849/* Thanks to Mike Haertel and Jim Avera for this test.
32850 Here is a matrix of mmap possibilities:
32851 mmap private not fixed
32852 mmap private fixed at somewhere currently unmapped
32853 mmap private fixed at somewhere already mapped
32854 mmap shared not fixed
32855 mmap shared fixed at somewhere currently unmapped
32856 mmap shared fixed at somewhere already mapped
32857 For private mappings, we should verify that changes cannot be read()
32858 back from the file, nor mmap's back from the file at a different
32859 address. (There have been systems where private was not correctly
32860 implemented like the infamous i386 svr4.0, and systems where the
32861 VM page cache was not coherent with the file system buffer cache
32862 like early versions of FreeBSD and possibly contemporary NetBSD.)
32863 For shared mappings, we should conversely verify that changes get
32864 propagated back to all the places they're supposed to be.
32865
32866 Grep wants private fixed already mapped.
32867 The main things grep needs to know about mmap are:
32868 * does it exist and is it safe to write into the mmap'd area
32869 * how to use it (BSD variants) */
32870
32871#include <fcntl.h>
32872#include <sys/mman.h>
32873
32874#if !STDC_HEADERS && !HAVE_STDLIB_H
32875char *malloc ();
32876#endif
32877
32878/* This mess was copied from the GNU getpagesize.h. */
32879#if !HAVE_GETPAGESIZE
32880/* Assume that all systems that can run configure have sys/param.h. */
32881# if !HAVE_SYS_PARAM_H
32882# define HAVE_SYS_PARAM_H 1
32883# endif
32884
32885# ifdef _SC_PAGESIZE
32886# define getpagesize() sysconf(_SC_PAGESIZE)
32887# else /* no _SC_PAGESIZE */
32888# if HAVE_SYS_PARAM_H
32889# include <sys/param.h>
32890# ifdef EXEC_PAGESIZE
32891# define getpagesize() EXEC_PAGESIZE
32892# else /* no EXEC_PAGESIZE */
32893# ifdef NBPG
32894# define getpagesize() NBPG * CLSIZE
32895# ifndef CLSIZE
32896# define CLSIZE 1
32897# endif /* no CLSIZE */
32898# else /* no NBPG */
32899# ifdef NBPC
32900# define getpagesize() NBPC
32901# else /* no NBPC */
32902# ifdef PAGESIZE
32903# define getpagesize() PAGESIZE
32904# endif /* PAGESIZE */
32905# endif /* no NBPC */
32906# endif /* no NBPG */
32907# endif /* no EXEC_PAGESIZE */
32908# else /* no HAVE_SYS_PARAM_H */
32909# define getpagesize() 8192 /* punt totally */
32910# endif /* no HAVE_SYS_PARAM_H */
32911# endif /* no _SC_PAGESIZE */
32912
32913#endif /* no HAVE_GETPAGESIZE */
32914
32915int
32916main ()
32917{
32918 char *data, *data2, *data3;
32919 int i, pagesize;
32920 int fd;
32921
32922 pagesize = getpagesize ();
32923
32924 /* First, make a file with some known garbage in it. */
32925 data = (char *) malloc (pagesize);
32926 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000032927 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032928 for (i = 0; i < pagesize; ++i)
32929 *(data + i) = rand ();
32930 umask (0);
32931 fd = creat ("conftest.mmap", 0600);
32932 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032933 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032934 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032935 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032936 close (fd);
32937
32938 /* Next, try to mmap the file at a fixed address which already has
32939 something else allocated at it. If we can, also make sure that
32940 we see the same garbage. */
32941 fd = open ("conftest.mmap", O_RDWR);
32942 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032943 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032944 data2 = (char *) malloc (2 * pagesize);
32945 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000032946 return 1;
32947 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000032948 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000032949 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000032950 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032951 for (i = 0; i < pagesize; ++i)
32952 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032953 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032954
32955 /* Finally, make sure that changes to the mapped area do not
32956 percolate back to the file as seen by read(). (This is a bug on
32957 some variants of i386 svr4.0.) */
32958 for (i = 0; i < pagesize; ++i)
32959 *(data2 + i) = *(data2 + i) + 1;
32960 data3 = (char *) malloc (pagesize);
32961 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000032962 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032963 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032964 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032965 for (i = 0; i < pagesize; ++i)
32966 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032967 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032968 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000032969 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032970}
32971_ACEOF
32972rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032973if { (ac_try="$ac_link"
32974case "(($ac_try" in
32975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976 *) ac_try_echo=$ac_try;;
32977esac
32978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032983 { (case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32986esac
32987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; }; then
32992 ac_cv_func_mmap_fixed_mapped=yes
32993else
32994 echo "$as_me: program exited with status $ac_status" >&5
32995echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032996sed 's/^/| /' conftest.$ac_ext >&5
32997
John Criswell7a73b802003-06-30 21:59:07 +000032998( exit $ac_status )
32999ac_cv_func_mmap_fixed_mapped=no
33000fi
Reid Spencera773bd52006-08-04 18:18:08 +000033001rm -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 +000033002fi
Reid Spencera773bd52006-08-04 18:18:08 +000033003
33004
John Criswell7a73b802003-06-30 21:59:07 +000033005fi
Reid Spencera773bd52006-08-04 18:18:08 +000033006{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33007echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033008if test $ac_cv_func_mmap_fixed_mapped = yes; then
33009
33010cat >>confdefs.h <<\_ACEOF
33011#define HAVE_MMAP 1
33012_ACEOF
33013
33014fi
33015rm -f conftest.mmap
33016
Reid Spencera773bd52006-08-04 18:18:08 +000033017{ echo "$as_me:$LINENO: checking for mmap of files" >&5
33018echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033019if test "${ac_cv_func_mmap_file+set}" = set; then
33020 echo $ECHO_N "(cached) $ECHO_C" >&6
33021else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033022 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033023ac_cpp='$CPP $CPPFLAGS'
33024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33026ac_compiler_gnu=$ac_cv_c_compiler_gnu
33027
33028 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033029 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033030else
33031 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033032
Reid Spencer777ce172004-09-20 04:09:56 +000033033 /* confdefs.h. */
33034_ACEOF
33035cat confdefs.h >>conftest.$ac_ext
33036cat >>conftest.$ac_ext <<_ACEOF
33037/* end confdefs.h. */
33038
John Criswell7a73b802003-06-30 21:59:07 +000033039#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033040#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033041#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033042
33043int
33044main ()
33045{
John Criswell7a73b802003-06-30 21:59:07 +000033046
33047 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033048 fd = creat ("foo",0777);
33049 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33050 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033051 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033052 ;
33053 return 0;
33054}
John Criswell7a73b802003-06-30 21:59:07 +000033055_ACEOF
33056rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033057if { (ac_try="$ac_link"
33058case "(($ac_try" in
33059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060 *) ac_try_echo=$ac_try;;
33061esac
33062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033064 ac_status=$?
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033067 { (case "(($ac_try" in
33068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069 *) ac_try_echo=$ac_try;;
33070esac
33071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33072 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033073 ac_status=$?
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); }; }; then
33076 ac_cv_func_mmap_file=yes
33077else
33078 echo "$as_me: program exited with status $ac_status" >&5
33079echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033080sed 's/^/| /' conftest.$ac_ext >&5
33081
John Criswell7a73b802003-06-30 21:59:07 +000033082( exit $ac_status )
33083ac_cv_func_mmap_file=no
33084fi
Reid Spencera773bd52006-08-04 18:18:08 +000033085rm -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 +000033086fi
Reid Spencera773bd52006-08-04 18:18:08 +000033087
33088
John Criswell7a73b802003-06-30 21:59:07 +000033089 ac_ext=c
33090ac_cpp='$CPP $CPPFLAGS'
33091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093ac_compiler_gnu=$ac_cv_c_compiler_gnu
33094
33095
33096fi
Reid Spencera773bd52006-08-04 18:18:08 +000033097{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33098echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033099if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033100
33101cat >>confdefs.h <<\_ACEOF
33102#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033103_ACEOF
33104
33105 MMAP_FILE=yes
33106
33107fi
33108
Reid Spencera773bd52006-08-04 18:18:08 +000033109{ echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33110echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033111if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33112 echo $ECHO_N "(cached) $ECHO_C" >&6
33113else
Reid Spencer582a23c2004-12-29 07:07:57 +000033114 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033115 ac_cv_need_dev_zero_for_mmap=yes
33116 else
33117 ac_cv_need_dev_zero_for_mmap=no
33118 fi
33119
33120fi
Reid Spencera773bd52006-08-04 18:18:08 +000033121{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33122echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033123if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33124
33125cat >>confdefs.h <<\_ACEOF
33126#define NEED_DEV_ZERO_FOR_MMAP 1
33127_ACEOF
33128
33129fi
Reid Spencera773bd52006-08-04 18:18:08 +000033130{ echo "$as_me:$LINENO: checking for mprotect" >&5
33131echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033132if test "${ac_cv_func_mprotect+set}" = set; then
33133 echo $ECHO_N "(cached) $ECHO_C" >&6
33134else
33135 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033136/* confdefs.h. */
33137_ACEOF
33138cat confdefs.h >>conftest.$ac_ext
33139cat >>conftest.$ac_ext <<_ACEOF
33140/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033141/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33143#define mprotect innocuous_mprotect
33144
John Criswell7a73b802003-06-30 21:59:07 +000033145/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033146 which can conflict with char mprotect (); below.
33147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33148 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033149
John Criswell0c38eaf2003-09-10 15:17:25 +000033150#ifdef __STDC__
33151# include <limits.h>
33152#else
33153# include <assert.h>
33154#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033155
33156#undef mprotect
33157
Reid Spencera773bd52006-08-04 18:18:08 +000033158/* Override any GCC internal prototype to avoid an error.
33159 Use char because int might match the return type of a GCC
33160 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033161#ifdef __cplusplus
33162extern "C"
33163#endif
John Criswell7a73b802003-06-30 21:59:07 +000033164char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033165/* The GNU C library defines this for functions which it implements
33166 to always fail with ENOSYS. Some functions are actually named
33167 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033168#if defined __stub_mprotect || defined __stub___mprotect
John Criswell7a73b802003-06-30 21:59:07 +000033169choke me
John Criswell7a73b802003-06-30 21:59:07 +000033170#endif
33171
John Criswell0c38eaf2003-09-10 15:17:25 +000033172int
33173main ()
33174{
Reid Spencera773bd52006-08-04 18:18:08 +000033175return mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033176 ;
33177 return 0;
33178}
33179_ACEOF
33180rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033181if { (ac_try="$ac_link"
33182case "(($ac_try" in
33183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184 *) ac_try_echo=$ac_try;;
33185esac
33186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033188 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033189 grep -v '^ *+' conftest.er1 >conftest.err
33190 rm -f conftest.er1
33191 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33195 { (case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33198esac
33199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033201 ac_status=$?
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; } &&
33204 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033205 { (case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33208esac
33209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033211 ac_status=$?
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; }; then
33214 ac_cv_func_mprotect=yes
33215else
33216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033217sed 's/^/| /' conftest.$ac_ext >&5
33218
Reid Spencera773bd52006-08-04 18:18:08 +000033219 ac_cv_func_mprotect=no
John Criswell7a73b802003-06-30 21:59:07 +000033220fi
Reid Spencera773bd52006-08-04 18:18:08 +000033221
33222rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033223 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033224fi
Reid Spencera773bd52006-08-04 18:18:08 +000033225{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33226echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033227if test $ac_cv_func_mprotect = yes; then
33228 :
33229else
33230 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33231echo "$as_me: error: Function mprotect() required but not found" >&2;}
33232 { (exit 1); exit 1; }; }
33233fi
33234
33235
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033236if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033237then
Reid Spencer582a23c2004-12-29 07:07:57 +000033238 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33239echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033240fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033241if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033242then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033243 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33244echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033245fi
John Criswell7a73b802003-06-30 21:59:07 +000033246
33247
Reid Spencera773bd52006-08-04 18:18:08 +000033248{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33249echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033250if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33251 echo $ECHO_N "(cached) $ECHO_C" >&6
33252else
33253 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033254if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033255 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033256 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033257 if test $? -eq 0 ; then
33258 llvm_cv_llvmgcc_sanity="yes"
33259 fi
33260 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033261fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033262fi
Reid Spencera773bd52006-08-04 18:18:08 +000033263{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33264echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033265
33266if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033267 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033268 LLVMCC1=$llvmcc1path
33269
Reid Spencer502935f2004-12-22 05:56:56 +000033270 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033271 LLVMCC1PLUS=$llvmcc1pluspath
33272
Reid Spencer502935f2004-12-22 05:56:56 +000033273 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33274 LLVMGCCDIR=$llvmgccdir
33275
Reid Spencerb5d75b82006-05-09 00:31:01 +000033276 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033277 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33278 LLVMGCC_VERSION=$llvmgccversion
33279
33280 LLVMGCC_MAJVERS=$llvmgccmajvers
33281
Brian Gaekef3b24102003-11-16 18:38:14 +000033282fi
33283
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033284SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033285
33286
Reid Spencere9de0912004-08-20 09:03:57 +000033287# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033288# information into substitutions that will end up in Makefile.config.in
33289# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000033290if test "${prefix}" == "NONE" ; then
33291 prefix="/usr/local"
33292fi
Reid Spencere9de0912004-08-20 09:03:57 +000033293eval LLVM_PREFIX="${prefix}";
33294eval LLVM_BINDIR="${prefix}/bin";
33295eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033296eval LLVM_DATADIR="${prefix}/share/llvm";
33297eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33298eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033299eval LLVM_INCLUDEDIR="${prefix}/include";
33300eval LLVM_INFODIR="${prefix}/info";
33301eval LLVM_MANDIR="${prefix}/man";
33302LLVM_CONFIGTIME=`date`
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033314# Place the various directores into the config.h file as #defines so that we
33315# can know about the installation paths within LLVM.
33316
Reid Spencere9de0912004-08-20 09:03:57 +000033317cat >>confdefs.h <<_ACEOF
33318#define LLVM_PREFIX "$LLVM_PREFIX"
33319_ACEOF
33320
33321
33322cat >>confdefs.h <<_ACEOF
33323#define LLVM_BINDIR "$LLVM_BINDIR"
33324_ACEOF
33325
33326
33327cat >>confdefs.h <<_ACEOF
33328#define LLVM_LIBDIR "$LLVM_LIBDIR"
33329_ACEOF
33330
33331
33332cat >>confdefs.h <<_ACEOF
33333#define LLVM_DATADIR "$LLVM_DATADIR"
33334_ACEOF
33335
33336
33337cat >>confdefs.h <<_ACEOF
33338#define LLVM_DATADIR "$LLVM_DOCSDIR"
33339_ACEOF
33340
33341
33342cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033343#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033344_ACEOF
33345
33346
33347cat >>confdefs.h <<_ACEOF
33348#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33349_ACEOF
33350
33351
33352cat >>confdefs.h <<_ACEOF
33353#define LLVM_INFODIR "$LLVM_INFODIR"
33354_ACEOF
33355
33356
33357cat >>confdefs.h <<_ACEOF
33358#define LLVM_MANDIR "$LLVM_MANDIR"
33359_ACEOF
33360
33361
33362cat >>confdefs.h <<_ACEOF
33363#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33364_ACEOF
33365
33366
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033367
Reid Spencera773bd52006-08-04 18:18:08 +000033368ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033369
Reid Spencera773bd52006-08-04 18:18:08 +000033370ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033371
Reid Spencera773bd52006-08-04 18:18:08 +000033372ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033373
Reid Spencera773bd52006-08-04 18:18:08 +000033374ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033375
Reid Spencera773bd52006-08-04 18:18:08 +000033376ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033377
33378
Reid Spencera773bd52006-08-04 18:18:08 +000033379ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033380
33381
Reid Spencerea949cf2006-08-16 00:45:38 +000033382ac_config_files="$ac_config_files llvm.spec"
33383
33384
Reid Spencera773bd52006-08-04 18:18:08 +000033385ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033386
33387
Reid Spencera773bd52006-08-04 18:18:08 +000033388ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033389
33390
Reid Spencera773bd52006-08-04 18:18:08 +000033391ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033392
Reid Spencera773bd52006-08-04 18:18:08 +000033393ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033394
33395
Reid Spencera773bd52006-08-04 18:18:08 +000033396ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033397
33398
Reid Spencera773bd52006-08-04 18:18:08 +000033399ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033400
33401
Reid Spencera773bd52006-08-04 18:18:08 +000033402ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033403
33404
Reid Spencera773bd52006-08-04 18:18:08 +000033405ac_config_commands="$ac_config_commands runtime/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033406
33407
Reid Spencera773bd52006-08-04 18:18:08 +000033408ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033409
33410
Reid Spencera773bd52006-08-04 18:18:08 +000033411ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033412
33413
Reid Spencera773bd52006-08-04 18:18:08 +000033414ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033415
33416
Reid Spencera773bd52006-08-04 18:18:08 +000033417ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033418
33419
Reid Spencera773bd52006-08-04 18:18:08 +000033420ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033421
33422
33423
John Criswell7a73b802003-06-30 21:59:07 +000033424cat >confcache <<\_ACEOF
33425# This file is a shell script that caches the results of configure
33426# tests run on this system so they can be shared between configure
33427# scripts and configure runs, see configure's option --config-cache.
33428# It is not useful on other systems. If it contains results you don't
33429# want to keep, you may remove or edit it.
33430#
33431# config.status only pays attention to the cache file if you give it
33432# the --recheck option to rerun configure.
33433#
John Criswell0c38eaf2003-09-10 15:17:25 +000033434# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033435# loading this file, other *unset* `ac_cv_foo' will be assigned the
33436# following values.
33437
33438_ACEOF
33439
33440# The following way of writing the cache mishandles newlines in values,
33441# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033442# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033443# Ultrix sh set writes to stderr and can't be redirected directly,
33444# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033445(
33446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33447 eval ac_val=\$$ac_var
33448 case $ac_val in #(
33449 *${as_nl}*)
33450 case $ac_var in #(
33451 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33452echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33453 esac
33454 case $ac_var in #(
33455 _ | IFS | as_nl) ;; #(
33456 *) $as_unset $ac_var ;;
33457 esac ;;
33458 esac
33459 done
33460
John Criswell7a73b802003-06-30 21:59:07 +000033461 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033462 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33463 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033464 # `set' does not quote correctly, so add quotes (double-quote
33465 # substitution turns \\\\ into \\, and sed turns \\ into \).
33466 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033467 "s/'/'\\\\''/g;
33468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033469 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033470 *)
33471 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033473 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033474 esac |
33475 sort
33476) |
John Criswell7a73b802003-06-30 21:59:07 +000033477 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033478 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033479 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033480 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33482 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33484 :end' >>confcache
33485if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33486 if test -w "$cache_file"; then
33487 test "x$cache_file" != "x/dev/null" &&
33488 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33489echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033490 cat confcache >$cache_file
33491 else
Reid Spencera773bd52006-08-04 18:18:08 +000033492 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33493echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033494 fi
33495fi
33496rm -f confcache
33497
33498test "x$prefix" = xNONE && prefix=$ac_default_prefix
33499# Let make expand exec_prefix.
33500test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33501
John Criswell7a73b802003-06-30 21:59:07 +000033502DEFS=-DHAVE_CONFIG_H
33503
John Criswell0c38eaf2003-09-10 15:17:25 +000033504ac_libobjs=
33505ac_ltlibobjs=
33506for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33507 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033508 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33509 ac_i=`echo "$ac_i" | sed "$ac_script"`
33510 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33511 # will be set to the directory where LIBOBJS objects are built.
33512 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33513 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033514done
33515LIBOBJS=$ac_libobjs
33516
33517LTLIBOBJS=$ac_ltlibobjs
33518
33519
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033520if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33521 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33522Usually this means the macro was only invoked conditionally." >&5
33523echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33524Usually this means the macro was only invoked conditionally." >&2;}
33525 { (exit 1); exit 1; }; }
33526fi
33527if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33528 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33529Usually this means the macro was only invoked conditionally." >&5
33530echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33531Usually this means the macro was only invoked conditionally." >&2;}
33532 { (exit 1); exit 1; }; }
33533fi
John Criswell7a73b802003-06-30 21:59:07 +000033534
33535: ${CONFIG_STATUS=./config.status}
33536ac_clean_files_save=$ac_clean_files
33537ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33538{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33539echo "$as_me: creating $CONFIG_STATUS" >&6;}
33540cat >$CONFIG_STATUS <<_ACEOF
33541#! $SHELL
33542# Generated by $as_me.
33543# Run this file to recreate the current configuration.
33544# Compiler output produced by configure, useful for debugging
33545# configure, is in config.log if it exists.
33546
33547debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033548ac_cs_recheck=false
33549ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033550SHELL=\${CONFIG_SHELL-$SHELL}
33551_ACEOF
33552
33553cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033554## --------------------- ##
33555## M4sh Initialization. ##
33556## --------------------- ##
33557
33558# Be Bourne compatible
33559if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33560 emulate sh
33561 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033562 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33563 # is contrary to our usage. Disable this feature.
33564 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033565 setopt NO_GLOB_SUBST
33566else
33567 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033568fi
Reid Spencera773bd52006-08-04 18:18:08 +000033569BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033570DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033571
John Criswell7a73b802003-06-30 21:59:07 +000033572
Reid Spencera773bd52006-08-04 18:18:08 +000033573# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033574# Avoid depending upon Character Ranges.
33575as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33576as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33577as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33578as_cr_digits='0123456789'
33579as_cr_alnum=$as_cr_Letters$as_cr_digits
33580
33581# The user is always right.
33582if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033583 echo "#! /bin/sh" >conf$$.sh
33584 echo "exit 0" >>conf$$.sh
33585 chmod +x conf$$.sh
33586 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033587 PATH_SEPARATOR=';'
33588 else
33589 PATH_SEPARATOR=:
33590 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033591 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033592fi
33593
Reid Spencera773bd52006-08-04 18:18:08 +000033594# Support unset when possible.
33595if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33596 as_unset=unset
33597else
33598 as_unset=false
33599fi
John Criswell7a73b802003-06-30 21:59:07 +000033600
Reid Spencera773bd52006-08-04 18:18:08 +000033601
33602# IFS
33603# We need space, tab and new line, in precisely that order. Quoting is
33604# there to prevent editors from complaining about space-tab.
33605# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33606# splitting by setting IFS to empty value.)
33607as_nl='
33608'
33609IFS=" "" $as_nl"
33610
33611# Find who we are. Look in the path if we contain no directory separator.
33612case $0 in
33613 *[\\/]* ) as_myself=$0 ;;
33614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033615for as_dir in $PATH
33616do
33617 IFS=$as_save_IFS
33618 test -z "$as_dir" && as_dir=.
33619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33620done
Reid Spencera773bd52006-08-04 18:18:08 +000033621IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033622
Reid Spencera773bd52006-08-04 18:18:08 +000033623 ;;
33624esac
33625# We did not find ourselves, most probably we were run as `sh COMMAND'
33626# in which case we are not to be found in the path.
33627if test "x$as_myself" = x; then
33628 as_myself=$0
33629fi
33630if test ! -f "$as_myself"; then
33631 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33632 { (exit 1); exit 1; }
33633fi
33634
33635# Work around bugs in pre-3.0 UWIN ksh.
33636for as_var in ENV MAIL MAILPATH
33637do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33638done
33639PS1='$ '
33640PS2='> '
33641PS4='+ '
33642
33643# NLS nuisances.
33644for as_var in \
33645 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33646 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33647 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033648do
Reid Spencera773bd52006-08-04 18:18:08 +000033649 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33650 eval $as_var=C; export $as_var
33651 else
33652 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33653 fi
33654done
33655
33656# Required to use basename.
33657if expr a : '\(a\)' >/dev/null 2>&1 &&
33658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33659 as_expr=expr
33660else
33661 as_expr=false
33662fi
33663
33664if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33665 as_basename=basename
33666else
33667 as_basename=false
33668fi
33669
33670
33671# Name of the executable.
33672as_me=`$as_basename -- "$0" ||
33673$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33674 X"$0" : 'X\(//\)$' \| \
33675 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33676echo X/"$0" |
33677 sed '/^.*\/\([^/][^/]*\)\/*$/{
33678 s//\1/
33679 q
33680 }
33681 /^X\/\(\/\/\)$/{
33682 s//\1/
33683 q
33684 }
33685 /^X\/\(\/\).*/{
33686 s//\1/
33687 q
33688 }
33689 s/.*/./; q'`
33690
33691# CDPATH.
33692$as_unset CDPATH
33693
33694
33695
John Criswell7a73b802003-06-30 21:59:07 +000033696 as_lineno_1=$LINENO
33697 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033698 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033699 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033700
33701 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33702 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033703 # line-number line after each line using $LINENO; the second 'sed'
33704 # does the real work. The second script uses 'N' to pair each
33705 # line-number line with the line containing $LINENO, and appends
33706 # trailing '-' during substitution so that $LINENO is not a special
33707 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033708 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033709 # scripts with optimization help from Paolo Bonzini. Blame Lee
33710 # E. McMahon (1931-1989) for sed's syntax. :-)
33711 sed -n '
33712 p
33713 /[$]LINENO/=
33714 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033715 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033716 s/[$]LINENO.*/&-/
33717 t lineno
33718 b
33719 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033720 N
Reid Spencera773bd52006-08-04 18:18:08 +000033721 :loop
33722 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033723 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033724 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033725 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033726 chmod +x "$as_me.lineno" ||
33727 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033728 { (exit 1); exit 1; }; }
33729
33730 # Don't try to exec as it changes $[0], causing all sort of problems
33731 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033732 # original and so on. Autoconf is especially sensitive to this).
33733 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033734 # Exit status is that of the last command.
33735 exit
33736}
33737
33738
Reid Spencera773bd52006-08-04 18:18:08 +000033739if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33740 as_dirname=dirname
33741else
33742 as_dirname=false
33743fi
33744
33745ECHO_C= ECHO_N= ECHO_T=
33746case `echo -n x` in
33747-n*)
33748 case `echo 'x\c'` in
33749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33750 *) ECHO_C='\c';;
33751 esac;;
33752*)
33753 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033754esac
33755
Reid Spencera773bd52006-08-04 18:18:08 +000033756if expr a : '\(a\)' >/dev/null 2>&1 &&
33757 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033758 as_expr=expr
33759else
33760 as_expr=false
33761fi
33762
33763rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033764if test -d conf$$.dir; then
33765 rm -f conf$$.dir/conf$$.file
33766else
33767 rm -f conf$$.dir
33768 mkdir conf$$.dir
33769fi
John Criswell7a73b802003-06-30 21:59:07 +000033770echo >conf$$.file
33771if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033772 as_ln_s='ln -s'
33773 # ... but there are two gotchas:
33774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33776 # In both cases, we have to default to `cp -p'.
33777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033778 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033779elif ln conf$$.file conf$$ 2>/dev/null; then
33780 as_ln_s=ln
33781else
33782 as_ln_s='cp -p'
33783fi
Reid Spencera773bd52006-08-04 18:18:08 +000033784rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33785rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033786
John Criswell0c38eaf2003-09-10 15:17:25 +000033787if mkdir -p . 2>/dev/null; then
33788 as_mkdir_p=:
33789else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033790 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033791 as_mkdir_p=false
33792fi
33793
Reid Spencera773bd52006-08-04 18:18:08 +000033794# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33795# systems may use methods other than mode bits to determine executability.
33796cat >conf$$.file <<_ASEOF
33797#! /bin/sh
33798exit 0
33799_ASEOF
33800chmod +x conf$$.file
33801if test -x conf$$.file >/dev/null 2>&1; then
33802 as_executable_p="test -x"
33803else
33804 as_executable_p=:
33805fi
33806rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033807
33808# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033809as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033810
33811# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033812as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033813
33814
John Criswell7a73b802003-06-30 21:59:07 +000033815exec 6>&1
33816
Reid Spencera773bd52006-08-04 18:18:08 +000033817# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033818# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033819# values after options handling.
33820ac_log="
Reid Spencer1bc68642006-07-27 23:00:30 +000033821This file was extended by llvm $as_me 1.9cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000033822generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033823
33824 CONFIG_FILES = $CONFIG_FILES
33825 CONFIG_HEADERS = $CONFIG_HEADERS
33826 CONFIG_LINKS = $CONFIG_LINKS
33827 CONFIG_COMMANDS = $CONFIG_COMMANDS
33828 $ $0 $@
33829
Reid Spencera773bd52006-08-04 18:18:08 +000033830on `(hostname || uname -n) 2>/dev/null | sed 1q`
33831"
33832
John Criswell7a73b802003-06-30 21:59:07 +000033833_ACEOF
33834
Reid Spencera773bd52006-08-04 18:18:08 +000033835cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033836# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000033837config_files="$ac_config_files"
33838config_headers="$ac_config_headers"
33839config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000033840
Reid Spencera773bd52006-08-04 18:18:08 +000033841_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033842
33843cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033844ac_cs_usage="\
33845\`$as_me' instantiates files from templates according to the
33846current configuration.
33847
33848Usage: $0 [OPTIONS] [FILE]...
33849
33850 -h, --help print this help, then exit
33851 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000033852 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000033853 -d, --debug don't remove temporary files
33854 --recheck update $as_me by reconfiguring in the same conditions
33855 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033856 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000033857 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033858 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000033859
33860Configuration files:
33861$config_files
33862
33863Configuration headers:
33864$config_headers
33865
John Criswellc764fbc2003-09-06 15:17:13 +000033866Configuration commands:
33867$config_commands
33868
John Criswell7a73b802003-06-30 21:59:07 +000033869Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000033870
Reid Spencera773bd52006-08-04 18:18:08 +000033871_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033872cat >>$CONFIG_STATUS <<_ACEOF
33873ac_cs_version="\\
Reid Spencer1bc68642006-07-27 23:00:30 +000033874llvm config.status 1.9cvs
Reid Spencera773bd52006-08-04 18:18:08 +000033875configured by $0, generated by GNU Autoconf 2.60,
33876 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000033877
Reid Spencera773bd52006-08-04 18:18:08 +000033878Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000033879This config.status script is free software; the Free Software Foundation
33880gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000033881
33882ac_pwd='$ac_pwd'
33883srcdir='$srcdir'
33884INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000033885_ACEOF
33886
33887cat >>$CONFIG_STATUS <<\_ACEOF
33888# If no file are specified by the user, then we need to provide default
33889# value. By we need to know if files were specified by the user.
33890ac_need_defaults=:
33891while test $# != 0
33892do
33893 case $1 in
33894 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000033895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000033897 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000033898 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033899 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000033900 ac_option=$1
33901 ac_optarg=$2
33902 ac_shift=shift
33903 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033904 esac
33905
John Criswell0c38eaf2003-09-10 15:17:25 +000033906 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000033907 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000033908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33909 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033910 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33911 echo "$ac_cs_version"; exit ;;
33912 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000033913 debug=: ;;
33914 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000033915 $ac_shift
33916 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033917 ac_need_defaults=false;;
33918 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000033919 $ac_shift
33920 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033921 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000033922 --he | --h)
33923 # Conflict between --help and --header
33924 { echo "$as_me: error: ambiguous option: $1
33925Try \`$0 --help' for more information." >&2
33926 { (exit 1); exit 1; }; };;
33927 --help | --hel | -h )
33928 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000033929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33930 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33931 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000033932
33933 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000033934 -*) { echo "$as_me: error: unrecognized option: $1
33935Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033936 { (exit 1); exit 1; }; } ;;
33937
Reid Spencera773bd52006-08-04 18:18:08 +000033938 *) ac_config_targets="$ac_config_targets $1"
33939 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000033940
33941 esac
33942 shift
33943done
33944
John Criswell0c38eaf2003-09-10 15:17:25 +000033945ac_configure_extra_args=
33946
33947if $ac_cs_silent; then
33948 exec 6>/dev/null
33949 ac_configure_extra_args="$ac_configure_extra_args --silent"
33950fi
33951
33952_ACEOF
33953cat >>$CONFIG_STATUS <<_ACEOF
33954if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000033955 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33956 CONFIG_SHELL=$SHELL
33957 export CONFIG_SHELL
33958 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000033959fi
33960
John Criswell7a73b802003-06-30 21:59:07 +000033961_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033962cat >>$CONFIG_STATUS <<\_ACEOF
33963exec 5>>config.log
33964{
33965 echo
33966 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33967## Running $as_me. ##
33968_ASBOX
33969 echo "$ac_log"
33970} >&5
John Criswell7a73b802003-06-30 21:59:07 +000033971
Reid Spencera773bd52006-08-04 18:18:08 +000033972_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000033973cat >>$CONFIG_STATUS <<_ACEOF
33974#
Reid Spencera773bd52006-08-04 18:18:08 +000033975# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000033976#
Reid Spencerc0682832005-02-24 19:05:19 +000033977llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000033978
33979_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033980
John Criswell7a73b802003-06-30 21:59:07 +000033981cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033982
33983# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000033984for ac_config_target in $ac_config_targets
33985do
Reid Spencera773bd52006-08-04 18:18:08 +000033986 case $ac_config_target in
33987 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33988 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33989 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
33990 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
33991 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
33992 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000033993 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033994 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
33995 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
33996 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
33997 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
33998 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
33999 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34000 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34001 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34002 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34003 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34004 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34005 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34006 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34007
John Criswell7a73b802003-06-30 21:59:07 +000034008 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34009echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34010 { (exit 1); exit 1; }; };;
34011 esac
34012done
34013
Reid Spencera773bd52006-08-04 18:18:08 +000034014
John Criswell7a73b802003-06-30 21:59:07 +000034015# If the user did not use the arguments to specify the items to instantiate,
34016# then the envvar interface is used. Set only those that are not.
34017# We use the long form for the default assignment because of an extremely
34018# bizarre bug on SunOS 4.1.3.
34019if $ac_need_defaults; then
34020 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34021 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034022 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034023fi
34024
John Criswell0c38eaf2003-09-10 15:17:25 +000034025# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034026# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034027# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034028# Hook for its removal unless debugging.
34029# Note that there is a small window in which the directory will not be cleaned:
34030# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034031$debug ||
34032{
Reid Spencera773bd52006-08-04 18:18:08 +000034033 tmp=
34034 trap 'exit_status=$?
34035 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34036' 0
John Criswell7a73b802003-06-30 21:59:07 +000034037 trap '{ (exit 1); exit 1; }' 1 2 13 15
34038}
John Criswell7a73b802003-06-30 21:59:07 +000034039# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034040
John Criswell7a73b802003-06-30 21:59:07 +000034041{
Reid Spencera773bd52006-08-04 18:18:08 +000034042 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034043 test -n "$tmp" && test -d "$tmp"
34044} ||
34045{
Reid Spencera773bd52006-08-04 18:18:08 +000034046 tmp=./conf$$-$RANDOM
34047 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034048} ||
34049{
John Criswell0c38eaf2003-09-10 15:17:25 +000034050 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034051 { (exit 1); exit 1; }
34052}
34053
John Criswell7a73b802003-06-30 21:59:07 +000034054#
Reid Spencera773bd52006-08-04 18:18:08 +000034055# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034056#
34057
34058# No need to generate the scripts if there are no CONFIG_FILES.
34059# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034060if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034061
34062_ACEOF
34063
Reid Spencera773bd52006-08-04 18:18:08 +000034064
34065
34066ac_delim='%!_!# '
34067for ac_last_try in false false false false false :; do
34068 cat >conf$$subs.sed <<_ACEOF
34069SHELL!$SHELL$ac_delim
34070PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34071PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34072PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34073PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34074PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34075PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34076exec_prefix!$exec_prefix$ac_delim
34077prefix!$prefix$ac_delim
34078program_transform_name!$program_transform_name$ac_delim
34079bindir!$bindir$ac_delim
34080sbindir!$sbindir$ac_delim
34081libexecdir!$libexecdir$ac_delim
34082datarootdir!$datarootdir$ac_delim
34083datadir!$datadir$ac_delim
34084sysconfdir!$sysconfdir$ac_delim
34085sharedstatedir!$sharedstatedir$ac_delim
34086localstatedir!$localstatedir$ac_delim
34087includedir!$includedir$ac_delim
34088oldincludedir!$oldincludedir$ac_delim
34089docdir!$docdir$ac_delim
34090infodir!$infodir$ac_delim
34091htmldir!$htmldir$ac_delim
34092dvidir!$dvidir$ac_delim
34093pdfdir!$pdfdir$ac_delim
34094psdir!$psdir$ac_delim
34095libdir!$libdir$ac_delim
34096localedir!$localedir$ac_delim
34097mandir!$mandir$ac_delim
34098DEFS!$DEFS$ac_delim
34099ECHO_C!$ECHO_C$ac_delim
34100ECHO_N!$ECHO_N$ac_delim
34101ECHO_T!$ECHO_T$ac_delim
34102LIBS!$LIBS$ac_delim
34103build_alias!$build_alias$ac_delim
34104host_alias!$host_alias$ac_delim
34105target_alias!$target_alias$ac_delim
34106LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34107subdirs!$subdirs$ac_delim
34108build!$build$ac_delim
34109build_cpu!$build_cpu$ac_delim
34110build_vendor!$build_vendor$ac_delim
34111build_os!$build_os$ac_delim
34112host!$host$ac_delim
34113host_cpu!$host_cpu$ac_delim
34114host_vendor!$host_vendor$ac_delim
34115host_os!$host_os$ac_delim
34116target!$target$ac_delim
34117target_cpu!$target_cpu$ac_delim
34118target_vendor!$target_vendor$ac_delim
34119target_os!$target_os$ac_delim
34120OS!$OS$ac_delim
34121LINKALL!$LINKALL$ac_delim
34122NOLINKALL!$NOLINKALL$ac_delim
34123LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34124LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34125ARCH!$ARCH$ac_delim
34126ENDIAN!$ENDIAN$ac_delim
34127CC!$CC$ac_delim
34128CFLAGS!$CFLAGS$ac_delim
34129LDFLAGS!$LDFLAGS$ac_delim
34130CPPFLAGS!$CPPFLAGS$ac_delim
34131ac_ct_CC!$ac_ct_CC$ac_delim
34132EXEEXT!$EXEEXT$ac_delim
34133OBJEXT!$OBJEXT$ac_delim
34134CPP!$CPP$ac_delim
34135GREP!$GREP$ac_delim
34136EGREP!$EGREP$ac_delim
34137LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34138BUILD_CC!$BUILD_CC$ac_delim
34139BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34140CVSBUILD!$CVSBUILD$ac_delim
34141ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34142DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34143DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34144JIT!$JIT$ac_delim
34145TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34146ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34147ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34148TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34149EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34150CXX!$CXX$ac_delim
34151CXXFLAGS!$CXXFLAGS$ac_delim
34152ac_ct_CXX!$ac_ct_CXX$ac_delim
34153LEX!$LEX$ac_delim
34154LEXLIB!$LEXLIB$ac_delim
34155LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34156FLEX!$FLEX$ac_delim
34157YACC!$YACC$ac_delim
34158YFLAGS!$YFLAGS$ac_delim
34159BISON!$BISON$ac_delim
34160NM!$NM$ac_delim
34161ifGNUmake!$ifGNUmake$ac_delim
34162LN_S!$LN_S$ac_delim
34163CMP!$CMP$ac_delim
34164CP!$CP$ac_delim
34165DATE!$DATE$ac_delim
34166_ACEOF
34167
34168 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34169 break
34170 elif $ac_last_try; then
34171 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34172echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34173 { (exit 1); exit 1; }; }
34174 else
34175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034176 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034177done
34178
34179ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34180if test -n "$ac_eof"; then
34181 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34182 ac_eof=`expr $ac_eof + 1`
34183fi
34184
34185cat >>$CONFIG_STATUS <<_ACEOF
34186cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34188_ACEOF
34189sed '
34190s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34191s/^/s,@/; s/!/@,|#_!!_#|/
34192:n
34193t n
34194s/'"$ac_delim"'$/,g/; t
34195s/$/\\/; p
34196N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34197' >>$CONFIG_STATUS <conf$$subs.sed
34198rm -f conf$$subs.sed
34199cat >>$CONFIG_STATUS <<_ACEOF
34200CEOF$ac_eof
34201_ACEOF
34202
34203
34204ac_delim='%!_!# '
34205for ac_last_try in false false false false false :; do
34206 cat >conf$$subs.sed <<_ACEOF
34207FIND!$FIND$ac_delim
34208MKDIR!$MKDIR$ac_delim
34209MV!$MV$ac_delim
34210RANLIB!$RANLIB$ac_delim
34211RM!$RM$ac_delim
34212SED!$SED$ac_delim
34213TAR!$TAR$ac_delim
34214BINPWD!$BINPWD$ac_delim
34215GRAPHVIZ!$GRAPHVIZ$ac_delim
34216DOT!$DOT$ac_delim
34217GV!$GV$ac_delim
34218DOTTY!$DOTTY$ac_delim
34219PERL!$PERL$ac_delim
34220HAVE_PERL!$HAVE_PERL$ac_delim
34221INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34222INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34223INSTALL_DATA!$INSTALL_DATA$ac_delim
34224BZIP2!$BZIP2$ac_delim
34225DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034226GROFF!$GROFF$ac_delim
34227GZIP!$GZIP$ac_delim
34228POD2HTML!$POD2HTML$ac_delim
34229POD2MAN!$POD2MAN$ac_delim
34230RUNTEST!$RUNTEST$ac_delim
34231TCLSH!$TCLSH$ac_delim
34232ZIP!$ZIP$ac_delim
34233INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34234INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34235CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34236CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34237LIBADD_DL!$LIBADD_DL$ac_delim
34238ECHO!$ECHO$ac_delim
34239AR!$AR$ac_delim
34240STRIP!$STRIP$ac_delim
34241CXXCPP!$CXXCPP$ac_delim
34242F77!$F77$ac_delim
34243FFLAGS!$FFLAGS$ac_delim
34244ac_ct_F77!$ac_ct_F77$ac_delim
34245LIBTOOL!$LIBTOOL$ac_delim
34246ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34247LLVMGCC!$LLVMGCC$ac_delim
34248LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034249HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034250ALLOCA!$ALLOCA$ac_delim
34251MMAP_FILE!$MMAP_FILE$ac_delim
34252LLVMCC1!$LLVMCC1$ac_delim
34253LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34254LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34255LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34256LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34257SHLIBEXT!$SHLIBEXT$ac_delim
34258LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34259LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34260LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34261LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34262LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34263LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34264LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34265LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34266LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34267LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34268LIBOBJS!$LIBOBJS$ac_delim
34269LTLIBOBJS!$LTLIBOBJS$ac_delim
34270_ACEOF
34271
Reid Spencerb2ed05262006-11-03 18:04:08 +000034272 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
Reid Spencera773bd52006-08-04 18:18:08 +000034273 break
34274 elif $ac_last_try; then
34275 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34276echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34277 { (exit 1); exit 1; }; }
34278 else
34279 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34280 fi
34281done
34282
34283ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34284if test -n "$ac_eof"; then
34285 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34286 ac_eof=`expr $ac_eof + 1`
34287fi
34288
34289cat >>$CONFIG_STATUS <<_ACEOF
34290cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34291/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34292_ACEOF
34293sed '
34294s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34295s/^/s,@/; s/!/@,|#_!!_#|/
34296:n
34297t n
34298s/'"$ac_delim"'$/,g/; t
34299s/$/\\/; p
34300N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34301' >>$CONFIG_STATUS <conf$$subs.sed
34302rm -f conf$$subs.sed
34303cat >>$CONFIG_STATUS <<_ACEOF
34304:end
34305s/|#_!!_#|//g
34306CEOF$ac_eof
34307_ACEOF
34308
34309
34310# VPATH may cause trouble with some makes, so we remove $(srcdir),
34311# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34312# trailing colons and then remove the whole line if VPATH becomes empty
34313# (actually we leave an empty line to preserve line numbers).
34314if test "x$srcdir" = x.; then
34315 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34316s/:*\$(srcdir):*/:/
34317s/:*\${srcdir}:*/:/
34318s/:*@srcdir@:*/:/
34319s/^\([^=]*=[ ]*\):*/\1/
34320s/:*$//
34321s/^[^=]*=[ ]*$//
34322}'
34323fi
34324
34325cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034326fi # test -n "$CONFIG_FILES"
34327
Reid Spencera773bd52006-08-04 18:18:08 +000034328
34329for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34330do
34331 case $ac_tag in
34332 :[FHLC]) ac_mode=$ac_tag; continue;;
34333 esac
34334 case $ac_mode$ac_tag in
34335 :[FHL]*:*);;
34336 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34337echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34338 { (exit 1); exit 1; }; };;
34339 :[FH]-) ac_tag=-:-;;
34340 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34341 esac
34342 ac_save_IFS=$IFS
34343 IFS=:
34344 set x $ac_tag
34345 IFS=$ac_save_IFS
34346 shift
34347 ac_file=$1
34348 shift
34349
34350 case $ac_mode in
34351 :L) ac_source=$1;;
34352 :[FH])
34353 ac_file_inputs=
34354 for ac_f
34355 do
34356 case $ac_f in
34357 -) ac_f="$tmp/stdin";;
34358 *) # Look for the file first in the build tree, then in the source tree
34359 # (if the path is not absolute). The absolute path cannot be DOS-style,
34360 # because $ac_f cannot contain `:'.
34361 test -f "$ac_f" ||
34362 case $ac_f in
34363 [\\/$]*) false;;
34364 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34365 esac ||
34366 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34367echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34368 { (exit 1); exit 1; }; };;
34369 esac
34370 ac_file_inputs="$ac_file_inputs $ac_f"
34371 done
34372
34373 # Let's still pretend it is `configure' which instantiates (i.e., don't
34374 # use $as_me), people would be surprised to read:
34375 # /* config.h. Generated by config.status. */
34376 configure_input="Generated from "`IFS=:
34377 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34378 if test x"$ac_file" != x-; then
34379 configure_input="$ac_file. $configure_input"
34380 { echo "$as_me:$LINENO: creating $ac_file" >&5
34381echo "$as_me: creating $ac_file" >&6;}
34382 fi
34383
34384 case $ac_tag in
34385 *:-:* | *:-) cat >"$tmp/stdin";;
34386 esac
34387 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034388 esac
34389
Reid Spencera773bd52006-08-04 18:18:08 +000034390 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034391$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034392 X"$ac_file" : 'X\(//\)[^/]' \| \
34393 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034394 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034395echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34397 s//\1/
34398 q
34399 }
34400 /^X\(\/\/\)[^/].*/{
34401 s//\1/
34402 q
34403 }
34404 /^X\(\/\/\)$/{
34405 s//\1/
34406 q
34407 }
34408 /^X\(\/\).*/{
34409 s//\1/
34410 q
34411 }
34412 s/.*/./; q'`
34413 { as_dir="$ac_dir"
34414 case $as_dir in #(
34415 -*) as_dir=./$as_dir;;
34416 esac
34417 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034418 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034419 while :; do
34420 case $as_dir in #(
34421 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34422 *) as_qdir=$as_dir;;
34423 esac
34424 as_dirs="'$as_qdir' $as_dirs"
34425 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034426$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034427 X"$as_dir" : 'X\(//\)[^/]' \| \
34428 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034429 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034430echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34432 s//\1/
34433 q
34434 }
34435 /^X\(\/\/\)[^/].*/{
34436 s//\1/
34437 q
34438 }
34439 /^X\(\/\/\)$/{
34440 s//\1/
34441 q
34442 }
34443 /^X\(\/\).*/{
34444 s//\1/
34445 q
34446 }
34447 s/.*/./; q'`
34448 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034449 done
Reid Spencera773bd52006-08-04 18:18:08 +000034450 test -z "$as_dirs" || eval "mkdir $as_dirs"
34451 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34452echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034453 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034454 ac_builddir=.
34455
Reid Spencera773bd52006-08-04 18:18:08 +000034456case "$ac_dir" in
34457.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34458*)
John Criswell7a73b802003-06-30 21:59:07 +000034459 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034460 # A ".." for each directory in $ac_dir_suffix.
34461 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34462 case $ac_top_builddir_sub in
34463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34465 esac ;;
34466esac
34467ac_abs_top_builddir=$ac_pwd
34468ac_abs_builddir=$ac_pwd$ac_dir_suffix
34469# for backward compatibility:
34470ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034471
34472case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034473 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034474 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034475 ac_top_srcdir=$ac_top_builddir_sub
34476 ac_abs_top_srcdir=$ac_pwd ;;
34477 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034478 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034479 ac_top_srcdir=$srcdir
34480 ac_abs_top_srcdir=$srcdir ;;
34481 *) # Relative name.
34482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34483 ac_top_srcdir=$ac_top_build_prefix$srcdir
34484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034485esac
Reid Spencera773bd52006-08-04 18:18:08 +000034486ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034487
John Criswell7a73b802003-06-30 21:59:07 +000034488
Reid Spencera773bd52006-08-04 18:18:08 +000034489 case $ac_mode in
34490 :F)
34491 #
34492 # CONFIG_FILE
34493 #
John Criswell7a73b802003-06-30 21:59:07 +000034494
34495 case $INSTALL in
34496 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034497 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034498 esac
John Criswell7a73b802003-06-30 21:59:07 +000034499_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034500
34501cat >>$CONFIG_STATUS <<\_ACEOF
34502# If the template does not know about datarootdir, expand it.
34503# FIXME: This hack should be removed a few years after 2.60.
34504ac_datarootdir_hack=; ac_datarootdir_seen=
34505
34506case `sed -n '/datarootdir/ {
34507 p
34508 q
34509}
34510/@datadir@/p
34511/@docdir@/p
34512/@infodir@/p
34513/@localedir@/p
34514/@mandir@/p
34515' $ac_file_inputs` in
34516*datarootdir*) ac_datarootdir_seen=yes;;
34517*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34518 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34519echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34520_ACEOF
34521cat >>$CONFIG_STATUS <<_ACEOF
34522 ac_datarootdir_hack='
34523 s&@datadir@&$datadir&g
34524 s&@docdir@&$docdir&g
34525 s&@infodir@&$infodir&g
34526 s&@localedir@&$localedir&g
34527 s&@mandir@&$mandir&g
34528 s&\\\${datarootdir}&$datarootdir&g' ;;
34529esac
34530_ACEOF
34531
34532# Neutralize VPATH when `$srcdir' = `.'.
34533# Shell code in configure.ac might set extrasub.
34534# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034535cat >>$CONFIG_STATUS <<_ACEOF
34536 sed "$ac_vpsub
34537$extrasub
34538_ACEOF
34539cat >>$CONFIG_STATUS <<\_ACEOF
34540:t
34541/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034542s&@configure_input@&$configure_input&;t t
34543s&@top_builddir@&$ac_top_builddir_sub&;t t
34544s&@srcdir@&$ac_srcdir&;t t
34545s&@abs_srcdir@&$ac_abs_srcdir&;t t
34546s&@top_srcdir@&$ac_top_srcdir&;t t
34547s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34548s&@builddir@&$ac_builddir&;t t
34549s&@abs_builddir@&$ac_abs_builddir&;t t
34550s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34551s&@INSTALL@&$ac_INSTALL&;t t
34552$ac_datarootdir_hack
34553" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034554
Reid Spencera773bd52006-08-04 18:18:08 +000034555test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34556 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34557 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34558 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34559which seems to be undefined. Please make sure it is defined." >&5
34560echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34561which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034562
Reid Spencera773bd52006-08-04 18:18:08 +000034563 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034564 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034565 -) cat "$tmp/out"; rm -f "$tmp/out";;
34566 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034567 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034568 ;;
34569 :H)
34570 #
34571 # CONFIG_HEADER
34572 #
John Criswell7a73b802003-06-30 21:59:07 +000034573_ACEOF
34574
Reid Spencera773bd52006-08-04 18:18:08 +000034575# Transform confdefs.h into a sed script `conftest.defines', that
34576# substitutes the proper values into config.h.in to produce config.h.
34577rm -f conftest.defines conftest.tail
34578# First, append a space to every undef/define line, to ease matching.
34579echo 's/$/ /' >conftest.defines
34580# Then, protect against being on the right side of a sed subst, or in
34581# an unquoted here document, in config.status. If some macros were
34582# called several times there might be several #defines for the same
34583# symbol, which is useless. But do not sort them, since the last
34584# AC_DEFINE must be honored.
34585ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34586# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34587# NAME is the cpp macro being defined, VALUE is the value it is being given.
34588# PARAMS is the parameter list in the macro definition--in most cases, it's
34589# just an empty string.
34590ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34591ac_dB='\\)[ (].*,\\1define\\2'
34592ac_dC=' '
34593ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034594
Reid Spencera773bd52006-08-04 18:18:08 +000034595uniq confdefs.h |
34596 sed -n '
34597 t rset
34598 :rset
34599 s/^[ ]*#[ ]*define[ ][ ]*//
34600 t ok
34601 d
34602 :ok
34603 s/[\\&,]/\\&/g
34604 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34605 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34606 ' >>conftest.defines
34607
34608# Remove the space that was appended to ease matching.
34609# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034610# example, in the case of _POSIX_SOURCE, which is predefined and required
34611# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034612# (The regexp can be short, since the line contains either #define or #undef.)
34613echo 's/ $//
34614s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034615
Reid Spencera773bd52006-08-04 18:18:08 +000034616# Break up conftest.defines:
34617ac_max_sed_lines=50
34618
34619# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34620# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34621# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34622# et cetera.
34623ac_in='$ac_file_inputs'
34624ac_out='"$tmp/out1"'
34625ac_nxt='"$tmp/out2"'
34626
34627while :
John Criswell7a73b802003-06-30 21:59:07 +000034628do
Reid Spencera773bd52006-08-04 18:18:08 +000034629 # Write a here document:
34630 cat >>$CONFIG_STATUS <<_ACEOF
34631 # First, check the format of the line:
34632 cat >"\$tmp/defines.sed" <<\\CEOF
34633/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34634/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34635b
34636:def
34637_ACEOF
34638 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034639 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034640 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34641 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34642 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34643 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034644 rm -f conftest.defines
34645 mv conftest.tail conftest.defines
34646done
Reid Spencera773bd52006-08-04 18:18:08 +000034647rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034648
Reid Spencera773bd52006-08-04 18:18:08 +000034649echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034650cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034651 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034652 echo "/* $configure_input */" >"$tmp/config.h"
34653 cat "$ac_result" >>"$tmp/config.h"
34654 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034655 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34656echo "$as_me: $ac_file is unchanged" >&6;}
34657 else
John Criswell7a73b802003-06-30 21:59:07 +000034658 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034659 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034660 fi
34661 else
Reid Spencera773bd52006-08-04 18:18:08 +000034662 echo "/* $configure_input */"
34663 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034664 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034665 rm -f "$tmp/out12"
34666 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034667
Reid Spencera773bd52006-08-04 18:18:08 +000034668 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34669echo "$as_me: executing $ac_file commands" >&6;}
34670 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034671 esac
John Criswell7a73b802003-06-30 21:59:07 +000034672
Reid Spencera773bd52006-08-04 18:18:08 +000034673
34674 case $ac_file$ac_mode in
34675 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34676 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34677 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34678 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34679 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34680 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34681 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34682 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34683 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34684 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34685 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34686 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34687 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34688 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34689 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34690 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34691 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34692 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34693 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34694 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34695
34696 esac
34697done # for ac_tag
34698
John Criswell7a73b802003-06-30 21:59:07 +000034699
34700{ (exit 0); exit 0; }
34701_ACEOF
34702chmod +x $CONFIG_STATUS
34703ac_clean_files=$ac_clean_files_save
34704
34705
34706# configure is writing to config.log, and then calls config.status.
34707# config.status does its own redirection, appending to config.log.
34708# Unfortunately, on DOS this fails, as config.log is still kept open
34709# by configure, so config.status won't be able to write to it; its
34710# output is simply discarded. So we exec the FD to /dev/null,
34711# effectively closing config.log, so it can be properly (re)opened and
34712# appended to by config.status. When coming back to configure, we
34713# need to make the FD available again.
34714if test "$no_create" != yes; then
34715 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034716 ac_config_status_args=
34717 test "$silent" = yes &&
34718 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034719 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034721 exec 5>>config.log
34722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34723 # would make configure fail if this is the last instruction.
34724 $ac_cs_success || { (exit 1); exit 1; }
34725fi
34726
John Criswell12399a12003-09-30 15:55:44 +000034727#
34728# CONFIG_SUBDIRS section.
34729#
34730if test "$no_recursion" != yes; then
34731
34732 # Remove --cache-file and --srcdir arguments so they do not pile up.
34733 ac_sub_configure_args=
34734 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034735 eval "set x $ac_configure_args"
34736 shift
34737 for ac_arg
34738 do
John Criswell12399a12003-09-30 15:55:44 +000034739 if test -n "$ac_prev"; then
34740 ac_prev=
34741 continue
34742 fi
34743 case $ac_arg in
34744 -cache-file | --cache-file | --cache-fil | --cache-fi \
34745 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34746 ac_prev=cache_file ;;
34747 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34748 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34749 | --c=*)
34750 ;;
34751 --config-cache | -C)
34752 ;;
34753 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34754 ac_prev=srcdir ;;
34755 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34756 ;;
34757 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34758 ac_prev=prefix ;;
34759 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34760 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034761 *)
34762 case $ac_arg in
34763 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34764 esac
34765 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034766 esac
34767 done
34768
34769 # Always prepend --prefix to ensure using the same prefix
34770 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034771 ac_arg="--prefix=$prefix"
34772 case $ac_arg in
34773 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34774 esac
34775 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034776
34777 ac_popdir=`pwd`
34778 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34779
34780 # Do not complain, so a configure script can configure whichever
34781 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034782 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034783
Reid Spencera773bd52006-08-04 18:18:08 +000034784 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34785 echo "$as_me:$LINENO: $ac_msg" >&5
34786 echo "$ac_msg" >&6
34787 { as_dir="$ac_dir"
34788 case $as_dir in #(
34789 -*) as_dir=./$as_dir;;
34790 esac
34791 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034792 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034793 while :; do
34794 case $as_dir in #(
34795 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34796 *) as_qdir=$as_dir;;
34797 esac
34798 as_dirs="'$as_qdir' $as_dirs"
34799 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034800$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034801 X"$as_dir" : 'X\(//\)[^/]' \| \
34802 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034804echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34806 s//\1/
34807 q
34808 }
34809 /^X\(\/\/\)[^/].*/{
34810 s//\1/
34811 q
34812 }
34813 /^X\(\/\/\)$/{
34814 s//\1/
34815 q
34816 }
34817 /^X\(\/\).*/{
34818 s//\1/
34819 q
34820 }
34821 s/.*/./; q'`
34822 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000034823 done
Reid Spencera773bd52006-08-04 18:18:08 +000034824 test -z "$as_dirs" || eval "mkdir $as_dirs"
34825 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34826echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000034827 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000034828 ac_builddir=.
34829
Reid Spencera773bd52006-08-04 18:18:08 +000034830case "$ac_dir" in
34831.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34832*)
John Criswell12399a12003-09-30 15:55:44 +000034833 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034834 # A ".." for each directory in $ac_dir_suffix.
34835 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34836 case $ac_top_builddir_sub in
34837 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34838 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34839 esac ;;
34840esac
34841ac_abs_top_builddir=$ac_pwd
34842ac_abs_builddir=$ac_pwd$ac_dir_suffix
34843# for backward compatibility:
34844ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000034845
34846case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034847 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000034848 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034849 ac_top_srcdir=$ac_top_builddir_sub
34850 ac_abs_top_srcdir=$ac_pwd ;;
34851 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000034852 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034853 ac_top_srcdir=$srcdir
34854 ac_abs_top_srcdir=$srcdir ;;
34855 *) # Relative name.
34856 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34857 ac_top_srcdir=$ac_top_build_prefix$srcdir
34858 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000034859esac
Reid Spencera773bd52006-08-04 18:18:08 +000034860ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000034861
34862
Reid Spencera773bd52006-08-04 18:18:08 +000034863 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000034864
34865 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000034866 if test -f "$ac_srcdir/configure.gnu"; then
34867 ac_sub_configure=$ac_srcdir/configure.gnu
34868 elif test -f "$ac_srcdir/configure"; then
34869 ac_sub_configure=$ac_srcdir/configure
34870 elif test -f "$ac_srcdir/configure.in"; then
34871 # This should be Cygnus configure.
34872 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000034873 else
34874 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34875echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34876 ac_sub_configure=
34877 fi
34878
34879 # The recursion is here.
34880 if test -n "$ac_sub_configure"; then
34881 # Make the cache file name correct relative to the subdirectory.
34882 case $cache_file in
34883 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034884 *) # Relative name.
34885 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000034886 esac
34887
Reid Spencera773bd52006-08-04 18:18:08 +000034888 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34889echo "$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 +000034890 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000034891 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34892 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000034893 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000034894echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34895 { (exit 1); exit 1; }; }
34896 fi
34897
Reid Spencera773bd52006-08-04 18:18:08 +000034898 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000034899 done
34900fi
34901
Brian Gaekef3b24102003-11-16 18:38:14 +000034902
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034903if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000034904 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34905echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Chris Lattnerb56371e2006-10-02 17:24:55 +000034906 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&5
34907echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000034908 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34909echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34910 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34911echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34912 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34913echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000034914fi