blob: 7b213bba6cd46ac59011bceabee7dfcd026ee305 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner5c709542007-09-14 01:24:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.2svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012# Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000029DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Reid Spencera773bd52006-08-04 18:18:08 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528else
529 as_executable_p=:
530fi
531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattner5c709542007-09-14 01:24:13 +0000718PACKAGE_VERSION='2.2svn'
719PACKAGE_STRING='llvm 2.2svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000835DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000840ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000841TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000842ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
848LEXLIB
849LEX_OUTPUT_ROOT
850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000888OCAMLDEP
Reid Spencera773bd52006-08-04 18:18:08 +0000889INSTALL_LTDL_TRUE
890INSTALL_LTDL_FALSE
891CONVENIENCE_LTDL_TRUE
892CONVENIENCE_LTDL_FALSE
893LIBADD_DL
894ECHO
895AR
896STRIP
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000902LLVMGCC
903LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000904USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000905HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000906HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000912LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000915LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000927BINDINGS_TO_BUILD
928ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000929OCAML_LIBDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000930LIBOBJS
931LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000932ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CC
937CFLAGS
938LDFLAGS
939CPPFLAGS
940CPP
941CXX
942CXXFLAGS
943CCC
944YACC
945YFLAGS
946CXXCPP
947F77
948FFLAGS'
949ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000950projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000951projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000952projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000953projects/llvm-reopt
954projects/llvm-gcc
955projects/llvm-java
956projects/llvm-tv
957projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000958projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000959projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000986# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000995includedir='${prefix}/include'
996oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001006
1007ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001008ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001009for ac_option
1010do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001013 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001014 ac_prev=
1015 continue
1016 fi
1017
Reid Spencera773bd52006-08-04 18:18:08 +00001018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
John Criswell7a73b802003-06-30 21:59:07 +00001022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
Reid Spencera773bd52006-08-04 18:18:08 +00001025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
Reid Spencera773bd52006-08-04 18:18:08 +00001049 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001050 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001052 datadir=$ac_optarg ;;
1053
Reid Spencera773bd52006-08-04 18:18:08 +00001054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
John Criswell7a73b802003-06-30 21:59:07 +00001061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001068 eval enable_$ac_feature=no ;;
1069
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1074
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001087 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
Reid Spencera773bd52006-08-04 18:18:08 +00001114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
John Criswell7a73b802003-06-30 21:59:07 +00001120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
Reid Spencera773bd52006-08-04 18:18:08 +00001144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
John Criswell7a73b802003-06-30 21:59:07 +00001149 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001150 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
Reid Spencera773bd52006-08-04 18:18:08 +00001218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
John Criswell7a73b802003-06-30 21:59:07 +00001228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1237
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1248
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1253
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1258
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1265
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1270
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1273
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1276
1277 -with-* | --with-*)
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001284 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001285
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001293 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001324 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1342fi
1343
Reid Spencera773bd52006-08-04 18:18:08 +00001344# Be sure to have absolute directory names.
1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001349do
Reid Spencera773bd52006-08-04 18:18:08 +00001350 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001351 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001354 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
Reid Spencera773bd52006-08-04 18:18:08 +00001383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1391
1392
John Criswell7a73b802003-06-30 21:59:07 +00001393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001398$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001402echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001420 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001421 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
Reid Spencera773bd52006-08-04 18:18:08 +00001427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001430 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001431fi
Reid Spencera773bd52006-08-04 18:18:08 +00001432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001435 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001436 pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
John Criswell7a73b802003-06-30 21:59:07 +00001453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001461\`configure' configures llvm 2.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
John Criswell7a73b802003-06-30 21:59:07 +00001481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001483 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001485 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001514_ACEOF
1515
1516 cat <<\_ACEOF
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526 case $ac_init_help in
Tanya Lattner5c709542007-09-14 01:24:13 +00001527 short | recursive ) echo "Configuration of llvm 2.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001528 esac
1529 cat <<\_ACEOF
1530
1531Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001534 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001535 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001536 --enable-expensive-checks
1537
Reid Spencer8b2e1412006-11-17 03:32:33 +00001538 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001539 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001540 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001541 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001542 --enable-pic Build LLVM with Position Independent Code (default
1543 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001544 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001545 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1547 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001550 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001551 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001552 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001553 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001554 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001555 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001556 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001557 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001558 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001559
1560Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1564 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001565 --with-llvmgcc Specify location of llvm-gcc driver (default
1566 searches PATH)
1567 --with-llvmgxx Specify location of llvm-g++ driver (default
1568 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001569 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001570 --with-ocaml-libdir Specify install location for ocaml bindings (default
1571 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001572 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1575 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001576 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001577 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001578
1579Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001580 CC C compiler command
1581 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001586 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001587 CXX C++ compiler command
1588 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001589 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1590 the first program found out of: `bison -y', `byacc', `yacc'.
1591 YFLAGS The list of arguments that will be passed by default to $YACC.
1592 This script will default YFLAGS to the empty string to avoid a
1593 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to <llvmbugs@cs.uiuc.edu>.
1602_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001603ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001609 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001610 ac_builddir=.
1611
Reid Spencera773bd52006-08-04 18:18:08 +00001612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
John Criswell7a73b802003-06-30 21:59:07 +00001615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001627
1628case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001629 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001630 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001634 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001641esac
Reid Spencera773bd52006-08-04 18:18:08 +00001642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001643
Reid Spencera773bd52006-08-04 18:18:08 +00001644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001652 else
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001654 fi || ac_status=$?
1655 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001656 done
1657fi
1658
Reid Spencera773bd52006-08-04 18:18:08 +00001659test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001660if $ac_init_version; then
1661 cat <<\_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001662llvm configure 2.2svn
Reid Spencera773bd52006-08-04 18:18:08 +00001663generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001664
Reid Spencera773bd52006-08-04 18:18:08 +00001665Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001669
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001670Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001671_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001672 exit
John Criswell7a73b802003-06-30 21:59:07 +00001673fi
Reid Spencera773bd52006-08-04 18:18:08 +00001674cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001675This file contains any messages produced by compilers while
1676running configure, to aid debugging if configure makes a mistake.
1677
Tanya Lattner5c709542007-09-14 01:24:13 +00001678It was created by llvm $as_me 2.2svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001679generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001680
1681 $ $0 $@
1682
1683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001684exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001685{
1686cat <<_ASUNAME
1687## --------- ##
1688## Platform. ##
1689## --------- ##
1690
1691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699
1700/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001703/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001704/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707
1708_ASUNAME
1709
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1716done
Reid Spencera773bd52006-08-04 18:18:08 +00001717IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001718
1719} >&5
1720
1721cat >&5 <<_ACEOF
1722
1723
1724## ----------- ##
1725## Core tests. ##
1726## ----------- ##
1727
1728_ACEOF
1729
1730
1731# Keep a trace of the command line.
1732# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001733# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001734# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001735# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001736ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001737ac_configure_args0=
1738ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001739ac_must_keep_next=false
1740for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001741do
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 for ac_arg
1743 do
1744 case $ac_arg in
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001749 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 esac
1752 case $ac_pass in
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 2)
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001757 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001759 case $ac_arg in
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 esac
1767 ;;
1768 -* ) ac_must_keep_next=true ;;
1769 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001771 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ;;
1773 esac
1774 done
John Criswell7a73b802003-06-30 21:59:07 +00001775done
John Criswell0c38eaf2003-09-10 15:17:25 +00001776$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777$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 +00001778
1779# When interrupted or exit'd, cleanup temporary files, and complete
1780# config.log. We remove comments because anyway the quotes in there
1781# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001782# WARNING: Use '\'' to represent an apostrophe within the trap.
1783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001784trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1786 {
1787 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789 cat <<\_ASBOX
1790## ---------------- ##
1791## Cache variables. ##
1792## ---------------- ##
1793_ASBOX
1794 echo
1795 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001796(
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in #(
1800 *${as_nl}*)
1801 case $ac_var in #(
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804 esac
1805 case $ac_var in #(
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
John Criswell7a73b802003-06-30 21:59:07 +00001811 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001814 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001818 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001820 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001821 esac |
1822 sort
1823)
John Criswell7a73b802003-06-30 21:59:07 +00001824 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001825
1826 cat <<\_ASBOX
1827## ----------------- ##
1828## Output variables. ##
1829## ----------------- ##
1830_ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1833 do
Reid Spencera773bd52006-08-04 18:18:08 +00001834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001839 done | sort
1840 echo
1841
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001844## ------------------- ##
1845## File substitutions. ##
1846## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001847_ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1850 do
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001856 done | sort
1857 echo
1858 fi
1859
John Criswell7a73b802003-06-30 21:59:07 +00001860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862## ----------- ##
1863## confdefs.h. ##
1864## ----------- ##
1865_ASBOX
1866 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001867 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001868 echo
1869 fi
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1873 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001876 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001877' 0
John Criswell7a73b802003-06-30 21:59:07 +00001878for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880done
1881ac_signal=0
1882
1883# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001884rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001885
1886# Predefined preprocessor variables.
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_NAME "$PACKAGE_NAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_VERSION "$PACKAGE_VERSION"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_STRING "$PACKAGE_STRING"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910_ACEOF
1911
1912
1913# Let the site file select an alternate cache file if it wants to.
1914# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001915if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919else
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001922fi
Reid Spencera773bd52006-08-04 18:18:08 +00001923shift
1924for ac_site_file
1925do
John Criswell7a73b802003-06-30 21:59:07 +00001926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1930 . "$ac_site_file"
1931 fi
1932done
1933
1934if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939echo "$as_me: loading cache $cache_file" >&6;}
1940 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001943 esac
1944 fi
1945else
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947echo "$as_me: creating cache $cache_file" >&6;}
1948 >$cache_file
1949fi
1950
1951# Check that the precious variables saved in the cache have kept the same
1952# value.
1953ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001954for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001959 case $ac_old_set,$ac_new_set in
1960 set,)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,set)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,);;
1969 *)
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001972echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001974echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001978 fi;;
1979 esac
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1982 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001984 *) ac_arg=$ac_var=$ac_new_val ;;
1985 esac
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989 esac
1990 fi
1991done
1992if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
1998fi
1999
Reid Spencera773bd52006-08-04 18:18:08 +00002000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
John Criswell7a73b802003-06-30 21:59:07 +00002024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029
2030
2031
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002032LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033
2034
2035
2036
2037
2038
2039
John Criswell7a73b802003-06-30 21:59:07 +00002040ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002041for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install-sh -c"
2045 break
Reid Spencera773bd52006-08-04 18:18:08 +00002046 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install.sh -c"
2049 break
Reid Spencera773bd52006-08-04 18:18:08 +00002050 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2053 break
2054 fi
2055done
2056if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002059 { (exit 1); exit 1; }; }
2060fi
Reid Spencera773bd52006-08-04 18:18:08 +00002061
2062# These three variables are undocumented and unsupported,
2063# and are intended to be withdrawn in a future Autoconf release.
2064# They can cause serious problems if a builder's source tree is in a directory
2065# whose full name contains unusual characters.
2066ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2069
John Criswell7a73b802003-06-30 21:59:07 +00002070
John Criswell392aaa32003-07-22 19:18:09 +00002071
Reid Spencer2706f8c2004-09-19 23:53:36 +00002072if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002075echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077 fi
John Criswell93e1c722003-09-15 17:04:06 +00002078fi
2079
John Criswell33a911a2003-11-25 20:36:46 +00002080for i in `ls ${srcdir}/projects`
2081do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 if test -d ${srcdir}/projects/${i} ; then
2083 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 CVS) ;;
2085 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002087 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002088 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002091 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 ;;
2093 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002096 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002098 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002102 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002103 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002106 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002108 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002110 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111 esac
John Criswell33a911a2003-11-25 20:36:46 +00002112 fi
2113done
John Criswell559a6c12003-09-30 16:31:48 +00002114
John Criswell7a73b802003-06-30 21:59:07 +00002115
2116# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002117$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002120 { (exit 1); exit 1; }; }
2121
Reid Spencera773bd52006-08-04 18:18:08 +00002122{ echo "$as_me:$LINENO: checking build system type" >&5
2123echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002124if test "${ac_cv_build+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
Reid Spencera773bd52006-08-04 18:18:08 +00002127 ac_build_alias=$build_alias
2128test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002134ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002137 { (exit 1); exit 1; }; }
2138
2139fi
Reid Spencera773bd52006-08-04 18:18:08 +00002140{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141echo "${ECHO_T}$ac_cv_build" >&6; }
2142case $ac_cv_build in
2143*-*-*) ;;
2144*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
2147esac
John Criswell7a73b802003-06-30 21:59:07 +00002148build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002149ac_save_IFS=$IFS; IFS='-'
2150set x $ac_cv_build
2151shift
2152build_cpu=$1
2153build_vendor=$2
2154shift; shift
2155# Remember, the first character of IFS is used to create $*,
2156# except with old shells:
2157build_os=$*
2158IFS=$ac_save_IFS
2159case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002160
2161
Reid Spencera773bd52006-08-04 18:18:08 +00002162{ echo "$as_me:$LINENO: checking host system type" >&5
2163echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002164if test "${ac_cv_host+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
Reid Spencera773bd52006-08-04 18:18:08 +00002167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2169else
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002173 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002174fi
John Criswell7a73b802003-06-30 21:59:07 +00002175
2176fi
Reid Spencera773bd52006-08-04 18:18:08 +00002177{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178echo "${ECHO_T}$ac_cv_host" >&6; }
2179case $ac_cv_host in
2180*-*-*) ;;
2181*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2184esac
John Criswell7a73b802003-06-30 21:59:07 +00002185host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002186ac_save_IFS=$IFS; IFS='-'
2187set x $ac_cv_host
2188shift
2189host_cpu=$1
2190host_vendor=$2
2191shift; shift
2192# Remember, the first character of IFS is used to create $*,
2193# except with old shells:
2194host_os=$*
2195IFS=$ac_save_IFS
2196case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002197
2198
Reid Spencera773bd52006-08-04 18:18:08 +00002199{ echo "$as_me:$LINENO: checking target system type" >&5
2200echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002201if test "${ac_cv_target+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
Reid Spencera773bd52006-08-04 18:18:08 +00002204 if test "x$target_alias" = x; then
2205 ac_cv_target=$ac_cv_host
2206else
2207 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002210 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002211fi
John Criswell7a73b802003-06-30 21:59:07 +00002212
2213fi
Reid Spencera773bd52006-08-04 18:18:08 +00002214{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215echo "${ECHO_T}$ac_cv_target" >&6; }
2216case $ac_cv_target in
2217*-*-*) ;;
2218*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219echo "$as_me: error: invalid value of canonical target" >&2;}
2220 { (exit 1); exit 1; }; };;
2221esac
John Criswell7a73b802003-06-30 21:59:07 +00002222target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002223ac_save_IFS=$IFS; IFS='-'
2224set x $ac_cv_target
2225shift
2226target_cpu=$1
2227target_vendor=$2
2228shift; shift
2229# Remember, the first character of IFS is used to create $*,
2230# except with old shells:
2231target_os=$*
2232IFS=$ac_save_IFS
2233case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002234
2235
2236# The aliases save the names the user supplied, while $host etc.
2237# will get canonicalized.
2238test -n "$target_alias" &&
2239 test "$program_prefix$program_suffix$program_transform_name" = \
2240 NONENONEs,x,x, &&
2241 program_prefix=${target_alias}-
2242
Reid Spencera773bd52006-08-04 18:18:08 +00002243{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002248 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252 llvm_cv_os_type="AIX"
2253 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002254 *-*-irix*)
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="IRIX"
2258 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262 llvm_cv_os_type="Cygwin"
2263 llvm_cv_platform_type="Unix" ;;
2264 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002265 llvm_cv_link_all_option="-Wl,-all_load"
2266 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 llvm_cv_os_type="Darwin"
2268 llvm_cv_platform_type="Unix" ;;
2269 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 llvm_cv_os_type="FreeBSD"
2273 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002274 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002277 llvm_cv_os_type="OpenBSD"
2278 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002279 *-*-netbsd*)
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="NetBSD"
2283 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002284 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002287 llvm_cv_os_type="HP-UX"
2288 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 llvm_cv_os_type="Interix"
2293 llvm_cv_platform_type="Unix" ;;
2294 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297 llvm_cv_os_type="Linux"
2298 llvm_cv_platform_type="Unix" ;;
2299 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002300 llvm_cv_link_all_option="-Wl,-z,allextract"
2301 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 llvm_cv_os_type="SunOS"
2303 llvm_cv_platform_type="Unix" ;;
2304 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 llvm_cv_os_type="Win32"
2308 llvm_cv_platform_type="Win32" ;;
2309 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312 llvm_cv_os_type="MingW"
2313 llvm_cv_platform_type="Win32" ;;
2314 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option=""
2316 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 llvm_cv_os_type="Unknown"
2318 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002319esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002320fi
Reid Spencera773bd52006-08-04 18:18:08 +00002321{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2322echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002323
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324if test "$llvm_cv_os_type" = "Unknown" ; then
2325 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2326echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002327 { (exit 1); exit 1; }; }
2328fi
2329
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002331
2332
Reid Spencera773bd52006-08-04 18:18:08 +00002333LINKALL=$llvm_cv_link_all_option
2334
2335NOLINKALL=$llvm_cv_no_link_all_option
2336
2337
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338case $llvm_cv_platform_type in
2339 Unix)
2340
2341cat >>confdefs.h <<\_ACEOF
2342#define LLVM_ON_UNIX 1
2343_ACEOF
2344
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002345 LLVM_ON_UNIX=1
2346
2347 LLVM_ON_WIN32=0
2348
Reid Spencer7b3e8512004-12-24 06:29:05 +00002349 ;;
2350 Win32)
2351
2352cat >>confdefs.h <<\_ACEOF
2353#define LLVM_ON_WIN32 1
2354_ACEOF
2355
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002356 LLVM_ON_UNIX=0
2357
2358 LLVM_ON_WIN32=1
2359
Reid Spencer7b3e8512004-12-24 06:29:05 +00002360 ;;
2361esac
2362
Reid Spencera773bd52006-08-04 18:18:08 +00002363{ echo "$as_me:$LINENO: checking target architecture" >&5
2364echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002365if test "${llvm_cv_target_arch+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002369 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002370 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002371 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2372 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002373 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002374 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002375 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002376 mips-*) llvm_cv_target_arch="Mips" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002377 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002378esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379fi
Reid Spencera773bd52006-08-04 18:18:08 +00002380{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2381echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002382
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002383if test "$llvm_cv_target_arch" = "Unknown" ; then
2384 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2385echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2386fi
John Criswell76595452003-07-01 22:07:39 +00002387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002389
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002390
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391ac_ext=c
2392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002396if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406else
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002413 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 +00002414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2417 fi
2418done
2419done
Reid Spencera773bd52006-08-04 18:18:08 +00002420IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002426 { echo "$as_me:$LINENO: result: $CC" >&5
2427echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428else
Reid Spencera773bd52006-08-04 18:18:08 +00002429 { echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431fi
2432
Reid Spencera773bd52006-08-04 18:18:08 +00002433
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434fi
2435if test -z "$ac_cv_prog_CC"; then
2436 ac_ct_CC=$CC
2437 # Extract the first word of "gcc", so it can be a program name with args.
2438set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443else
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2446else
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002453 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 +00002454 ac_cv_prog_ac_ct_CC="gcc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2457 fi
2458done
2459done
Reid Spencera773bd52006-08-04 18:18:08 +00002460IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461
2462fi
2463fi
2464ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468else
Reid Spencera773bd52006-08-04 18:18:08 +00002469 { echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471fi
2472
Reid Spencera773bd52006-08-04 18:18:08 +00002473 if test "x$ac_ct_CC" = x; then
2474 CC=""
2475 else
2476 case $cross_compiling:$ac_tool_warned in
2477yes:)
2478{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479whose name does not start with the host triplet. If you think this
2480configuration is useful to you, please write to autoconf@gnu.org." >&5
2481echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482whose name does not start with the host triplet. If you think this
2483configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484ac_tool_warned=yes ;;
2485esac
2486 CC=$ac_ct_CC
2487 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488else
2489 CC="$ac_cv_prog_CC"
2490fi
2491
2492if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002493 if test -n "$ac_tool_prefix"; then
2494 # 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 +00002495set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002498if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002510 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 +00002511 ac_cv_prog_CC="${ac_tool_prefix}cc"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515done
2516done
Reid Spencera773bd52006-08-04 18:18:08 +00002517IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518
2519fi
2520fi
2521CC=$ac_cv_prog_CC
2522if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002523 { echo "$as_me:$LINENO: result: $CC" >&5
2524echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525else
Reid Spencera773bd52006-08-04 18:18:08 +00002526 { echo "$as_me:$LINENO: result: no" >&5
2527echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528fi
2529
Reid Spencera773bd52006-08-04 18:18:08 +00002530
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532fi
2533if test -z "$CC"; then
2534 # Extract the first word of "cc", so it can be a program name with args.
2535set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543else
2544 ac_prog_rejected=no
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002551 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 +00002552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553 ac_prog_rejected=yes
2554 continue
2555 fi
2556 ac_cv_prog_CC="cc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2559 fi
2560done
2561done
Reid Spencera773bd52006-08-04 18:18:08 +00002562IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563
2564if test $ac_prog_rejected = yes; then
2565 # We found a bogon in the path, so make sure we never use it.
2566 set dummy $ac_cv_prog_CC
2567 shift
2568 if test $# != 0; then
2569 # We chose a different compiler from the bogus one.
2570 # However, it has the same basename, so the bogon will be chosen
2571 # first if we set CC to just the basename; use the full file name.
2572 shift
2573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 fi
2575fi
2576fi
2577fi
2578CC=$ac_cv_prog_CC
2579if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002580 { echo "$as_me:$LINENO: result: $CC" >&5
2581echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582else
Reid Spencera773bd52006-08-04 18:18:08 +00002583 { echo "$as_me:$LINENO: result: no" >&5
2584echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002585fi
2586
Reid Spencera773bd52006-08-04 18:18:08 +00002587
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002588fi
2589if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002591 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002592 do
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002609 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 +00002610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2613 fi
2614done
2615done
Reid Spencera773bd52006-08-04 18:18:08 +00002616IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002617
2618fi
2619fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002622 { echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002624else
Reid Spencera773bd52006-08-04 18:18:08 +00002625 { echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002627fi
2628
Reid Spencera773bd52006-08-04 18:18:08 +00002629
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002631 done
2632fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633if test -z "$CC"; then
2634 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002635 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002636do
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002653 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 +00002654 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658done
2659done
Reid Spencera773bd52006-08-04 18:18:08 +00002660IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002661
2662fi
2663fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002668else
Reid Spencera773bd52006-08-04 18:18:08 +00002669 { echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002671fi
2672
Reid Spencera773bd52006-08-04 18:18:08 +00002673
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002674 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002675done
John Criswell7a73b802003-06-30 21:59:07 +00002676
Reid Spencera773bd52006-08-04 18:18:08 +00002677 if test "x$ac_ct_CC" = x; then
2678 CC=""
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681yes:)
2682{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683whose name does not start with the host triplet. If you think this
2684configuration is useful to you, please write to autoconf@gnu.org." >&5
2685echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686whose name does not start with the host triplet. If you think this
2687configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688ac_tool_warned=yes ;;
2689esac
2690 CC=$ac_ct_CC
2691 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002692fi
2693
John Criswell7a73b802003-06-30 21:59:07 +00002694fi
2695
2696
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698See \`config.log' for more details." >&5
2699echo "$as_me: error: no acceptable C compiler found in \$PATH
2700See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
2702
John Criswell7a73b802003-06-30 21:59:07 +00002703# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002704echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002705ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002706{ (ac_try="$ac_compiler --version >&5"
2707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002716{ (ac_try="$ac_compiler -v >&5"
2717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002726{ (ac_try="$ac_compiler -V >&5"
2727case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730esac
2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
2736
2737cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002738/* confdefs.h. */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002743
John Criswell7a73b802003-06-30 21:59:07 +00002744int
2745main ()
2746{
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002753ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002754# Try to create an executable without -o first, disregard a.out.
2755# It will help us diagnose broken compilers, and finding out an intuition
2756# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002757{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002759ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002760#
2761# List of possible output files, starting from the most likely.
2762# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763# only as a last resort. b.out is created by i960 compilers.
2764ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2765#
2766# The IRIX 6 linker writes into existing files which may not be
2767# executable, retaining their permissions. Remove them first so a
2768# subsequent execution test works.
2769ac_rmfiles=
2770for ac_file in $ac_files
2771do
2772 case $ac_file in
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 esac
2776done
2777rm -f $ac_rmfiles
2778
2779if { (ac_try="$ac_link_default"
2780case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783esac
2784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791# in a Makefile. We should not override ac_cv_exeext if it was cached,
2792# so that the user can short-circuit this test for compilers unknown to
2793# Autoconf.
2794for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002795do
2796 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002797 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002799 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002800 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002801 # We found the default executable, but exeext='' is most
2802 # certainly right.
2803 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002804 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2806 then :; else
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808 fi
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2813 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002814 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002815 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002816 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002817 esac
2818done
Reid Spencera773bd52006-08-04 18:18:08 +00002819test "$ac_cv_exeext" = no && ac_cv_exeext=
2820
John Criswell7a73b802003-06-30 21:59:07 +00002821else
2822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002823sed 's/^/| /' conftest.$ac_ext >&5
2824
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002825{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002826See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002827echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002828See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002829 { (exit 77); exit 77; }; }
2830fi
2831
2832ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002833{ echo "$as_me:$LINENO: result: $ac_file" >&5
2834echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002835
Reid Spencera773bd52006-08-04 18:18:08 +00002836# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002837# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002838{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002840# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841# If not cross compiling, check that we can run a simple program.
2842if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 cross_compiling=no
2854 else
2855 if test "$cross_compiling" = maybe; then
2856 cross_compiling=yes
2857 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002859If you meant to cross compile, use \`--host'.
2860See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002861echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002862If you meant to cross compile, use \`--host'.
2863See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002864 { (exit 1); exit 1; }; }
2865 fi
2866 fi
2867fi
Reid Spencera773bd52006-08-04 18:18:08 +00002868{ echo "$as_me:$LINENO: result: yes" >&5
2869echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002870
John Criswell0c38eaf2003-09-10 15:17:25 +00002871rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002872ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002873# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002874# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002875{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002879
Reid Spencera773bd52006-08-04 18:18:08 +00002880{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882if { (ac_try="$ac_link"
2883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894# work properly (i.e., refer to `conftest.exe'), while it won't with
2895# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002896for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002898 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002901 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002902 * ) break;;
2903 esac
2904done
2905else
John Criswell0c38eaf2003-09-10 15:17:25 +00002906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907See \`config.log' for more details." >&5
2908echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002910 { (exit 1); exit 1; }; }
2911fi
2912
2913rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002914{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002916
2917rm -f conftest.$ac_ext
2918EXEEXT=$ac_cv_exeext
2919ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002920{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002922if test "${ac_cv_objext+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002931
John Criswell7a73b802003-06-30 21:59:07 +00002932int
2933main ()
2934{
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002941if { (ac_try="$ac_compile"
2942case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002951 for ac_file in conftest.o conftest.obj conftest.*; do
2952 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002953 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956 break;;
2957 esac
2958done
2959else
2960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964See \`config.log' for more details." >&5
2965echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002967 { (exit 1); exit 1; }; }
2968fi
2969
2970rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971fi
Reid Spencera773bd52006-08-04 18:18:08 +00002972{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002974OBJEXT=$ac_cv_objext
2975ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002976{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002978if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002987
John Criswell7a73b802003-06-30 21:59:07 +00002988int
2989main ()
2990{
2991#ifndef __GNUC__
2992 choke me
2993#endif
2994
2995 ;
2996 return 0;
2997}
2998_ACEOF
2999rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003000if { (ac_try="$ac_compile"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003007 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; } &&
3023 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_compiler_gnu=yes
3034else
3035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003036sed 's/^/| /' conftest.$ac_ext >&5
3037
Reid Spencera773bd52006-08-04 18:18:08 +00003038 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003039fi
Reid Spencera773bd52006-08-04 18:18:08 +00003040
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003042ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003043
3044fi
Reid Spencera773bd52006-08-04 18:18:08 +00003045{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003047GCC=`test $ac_compiler_gnu = yes && echo yes`
3048ac_test_CFLAGS=${CFLAGS+set}
3049ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003050{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003052if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
Reid Spencera773bd52006-08-04 18:18:08 +00003055 ac_save_c_werror_flag=$ac_c_werror_flag
3056 ac_c_werror_flag=yes
3057 ac_cv_prog_cc_g=no
3058 CFLAGS="-g"
3059 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003065
John Criswell7a73b802003-06-30 21:59:07 +00003066int
3067main ()
3068{
3069
3070 ;
3071 return 0;
3072}
3073_ACEOF
3074rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003075if { (ac_try="$ac_compile"
3076case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003082 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003108 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003109else
3110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003111sed 's/^/| /' conftest.$ac_ext >&5
3112
Reid Spencera773bd52006-08-04 18:18:08 +00003113 CFLAGS=""
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext
3130if { (ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 :
3164else
3165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 ac_c_werror_flag=$ac_save_c_werror_flag
3169 CFLAGS="-g"
3170 cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h. */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h. */
3176
3177int
3178main ()
3179{
3180
3181 ;
3182 return 0;
3183}
3184_ACEOF
3185rm -f conftest.$ac_objext
3186if { (ac_try="$ac_compile"
3187case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 ac_cv_prog_cc_g=yes
3220else
3221 echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
John Criswell7a73b802003-06-30 21:59:07 +00003225fi
Reid Spencera773bd52006-08-04 18:18:08 +00003226
3227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003228fi
Reid Spencera773bd52006-08-04 18:18:08 +00003229
3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231fi
3232
3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3235fi
3236{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3242 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003243 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003245 fi
3246else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003247 if test "$GCC" = yes; then
3248 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003249 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003250 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003251 fi
3252fi
Reid Spencera773bd52006-08-04 18:18:08 +00003253{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
Reid Spencera773bd52006-08-04 18:18:08 +00003258 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259ac_save_CC=$CC
3260cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266#include <stdarg.h>
3267#include <stdio.h>
3268#include <sys/types.h>
3269#include <sys/stat.h>
3270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271struct buf { int x; };
3272FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273static char *e (p, i)
3274 char **p;
3275 int i;
3276{
3277 return p[i];
3278}
3279static char *f (char * (*g) (char **, int), char **p, ...)
3280{
3281 char *s;
3282 va_list v;
3283 va_start (v,p);
3284 s = g (p, va_arg (v,int));
3285 va_end (v);
3286 return s;
3287}
3288
3289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003292 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003295 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
Reid Spencera773bd52006-08-04 18:18:08 +00003298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3300#define FOO(x) 'x'
3301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303int test (int i, double x);
3304struct s1 {int (*f) (int a);};
3305struct s2 {int (*f) (double a);};
3306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307int argc;
3308char **argv;
3309int
3310main ()
3311{
3312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 ;
3314 return 0;
3315}
3316_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319do
3320 CC="$ac_save_CC $ac_arg"
3321 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003322if { (ac_try="$ac_compile"
3323case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
3327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003346 { (case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349esac
3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003355 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
Reid Spencera773bd52006-08-04 18:18:08 +00003360
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361fi
Reid Spencera773bd52006-08-04 18:18:08 +00003362
3363rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365done
Reid Spencera773bd52006-08-04 18:18:08 +00003366rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003367CC=$ac_save_CC
3368
3369fi
Reid Spencera773bd52006-08-04 18:18:08 +00003370# AC_CACHE_VAL
3371case "x$ac_cv_prog_cc_c89" in
3372 x)
3373 { echo "$as_me:$LINENO: result: none needed" >&5
3374echo "${ECHO_T}none needed" >&6; } ;;
3375 xno)
3376 { echo "$as_me:$LINENO: result: unsupported" >&5
3377echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003379 CC="$CC $ac_cv_prog_cc_c89"
3380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382esac
3383
John Criswell0c38eaf2003-09-10 15:17:25 +00003384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003397{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399# On Suns, sometimes $CPP names a directory.
3400if test -n "$CPP" && test -d "$CPP"; then
3401 CPP=
3402fi
3403if test -z "$CPP"; then
3404 if test "${ac_cv_prog_CPP+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407 # Double quotes because CPP needs to be expanded
3408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3409 do
3410 ac_preproc_ok=false
3411for ac_c_preproc_warn_flag in '' yes
3412do
3413 # Use a header file that comes with gcc, so configuring glibc
3414 # with a fresh cross-compiler works.
3415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416 # <limits.h> exists even on freestanding compilers.
3417 # On the NeXT, cc -E runs the code through the compiler's parser,
3418 # not just through cpp. "Syntax error" is here to catch this case.
3419 cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h. */
3425#ifdef __STDC__
3426# include <limits.h>
3427#else
3428# include <assert.h>
3429#endif
3430 Syntax error
3431_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003432if { (ac_try="$ac_cpp conftest.$ac_ext"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
3451else
3452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
3455 :
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 # Broken: fails on valid input.
3461continue
3462fi
Reid Spencera773bd52006-08-04 18:18:08 +00003463
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003464rm -f conftest.err conftest.$ac_ext
3465
Reid Spencera773bd52006-08-04 18:18:08 +00003466 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467 # can be detected and how.
3468 cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h. */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
3473/* end confdefs.h. */
3474#include <ac_nonexistent.h>
3475_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003476if { (ac_try="$ac_cpp conftest.$ac_ext"
3477case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480esac
3481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 else
3493 ac_cpp_err=
3494 fi
3495else
3496 ac_cpp_err=yes
3497fi
3498if test -z "$ac_cpp_err"; then
3499 # Broken: success on invalid input.
3500continue
3501else
3502 echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 # Passes both tests.
3506ac_preproc_ok=:
3507break
3508fi
Reid Spencera773bd52006-08-04 18:18:08 +00003509
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
3515if $ac_preproc_ok; then
3516 break
3517fi
3518
3519 done
3520 ac_cv_prog_CPP=$CPP
3521
3522fi
3523 CPP=$ac_cv_prog_CPP
3524else
3525 ac_cv_prog_CPP=$CPP
3526fi
Reid Spencera773bd52006-08-04 18:18:08 +00003527{ echo "$as_me:$LINENO: result: $CPP" >&5
3528echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003529ac_preproc_ok=false
3530for ac_c_preproc_warn_flag in '' yes
3531do
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
3544#ifdef __STDC__
3545# include <limits.h>
3546#else
3547# include <assert.h>
3548#endif
3549 Syntax error
3550_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003551if { (ac_try="$ac_cpp conftest.$ac_ext"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3569 fi
3570else
3571 ac_cpp_err=yes
3572fi
3573if test -z "$ac_cpp_err"; then
3574 :
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 # Broken: fails on valid input.
3580continue
3581fi
Reid Spencera773bd52006-08-04 18:18:08 +00003582
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003583rm -f conftest.err conftest.$ac_ext
3584
Reid Spencera773bd52006-08-04 18:18:08 +00003585 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586 # can be detected and how.
3587 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h. */
3593#include <ac_nonexistent.h>
3594_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003595if { (ac_try="$ac_cpp conftest.$ac_ext"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 else
3612 ac_cpp_err=
3613 fi
3614else
3615 ac_cpp_err=yes
3616fi
3617if test -z "$ac_cpp_err"; then
3618 # Broken: success on invalid input.
3619continue
3620else
3621 echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 # Passes both tests.
3625ac_preproc_ok=:
3626break
3627fi
Reid Spencera773bd52006-08-04 18:18:08 +00003628
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003629rm -f conftest.err conftest.$ac_ext
3630
3631done
3632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633rm -f conftest.err conftest.$ac_ext
3634if $ac_preproc_ok; then
3635 :
3636else
3637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638See \`config.log' for more details." >&5
3639echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3642fi
3643
John Criswell7a73b802003-06-30 21:59:07 +00003644ac_ext=c
3645ac_cpp='$CPP $CPPFLAGS'
3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
John Criswell7a73b802003-06-30 21:59:07 +00003650
Reid Spencera773bd52006-08-04 18:18:08 +00003651{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003653if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
Reid Spencera773bd52006-08-04 18:18:08 +00003656 # Extract the first word of "grep ggrep" to use in msg output
3657if test -z "$GREP"; then
3658set dummy grep ggrep; ac_prog_name=$2
3659if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
Reid Spencera773bd52006-08-04 18:18:08 +00003662 ac_path_GREP_found=false
3663# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003666do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003669 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003670 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3673 # Check for GNU ac_path_GREP and select it if it is found.
3674 # Check for GNU $ac_path_GREP
3675case `"$ac_path_GREP" --version 2>&1` in
3676*GNU*)
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678*)
3679 ac_count=0
3680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681 while :
3682 do
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 echo 'GREP' >> "conftest.nl"
3687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 ac_count=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003694 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699esac
3700
3701
3702 $ac_path_GREP_found && break 3
3703 done
3704done
3705
3706done
3707IFS=$as_save_IFS
3708
3709
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003710fi
Reid Spencera773bd52006-08-04 18:18:08 +00003711
3712GREP="$ac_cv_path_GREP"
3713if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3717fi
3718
3719else
3720 ac_cv_path_GREP=$GREP
3721fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003722
John Criswell7a73b802003-06-30 21:59:07 +00003723
Reid Spencera773bd52006-08-04 18:18:08 +00003724fi
3725{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727 GREP="$ac_cv_path_GREP"
3728
3729
3730{ echo "$as_me:$LINENO: checking for egrep" >&5
3731echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736 then ac_cv_path_EGREP="$GREP -E"
3737 else
3738 # Extract the first word of "egrep" to use in msg output
3739if test -z "$EGREP"; then
3740set dummy egrep; ac_prog_name=$2
3741if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
3744 ac_path_EGREP_found=false
3745# Loop through the user's path and test for each of PROGNAME-LIST
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757case `"$ac_path_EGREP" --version 2>&1` in
3758*GNU*)
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760*)
3761 ac_count=0
3762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3763 while :
3764 do
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 echo 'EGREP' >> "conftest.nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 ac_count=`expr $ac_count + 1`
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3776 fi
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3779 done
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781esac
3782
3783
3784 $ac_path_EGREP_found && break 3
3785 done
3786done
3787
3788done
3789IFS=$as_save_IFS
3790
3791
3792fi
3793
3794EGREP="$ac_cv_path_EGREP"
3795if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3799fi
3800
3801else
3802 ac_cv_path_EGREP=$EGREP
3803fi
3804
3805
3806 fi
3807fi
3808{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810 EGREP="$ac_cv_path_EGREP"
3811
3812
3813{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003815if test "${ac_cv_header_stdc+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817else
3818 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003819/* confdefs.h. */
3820_ACEOF
3821cat confdefs.h >>conftest.$ac_ext
3822cat >>conftest.$ac_ext <<_ACEOF
3823/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003824#include <stdlib.h>
3825#include <stdarg.h>
3826#include <string.h>
3827#include <float.h>
3828
John Criswell0c38eaf2003-09-10 15:17:25 +00003829int
3830main ()
3831{
3832
3833 ;
3834 return 0;
3835}
John Criswell7a73b802003-06-30 21:59:07 +00003836_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003837rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003838if { (ac_try="$ac_compile"
3839case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842esac
3843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003845 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003850 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003871 ac_cv_header_stdc=yes
3872else
3873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003874sed 's/^/| /' conftest.$ac_ext >&5
3875
Reid Spencera773bd52006-08-04 18:18:08 +00003876 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003877fi
Reid Spencera773bd52006-08-04 18:18:08 +00003878
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003880
3881if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003889#include <string.h>
3890
3891_ACEOF
3892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003893 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003894 :
3895else
3896 ac_cv_header_stdc=no
3897fi
3898rm -f conftest*
3899
3900fi
3901
3902if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003905/* confdefs.h. */
3906_ACEOF
3907cat confdefs.h >>conftest.$ac_ext
3908cat >>conftest.$ac_ext <<_ACEOF
3909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003910#include <stdlib.h>
3911
3912_ACEOF
3913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003914 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003915 :
3916else
3917 ac_cv_header_stdc=no
3918fi
3919rm -f conftest*
3920
3921fi
3922
3923if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925 if test "$cross_compiling" = yes; then
3926 :
3927else
3928 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003934#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003935#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003936#if ((' ' & 0x0FF) == 0x020)
3937# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003940# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003941 (('a' <= (c) && (c) <= 'i') \
3942 || ('j' <= (c) && (c) <= 'r') \
3943 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945#endif
3946
3947#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948int
3949main ()
3950{
3951 int i;
3952 for (i = 0; i < 256; i++)
3953 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003954 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003955 return 2;
3956 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003957}
3958_ACEOF
3959rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003960if { (ac_try="$ac_link"
3961case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964esac
3965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973esac
3974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3979 :
3980else
3981 echo "$as_me: program exited with status $ac_status" >&5
3982echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003983sed 's/^/| /' conftest.$ac_ext >&5
3984
John Criswell7a73b802003-06-30 21:59:07 +00003985( exit $ac_status )
3986ac_cv_header_stdc=no
3987fi
Reid Spencera773bd52006-08-04 18:18:08 +00003988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989fi
3990
3991
John Criswell7a73b802003-06-30 21:59:07 +00003992fi
3993fi
Reid Spencera773bd52006-08-04 18:18:08 +00003994{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003996if test $ac_cv_header_stdc = yes; then
3997
3998cat >>confdefs.h <<\_ACEOF
3999#define STDC_HEADERS 1
4000_ACEOF
4001
4002fi
4003
Reid Spencera773bd52006-08-04 18:18:08 +00004004# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015 inttypes.h stdint.h unistd.h
4016do
4017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023 cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h. */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h. */
4029$ac_includes_default
4030
4031#include <$ac_header>
4032_ACEOF
4033rm -f conftest.$ac_objext
4034if { (ac_try="$ac_compile"
4035case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
4039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051esac
4052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061esac
4062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_try") 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 eval "$as_ac_Header=yes"
4068else
4069 echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 eval "$as_ac_Header=no"
4073fi
4074
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076fi
4077ac_res=`eval echo '${'$as_ac_Header'}'`
4078 { echo "$as_me:$LINENO: result: $ac_res" >&5
4079echo "${ECHO_T}$ac_res" >&6; }
4080if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083_ACEOF
4084
4085fi
4086
4087done
4088
4089
4090{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092if test "${ac_cv_c_bigendian+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095 # See if sys/param.h defines the BYTE_ORDER macro.
4096cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h. */
4102#include <sys/types.h>
4103#include <sys/param.h>
4104
4105int
4106main ()
4107{
4108#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4109 bogus endian macros
4110#endif
4111
4112 ;
4113 return 0;
4114}
4115_ACEOF
4116rm -f conftest.$ac_objext
4117if { (ac_try="$ac_compile"
4118case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134esac
4135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144esac
4145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_try") 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 # It does; now see whether it defined to BIG_ENDIAN or not.
4151cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
4157#include <sys/types.h>
4158#include <sys/param.h>
4159
4160int
4161main ()
4162{
4163#if BYTE_ORDER != BIG_ENDIAN
4164 not big endian
4165#endif
4166
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (ac_try="$ac_compile"
4173case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199esac
4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_cv_c_bigendian=yes
4206else
4207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 ac_cv_c_bigendian=no
4211fi
4212
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 # It does not; compile a test program.
4219if test "$cross_compiling" = yes; then
4220 # try to guess the endianness by grepping values into an object file
4221 ac_cv_c_bigendian=unknown
4222 cat >conftest.$ac_ext <<_ACEOF
4223/* confdefs.h. */
4224_ACEOF
4225cat confdefs.h >>conftest.$ac_ext
4226cat >>conftest.$ac_ext <<_ACEOF
4227/* end confdefs.h. */
4228short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4234int
4235main ()
4236{
4237 _ascii (); _ebcdic ();
4238 ;
4239 return 0;
4240}
4241_ACEOF
4242rm -f conftest.$ac_objext
4243if { (ac_try="$ac_compile"
4244case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
4248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270esac
4271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4277 ac_cv_c_bigendian=yes
4278fi
4279if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280 if test "$ac_cv_c_bigendian" = unknown; then
4281 ac_cv_c_bigendian=no
4282 else
4283 # finding both strings is unlikely to happen, but who knows?
4284 ac_cv_c_bigendian=unknown
4285 fi
4286fi
4287else
4288 echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291
4292fi
4293
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295else
4296 cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h. */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
4301/* end confdefs.h. */
4302$ac_includes_default
4303int
4304main ()
4305{
4306
4307 /* Are we little or big endian? From Harbison&Steele. */
4308 union
4309 {
4310 long int l;
4311 char c[sizeof (long int)];
4312 } u;
4313 u.l = 1;
4314 return u.c[sizeof (long int) - 1] == 1;
4315
4316 ;
4317 return 0;
4318}
4319_ACEOF
4320rm -f conftest$ac_exeext
4321if { (ac_try="$ac_link"
4322case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325esac
4326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_link") 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_c_bigendian=no
4341else
4342 echo "$as_me: program exited with status $ac_status" >&5
4343echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346( exit $ac_status )
4347ac_cv_c_bigendian=yes
4348fi
4349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350fi
4351
4352
4353fi
4354
4355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356fi
4357{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359case $ac_cv_c_bigendian in
4360 yes)
4361 ENDIAN=big
4362 ;;
4363 no)
4364 ENDIAN=little
4365 ;;
4366 *)
4367 { { echo "$as_me:$LINENO: error: unknown endianness
4368presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369echo "$as_me: error: unknown endianness
4370presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371 { (exit 1); exit 1; }; } ;;
4372esac
4373
4374
4375if test "$cross_compiling" = yes; then
4376 LLVM_CROSS_COMPILING=1
4377
4378
4379{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381if test "${ac_cv_build_exeext+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385 ac_cv_build_exeext=.exe
4386else
4387 ac_build_prefix=${build_alias}-
4388
4389 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390set dummy ${ac_build_prefix}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="${ac_build_prefix}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 "gcc", so it can be a program name with args.
4428set dummy gcc; 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
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_BUILD_CC="gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
4449done
4450IFS=$as_save_IFS
4451
4452fi
4453fi
4454BUILD_CC=$ac_cv_prog_BUILD_CC
4455if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457echo "${ECHO_T}$BUILD_CC" >&6; }
4458else
4459 { echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6; }
4461fi
4462
4463
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "cc", so it can be a program name with args.
4466set dummy cc; ac_word=$2
4467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471else
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474else
4475 ac_prog_rejected=no
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4485 continue
4486 fi
4487 ac_cv_prog_BUILD_CC="cc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491done
4492done
4493IFS=$as_save_IFS
4494
4495if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CC
4498 shift
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CC to just the basename; use the full file name.
4503 shift
4504 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 fi
4506fi
4507fi
4508fi
4509BUILD_CC=$ac_cv_prog_BUILD_CC
4510if test -n "$BUILD_CC"; then
4511 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512echo "${ECHO_T}$BUILD_CC" >&6; }
4513else
4514 { echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6; }
4516fi
4517
4518
4519 fi
4520 fi
4521 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523 { (exit 1); exit 1; }; }
4524 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4525 rm -f conftest*
4526 echo 'int main () { return 0; }' > conftest.$ac_ext
4527 ac_cv_build_exeext=
4528 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4529 (eval $ac_build_link) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 for file in conftest.*; do
4534 case $file in
4535 *.c | *.o | *.obj) ;;
4536 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4537 esac
4538 done
4539 else
4540 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542 { (exit 1); exit 1; }; }
4543 fi
4544 rm -f conftest*
4545 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546fi
4547fi
4548
4549BUILD_EXEEXT=""
4550test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4551{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4553ac_build_exeext=$BUILD_EXEEXT
4554
4555else
4556 LLVM_CROSS_COMPILING=0
4557
4558fi
4559
Reid Spencer0b1e4662007-04-02 15:41:39 +00004560if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004561 cvsbuild="yes"
4562 optimize="no"
4563 CVSBUILD=CVSBUILD=1
4564
4565else
4566 cvsbuild="no"
4567 optimize="yes"
4568fi
4569
4570
4571# Check whether --enable-optimized was given.
4572if test "${enable_optimized+set}" = set; then
4573 enableval=$enable_optimized;
4574else
4575 enableval=$optimize
4576fi
4577
4578if test ${enableval} = "no" ; then
4579 ENABLE_OPTIMIZED=
4580
4581else
4582 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4583
4584fi
4585
4586# Check whether --enable-assertions was given.
4587if test "${enable_assertions+set}" = set; then
4588 enableval=$enable_assertions;
4589else
4590 enableval="yes"
4591fi
4592
4593if test ${enableval} = "yes" ; then
4594 DISABLE_ASSERTIONS=
4595
4596else
4597 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4598
4599fi
4600
David Greenea696d242007-06-28 19:36:08 +00004601# Check whether --enable-expensive-checks was given.
4602if test "${enable_expensive_checks+set}" = set; then
4603 enableval=$enable_expensive_checks;
4604else
4605 enableval="no"
4606fi
4607
4608if test ${enableval} = "yes" ; then
4609 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4610
4611 EXPENSIVE_CHECKS=yes
4612
4613else
4614 ENABLE_EXPENSIVE_CHECKS=
4615
4616 EXPENSIVE_CHECKS=no
4617
4618fi
4619
Reid Spencer8b2e1412006-11-17 03:32:33 +00004620# Check whether --enable-debug-runtime was given.
4621if test "${enable_debug_runtime+set}" = set; then
4622 enableval=$enable_debug_runtime;
4623else
4624 enableval=no
4625fi
4626
4627if test ${enableval} = "no" ; then
4628 DEBUG_RUNTIME=
4629
4630else
4631 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4632
4633fi
4634
Reid Spencera773bd52006-08-04 18:18:08 +00004635# Check whether --enable-jit was given.
4636if test "${enable_jit+set}" = set; then
4637 enableval=$enable_jit;
4638else
4639 enableval=default
4640fi
4641
4642if test ${enableval} = "no"
4643then
4644 JIT=
4645
4646else
4647 case "$llvm_cv_target_arch" in
4648 x86) TARGET_HAS_JIT=1
4649 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004650 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004651 ;;
4652 PowerPC) TARGET_HAS_JIT=1
4653 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004654 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004655 ;;
4656 Alpha) TARGET_HAS_JIT=1
4657 ;;
4658 IA64) TARGET_HAS_JIT=0
4659 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004660 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004661 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004662 Mips) TARGET_HAS_JIT=0
4663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004664 *) TARGET_HAS_JIT=0
4665 ;;
4666 esac
4667fi
4668
4669# Check whether --enable-doxygen was given.
4670if test "${enable_doxygen+set}" = set; then
4671 enableval=$enable_doxygen;
4672else
4673 enableval=default
4674fi
4675
4676case "$enableval" in
4677 yes) ENABLE_DOXYGEN=1
4678 ;;
4679 no) ENABLE_DOXYGEN=0
4680 ;;
4681 default) ENABLE_DOXYGEN=0
4682 ;;
4683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4684echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4685 { (exit 1); exit 1; }; } ;;
4686esac
4687
4688# Check whether --enable-threads was given.
4689if test "${enable_threads+set}" = set; then
4690 enableval=$enable_threads;
4691else
Reid Spencer65c5d752006-11-05 17:08:18 +00004692 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004693fi
4694
4695case "$enableval" in
4696 yes) ENABLE_THREADS=1
4697 ;;
4698 no) ENABLE_THREADS=0
4699 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004700 default) ENABLE_THREADS=1
4701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004702 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4703echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4704 { (exit 1); exit 1; }; } ;;
4705esac
4706
4707cat >>confdefs.h <<_ACEOF
4708#define ENABLE_THREADS $ENABLE_THREADS
4709_ACEOF
4710
4711
Reid Spencer89b0d992006-12-16 22:07:52 +00004712# Check whether --enable-pic was given.
4713if test "${enable_pic+set}" = set; then
4714 enableval=$enable_pic;
4715else
4716 enableval=default
4717fi
4718
4719case "$enableval" in
4720 yes) ENABLE_PIC=1
4721 ;;
4722 no) ENABLE_PIC=0
4723 ;;
4724 default) ENABLE_PIC=0
4725 ;;
4726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4727echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4729esac
4730
4731cat >>confdefs.h <<_ACEOF
4732#define ENABLE_PIC $ENABLE_PIC
4733_ACEOF
4734
4735
Reid Spencera773bd52006-08-04 18:18:08 +00004736TARGETS_TO_BUILD=""
4737# Check whether --enable-targets was given.
4738if test "${enable_targets+set}" = set; then
4739 enableval=$enable_targets;
4740else
4741 enableval=all
4742fi
4743
4744case "$enableval" in
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004745 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004746 host-only)
4747 case "$llvm_cv_target_arch" in
4748 x86) TARGETS_TO_BUILD="X86" ;;
4749 x86_64) TARGETS_TO_BUILD="X86" ;;
4750 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4751 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4752 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4753 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004754 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004755 Mips) TARGETS_TO_BUILD="Mips" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004756 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4757echo "$as_me: error: Can not set target to build" >&2;}
4758 { (exit 1); exit 1; }; } ;;
4759 esac
4760 ;;
4761 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4762 case "$a_target" in
4763 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4764 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4765 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4766 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4767 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4768 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004769 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004770 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004771 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4772echo "$as_me: error: Unrecognized target $a_target" >&2;}
4773 { (exit 1); exit 1; }; } ;;
4774 esac
4775 done
4776 ;;
4777esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004778TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004779TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4780
4781
Reid Spencer65c5d752006-11-05 17:08:18 +00004782# Check whether --enable-cbe-printf-a was given.
4783if test "${enable_cbe_printf_a+set}" = set; then
4784 enableval=$enable_cbe_printf_a;
4785else
4786 enableval=default
4787fi
4788
4789case "$enableval" in
4790 yes) ENABLE_CBE_PRINTF_A=1
4791 ;;
4792 no) ENABLE_CBE_PRINTF_A=0
4793 ;;
4794 default) ENABLE_CBE_PRINTF_A=1
4795 ;;
4796 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4797echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4798 { (exit 1); exit 1; }; } ;;
4799esac
4800
4801cat >>confdefs.h <<_ACEOF
4802#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4803_ACEOF
4804
4805
Reid Spencera773bd52006-08-04 18:18:08 +00004806
4807# Check whether --with-llvmgccdir was given.
4808if test "${with_llvmgccdir+set}" = set; then
4809 withval=$with_llvmgccdir;
4810else
4811 withval=default
4812fi
4813
4814case "$withval" in
4815 default) WITH_LLVMGCCDIR=default ;;
4816 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4817 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4818echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4819 { (exit 1); exit 1; }; } ;;
4820esac
4821
4822
Devang Patel5d28b882007-12-04 22:54:47 +00004823# Check whether --with-llvmgcc was given.
4824if test "${with_llvmgcc+set}" = set; then
4825 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4826 WITH_LLVMGCCDIR=""
4827fi
4828
4829
4830
4831# Check whether --with-llvmgxx was given.
4832if test "${with_llvmgxx+set}" = set; then
4833 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4834 WITH_LLVMGCCDIR=""
4835fi
4836
4837
4838if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4839 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4840echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4841 { (exit 1); exit 1; }; };
4842fi
4843
4844if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4845 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4846echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4847 { (exit 1); exit 1; }; };
4848fi
4849
4850
Reid Spencera773bd52006-08-04 18:18:08 +00004851# Check whether --with-extra-options was given.
4852if test "${with_extra_options+set}" = set; then
4853 withval=$with_extra_options;
4854else
4855 withval=default
4856fi
4857
4858case "$withval" in
4859 default) EXTRA_OPTIONS= ;;
4860 *) EXTRA_OPTIONS=$withval ;;
4861esac
4862EXTRA_OPTIONS=$EXTRA_OPTIONS
4863
4864
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004865# Check whether --enable-bindings was given.
4866if test "${enable_bindings+set}" = set; then
4867 enableval=$enable_bindings;
4868else
4869 enableval=default
4870fi
4871
4872BINDINGS_TO_BUILD=""
4873case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004874 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004875 all ) BINDINGS_TO_BUILD="ocaml" ;;
4876 none | no) BINDINGS_TO_BUILD="" ;;
4877 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4878 case "$a_binding" in
4879 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4880 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4881echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4882 { (exit 1); exit 1; }; } ;;
4883 esac
4884 done
4885 ;;
4886esac
4887
Reid Spencera773bd52006-08-04 18:18:08 +00004888
Gordon Henriksenf0915682007-10-02 16:42:22 +00004889# Check whether --with-ocaml-libdir was given.
4890if test "${with_ocaml_libdir+set}" = set; then
4891 withval=$with_ocaml_libdir;
4892else
4893 withval=auto
4894fi
4895
4896case "$withval" in
4897 auto) with_ocaml_libdir="$withval" ;;
4898 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4899 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4900echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4902esac
4903
4904
Reid Spencera773bd52006-08-04 18:18:08 +00004905ac_ext=c
4906ac_cpp='$CPP $CPPFLAGS'
4907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4911echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4912# On Suns, sometimes $CPP names a directory.
4913if test -n "$CPP" && test -d "$CPP"; then
4914 CPP=
4915fi
4916if test -z "$CPP"; then
4917 if test "${ac_cv_prog_CPP+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919else
4920 # Double quotes because CPP needs to be expanded
4921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4922 do
4923 ac_preproc_ok=false
4924for ac_c_preproc_warn_flag in '' yes
4925do
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
4928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
4930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat >conftest.$ac_ext <<_ACEOF
4933/* confdefs.h. */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h. */
4938#ifdef __STDC__
4939# include <limits.h>
4940#else
4941# include <assert.h>
4942#endif
4943 Syntax error
4944_ACEOF
4945if { (ac_try="$ac_cpp conftest.$ac_ext"
4946case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949esac
4950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } >/dev/null; then
4958 if test -s conftest.err; then
4959 ac_cpp_err=$ac_c_preproc_warn_flag
4960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4961 else
4962 ac_cpp_err=
4963 fi
4964else
4965 ac_cpp_err=yes
4966fi
4967if test -z "$ac_cpp_err"; then
4968 :
4969else
4970 echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973 # Broken: fails on valid input.
4974continue
4975fi
4976
4977rm -f conftest.err conftest.$ac_ext
4978
4979 # OK, works on sane cases. Now check whether nonexistent headers
4980 # can be detected and how.
4981 cat >conftest.$ac_ext <<_ACEOF
4982/* confdefs.h. */
4983_ACEOF
4984cat confdefs.h >>conftest.$ac_ext
4985cat >>conftest.$ac_ext <<_ACEOF
4986/* end confdefs.h. */
4987#include <ac_nonexistent.h>
4988_ACEOF
4989if { (ac_try="$ac_cpp conftest.$ac_ext"
4990case "(($ac_try" in
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993esac
4994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_c_preproc_warn_flag
5004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5005 else
5006 ac_cpp_err=
5007 fi
5008else
5009 ac_cpp_err=yes
5010fi
5011if test -z "$ac_cpp_err"; then
5012 # Broken: success on invalid input.
5013continue
5014else
5015 echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 # Passes both tests.
5019ac_preproc_ok=:
5020break
5021fi
5022
5023rm -f conftest.err conftest.$ac_ext
5024
5025done
5026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027rm -f conftest.err conftest.$ac_ext
5028if $ac_preproc_ok; then
5029 break
5030fi
5031
5032 done
5033 ac_cv_prog_CPP=$CPP
5034
5035fi
5036 CPP=$ac_cv_prog_CPP
5037else
5038 ac_cv_prog_CPP=$CPP
5039fi
5040{ echo "$as_me:$LINENO: result: $CPP" >&5
5041echo "${ECHO_T}$CPP" >&6; }
5042ac_preproc_ok=false
5043for ac_c_preproc_warn_flag in '' yes
5044do
5045 # Use a header file that comes with gcc, so configuring glibc
5046 # with a fresh cross-compiler works.
5047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 # <limits.h> exists even on freestanding compilers.
5049 # On the NeXT, cc -E runs the code through the compiler's parser,
5050 # not just through cpp. "Syntax error" is here to catch this case.
5051 cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
5057#ifdef __STDC__
5058# include <limits.h>
5059#else
5060# include <assert.h>
5061#endif
5062 Syntax error
5063_ACEOF
5064if { (ac_try="$ac_cpp conftest.$ac_ext"
5065case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068esac
5069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } >/dev/null; then
5077 if test -s conftest.err; then
5078 ac_cpp_err=$ac_c_preproc_warn_flag
5079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5080 else
5081 ac_cpp_err=
5082 fi
5083else
5084 ac_cpp_err=yes
5085fi
5086if test -z "$ac_cpp_err"; then
5087 :
5088else
5089 echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 # Broken: fails on valid input.
5093continue
5094fi
5095
5096rm -f conftest.err conftest.$ac_ext
5097
5098 # OK, works on sane cases. Now check whether nonexistent headers
5099 # can be detected and how.
5100 cat >conftest.$ac_ext <<_ACEOF
5101/* confdefs.h. */
5102_ACEOF
5103cat confdefs.h >>conftest.$ac_ext
5104cat >>conftest.$ac_ext <<_ACEOF
5105/* end confdefs.h. */
5106#include <ac_nonexistent.h>
5107_ACEOF
5108if { (ac_try="$ac_cpp conftest.$ac_ext"
5109case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112esac
5113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_c_preproc_warn_flag
5123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5124 else
5125 ac_cpp_err=
5126 fi
5127else
5128 ac_cpp_err=yes
5129fi
5130if test -z "$ac_cpp_err"; then
5131 # Broken: success on invalid input.
5132continue
5133else
5134 echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 # Passes both tests.
5138ac_preproc_ok=:
5139break
5140fi
5141
5142rm -f conftest.err conftest.$ac_ext
5143
5144done
5145# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5146rm -f conftest.err conftest.$ac_ext
5147if $ac_preproc_ok; then
5148 :
5149else
5150 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5151See \`config.log' for more details." >&5
5152echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5153See \`config.log' for more details." >&2;}
5154 { (exit 1); exit 1; }; }
5155fi
5156
5157ac_ext=c
5158ac_cpp='$CPP $CPPFLAGS'
5159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161ac_compiler_gnu=$ac_cv_c_compiler_gnu
5162
5163ac_ext=c
5164ac_cpp='$CPP $CPPFLAGS'
5165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168if test -n "$ac_tool_prefix"; then
5169 for ac_prog in gcc
5170 do
5171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175if test "${ac_cv_prog_CC+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178 if test -n "$CC"; then
5179 ac_cv_prog_CC="$CC" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192done
5193done
5194IFS=$as_save_IFS
5195
5196fi
5197fi
5198CC=$ac_cv_prog_CC
5199if test -n "$CC"; then
5200 { echo "$as_me:$LINENO: result: $CC" >&5
5201echo "${ECHO_T}$CC" >&6; }
5202else
5203 { echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6; }
5205fi
5206
5207
5208 test -n "$CC" && break
5209 done
5210fi
5211if test -z "$CC"; then
5212 ac_ct_CC=$CC
5213 for ac_prog in gcc
5214do
5215 # Extract the first word of "$ac_prog", so it can be a program name with args.
5216set dummy $ac_prog; ac_word=$2
5217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222 if test -n "$ac_ct_CC"; then
5223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_ac_ct_CC="$ac_prog"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236done
5237done
5238IFS=$as_save_IFS
5239
5240fi
5241fi
5242ac_ct_CC=$ac_cv_prog_ac_ct_CC
5243if test -n "$ac_ct_CC"; then
5244 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5245echo "${ECHO_T}$ac_ct_CC" >&6; }
5246else
5247 { echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6; }
5249fi
5250
5251
5252 test -n "$ac_ct_CC" && break
5253done
5254
5255 if test "x$ac_ct_CC" = x; then
5256 CC=""
5257 else
5258 case $cross_compiling:$ac_tool_warned in
5259yes:)
5260{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5261whose name does not start with the host triplet. If you think this
5262configuration is useful to you, please write to autoconf@gnu.org." >&5
5263echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5264whose name does not start with the host triplet. If you think this
5265configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5266ac_tool_warned=yes ;;
5267esac
5268 CC=$ac_ct_CC
5269 fi
5270fi
5271
5272
5273test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5274See \`config.log' for more details." >&5
5275echo "$as_me: error: no acceptable C compiler found in \$PATH
5276See \`config.log' for more details." >&2;}
5277 { (exit 1); exit 1; }; }
5278
5279# Provide some information about the compiler.
5280echo "$as_me:$LINENO: checking for C compiler version" >&5
5281ac_compiler=`set X $ac_compile; echo $2`
5282{ (ac_try="$ac_compiler --version >&5"
5283case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286esac
5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_compiler --version >&5") 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }
5292{ (ac_try="$ac_compiler -v >&5"
5293case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296esac
5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_compiler -v >&5") 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }
5302{ (ac_try="$ac_compiler -V >&5"
5303case "(($ac_try" in
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5306esac
5307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compiler -V >&5") 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }
5312
5313{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5314echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5315if test "${ac_cv_c_compiler_gnu+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318 cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h. */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h. */
5324
5325int
5326main ()
5327{
5328#ifndef __GNUC__
5329 choke me
5330#endif
5331
5332 ;
5333 return 0;
5334}
5335_ACEOF
5336rm -f conftest.$ac_objext
5337if { (ac_try="$ac_compile"
5338case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341esac
5342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compile") 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5351 { (case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_try") 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; } &&
5360 { ac_try='test -s conftest.$ac_objext'
5361 { (case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5364esac
5365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_try") 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_compiler_gnu=yes
5371else
5372 echo "$as_me: failed program was:" >&5
5373sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ac_compiler_gnu=no
5376fi
5377
5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379ac_cv_c_compiler_gnu=$ac_compiler_gnu
5380
5381fi
5382{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5383echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5384GCC=`test $ac_compiler_gnu = yes && echo yes`
5385ac_test_CFLAGS=${CFLAGS+set}
5386ac_save_CFLAGS=$CFLAGS
5387{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5388echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5389if test "${ac_cv_prog_cc_g+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391else
5392 ac_save_c_werror_flag=$ac_c_werror_flag
5393 ac_c_werror_flag=yes
5394 ac_cv_prog_cc_g=no
5395 CFLAGS="-g"
5396 cat >conftest.$ac_ext <<_ACEOF
5397/* confdefs.h. */
5398_ACEOF
5399cat confdefs.h >>conftest.$ac_ext
5400cat >>conftest.$ac_ext <<_ACEOF
5401/* end confdefs.h. */
5402
5403int
5404main ()
5405{
5406
5407 ;
5408 return 0;
5409}
5410_ACEOF
5411rm -f conftest.$ac_objext
5412if { (ac_try="$ac_compile"
5413case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_compile") 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_try") 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_prog_cc_g=yes
5446else
5447 echo "$as_me: failed program was:" >&5
5448sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 CFLAGS=""
5451 cat >conftest.$ac_ext <<_ACEOF
5452/* confdefs.h. */
5453_ACEOF
5454cat confdefs.h >>conftest.$ac_ext
5455cat >>conftest.$ac_ext <<_ACEOF
5456/* end confdefs.h. */
5457
5458int
5459main ()
5460{
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466rm -f conftest.$ac_objext
5467if { (ac_try="$ac_compile"
5468case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471esac
5472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_compile") 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5481 { (case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484esac
5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_try") 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5500 :
5501else
5502 echo "$as_me: failed program was:" >&5
5503sed 's/^/| /' conftest.$ac_ext >&5
5504
5505 ac_c_werror_flag=$ac_save_c_werror_flag
5506 CFLAGS="-g"
5507 cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h. */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h. */
5513
5514int
5515main ()
5516{
5517
5518 ;
5519 return 0;
5520}
5521_ACEOF
5522rm -f conftest.$ac_objext
5523if { (ac_try="$ac_compile"
5524case "(($ac_try" in
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5527esac
5528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compile") 2>conftest.er1
5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5537 { (case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540esac
5541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_try") 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; } &&
5546 { ac_try='test -s conftest.$ac_objext'
5547 { (case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550esac
5551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_try") 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_prog_cc_g=yes
5557else
5558 echo "$as_me: failed program was:" >&5
5559sed 's/^/| /' conftest.$ac_ext >&5
5560
5561
5562fi
5563
5564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565fi
5566
5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568fi
5569
5570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 ac_c_werror_flag=$ac_save_c_werror_flag
5572fi
5573{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5574echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5575if test "$ac_test_CFLAGS" = set; then
5576 CFLAGS=$ac_save_CFLAGS
5577elif test $ac_cv_prog_cc_g = yes; then
5578 if test "$GCC" = yes; then
5579 CFLAGS="-g -O2"
5580 else
5581 CFLAGS="-g"
5582 fi
5583else
5584 if test "$GCC" = yes; then
5585 CFLAGS="-O2"
5586 else
5587 CFLAGS=
5588 fi
5589fi
5590{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5591echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5592if test "${ac_cv_prog_cc_c89+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595 ac_cv_prog_cc_c89=no
5596ac_save_CC=$CC
5597cat >conftest.$ac_ext <<_ACEOF
5598/* confdefs.h. */
5599_ACEOF
5600cat confdefs.h >>conftest.$ac_ext
5601cat >>conftest.$ac_ext <<_ACEOF
5602/* end confdefs.h. */
5603#include <stdarg.h>
5604#include <stdio.h>
5605#include <sys/types.h>
5606#include <sys/stat.h>
5607/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5608struct buf { int x; };
5609FILE * (*rcsopen) (struct buf *, struct stat *, int);
5610static char *e (p, i)
5611 char **p;
5612 int i;
5613{
5614 return p[i];
5615}
5616static char *f (char * (*g) (char **, int), char **p, ...)
5617{
5618 char *s;
5619 va_list v;
5620 va_start (v,p);
5621 s = g (p, va_arg (v,int));
5622 va_end (v);
5623 return s;
5624}
5625
5626/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5627 function prototypes and stuff, but not '\xHH' hex character constants.
5628 These don't provoke an error unfortunately, instead are silently treated
5629 as 'x'. The following induces an error, until -std is added to get
5630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5631 array size at least. It's necessary to write '\x00'==0 to get something
5632 that's true only with -std. */
5633int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5634
5635/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5636 inside strings and character constants. */
5637#define FOO(x) 'x'
5638int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5639
5640int test (int i, double x);
5641struct s1 {int (*f) (int a);};
5642struct s2 {int (*f) (double a);};
5643int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5644int argc;
5645char **argv;
5646int
5647main ()
5648{
5649return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5655 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5656do
5657 CC="$ac_save_CC $ac_arg"
5658 rm -f conftest.$ac_objext
5659if { (ac_try="$ac_compile"
5660case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663esac
5664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_compile") 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5673 { (case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676esac
5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_try") 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; } &&
5682 { ac_try='test -s conftest.$ac_objext'
5683 { (case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686esac
5687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_try") 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_prog_cc_c89=$ac_arg
5693else
5694 echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697
5698fi
5699
5700rm -f core conftest.err conftest.$ac_objext
5701 test "x$ac_cv_prog_cc_c89" != "xno" && break
5702done
5703rm -f conftest.$ac_ext
5704CC=$ac_save_CC
5705
5706fi
5707# AC_CACHE_VAL
5708case "x$ac_cv_prog_cc_c89" in
5709 x)
5710 { echo "$as_me:$LINENO: result: none needed" >&5
5711echo "${ECHO_T}none needed" >&6; } ;;
5712 xno)
5713 { echo "$as_me:$LINENO: result: unsupported" >&5
5714echo "${ECHO_T}unsupported" >&6; } ;;
5715 *)
5716 CC="$CC $ac_cv_prog_cc_c89"
5717 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5718echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5719esac
5720
5721
5722ac_ext=c
5723ac_cpp='$CPP $CPPFLAGS'
5724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727
5728ac_ext=cpp
5729ac_cpp='$CXXCPP $CPPFLAGS'
5730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5733if test -z "$CXX"; then
5734 if test -n "$CCC"; then
5735 CXX=$CCC
5736 else
5737 if test -n "$ac_tool_prefix"; then
5738 for ac_prog in g++
5739 do
5740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744if test "${ac_cv_prog_CXX+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747 if test -n "$CXX"; then
5748 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5757 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761done
5762done
5763IFS=$as_save_IFS
5764
5765fi
5766fi
5767CXX=$ac_cv_prog_CXX
5768if test -n "$CXX"; then
5769 { echo "$as_me:$LINENO: result: $CXX" >&5
5770echo "${ECHO_T}$CXX" >&6; }
5771else
5772 { echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6; }
5774fi
5775
5776
5777 test -n "$CXX" && break
5778 done
5779fi
5780if test -z "$CXX"; then
5781 ac_ct_CXX=$CXX
5782 for ac_prog in g++
5783do
5784 # Extract the first word of "$ac_prog", so it can be a program name with args.
5785set dummy $ac_prog; ac_word=$2
5786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791 if test -n "$ac_ct_CXX"; then
5792 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_ac_ct_CXX="$ac_prog"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805done
5806done
5807IFS=$as_save_IFS
5808
5809fi
5810fi
5811ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5812if test -n "$ac_ct_CXX"; then
5813 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5814echo "${ECHO_T}$ac_ct_CXX" >&6; }
5815else
5816 { echo "$as_me:$LINENO: result: no" >&5
5817echo "${ECHO_T}no" >&6; }
5818fi
5819
5820
5821 test -n "$ac_ct_CXX" && break
5822done
5823
5824 if test "x$ac_ct_CXX" = x; then
5825 CXX="g++"
5826 else
5827 case $cross_compiling:$ac_tool_warned in
5828yes:)
5829{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5830whose name does not start with the host triplet. If you think this
5831configuration is useful to you, please write to autoconf@gnu.org." >&5
5832echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5833whose name does not start with the host triplet. If you think this
5834configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5835ac_tool_warned=yes ;;
5836esac
5837 CXX=$ac_ct_CXX
5838 fi
5839fi
5840
5841 fi
5842fi
5843# Provide some information about the compiler.
5844echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5845ac_compiler=`set X $ac_compile; echo $2`
5846{ (ac_try="$ac_compiler --version >&5"
5847case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compiler --version >&5") 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }
5856{ (ac_try="$ac_compiler -v >&5"
5857case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860esac
5861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_compiler -v >&5") 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }
5866{ (ac_try="$ac_compiler -V >&5"
5867case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870esac
5871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compiler -V >&5") 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }
5876
5877{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5878echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5879if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882 cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h. */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h. */
5888
5889int
5890main ()
5891{
5892#ifndef __GNUC__
5893 choke me
5894#endif
5895
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900rm -f conftest.$ac_objext
5901if { (ac_try="$ac_compile"
5902case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_compile") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5915 { (case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_try") 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest.$ac_objext'
5925 { (case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928esac
5929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_try") 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5934 ac_compiler_gnu=yes
5935else
5936 echo "$as_me: failed program was:" >&5
5937sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ac_compiler_gnu=no
5940fi
5941
5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5944
5945fi
5946{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5947echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5948GXX=`test $ac_compiler_gnu = yes && echo yes`
5949ac_test_CXXFLAGS=${CXXFLAGS+set}
5950ac_save_CXXFLAGS=$CXXFLAGS
5951{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5952echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5953if test "${ac_cv_prog_cxx_g+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955else
5956 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5957 ac_cxx_werror_flag=yes
5958 ac_cv_prog_cxx_g=no
5959 CXXFLAGS="-g"
5960 cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h. */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h. */
5966
5967int
5968main ()
5969{
5970
5971 ;
5972 return 0;
5973}
5974_ACEOF
5975rm -f conftest.$ac_objext
5976if { (ac_try="$ac_compile"
5977case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993esac
5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_prog_cxx_g=yes
6010else
6011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 CXXFLAGS=""
6015 cat >conftest.$ac_ext <<_ACEOF
6016/* confdefs.h. */
6017_ACEOF
6018cat confdefs.h >>conftest.$ac_ext
6019cat >>conftest.$ac_ext <<_ACEOF
6020/* end confdefs.h. */
6021
6022int
6023main ()
6024{
6025
6026 ;
6027 return 0;
6028}
6029_ACEOF
6030rm -f conftest.$ac_objext
6031if { (ac_try="$ac_compile"
6032case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035esac
6036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6045 { (case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048esac
6049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_try") 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest.$ac_objext'
6055 { (case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_try") 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 :
6065else
6066 echo "$as_me: failed program was:" >&5
6067sed 's/^/| /' conftest.$ac_ext >&5
6068
6069 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6070 CXXFLAGS="-g"
6071 cat >conftest.$ac_ext <<_ACEOF
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
6077
6078int
6079main ()
6080{
6081
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086rm -f conftest.$ac_objext
6087if { (ac_try="$ac_compile"
6088case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091esac
6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6101 { (case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104esac
6105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_try") 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest.$ac_objext'
6111 { (case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_try") 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_prog_cxx_g=yes
6121else
6122 echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125
6126fi
6127
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129fi
6130
6131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132fi
6133
6134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6136fi
6137{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6138echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6139if test "$ac_test_CXXFLAGS" = set; then
6140 CXXFLAGS=$ac_save_CXXFLAGS
6141elif test $ac_cv_prog_cxx_g = yes; then
6142 if test "$GXX" = yes; then
6143 CXXFLAGS="-g -O2"
6144 else
6145 CXXFLAGS="-g"
6146 fi
6147else
6148 if test "$GXX" = yes; then
6149 CXXFLAGS="-O2"
6150 else
6151 CXXFLAGS=
6152 fi
6153fi
6154ac_ext=c
6155ac_cpp='$CPP $CPPFLAGS'
6156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158ac_compiler_gnu=$ac_cv_c_compiler_gnu
6159
6160{ echo "$as_me:$LINENO: checking " >&5
6161echo $ECHO_N "checking ... $ECHO_C" >&6; }
6162if test "${ac_cv_has_flex+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165 for ac_prog in flex lex
6166do
6167 # Extract the first word of "$ac_prog", so it can be a program name with args.
6168set dummy $ac_prog; ac_word=$2
6169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171if test "${ac_cv_prog_LEX+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174 if test -n "$LEX"; then
6175 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_LEX="$ac_prog"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188done
6189done
6190IFS=$as_save_IFS
6191
6192fi
6193fi
6194LEX=$ac_cv_prog_LEX
6195if test -n "$LEX"; then
6196 { echo "$as_me:$LINENO: result: $LEX" >&5
6197echo "${ECHO_T}$LEX" >&6; }
6198else
6199 { echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6; }
6201fi
6202
6203
6204 test -n "$LEX" && break
6205done
6206test -n "$LEX" || LEX=":"
6207
6208if test -z "$LEXLIB"
6209then
6210 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6211echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6212if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215 ac_check_lib_save_LIBS=$LIBS
6216LIBS="-lfl $LIBS"
6217cat >conftest.$ac_ext <<_ACEOF
6218/* confdefs.h. */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h. */
6223
6224/* Override any GCC internal prototype to avoid an error.
6225 Use char because int might match the return type of a GCC
6226 builtin and then its argument prototype would still apply. */
6227#ifdef __cplusplus
6228extern "C"
6229#endif
6230char yywrap ();
6231int
6232main ()
6233{
6234return yywrap ();
6235 ;
6236 return 0;
6237}
6238_ACEOF
6239rm -f conftest.$ac_objext conftest$ac_exeext
6240if { (ac_try="$ac_link"
6241case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244esac
6245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_link") 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6254 { (case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257esac
6258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_try") 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest$ac_exeext'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267esac
6268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 ac_cv_lib_fl_yywrap=yes
6274else
6275 echo "$as_me: failed program was:" >&5
6276sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 ac_cv_lib_fl_yywrap=no
6279fi
6280
6281rm -f core conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext conftest.$ac_ext
6283LIBS=$ac_check_lib_save_LIBS
6284fi
6285{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6286echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6287if test $ac_cv_lib_fl_yywrap = yes; then
6288 LEXLIB="-lfl"
6289else
6290 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6291echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6292if test "${ac_cv_lib_l_yywrap+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295 ac_check_lib_save_LIBS=$LIBS
6296LIBS="-ll $LIBS"
6297cat >conftest.$ac_ext <<_ACEOF
6298/* confdefs.h. */
6299_ACEOF
6300cat confdefs.h >>conftest.$ac_ext
6301cat >>conftest.$ac_ext <<_ACEOF
6302/* end confdefs.h. */
6303
6304/* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6307#ifdef __cplusplus
6308extern "C"
6309#endif
6310char yywrap ();
6311int
6312main ()
6313{
6314return yywrap ();
6315 ;
6316 return 0;
6317}
6318_ACEOF
6319rm -f conftest.$ac_objext conftest$ac_exeext
6320if { (ac_try="$ac_link"
6321case "(($ac_try" in
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6324esac
6325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326 (eval "$ac_link") 2>conftest.er1
6327 ac_status=$?
6328 grep -v '^ *+' conftest.er1 >conftest.err
6329 rm -f conftest.er1
6330 cat conftest.err >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6334 { (case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337esac
6338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_try") 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; } &&
6343 { ac_try='test -s conftest$ac_exeext'
6344 { (case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_try") 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_lib_l_yywrap=yes
6354else
6355 echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ac_cv_lib_l_yywrap=no
6359fi
6360
6361rm -f core conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6363LIBS=$ac_check_lib_save_LIBS
6364fi
6365{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6366echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6367if test $ac_cv_lib_l_yywrap = yes; then
6368 LEXLIB="-ll"
6369fi
6370
6371fi
6372
6373fi
6374
6375if test "x$LEX" != "x:"; then
6376 { echo "$as_me:$LINENO: checking lex output file root" >&5
6377echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6378if test "${ac_cv_prog_lex_root+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381 # The minimal lex program is just a single line: %%. But some broken lexes
6382# (Solaris, I think it was) want two %% lines, so accommodate them.
6383cat >conftest.l <<_ACEOF
6384%%
6385%%
6386_ACEOF
6387{ (ac_try="$LEX conftest.l"
6388case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391esac
6392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$LEX conftest.l") 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }
6397if test -f lex.yy.c; then
6398 ac_cv_prog_lex_root=lex.yy
6399elif test -f lexyy.c; then
6400 ac_cv_prog_lex_root=lexyy
6401else
6402 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6403echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6404 { (exit 1); exit 1; }; }
6405fi
6406fi
6407{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6408echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6409rm -f conftest.l
6410LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6411
6412{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6413echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6414if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416else
6417 # POSIX says lex can declare yytext either as a pointer or an array; the
6418# default is implementation-dependent. Figure out which it is, since
6419# not all implementations provide the %pointer and %array declarations.
6420ac_cv_prog_lex_yytext_pointer=no
6421echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6422ac_save_LIBS=$LIBS
6423LIBS="$LIBS $LEXLIB"
6424cat >conftest.$ac_ext <<_ACEOF
6425`cat $LEX_OUTPUT_ROOT.c`
6426_ACEOF
6427rm -f conftest.$ac_objext conftest$ac_exeext
6428if { (ac_try="$ac_link"
6429case "(($ac_try" in
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6432esac
6433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_link") 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6442 { (case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6445esac
6446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_try") 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; } &&
6451 { ac_try='test -s conftest$ac_exeext'
6452 { (case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455esac
6456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_try") 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_cv_prog_lex_yytext_pointer=yes
6462else
6463 echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466
6467fi
6468
6469rm -f core conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6471LIBS=$ac_save_LIBS
6472rm -f "${LEX_OUTPUT_ROOT}.c"
6473
6474fi
6475{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6476echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6477if test $ac_cv_prog_lex_yytext_pointer = yes; then
6478
6479cat >>confdefs.h <<\_ACEOF
6480#define YYTEXT_POINTER 1
6481_ACEOF
6482
6483fi
6484
6485fi
6486
6487fi
6488{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6489echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6490if test "$LEX" != "flex"; then
6491 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6492echo "$as_me: error: flex not found but required" >&2;}
6493 { (exit 1); exit 1; }; }
6494else
6495 FLEX=flex
6496
6497fi
6498
6499{ echo "$as_me:$LINENO: checking " >&5
6500echo $ECHO_N "checking ... $ECHO_C" >&6; }
6501if test "${llvm_cv_has_bison+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
6504 for ac_prog in 'bison -y' byacc
6505do
6506 # Extract the first word of "$ac_prog", so it can be a program name with args.
6507set dummy $ac_prog; ac_word=$2
6508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6510if test "${ac_cv_prog_YACC+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513 if test -n "$YACC"; then
6514 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6515else
6516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517for as_dir in $PATH
6518do
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_YACC="$ac_prog"
6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527done
6528done
6529IFS=$as_save_IFS
6530
6531fi
6532fi
6533YACC=$ac_cv_prog_YACC
6534if test -n "$YACC"; then
6535 { echo "$as_me:$LINENO: result: $YACC" >&5
6536echo "${ECHO_T}$YACC" >&6; }
6537else
6538 { echo "$as_me:$LINENO: result: no" >&5
6539echo "${ECHO_T}no" >&6; }
6540fi
6541
6542
6543 test -n "$YACC" && break
6544done
6545test -n "$YACC" || YACC="yacc"
6546
6547fi
6548{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6549echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6550if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006551
6552 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6553echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006554else
6555 BISON=bison
6556
6557fi
6558
6559{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6560echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6561if test "${lt_cv_path_NM+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563else
6564 if test -n "$NM"; then
6565 # Let the user override the test.
6566 lt_cv_path_NM="$NM"
6567else
6568 lt_nm_to_check="${ac_tool_prefix}nm"
6569 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6570 lt_nm_to_check="$lt_nm_to_check nm"
6571 fi
6572 for lt_tmp_nm in $lt_nm_to_check; do
6573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6574 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6575 IFS="$lt_save_ifs"
6576 test -z "$ac_dir" && ac_dir=.
6577 tmp_nm="$ac_dir/$lt_tmp_nm"
6578 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6579 # Check to see if the nm accepts a BSD-compat flag.
6580 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6581 # nm: unknown option "B" ignored
6582 # Tru64's nm complains that /dev/null is an invalid object file
6583 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6584 */dev/null* | *'Invalid file or object type'*)
6585 lt_cv_path_NM="$tmp_nm -B"
6586 break
6587 ;;
6588 *)
6589 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6590 */dev/null*)
6591 lt_cv_path_NM="$tmp_nm -p"
6592 break
6593 ;;
6594 *)
6595 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6596 continue # so that we can try to find one that supports BSD flags
6597 ;;
6598 esac
6599 ;;
6600 esac
6601 fi
6602 done
6603 IFS="$lt_save_ifs"
6604 done
6605 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6606fi
6607fi
6608{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6609echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6610NM="$lt_cv_path_NM"
6611
6612
6613
6614{ echo "$as_me:$LINENO: checking for GNU make" >&5
6615echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6616if test "${llvm_cv_gnu_make_command+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619 llvm_cv_gnu_make_command=''
6620 for a in "$MAKE" make gmake gnumake ; do
6621 if test -z "$a" ; then continue ; fi ;
6622 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6623 then
6624 llvm_cv_gnu_make_command=$a ;
6625 break;
6626 fi
6627 done
6628fi
6629{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6630echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6631 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6632 ifGNUmake='' ;
6633 else
6634 ifGNUmake='#' ;
6635 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6636echo "${ECHO_T}\"Not found\"" >&6; };
6637 fi
6638
6639
6640{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6641echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6642LN_S=$as_ln_s
6643if test "$LN_S" = "ln -s"; then
6644 { echo "$as_me:$LINENO: result: yes" >&5
6645echo "${ECHO_T}yes" >&6; }
6646else
6647 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6648echo "${ECHO_T}no, using $LN_S" >&6; }
6649fi
6650
6651# Extract the first word of "cmp", so it can be a program name with args.
6652set dummy cmp; ac_word=$2
6653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655if test "${ac_cv_path_CMP+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657else
6658 case $CMP in
6659 [\\/]* | ?:[\\/]*)
6660 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6661 ;;
6662 *)
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674done
6675done
6676IFS=$as_save_IFS
6677
6678 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6679 ;;
6680esac
6681fi
6682CMP=$ac_cv_path_CMP
6683if test -n "$CMP"; then
6684 { echo "$as_me:$LINENO: result: $CMP" >&5
6685echo "${ECHO_T}$CMP" >&6; }
6686else
6687 { echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6; }
6689fi
6690
6691
6692# Extract the first word of "cp", so it can be a program name with args.
6693set dummy cp; ac_word=$2
6694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696if test "${ac_cv_path_CP+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699 case $CP in
6700 [\\/]* | ?:[\\/]*)
6701 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6702 ;;
6703 *)
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715done
6716done
6717IFS=$as_save_IFS
6718
6719 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6720 ;;
6721esac
6722fi
6723CP=$ac_cv_path_CP
6724if test -n "$CP"; then
6725 { echo "$as_me:$LINENO: result: $CP" >&5
6726echo "${ECHO_T}$CP" >&6; }
6727else
6728 { echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6; }
6730fi
6731
6732
6733# Extract the first word of "date", so it can be a program name with args.
6734set dummy date; ac_word=$2
6735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737if test "${ac_cv_path_DATE+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739else
6740 case $DATE in
6741 [\\/]* | ?:[\\/]*)
6742 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6743 ;;
6744 *)
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756done
6757done
6758IFS=$as_save_IFS
6759
6760 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6761 ;;
6762esac
6763fi
6764DATE=$ac_cv_path_DATE
6765if test -n "$DATE"; then
6766 { echo "$as_me:$LINENO: result: $DATE" >&5
6767echo "${ECHO_T}$DATE" >&6; }
6768else
6769 { echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6; }
6771fi
6772
6773
6774# Extract the first word of "find", so it can be a program name with args.
6775set dummy find; ac_word=$2
6776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778if test "${ac_cv_path_FIND+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781 case $FIND in
6782 [\\/]* | ?:[\\/]*)
6783 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6784 ;;
6785 *)
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798done
6799IFS=$as_save_IFS
6800
6801 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6802 ;;
6803esac
6804fi
6805FIND=$ac_cv_path_FIND
6806if test -n "$FIND"; then
6807 { echo "$as_me:$LINENO: result: $FIND" >&5
6808echo "${ECHO_T}$FIND" >&6; }
6809else
6810 { echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6; }
6812fi
6813
6814
6815# Extract the first word of "grep", so it can be a program name with args.
6816set dummy grep; ac_word=$2
6817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819if test "${ac_cv_path_GREP+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821else
6822 case $GREP in
6823 [\\/]* | ?:[\\/]*)
6824 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6825 ;;
6826 *)
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838done
6839done
6840IFS=$as_save_IFS
6841
6842 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6843 ;;
6844esac
6845fi
6846GREP=$ac_cv_path_GREP
6847if test -n "$GREP"; then
6848 { echo "$as_me:$LINENO: result: $GREP" >&5
6849echo "${ECHO_T}$GREP" >&6; }
6850else
6851 { echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6; }
6853fi
6854
6855
6856# Extract the first word of "mkdir", so it can be a program name with args.
6857set dummy mkdir; ac_word=$2
6858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860if test "${ac_cv_path_MKDIR+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863 case $MKDIR in
6864 [\\/]* | ?:[\\/]*)
6865 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6866 ;;
6867 *)
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879done
6880done
6881IFS=$as_save_IFS
6882
6883 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6884 ;;
6885esac
6886fi
6887MKDIR=$ac_cv_path_MKDIR
6888if test -n "$MKDIR"; then
6889 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6890echo "${ECHO_T}$MKDIR" >&6; }
6891else
6892 { echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6; }
6894fi
6895
6896
6897# Extract the first word of "mv", so it can be a program name with args.
6898set dummy mv; ac_word=$2
6899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901if test "${ac_cv_path_MV+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903else
6904 case $MV in
6905 [\\/]* | ?:[\\/]*)
6906 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6907 ;;
6908 *)
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920done
6921done
6922IFS=$as_save_IFS
6923
6924 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6925 ;;
6926esac
6927fi
6928MV=$ac_cv_path_MV
6929if test -n "$MV"; then
6930 { echo "$as_me:$LINENO: result: $MV" >&5
6931echo "${ECHO_T}$MV" >&6; }
6932else
6933 { echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6; }
6935fi
6936
6937
6938if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6940set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6943if test "${ac_cv_prog_RANLIB+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945else
6946 if test -n "$RANLIB"; then
6947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961done
6962IFS=$as_save_IFS
6963
6964fi
6965fi
6966RANLIB=$ac_cv_prog_RANLIB
6967if test -n "$RANLIB"; then
6968 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6969echo "${ECHO_T}$RANLIB" >&6; }
6970else
6971 { echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6; }
6973fi
6974
6975
6976fi
6977if test -z "$ac_cv_prog_RANLIB"; then
6978 ac_ct_RANLIB=$RANLIB
6979 # Extract the first word of "ranlib", so it can be a program name with args.
6980set dummy ranlib; ac_word=$2
6981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 if test -n "$ac_ct_RANLIB"; then
6987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_ac_ct_RANLIB="ranlib"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7007if test -n "$ac_ct_RANLIB"; then
7008 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7009echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7010else
7011 { echo "$as_me:$LINENO: result: no" >&5
7012echo "${ECHO_T}no" >&6; }
7013fi
7014
7015 if test "x$ac_ct_RANLIB" = x; then
7016 RANLIB=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019yes:)
7020{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7021whose name does not start with the host triplet. If you think this
7022configuration is useful to you, please write to autoconf@gnu.org." >&5
7023echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7024whose name does not start with the host triplet. If you think this
7025configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7026ac_tool_warned=yes ;;
7027esac
7028 RANLIB=$ac_ct_RANLIB
7029 fi
7030else
7031 RANLIB="$ac_cv_prog_RANLIB"
7032fi
7033
7034# Extract the first word of "rm", so it can be a program name with args.
7035set dummy rm; ac_word=$2
7036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038if test "${ac_cv_path_RM+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040else
7041 case $RM in
7042 [\\/]* | ?:[\\/]*)
7043 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7044 ;;
7045 *)
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057done
7058done
7059IFS=$as_save_IFS
7060
7061 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7062 ;;
7063esac
7064fi
7065RM=$ac_cv_path_RM
7066if test -n "$RM"; then
7067 { echo "$as_me:$LINENO: result: $RM" >&5
7068echo "${ECHO_T}$RM" >&6; }
7069else
7070 { echo "$as_me:$LINENO: result: no" >&5
7071echo "${ECHO_T}no" >&6; }
7072fi
7073
7074
7075# Extract the first word of "sed", so it can be a program name with args.
7076set dummy sed; ac_word=$2
7077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079if test "${ac_cv_path_SED+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081else
7082 case $SED in
7083 [\\/]* | ?:[\\/]*)
7084 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7085 ;;
7086 *)
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098done
7099done
7100IFS=$as_save_IFS
7101
7102 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7103 ;;
7104esac
7105fi
7106SED=$ac_cv_path_SED
7107if test -n "$SED"; then
7108 { echo "$as_me:$LINENO: result: $SED" >&5
7109echo "${ECHO_T}$SED" >&6; }
7110else
7111 { echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6; }
7113fi
7114
7115
7116# Extract the first word of "tar", so it can be a program name with args.
7117set dummy tar; ac_word=$2
7118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120if test "${ac_cv_path_TAR+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122else
7123 case $TAR in
7124 [\\/]* | ?:[\\/]*)
7125 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7126 ;;
7127 *)
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139done
7140done
7141IFS=$as_save_IFS
7142
7143 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7144 ;;
7145esac
7146fi
7147TAR=$ac_cv_path_TAR
7148if test -n "$TAR"; then
7149 { echo "$as_me:$LINENO: result: $TAR" >&5
7150echo "${ECHO_T}$TAR" >&6; }
7151else
7152 { echo "$as_me:$LINENO: result: no" >&5
7153echo "${ECHO_T}no" >&6; }
7154fi
7155
7156
7157# Extract the first word of "pwd", so it can be a program name with args.
7158set dummy pwd; ac_word=$2
7159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161if test "${ac_cv_path_BINPWD+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163else
7164 case $BINPWD in
7165 [\\/]* | ?:[\\/]*)
7166 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7167 ;;
7168 *)
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180done
7181done
7182IFS=$as_save_IFS
7183
7184 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7185 ;;
7186esac
7187fi
7188BINPWD=$ac_cv_path_BINPWD
7189if test -n "$BINPWD"; then
7190 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7191echo "${ECHO_T}$BINPWD" >&6; }
7192else
7193 { echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6; }
7195fi
7196
7197
7198
7199# Extract the first word of "Graphviz", so it can be a program name with args.
7200set dummy Graphviz; ac_word=$2
7201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206 case $GRAPHVIZ in
7207 [\\/]* | ?:[\\/]*)
7208 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7209 ;;
7210 *)
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7218 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 break 2
7221 fi
7222done
7223done
7224IFS=$as_save_IFS
7225
7226 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7227 ;;
7228esac
7229fi
7230GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7231if test -n "$GRAPHVIZ"; then
7232 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7233echo "${ECHO_T}$GRAPHVIZ" >&6; }
7234else
7235 { echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6; }
7237fi
7238
7239
7240if test "$GRAPHVIZ" != "echo Graphviz" ; then
7241
7242cat >>confdefs.h <<\_ACEOF
7243#define HAVE_GRAPHVIZ 1
7244_ACEOF
7245
Jeff Cohen28783c32007-01-12 18:22:38 +00007246 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007247 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7248 fi
7249
7250cat >>confdefs.h <<_ACEOF
7251#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7252_ACEOF
7253
7254fi
7255# Extract the first word of "dot", so it can be a program name with args.
7256set dummy dot; ac_word=$2
7257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259if test "${ac_cv_path_DOT+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261else
7262 case $DOT in
7263 [\\/]* | ?:[\\/]*)
7264 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7265 ;;
7266 *)
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278done
7279done
7280IFS=$as_save_IFS
7281
7282 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7283 ;;
7284esac
7285fi
7286DOT=$ac_cv_path_DOT
7287if test -n "$DOT"; then
7288 { echo "$as_me:$LINENO: result: $DOT" >&5
7289echo "${ECHO_T}$DOT" >&6; }
7290else
7291 { echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6; }
7293fi
7294
7295
7296if test "$DOT" != "echo dot" ; then
7297
7298cat >>confdefs.h <<\_ACEOF
7299#define HAVE_DOT 1
7300_ACEOF
7301
Jeff Cohen28783c32007-01-12 18:22:38 +00007302 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007303 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7304 fi
7305
7306cat >>confdefs.h <<_ACEOF
7307#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7308_ACEOF
7309
7310fi
7311for ac_prog in gv gsview32
7312do
7313 # Extract the first word of "$ac_prog", so it can be a program name with args.
7314set dummy $ac_prog; ac_word=$2
7315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317if test "${ac_cv_path_GV+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320 case $GV in
7321 [\\/]* | ?:[\\/]*)
7322 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7323 ;;
7324 *)
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336done
7337done
7338IFS=$as_save_IFS
7339
7340 ;;
7341esac
7342fi
7343GV=$ac_cv_path_GV
7344if test -n "$GV"; then
7345 { echo "$as_me:$LINENO: result: $GV" >&5
7346echo "${ECHO_T}$GV" >&6; }
7347else
7348 { echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6; }
7350fi
7351
7352
7353 test -n "$GV" && break
7354done
7355test -n "$GV" || GV="echo gv"
7356
7357if test "$GV" != "echo gv" ; then
7358
7359cat >>confdefs.h <<\_ACEOF
7360#define HAVE_GV 1
7361_ACEOF
7362
Jeff Cohen28783c32007-01-12 18:22:38 +00007363 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007364 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7365 fi
7366
7367cat >>confdefs.h <<_ACEOF
7368#define LLVM_PATH_GV "$GV${EXEEXT}"
7369_ACEOF
7370
7371fi
7372# Extract the first word of "dotty", so it can be a program name with args.
7373set dummy dotty; ac_word=$2
7374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376if test "${ac_cv_path_DOTTY+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378else
7379 case $DOTTY in
7380 [\\/]* | ?:[\\/]*)
7381 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7382 ;;
7383 *)
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385for as_dir in $PATH
7386do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395done
7396done
7397IFS=$as_save_IFS
7398
7399 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7400 ;;
7401esac
7402fi
7403DOTTY=$ac_cv_path_DOTTY
7404if test -n "$DOTTY"; then
7405 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7406echo "${ECHO_T}$DOTTY" >&6; }
7407else
7408 { echo "$as_me:$LINENO: result: no" >&5
7409echo "${ECHO_T}no" >&6; }
7410fi
7411
7412
7413if test "$DOTTY" != "echo dotty" ; then
7414
7415cat >>confdefs.h <<\_ACEOF
7416#define HAVE_DOTTY 1
7417_ACEOF
7418
Jeff Cohen28783c32007-01-12 18:22:38 +00007419 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007420 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7421 fi
7422
7423cat >>confdefs.h <<_ACEOF
7424#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7425_ACEOF
7426
7427fi
7428
7429
7430# Extract the first word of "perl", so it can be a program name with args.
7431set dummy perl; ac_word=$2
7432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434if test "${ac_cv_path_PERL+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437 case $PERL in
7438 [\\/]* | ?:[\\/]*)
7439 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7440 ;;
7441 *)
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454done
7455IFS=$as_save_IFS
7456
7457 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7458 ;;
7459esac
7460fi
7461PERL=$ac_cv_path_PERL
7462if test -n "$PERL"; then
7463 { echo "$as_me:$LINENO: result: $PERL" >&5
7464echo "${ECHO_T}$PERL" >&6; }
7465else
7466 { echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6; }
7468fi
7469
7470
7471if test "$PERL" != "none"; then
7472 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7473echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7474 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7475 { echo "$as_me:$LINENO: result: yes" >&5
7476echo "${ECHO_T}yes" >&6; }
7477 else
7478 PERL=none
7479 { echo "$as_me:$LINENO: result: not found" >&5
7480echo "${ECHO_T}not found" >&6; }
7481 fi
7482fi
7483
7484
7485if test x"$PERL" = xnone; then
7486 HAVE_PERL=0
7487
Reid Spencer59807fa2007-05-17 18:11:03 +00007488 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7489echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7490 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007491else
7492 HAVE_PERL=1
7493
7494fi
7495
7496# Find a good install program. We prefer a C program (faster),
7497# so one script is as good as another. But avoid the broken or
7498# incompatible versions:
7499# SysV /etc/install, /usr/sbin/install
7500# SunOS /usr/etc/install
7501# IRIX /sbin/install
7502# AIX /bin/install
7503# AmigaOS /C/install, which installs bootblocks on floppy discs
7504# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7505# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7506# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7507# OS/2's system install, which has a completely different semantic
7508# ./install, which can be erroneously created by make from ./install.sh.
7509{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7510echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7511if test -z "$INSTALL"; then
7512if test "${ac_cv_path_install+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 # Account for people who put trailing slashes in PATH elements.
7521case $as_dir/ in
7522 ./ | .// | /cC/* | \
7523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7524 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7525 /usr/ucb/* ) ;;
7526 *)
7527 # OSF1 and SCO ODT 3.0 have their own names for install.
7528 # Don't use installbsd from OSF since it installs stuff as root
7529 # by default.
7530 for ac_prog in ginstall scoinst install; do
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7533 if test $ac_prog = install &&
7534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7535 # AIX install. It has an incompatible calling convention.
7536 :
7537 elif test $ac_prog = install &&
7538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7539 # program-specific install script used by HP pwplus--don't use.
7540 :
7541 else
7542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7543 break 3
7544 fi
7545 fi
7546 done
7547 done
7548 ;;
7549esac
7550done
7551IFS=$as_save_IFS
7552
7553
7554fi
7555 if test "${ac_cv_path_install+set}" = set; then
7556 INSTALL=$ac_cv_path_install
7557 else
7558 # As a last resort, use the slow shell script. Don't cache a
7559 # value for INSTALL within a source directory, because that will
7560 # break other packages using the cache if that directory is
7561 # removed, or if the value is a relative name.
7562 INSTALL=$ac_install_sh
7563 fi
7564fi
7565{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7566echo "${ECHO_T}$INSTALL" >&6; }
7567
7568# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7569# It thinks the first close brace ends the variable substitution.
7570test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7571
7572test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7573
7574test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7575
7576
7577# Extract the first word of "bzip2", so it can be a program name with args.
7578set dummy bzip2; ac_word=$2
7579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581if test "${ac_cv_path_BZIP2+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583else
7584 case $BZIP2 in
7585 [\\/]* | ?:[\\/]*)
7586 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7587 ;;
7588 *)
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7599 fi
7600done
7601done
7602IFS=$as_save_IFS
7603
7604 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7605 ;;
7606esac
7607fi
7608BZIP2=$ac_cv_path_BZIP2
7609if test -n "$BZIP2"; then
7610 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7611echo "${ECHO_T}$BZIP2" >&6; }
7612else
7613 { echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6; }
7615fi
7616
7617
7618# Extract the first word of "doxygen", so it can be a program name with args.
7619set dummy doxygen; ac_word=$2
7620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622if test "${ac_cv_path_DOXYGEN+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625 case $DOXYGEN in
7626 [\\/]* | ?:[\\/]*)
7627 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7628 ;;
7629 *)
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7640 fi
7641done
7642done
7643IFS=$as_save_IFS
7644
7645 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7646 ;;
7647esac
7648fi
7649DOXYGEN=$ac_cv_path_DOXYGEN
7650if test -n "$DOXYGEN"; then
7651 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7652echo "${ECHO_T}$DOXYGEN" >&6; }
7653else
7654 { echo "$as_me:$LINENO: result: no" >&5
7655echo "${ECHO_T}no" >&6; }
7656fi
7657
7658
Reid Spencera773bd52006-08-04 18:18:08 +00007659# Extract the first word of "groff", so it can be a program name with args.
7660set dummy groff; ac_word=$2
7661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663if test "${ac_cv_path_GROFF+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666 case $GROFF in
7667 [\\/]* | ?:[\\/]*)
7668 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7669 ;;
7670 *)
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 break 2
7681 fi
7682done
7683done
7684IFS=$as_save_IFS
7685
7686 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7687 ;;
7688esac
7689fi
7690GROFF=$ac_cv_path_GROFF
7691if test -n "$GROFF"; then
7692 { echo "$as_me:$LINENO: result: $GROFF" >&5
7693echo "${ECHO_T}$GROFF" >&6; }
7694else
7695 { echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6; }
7697fi
7698
7699
7700# Extract the first word of "gzip", so it can be a program name with args.
7701set dummy gzip; ac_word=$2
7702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704if test "${ac_cv_path_GZIP+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 case $GZIP in
7708 [\\/]* | ?:[\\/]*)
7709 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7710 ;;
7711 *)
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713for as_dir in $PATH
7714do
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 break 2
7722 fi
7723done
7724done
7725IFS=$as_save_IFS
7726
7727 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7728 ;;
7729esac
7730fi
7731GZIP=$ac_cv_path_GZIP
7732if test -n "$GZIP"; then
7733 { echo "$as_me:$LINENO: result: $GZIP" >&5
7734echo "${ECHO_T}$GZIP" >&6; }
7735else
7736 { echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6; }
7738fi
7739
7740
7741# Extract the first word of "pod2html", so it can be a program name with args.
7742set dummy pod2html; ac_word=$2
7743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745if test "${ac_cv_path_POD2HTML+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 case $POD2HTML in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7751 ;;
7752 *)
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764done
7765done
7766IFS=$as_save_IFS
7767
7768 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7769 ;;
7770esac
7771fi
7772POD2HTML=$ac_cv_path_POD2HTML
7773if test -n "$POD2HTML"; then
7774 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7775echo "${ECHO_T}$POD2HTML" >&6; }
7776else
7777 { echo "$as_me:$LINENO: result: no" >&5
7778echo "${ECHO_T}no" >&6; }
7779fi
7780
7781
7782# Extract the first word of "pod2man", so it can be a program name with args.
7783set dummy pod2man; ac_word=$2
7784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786if test "${ac_cv_path_POD2MAN+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788else
7789 case $POD2MAN in
7790 [\\/]* | ?:[\\/]*)
7791 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7792 ;;
7793 *)
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805done
7806done
7807IFS=$as_save_IFS
7808
7809 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7810 ;;
7811esac
7812fi
7813POD2MAN=$ac_cv_path_POD2MAN
7814if test -n "$POD2MAN"; then
7815 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7816echo "${ECHO_T}$POD2MAN" >&6; }
7817else
7818 { echo "$as_me:$LINENO: result: no" >&5
7819echo "${ECHO_T}no" >&6; }
7820fi
7821
7822
7823# Extract the first word of "runtest", so it can be a program name with args.
7824set dummy runtest; ac_word=$2
7825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827if test "${ac_cv_path_RUNTEST+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7829else
7830 case $RUNTEST in
7831 [\\/]* | ?:[\\/]*)
7832 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7833 ;;
7834 *)
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846done
7847done
7848IFS=$as_save_IFS
7849
7850 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7851 ;;
7852esac
7853fi
7854RUNTEST=$ac_cv_path_RUNTEST
7855if test -n "$RUNTEST"; then
7856 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7857echo "${ECHO_T}$RUNTEST" >&6; }
7858else
7859 { echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6; }
7861fi
7862
7863
7864
7865no_itcl=true
7866{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7867echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7868
7869# Check whether --with-tclinclude was given.
7870if test "${with_tclinclude+set}" = set; then
7871 withval=$with_tclinclude; with_tclinclude=${withval}
7872else
7873 with_tclinclude=''
7874fi
7875
7876if test "${ac_cv_path_tclsh+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7878else
7879
7880if test x"${with_tclinclude}" != x ; then
7881 if test -f ${with_tclinclude}/tclsh ; then
7882 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7883 elif test -f ${with_tclinclude}/src/tclsh ; then
7884 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7885 else
7886 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7887echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7888 { (exit 1); exit 1; }; }
7889 fi
7890fi
7891
7892if test x"${ac_cv_path_tclsh}" = x ; then
7893 { echo "$as_me:$LINENO: result: none" >&5
7894echo "${ECHO_T}none" >&6; }
7895 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
7896do
7897 # Extract the first word of "$ac_prog", so it can be a program name with args.
7898set dummy $ac_prog; ac_word=$2
7899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7901if test "${ac_cv_path_TCLSH+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904 case $TCLSH in
7905 [\\/]* | ?:[\\/]*)
7906 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7907 ;;
7908 *)
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920done
7921done
7922IFS=$as_save_IFS
7923
7924 ;;
7925esac
7926fi
7927TCLSH=$ac_cv_path_TCLSH
7928if test -n "$TCLSH"; then
7929 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7930echo "${ECHO_T}$TCLSH" >&6; }
7931else
7932 { echo "$as_me:$LINENO: result: no" >&5
7933echo "${ECHO_T}no" >&6; }
7934fi
7935
7936
7937 test -n "$TCLSH" && break
7938done
7939
7940 if test x"${TCLSH}" = x ; then
7941 ac_cv_path_tclsh='';
7942 else
7943 ac_cv_path_tclsh="${TCLSH}";
7944 fi
7945else
7946 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7947echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7948 TCLSH="${ac_cv_path_tclsh}"
7949
7950fi
7951
7952fi
7953
7954# Extract the first word of "zip", so it can be a program name with args.
7955set dummy zip; ac_word=$2
7956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958if test "${ac_cv_path_ZIP+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7960else
7961 case $ZIP in
7962 [\\/]* | ?:[\\/]*)
7963 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7964 ;;
7965 *)
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977done
7978done
7979IFS=$as_save_IFS
7980
7981 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7982 ;;
7983esac
7984fi
7985ZIP=$ac_cv_path_ZIP
7986if test -n "$ZIP"; then
7987 { echo "$as_me:$LINENO: result: $ZIP" >&5
7988echo "${ECHO_T}$ZIP" >&6; }
7989else
7990 { echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6; }
7992fi
7993
7994
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007995# Extract the first word of "ocamlc", so it can be a program name with args.
7996set dummy ocamlc; ac_word=$2
7997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7999if test "${ac_cv_path_OCAMLC+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001else
8002 case $OCAMLC in
8003 [\\/]* | ?:[\\/]*)
8004 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8005 ;;
8006 *)
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008for as_dir in $PATH
8009do
8010 IFS=$as_save_IFS
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8014 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 break 2
8017 fi
8018done
8019done
8020IFS=$as_save_IFS
8021
8022 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
8023 ;;
8024esac
8025fi
8026OCAMLC=$ac_cv_path_OCAMLC
8027if test -n "$OCAMLC"; then
8028 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8029echo "${ECHO_T}$OCAMLC" >&6; }
8030else
8031 { echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6; }
8033fi
8034
8035
8036# Extract the first word of "ocamlopt", so it can be a program name with args.
8037set dummy ocamlopt; ac_word=$2
8038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8040if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042else
8043 case $OCAMLOPT in
8044 [\\/]* | ?:[\\/]*)
8045 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8046 ;;
8047 *)
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049for as_dir in $PATH
8050do
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8055 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 break 2
8058 fi
8059done
8060done
8061IFS=$as_save_IFS
8062
8063 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
8064 ;;
8065esac
8066fi
8067OCAMLOPT=$ac_cv_path_OCAMLOPT
8068if test -n "$OCAMLOPT"; then
8069 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8070echo "${ECHO_T}$OCAMLOPT" >&6; }
8071else
8072 { echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6; }
8074fi
8075
8076
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008077# Extract the first word of "ocamldep", so it can be a program name with args.
8078set dummy ocamldep; ac_word=$2
8079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8081if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8083else
8084 case $OCAMLDEP in
8085 [\\/]* | ?:[\\/]*)
8086 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8087 ;;
8088 *)
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100done
8101done
8102IFS=$as_save_IFS
8103
8104 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8105 ;;
8106esac
8107fi
8108OCAMLDEP=$ac_cv_path_OCAMLDEP
8109if test -n "$OCAMLDEP"; then
8110 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8111echo "${ECHO_T}$OCAMLDEP" >&6; }
8112else
8113 { echo "$as_me:$LINENO: result: no" >&5
8114echo "${ECHO_T}no" >&6; }
8115fi
8116
8117
Reid Spencera773bd52006-08-04 18:18:08 +00008118
8119{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8120echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8121if test "${llvm_cv_link_use_r+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123else
8124 ac_ext=c
8125ac_cpp='$CPP $CPPFLAGS'
8126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8128ac_compiler_gnu=$ac_cv_c_compiler_gnu
8129
8130 oldcflags="$CFLAGS"
8131 CFLAGS="$CFLAGS -Wl,-R."
8132 cat >conftest.$ac_ext <<_ACEOF
8133/* confdefs.h. */
8134_ACEOF
8135cat confdefs.h >>conftest.$ac_ext
8136cat >>conftest.$ac_ext <<_ACEOF
8137/* end confdefs.h. */
8138
8139int
8140main ()
8141{
8142int main() { return 0; }
8143 ;
8144 return 0;
8145}
8146_ACEOF
8147rm -f conftest.$ac_objext conftest$ac_exeext
8148if { (ac_try="$ac_link"
8149case "(($ac_try" in
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8152esac
8153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_link") 2>conftest.er1
8155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
8161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8162 { (case "(($ac_try" in
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8165esac
8166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_try") 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try='test -s conftest$ac_exeext'
8172 { (case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175esac
8176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_try") 2>&5
8178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 llvm_cv_link_use_r=yes
8182else
8183 echo "$as_me: failed program was:" >&5
8184sed 's/^/| /' conftest.$ac_ext >&5
8185
8186 llvm_cv_link_use_r=no
8187fi
8188
8189rm -f core conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8191 CFLAGS="$oldcflags"
8192 ac_ext=c
8193ac_cpp='$CPP $CPPFLAGS'
8194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196ac_compiler_gnu=$ac_cv_c_compiler_gnu
8197
8198
8199fi
8200{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8201echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8202if test "$llvm_cv_link_use_r" = yes ; then
8203
8204cat >>confdefs.h <<\_ACEOF
8205#define HAVE_LINK_R 1
8206_ACEOF
8207
8208 fi
8209
8210
8211
8212
8213{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8214echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8215if test "${ac_cv_c_const+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217else
8218 cat >conftest.$ac_ext <<_ACEOF
8219/* confdefs.h. */
8220_ACEOF
8221cat confdefs.h >>conftest.$ac_ext
8222cat >>conftest.$ac_ext <<_ACEOF
8223/* end confdefs.h. */
8224
8225int
8226main ()
8227{
8228/* FIXME: Include the comments suggested by Paul. */
8229#ifndef __cplusplus
8230 /* Ultrix mips cc rejects this. */
8231 typedef int charset[2];
8232 const charset x;
8233 /* SunOS 4.1.1 cc rejects this. */
8234 char const *const *ccp;
8235 char **p;
8236 /* NEC SVR4.0.2 mips cc rejects this. */
8237 struct point {int x, y;};
8238 static struct point const zero = {0,0};
8239 /* AIX XL C 1.02.0.0 rejects this.
8240 It does not let you subtract one const X* pointer from another in
8241 an arm of an if-expression whose if-part is not a constant
8242 expression */
8243 const char *g = "string";
8244 ccp = &g + (g ? g-g : 0);
8245 /* HPUX 7.0 cc rejects these. */
8246 ++ccp;
8247 p = (char**) ccp;
8248 ccp = (char const *const *) p;
8249 { /* SCO 3.2v4 cc rejects this. */
8250 char *t;
8251 char const *s = 0 ? (char *) 0 : (char const *) 0;
8252
8253 *t++ = 0;
8254 if (s) return 0;
8255 }
8256 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8257 int x[] = {25, 17};
8258 const int *foo = &x[0];
8259 ++foo;
8260 }
8261 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8262 typedef const int *iptr;
8263 iptr p = 0;
8264 ++p;
8265 }
8266 { /* AIX XL C 1.02.0.0 rejects this saying
8267 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8268 struct s { int j; const int *ap[3]; };
8269 struct s *b; b->j = 5;
8270 }
8271 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8272 const int foo = 10;
8273 if (!foo) return 0;
8274 }
8275 return !x[0] && !zero.x;
8276#endif
8277
8278 ;
8279 return 0;
8280}
8281_ACEOF
8282rm -f conftest.$ac_objext
8283if { (ac_try="$ac_compile"
8284case "(($ac_try" in
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8287esac
8288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289 (eval "$ac_compile") 2>conftest.er1
8290 ac_status=$?
8291 grep -v '^ *+' conftest.er1 >conftest.err
8292 rm -f conftest.er1
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8297 { (case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300esac
8301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_try") 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; } &&
8306 { ac_try='test -s conftest.$ac_objext'
8307 { (case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8310esac
8311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_try") 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_cv_c_const=yes
8317else
8318 echo "$as_me: failed program was:" >&5
8319sed 's/^/| /' conftest.$ac_ext >&5
8320
8321 ac_cv_c_const=no
8322fi
8323
8324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325fi
8326{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8327echo "${ECHO_T}$ac_cv_c_const" >&6; }
8328if test $ac_cv_c_const = no; then
8329
8330cat >>confdefs.h <<\_ACEOF
8331#define const
8332_ACEOF
8333
8334fi
8335
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008336
8337
8338
8339
8340
8341ac_header_dirent=no
8342for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8343 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008344{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8345echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348else
8349 cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h. */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h. */
8355#include <sys/types.h>
8356#include <$ac_hdr>
8357
8358int
8359main ()
8360{
8361if ((DIR *) 0)
8362return 0;
8363 ;
8364 return 0;
8365}
8366_ACEOF
8367rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008368if { (ac_try="$ac_compile"
8369case "(($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_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008375 ac_status=$?
8376 grep -v '^ *+' conftest.er1 >conftest.err
8377 rm -f conftest.er1
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382 { (case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395esac
8396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 eval "$as_ac_Header=yes"
8402else
8403 echo "$as_me: failed program was:" >&5
8404sed 's/^/| /' conftest.$ac_ext >&5
8405
Reid Spencera773bd52006-08-04 18:18:08 +00008406 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008407fi
Reid Spencera773bd52006-08-04 18:18:08 +00008408
8409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008410fi
Reid Spencera773bd52006-08-04 18:18:08 +00008411ac_res=`eval echo '${'$as_ac_Header'}'`
8412 { echo "$as_me:$LINENO: result: $ac_res" >&5
8413echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008414if test `eval echo '${'$as_ac_Header'}'` = yes; then
8415 cat >>confdefs.h <<_ACEOF
8416#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8417_ACEOF
8418
8419ac_header_dirent=$ac_hdr; break
8420fi
8421
8422done
8423# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8424if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008425 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8426echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008427if test "${ac_cv_search_opendir+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008431cat >conftest.$ac_ext <<_ACEOF
8432/* confdefs.h. */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h. */
8437
Reid Spencera773bd52006-08-04 18:18:08 +00008438/* Override any GCC internal prototype to avoid an error.
8439 Use char because int might match the return type of a GCC
8440 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008441#ifdef __cplusplus
8442extern "C"
8443#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008444char opendir ();
8445int
8446main ()
8447{
Reid Spencera773bd52006-08-04 18:18:08 +00008448return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008449 ;
8450 return 0;
8451}
8452_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008453for ac_lib in '' dir; do
8454 if test -z "$ac_lib"; then
8455 ac_res="none required"
8456 else
8457 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008459 fi
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461if { (ac_try="$ac_link"
8462case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8465esac
8466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008468 ac_status=$?
8469 grep -v '^ *+' conftest.er1 >conftest.err
8470 rm -f conftest.er1
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8475 { (case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478esac
8479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008485 { (case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488esac
8489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008494 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008495else
8496 echo "$as_me: failed program was:" >&5
8497sed 's/^/| /' conftest.$ac_ext >&5
8498
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008499
8500fi
8501
Reid Spencera773bd52006-08-04 18:18:08 +00008502rm -f core conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext
8504 if test "${ac_cv_search_opendir+set}" = set; then
8505 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008506fi
John Criswell7a73b802003-06-30 21:59:07 +00008507done
Reid Spencera773bd52006-08-04 18:18:08 +00008508if test "${ac_cv_search_opendir+set}" = set; then
8509 :
8510else
8511 ac_cv_search_opendir=no
8512fi
8513rm conftest.$ac_ext
8514LIBS=$ac_func_search_save_LIBS
8515fi
8516{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8517echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8518ac_res=$ac_cv_search_opendir
8519if test "$ac_res" != no; then
8520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008521
Reid Spencera773bd52006-08-04 18:18:08 +00008522fi
8523
8524else
8525 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8526echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8527if test "${ac_cv_search_opendir+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529else
8530 ac_func_search_save_LIBS=$LIBS
8531cat >conftest.$ac_ext <<_ACEOF
8532/* confdefs.h. */
8533_ACEOF
8534cat confdefs.h >>conftest.$ac_ext
8535cat >>conftest.$ac_ext <<_ACEOF
8536/* end confdefs.h. */
8537
8538/* Override any GCC internal prototype to avoid an error.
8539 Use char because int might match the return type of a GCC
8540 builtin and then its argument prototype would still apply. */
8541#ifdef __cplusplus
8542extern "C"
8543#endif
8544char opendir ();
8545int
8546main ()
8547{
8548return opendir ();
8549 ;
8550 return 0;
8551}
8552_ACEOF
8553for ac_lib in '' x; do
8554 if test -z "$ac_lib"; then
8555 ac_res="none required"
8556 else
8557 ac_res=-l$ac_lib
8558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8559 fi
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561if { (ac_try="$ac_link"
8562case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565esac
8566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_link") 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8575 { (case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578esac
8579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_try") 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest$ac_exeext'
8585 { (case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8588esac
8589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_try") 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_cv_search_opendir=$ac_res
8595else
8596 echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8599
8600fi
8601
8602rm -f core conftest.err conftest.$ac_objext \
8603 conftest$ac_exeext
8604 if test "${ac_cv_search_opendir+set}" = set; then
8605 break
8606fi
8607done
8608if test "${ac_cv_search_opendir+set}" = set; then
8609 :
8610else
8611 ac_cv_search_opendir=no
8612fi
8613rm conftest.$ac_ext
8614LIBS=$ac_func_search_save_LIBS
8615fi
8616{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8617echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8618ac_res=$ac_cv_search_opendir
8619if test "$ac_res" != no; then
8620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8621
8622fi
8623
8624fi
John Criswell7a73b802003-06-30 21:59:07 +00008625
8626
8627for ac_header in dlfcn.h
8628do
8629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008634 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008635fi
Reid Spencera773bd52006-08-04 18:18:08 +00008636ac_res=`eval echo '${'$as_ac_Header'}'`
8637 { echo "$as_me:$LINENO: result: $ac_res" >&5
8638echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008639else
Brian Gaeke0a621332004-09-08 20:38:05 +00008640 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008641{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8642echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008643cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008644/* confdefs.h. */
8645_ACEOF
8646cat confdefs.h >>conftest.$ac_ext
8647cat >>conftest.$ac_ext <<_ACEOF
8648/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008649$ac_includes_default
8650#include <$ac_header>
8651_ACEOF
8652rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008653if { (ac_try="$ac_compile"
8654case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657esac
8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008660 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008661 grep -v '^ *+' conftest.er1 >conftest.err
8662 rm -f conftest.er1
8663 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667 { (case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670esac
8671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008677 { (case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680esac
8681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008686 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008687else
8688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008689sed 's/^/| /' conftest.$ac_ext >&5
8690
Reid Spencera773bd52006-08-04 18:18:08 +00008691 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008692fi
Reid Spencera773bd52006-08-04 18:18:08 +00008693
8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8696echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008697
8698# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008699{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008701cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008702/* confdefs.h. */
8703_ACEOF
8704cat confdefs.h >>conftest.$ac_ext
8705cat >>conftest.$ac_ext <<_ACEOF
8706/* end confdefs.h. */
8707#include <$ac_header>
8708_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008709if { (ac_try="$ac_cpp conftest.$ac_ext"
8710case "(($ac_try" in
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8713esac
8714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } >/dev/null; then
8722 if test -s conftest.err; then
8723 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008725 else
8726 ac_cpp_err=
8727 fi
8728else
8729 ac_cpp_err=yes
8730fi
8731if test -z "$ac_cpp_err"; then
8732 ac_header_preproc=yes
8733else
8734 echo "$as_me: failed program was:" >&5
8735sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 ac_header_preproc=no
8738fi
Reid Spencera773bd52006-08-04 18:18:08 +00008739
Brian Gaeke0a621332004-09-08 20:38:05 +00008740rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008741{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8742echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008743
8744# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8746 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8751 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008752 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008753 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008766 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008767## ----------------------------------- ##
8768## Report this to llvmbugs@cs.uiuc.edu ##
8769## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008770_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008771 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008772 ;;
8773esac
Reid Spencera773bd52006-08-04 18:18:08 +00008774{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008779 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008780fi
Reid Spencera773bd52006-08-04 18:18:08 +00008781ac_res=`eval echo '${'$as_ac_Header'}'`
8782 { echo "$as_me:$LINENO: result: $ac_res" >&5
8783echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008784
8785fi
John Criswell7a73b802003-06-30 21:59:07 +00008786if test `eval echo '${'$as_ac_Header'}'` = yes; then
8787 cat >>confdefs.h <<_ACEOF
8788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8789_ACEOF
8790
8791fi
8792
8793done
8794
Reid Spencera773bd52006-08-04 18:18:08 +00008795# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008796if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008797 enableval=$enable_ltdl_install;
8798fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008799
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008800
8801
8802
8803if test x"${enable_ltdl_install-no}" != xno; then
8804 INSTALL_LTDL_TRUE=
8805 INSTALL_LTDL_FALSE='#'
8806else
8807 INSTALL_LTDL_TRUE='#'
8808 INSTALL_LTDL_FALSE=
8809fi
8810
8811
8812
8813if test x"${enable_ltdl_convenience-no}" != xno; then
8814 CONVENIENCE_LTDL_TRUE=
8815 CONVENIENCE_LTDL_FALSE='#'
8816else
8817 CONVENIENCE_LTDL_TRUE='#'
8818 CONVENIENCE_LTDL_FALSE=
8819fi
8820
8821
Reid Spencera773bd52006-08-04 18:18:08 +00008822{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8823echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008824library_names_spec=
8825libname_spec='lib$name'
8826soname_spec=
8827shrext_cmds=".so"
8828postinstall_cmds=
8829postuninstall_cmds=
8830finish_cmds=
8831finish_eval=
8832shlibpath_var=
8833shlibpath_overrides_runpath=unknown
8834version_type=none
8835dynamic_linker="$host_os ld.so"
8836sys_lib_dlsearch_path_spec="/lib /usr/lib"
8837if test "$GCC" = yes; then
8838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8839 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8840 # if the path contains ";" then we assume it to be the separator
8841 # otherwise default to the standard path separator (i.e. ":") - it is
8842 # assumed that no part of a normal pathname contains ";" but that should
8843 # okay in the real world where ";" in dirpaths is itself problematic.
8844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8845 else
8846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8847 fi
8848else
8849 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8850fi
8851need_lib_prefix=unknown
8852hardcode_into_libs=no
8853
8854# when you set need_version to no, make sure it does not cause -set_version
8855# flags to be left without arguments
8856need_version=unknown
8857
8858case $host_os in
8859aix3*)
8860 version_type=linux
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8862 shlibpath_var=LIBPATH
8863
8864 # AIX 3 has no versioning support, so we append a major version to the name.
8865 soname_spec='${libname}${release}${shared_ext}$major'
8866 ;;
8867
8868aix4* | aix5*)
8869 version_type=linux
8870 need_lib_prefix=no
8871 need_version=no
8872 hardcode_into_libs=yes
8873 if test "$host_cpu" = ia64; then
8874 # AIX 5 supports IA64
8875 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8876 shlibpath_var=LD_LIBRARY_PATH
8877 else
8878 # With GCC up to 2.95.x, collect2 would create an import file
8879 # for dependence libraries. The import file would start with
8880 # the line `#! .'. This would cause the generated library to
8881 # depend on `.', always an invalid library. This was fixed in
8882 # development snapshots of GCC prior to 3.0.
8883 case $host_os in
8884 aix4 | aix4.[01] | aix4.[01].*)
8885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8886 echo ' yes '
8887 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8888 :
8889 else
8890 can_build_shared=no
8891 fi
8892 ;;
8893 esac
8894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8895 # soname into executable. Probably we can add versioning support to
8896 # collect2, so additional links can be useful in future.
8897 if test "$aix_use_runtimelinking" = yes; then
8898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8899 # instead of lib<name>.a to let people know that these are not
8900 # typical AIX shared libraries.
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902 else
8903 # We preserve .a as extension for shared libraries through AIX4.2
8904 # and later when we are not doing run time linking.
8905 library_names_spec='${libname}${release}.a $libname.a'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 fi
8908 shlibpath_var=LIBPATH
8909 fi
8910 ;;
8911
8912amigaos*)
8913 library_names_spec='$libname.ixlibrary $libname.a'
8914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8915 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'
8916 ;;
8917
8918beos*)
8919 library_names_spec='${libname}${shared_ext}'
8920 dynamic_linker="$host_os ld.so"
8921 shlibpath_var=LIBRARY_PATH
8922 ;;
8923
8924bsdi[45]*)
8925 version_type=linux
8926 need_version=no
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8930 shlibpath_var=LD_LIBRARY_PATH
8931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8933 # the default ld.so.conf also contains /usr/contrib/lib and
8934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8935 # libtool to hard-code these into programs
8936 ;;
8937
8938cygwin* | mingw* | pw32*)
8939 version_type=windows
8940 shrext_cmds=".dll"
8941 need_version=no
8942 need_lib_prefix=no
8943
8944 case $GCC,$host_os in
8945 yes,cygwin* | yes,mingw* | yes,pw32*)
8946 library_names_spec='$libname.dll.a'
8947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8948 postinstall_cmds='base_file=`basename \${file}`~
8949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8950 dldir=$destdir/`dirname \$dlpath`~
8951 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008952 $install_prog $dir/$dlname \$dldir/$dlname~
8953 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8955 dlpath=$dir/\$dldll~
8956 $rm \$dlpath'
8957 shlibpath_overrides_runpath=yes
8958
8959 case $host_os in
8960 cygwin*)
8961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8964 ;;
8965 mingw*)
8966 # MinGW DLLs use traditional 'lib' prefix
8967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8969 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8970 # It is most probably a Windows format PATH printed by
8971 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8972 # path with ; separators, and with drive letters. We can handle the
8973 # drive letters (cygwin fileutils understands them), so leave them,
8974 # especially as we might pass files found there to a mingw objdump,
8975 # which wouldn't understand a cygwinified path. Ahh.
8976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8977 else
8978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8979 fi
8980 ;;
8981 pw32*)
8982 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008983 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 +00008984 ;;
8985 esac
8986 ;;
8987
8988 *)
8989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8990 ;;
8991 esac
8992 dynamic_linker='Win32 ld.exe'
8993 # FIXME: first we should search . and the directory the executable is in
8994 shlibpath_var=PATH
8995 ;;
8996
8997darwin* | rhapsody*)
8998 dynamic_linker="$host_os dyld"
8999 version_type=darwin
9000 need_lib_prefix=no
9001 need_version=no
9002 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9003 soname_spec='${libname}${release}${major}$shared_ext'
9004 shlibpath_overrides_runpath=yes
9005 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009006 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009007 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9008 if test "$GCC" = yes; then
9009 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"`
9010 else
9011 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9012 fi
9013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9014 ;;
9015
9016dgux*)
9017 version_type=linux
9018 need_lib_prefix=no
9019 need_version=no
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 ;;
9024
9025freebsd1*)
9026 dynamic_linker=no
9027 ;;
9028
9029kfreebsd*-gnu)
9030 version_type=linux
9031 need_lib_prefix=no
9032 need_version=no
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 hardcode_into_libs=yes
9038 dynamic_linker='GNU ld.so'
9039 ;;
9040
Reid Spencera773bd52006-08-04 18:18:08 +00009041freebsd* | dragonfly*)
9042 # DragonFly does not have aout. When/if they implement a new
9043 # versioning mechanism, adjust this.
9044 if test -x /usr/bin/objformat; then
9045 objformat=`/usr/bin/objformat`
9046 else
9047 case $host_os in
9048 freebsd[123]*) objformat=aout ;;
9049 *) objformat=elf ;;
9050 esac
9051 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009052 version_type=freebsd-$objformat
9053 case $version_type in
9054 freebsd-elf*)
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9056 need_version=no
9057 need_lib_prefix=no
9058 ;;
9059 freebsd-*)
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9061 need_version=yes
9062 ;;
9063 esac
9064 shlibpath_var=LD_LIBRARY_PATH
9065 case $host_os in
9066 freebsd2*)
9067 shlibpath_overrides_runpath=yes
9068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009069 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009070 shlibpath_overrides_runpath=yes
9071 hardcode_into_libs=yes
9072 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009075 shlibpath_overrides_runpath=no
9076 hardcode_into_libs=yes
9077 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009078 freebsd*) # from 4.6 on
9079 shlibpath_overrides_runpath=yes
9080 hardcode_into_libs=yes
9081 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009082 esac
9083 ;;
9084
9085gnu*)
9086 version_type=linux
9087 need_lib_prefix=no
9088 need_version=no
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 hardcode_into_libs=yes
9093 ;;
9094
9095hpux9* | hpux10* | hpux11*)
9096 # Give a soname corresponding to the major version so that dld.sl refuses to
9097 # link against other versions.
9098 version_type=sunos
9099 need_lib_prefix=no
9100 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009101 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009102 ia64*)
9103 shrext_cmds='.so'
9104 hardcode_into_libs=yes
9105 dynamic_linker="$host_os dld.so"
9106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 if test "X$HPUX_IA64_MODE" = X32; then
9111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9112 else
9113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9114 fi
9115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9116 ;;
9117 hppa*64*)
9118 shrext_cmds='.sl'
9119 hardcode_into_libs=yes
9120 dynamic_linker="$host_os dld.sl"
9121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9127 ;;
9128 *)
9129 shrext_cmds='.sl'
9130 dynamic_linker="$host_os dld.sl"
9131 shlibpath_var=SHLIB_PATH
9132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 ;;
9136 esac
9137 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9138 postinstall_cmds='chmod 555 $lib'
9139 ;;
9140
Reid Spencera773bd52006-08-04 18:18:08 +00009141interix3*)
9142 version_type=linux
9143 need_lib_prefix=no
9144 need_version=no
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 shlibpath_overrides_runpath=no
9150 hardcode_into_libs=yes
9151 ;;
9152
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009153irix5* | irix6* | nonstopux*)
9154 case $host_os in
9155 nonstopux*) version_type=nonstopux ;;
9156 *)
9157 if test "$lt_cv_prog_gnu_ld" = yes; then
9158 version_type=linux
9159 else
9160 version_type=irix
9161 fi ;;
9162 esac
9163 need_lib_prefix=no
9164 need_version=no
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9167 case $host_os in
9168 irix5* | nonstopux*)
9169 libsuff= shlibsuff=
9170 ;;
9171 *)
9172 case $LD in # libtool.m4 will add one of these switches to LD
9173 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9174 libsuff= shlibsuff= libmagic=32-bit;;
9175 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9176 libsuff=32 shlibsuff=N32 libmagic=N32;;
9177 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9178 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9179 *) libsuff= shlibsuff= libmagic=never-match;;
9180 esac
9181 ;;
9182 esac
9183 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9184 shlibpath_overrides_runpath=no
9185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9187 hardcode_into_libs=yes
9188 ;;
9189
9190# No shared lib support for Linux oldld, aout, or coff.
9191linux*oldld* | linux*aout* | linux*coff*)
9192 dynamic_linker=no
9193 ;;
9194
9195# This must be Linux ELF.
9196linux*)
9197 version_type=linux
9198 need_lib_prefix=no
9199 need_version=no
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 shlibpath_overrides_runpath=no
9205 # This implies no fast_install, which is unacceptable.
9206 # Some rework will be needed to allow for fast_install
9207 # before this can be enabled.
9208 hardcode_into_libs=yes
9209
9210 # Append ld.so.conf contents to the search path
9211 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009212 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 +00009213 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9214 fi
9215
9216 # We used to test for /lib/ld.so.1 and disable shared libraries on
9217 # powerpc, because MkLinux only supported shared libraries with the
9218 # GNU dynamic linker. Since this was broken with cross compilers,
9219 # most powerpc-linux boxes support dynamic linking these days and
9220 # people can always --disable-shared, the test was removed, and we
9221 # assume the GNU/Linux dynamic linker is in use.
9222 dynamic_linker='GNU/Linux ld.so'
9223 ;;
9224
9225knetbsd*-gnu)
9226 version_type=linux
9227 need_lib_prefix=no
9228 need_version=no
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 shlibpath_overrides_runpath=no
9233 hardcode_into_libs=yes
9234 dynamic_linker='GNU ld.so'
9235 ;;
9236
9237netbsd*)
9238 version_type=sunos
9239 need_lib_prefix=no
9240 need_version=no
9241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9244 dynamic_linker='NetBSD (a.out) ld.so'
9245 else
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 dynamic_linker='NetBSD ld.elf_so'
9249 fi
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=yes
9252 hardcode_into_libs=yes
9253 ;;
9254
9255newsos6)
9256 version_type=linux
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9260 ;;
9261
9262nto-qnx*)
9263 version_type=linux
9264 need_lib_prefix=no
9265 need_version=no
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 shlibpath_overrides_runpath=yes
9270 ;;
9271
9272openbsd*)
9273 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009274 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009276 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9277 case $host_os in
9278 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9279 *) need_version=no ;;
9280 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9285 case $host_os in
9286 openbsd2.[89] | openbsd2.[89].*)
9287 shlibpath_overrides_runpath=no
9288 ;;
9289 *)
9290 shlibpath_overrides_runpath=yes
9291 ;;
9292 esac
9293 else
9294 shlibpath_overrides_runpath=yes
9295 fi
9296 ;;
9297
9298os2*)
9299 libname_spec='$name'
9300 shrext_cmds=".dll"
9301 need_lib_prefix=no
9302 library_names_spec='$libname${shared_ext} $libname.a'
9303 dynamic_linker='OS/2 ld.exe'
9304 shlibpath_var=LIBPATH
9305 ;;
9306
9307osf3* | osf4* | osf5*)
9308 version_type=osf
9309 need_lib_prefix=no
9310 need_version=no
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9315 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9316 ;;
9317
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009318solaris*)
9319 version_type=linux
9320 need_lib_prefix=no
9321 need_version=no
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 shlibpath_overrides_runpath=yes
9326 hardcode_into_libs=yes
9327 # ldd complains unless libraries are executable
9328 postinstall_cmds='chmod +x $lib'
9329 ;;
9330
9331sunos4*)
9332 version_type=sunos
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9334 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 shlibpath_overrides_runpath=yes
9337 if test "$with_gnu_ld" = yes; then
9338 need_lib_prefix=no
9339 fi
9340 need_version=yes
9341 ;;
9342
Reid Spencera773bd52006-08-04 18:18:08 +00009343sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344 version_type=linux
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 case $host_vendor in
9349 sni)
9350 shlibpath_overrides_runpath=no
9351 need_lib_prefix=no
9352 export_dynamic_flag_spec='${wl}-Blargedynsym'
9353 runpath_var=LD_RUN_PATH
9354 ;;
9355 siemens)
9356 need_lib_prefix=no
9357 ;;
9358 motorola)
9359 need_lib_prefix=no
9360 need_version=no
9361 shlibpath_overrides_runpath=no
9362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9363 ;;
9364 esac
9365 ;;
9366
9367sysv4*MP*)
9368 if test -d /usr/nec ;then
9369 version_type=linux
9370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9371 soname_spec='$libname${shared_ext}.$major'
9372 shlibpath_var=LD_LIBRARY_PATH
9373 fi
9374 ;;
9375
Reid Spencera773bd52006-08-04 18:18:08 +00009376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9377 version_type=freebsd-elf
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 hardcode_into_libs=yes
9384 if test "$with_gnu_ld" = yes; then
9385 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9386 shlibpath_overrides_runpath=no
9387 else
9388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9389 shlibpath_overrides_runpath=yes
9390 case $host_os in
9391 sco3.2v5*)
9392 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9393 ;;
9394 esac
9395 fi
9396 sys_lib_dlsearch_path_spec='/usr/lib'
9397 ;;
9398
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009399uts4*)
9400 version_type=linux
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402 soname_spec='${libname}${release}${shared_ext}$major'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 ;;
9405
9406*)
9407 dynamic_linker=no
9408 ;;
9409esac
Reid Spencera773bd52006-08-04 18:18:08 +00009410{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9411echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009412test "$dynamic_linker" = no && can_build_shared=no
9413
Reid Spencera773bd52006-08-04 18:18:08 +00009414variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9415if test "$GCC" = yes; then
9416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9417fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009418
Reid Spencera773bd52006-08-04 18:18:08 +00009419
9420{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9421echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009422if test "${libltdl_cv_shlibext+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425
9426module=yes
9427eval libltdl_cv_shlibext=$shrext_cmds
9428
9429fi
Reid Spencera773bd52006-08-04 18:18:08 +00009430{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9431echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009432if test -n "$libltdl_cv_shlibext"; then
9433
9434cat >>confdefs.h <<_ACEOF
9435#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9436_ACEOF
9437
9438fi
9439
9440
Reid Spencera773bd52006-08-04 18:18:08 +00009441{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9442echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009443if test "${libltdl_cv_shlibpath_var+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
9446 libltdl_cv_shlibpath_var="$shlibpath_var"
9447fi
Reid Spencera773bd52006-08-04 18:18:08 +00009448{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9449echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009450if test -n "$libltdl_cv_shlibpath_var"; then
9451
9452cat >>confdefs.h <<_ACEOF
9453#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9454_ACEOF
9455
9456fi
9457
9458
Reid Spencera773bd52006-08-04 18:18:08 +00009459{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9460echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009461if test "${libltdl_cv_sys_search_path+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463else
9464 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9465fi
Reid Spencera773bd52006-08-04 18:18:08 +00009466{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9467echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468if test -n "$libltdl_cv_sys_search_path"; then
9469 sys_search_path=
9470 for dir in $libltdl_cv_sys_search_path; do
9471 if test -z "$sys_search_path"; then
9472 sys_search_path="$dir"
9473 else
9474 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9475 fi
9476 done
9477
9478cat >>confdefs.h <<_ACEOF
9479#define LTDL_SYSSEARCHPATH "$sys_search_path"
9480_ACEOF
9481
9482fi
9483
Reid Spencera773bd52006-08-04 18:18:08 +00009484{ echo "$as_me:$LINENO: checking for objdir" >&5
9485echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009486if test "${libltdl_cv_objdir+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489 libltdl_cv_objdir="$objdir"
9490 if test -n "$objdir"; then
9491 :
9492 else
9493 rm -f .libs 2>/dev/null
9494 mkdir .libs 2>/dev/null
9495 if test -d .libs; then
9496 libltdl_cv_objdir=.libs
9497 else
9498 # MS-DOS does not allow filenames that begin with a dot.
9499 libltdl_cv_objdir=_libs
9500 fi
9501 rmdir .libs 2>/dev/null
9502 fi
9503
9504fi
Reid Spencera773bd52006-08-04 18:18:08 +00009505{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9506echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009507
9508cat >>confdefs.h <<_ACEOF
9509#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9510_ACEOF
9511
9512
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513
9514
9515
9516
9517# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009518{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9519echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009520if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9522else
9523
9524# These are sane defaults that work on at least a few old systems.
9525# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9526
9527# Character class describing NM global symbol codes.
9528symcode='[BCDEGRST]'
9529
9530# Regexp to match symbols that can be accessed directly from C.
9531sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9532
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009533# Transform an extracted symbol line into a proper C declaration
9534lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9535
9536# Transform an extracted symbol line into symbol name and symbol address
9537lt_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'"
9538
9539# Define system-specific variables.
9540case $host_os in
9541aix*)
9542 symcode='[BCDT]'
9543 ;;
9544cygwin* | mingw* | pw32*)
9545 symcode='[ABCDGISTW]'
9546 ;;
9547hpux*) # Its linker distinguishes data from code symbols
9548 if test "$host_cpu" = ia64; then
9549 symcode='[ABCDEGRST]'
9550 fi
9551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9552 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'"
9553 ;;
9554linux*)
9555 if test "$host_cpu" = ia64; then
9556 symcode='[ABCDGIRSTW]'
9557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9558 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'"
9559 fi
9560 ;;
9561irix* | nonstopux*)
9562 symcode='[BCDEGRST]'
9563 ;;
9564osf*)
9565 symcode='[BCDEGQRST]'
9566 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009567solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009568 symcode='[BDRT]'
9569 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009570sco3.2v5*)
9571 symcode='[DT]'
9572 ;;
9573sysv4.2uw2*)
9574 symcode='[DT]'
9575 ;;
9576sysv5* | sco5v6* | unixware* | OpenUNIX*)
9577 symcode='[ABDT]'
9578 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009579sysv4)
9580 symcode='[DFNSTU]'
9581 ;;
9582esac
9583
9584# Handle CRLF in mingw tool chain
9585opt_cr=
9586case $build_os in
9587mingw*)
9588 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9589 ;;
9590esac
9591
9592# If we're using GNU nm, then use its standard symbol codes.
9593case `$NM -V 2>&1` in
9594*GNU* | *'with BFD'*)
9595 symcode='[ABCDGIRSTW]' ;;
9596esac
9597
9598# Try without a prefix undercore, then with it.
9599for ac_symprfx in "" "_"; do
9600
Reid Spencera773bd52006-08-04 18:18:08 +00009601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9602 symxfrm="\\1 $ac_symprfx\\2 \\2"
9603
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009605 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 +00009606
9607 # Check to see that the pipe works correctly.
9608 pipe_works=no
9609
9610 rm -f conftest*
9611 cat > conftest.$ac_ext <<EOF
9612#ifdef __cplusplus
9613extern "C" {
9614#endif
9615char nm_test_var;
9616void nm_test_func(){}
9617#ifdef __cplusplus
9618}
9619#endif
9620int main(){nm_test_var='a';nm_test_func();return(0);}
9621EOF
9622
9623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624 (eval $ac_compile) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; then
9628 # Now try to grab the symbols.
9629 nlist=conftest.nm
9630 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9631 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && test -s "$nlist"; then
9635 # Try sorting and uniquifying the output.
9636 if sort "$nlist" | uniq > "$nlist"T; then
9637 mv -f "$nlist"T "$nlist"
9638 else
9639 rm -f "$nlist"T
9640 fi
9641
9642 # Make sure that we snagged all the symbols we need.
9643 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9644 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9645 cat <<EOF > conftest.$ac_ext
9646#ifdef __cplusplus
9647extern "C" {
9648#endif
9649
9650EOF
9651 # Now generate the symbol file.
9652 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9653
9654 cat <<EOF >> conftest.$ac_ext
9655#if defined (__STDC__) && __STDC__
9656# define lt_ptr_t void *
9657#else
9658# define lt_ptr_t char *
9659# define const
9660#endif
9661
9662/* The mapping between symbol names and symbols. */
9663const struct {
9664 const char *name;
9665 lt_ptr_t address;
9666}
9667lt_preloaded_symbols[] =
9668{
9669EOF
9670 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9671 cat <<\EOF >> conftest.$ac_ext
9672 {0, (lt_ptr_t) 0}
9673};
9674
9675#ifdef __cplusplus
9676}
9677#endif
9678EOF
9679 # Now try linking the two files.
9680 mv conftest.$ac_objext conftstm.$ac_objext
9681 lt_save_LIBS="$LIBS"
9682 lt_save_CFLAGS="$CFLAGS"
9683 LIBS="conftstm.$ac_objext"
9684 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9690 pipe_works=yes
9691 fi
9692 LIBS="$lt_save_LIBS"
9693 CFLAGS="$lt_save_CFLAGS"
9694 else
9695 echo "cannot find nm_test_func in $nlist" >&5
9696 fi
9697 else
9698 echo "cannot find nm_test_var in $nlist" >&5
9699 fi
9700 else
9701 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9702 fi
9703 else
9704 echo "$progname: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9706 fi
9707 rm -f conftest* conftst*
9708
9709 # Do not use the global_symbol_pipe unless it works.
9710 if test "$pipe_works" = yes; then
9711 break
9712 else
9713 lt_cv_sys_global_symbol_pipe=
9714 fi
9715done
9716
9717fi
9718
9719if test -z "$lt_cv_sys_global_symbol_pipe"; then
9720 lt_cv_sys_global_symbol_to_cdecl=
9721fi
9722if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009723 { echo "$as_me:$LINENO: result: failed" >&5
9724echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725else
Reid Spencera773bd52006-08-04 18:18:08 +00009726 { echo "$as_me:$LINENO: result: ok" >&5
9727echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009728fi
9729
9730
Reid Spencera773bd52006-08-04 18:18:08 +00009731{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9732echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009733if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735else
9736 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9737 libltdl_cv_preloaded_symbols=yes
9738 else
9739 libltdl_cv_preloaded_symbols=no
9740 fi
9741
9742fi
Reid Spencera773bd52006-08-04 18:18:08 +00009743{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9744echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9746
9747cat >>confdefs.h <<\_ACEOF
9748#define HAVE_PRELOADED_SYMBOLS 1
9749_ACEOF
9750
9751fi
9752
9753LIBADD_DL=
9754
9755ac_ext=c
9756ac_cpp='$CPP $CPPFLAGS'
9757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759ac_compiler_gnu=$ac_cv_c_compiler_gnu
9760
9761
Reid Spencera773bd52006-08-04 18:18:08 +00009762{ echo "$as_me:$LINENO: checking for shl_load" >&5
9763echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764if test "${ac_cv_func_shl_load+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766else
9767 cat >conftest.$ac_ext <<_ACEOF
9768/* confdefs.h. */
9769_ACEOF
9770cat confdefs.h >>conftest.$ac_ext
9771cat >>conftest.$ac_ext <<_ACEOF
9772/* end confdefs.h. */
9773/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9775#define shl_load innocuous_shl_load
9776
9777/* System header to define __stub macros and hopefully few prototypes,
9778 which can conflict with char shl_load (); below.
9779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9780 <limits.h> exists even on freestanding compilers. */
9781
9782#ifdef __STDC__
9783# include <limits.h>
9784#else
9785# include <assert.h>
9786#endif
9787
9788#undef shl_load
9789
Reid Spencera773bd52006-08-04 18:18:08 +00009790/* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793#ifdef __cplusplus
9794extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009796char shl_load ();
9797/* The GNU C library defines this for functions which it implements
9798 to always fail with ENOSYS. Some functions are actually named
9799 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009800#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009801choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009802#endif
9803
9804int
9805main ()
9806{
Reid Spencera773bd52006-08-04 18:18:08 +00009807return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808 ;
9809 return 0;
9810}
9811_ACEOF
9812rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009813if { (ac_try="$ac_link"
9814case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830esac
9831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840esac
9841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_func_shl_load=yes
9847else
9848 echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
9850
Reid Spencera773bd52006-08-04 18:18:08 +00009851 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852fi
Reid Spencera773bd52006-08-04 18:18:08 +00009853
9854rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855 conftest$ac_exeext conftest.$ac_ext
9856fi
Reid Spencera773bd52006-08-04 18:18:08 +00009857{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9858echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859if test $ac_cv_func_shl_load = yes; then
9860
9861cat >>confdefs.h <<\_ACEOF
9862#define HAVE_SHL_LOAD 1
9863_ACEOF
9864
9865else
Reid Spencera773bd52006-08-04 18:18:08 +00009866 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9867echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009868if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870else
9871 ac_check_lib_save_LIBS=$LIBS
9872LIBS="-ldld $LIBS"
9873cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h. */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h. */
9879
Reid Spencera773bd52006-08-04 18:18:08 +00009880/* Override any GCC internal prototype to avoid an error.
9881 Use char because int might match the return type of a GCC
9882 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883#ifdef __cplusplus
9884extern "C"
9885#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009886char shl_load ();
9887int
9888main ()
9889{
Reid Spencera773bd52006-08-04 18:18:08 +00009890return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891 ;
9892 return 0;
9893}
9894_ACEOF
9895rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009896if { (ac_try="$ac_link"
9897case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900esac
9901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9910 { (case "(($ac_try" in
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9913esac
9914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; } &&
9919 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009920 { (case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9923esac
9924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_lib_dld_shl_load=yes
9930else
9931 echo "$as_me: failed program was:" >&5
9932sed 's/^/| /' conftest.$ac_ext >&5
9933
Reid Spencera773bd52006-08-04 18:18:08 +00009934 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935fi
Reid Spencera773bd52006-08-04 18:18:08 +00009936
9937rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938 conftest$ac_exeext conftest.$ac_ext
9939LIBS=$ac_check_lib_save_LIBS
9940fi
Reid Spencera773bd52006-08-04 18:18:08 +00009941{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9942echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943if test $ac_cv_lib_dld_shl_load = yes; then
9944
9945cat >>confdefs.h <<\_ACEOF
9946#define HAVE_SHL_LOAD 1
9947_ACEOF
9948
9949 LIBADD_DL="$LIBADD_DL -ldld"
9950else
Reid Spencera773bd52006-08-04 18:18:08 +00009951 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9952echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955else
9956 ac_check_lib_save_LIBS=$LIBS
9957LIBS="-ldl $LIBS"
9958cat >conftest.$ac_ext <<_ACEOF
9959/* confdefs.h. */
9960_ACEOF
9961cat confdefs.h >>conftest.$ac_ext
9962cat >>conftest.$ac_ext <<_ACEOF
9963/* end confdefs.h. */
9964
Reid Spencera773bd52006-08-04 18:18:08 +00009965/* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009968#ifdef __cplusplus
9969extern "C"
9970#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009971char dlopen ();
9972int
9973main ()
9974{
Reid Spencera773bd52006-08-04 18:18:08 +00009975return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976 ;
9977 return 0;
9978}
9979_ACEOF
9980rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009981if { (ac_try="$ac_link"
9982case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9985esac
9986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9995 { (case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9998esac
9999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010005 { (case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008esac
10009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_lib_dl_dlopen=yes
10015else
10016 echo "$as_me: failed program was:" >&5
10017sed 's/^/| /' conftest.$ac_ext >&5
10018
Reid Spencera773bd52006-08-04 18:18:08 +000010019 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020fi
Reid Spencera773bd52006-08-04 18:18:08 +000010021
10022rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023 conftest$ac_exeext conftest.$ac_ext
10024LIBS=$ac_check_lib_save_LIBS
10025fi
Reid Spencera773bd52006-08-04 18:18:08 +000010026{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10027echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010028if test $ac_cv_lib_dl_dlopen = yes; then
10029
10030cat >>confdefs.h <<\_ACEOF
10031#define HAVE_LIBDL 1
10032_ACEOF
10033
10034 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10035else
10036 cat >conftest.$ac_ext <<_ACEOF
10037/* confdefs.h. */
10038_ACEOF
10039cat confdefs.h >>conftest.$ac_ext
10040cat >>conftest.$ac_ext <<_ACEOF
10041/* end confdefs.h. */
10042#if HAVE_DLFCN_H
10043# include <dlfcn.h>
10044#endif
10045
10046int
10047main ()
10048{
10049dlopen(0, 0);
10050 ;
10051 return 0;
10052}
10053_ACEOF
10054rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010055if { (ac_try="$ac_link"
10056case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10059esac
10060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
10064 rm -f conftest.er1
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10082esac
10083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088
10089cat >>confdefs.h <<\_ACEOF
10090#define HAVE_LIBDL 1
10091_ACEOF
10092 libltdl_cv_func_dlopen="yes"
10093else
10094 echo "$as_me: failed program was:" >&5
10095sed 's/^/| /' conftest.$ac_ext >&5
10096
Reid Spencera773bd52006-08-04 18:18:08 +000010097 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10098echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010099if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101else
10102 ac_check_lib_save_LIBS=$LIBS
10103LIBS="-lsvld $LIBS"
10104cat >conftest.$ac_ext <<_ACEOF
10105/* confdefs.h. */
10106_ACEOF
10107cat confdefs.h >>conftest.$ac_ext
10108cat >>conftest.$ac_ext <<_ACEOF
10109/* end confdefs.h. */
10110
Reid Spencera773bd52006-08-04 18:18:08 +000010111/* Override any GCC internal prototype to avoid an error.
10112 Use char because int might match the return type of a GCC
10113 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114#ifdef __cplusplus
10115extern "C"
10116#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117char dlopen ();
10118int
10119main ()
10120{
Reid Spencera773bd52006-08-04 18:18:08 +000010121return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122 ;
10123 return 0;
10124}
10125_ACEOF
10126rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010127if { (ac_try="$ac_link"
10128case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131esac
10132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10141 { (case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10144esac
10145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010151 { (case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154esac
10155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_lib_svld_dlopen=yes
10161else
10162 echo "$as_me: failed program was:" >&5
10163sed 's/^/| /' conftest.$ac_ext >&5
10164
Reid Spencera773bd52006-08-04 18:18:08 +000010165 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166fi
Reid Spencera773bd52006-08-04 18:18:08 +000010167
10168rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010169 conftest$ac_exeext conftest.$ac_ext
10170LIBS=$ac_check_lib_save_LIBS
10171fi
Reid Spencera773bd52006-08-04 18:18:08 +000010172{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10173echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174if test $ac_cv_lib_svld_dlopen = yes; then
10175
10176cat >>confdefs.h <<\_ACEOF
10177#define HAVE_LIBDL 1
10178_ACEOF
10179
10180 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10181else
Reid Spencera773bd52006-08-04 18:18:08 +000010182 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10183echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10186else
10187 ac_check_lib_save_LIBS=$LIBS
10188LIBS="-ldld $LIBS"
10189cat >conftest.$ac_ext <<_ACEOF
10190/* confdefs.h. */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h. */
10195
Reid Spencera773bd52006-08-04 18:18:08 +000010196/* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199#ifdef __cplusplus
10200extern "C"
10201#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010202char dld_link ();
10203int
10204main ()
10205{
Reid Spencera773bd52006-08-04 18:18:08 +000010206return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010207 ;
10208 return 0;
10209}
10210_ACEOF
10211rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010212if { (ac_try="$ac_link"
10213case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219 ac_status=$?
10220 grep -v '^ *+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229esac
10230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010236 { (case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10239esac
10240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_lib_dld_dld_link=yes
10246else
10247 echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
10249
Reid Spencera773bd52006-08-04 18:18:08 +000010250 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251fi
Reid Spencera773bd52006-08-04 18:18:08 +000010252
10253rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254 conftest$ac_exeext conftest.$ac_ext
10255LIBS=$ac_check_lib_save_LIBS
10256fi
Reid Spencera773bd52006-08-04 18:18:08 +000010257{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10258echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259if test $ac_cv_lib_dld_dld_link = yes; then
10260
10261cat >>confdefs.h <<\_ACEOF
10262#define HAVE_DLD 1
10263_ACEOF
10264
10265 LIBADD_DL="$LIBADD_DL -ldld"
10266else
Reid Spencera773bd52006-08-04 18:18:08 +000010267 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10268echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271else
10272 cat >conftest.$ac_ext <<_ACEOF
10273/* confdefs.h. */
10274_ACEOF
10275cat confdefs.h >>conftest.$ac_ext
10276cat >>conftest.$ac_ext <<_ACEOF
10277/* end confdefs.h. */
10278/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10280#define _dyld_func_lookup innocuous__dyld_func_lookup
10281
10282/* System header to define __stub macros and hopefully few prototypes,
10283 which can conflict with char _dyld_func_lookup (); below.
10284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10285 <limits.h> exists even on freestanding compilers. */
10286
10287#ifdef __STDC__
10288# include <limits.h>
10289#else
10290# include <assert.h>
10291#endif
10292
10293#undef _dyld_func_lookup
10294
Reid Spencera773bd52006-08-04 18:18:08 +000010295/* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298#ifdef __cplusplus
10299extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301char _dyld_func_lookup ();
10302/* The GNU C library defines this for functions which it implements
10303 to always fail with ENOSYS. Some functions are actually named
10304 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010305#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307#endif
10308
10309int
10310main ()
10311{
Reid Spencera773bd52006-08-04 18:18:08 +000010312return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313 ;
10314 return 0;
10315}
10316_ACEOF
10317rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010318if { (ac_try="$ac_link"
10319case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322esac
10323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325 ac_status=$?
10326 grep -v '^ *+' conftest.er1 >conftest.err
10327 rm -f conftest.er1
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10332 { (case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335esac
10336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010342 { (case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345esac
10346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_cv_func__dyld_func_lookup=yes
10352else
10353 echo "$as_me: failed program was:" >&5
10354sed 's/^/| /' conftest.$ac_ext >&5
10355
Reid Spencera773bd52006-08-04 18:18:08 +000010356 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357fi
Reid Spencera773bd52006-08-04 18:18:08 +000010358
10359rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360 conftest$ac_exeext conftest.$ac_ext
10361fi
Reid Spencera773bd52006-08-04 18:18:08 +000010362{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10363echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364if test $ac_cv_func__dyld_func_lookup = yes; then
10365
10366cat >>confdefs.h <<\_ACEOF
10367#define HAVE_DYLD 1
10368_ACEOF
10369
10370fi
10371
10372
10373fi
10374
10375
10376fi
10377
10378
10379fi
Reid Spencera773bd52006-08-04 18:18:08 +000010380
10381rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010382 conftest$ac_exeext conftest.$ac_ext
10383
10384fi
10385
10386
10387fi
10388
10389
10390fi
10391
10392
10393if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10394then
10395 lt_save_LIBS="$LIBS"
10396 LIBS="$LIBS $LIBADD_DL"
10397
10398for ac_func in dlerror
10399do
10400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010401{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10403if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 cat >conftest.$ac_ext <<_ACEOF
10407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h. */
10412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10414#define $ac_func innocuous_$ac_func
10415
10416/* System header to define __stub macros and hopefully few prototypes,
10417 which can conflict with char $ac_func (); below.
10418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10419 <limits.h> exists even on freestanding compilers. */
10420
10421#ifdef __STDC__
10422# include <limits.h>
10423#else
10424# include <assert.h>
10425#endif
10426
10427#undef $ac_func
10428
Reid Spencera773bd52006-08-04 18:18:08 +000010429/* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010432#ifdef __cplusplus
10433extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435char $ac_func ();
10436/* The GNU C library defines this for functions which it implements
10437 to always fail with ENOSYS. Some functions are actually named
10438 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010439#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441#endif
10442
10443int
10444main ()
10445{
Reid Spencera773bd52006-08-04 18:18:08 +000010446return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447 ;
10448 return 0;
10449}
10450_ACEOF
10451rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010452if { (ac_try="$ac_link"
10453case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456esac
10457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469esac
10470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010476 { (case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479esac
10480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 eval "$as_ac_var=yes"
10486else
10487 echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
Reid Spencera773bd52006-08-04 18:18:08 +000010490 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491fi
Reid Spencera773bd52006-08-04 18:18:08 +000010492
10493rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494 conftest$ac_exeext conftest.$ac_ext
10495fi
Reid Spencera773bd52006-08-04 18:18:08 +000010496ac_res=`eval echo '${'$as_ac_var'}'`
10497 { echo "$as_me:$LINENO: result: $ac_res" >&5
10498echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499if test `eval echo '${'$as_ac_var'}'` = yes; then
10500 cat >>confdefs.h <<_ACEOF
10501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10502_ACEOF
10503
10504fi
10505done
10506
10507 LIBS="$lt_save_LIBS"
10508fi
10509ac_ext=c
10510ac_cpp='$CPP $CPPFLAGS'
10511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513ac_compiler_gnu=$ac_cv_c_compiler_gnu
10514
10515
10516
Reid Spencera773bd52006-08-04 18:18:08 +000010517{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10518echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521else
10522 ac_cv_sys_symbol_underscore=no
10523 cat > conftest.$ac_ext <<EOF
10524void nm_test_func(){}
10525int main(){nm_test_func;return 0;}
10526EOF
10527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528 (eval $ac_compile) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; then
10532 # Now try to grab the symbols.
10533 ac_nlist=conftest.nm
10534 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10535 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && test -s "$ac_nlist"; then
10539 # See whether the symbols have a leading underscore.
10540 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10541 ac_cv_sys_symbol_underscore=yes
10542 else
10543 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10544 :
10545 else
10546 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10547 fi
10548 fi
10549 else
10550 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10551 fi
10552 else
10553 echo "configure: failed program was:" >&5
10554 cat conftest.c >&5
10555 fi
10556 rm -rf conftest*
10557
10558fi
Reid Spencera773bd52006-08-04 18:18:08 +000010559{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10560echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561
10562
10563if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10564 if test x"$libltdl_cv_func_dlopen" = xyes ||
10565 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010566 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10567echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568if test "${libltdl_cv_need_uscore+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10570else
10571 libltdl_cv_need_uscore=unknown
10572 save_LIBS="$LIBS"
10573 LIBS="$LIBS $LIBADD_DL"
10574 if test "$cross_compiling" = yes; then :
10575 libltdl_cv_need_uscore=cross
10576else
10577 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10578 lt_status=$lt_dlunknown
10579 cat > conftest.$ac_ext <<EOF
Devang Patel5d28b882007-12-04 22:54:47 +000010580#line 10580 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010581#include "confdefs.h"
10582
10583#if HAVE_DLFCN_H
10584#include <dlfcn.h>
10585#endif
10586
10587#include <stdio.h>
10588
10589#ifdef RTLD_GLOBAL
10590# define LT_DLGLOBAL RTLD_GLOBAL
10591#else
10592# ifdef DL_GLOBAL
10593# define LT_DLGLOBAL DL_GLOBAL
10594# else
10595# define LT_DLGLOBAL 0
10596# endif
10597#endif
10598
10599/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10600 find out it does not work in some platform. */
10601#ifndef LT_DLLAZY_OR_NOW
10602# ifdef RTLD_LAZY
10603# define LT_DLLAZY_OR_NOW RTLD_LAZY
10604# else
10605# ifdef DL_LAZY
10606# define LT_DLLAZY_OR_NOW DL_LAZY
10607# else
10608# ifdef RTLD_NOW
10609# define LT_DLLAZY_OR_NOW RTLD_NOW
10610# else
10611# ifdef DL_NOW
10612# define LT_DLLAZY_OR_NOW DL_NOW
10613# else
10614# define LT_DLLAZY_OR_NOW 0
10615# endif
10616# endif
10617# endif
10618# endif
10619#endif
10620
10621#ifdef __cplusplus
10622extern "C" void exit (int);
10623#endif
10624
10625void fnord() { int i=42;}
10626int main ()
10627{
10628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10629 int status = $lt_dlunknown;
10630
10631 if (self)
10632 {
10633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10634 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10635 /* dlclose (self); */
10636 }
Reid Spencera773bd52006-08-04 18:18:08 +000010637 else
10638 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010639
10640 exit (status);
10641}
10642EOF
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010648 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649 lt_status=$?
10650 case x$lt_status in
10651 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10652 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010653 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010654 esac
10655 else :
10656 # compilation failed
10657
10658 fi
10659fi
10660rm -fr conftest*
10661
10662 LIBS="$save_LIBS"
10663
10664fi
Reid Spencera773bd52006-08-04 18:18:08 +000010665{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10666echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010667 fi
10668fi
10669
10670if test x"$libltdl_cv_need_uscore" = xyes; then
10671
10672cat >>confdefs.h <<\_ACEOF
10673#define NEED_USCORE 1
10674_ACEOF
10675
10676fi
10677
10678
Reid Spencera773bd52006-08-04 18:18:08 +000010679{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10680echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010681if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683else
10684 # PORTME does your system automatically load deplibs for dlopen?
10685 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10686 # For now, we just catch OSes we know something about -- in the
10687 # future, we'll try test this programmatically.
10688 libltdl_cv_sys_dlopen_deplibs=unknown
10689 case "$host_os" in
10690 aix3*|aix4.1.*|aix4.2.*)
10691 # Unknown whether this is true for these versions of AIX, but
10692 # we want this `case' here to explicitly catch those versions.
10693 libltdl_cv_sys_dlopen_deplibs=unknown
10694 ;;
10695 aix[45]*)
10696 libltdl_cv_sys_dlopen_deplibs=yes
10697 ;;
10698 darwin*)
10699 # Assuming the user has installed a libdl from somewhere, this is true
10700 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10701 libltdl_cv_sys_dlopen_deplibs=yes
10702 ;;
10703 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10704 # GNU and its variants, using gnu ld.so (Glibc)
10705 libltdl_cv_sys_dlopen_deplibs=yes
10706 ;;
10707 hpux10*|hpux11*)
10708 libltdl_cv_sys_dlopen_deplibs=yes
10709 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010710 interix*)
10711 libltdl_cv_sys_dlopen_deplibs=yes
10712 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713 irix[12345]*|irix6.[01]*)
10714 # Catch all versions of IRIX before 6.2, and indicate that we don't
10715 # know how it worked for any of those versions.
10716 libltdl_cv_sys_dlopen_deplibs=unknown
10717 ;;
10718 irix*)
10719 # The case above catches anything before 6.2, and it's known that
10720 # at 6.2 and later dlopen does load deplibs.
10721 libltdl_cv_sys_dlopen_deplibs=yes
10722 ;;
10723 netbsd*)
10724 libltdl_cv_sys_dlopen_deplibs=yes
10725 ;;
10726 openbsd*)
10727 libltdl_cv_sys_dlopen_deplibs=yes
10728 ;;
10729 osf[1234]*)
10730 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10731 # it did *not* use an RPATH in a shared library to find objects the
10732 # library depends on, so we explictly say `no'.
10733 libltdl_cv_sys_dlopen_deplibs=no
10734 ;;
10735 osf5.0|osf5.0a|osf5.1)
10736 # dlopen *does* load deplibs and with the right loader patch applied
10737 # it even uses RPATH in a shared library to search for shared objects
10738 # that the library depends on, but there's no easy way to know if that
10739 # patch is installed. Since this is the case, all we can really
10740 # say is unknown -- it depends on the patch being installed. If
10741 # it is, this changes to `yes'. Without it, it would be `no'.
10742 libltdl_cv_sys_dlopen_deplibs=unknown
10743 ;;
10744 osf*)
10745 # the two cases above should catch all versions of osf <= 5.1. Read
10746 # the comments above for what we know about them.
10747 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10748 # is used to find them so we can finally say `yes'.
10749 libltdl_cv_sys_dlopen_deplibs=yes
10750 ;;
10751 solaris*)
10752 libltdl_cv_sys_dlopen_deplibs=yes
10753 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10755 libltdl_cv_sys_dlopen_deplibs=yes
10756 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010757 esac
10758
10759fi
Reid Spencera773bd52006-08-04 18:18:08 +000010760{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10761echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10763
10764cat >>confdefs.h <<\_ACEOF
10765#define LTDL_DLOPEN_DEPLIBS 1
10766_ACEOF
10767
10768fi
10769
10770
10771for ac_header in argz.h
10772do
10773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779fi
Reid Spencera773bd52006-08-04 18:18:08 +000010780ac_res=`eval echo '${'$as_ac_Header'}'`
10781 { echo "$as_me:$LINENO: result: $ac_res" >&5
10782echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010783else
10784 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010785{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787cat >conftest.$ac_ext <<_ACEOF
10788/* confdefs.h. */
10789_ACEOF
10790cat confdefs.h >>conftest.$ac_ext
10791cat >>conftest.$ac_ext <<_ACEOF
10792/* end confdefs.h. */
10793$ac_includes_default
10794#include <$ac_header>
10795_ACEOF
10796rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010797if { (ac_try="$ac_compile"
10798case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801esac
10802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811 { (case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814esac
10815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010821 { (case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10824esac
10825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_header_compiler=yes
10831else
10832 echo "$as_me: failed program was:" >&5
10833sed 's/^/| /' conftest.$ac_ext >&5
10834
Reid Spencera773bd52006-08-04 18:18:08 +000010835 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836fi
Reid Spencera773bd52006-08-04 18:18:08 +000010837
10838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10840echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841
10842# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010843{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845cat >conftest.$ac_ext <<_ACEOF
10846/* confdefs.h. */
10847_ACEOF
10848cat confdefs.h >>conftest.$ac_ext
10849cat >>conftest.$ac_ext <<_ACEOF
10850/* end confdefs.h. */
10851#include <$ac_header>
10852_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010853if { (ac_try="$ac_cpp conftest.$ac_ext"
10854case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857esac
10858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } >/dev/null; then
10866 if test -s conftest.err; then
10867 ac_cpp_err=$ac_c_preproc_warn_flag
10868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10869 else
10870 ac_cpp_err=
10871 fi
10872else
10873 ac_cpp_err=yes
10874fi
10875if test -z "$ac_cpp_err"; then
10876 ac_header_preproc=yes
10877else
10878 echo "$as_me: failed program was:" >&5
10879sed 's/^/| /' conftest.$ac_ext >&5
10880
10881 ac_header_preproc=no
10882fi
Reid Spencera773bd52006-08-04 18:18:08 +000010883
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010885{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10886echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887
10888# So? What about this header?
10889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10890 yes:no: )
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10894echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10895 ac_header_preproc=yes
10896 ;;
10897 no:yes:* )
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10899echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10901echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10903echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10905echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10907echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10909echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010910 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911## ----------------------------------- ##
10912## Report this to llvmbugs@cs.uiuc.edu ##
10913## ----------------------------------- ##
10914_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010915 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916 ;;
10917esac
Reid Spencera773bd52006-08-04 18:18:08 +000010918{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922else
10923 eval "$as_ac_Header=\$ac_header_preproc"
10924fi
Reid Spencera773bd52006-08-04 18:18:08 +000010925ac_res=`eval echo '${'$as_ac_Header'}'`
10926 { echo "$as_me:$LINENO: result: $ac_res" >&5
10927echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928
10929fi
10930if test `eval echo '${'$as_ac_Header'}'` = yes; then
10931 cat >>confdefs.h <<_ACEOF
10932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10933_ACEOF
10934
10935fi
10936
10937done
10938
10939
Reid Spencera773bd52006-08-04 18:18:08 +000010940{ echo "$as_me:$LINENO: checking for error_t" >&5
10941echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942if test "${ac_cv_type_error_t+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10944else
10945 cat >conftest.$ac_ext <<_ACEOF
10946/* confdefs.h. */
10947_ACEOF
10948cat confdefs.h >>conftest.$ac_ext
10949cat >>conftest.$ac_ext <<_ACEOF
10950/* end confdefs.h. */
10951#if HAVE_ARGZ_H
10952# include <argz.h>
10953#endif
10954
Reid Spencera773bd52006-08-04 18:18:08 +000010955typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010956int
10957main ()
10958{
Reid Spencera773bd52006-08-04 18:18:08 +000010959if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010961if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962 return 0;
10963 ;
10964 return 0;
10965}
10966_ACEOF
10967rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010968if { (ac_try="$ac_compile"
10969case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10972esac
10973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010975 ac_status=$?
10976 grep -v '^ *+' conftest.er1 >conftest.err
10977 rm -f conftest.er1
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10982 { (case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985esac
10986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010992 { (case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10995esac
10996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 ac_cv_type_error_t=yes
11002else
11003 echo "$as_me: failed program was:" >&5
11004sed 's/^/| /' conftest.$ac_ext >&5
11005
Reid Spencera773bd52006-08-04 18:18:08 +000011006 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011007fi
Reid Spencera773bd52006-08-04 18:18:08 +000011008
11009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011010fi
Reid Spencera773bd52006-08-04 18:18:08 +000011011{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11012echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011013if test $ac_cv_type_error_t = yes; then
11014
11015cat >>confdefs.h <<_ACEOF
11016#define HAVE_ERROR_T 1
11017_ACEOF
11018
11019
11020else
11021
11022cat >>confdefs.h <<\_ACEOF
11023#define error_t int
11024_ACEOF
11025
11026fi
11027
11028
11029
11030
11031
11032
11033
11034for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11035do
11036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011037{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11039if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041else
11042 cat >conftest.$ac_ext <<_ACEOF
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11050#define $ac_func innocuous_$ac_func
11051
11052/* System header to define __stub macros and hopefully few prototypes,
11053 which can conflict with char $ac_func (); below.
11054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055 <limits.h> exists even on freestanding compilers. */
11056
11057#ifdef __STDC__
11058# include <limits.h>
11059#else
11060# include <assert.h>
11061#endif
11062
11063#undef $ac_func
11064
Reid Spencera773bd52006-08-04 18:18:08 +000011065/* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068#ifdef __cplusplus
11069extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011070#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071char $ac_func ();
11072/* The GNU C library defines this for functions which it implements
11073 to always fail with ENOSYS. Some functions are actually named
11074 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011075#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077#endif
11078
11079int
11080main ()
11081{
Reid Spencera773bd52006-08-04 18:18:08 +000011082return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011083 ;
11084 return 0;
11085}
11086_ACEOF
11087rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011088if { (ac_try="$ac_link"
11089case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092esac
11093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11102 { (case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105esac
11106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; } &&
11111 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011112 { (case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115esac
11116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 eval "$as_ac_var=yes"
11122else
11123 echo "$as_me: failed program was:" >&5
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
Reid Spencera773bd52006-08-04 18:18:08 +000011126 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127fi
Reid Spencera773bd52006-08-04 18:18:08 +000011128
11129rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130 conftest$ac_exeext conftest.$ac_ext
11131fi
Reid Spencera773bd52006-08-04 18:18:08 +000011132ac_res=`eval echo '${'$as_ac_var'}'`
11133 { echo "$as_me:$LINENO: result: $ac_res" >&5
11134echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135if test `eval echo '${'$as_ac_var'}'` = yes; then
11136 cat >>confdefs.h <<_ACEOF
11137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11138_ACEOF
11139
11140fi
11141done
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11171 stdio.h unistd.h
11172do
11173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178 echo $ECHO_N "(cached) $ECHO_C" >&6
11179fi
Reid Spencera773bd52006-08-04 18:18:08 +000011180ac_res=`eval echo '${'$as_ac_Header'}'`
11181 { echo "$as_me:$LINENO: result: $ac_res" >&5
11182echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183else
11184 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011185{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011187cat >conftest.$ac_ext <<_ACEOF
11188/* confdefs.h. */
11189_ACEOF
11190cat confdefs.h >>conftest.$ac_ext
11191cat >>conftest.$ac_ext <<_ACEOF
11192/* end confdefs.h. */
11193$ac_includes_default
11194#include <$ac_header>
11195_ACEOF
11196rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011197if { (ac_try="$ac_compile"
11198case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11201esac
11202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11214esac
11215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011221 { (case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224esac
11225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_header_compiler=yes
11231else
11232 echo "$as_me: failed program was:" >&5
11233sed 's/^/| /' conftest.$ac_ext >&5
11234
Reid Spencera773bd52006-08-04 18:18:08 +000011235 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236fi
Reid Spencera773bd52006-08-04 18:18:08 +000011237
11238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11240echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011241
11242# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011243{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245cat >conftest.$ac_ext <<_ACEOF
11246/* confdefs.h. */
11247_ACEOF
11248cat confdefs.h >>conftest.$ac_ext
11249cat >>conftest.$ac_ext <<_ACEOF
11250/* end confdefs.h. */
11251#include <$ac_header>
11252_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011253if { (ac_try="$ac_cpp conftest.$ac_ext"
11254case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } >/dev/null; then
11266 if test -s conftest.err; then
11267 ac_cpp_err=$ac_c_preproc_warn_flag
11268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11269 else
11270 ac_cpp_err=
11271 fi
11272else
11273 ac_cpp_err=yes
11274fi
11275if test -z "$ac_cpp_err"; then
11276 ac_header_preproc=yes
11277else
11278 echo "$as_me: failed program was:" >&5
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
11281 ac_header_preproc=no
11282fi
Reid Spencera773bd52006-08-04 18:18:08 +000011283
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011284rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011285{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287
11288# So? What about this header?
11289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11290 yes:no: )
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11295 ac_header_preproc=yes
11296 ;;
11297 no:yes:* )
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11301echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11305echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011310 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311## ----------------------------------- ##
11312## Report this to llvmbugs@cs.uiuc.edu ##
11313## ----------------------------------- ##
11314_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011315 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316 ;;
11317esac
Reid Spencera773bd52006-08-04 18:18:08 +000011318{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321 echo $ECHO_N "(cached) $ECHO_C" >&6
11322else
11323 eval "$as_ac_Header=\$ac_header_preproc"
11324fi
Reid Spencera773bd52006-08-04 18:18:08 +000011325ac_res=`eval echo '${'$as_ac_Header'}'`
11326 { echo "$as_me:$LINENO: result: $ac_res" >&5
11327echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328
11329fi
11330if test `eval echo '${'$as_ac_Header'}'` = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333_ACEOF
11334
11335fi
11336
11337done
11338
11339
11340
11341
11342
11343for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11344do
11345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011350 echo $ECHO_N "(cached) $ECHO_C" >&6
11351fi
Reid Spencera773bd52006-08-04 18:18:08 +000011352ac_res=`eval echo '${'$as_ac_Header'}'`
11353 { echo "$as_me:$LINENO: result: $ac_res" >&5
11354echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011355else
11356 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011357{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011359cat >conftest.$ac_ext <<_ACEOF
11360/* confdefs.h. */
11361_ACEOF
11362cat confdefs.h >>conftest.$ac_ext
11363cat >>conftest.$ac_ext <<_ACEOF
11364/* end confdefs.h. */
11365$ac_includes_default
11366#include <$ac_header>
11367_ACEOF
11368rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011369if { (ac_try="$ac_compile"
11370case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11373esac
11374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383 { (case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11386esac
11387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; } &&
11392 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011393 { (case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396esac
11397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399 ac_status=$?
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 ac_header_compiler=yes
11403else
11404 echo "$as_me: failed program was:" >&5
11405sed 's/^/| /' conftest.$ac_ext >&5
11406
Reid Spencera773bd52006-08-04 18:18:08 +000011407 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408fi
Reid Spencera773bd52006-08-04 18:18:08 +000011409
11410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11412echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413
11414# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011415{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011417cat >conftest.$ac_ext <<_ACEOF
11418/* confdefs.h. */
11419_ACEOF
11420cat confdefs.h >>conftest.$ac_ext
11421cat >>conftest.$ac_ext <<_ACEOF
11422/* end confdefs.h. */
11423#include <$ac_header>
11424_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011425if { (ac_try="$ac_cpp conftest.$ac_ext"
11426case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429esac
11430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } >/dev/null; then
11438 if test -s conftest.err; then
11439 ac_cpp_err=$ac_c_preproc_warn_flag
11440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11441 else
11442 ac_cpp_err=
11443 fi
11444else
11445 ac_cpp_err=yes
11446fi
11447if test -z "$ac_cpp_err"; then
11448 ac_header_preproc=yes
11449else
11450 echo "$as_me: failed program was:" >&5
11451sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_header_preproc=no
11454fi
Reid Spencera773bd52006-08-04 18:18:08 +000011455
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011456rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011459
11460# So? What about this header?
11461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462 yes:no: )
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467 ac_header_preproc=yes
11468 ;;
11469 no:yes:* )
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011482 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483## ----------------------------------- ##
11484## Report this to llvmbugs@cs.uiuc.edu ##
11485## ----------------------------------- ##
11486_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011487 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488 ;;
11489esac
Reid Spencera773bd52006-08-04 18:18:08 +000011490{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 eval "$as_ac_Header=\$ac_header_preproc"
11496fi
Reid Spencera773bd52006-08-04 18:18:08 +000011497ac_res=`eval echo '${'$as_ac_Header'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500
11501fi
11502if test `eval echo '${'$as_ac_Header'}'` = yes; then
11503 cat >>confdefs.h <<_ACEOF
11504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11505_ACEOF
11506
11507fi
11508
11509done
11510
11511
11512
11513for ac_header in string.h strings.h
11514do
11515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521fi
Reid Spencera773bd52006-08-04 18:18:08 +000011522ac_res=`eval echo '${'$as_ac_Header'}'`
11523 { echo "$as_me:$LINENO: result: $ac_res" >&5
11524echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525else
11526 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011527{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529cat >conftest.$ac_ext <<_ACEOF
11530/* confdefs.h. */
11531_ACEOF
11532cat confdefs.h >>conftest.$ac_ext
11533cat >>conftest.$ac_ext <<_ACEOF
11534/* end confdefs.h. */
11535$ac_includes_default
11536#include <$ac_header>
11537_ACEOF
11538rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011539if { (ac_try="$ac_compile"
11540case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11543esac
11544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11553 { (case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11556esac
11557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; } &&
11562 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011563 { (case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566esac
11567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_header_compiler=yes
11573else
11574 echo "$as_me: failed program was:" >&5
11575sed 's/^/| /' conftest.$ac_ext >&5
11576
Reid Spencera773bd52006-08-04 18:18:08 +000011577 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578fi
Reid Spencera773bd52006-08-04 18:18:08 +000011579
11580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11582echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583
11584# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011585{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011587cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
11593#include <$ac_header>
11594_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011595if { (ac_try="$ac_cpp conftest.$ac_ext"
11596case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599esac
11600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } >/dev/null; then
11608 if test -s conftest.err; then
11609 ac_cpp_err=$ac_c_preproc_warn_flag
11610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11611 else
11612 ac_cpp_err=
11613 fi
11614else
11615 ac_cpp_err=yes
11616fi
11617if test -z "$ac_cpp_err"; then
11618 ac_header_preproc=yes
11619else
11620 echo "$as_me: failed program was:" >&5
11621sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 ac_header_preproc=no
11624fi
Reid Spencera773bd52006-08-04 18:18:08 +000011625
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011626rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011627{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11628echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011629
11630# So? What about this header?
11631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11632 yes:no: )
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11637 ac_header_preproc=yes
11638 ;;
11639 no:yes:* )
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011652 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653## ----------------------------------- ##
11654## Report this to llvmbugs@cs.uiuc.edu ##
11655## ----------------------------------- ##
11656_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011657 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658 ;;
11659esac
Reid Spencera773bd52006-08-04 18:18:08 +000011660{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664else
11665 eval "$as_ac_Header=\$ac_header_preproc"
11666fi
Reid Spencera773bd52006-08-04 18:18:08 +000011667ac_res=`eval echo '${'$as_ac_Header'}'`
11668 { echo "$as_me:$LINENO: result: $ac_res" >&5
11669echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011670
11671fi
11672if test `eval echo '${'$as_ac_Header'}'` = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11675_ACEOF
11676 break
11677fi
11678
11679done
11680
11681
11682
11683
11684for ac_func in strchr index
11685do
11686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011687{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11689if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
11698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11700#define $ac_func innocuous_$ac_func
11701
11702/* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func (); below.
11704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 <limits.h> exists even on freestanding compilers. */
11706
11707#ifdef __STDC__
11708# include <limits.h>
11709#else
11710# include <assert.h>
11711#endif
11712
11713#undef $ac_func
11714
Reid Spencera773bd52006-08-04 18:18:08 +000011715/* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011718#ifdef __cplusplus
11719extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011721char $ac_func ();
11722/* The GNU C library defines this for functions which it implements
11723 to always fail with ENOSYS. Some functions are actually named
11724 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011725#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011726choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011727#endif
11728
11729int
11730main ()
11731{
Reid Spencera773bd52006-08-04 18:18:08 +000011732return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733 ;
11734 return 0;
11735}
11736_ACEOF
11737rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011738if { (ac_try="$ac_link"
11739case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742esac
11743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11752 { (case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11755esac
11756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765esac
11766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "$as_ac_var=yes"
11772else
11773 echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
Reid Spencera773bd52006-08-04 18:18:08 +000011776 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011777fi
Reid Spencera773bd52006-08-04 18:18:08 +000011778
11779rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780 conftest$ac_exeext conftest.$ac_ext
11781fi
Reid Spencera773bd52006-08-04 18:18:08 +000011782ac_res=`eval echo '${'$as_ac_var'}'`
11783 { echo "$as_me:$LINENO: result: $ac_res" >&5
11784echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011785if test `eval echo '${'$as_ac_var'}'` = yes; then
11786 cat >>confdefs.h <<_ACEOF
11787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11788_ACEOF
11789 break
11790fi
11791done
11792
11793
11794
11795for ac_func in strrchr rindex
11796do
11797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011798{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11800if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802else
11803 cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
11809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11811#define $ac_func innocuous_$ac_func
11812
11813/* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char $ac_func (); below.
11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816 <limits.h> exists even on freestanding compilers. */
11817
11818#ifdef __STDC__
11819# include <limits.h>
11820#else
11821# include <assert.h>
11822#endif
11823
11824#undef $ac_func
11825
Reid Spencera773bd52006-08-04 18:18:08 +000011826/* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011829#ifdef __cplusplus
11830extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011832char $ac_func ();
11833/* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011836#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011837choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011838#endif
11839
11840int
11841main ()
11842{
Reid Spencera773bd52006-08-04 18:18:08 +000011843return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011844 ;
11845 return 0;
11846}
11847_ACEOF
11848rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011849if { (ac_try="$ac_link"
11850case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863 { (case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11866esac
11867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 eval "$as_ac_var=yes"
11883else
11884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
Reid Spencera773bd52006-08-04 18:18:08 +000011887 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888fi
Reid Spencera773bd52006-08-04 18:18:08 +000011889
11890rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011891 conftest$ac_exeext conftest.$ac_ext
11892fi
Reid Spencera773bd52006-08-04 18:18:08 +000011893ac_res=`eval echo '${'$as_ac_var'}'`
11894 { echo "$as_me:$LINENO: result: $ac_res" >&5
11895echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011896if test `eval echo '${'$as_ac_var'}'` = yes; then
11897 cat >>confdefs.h <<_ACEOF
11898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11899_ACEOF
11900 break
11901fi
11902done
11903
11904
11905
11906for ac_func in memcpy bcopy
11907do
11908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011909{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913else
11914 cat >conftest.$ac_ext <<_ACEOF
11915/* confdefs.h. */
11916_ACEOF
11917cat confdefs.h >>conftest.$ac_ext
11918cat >>conftest.$ac_ext <<_ACEOF
11919/* end confdefs.h. */
11920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11922#define $ac_func innocuous_$ac_func
11923
11924/* System header to define __stub macros and hopefully few prototypes,
11925 which can conflict with char $ac_func (); below.
11926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927 <limits.h> exists even on freestanding compilers. */
11928
11929#ifdef __STDC__
11930# include <limits.h>
11931#else
11932# include <assert.h>
11933#endif
11934
11935#undef $ac_func
11936
Reid Spencera773bd52006-08-04 18:18:08 +000011937/* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940#ifdef __cplusplus
11941extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011943char $ac_func ();
11944/* The GNU C library defines this for functions which it implements
11945 to always fail with ENOSYS. Some functions are actually named
11946 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011947#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011949#endif
11950
11951int
11952main ()
11953{
Reid Spencera773bd52006-08-04 18:18:08 +000011954return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955 ;
11956 return 0;
11957}
11958_ACEOF
11959rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011960if { (ac_try="$ac_link"
11961case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11964esac
11965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977esac
11978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011984 { (case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987esac
11988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 eval "$as_ac_var=yes"
11994else
11995 echo "$as_me: failed program was:" >&5
11996sed 's/^/| /' conftest.$ac_ext >&5
11997
Reid Spencera773bd52006-08-04 18:18:08 +000011998 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999fi
Reid Spencera773bd52006-08-04 18:18:08 +000012000
12001rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002 conftest$ac_exeext conftest.$ac_ext
12003fi
Reid Spencera773bd52006-08-04 18:18:08 +000012004ac_res=`eval echo '${'$as_ac_var'}'`
12005 { echo "$as_me:$LINENO: result: $ac_res" >&5
12006echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012007if test `eval echo '${'$as_ac_var'}'` = yes; then
12008 cat >>confdefs.h <<_ACEOF
12009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12010_ACEOF
12011 break
12012fi
12013done
12014
12015
12016
12017for ac_func in memmove strcmp
12018do
12019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012020{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12022if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024else
12025 cat >conftest.$ac_ext <<_ACEOF
12026/* confdefs.h. */
12027_ACEOF
12028cat confdefs.h >>conftest.$ac_ext
12029cat >>conftest.$ac_ext <<_ACEOF
12030/* end confdefs.h. */
12031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12033#define $ac_func innocuous_$ac_func
12034
12035/* System header to define __stub macros and hopefully few prototypes,
12036 which can conflict with char $ac_func (); below.
12037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12038 <limits.h> exists even on freestanding compilers. */
12039
12040#ifdef __STDC__
12041# include <limits.h>
12042#else
12043# include <assert.h>
12044#endif
12045
12046#undef $ac_func
12047
Reid Spencera773bd52006-08-04 18:18:08 +000012048/* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051#ifdef __cplusplus
12052extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012053#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012054char $ac_func ();
12055/* The GNU C library defines this for functions which it implements
12056 to always fail with ENOSYS. Some functions are actually named
12057 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012058#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012060#endif
12061
12062int
12063main ()
12064{
Reid Spencera773bd52006-08-04 18:18:08 +000012065return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012066 ;
12067 return 0;
12068}
12069_ACEOF
12070rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012071if { (ac_try="$ac_link"
12072case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075esac
12076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088esac
12089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012095 { (case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12098esac
12099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 eval "$as_ac_var=yes"
12105else
12106 echo "$as_me: failed program was:" >&5
12107sed 's/^/| /' conftest.$ac_ext >&5
12108
Reid Spencera773bd52006-08-04 18:18:08 +000012109 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012110fi
Reid Spencera773bd52006-08-04 18:18:08 +000012111
12112rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012113 conftest$ac_exeext conftest.$ac_ext
12114fi
Reid Spencera773bd52006-08-04 18:18:08 +000012115ac_res=`eval echo '${'$as_ac_var'}'`
12116 { echo "$as_me:$LINENO: result: $ac_res" >&5
12117echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012118if test `eval echo '${'$as_ac_var'}'` = yes; then
12119 cat >>confdefs.h <<_ACEOF
12120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12121_ACEOF
12122
12123fi
12124done
12125
12126
12127
12128
12129for ac_func in closedir opendir readdir
12130do
12131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012132{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12134if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136else
12137 cat >conftest.$ac_ext <<_ACEOF
12138/* confdefs.h. */
12139_ACEOF
12140cat confdefs.h >>conftest.$ac_ext
12141cat >>conftest.$ac_ext <<_ACEOF
12142/* end confdefs.h. */
12143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12145#define $ac_func innocuous_$ac_func
12146
12147/* System header to define __stub macros and hopefully few prototypes,
12148 which can conflict with char $ac_func (); below.
12149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12150 <limits.h> exists even on freestanding compilers. */
12151
12152#ifdef __STDC__
12153# include <limits.h>
12154#else
12155# include <assert.h>
12156#endif
12157
12158#undef $ac_func
12159
Reid Spencera773bd52006-08-04 18:18:08 +000012160/* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163#ifdef __cplusplus
12164extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012165#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012166char $ac_func ();
12167/* The GNU C library defines this for functions which it implements
12168 to always fail with ENOSYS. Some functions are actually named
12169 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012170#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012171choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172#endif
12173
12174int
12175main ()
12176{
Reid Spencera773bd52006-08-04 18:18:08 +000012177return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012178 ;
12179 return 0;
12180}
12181_ACEOF
12182rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012183if { (ac_try="$ac_link"
12184case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187esac
12188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200esac
12201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210esac
12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 eval "$as_ac_var=yes"
12217else
12218 echo "$as_me: failed program was:" >&5
12219sed 's/^/| /' conftest.$ac_ext >&5
12220
Reid Spencera773bd52006-08-04 18:18:08 +000012221 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222fi
Reid Spencera773bd52006-08-04 18:18:08 +000012223
12224rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012225 conftest$ac_exeext conftest.$ac_ext
12226fi
Reid Spencera773bd52006-08-04 18:18:08 +000012227ac_res=`eval echo '${'$as_ac_var'}'`
12228 { echo "$as_me:$LINENO: result: $ac_res" >&5
12229echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012230if test `eval echo '${'$as_ac_var'}'` = yes; then
12231 cat >>confdefs.h <<_ACEOF
12232#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12233_ACEOF
12234
12235fi
12236done
12237
12238
Reid Spencera773bd52006-08-04 18:18:08 +000012239# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012241 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012242 case $enableval in
12243 yes) enable_shared=yes ;;
12244 no) enable_shared=no ;;
12245 *)
12246 enable_shared=no
12247 # Look at the argument we got. We use all the common list separators.
12248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12249 for pkg in $enableval; do
12250 IFS="$lt_save_ifs"
12251 if test "X$pkg" = "X$p"; then
12252 enable_shared=yes
12253 fi
12254 done
12255 IFS="$lt_save_ifs"
12256 ;;
12257 esac
12258else
12259 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012260fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012261
Reid Spencera773bd52006-08-04 18:18:08 +000012262
12263# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012265 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012266 case $enableval in
12267 yes) enable_static=yes ;;
12268 no) enable_static=no ;;
12269 *)
12270 enable_static=no
12271 # Look at the argument we got. We use all the common list separators.
12272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12273 for pkg in $enableval; do
12274 IFS="$lt_save_ifs"
12275 if test "X$pkg" = "X$p"; then
12276 enable_static=yes
12277 fi
12278 done
12279 IFS="$lt_save_ifs"
12280 ;;
12281 esac
12282else
12283 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012284fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012285
Reid Spencera773bd52006-08-04 18:18:08 +000012286
12287# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012288if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012289 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012290 case $enableval in
12291 yes) enable_fast_install=yes ;;
12292 no) enable_fast_install=no ;;
12293 *)
12294 enable_fast_install=no
12295 # Look at the argument we got. We use all the common list separators.
12296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12297 for pkg in $enableval; do
12298 IFS="$lt_save_ifs"
12299 if test "X$pkg" = "X$p"; then
12300 enable_fast_install=yes
12301 fi
12302 done
12303 IFS="$lt_save_ifs"
12304 ;;
12305 esac
12306else
12307 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012308fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012309
Reid Spencera773bd52006-08-04 18:18:08 +000012310
12311{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12312echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012313if test "${lt_cv_path_SED+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315else
12316 # Loop through the user's path and test for sed and gsed.
12317# Then use that list of sed's as ones to test for truncation.
12318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319for as_dir in $PATH
12320do
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for lt_ac_prog in sed gsed; do
12324 for ac_exec_ext in '' $ac_executable_extensions; do
12325 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12326 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12327 fi
12328 done
12329 done
12330done
12331lt_ac_max=0
12332lt_ac_count=0
12333# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12334# along with /bin/sed that truncates output.
12335for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012336 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012337 cat /dev/null > conftest.in
12338 lt_ac_count=0
12339 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12340 # Check for GNU sed and select it if it is found.
12341 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12342 lt_cv_path_SED=$lt_ac_sed
12343 break
12344 fi
12345 while true; do
12346 cat conftest.in conftest.in >conftest.tmp
12347 mv conftest.tmp conftest.in
12348 cp conftest.in conftest.nl
12349 echo >>conftest.nl
12350 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12351 cmp -s conftest.out conftest.nl || break
12352 # 10000 chars as input seems more than enough
12353 test $lt_ac_count -gt 10 && break
12354 lt_ac_count=`expr $lt_ac_count + 1`
12355 if test $lt_ac_count -gt $lt_ac_max; then
12356 lt_ac_max=$lt_ac_count
12357 lt_cv_path_SED=$lt_ac_sed
12358 fi
12359 done
12360done
12361
12362fi
12363
12364SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012365{ echo "$as_me:$LINENO: result: $SED" >&5
12366echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012367
12368
Reid Spencera773bd52006-08-04 18:18:08 +000012369# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012370if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372else
12373 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012374fi
12375
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012376ac_prog=ld
12377if test "$GCC" = yes; then
12378 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012379 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12380echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012381 case $host in
12382 *-*-mingw*)
12383 # gcc leaves a trailing carriage return which upsets mingw
12384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12385 *)
12386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12387 esac
12388 case $ac_prog in
12389 # Accept absolute paths.
12390 [\\/]* | ?:[\\/]*)
12391 re_direlt='/[^/][^/]*/\.\./'
12392 # Canonicalize the pathname of ld
12393 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12394 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12395 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12396 done
12397 test -z "$LD" && LD="$ac_prog"
12398 ;;
12399 "")
12400 # If it fails, then pretend we aren't using GCC.
12401 ac_prog=ld
12402 ;;
12403 *)
12404 # If it is relative, then search for the first ld in PATH.
12405 with_gnu_ld=unknown
12406 ;;
12407 esac
12408elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012409 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12410echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012411else
Reid Spencera773bd52006-08-04 18:18:08 +000012412 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12413echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012414fi
12415if test "${lt_cv_path_LD+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417else
12418 if test -z "$LD"; then
12419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12420 for ac_dir in $PATH; do
12421 IFS="$lt_save_ifs"
12422 test -z "$ac_dir" && ac_dir=.
12423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12424 lt_cv_path_LD="$ac_dir/$ac_prog"
12425 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012426 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012427 # Break only if it was the GNU/non-GNU ld that we prefer.
12428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12429 *GNU* | *'with BFD'*)
12430 test "$with_gnu_ld" != no && break
12431 ;;
12432 *)
12433 test "$with_gnu_ld" != yes && break
12434 ;;
12435 esac
12436 fi
12437 done
12438 IFS="$lt_save_ifs"
12439else
12440 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12441fi
12442fi
12443
12444LD="$lt_cv_path_LD"
12445if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012446 { echo "$as_me:$LINENO: result: $LD" >&5
12447echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012448else
Reid Spencera773bd52006-08-04 18:18:08 +000012449 { echo "$as_me:$LINENO: result: no" >&5
12450echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012451fi
12452test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12453echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12454 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012455{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12456echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012457if test "${lt_cv_prog_gnu_ld+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459else
Reid Spencera773bd52006-08-04 18:18:08 +000012460 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012461case `$LD -v 2>&1 </dev/null` in
12462*GNU* | *'with BFD'*)
12463 lt_cv_prog_gnu_ld=yes
12464 ;;
12465*)
12466 lt_cv_prog_gnu_ld=no
12467 ;;
12468esac
12469fi
Reid Spencera773bd52006-08-04 18:18:08 +000012470{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12471echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012472with_gnu_ld=$lt_cv_prog_gnu_ld
12473
12474
Reid Spencera773bd52006-08-04 18:18:08 +000012475{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12476echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477if test "${lt_cv_ld_reload_flag+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480 lt_cv_ld_reload_flag='-r'
12481fi
Reid Spencera773bd52006-08-04 18:18:08 +000012482{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12483echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012484reload_flag=$lt_cv_ld_reload_flag
12485case $reload_flag in
12486"" | " "*) ;;
12487*) reload_flag=" $reload_flag" ;;
12488esac
12489reload_cmds='$LD$reload_flag -o $output$reload_objs'
12490case $host_os in
12491 darwin*)
12492 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012493 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012494 else
12495 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12496 fi
12497 ;;
12498esac
12499
Reid Spencera773bd52006-08-04 18:18:08 +000012500{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12501echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012502if test "${lt_cv_deplibs_check_method+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504else
12505 lt_cv_file_magic_cmd='$MAGIC_CMD'
12506lt_cv_file_magic_test_file=
12507lt_cv_deplibs_check_method='unknown'
12508# Need to set the preceding variable on all platforms that support
12509# interlibrary dependencies.
12510# 'none' -- dependencies not supported.
12511# `unknown' -- same as none, but documents that we really don't know.
12512# 'pass_all' -- all dependencies passed with no checks.
12513# 'test_compile' -- check by making test program.
12514# 'file_magic [[regex]]' -- check by looking for files in library path
12515# which responds to the $file_magic_cmd with a given extended regex.
12516# If you have `file' or equivalent on your system and you're not sure
12517# whether `pass_all' will *always* work, you probably want this one.
12518
12519case $host_os in
12520aix4* | aix5*)
12521 lt_cv_deplibs_check_method=pass_all
12522 ;;
12523
12524beos*)
12525 lt_cv_deplibs_check_method=pass_all
12526 ;;
12527
12528bsdi[45]*)
12529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12530 lt_cv_file_magic_cmd='/usr/bin/file -L'
12531 lt_cv_file_magic_test_file=/shlib/libc.so
12532 ;;
12533
12534cygwin*)
12535 # func_win32_libid is a shell function defined in ltmain.sh
12536 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12537 lt_cv_file_magic_cmd='func_win32_libid'
12538 ;;
12539
12540mingw* | pw32*)
12541 # Base MSYS/MinGW do not provide the 'file' command needed by
12542 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12543 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12544 lt_cv_file_magic_cmd='$OBJDUMP -f'
12545 ;;
12546
12547darwin* | rhapsody*)
12548 lt_cv_deplibs_check_method=pass_all
12549 ;;
12550
Reid Spencera773bd52006-08-04 18:18:08 +000012551freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012552 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12553 case $host_cpu in
12554 i*86 )
12555 # Not sure whether the presence of OpenBSD here was a mistake.
12556 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012557 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 +000012558 lt_cv_file_magic_cmd=/usr/bin/file
12559 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12560 ;;
12561 esac
12562 else
12563 lt_cv_deplibs_check_method=pass_all
12564 fi
12565 ;;
12566
12567gnu*)
12568 lt_cv_deplibs_check_method=pass_all
12569 ;;
12570
12571hpux10.20* | hpux11*)
12572 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012573 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012574 ia64*)
12575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12576 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12577 ;;
12578 hppa*64*)
12579 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]'
12580 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12581 ;;
12582 *)
12583 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12584 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12585 ;;
12586 esac
12587 ;;
12588
Reid Spencera773bd52006-08-04 18:18:08 +000012589interix3*)
12590 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12592 ;;
12593
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594irix5* | irix6* | nonstopux*)
12595 case $LD in
12596 *-32|*"-32 ") libmagic=32-bit;;
12597 *-n32|*"-n32 ") libmagic=N32;;
12598 *-64|*"-64 ") libmagic=64-bit;;
12599 *) libmagic=never-match;;
12600 esac
12601 lt_cv_deplibs_check_method=pass_all
12602 ;;
12603
12604# This must be Linux ELF.
12605linux*)
12606 lt_cv_deplibs_check_method=pass_all
12607 ;;
12608
12609netbsd*)
12610 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12612 else
12613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12614 fi
12615 ;;
12616
12617newos6*)
12618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12619 lt_cv_file_magic_cmd=/usr/bin/file
12620 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12621 ;;
12622
12623nto-qnx*)
12624 lt_cv_deplibs_check_method=unknown
12625 ;;
12626
12627openbsd*)
12628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12630 else
12631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12632 fi
12633 ;;
12634
12635osf3* | osf4* | osf5*)
12636 lt_cv_deplibs_check_method=pass_all
12637 ;;
12638
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012639solaris*)
12640 lt_cv_deplibs_check_method=pass_all
12641 ;;
12642
Reid Spencera773bd52006-08-04 18:18:08 +000012643sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012644 case $host_vendor in
12645 motorola)
12646 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]'
12647 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12648 ;;
12649 ncr)
12650 lt_cv_deplibs_check_method=pass_all
12651 ;;
12652 sequent)
12653 lt_cv_file_magic_cmd='/bin/file'
12654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12655 ;;
12656 sni)
12657 lt_cv_file_magic_cmd='/bin/file'
12658 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12659 lt_cv_file_magic_test_file=/lib/libc.so
12660 ;;
12661 siemens)
12662 lt_cv_deplibs_check_method=pass_all
12663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012664 pc)
12665 lt_cv_deplibs_check_method=pass_all
12666 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012667 esac
12668 ;;
12669
Reid Spencera773bd52006-08-04 18:18:08 +000012670sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012671 lt_cv_deplibs_check_method=pass_all
12672 ;;
12673esac
12674
12675fi
Reid Spencera773bd52006-08-04 18:18:08 +000012676{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12677echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012678file_magic_cmd=$lt_cv_file_magic_cmd
12679deplibs_check_method=$lt_cv_deplibs_check_method
12680test -z "$deplibs_check_method" && deplibs_check_method=unknown
12681
12682
12683
12684# If no C compiler was specified, use CC.
12685LTCC=${LTCC-"$CC"}
12686
Reid Spencera773bd52006-08-04 18:18:08 +000012687# If no C compiler flags were specified, use CFLAGS.
12688LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12689
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012690# Allow CC to be a program name with arguments.
12691compiler=$CC
12692
Reid Spencera773bd52006-08-04 18:18:08 +000012693# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012694if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012695 enableval=$enable_libtool_lock;
12696fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012697
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12699
12700# Some flags need to be propagated to the compiler or linker for good
12701# libtool support.
12702case $host in
12703ia64-*-hpux*)
12704 # Find out which ABI we are using.
12705 echo 'int i;' > conftest.$ac_ext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; then
12711 case `/usr/bin/file conftest.$ac_objext` in
12712 *ELF-32*)
12713 HPUX_IA64_MODE="32"
12714 ;;
12715 *ELF-64*)
12716 HPUX_IA64_MODE="64"
12717 ;;
12718 esac
12719 fi
12720 rm -rf conftest*
12721 ;;
12722*-*-irix6*)
12723 # Find out which ABI we are using.
Devang Patel5d28b882007-12-04 22:54:47 +000012724 echo '#line 12724 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; then
12730 if test "$lt_cv_prog_gnu_ld" = yes; then
12731 case `/usr/bin/file conftest.$ac_objext` in
12732 *32-bit*)
12733 LD="${LD-ld} -melf32bsmip"
12734 ;;
12735 *N32*)
12736 LD="${LD-ld} -melf32bmipn32"
12737 ;;
12738 *64-bit*)
12739 LD="${LD-ld} -melf64bmip"
12740 ;;
12741 esac
12742 else
12743 case `/usr/bin/file conftest.$ac_objext` in
12744 *32-bit*)
12745 LD="${LD-ld} -32"
12746 ;;
12747 *N32*)
12748 LD="${LD-ld} -n32"
12749 ;;
12750 *64-bit*)
12751 LD="${LD-ld} -64"
12752 ;;
12753 esac
12754 fi
12755 fi
12756 rm -rf conftest*
12757 ;;
12758
12759x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12760 # Find out which ABI we are using.
12761 echo 'int i;' > conftest.$ac_ext
12762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012767 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012768 *32-bit*)
12769 case $host in
12770 x86_64-*linux*)
12771 LD="${LD-ld} -m elf_i386"
12772 ;;
12773 ppc64-*linux*|powerpc64-*linux*)
12774 LD="${LD-ld} -m elf32ppclinux"
12775 ;;
12776 s390x-*linux*)
12777 LD="${LD-ld} -m elf_s390"
12778 ;;
12779 sparc64-*linux*)
12780 LD="${LD-ld} -m elf32_sparc"
12781 ;;
12782 esac
12783 ;;
12784 *64-bit*)
12785 case $host in
12786 x86_64-*linux*)
12787 LD="${LD-ld} -m elf_x86_64"
12788 ;;
12789 ppc*-*linux*|powerpc*-*linux*)
12790 LD="${LD-ld} -m elf64ppc"
12791 ;;
12792 s390*-*linux*)
12793 LD="${LD-ld} -m elf64_s390"
12794 ;;
12795 sparc*-*linux*)
12796 LD="${LD-ld} -m elf64_sparc"
12797 ;;
12798 esac
12799 ;;
12800 esac
12801 fi
12802 rm -rf conftest*
12803 ;;
12804
12805*-*-sco3.2v5*)
12806 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12807 SAVE_CFLAGS="$CFLAGS"
12808 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012809 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12810echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012811if test "${lt_cv_cc_needs_belf+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813else
12814 ac_ext=c
12815ac_cpp='$CPP $CPPFLAGS'
12816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12818ac_compiler_gnu=$ac_cv_c_compiler_gnu
12819
12820 cat >conftest.$ac_ext <<_ACEOF
12821/* confdefs.h. */
12822_ACEOF
12823cat confdefs.h >>conftest.$ac_ext
12824cat >>conftest.$ac_ext <<_ACEOF
12825/* end confdefs.h. */
12826
Reid Spencera773bd52006-08-04 18:18:08 +000012827int
12828main ()
12829{
12830
12831 ;
12832 return 0;
12833}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012834_ACEOF
12835rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012836if { (ac_try="$ac_link"
12837case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840esac
12841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12850 { (case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12853esac
12854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; } &&
12859 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012860 { (case "(($ac_try" in
12861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12862 *) ac_try_echo=$ac_try;;
12863esac
12864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12865 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 lt_cv_cc_needs_belf=yes
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
Reid Spencera773bd52006-08-04 18:18:08 +000012874 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012875fi
Reid Spencera773bd52006-08-04 18:18:08 +000012876
12877rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012878 conftest$ac_exeext conftest.$ac_ext
12879 ac_ext=c
12880ac_cpp='$CPP $CPPFLAGS'
12881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12883ac_compiler_gnu=$ac_cv_c_compiler_gnu
12884
12885fi
Reid Spencera773bd52006-08-04 18:18:08 +000012886{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12887echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012888 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12889 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12890 CFLAGS="$SAVE_CFLAGS"
12891 fi
12892 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012893sparc*-*solaris*)
12894 # Find out which ABI we are using.
12895 echo 'int i;' > conftest.$ac_ext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; then
12901 case `/usr/bin/file conftest.o` in
12902 *64-bit*)
12903 case $lt_cv_prog_gnu_ld in
12904 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12905 *) LD="${LD-ld} -64" ;;
12906 esac
12907 ;;
12908 esac
12909 fi
12910 rm -rf conftest*
12911 ;;
12912
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012913
12914esac
12915
12916need_locks="$enable_libtool_lock"
12917
12918
Reid Spencer2706f8c2004-09-19 23:53:36 +000012919
12920
12921if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12922 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12923 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012924 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012925ac_cpp='$CXXCPP $CPPFLAGS'
12926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012929{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12930echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012931if test -z "$CXXCPP"; then
12932 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934else
John Criswell47fdd832003-07-14 16:52:07 +000012935 # Double quotes because CXXCPP needs to be expanded
12936 for CXXCPP in "$CXX -E" "/lib/cpp"
12937 do
12938 ac_preproc_ok=false
12939for ac_cxx_preproc_warn_flag in '' yes
12940do
12941 # Use a header file that comes with gcc, so configuring glibc
12942 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12944 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012945 # On the NeXT, cc -E runs the code through the compiler's parser,
12946 # not just through cpp. "Syntax error" is here to catch this case.
12947 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012948/* confdefs.h. */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h. */
12953#ifdef __STDC__
12954# include <limits.h>
12955#else
12956# include <assert.h>
12957#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012958 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012959_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012960if { (ac_try="$ac_cpp conftest.$ac_ext"
12961case "(($ac_try" in
12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963 *) ac_try_echo=$ac_try;;
12964esac
12965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012967 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012968 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012969 rm -f conftest.er1
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } >/dev/null; then
12973 if test -s conftest.err; then
12974 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012975 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012976 else
John Criswell47fdd832003-07-14 16:52:07 +000012977 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012978 fi
John Criswell47fdd832003-07-14 16:52:07 +000012979else
12980 ac_cpp_err=yes
12981fi
12982if test -z "$ac_cpp_err"; then
12983 :
12984else
12985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012986sed 's/^/| /' conftest.$ac_ext >&5
12987
John Criswell47fdd832003-07-14 16:52:07 +000012988 # Broken: fails on valid input.
12989continue
12990fi
Reid Spencera773bd52006-08-04 18:18:08 +000012991
John Criswell47fdd832003-07-14 16:52:07 +000012992rm -f conftest.err conftest.$ac_ext
12993
Reid Spencera773bd52006-08-04 18:18:08 +000012994 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012995 # can be detected and how.
12996 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012997/* confdefs.h. */
12998_ACEOF
12999cat confdefs.h >>conftest.$ac_ext
13000cat >>conftest.$ac_ext <<_ACEOF
13001/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013002#include <ac_nonexistent.h>
13003_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013004if { (ac_try="$ac_cpp conftest.$ac_ext"
13005case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008esac
13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013011 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013012 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013013 rm -f conftest.er1
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } >/dev/null; then
13017 if test -s conftest.err; then
13018 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000013019 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000013020 else
13021 ac_cpp_err=
13022 fi
13023else
13024 ac_cpp_err=yes
13025fi
13026if test -z "$ac_cpp_err"; then
13027 # Broken: success on invalid input.
13028continue
13029else
13030 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013031sed 's/^/| /' conftest.$ac_ext >&5
13032
John Criswell47fdd832003-07-14 16:52:07 +000013033 # Passes both tests.
13034ac_preproc_ok=:
13035break
13036fi
Reid Spencera773bd52006-08-04 18:18:08 +000013037
John Criswell47fdd832003-07-14 16:52:07 +000013038rm -f conftest.err conftest.$ac_ext
13039
13040done
13041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13042rm -f conftest.err conftest.$ac_ext
13043if $ac_preproc_ok; then
13044 break
John Criswell7a73b802003-06-30 21:59:07 +000013045fi
13046
John Criswell47fdd832003-07-14 16:52:07 +000013047 done
13048 ac_cv_prog_CXXCPP=$CXXCPP
13049
13050fi
13051 CXXCPP=$ac_cv_prog_CXXCPP
13052else
13053 ac_cv_prog_CXXCPP=$CXXCPP
13054fi
Reid Spencera773bd52006-08-04 18:18:08 +000013055{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13056echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013057ac_preproc_ok=false
13058for ac_cxx_preproc_warn_flag in '' yes
13059do
13060 # Use a header file that comes with gcc, so configuring glibc
13061 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013064 # On the NeXT, cc -E runs the code through the compiler's parser,
13065 # not just through cpp. "Syntax error" is here to catch this case.
13066 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013067/* confdefs.h. */
13068_ACEOF
13069cat confdefs.h >>conftest.$ac_ext
13070cat >>conftest.$ac_ext <<_ACEOF
13071/* end confdefs.h. */
13072#ifdef __STDC__
13073# include <limits.h>
13074#else
13075# include <assert.h>
13076#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013077 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013078_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013079if { (ac_try="$ac_cpp conftest.$ac_ext"
13080case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013086 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013087 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013088 rm -f conftest.er1
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } >/dev/null; then
13092 if test -s conftest.err; then
13093 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000013094 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000013095 else
13096 ac_cpp_err=
13097 fi
13098else
13099 ac_cpp_err=yes
13100fi
13101if test -z "$ac_cpp_err"; then
13102 :
13103else
13104 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013105sed 's/^/| /' conftest.$ac_ext >&5
13106
John Criswell47fdd832003-07-14 16:52:07 +000013107 # Broken: fails on valid input.
13108continue
13109fi
Reid Spencera773bd52006-08-04 18:18:08 +000013110
John Criswell47fdd832003-07-14 16:52:07 +000013111rm -f conftest.err conftest.$ac_ext
13112
Reid Spencera773bd52006-08-04 18:18:08 +000013113 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013114 # can be detected and how.
13115 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013116/* confdefs.h. */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
13120/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013121#include <ac_nonexistent.h>
13122_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013123if { (ac_try="$ac_cpp conftest.$ac_ext"
13124case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013130 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013131 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } >/dev/null; then
13136 if test -s conftest.err; then
13137 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000013138 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000013139 else
13140 ac_cpp_err=
13141 fi
13142else
13143 ac_cpp_err=yes
13144fi
13145if test -z "$ac_cpp_err"; then
13146 # Broken: success on invalid input.
13147continue
13148else
13149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013150sed 's/^/| /' conftest.$ac_ext >&5
13151
John Criswell47fdd832003-07-14 16:52:07 +000013152 # Passes both tests.
13153ac_preproc_ok=:
13154break
13155fi
Reid Spencera773bd52006-08-04 18:18:08 +000013156
John Criswell47fdd832003-07-14 16:52:07 +000013157rm -f conftest.err conftest.$ac_ext
13158
13159done
13160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13161rm -f conftest.err conftest.$ac_ext
13162if $ac_preproc_ok; then
13163 :
13164else
John Criswell0c38eaf2003-09-10 15:17:25 +000013165 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13166See \`config.log' for more details." >&5
13167echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13168See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013169 { (exit 1); exit 1; }; }
13170fi
13171
Reid Spencera773bd52006-08-04 18:18:08 +000013172ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013173ac_cpp='$CXXCPP $CPPFLAGS'
13174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13177
Reid Spencer2706f8c2004-09-19 23:53:36 +000013178fi
13179
John Criswell47fdd832003-07-14 16:52:07 +000013180
13181ac_ext=f
13182ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13183ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13184ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13185if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013186 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 +000013187 do
13188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013192if test "${ac_cv_prog_F77+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13194else
13195 if test -n "$F77"; then
13196 ac_cv_prog_F77="$F77" # Let the user override the test.
13197else
13198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199for as_dir in $PATH
13200do
13201 IFS=$as_save_IFS
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013204 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 +000013205 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 break 2
13208 fi
13209done
13210done
Reid Spencera773bd52006-08-04 18:18:08 +000013211IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013212
13213fi
13214fi
13215F77=$ac_cv_prog_F77
13216if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013217 { echo "$as_me:$LINENO: result: $F77" >&5
13218echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013219else
Reid Spencera773bd52006-08-04 18:18:08 +000013220 { echo "$as_me:$LINENO: result: no" >&5
13221echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013222fi
13223
Reid Spencera773bd52006-08-04 18:18:08 +000013224
John Criswell47fdd832003-07-14 16:52:07 +000013225 test -n "$F77" && break
13226 done
13227fi
13228if test -z "$F77"; then
13229 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000013230 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 +000013231do
13232 # Extract the first word of "$ac_prog", so it can be a program name with args.
13233set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013236if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238else
13239 if test -n "$ac_ct_F77"; then
13240 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13241else
13242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243for as_dir in $PATH
13244do
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013248 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 +000013249 ac_cv_prog_ac_ct_F77="$ac_prog"
13250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 break 2
13252 fi
13253done
13254done
Reid Spencera773bd52006-08-04 18:18:08 +000013255IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013256
13257fi
13258fi
13259ac_ct_F77=$ac_cv_prog_ac_ct_F77
13260if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013261 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13262echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013263else
Reid Spencera773bd52006-08-04 18:18:08 +000013264 { echo "$as_me:$LINENO: result: no" >&5
13265echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013266fi
13267
Reid Spencera773bd52006-08-04 18:18:08 +000013268
John Criswell47fdd832003-07-14 16:52:07 +000013269 test -n "$ac_ct_F77" && break
13270done
13271
Reid Spencera773bd52006-08-04 18:18:08 +000013272 if test "x$ac_ct_F77" = x; then
13273 F77=""
13274 else
13275 case $cross_compiling:$ac_tool_warned in
13276yes:)
13277{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13278whose name does not start with the host triplet. If you think this
13279configuration is useful to you, please write to autoconf@gnu.org." >&5
13280echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13281whose name does not start with the host triplet. If you think this
13282configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13283ac_tool_warned=yes ;;
13284esac
13285 F77=$ac_ct_F77
13286 fi
John Criswell47fdd832003-07-14 16:52:07 +000013287fi
13288
13289
13290# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013291echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013292ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013293{ (ac_try="$ac_compiler --version >&5"
13294case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13297esac
13298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013303{ (ac_try="$ac_compiler -v >&5"
13304case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307esac
13308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013313{ (ac_try="$ac_compiler -V >&5"
13314case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317esac
13318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013323rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013324
13325# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013326# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013327ac_save_ext=$ac_ext
13328ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013329{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13330echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013331if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13333else
13334 cat >conftest.$ac_ext <<_ACEOF
13335 program main
13336#ifndef __GNUC__
13337 choke me
13338#endif
13339
13340 end
13341_ACEOF
13342rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013343if { (ac_try="$ac_compile"
13344case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13347esac
13348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013350 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013356 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13357 { (case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13360esac
13361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; } &&
13366 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013367 { (case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370esac
13371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_compiler_gnu=yes
13377else
13378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013379sed 's/^/| /' conftest.$ac_ext >&5
13380
Reid Spencera773bd52006-08-04 18:18:08 +000013381 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013382fi
Reid Spencera773bd52006-08-04 18:18:08 +000013383
13384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013385ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13386
13387fi
Reid Spencera773bd52006-08-04 18:18:08 +000013388{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13389echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013390ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013391ac_test_FFLAGS=${FFLAGS+set}
13392ac_save_FFLAGS=$FFLAGS
13393FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013394{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13395echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013396if test "${ac_cv_prog_f77_g+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398else
13399 FFLAGS=-g
13400cat >conftest.$ac_ext <<_ACEOF
13401 program main
13402
13403 end
13404_ACEOF
13405rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013406if { (ac_try="$ac_compile"
13407case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410esac
13411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013413 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013414 grep -v '^ *+' conftest.er1 >conftest.err
13415 rm -f conftest.er1
13416 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013419 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423esac
13424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013430 { (case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13433esac
13434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 ac_cv_prog_f77_g=yes
13440else
13441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013442sed 's/^/| /' conftest.$ac_ext >&5
13443
Reid Spencera773bd52006-08-04 18:18:08 +000013444 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013445fi
Reid Spencera773bd52006-08-04 18:18:08 +000013446
13447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013448
13449fi
Reid Spencera773bd52006-08-04 18:18:08 +000013450{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13451echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013452if test "$ac_test_FFLAGS" = set; then
13453 FFLAGS=$ac_save_FFLAGS
13454elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013455 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013456 FFLAGS="-g -O2"
13457 else
13458 FFLAGS="-g"
13459 fi
13460else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013461 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013462 FFLAGS="-O2"
13463 else
13464 FFLAGS=
13465 fi
13466fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013467
13468G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013469ac_ext=c
13470ac_cpp='$CPP $CPPFLAGS'
13471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13473ac_compiler_gnu=$ac_cv_c_compiler_gnu
13474
13475
13476
13477# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13478
13479# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013480{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13481echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013482if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13484else
13485 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013486 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013487
13488 case $build_os in
13489 msdosdjgpp*)
13490 # On DJGPP, this test can blow up pretty badly due to problems in libc
13491 # (any single argument exceeding 2000 bytes causes a buffer overrun
13492 # during glob expansion). Even if it were fixed, the result of this
13493 # check would be larger than it should be.
13494 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13495 ;;
13496
13497 gnu*)
13498 # Under GNU Hurd, this test is not required because there is
13499 # no limit to the length of command line arguments.
13500 # Libtool will interpret -1 as no limit whatsoever
13501 lt_cv_sys_max_cmd_len=-1;
13502 ;;
13503
13504 cygwin* | mingw*)
13505 # On Win9x/ME, this test blows up -- it succeeds, but takes
13506 # about 5 minutes as the teststring grows exponentially.
13507 # Worse, since 9x/ME are not pre-emptively multitasking,
13508 # you end up with a "frozen" computer, even though with patience
13509 # the test eventually succeeds (with a max line length of 256k).
13510 # Instead, let's just punt: use the minimum linelength reported by
13511 # all of the supported platforms: 8192 (on NT/2K/XP).
13512 lt_cv_sys_max_cmd_len=8192;
13513 ;;
13514
Reid Spencer2706f8c2004-09-19 23:53:36 +000013515 amigaos*)
13516 # On AmigaOS with pdksh, this test takes hours, literally.
13517 # So we just punt and use a minimum line length of 8192.
13518 lt_cv_sys_max_cmd_len=8192;
13519 ;;
13520
Reid Spencera773bd52006-08-04 18:18:08 +000013521 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013522 # This has been around since 386BSD, at least. Likely further.
13523 if test -x /sbin/sysctl; then
13524 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13525 elif test -x /usr/sbin/sysctl; then
13526 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13527 else
Reid Spencera773bd52006-08-04 18:18:08 +000013528 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013529 fi
13530 # And add a safety zone
13531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013533 ;;
13534
Reid Spencera773bd52006-08-04 18:18:08 +000013535 interix*)
13536 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13537 lt_cv_sys_max_cmd_len=196608
13538 ;;
13539
13540 osf*)
13541 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13542 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13543 # nice to cause kernel panics so lets avoid the loop below.
13544 # First set a reasonable default.
13545 lt_cv_sys_max_cmd_len=16384
13546 #
13547 if test -x /sbin/sysconfig; then
13548 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13549 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13550 esac
13551 fi
13552 ;;
13553 sco3.2v5*)
13554 lt_cv_sys_max_cmd_len=102400
13555 ;;
13556 sysv5* | sco5v6* | sysv4.2uw2*)
13557 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13558 if test -n "$kargmax"; then
13559 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13560 else
13561 lt_cv_sys_max_cmd_len=32768
13562 fi
13563 ;;
13564 *)
John Criswell47fdd832003-07-14 16:52:07 +000013565 # If test is not a shell built-in, we'll probably end up computing a
13566 # maximum length that is only half of the actual maximum length, but
13567 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013568 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13569 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13570 = "XX$teststring") >/dev/null 2>&1 &&
13571 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013572 lt_cv_sys_max_cmd_len=$new_result &&
13573 test $i != 17 # 1/2 MB should be enough
13574 do
13575 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013576 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013577 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013578 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013579 # Add a significant safety factor because C++ compilers can tack on massive
13580 # amounts of additional arguments before passing them to the linker.
13581 # It appears as though 1/2 is a usable value.
13582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13583 ;;
13584 esac
13585
13586fi
13587
13588if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013589 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13590echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013591else
Reid Spencera773bd52006-08-04 18:18:08 +000013592 { echo "$as_me:$LINENO: result: none" >&5
13593echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013594fi
13595
13596
13597
13598
13599# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013600{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13601echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013602if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13604else
13605
13606# These are sane defaults that work on at least a few old systems.
13607# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13608
13609# Character class describing NM global symbol codes.
13610symcode='[BCDEGRST]'
13611
13612# Regexp to match symbols that can be accessed directly from C.
13613sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13614
John Criswell47fdd832003-07-14 16:52:07 +000013615# Transform an extracted symbol line into a proper C declaration
13616lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13617
13618# Transform an extracted symbol line into symbol name and symbol address
13619lt_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'"
13620
13621# Define system-specific variables.
13622case $host_os in
13623aix*)
13624 symcode='[BCDT]'
13625 ;;
13626cygwin* | mingw* | pw32*)
13627 symcode='[ABCDGISTW]'
13628 ;;
13629hpux*) # Its linker distinguishes data from code symbols
13630 if test "$host_cpu" = ia64; then
13631 symcode='[ABCDEGRST]'
13632 fi
13633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13634 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'"
13635 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013636linux*)
13637 if test "$host_cpu" = ia64; then
13638 symcode='[ABCDGIRSTW]'
13639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13640 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'"
13641 fi
13642 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013643irix* | nonstopux*)
13644 symcode='[BCDEGRST]'
13645 ;;
13646osf*)
13647 symcode='[BCDEGQRST]'
13648 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013649solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013650 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013651 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013652sco3.2v5*)
13653 symcode='[DT]'
13654 ;;
13655sysv4.2uw2*)
13656 symcode='[DT]'
13657 ;;
13658sysv5* | sco5v6* | unixware* | OpenUNIX*)
13659 symcode='[ABDT]'
13660 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013661sysv4)
13662 symcode='[DFNSTU]'
13663 ;;
13664esac
13665
13666# Handle CRLF in mingw tool chain
13667opt_cr=
13668case $build_os in
13669mingw*)
13670 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13671 ;;
13672esac
13673
13674# If we're using GNU nm, then use its standard symbol codes.
13675case `$NM -V 2>&1` in
13676*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013677 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013678esac
13679
13680# Try without a prefix undercore, then with it.
13681for ac_symprfx in "" "_"; do
13682
Reid Spencera773bd52006-08-04 18:18:08 +000013683 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13684 symxfrm="\\1 $ac_symprfx\\2 \\2"
13685
John Criswell47fdd832003-07-14 16:52:07 +000013686 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013687 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 +000013688
13689 # Check to see that the pipe works correctly.
13690 pipe_works=no
13691
13692 rm -f conftest*
13693 cat > conftest.$ac_ext <<EOF
13694#ifdef __cplusplus
13695extern "C" {
13696#endif
13697char nm_test_var;
13698void nm_test_func(){}
13699#ifdef __cplusplus
13700}
13701#endif
13702int main(){nm_test_var='a';nm_test_func();return(0);}
13703EOF
13704
13705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706 (eval $ac_compile) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; then
13710 # Now try to grab the symbols.
13711 nlist=conftest.nm
13712 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13713 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } && test -s "$nlist"; then
13717 # Try sorting and uniquifying the output.
13718 if sort "$nlist" | uniq > "$nlist"T; then
13719 mv -f "$nlist"T "$nlist"
13720 else
13721 rm -f "$nlist"T
13722 fi
13723
13724 # Make sure that we snagged all the symbols we need.
13725 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13726 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13727 cat <<EOF > conftest.$ac_ext
13728#ifdef __cplusplus
13729extern "C" {
13730#endif
13731
13732EOF
13733 # Now generate the symbol file.
13734 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13735
13736 cat <<EOF >> conftest.$ac_ext
13737#if defined (__STDC__) && __STDC__
13738# define lt_ptr_t void *
13739#else
13740# define lt_ptr_t char *
13741# define const
13742#endif
13743
13744/* The mapping between symbol names and symbols. */
13745const struct {
13746 const char *name;
13747 lt_ptr_t address;
13748}
13749lt_preloaded_symbols[] =
13750{
13751EOF
13752 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13753 cat <<\EOF >> conftest.$ac_ext
13754 {0, (lt_ptr_t) 0}
13755};
13756
13757#ifdef __cplusplus
13758}
13759#endif
13760EOF
13761 # Now try linking the two files.
13762 mv conftest.$ac_objext conftstm.$ac_objext
13763 lt_save_LIBS="$LIBS"
13764 lt_save_CFLAGS="$CFLAGS"
13765 LIBS="conftstm.$ac_objext"
13766 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13768 (eval $ac_link) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13772 pipe_works=yes
13773 fi
13774 LIBS="$lt_save_LIBS"
13775 CFLAGS="$lt_save_CFLAGS"
13776 else
13777 echo "cannot find nm_test_func in $nlist" >&5
13778 fi
13779 else
13780 echo "cannot find nm_test_var in $nlist" >&5
13781 fi
13782 else
13783 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13784 fi
13785 else
13786 echo "$progname: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13788 fi
13789 rm -f conftest* conftst*
13790
13791 # Do not use the global_symbol_pipe unless it works.
13792 if test "$pipe_works" = yes; then
13793 break
13794 else
13795 lt_cv_sys_global_symbol_pipe=
13796 fi
13797done
13798
13799fi
13800
13801if test -z "$lt_cv_sys_global_symbol_pipe"; then
13802 lt_cv_sys_global_symbol_to_cdecl=
13803fi
13804if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013805 { echo "$as_me:$LINENO: result: failed" >&5
13806echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013807else
Reid Spencera773bd52006-08-04 18:18:08 +000013808 { echo "$as_me:$LINENO: result: ok" >&5
13809echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013810fi
13811
Reid Spencera773bd52006-08-04 18:18:08 +000013812{ echo "$as_me:$LINENO: checking for objdir" >&5
13813echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013814if test "${lt_cv_objdir+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
13817 rm -f .libs 2>/dev/null
13818mkdir .libs 2>/dev/null
13819if test -d .libs; then
13820 lt_cv_objdir=.libs
13821else
13822 # MS-DOS does not allow filenames that begin with a dot.
13823 lt_cv_objdir=_libs
13824fi
13825rmdir .libs 2>/dev/null
13826fi
Reid Spencera773bd52006-08-04 18:18:08 +000013827{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13828echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013829objdir=$lt_cv_objdir
13830
13831
13832
13833
13834
13835case $host_os in
13836aix3*)
13837 # AIX sometimes has problems with the GCC collect2 program. For some
13838 # reason, if we set the COLLECT_NAMES environment variable, the problems
13839 # vanish in a puff of smoke.
13840 if test "X${COLLECT_NAMES+set}" != Xset; then
13841 COLLECT_NAMES=
13842 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013843 fi
13844 ;;
13845esac
13846
John Criswell47fdd832003-07-14 16:52:07 +000013847# Sed substitution that helps us do robust quoting. It backslashifies
13848# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013849Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013850sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13851
13852# Same as above, but do not quote variable references.
13853double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13854
13855# Sed substitution to delay expansion of an escaped shell variable in a
13856# double_quote_subst'ed string.
13857delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13858
13859# Sed substitution to avoid accidental globbing in evaled expressions
13860no_glob_subst='s/\*/\\\*/g'
13861
13862# Constants:
13863rm="rm -f"
13864
13865# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013866default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013867can_build_shared=yes
13868
Reid Spencera773bd52006-08-04 18:18:08 +000013869# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013870# which needs '.lib').
13871libext=a
13872ltmain="$ac_aux_dir/ltmain.sh"
13873ofile="$default_ofile"
13874with_gnu_ld="$lt_cv_prog_gnu_ld"
13875
13876if test -n "$ac_tool_prefix"; then
13877 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13878set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013881if test "${ac_cv_prog_AR+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883else
13884 if test -n "$AR"; then
13885 ac_cv_prog_AR="$AR" # Let the user override the test.
13886else
13887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888for as_dir in $PATH
13889do
13890 IFS=$as_save_IFS
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013893 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 +000013894 ac_cv_prog_AR="${ac_tool_prefix}ar"
13895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13896 break 2
13897 fi
13898done
13899done
Reid Spencera773bd52006-08-04 18:18:08 +000013900IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013901
13902fi
13903fi
13904AR=$ac_cv_prog_AR
13905if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013906 { echo "$as_me:$LINENO: result: $AR" >&5
13907echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013908else
Reid Spencera773bd52006-08-04 18:18:08 +000013909 { echo "$as_me:$LINENO: result: no" >&5
13910echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013911fi
13912
Reid Spencera773bd52006-08-04 18:18:08 +000013913
John Criswell47fdd832003-07-14 16:52:07 +000013914fi
13915if test -z "$ac_cv_prog_AR"; then
13916 ac_ct_AR=$AR
13917 # Extract the first word of "ar", so it can be a program name with args.
13918set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013921if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923else
13924 if test -n "$ac_ct_AR"; then
13925 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13926else
13927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928for as_dir in $PATH
13929do
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013933 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 +000013934 ac_cv_prog_ac_ct_AR="ar"
13935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 break 2
13937 fi
13938done
13939done
Reid Spencera773bd52006-08-04 18:18:08 +000013940IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013941
John Criswell47fdd832003-07-14 16:52:07 +000013942fi
13943fi
13944ac_ct_AR=$ac_cv_prog_ac_ct_AR
13945if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013946 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13947echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013948else
Reid Spencera773bd52006-08-04 18:18:08 +000013949 { echo "$as_me:$LINENO: result: no" >&5
13950echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013951fi
13952
Reid Spencera773bd52006-08-04 18:18:08 +000013953 if test "x$ac_ct_AR" = x; then
13954 AR="false"
13955 else
13956 case $cross_compiling:$ac_tool_warned in
13957yes:)
13958{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13959whose name does not start with the host triplet. If you think this
13960configuration is useful to you, please write to autoconf@gnu.org." >&5
13961echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13962whose name does not start with the host triplet. If you think this
13963configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13964ac_tool_warned=yes ;;
13965esac
13966 AR=$ac_ct_AR
13967 fi
John Criswell47fdd832003-07-14 16:52:07 +000013968else
13969 AR="$ac_cv_prog_AR"
13970fi
13971
John Criswell7a73b802003-06-30 21:59:07 +000013972if test -n "$ac_tool_prefix"; then
13973 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13974set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013977if test "${ac_cv_prog_RANLIB+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979else
13980 if test -n "$RANLIB"; then
13981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13982else
13983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984for as_dir in $PATH
13985do
13986 IFS=$as_save_IFS
13987 test -z "$as_dir" && as_dir=.
13988 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013989 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 +000013990 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13992 break 2
13993 fi
13994done
13995done
Reid Spencera773bd52006-08-04 18:18:08 +000013996IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013997
13998fi
13999fi
14000RANLIB=$ac_cv_prog_RANLIB
14001if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014002 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14003echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014004else
Reid Spencera773bd52006-08-04 18:18:08 +000014005 { echo "$as_me:$LINENO: result: no" >&5
14006echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014007fi
14008
Reid Spencera773bd52006-08-04 18:18:08 +000014009
John Criswell7a73b802003-06-30 21:59:07 +000014010fi
14011if test -z "$ac_cv_prog_RANLIB"; then
14012 ac_ct_RANLIB=$RANLIB
14013 # Extract the first word of "ranlib", so it can be a program name with args.
14014set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014017if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019else
14020 if test -n "$ac_ct_RANLIB"; then
14021 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14022else
14023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024for as_dir in $PATH
14025do
14026 IFS=$as_save_IFS
14027 test -z "$as_dir" && as_dir=.
14028 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000014029 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 +000014030 ac_cv_prog_ac_ct_RANLIB="ranlib"
14031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14032 break 2
14033 fi
14034done
14035done
Reid Spencera773bd52006-08-04 18:18:08 +000014036IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014037
John Criswell7a73b802003-06-30 21:59:07 +000014038fi
14039fi
14040ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14041if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014042 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14043echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014044else
Reid Spencera773bd52006-08-04 18:18:08 +000014045 { echo "$as_me:$LINENO: result: no" >&5
14046echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014047fi
14048
Reid Spencera773bd52006-08-04 18:18:08 +000014049 if test "x$ac_ct_RANLIB" = x; then
14050 RANLIB=":"
14051 else
14052 case $cross_compiling:$ac_tool_warned in
14053yes:)
14054{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14055whose name does not start with the host triplet. If you think this
14056configuration is useful to you, please write to autoconf@gnu.org." >&5
14057echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14058whose name does not start with the host triplet. If you think this
14059configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14060ac_tool_warned=yes ;;
14061esac
14062 RANLIB=$ac_ct_RANLIB
14063 fi
John Criswell7a73b802003-06-30 21:59:07 +000014064else
14065 RANLIB="$ac_cv_prog_RANLIB"
14066fi
14067
14068if test -n "$ac_tool_prefix"; then
14069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14070set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014073if test "${ac_cv_prog_STRIP+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075else
14076 if test -n "$STRIP"; then
14077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14078else
14079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080for as_dir in $PATH
14081do
14082 IFS=$as_save_IFS
14083 test -z "$as_dir" && as_dir=.
14084 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000014085 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 +000014086 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14088 break 2
14089 fi
14090done
14091done
Reid Spencera773bd52006-08-04 18:18:08 +000014092IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014093
14094fi
14095fi
14096STRIP=$ac_cv_prog_STRIP
14097if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014098 { echo "$as_me:$LINENO: result: $STRIP" >&5
14099echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014100else
Reid Spencera773bd52006-08-04 18:18:08 +000014101 { echo "$as_me:$LINENO: result: no" >&5
14102echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014103fi
14104
Reid Spencera773bd52006-08-04 18:18:08 +000014105
John Criswell7a73b802003-06-30 21:59:07 +000014106fi
14107if test -z "$ac_cv_prog_STRIP"; then
14108 ac_ct_STRIP=$STRIP
14109 # Extract the first word of "strip", so it can be a program name with args.
14110set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014111{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014113if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115else
14116 if test -n "$ac_ct_STRIP"; then
14117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14118else
14119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14120for as_dir in $PATH
14121do
14122 IFS=$as_save_IFS
14123 test -z "$as_dir" && as_dir=.
14124 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000014125 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 +000014126 ac_cv_prog_ac_ct_STRIP="strip"
14127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14128 break 2
14129 fi
14130done
14131done
Reid Spencera773bd52006-08-04 18:18:08 +000014132IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014133
John Criswell7a73b802003-06-30 21:59:07 +000014134fi
14135fi
14136ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14137if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014138 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14139echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014140else
Reid Spencera773bd52006-08-04 18:18:08 +000014141 { echo "$as_me:$LINENO: result: no" >&5
14142echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014143fi
14144
Reid Spencera773bd52006-08-04 18:18:08 +000014145 if test "x$ac_ct_STRIP" = x; then
14146 STRIP=":"
14147 else
14148 case $cross_compiling:$ac_tool_warned in
14149yes:)
14150{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14151whose name does not start with the host triplet. If you think this
14152configuration is useful to you, please write to autoconf@gnu.org." >&5
14153echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14154whose name does not start with the host triplet. If you think this
14155configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14156ac_tool_warned=yes ;;
14157esac
14158 STRIP=$ac_ct_STRIP
14159 fi
John Criswell7a73b802003-06-30 21:59:07 +000014160else
14161 STRIP="$ac_cv_prog_STRIP"
14162fi
14163
14164
John Criswell7a73b802003-06-30 21:59:07 +000014165old_CC="$CC"
14166old_CFLAGS="$CFLAGS"
14167
14168# Set sane defaults for various variables
14169test -z "$AR" && AR=ar
14170test -z "$AR_FLAGS" && AR_FLAGS=cru
14171test -z "$AS" && AS=as
14172test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014173test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014174test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014175test -z "$DLLTOOL" && DLLTOOL=dlltool
14176test -z "$LD" && LD=ld
14177test -z "$LN_S" && LN_S="ln -s"
14178test -z "$MAGIC_CMD" && MAGIC_CMD=file
14179test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014180test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014181test -z "$OBJDUMP" && OBJDUMP=objdump
14182test -z "$RANLIB" && RANLIB=:
14183test -z "$STRIP" && STRIP=:
14184test -z "$ac_objext" && ac_objext=o
14185
John Criswell7a73b802003-06-30 21:59:07 +000014186# Determine commands to create old-style static archives.
14187old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14188old_postinstall_cmds='chmod 644 $oldlib'
14189old_postuninstall_cmds=
14190
14191if test -n "$RANLIB"; then
14192 case $host_os in
14193 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014194 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014195 ;;
14196 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014198 ;;
14199 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014200 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014201fi
14202
Reid Spencera773bd52006-08-04 18:18:08 +000014203for cc_temp in $compiler""; do
14204 case $cc_temp in
14205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14207 \-*) ;;
14208 *) break;;
14209 esac
14210done
14211cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14212
Reid Spencer2706f8c2004-09-19 23:53:36 +000014213
John Criswell47fdd832003-07-14 16:52:07 +000014214# Only perform the check for file, if the check method requires it
14215case $deplibs_check_method in
14216file_magic*)
14217 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014218 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14219echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014220if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014222else
John Criswell47fdd832003-07-14 16:52:07 +000014223 case $MAGIC_CMD in
14224[\\/*] | ?:[\\/]*)
14225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14226 ;;
14227*)
14228 lt_save_MAGIC_CMD="$MAGIC_CMD"
14229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14231 for ac_dir in $ac_dummy; do
14232 IFS="$lt_save_ifs"
14233 test -z "$ac_dir" && ac_dir=.
14234 if test -f $ac_dir/${ac_tool_prefix}file; then
14235 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14236 if test -n "$file_magic_test_file"; then
14237 case $deplibs_check_method in
14238 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14242 $EGREP "$file_magic_regex" > /dev/null; then
14243 :
14244 else
14245 cat <<EOF 1>&2
14246
14247*** Warning: the command libtool uses to detect shared libraries,
14248*** $file_magic_cmd, produces output that libtool cannot recognize.
14249*** The result is that libtool may fail to recognize shared libraries
14250*** as such. This will affect the creation of libtool libraries that
14251*** depend on shared libraries, but programs linked with such libtool
14252*** libraries will work regardless of this problem. Nevertheless, you
14253*** may want to report the problem to your system manager and/or to
14254*** bug-libtool@gnu.org
14255
14256EOF
14257 fi ;;
14258 esac
14259 fi
14260 break
14261 fi
14262 done
14263 IFS="$lt_save_ifs"
14264 MAGIC_CMD="$lt_save_MAGIC_CMD"
14265 ;;
14266esac
John Criswell7a73b802003-06-30 21:59:07 +000014267fi
John Criswell7a73b802003-06-30 21:59:07 +000014268
John Criswell47fdd832003-07-14 16:52:07 +000014269MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14270if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014271 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14272echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014273else
Reid Spencera773bd52006-08-04 18:18:08 +000014274 { echo "$as_me:$LINENO: result: no" >&5
14275echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014276fi
John Criswell7a73b802003-06-30 21:59:07 +000014277
John Criswell47fdd832003-07-14 16:52:07 +000014278if test -z "$lt_cv_path_MAGIC_CMD"; then
14279 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014280 { echo "$as_me:$LINENO: checking for file" >&5
14281echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014282if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14284else
14285 case $MAGIC_CMD in
14286[\\/*] | ?:[\\/]*)
14287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14288 ;;
14289*)
14290 lt_save_MAGIC_CMD="$MAGIC_CMD"
14291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14293 for ac_dir in $ac_dummy; do
14294 IFS="$lt_save_ifs"
14295 test -z "$ac_dir" && ac_dir=.
14296 if test -f $ac_dir/file; then
14297 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14298 if test -n "$file_magic_test_file"; then
14299 case $deplibs_check_method in
14300 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14304 $EGREP "$file_magic_regex" > /dev/null; then
14305 :
14306 else
14307 cat <<EOF 1>&2
14308
14309*** Warning: the command libtool uses to detect shared libraries,
14310*** $file_magic_cmd, produces output that libtool cannot recognize.
14311*** The result is that libtool may fail to recognize shared libraries
14312*** as such. This will affect the creation of libtool libraries that
14313*** depend on shared libraries, but programs linked with such libtool
14314*** libraries will work regardless of this problem. Nevertheless, you
14315*** may want to report the problem to your system manager and/or to
14316*** bug-libtool@gnu.org
14317
14318EOF
14319 fi ;;
14320 esac
14321 fi
14322 break
14323 fi
14324 done
14325 IFS="$lt_save_ifs"
14326 MAGIC_CMD="$lt_save_MAGIC_CMD"
14327 ;;
14328esac
14329fi
14330
14331MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14332if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014333 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14334echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014335else
Reid Spencera773bd52006-08-04 18:18:08 +000014336 { echo "$as_me:$LINENO: result: no" >&5
14337echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014338fi
14339
14340 else
14341 MAGIC_CMD=:
14342 fi
14343fi
14344
14345 fi
14346 ;;
14347esac
14348
Reid Spencer17795972004-11-18 09:47:37 +000014349enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014350enable_win32_dll=no
14351
Reid Spencera773bd52006-08-04 18:18:08 +000014352# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014353if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014354 enableval=$enable_libtool_lock;
14355fi
John Criswell47fdd832003-07-14 16:52:07 +000014356
John Criswell47fdd832003-07-14 16:52:07 +000014357test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14358
John Criswell7a73b802003-06-30 21:59:07 +000014359
Reid Spencera773bd52006-08-04 18:18:08 +000014360# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014361if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014362 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014363else
14364 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014365fi
14366
John Criswell7a73b802003-06-30 21:59:07 +000014367test -z "$pic_mode" && pic_mode=default
14368
John Criswell47fdd832003-07-14 16:52:07 +000014369# Use C for the default configuration in the libtool script
14370tagname=
14371lt_save_CC="$CC"
14372ac_ext=c
14373ac_cpp='$CPP $CPPFLAGS'
14374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376ac_compiler_gnu=$ac_cv_c_compiler_gnu
14377
14378
14379# Source file extension for C test sources.
14380ac_ext=c
14381
14382# Object file extension for compiled C test sources.
14383objext=o
14384objext=$objext
14385
14386# Code to be used in simple compile tests
14387lt_simple_compile_test_code="int some_variable = 0;\n"
14388
14389# Code to be used in simple link tests
14390lt_simple_link_test_code='int main(){return(0);}\n'
14391
14392
14393# If no C compiler was specified, use CC.
14394LTCC=${LTCC-"$CC"}
14395
Reid Spencera773bd52006-08-04 18:18:08 +000014396# If no C compiler flags were specified, use CFLAGS.
14397LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14398
John Criswell47fdd832003-07-14 16:52:07 +000014399# Allow CC to be a program name with arguments.
14400compiler=$CC
14401
14402
Reid Spencera773bd52006-08-04 18:18:08 +000014403# save warnings/boilerplate of simple test code
14404ac_outfile=conftest.$ac_objext
14405printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14406eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14407_lt_compiler_boilerplate=`cat conftest.err`
14408$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014409
Reid Spencera773bd52006-08-04 18:18:08 +000014410ac_outfile=conftest.$ac_objext
14411printf "$lt_simple_link_test_code" >conftest.$ac_ext
14412eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14413_lt_linker_boilerplate=`cat conftest.err`
14414$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014415
14416
John Criswell47fdd832003-07-14 16:52:07 +000014417
14418lt_prog_compiler_no_builtin_flag=
14419
14420if test "$GCC" = yes; then
14421 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14422
Reid Spencer2706f8c2004-09-19 23:53:36 +000014423
Reid Spencera773bd52006-08-04 18:18:08 +000014424{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14425echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014426if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428else
14429 lt_cv_prog_compiler_rtti_exceptions=no
14430 ac_outfile=conftest.$ac_objext
14431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14432 lt_compiler_flag="-fno-rtti -fno-exceptions"
14433 # Insert the option either (1) after the last *FLAGS variable, or
14434 # (2) before a word containing "conftest.", or (3) at the end.
14435 # Note that $ac_compile itself does not contain backslashes and begins
14436 # with a dollar sign (not a hyphen), so the echo should work correctly.
14437 # The option is referenced via a variable to avoid confusing sed.
14438 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14441 -e 's:$: $lt_compiler_flag:'`
Devang Patel5d28b882007-12-04 22:54:47 +000014442 (eval echo "\"\$as_me:14442: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014443 (eval "$lt_compile" 2>conftest.err)
14444 ac_status=$?
14445 cat conftest.err >&5
Devang Patel5d28b882007-12-04 22:54:47 +000014446 echo "$as_me:14446: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014447 if (exit $ac_status) && test -s "$ac_outfile"; then
14448 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014449 # So say no if there are warnings other than the usual output.
14450 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014453 lt_cv_prog_compiler_rtti_exceptions=yes
14454 fi
14455 fi
14456 $rm conftest*
14457
14458fi
Reid Spencera773bd52006-08-04 18:18:08 +000014459{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14460echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014461
14462if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14463 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14464else
14465 :
14466fi
14467
14468fi
14469
14470lt_prog_compiler_wl=
14471lt_prog_compiler_pic=
14472lt_prog_compiler_static=
14473
Reid Spencera773bd52006-08-04 18:18:08 +000014474{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14475echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014476
14477 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014478 lt_prog_compiler_wl='-Wl,'
14479 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014480
14481 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014482 aix*)
14483 # All AIX code is PIC.
14484 if test "$host_cpu" = ia64; then
14485 # AIX 5 now supports IA64 processor
14486 lt_prog_compiler_static='-Bstatic'
14487 fi
John Criswell7a73b802003-06-30 21:59:07 +000014488 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014489
John Criswell7a73b802003-06-30 21:59:07 +000014490 amigaos*)
14491 # FIXME: we need at least 68020 code to build shared libraries, but
14492 # adding the `-m68020' flag to GCC prevents building anything better,
14493 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014494 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014495 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014496
14497 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014498 # PIC is the default for these OSes.
14499 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014500
14501 mingw* | pw32* | os2*)
14502 # This hack is so that the source file can tell whether it is being
14503 # built for inclusion in a dll (and should export symbols for example).
14504 lt_prog_compiler_pic='-DDLL_EXPORT'
14505 ;;
14506
John Criswell7a73b802003-06-30 21:59:07 +000014507 darwin* | rhapsody*)
14508 # PIC is the default on this platform
14509 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014510 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014511 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014512
Reid Spencera773bd52006-08-04 18:18:08 +000014513 interix3*)
14514 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14515 # Instead, we relocate shared libraries at runtime.
14516 ;;
14517
John Criswell47fdd832003-07-14 16:52:07 +000014518 msdosdjgpp*)
14519 # Just because we use GCC doesn't mean we suddenly get shared libraries
14520 # on systems that don't support them.
14521 lt_prog_compiler_can_build_shared=no
14522 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014523 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014524
John Criswell7a73b802003-06-30 21:59:07 +000014525 sysv4*MP*)
14526 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014527 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014528 fi
14529 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014530
14531 hpux*)
14532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14533 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014534 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014535 hppa*64*|ia64*)
14536 # +Z the default
14537 ;;
14538 *)
14539 lt_prog_compiler_pic='-fPIC'
14540 ;;
14541 esac
14542 ;;
14543
John Criswell7a73b802003-06-30 21:59:07 +000014544 *)
John Criswell47fdd832003-07-14 16:52:07 +000014545 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014546 ;;
14547 esac
14548 else
John Criswell47fdd832003-07-14 16:52:07 +000014549 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014550 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014551 aix*)
14552 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014553 if test "$host_cpu" = ia64; then
14554 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014555 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014556 else
John Criswell47fdd832003-07-14 16:52:07 +000014557 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014558 fi
14559 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014560 darwin*)
14561 # PIC is the default on this platform
14562 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014563 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014564 xlc*)
14565 lt_prog_compiler_pic='-qnocommon'
14566 lt_prog_compiler_wl='-Wl,'
14567 ;;
14568 esac
14569 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014570
John Criswell47fdd832003-07-14 16:52:07 +000014571 mingw* | pw32* | os2*)
14572 # This hack is so that the source file can tell whether it is being
14573 # built for inclusion in a dll (and should export symbols for example).
14574 lt_prog_compiler_pic='-DDLL_EXPORT'
14575 ;;
14576
John Criswell7a73b802003-06-30 21:59:07 +000014577 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014578 lt_prog_compiler_wl='-Wl,'
14579 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14580 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014581 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014582 hppa*64*|ia64*)
14583 # +Z the default
14584 ;;
14585 *)
14586 lt_prog_compiler_pic='+Z'
14587 ;;
14588 esac
14589 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14590 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014591 ;;
14592
John Criswell47fdd832003-07-14 16:52:07 +000014593 irix5* | irix6* | nonstopux*)
14594 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014595 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014596 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014597 ;;
14598
14599 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014600 lt_prog_compiler_pic='-KPIC'
14601 lt_prog_compiler_static='-Bstatic'
14602 ;;
14603
14604 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014605 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014606 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014607 lt_prog_compiler_wl='-Wl,'
14608 lt_prog_compiler_pic='-KPIC'
14609 lt_prog_compiler_static='-static'
14610 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014611 pgcc* | pgf77* | pgf90* | pgf95*)
14612 # Portland Group compilers (*not* the Pentium gcc compiler,
14613 # which looks to be a dead project)
14614 lt_prog_compiler_wl='-Wl,'
14615 lt_prog_compiler_pic='-fpic'
14616 lt_prog_compiler_static='-Bstatic'
14617 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014618 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014619 lt_prog_compiler_wl='-Wl,'
14620 # All Alpha code is PIC.
14621 lt_prog_compiler_static='-non_shared'
14622 ;;
14623 esac
John Criswell7a73b802003-06-30 21:59:07 +000014624 ;;
14625
14626 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014627 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014628 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014629 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014630 ;;
14631
John Criswell7a73b802003-06-30 21:59:07 +000014632 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014633 lt_prog_compiler_pic='-KPIC'
14634 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014635 case $cc_basename in
14636 f77* | f90* | f95*)
14637 lt_prog_compiler_wl='-Qoption ld ';;
14638 *)
14639 lt_prog_compiler_wl='-Wl,';;
14640 esac
John Criswell7a73b802003-06-30 21:59:07 +000014641 ;;
14642
14643 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014644 lt_prog_compiler_wl='-Qoption ld '
14645 lt_prog_compiler_pic='-PIC'
14646 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014647 ;;
14648
Reid Spencera773bd52006-08-04 18:18:08 +000014649 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014650 lt_prog_compiler_wl='-Wl,'
14651 lt_prog_compiler_pic='-KPIC'
14652 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014653 ;;
14654
14655 sysv4*MP*)
14656 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014657 lt_prog_compiler_pic='-Kconform_pic'
14658 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014659 fi
14660 ;;
14661
Reid Spencera773bd52006-08-04 18:18:08 +000014662 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14663 lt_prog_compiler_wl='-Wl,'
14664 lt_prog_compiler_pic='-KPIC'
14665 lt_prog_compiler_static='-Bstatic'
14666 ;;
14667
14668 unicos*)
14669 lt_prog_compiler_wl='-Wl,'
14670 lt_prog_compiler_can_build_shared=no
14671 ;;
14672
John Criswell47fdd832003-07-14 16:52:07 +000014673 uts4*)
14674 lt_prog_compiler_pic='-pic'
14675 lt_prog_compiler_static='-Bstatic'
14676 ;;
14677
John Criswell7a73b802003-06-30 21:59:07 +000014678 *)
John Criswell47fdd832003-07-14 16:52:07 +000014679 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014680 ;;
14681 esac
14682 fi
14683
Reid Spencera773bd52006-08-04 18:18:08 +000014684{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14685echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014686
John Criswell47fdd832003-07-14 16:52:07 +000014687#
14688# Check to make sure the PIC flag actually works.
14689#
14690if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014691
Reid Spencera773bd52006-08-04 18:18:08 +000014692{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14693echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014694if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014695 echo $ECHO_N "(cached) $ECHO_C" >&6
14696else
John Criswell47fdd832003-07-14 16:52:07 +000014697 lt_prog_compiler_pic_works=no
14698 ac_outfile=conftest.$ac_objext
14699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14700 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14701 # Insert the option either (1) after the last *FLAGS variable, or
14702 # (2) before a word containing "conftest.", or (3) at the end.
14703 # Note that $ac_compile itself does not contain backslashes and begins
14704 # with a dollar sign (not a hyphen), so the echo should work correctly.
14705 # The option is referenced via a variable to avoid confusing sed.
14706 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14709 -e 's:$: $lt_compiler_flag:'`
Devang Patel5d28b882007-12-04 22:54:47 +000014710 (eval echo "\"\$as_me:14710: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014711 (eval "$lt_compile" 2>conftest.err)
14712 ac_status=$?
14713 cat conftest.err >&5
Devang Patel5d28b882007-12-04 22:54:47 +000014714 echo "$as_me:14714: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014715 if (exit $ac_status) && test -s "$ac_outfile"; then
14716 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014717 # So say no if there are warnings other than the usual output.
14718 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014721 lt_prog_compiler_pic_works=yes
14722 fi
14723 fi
14724 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014725
John Criswell47fdd832003-07-14 16:52:07 +000014726fi
Reid Spencera773bd52006-08-04 18:18:08 +000014727{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14728echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014729
John Criswell47fdd832003-07-14 16:52:07 +000014730if test x"$lt_prog_compiler_pic_works" = xyes; then
14731 case $lt_prog_compiler_pic in
14732 "" | " "*) ;;
14733 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14734 esac
John Criswell7a73b802003-06-30 21:59:07 +000014735else
John Criswell47fdd832003-07-14 16:52:07 +000014736 lt_prog_compiler_pic=
14737 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014738fi
14739
John Criswell7a73b802003-06-30 21:59:07 +000014740fi
Reid Spencera773bd52006-08-04 18:18:08 +000014741case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014742 # For platforms which do not support PIC, -DPIC is meaningless:
14743 *djgpp*)
14744 lt_prog_compiler_pic=
14745 ;;
14746 *)
14747 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14748 ;;
14749esac
John Criswell7a73b802003-06-30 21:59:07 +000014750
Reid Spencera773bd52006-08-04 18:18:08 +000014751#
14752# Check to make sure the static flag actually works.
14753#
14754wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14755{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14756echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14757if test "${lt_prog_compiler_static_works+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760 lt_prog_compiler_static_works=no
14761 save_LDFLAGS="$LDFLAGS"
14762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14763 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14765 # The linker can only warn and ignore the option if not recognized
14766 # So say no if there are warnings
14767 if test -s conftest.err; then
14768 # Append any errors to the config.log.
14769 cat conftest.err 1>&5
14770 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14772 if diff conftest.exp conftest.er2 >/dev/null; then
14773 lt_prog_compiler_static_works=yes
14774 fi
14775 else
14776 lt_prog_compiler_static_works=yes
14777 fi
14778 fi
14779 $rm conftest*
14780 LDFLAGS="$save_LDFLAGS"
14781
14782fi
14783{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14784echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14785
14786if test x"$lt_prog_compiler_static_works" = xyes; then
14787 :
14788else
14789 lt_prog_compiler_static=
14790fi
14791
14792
14793{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14794echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014795if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014796 echo $ECHO_N "(cached) $ECHO_C" >&6
14797else
John Criswell47fdd832003-07-14 16:52:07 +000014798 lt_cv_prog_compiler_c_o=no
14799 $rm -r conftest 2>/dev/null
14800 mkdir conftest
14801 cd conftest
14802 mkdir out
14803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014804
John Criswell47fdd832003-07-14 16:52:07 +000014805 lt_compiler_flag="-o out/conftest2.$ac_objext"
14806 # Insert the option either (1) after the last *FLAGS variable, or
14807 # (2) before a word containing "conftest.", or (3) at the end.
14808 # Note that $ac_compile itself does not contain backslashes and begins
14809 # with a dollar sign (not a hyphen), so the echo should work correctly.
14810 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14813 -e 's:$: $lt_compiler_flag:'`
Devang Patel5d28b882007-12-04 22:54:47 +000014814 (eval echo "\"\$as_me:14814: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014815 (eval "$lt_compile" 2>out/conftest.err)
14816 ac_status=$?
14817 cat out/conftest.err >&5
Devang Patel5d28b882007-12-04 22:54:47 +000014818 echo "$as_me:14818: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14820 then
14821 # The compiler can only warn and ignore the option if not recognized
14822 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014826 lt_cv_prog_compiler_c_o=yes
14827 fi
14828 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014829 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014830 $rm conftest*
14831 # SGI C++ compiler will create directory out/ii_files/ for
14832 # template instantiation
14833 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14834 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014835 cd ..
14836 rmdir conftest
14837 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014838
14839fi
Reid Spencera773bd52006-08-04 18:18:08 +000014840{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14841echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014842
John Criswell7a73b802003-06-30 21:59:07 +000014843
John Criswell7a73b802003-06-30 21:59:07 +000014844hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014845if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014846 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014847 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14848echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014849 hard_links=yes
14850 $rm conftest*
14851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14852 touch conftest.a
14853 ln conftest.a conftest.b 2>&5 || hard_links=no
14854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014855 { echo "$as_me:$LINENO: result: $hard_links" >&5
14856echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014857 if test "$hard_links" = no; then
14858 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14859echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14860 need_locks=warn
14861 fi
14862else
14863 need_locks=no
14864fi
John Criswell7a73b802003-06-30 21:59:07 +000014865
Reid Spencera773bd52006-08-04 18:18:08 +000014866{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14867echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014868
14869 runpath_var=
14870 allow_undefined_flag=
14871 enable_shared_with_static_runtimes=no
14872 archive_cmds=
14873 archive_expsym_cmds=
14874 old_archive_From_new_cmds=
14875 old_archive_from_expsyms_cmds=
14876 export_dynamic_flag_spec=
14877 whole_archive_flag_spec=
14878 thread_safe_flag_spec=
14879 hardcode_libdir_flag_spec=
14880 hardcode_libdir_flag_spec_ld=
14881 hardcode_libdir_separator=
14882 hardcode_direct=no
14883 hardcode_minus_L=no
14884 hardcode_shlibpath_var=unsupported
14885 link_all_deplibs=unknown
14886 hardcode_automatic=no
14887 module_cmds=
14888 module_expsym_cmds=
14889 always_export_symbols=no
14890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14891 # include_expsyms should be a list of space-separated symbols to be *always*
14892 # included in the symbol list
14893 include_expsyms=
14894 # exclude_expsyms can be an extended regexp of symbols to exclude
14895 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14896 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14897 # as well as any symbol that contains `d'.
14898 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14899 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14900 # platforms (ab)use it in PIC code, but their linkers get confused if
14901 # the symbol is explicitly referenced. Since portable code cannot
14902 # rely on this symbol name, it's probably fine to never include it in
14903 # preloaded symbol tables.
14904 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014905 # Just being paranoid about ensuring that cc_basename is set.
14906 for cc_temp in $compiler""; do
14907 case $cc_temp in
14908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14910 \-*) ;;
14911 *) break;;
14912 esac
14913done
14914cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014915
14916 case $host_os in
14917 cygwin* | mingw* | pw32*)
14918 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14919 # When not using gcc, we currently assume that we are using
14920 # Microsoft Visual C++.
14921 if test "$GCC" != yes; then
14922 with_gnu_ld=no
14923 fi
14924 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014925 interix*)
14926 # we just hope/assume this is gcc and not c89 (= MSVC++)
14927 with_gnu_ld=yes
14928 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014929 openbsd*)
14930 with_gnu_ld=no
14931 ;;
14932 esac
14933
14934 ld_shlibs=yes
14935 if test "$with_gnu_ld" = yes; then
14936 # If archive_cmds runs LD, not CC, wlarc should be empty
14937 wlarc='${wl}'
14938
Reid Spencera773bd52006-08-04 18:18:08 +000014939 # Set some defaults for GNU ld with shared library support. These
14940 # are reset later if shared libraries are not supported. Putting them
14941 # here allows them to be overridden if necessary.
14942 runpath_var=LD_RUN_PATH
14943 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14944 export_dynamic_flag_spec='${wl}--export-dynamic'
14945 # ancient GNU ld didn't support --whole-archive et. al.
14946 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14947 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14948 else
14949 whole_archive_flag_spec=
14950 fi
14951 supports_anon_versioning=no
14952 case `$LD -v 2>/dev/null` in
14953 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14954 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14955 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14956 *\ 2.11.*) ;; # other 2.11 versions
14957 *) supports_anon_versioning=yes ;;
14958 esac
14959
John Criswell47fdd832003-07-14 16:52:07 +000014960 # See if GNU ld supports shared libraries.
14961 case $host_os in
14962 aix3* | aix4* | aix5*)
14963 # On AIX/PPC, the GNU linker is very broken
14964 if test "$host_cpu" != ia64; then
14965 ld_shlibs=no
14966 cat <<EOF 1>&2
14967
14968*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14969*** to be unable to reliably create shared libraries on AIX.
14970*** Therefore, libtool is disabling shared libraries support. If you
14971*** really care for shared libraries, you may want to modify your PATH
14972*** so that a non-GNU linker is found, and then restart.
14973
14974EOF
14975 fi
14976 ;;
14977
14978 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014979 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 +000014980 hardcode_libdir_flag_spec='-L$libdir'
14981 hardcode_minus_L=yes
14982
14983 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14984 # that the semantics of dynamic libraries on AmigaOS, at least up
14985 # to version 4, is to share data among multiple programs linked
14986 # with the same dynamic library. Since this doesn't match the
14987 # behavior of shared libraries on other platforms, we can't use
14988 # them.
14989 ld_shlibs=no
14990 ;;
14991
14992 beos*)
14993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14994 allow_undefined_flag=unsupported
14995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14996 # support --undefined. This deserves some investigation. FIXME
14997 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14998 else
14999 ld_shlibs=no
15000 fi
15001 ;;
15002
15003 cygwin* | mingw* | pw32*)
15004 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15005 # as there is no search path for DLLs.
15006 hardcode_libdir_flag_spec='-L$libdir'
15007 allow_undefined_flag=unsupported
15008 always_export_symbols=no
15009 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015010 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 +000015011
15012 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015013 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 +000015014 # If the export-symbols file already is a .def file (1st line
15015 # is EXPORTS), use it as is; otherwise, prepend...
15016 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15017 cp $export_symbols $output_objdir/$soname.def;
15018 else
15019 echo EXPORTS > $output_objdir/$soname.def;
15020 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015021 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015022 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15023 else
15024 ld_shlibs=no
15025 fi
15026 ;;
15027
15028 interix3*)
15029 hardcode_direct=no
15030 hardcode_shlibpath_var=no
15031 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15032 export_dynamic_flag_spec='${wl}-E'
15033 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15034 # Instead, shared libraries are loaded at an image base (0x10000000 by
15035 # default) and relocated if they conflict, which is a slow very memory
15036 # consuming and fragmenting process. To avoid this, we pick a random,
15037 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15038 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15039 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15040 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'
15041 ;;
15042
15043 linux*)
15044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15045 tmp_addflag=
15046 case $cc_basename,$host_cpu in
15047 pgcc*) # Portland Group C compiler
15048 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'
15049 tmp_addflag=' $pic_flag'
15050 ;;
15051 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15052 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'
15053 tmp_addflag=' $pic_flag -Mnomain' ;;
15054 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15055 tmp_addflag=' -i_dynamic' ;;
15056 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15057 tmp_addflag=' -i_dynamic -nofor_main' ;;
15058 ifc* | ifort*) # Intel Fortran compiler
15059 tmp_addflag=' -nofor_main' ;;
15060 esac
15061 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15062
15063 if test $supports_anon_versioning = yes; then
15064 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15065 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15066 $echo "local: *; };" >> $output_objdir/$libname.ver~
15067 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15068 fi
John Criswell47fdd832003-07-14 16:52:07 +000015069 else
15070 ld_shlibs=no
15071 fi
15072 ;;
15073
15074 netbsd*)
15075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15076 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15077 wlarc=
15078 else
15079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15081 fi
15082 ;;
15083
Reid Spencera773bd52006-08-04 18:18:08 +000015084 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015085 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15086 ld_shlibs=no
15087 cat <<EOF 1>&2
15088
15089*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15090*** create shared libraries on Solaris systems. Therefore, libtool
15091*** is disabling shared libraries support. We urge you to upgrade GNU
15092*** binutils to release 2.9.1 or newer. Another option is to modify
15093*** your PATH or compiler configuration so that the native linker is
15094*** used, and then restart.
15095
15096EOF
15097 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15100 else
15101 ld_shlibs=no
15102 fi
15103 ;;
15104
Reid Spencera773bd52006-08-04 18:18:08 +000015105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15106 case `$LD -v 2>&1` in
15107 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15108 ld_shlibs=no
15109 cat <<_LT_EOF 1>&2
15110
15111*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15112*** reliably create shared libraries on SCO systems. Therefore, libtool
15113*** is disabling shared libraries support. We urge you to upgrade GNU
15114*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15115*** your PATH or compiler configuration so that the native linker is
15116*** used, and then restart.
15117
15118_LT_EOF
15119 ;;
15120 *)
15121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15122 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15125 else
15126 ld_shlibs=no
15127 fi
15128 ;;
15129 esac
15130 ;;
15131
John Criswell47fdd832003-07-14 16:52:07 +000015132 sunos4*)
15133 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15134 wlarc=
15135 hardcode_direct=yes
15136 hardcode_shlibpath_var=no
15137 ;;
15138
15139 *)
15140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15143 else
15144 ld_shlibs=no
15145 fi
15146 ;;
15147 esac
15148
Reid Spencera773bd52006-08-04 18:18:08 +000015149 if test "$ld_shlibs" = no; then
15150 runpath_var=
15151 hardcode_libdir_flag_spec=
15152 export_dynamic_flag_spec=
15153 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015154 fi
15155 else
15156 # PORTME fill in a description of your system's linker (not GNU ld)
15157 case $host_os in
15158 aix3*)
15159 allow_undefined_flag=unsupported
15160 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015161 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 +000015162 # Note: this linker hardcodes the directories in LIBPATH if there
15163 # are no directories specified by -L.
15164 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015165 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015166 # Neither direct hardcoding nor static linking is supported with a
15167 # broken collect2.
15168 hardcode_direct=unsupported
15169 fi
15170 ;;
15171
15172 aix4* | aix5*)
15173 if test "$host_cpu" = ia64; then
15174 # On IA64, the linker does run time linking by default, so we don't
15175 # have to do anything special.
15176 aix_use_runtimelinking=no
15177 exp_sym_flag='-Bexport'
15178 no_entry_flag=""
15179 else
15180 # If we're using GNU nm, then we don't want the "-C" option.
15181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15183 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'
15184 else
15185 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'
15186 fi
15187 aix_use_runtimelinking=no
15188
15189 # Test if we are trying to use run time linking or normal
15190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15191 # need to do runtime linking.
15192 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15193 for ld_flag in $LDFLAGS; do
15194 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15195 aix_use_runtimelinking=yes
15196 break
15197 fi
15198 done
Reid Spencera773bd52006-08-04 18:18:08 +000015199 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015200 esac
15201
15202 exp_sym_flag='-bexport'
15203 no_entry_flag='-bnoentry'
15204 fi
15205
15206 # When large executables or shared objects are built, AIX ld can
15207 # have problems creating the table of contents. If linking a library
15208 # or program results in "error TOC overflow" add -mminimal-toc to
15209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15211
15212 archive_cmds=''
15213 hardcode_direct=yes
15214 hardcode_libdir_separator=':'
15215 link_all_deplibs=yes
15216
15217 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015218 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015219 # We only want to do this on AIX 4.2 and lower, the check
15220 # below for broken collect2 doesn't work under 4.3+
15221 collect2name=`${CC} -print-prog-name=collect2`
15222 if test -f "$collect2name" && \
15223 strings "$collect2name" | grep resolve_lib_name >/dev/null
15224 then
15225 # We have reworked collect2
15226 hardcode_direct=yes
15227 else
15228 # We have old collect2
15229 hardcode_direct=unsupported
15230 # It fails to find uninstalled libraries when the uninstalled
15231 # path is not listed in the libpath. Setting hardcode_minus_L
15232 # to unsupported forces relinking
15233 hardcode_minus_L=yes
15234 hardcode_libdir_flag_spec='-L$libdir'
15235 hardcode_libdir_separator=
15236 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015237 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015238 esac
15239 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015240 if test "$aix_use_runtimelinking" = yes; then
15241 shared_flag="$shared_flag "'${wl}-G'
15242 fi
John Criswell47fdd832003-07-14 16:52:07 +000015243 else
15244 # not using gcc
15245 if test "$host_cpu" = ia64; then
15246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15247 # chokes on -Wl,-G. The following line is correct:
15248 shared_flag='-G'
15249 else
Reid Spencera773bd52006-08-04 18:18:08 +000015250 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015251 shared_flag='${wl}-G'
15252 else
15253 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015254 fi
John Criswell47fdd832003-07-14 16:52:07 +000015255 fi
15256 fi
15257
15258 # It seems that -bexpall does not export symbols beginning with
15259 # underscore (_), so it is better to generate a list of symbols to export.
15260 always_export_symbols=yes
15261 if test "$aix_use_runtimelinking" = yes; then
15262 # Warning - without using the other runtime loading flags (-brtl),
15263 # -berok will link without error, but may produce a broken library.
15264 allow_undefined_flag='-berok'
15265 # Determine the default libpath from the value encoded in an empty executable.
15266 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015267/* confdefs.h. */
15268_ACEOF
15269cat confdefs.h >>conftest.$ac_ext
15270cat >>conftest.$ac_ext <<_ACEOF
15271/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015272
John Criswell7a73b802003-06-30 21:59:07 +000015273int
15274main ()
15275{
John Criswell47fdd832003-07-14 16:52:07 +000015276
John Criswell7a73b802003-06-30 21:59:07 +000015277 ;
15278 return 0;
15279}
15280_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015281rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015282if { (ac_try="$ac_link"
15283case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15286esac
15287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15288 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015289 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015290 grep -v '^ *+' conftest.er1 >conftest.err
15291 rm -f conftest.er1
15292 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15296 { (case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15299esac
15300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; } &&
15305 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015306 { (case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15309esac
15310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015315
John Criswell47fdd832003-07-14 16:52:07 +000015316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15317}'`
15318# Check for a 64-bit object if we didn't find anything.
15319if 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; }
15320}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015321else
15322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015323sed 's/^/| /' conftest.$ac_ext >&5
15324
Reid Spencera773bd52006-08-04 18:18:08 +000015325
John Criswell7a73b802003-06-30 21:59:07 +000015326fi
Reid Spencera773bd52006-08-04 18:18:08 +000015327
15328rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015329 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015331
John Criswell47fdd832003-07-14 16:52:07 +000015332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015333 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 +000015334 else
15335 if test "$host_cpu" = ia64; then
15336 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15337 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015338 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 +000015339 else
15340 # Determine the default libpath from the value encoded in an empty executable.
15341 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015342/* confdefs.h. */
15343_ACEOF
15344cat confdefs.h >>conftest.$ac_ext
15345cat >>conftest.$ac_ext <<_ACEOF
15346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015347
John Criswell47fdd832003-07-14 16:52:07 +000015348int
15349main ()
15350{
John Criswell7a73b802003-06-30 21:59:07 +000015351
John Criswell47fdd832003-07-14 16:52:07 +000015352 ;
15353 return 0;
15354}
15355_ACEOF
15356rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015357if { (ac_try="$ac_link"
15358case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15361esac
15362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015364 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015365 grep -v '^ *+' conftest.er1 >conftest.err
15366 rm -f conftest.er1
15367 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15371 { (case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374esac
15375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; } &&
15380 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015381 { (case "(($ac_try" in
15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15384esac
15385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015390
John Criswell47fdd832003-07-14 16:52:07 +000015391aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15392}'`
15393# Check for a 64-bit object if we didn't find anything.
15394if 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; }
15395}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015396else
John Criswell47fdd832003-07-14 16:52:07 +000015397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015398sed 's/^/| /' conftest.$ac_ext >&5
15399
Reid Spencera773bd52006-08-04 18:18:08 +000015400
John Criswell47fdd832003-07-14 16:52:07 +000015401fi
Reid Spencera773bd52006-08-04 18:18:08 +000015402
15403rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015404 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015406
John Criswell47fdd832003-07-14 16:52:07 +000015407 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15408 # Warning - without using the other run time loading flags,
15409 # -berok will link without error, but may produce a broken library.
15410 no_undefined_flag=' ${wl}-bernotok'
15411 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015412 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015413 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015414 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015415 # This is similar to how AIX traditionally builds its shared libraries.
15416 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 +000015417 fi
15418 fi
John Criswell7a73b802003-06-30 21:59:07 +000015419 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015420
15421 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015422 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 +000015423 hardcode_libdir_flag_spec='-L$libdir'
15424 hardcode_minus_L=yes
15425 # see comment about different semantics on the GNU ld section
15426 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015427 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015428
Reid Spencer2706f8c2004-09-19 23:53:36 +000015429 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015430 export_dynamic_flag_spec=-rdynamic
15431 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015432
John Criswell47fdd832003-07-14 16:52:07 +000015433 cygwin* | mingw* | pw32*)
15434 # When not using gcc, we currently assume that we are using
15435 # Microsoft Visual C++.
15436 # hardcode_libdir_flag_spec is actually meaningless, as there is
15437 # no search path for DLLs.
15438 hardcode_libdir_flag_spec=' '
15439 allow_undefined_flag=unsupported
15440 # Tell ltmain to make .lib files, not .a files.
15441 libext=lib
15442 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015443 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015444 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015445 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015446 # The linker will automatically build a .lib file if we build a DLL.
15447 old_archive_From_new_cmds='true'
15448 # FIXME: Should let the user specify the lib program.
15449 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15450 fix_srcfile_path='`cygpath -w "$srcfile"`'
15451 enable_shared_with_static_runtimes=yes
15452 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015453
John Criswell47fdd832003-07-14 16:52:07 +000015454 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015455 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015456 rhapsody* | darwin1.[012])
15457 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15458 ;;
15459 *) # Darwin 1.3 on
15460 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15461 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15462 else
15463 case ${MACOSX_DEPLOYMENT_TARGET} in
15464 10.[012])
15465 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15466 ;;
15467 10.*)
15468 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15469 ;;
15470 esac
15471 fi
15472 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015473 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015474 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015475 hardcode_direct=no
15476 hardcode_automatic=yes
15477 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015478 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015479 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015480 if test "$GCC" = yes ; then
15481 output_verbose_link_cmd='echo'
15482 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15483 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015484 # 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 +000015485 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}'
15486 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 +000015487 else
Reid Spencera773bd52006-08-04 18:18:08 +000015488 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015489 xlc*)
15490 output_verbose_link_cmd='echo'
15491 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15492 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015493 # 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 +000015494 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}'
15495 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 +000015496 ;;
15497 *)
15498 ld_shlibs=no
15499 ;;
15500 esac
John Criswell7a73b802003-06-30 21:59:07 +000015501 fi
John Criswell47fdd832003-07-14 16:52:07 +000015502 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015503
John Criswell47fdd832003-07-14 16:52:07 +000015504 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015506 hardcode_libdir_flag_spec='-L$libdir'
15507 hardcode_shlibpath_var=no
15508 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015509
John Criswell47fdd832003-07-14 16:52:07 +000015510 freebsd1*)
15511 ld_shlibs=no
15512 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015513
John Criswell47fdd832003-07-14 16:52:07 +000015514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15515 # support. Future versions do this automatically, but an explicit c++rt0.o
15516 # does not break anything, and helps significantly (at the cost of a little
15517 # extra space).
15518 freebsd2.2*)
15519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15520 hardcode_libdir_flag_spec='-R$libdir'
15521 hardcode_direct=yes
15522 hardcode_shlibpath_var=no
15523 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015524
John Criswell47fdd832003-07-14 16:52:07 +000015525 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15526 freebsd2*)
15527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528 hardcode_direct=yes
15529 hardcode_minus_L=yes
15530 hardcode_shlibpath_var=no
15531 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015532
John Criswell47fdd832003-07-14 16:52:07 +000015533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015534 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015535 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15536 hardcode_libdir_flag_spec='-R$libdir'
15537 hardcode_direct=yes
15538 hardcode_shlibpath_var=no
15539 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015540
John Criswell47fdd832003-07-14 16:52:07 +000015541 hpux9*)
15542 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015543 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 +000015544 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015545 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 +000015546 fi
15547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15548 hardcode_libdir_separator=:
15549 hardcode_direct=yes
15550
15551 # hardcode_minus_L: Not really in the search PATH,
15552 # but as the default location of the library.
15553 hardcode_minus_L=yes
15554 export_dynamic_flag_spec='${wl}-E'
15555 ;;
15556
Reid Spencera773bd52006-08-04 18:18:08 +000015557 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015559 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15560 else
15561 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15562 fi
15563 if test "$with_gnu_ld" = no; then
15564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15565 hardcode_libdir_separator=:
15566
15567 hardcode_direct=yes
15568 export_dynamic_flag_spec='${wl}-E'
15569
15570 # hardcode_minus_L: Not really in the search PATH,
15571 # but as the default location of the library.
15572 hardcode_minus_L=yes
15573 fi
15574 ;;
15575
15576 hpux11*)
15577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15578 case $host_cpu in
15579 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015580 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15581 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015582 ia64*)
15583 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15584 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015585 *)
15586 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15587 ;;
15588 esac
15589 else
Reid Spencera773bd52006-08-04 18:18:08 +000015590 case $host_cpu in
15591 hppa*64*)
15592 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 ;;
15594 ia64*)
15595 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015596 ;;
15597 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015598 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 +000015599 ;;
15600 esac
15601 fi
15602 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15604 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015605
Reid Spencera773bd52006-08-04 18:18:08 +000015606 case $host_cpu in
15607 hppa*64*|ia64*)
15608 hardcode_libdir_flag_spec_ld='+b $libdir'
15609 hardcode_direct=no
15610 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015611 ;;
15612 *)
John Criswell47fdd832003-07-14 16:52:07 +000015613 hardcode_direct=yes
15614 export_dynamic_flag_spec='${wl}-E'
15615
15616 # hardcode_minus_L: Not really in the search PATH,
15617 # but as the default location of the library.
15618 hardcode_minus_L=yes
15619 ;;
15620 esac
15621 fi
15622 ;;
15623
15624 irix5* | irix6* | nonstopux*)
15625 if test "$GCC" = yes; then
15626 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'
15627 else
15628 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'
15629 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15630 fi
15631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15632 hardcode_libdir_separator=:
15633 link_all_deplibs=yes
15634 ;;
15635
15636 netbsd*)
15637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15639 else
15640 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15641 fi
15642 hardcode_libdir_flag_spec='-R$libdir'
15643 hardcode_direct=yes
15644 hardcode_shlibpath_var=no
15645 ;;
15646
15647 newsos6)
15648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649 hardcode_direct=yes
15650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15651 hardcode_libdir_separator=:
15652 hardcode_shlibpath_var=no
15653 ;;
15654
15655 openbsd*)
15656 hardcode_direct=yes
15657 hardcode_shlibpath_var=no
15658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15659 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015660 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 +000015661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15662 export_dynamic_flag_spec='${wl}-E'
15663 else
15664 case $host_os in
15665 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15667 hardcode_libdir_flag_spec='-R$libdir'
15668 ;;
15669 *)
15670 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15672 ;;
15673 esac
15674 fi
15675 ;;
15676
15677 os2*)
15678 hardcode_libdir_flag_spec='-L$libdir'
15679 hardcode_minus_L=yes
15680 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015681 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 +000015682 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15683 ;;
15684
15685 osf3*)
15686 if test "$GCC" = yes; then
15687 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15688 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'
15689 else
15690 allow_undefined_flag=' -expect_unresolved \*'
15691 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'
15692 fi
15693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15694 hardcode_libdir_separator=:
15695 ;;
15696
15697 osf4* | osf5*) # as osf3* with the addition of -msym flag
15698 if test "$GCC" = yes; then
15699 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15700 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'
15701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15702 else
15703 allow_undefined_flag=' -expect_unresolved \*'
15704 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 +000015705 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 +000015706 $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 +000015707
John Criswell47fdd832003-07-14 16:52:07 +000015708 # Both c and cxx compiler support -rpath directly
15709 hardcode_libdir_flag_spec='-rpath $libdir'
15710 fi
15711 hardcode_libdir_separator=:
15712 ;;
15713
John Criswell47fdd832003-07-14 16:52:07 +000015714 solaris*)
15715 no_undefined_flag=' -z text'
15716 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015717 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015718 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015719 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15720 $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 +000015721 else
Reid Spencera773bd52006-08-04 18:18:08 +000015722 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015723 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015724 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15725 $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 +000015726 fi
15727 hardcode_libdir_flag_spec='-R$libdir'
15728 hardcode_shlibpath_var=no
15729 case $host_os in
15730 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015731 *)
15732 # The compiler driver will combine linker options so we
15733 # cannot just pass the convience library names through
15734 # without $wl, iff we do not link with $LD.
15735 # Luckily, gcc supports the same syntax we need for Sun Studio.
15736 # Supported since Solaris 2.6 (maybe 2.5.1?)
15737 case $wlarc in
15738 '')
15739 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15740 *)
15741 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' ;;
15742 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015743 esac
15744 link_all_deplibs=yes
15745 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015746
John Criswell47fdd832003-07-14 16:52:07 +000015747 sunos4*)
15748 if test "x$host_vendor" = xsequent; then
15749 # Use $CC to link under sequent, because it throws in some extra .o
15750 # files that make .init and .fini sections work.
15751 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15752 else
15753 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15754 fi
15755 hardcode_libdir_flag_spec='-L$libdir'
15756 hardcode_direct=yes
15757 hardcode_minus_L=yes
15758 hardcode_shlibpath_var=no
15759 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015760
John Criswell47fdd832003-07-14 16:52:07 +000015761 sysv4)
15762 case $host_vendor in
15763 sni)
15764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_direct=yes # is this really true???
15766 ;;
15767 siemens)
15768 ## LD is ld it makes a PLAMLIB
15769 ## CC just makes a GrossModule.
15770 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15771 reload_cmds='$CC -r -o $output$reload_objs'
15772 hardcode_direct=no
15773 ;;
15774 motorola)
15775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15776 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15777 ;;
15778 esac
15779 runpath_var='LD_RUN_PATH'
15780 hardcode_shlibpath_var=no
15781 ;;
15782
15783 sysv4.3*)
15784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15785 hardcode_shlibpath_var=no
15786 export_dynamic_flag_spec='-Bexport'
15787 ;;
15788
15789 sysv4*MP*)
15790 if test -d /usr/nec; then
15791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792 hardcode_shlibpath_var=no
15793 runpath_var=LD_RUN_PATH
15794 hardcode_runpath_var=yes
15795 ld_shlibs=yes
15796 fi
15797 ;;
15798
Reid Spencera773bd52006-08-04 18:18:08 +000015799 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15800 no_undefined_flag='${wl}-z,text'
15801 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015802 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015803 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015804
John Criswell47fdd832003-07-14 16:52:07 +000015805 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015806 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15807 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 +000015808 else
Reid Spencera773bd52006-08-04 18:18:08 +000015809 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15810 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 +000015811 fi
John Criswell47fdd832003-07-14 16:52:07 +000015812 ;;
15813
Reid Spencera773bd52006-08-04 18:18:08 +000015814 sysv5* | sco3.2v5* | sco5v6*)
15815 # Note: We can NOT use -z defs as we might desire, because we do not
15816 # link with -lc, and that would cause any symbols used from libc to
15817 # always be unresolved, which means just about no library would
15818 # ever link correctly. If we're not using GNU ld we use -z text
15819 # though, which does catch some bad symbols but isn't as heavy-handed
15820 # as -z defs.
15821 no_undefined_flag='${wl}-z,text'
15822 allow_undefined_flag='${wl}-z,nodefs'
15823 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015824 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015825 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15826 hardcode_libdir_separator=':'
15827 link_all_deplibs=yes
15828 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015829 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015830
15831 if test "$GCC" = yes; then
15832 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15834 else
15835 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15836 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15837 fi
John Criswell47fdd832003-07-14 16:52:07 +000015838 ;;
15839
15840 uts4*)
15841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842 hardcode_libdir_flag_spec='-L$libdir'
15843 hardcode_shlibpath_var=no
15844 ;;
15845
15846 *)
15847 ld_shlibs=no
15848 ;;
15849 esac
15850 fi
15851
Reid Spencera773bd52006-08-04 18:18:08 +000015852{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15853echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015854test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015855
John Criswell47fdd832003-07-14 16:52:07 +000015856#
15857# Do we need to explicitly link libc?
15858#
15859case "x$archive_cmds_need_lc" in
15860x|xyes)
15861 # Assume -lc should be added
15862 archive_cmds_need_lc=yes
15863
15864 if test "$enable_shared" = yes && test "$GCC" = yes; then
15865 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015866 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015867 # FIXME: we may have to deal with multi-command sequences.
15868 ;;
15869 '$CC '*)
15870 # Test whether the compiler implicitly links with -lc since on some
15871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15872 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015873 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15874echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015875 $rm conftest*
15876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15877
15878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879 (eval $ac_compile) 2>&5
15880 ac_status=$?
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } 2>conftest.err; then
15883 soname=conftest
15884 lib=conftest
15885 libobjs=conftest.$ac_objext
15886 deplibs=
15887 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015888 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015889 compiler_flags=-v
15890 linker_flags=-v
15891 verstring=
15892 output_objdir=.
15893 libname=conftest
15894 lt_save_allow_undefined_flag=$allow_undefined_flag
15895 allow_undefined_flag=
15896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15897 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }
15901 then
15902 archive_cmds_need_lc=no
15903 else
15904 archive_cmds_need_lc=yes
15905 fi
15906 allow_undefined_flag=$lt_save_allow_undefined_flag
15907 else
15908 cat conftest.err 1>&5
15909 fi
15910 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015911 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15912echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015913 ;;
15914 esac
15915 fi
15916 ;;
15917esac
15918
Reid Spencera773bd52006-08-04 18:18:08 +000015919{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15920echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015921library_names_spec=
15922libname_spec='lib$name'
15923soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015924shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015925postinstall_cmds=
15926postuninstall_cmds=
15927finish_cmds=
15928finish_eval=
15929shlibpath_var=
15930shlibpath_overrides_runpath=unknown
15931version_type=none
15932dynamic_linker="$host_os ld.so"
15933sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015934if test "$GCC" = yes; then
15935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15937 # if the path contains ";" then we assume it to be the separator
15938 # otherwise default to the standard path separator (i.e. ":") - it is
15939 # assumed that no part of a normal pathname contains ";" but that should
15940 # okay in the real world where ";" in dirpaths is itself problematic.
15941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15942 else
15943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15944 fi
15945else
15946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15947fi
15948need_lib_prefix=unknown
15949hardcode_into_libs=no
15950
15951# when you set need_version to no, make sure it does not cause -set_version
15952# flags to be left without arguments
15953need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015954
15955case $host_os in
15956aix3*)
15957 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015959 shlibpath_var=LIBPATH
15960
John Criswell47fdd832003-07-14 16:52:07 +000015961 # AIX 3 has no versioning support, so we append a major version to the name.
15962 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015963 ;;
15964
15965aix4* | aix5*)
15966 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015967 need_lib_prefix=no
15968 need_version=no
15969 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015970 if test "$host_cpu" = ia64; then
15971 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015973 shlibpath_var=LD_LIBRARY_PATH
15974 else
15975 # With GCC up to 2.95.x, collect2 would create an import file
15976 # for dependence libraries. The import file would start with
15977 # the line `#! .'. This would cause the generated library to
15978 # depend on `.', always an invalid library. This was fixed in
15979 # development snapshots of GCC prior to 3.0.
15980 case $host_os in
15981 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15983 echo ' yes '
15984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15985 :
15986 else
15987 can_build_shared=no
15988 fi
15989 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015990 esac
John Criswell47fdd832003-07-14 16:52:07 +000015991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15992 # soname into executable. Probably we can add versioning support to
15993 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015994 if test "$aix_use_runtimelinking" = yes; then
15995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15996 # instead of lib<name>.a to let people know that these are not
15997 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015999 else
16000 # We preserve .a as extension for shared libraries through AIX4.2
16001 # and later when we are not doing run time linking.
16002 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016003 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016004 fi
16005 shlibpath_var=LIBPATH
16006 fi
16007 ;;
16008
16009amigaos*)
16010 library_names_spec='$libname.ixlibrary $libname.a'
16011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016012 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 +000016013 ;;
16014
16015beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016016 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016017 dynamic_linker="$host_os ld.so"
16018 shlibpath_var=LIBRARY_PATH
16019 ;;
16020
Reid Spencer2706f8c2004-09-19 23:53:36 +000016021bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016022 version_type=linux
16023 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016030 # the default ld.so.conf also contains /usr/contrib/lib and
16031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16032 # libtool to hard-code these into programs
16033 ;;
16034
16035cygwin* | mingw* | pw32*)
16036 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016037 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016038 need_version=no
16039 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016040
John Criswell7a73b802003-06-30 21:59:07 +000016041 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016042 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016043 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016045 postinstall_cmds='base_file=`basename \${file}`~
16046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16047 dldir=$destdir/`dirname \$dlpath`~
16048 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016049 $install_prog $dir/$dlname \$dldir/$dlname~
16050 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16052 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016053 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016054 shlibpath_overrides_runpath=yes
16055
16056 case $host_os in
16057 cygwin*)
16058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16059 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 +000016060 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016061 ;;
16062 mingw*)
16063 # MinGW DLLs use traditional 'lib' prefix
16064 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16065 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16066 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16067 # It is most probably a Windows format PATH printed by
16068 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16069 # path with ; separators, and with drive letters. We can handle the
16070 # drive letters (cygwin fileutils understands them), so leave them,
16071 # especially as we might pass files found there to a mingw objdump,
16072 # which wouldn't understand a cygwinified path. Ahh.
16073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16074 else
16075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16076 fi
16077 ;;
16078 pw32*)
16079 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016080 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 +000016081 ;;
16082 esac
John Criswell7a73b802003-06-30 21:59:07 +000016083 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016084
John Criswell7a73b802003-06-30 21:59:07 +000016085 *)
John Criswell47fdd832003-07-14 16:52:07 +000016086 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016087 ;;
16088 esac
16089 dynamic_linker='Win32 ld.exe'
16090 # FIXME: first we should search . and the directory the executable is in
16091 shlibpath_var=PATH
16092 ;;
16093
16094darwin* | rhapsody*)
16095 dynamic_linker="$host_os dyld"
16096 version_type=darwin
16097 need_lib_prefix=no
16098 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016099 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016100 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016101 shlibpath_overrides_runpath=yes
16102 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016103 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016104 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016105 if test "$GCC" = yes; then
16106 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"`
16107 else
16108 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016109 fi
16110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16111 ;;
16112
16113dgux*)
16114 version_type=linux
16115 need_lib_prefix=no
16116 need_version=no
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16118 soname_spec='${libname}${release}${shared_ext}$major'
16119 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016120 ;;
16121
16122freebsd1*)
16123 dynamic_linker=no
16124 ;;
16125
Reid Spencer2706f8c2004-09-19 23:53:36 +000016126kfreebsd*-gnu)
16127 version_type=linux
16128 need_lib_prefix=no
16129 need_version=no
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 shlibpath_overrides_runpath=no
16134 hardcode_into_libs=yes
16135 dynamic_linker='GNU ld.so'
16136 ;;
16137
Reid Spencera773bd52006-08-04 18:18:08 +000016138freebsd* | dragonfly*)
16139 # DragonFly does not have aout. When/if they implement a new
16140 # versioning mechanism, adjust this.
16141 if test -x /usr/bin/objformat; then
16142 objformat=`/usr/bin/objformat`
16143 else
16144 case $host_os in
16145 freebsd[123]*) objformat=aout ;;
16146 *) objformat=elf ;;
16147 esac
16148 fi
John Criswell7a73b802003-06-30 21:59:07 +000016149 version_type=freebsd-$objformat
16150 case $version_type in
16151 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016153 need_version=no
16154 need_lib_prefix=no
16155 ;;
16156 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016158 need_version=yes
16159 ;;
16160 esac
16161 shlibpath_var=LD_LIBRARY_PATH
16162 case $host_os in
16163 freebsd2*)
16164 shlibpath_overrides_runpath=yes
16165 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016166 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016167 shlibpath_overrides_runpath=yes
16168 hardcode_into_libs=yes
16169 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016170 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16171 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016172 shlibpath_overrides_runpath=no
16173 hardcode_into_libs=yes
16174 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016175 freebsd*) # from 4.6 on
16176 shlibpath_overrides_runpath=yes
16177 hardcode_into_libs=yes
16178 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016179 esac
16180 ;;
16181
16182gnu*)
16183 version_type=linux
16184 need_lib_prefix=no
16185 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016188 shlibpath_var=LD_LIBRARY_PATH
16189 hardcode_into_libs=yes
16190 ;;
16191
16192hpux9* | hpux10* | hpux11*)
16193 # Give a soname corresponding to the major version so that dld.sl refuses to
16194 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016195 version_type=sunos
16196 need_lib_prefix=no
16197 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016198 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016199 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016200 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016201 hardcode_into_libs=yes
16202 dynamic_linker="$host_os dld.so"
16203 shlibpath_var=LD_LIBRARY_PATH
16204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 if test "X$HPUX_IA64_MODE" = X32; then
16208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16209 else
16210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16211 fi
16212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16213 ;;
16214 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016215 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016216 hardcode_into_libs=yes
16217 dynamic_linker="$host_os dld.sl"
16218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224 ;;
16225 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016226 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016227 dynamic_linker="$host_os dld.sl"
16228 shlibpath_var=SHLIB_PATH
16229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 ;;
16233 esac
John Criswell7a73b802003-06-30 21:59:07 +000016234 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16235 postinstall_cmds='chmod 555 $lib'
16236 ;;
16237
Reid Spencera773bd52006-08-04 18:18:08 +000016238interix3*)
16239 version_type=linux
16240 need_lib_prefix=no
16241 need_version=no
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16245 shlibpath_var=LD_LIBRARY_PATH
16246 shlibpath_overrides_runpath=no
16247 hardcode_into_libs=yes
16248 ;;
16249
John Criswell47fdd832003-07-14 16:52:07 +000016250irix5* | irix6* | nonstopux*)
16251 case $host_os in
16252 nonstopux*) version_type=nonstopux ;;
16253 *)
16254 if test "$lt_cv_prog_gnu_ld" = yes; then
16255 version_type=linux
16256 else
16257 version_type=irix
16258 fi ;;
16259 esac
John Criswell7a73b802003-06-30 21:59:07 +000016260 need_lib_prefix=no
16261 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016262 soname_spec='${libname}${release}${shared_ext}$major'
16263 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 +000016264 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016265 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016266 libsuff= shlibsuff=
16267 ;;
16268 *)
16269 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16271 libsuff= shlibsuff= libmagic=32-bit;;
16272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16273 libsuff=32 shlibsuff=N32 libmagic=N32;;
16274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16275 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016276 *) libsuff= shlibsuff= libmagic=never-match;;
16277 esac
16278 ;;
16279 esac
16280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16281 shlibpath_overrides_runpath=no
16282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016284 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016285 ;;
16286
16287# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016288linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016289 dynamic_linker=no
16290 ;;
16291
16292# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016293linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016294 version_type=linux
16295 need_lib_prefix=no
16296 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16300 shlibpath_var=LD_LIBRARY_PATH
16301 shlibpath_overrides_runpath=no
16302 # This implies no fast_install, which is unacceptable.
16303 # Some rework will be needed to allow for fast_install
16304 # before this can be enabled.
16305 hardcode_into_libs=yes
16306
Reid Spencer2706f8c2004-09-19 23:53:36 +000016307 # Append ld.so.conf contents to the search path
16308 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016309 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 +000016310 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16311 fi
16312
John Criswell7a73b802003-06-30 21:59:07 +000016313 # We used to test for /lib/ld.so.1 and disable shared libraries on
16314 # powerpc, because MkLinux only supported shared libraries with the
16315 # GNU dynamic linker. Since this was broken with cross compilers,
16316 # most powerpc-linux boxes support dynamic linking these days and
16317 # people can always --disable-shared, the test was removed, and we
16318 # assume the GNU/Linux dynamic linker is in use.
16319 dynamic_linker='GNU/Linux ld.so'
16320 ;;
16321
Reid Spencer2706f8c2004-09-19 23:53:36 +000016322knetbsd*-gnu)
16323 version_type=linux
16324 need_lib_prefix=no
16325 need_version=no
16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16327 soname_spec='${libname}${release}${shared_ext}$major'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=no
16330 hardcode_into_libs=yes
16331 dynamic_linker='GNU ld.so'
16332 ;;
16333
John Criswell7a73b802003-06-30 21:59:07 +000016334netbsd*)
16335 version_type=sunos
16336 need_lib_prefix=no
16337 need_version=no
16338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16341 dynamic_linker='NetBSD (a.out) ld.so'
16342 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016344 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016345 dynamic_linker='NetBSD ld.elf_so'
16346 fi
16347 shlibpath_var=LD_LIBRARY_PATH
16348 shlibpath_overrides_runpath=yes
16349 hardcode_into_libs=yes
16350 ;;
16351
16352newsos6)
16353 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355 shlibpath_var=LD_LIBRARY_PATH
16356 shlibpath_overrides_runpath=yes
16357 ;;
16358
Reid Spencer2706f8c2004-09-19 23:53:36 +000016359nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016360 version_type=linux
16361 need_lib_prefix=no
16362 need_version=no
16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16364 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016365 shlibpath_var=LD_LIBRARY_PATH
16366 shlibpath_overrides_runpath=yes
16367 ;;
16368
16369openbsd*)
16370 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016371 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016372 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016373 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16374 case $host_os in
16375 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16376 *) need_version=no ;;
16377 esac
John Criswell47fdd832003-07-14 16:52:07 +000016378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16380 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016381 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 +000016382 case $host_os in
16383 openbsd2.[89] | openbsd2.[89].*)
16384 shlibpath_overrides_runpath=no
16385 ;;
16386 *)
16387 shlibpath_overrides_runpath=yes
16388 ;;
16389 esac
John Criswell7a73b802003-06-30 21:59:07 +000016390 else
16391 shlibpath_overrides_runpath=yes
16392 fi
John Criswell7a73b802003-06-30 21:59:07 +000016393 ;;
16394
16395os2*)
16396 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016397 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016398 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016399 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016400 dynamic_linker='OS/2 ld.exe'
16401 shlibpath_var=LIBPATH
16402 ;;
16403
16404osf3* | osf4* | osf5*)
16405 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016406 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016407 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016408 soname_spec='${libname}${release}${shared_ext}$major'
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016410 shlibpath_var=LD_LIBRARY_PATH
16411 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16412 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16413 ;;
16414
John Criswell7a73b802003-06-30 21:59:07 +000016415solaris*)
16416 version_type=linux
16417 need_lib_prefix=no
16418 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=yes
16423 hardcode_into_libs=yes
16424 # ldd complains unless libraries are executable
16425 postinstall_cmds='chmod +x $lib'
16426 ;;
16427
16428sunos4*)
16429 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 shlibpath_overrides_runpath=yes
16434 if test "$with_gnu_ld" = yes; then
16435 need_lib_prefix=no
16436 fi
16437 need_version=yes
16438 ;;
16439
Reid Spencera773bd52006-08-04 18:18:08 +000016440sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016441 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016444 shlibpath_var=LD_LIBRARY_PATH
16445 case $host_vendor in
16446 sni)
16447 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016448 need_lib_prefix=no
16449 export_dynamic_flag_spec='${wl}-Blargedynsym'
16450 runpath_var=LD_RUN_PATH
16451 ;;
16452 siemens)
16453 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016454 ;;
16455 motorola)
16456 need_lib_prefix=no
16457 need_version=no
16458 shlibpath_overrides_runpath=no
16459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16460 ;;
16461 esac
16462 ;;
16463
John Criswell7a73b802003-06-30 21:59:07 +000016464sysv4*MP*)
16465 if test -d /usr/nec ;then
16466 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16468 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016469 shlibpath_var=LD_LIBRARY_PATH
16470 fi
16471 ;;
16472
Reid Spencera773bd52006-08-04 18:18:08 +000016473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16474 version_type=freebsd-elf
16475 need_lib_prefix=no
16476 need_version=no
16477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16478 soname_spec='${libname}${release}${shared_ext}$major'
16479 shlibpath_var=LD_LIBRARY_PATH
16480 hardcode_into_libs=yes
16481 if test "$with_gnu_ld" = yes; then
16482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16483 shlibpath_overrides_runpath=no
16484 else
16485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16486 shlibpath_overrides_runpath=yes
16487 case $host_os in
16488 sco3.2v5*)
16489 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16490 ;;
16491 esac
16492 fi
16493 sys_lib_dlsearch_path_spec='/usr/lib'
16494 ;;
16495
John Criswell47fdd832003-07-14 16:52:07 +000016496uts4*)
16497 version_type=linux
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499 soname_spec='${libname}${release}${shared_ext}$major'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 ;;
16502
John Criswell7a73b802003-06-30 21:59:07 +000016503*)
16504 dynamic_linker=no
16505 ;;
16506esac
Reid Spencera773bd52006-08-04 18:18:08 +000016507{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16508echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016509test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016510
Reid Spencera773bd52006-08-04 18:18:08 +000016511variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16512if test "$GCC" = yes; then
16513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16514fi
16515
16516{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16517echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016518hardcode_action=
16519if test -n "$hardcode_libdir_flag_spec" || \
16520 test -n "$runpath_var" || \
16521 test "X$hardcode_automatic" = "Xyes" ; then
16522
16523 # We can hardcode non-existant directories.
16524 if test "$hardcode_direct" != no &&
16525 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16526 # have to relink, otherwise we might link with an installed library
16527 # when we should be linking with a yet-to-be-installed one
16528 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16529 test "$hardcode_minus_L" != no; then
16530 # Linking always hardcodes the temporary library directory.
16531 hardcode_action=relink
16532 else
16533 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16534 hardcode_action=immediate
16535 fi
16536else
16537 # We cannot hardcode anything, or else we can only hardcode existing
16538 # directories.
16539 hardcode_action=unsupported
16540fi
Reid Spencera773bd52006-08-04 18:18:08 +000016541{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16542echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016543
16544if test "$hardcode_action" = relink; then
16545 # Fast installation is not supported
16546 enable_fast_install=no
16547elif test "$shlibpath_overrides_runpath" = yes ||
16548 test "$enable_shared" = no; then
16549 # Fast installation is not necessary
16550 enable_fast_install=needless
16551fi
16552
16553striplib=
16554old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016555{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16556echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016557if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16558 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16559 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016560 { echo "$as_me:$LINENO: result: yes" >&5
16561echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016562else
16563# FIXME - insert some real tests, host_os isn't really good enough
16564 case $host_os in
16565 darwin*)
16566 if test -n "$STRIP" ; then
16567 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016568 { echo "$as_me:$LINENO: result: yes" >&5
16569echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016570 else
Reid Spencera773bd52006-08-04 18:18:08 +000016571 { echo "$as_me:$LINENO: result: no" >&5
16572echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016573fi
16574 ;;
16575 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016576 { echo "$as_me:$LINENO: result: no" >&5
16577echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016578 ;;
16579 esac
16580fi
16581
John Criswell7a73b802003-06-30 21:59:07 +000016582if test "x$enable_dlopen" != xyes; then
16583 enable_dlopen=unknown
16584 enable_dlopen_self=unknown
16585 enable_dlopen_self_static=unknown
16586else
16587 lt_cv_dlopen=no
16588 lt_cv_dlopen_libs=
16589
16590 case $host_os in
16591 beos*)
16592 lt_cv_dlopen="load_add_on"
16593 lt_cv_dlopen_libs=
16594 lt_cv_dlopen_self=yes
16595 ;;
16596
John Criswell47fdd832003-07-14 16:52:07 +000016597 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016598 lt_cv_dlopen="LoadLibrary"
16599 lt_cv_dlopen_libs=
16600 ;;
16601
John Criswell47fdd832003-07-14 16:52:07 +000016602 cygwin*)
16603 lt_cv_dlopen="dlopen"
16604 lt_cv_dlopen_libs=
16605 ;;
16606
16607 darwin*)
16608 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016609 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16610echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016611if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613else
16614 ac_check_lib_save_LIBS=$LIBS
16615LIBS="-ldl $LIBS"
16616cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016617/* confdefs.h. */
16618_ACEOF
16619cat confdefs.h >>conftest.$ac_ext
16620cat >>conftest.$ac_ext <<_ACEOF
16621/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016622
Reid Spencera773bd52006-08-04 18:18:08 +000016623/* Override any GCC internal prototype to avoid an error.
16624 Use char because int might match the return type of a GCC
16625 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016626#ifdef __cplusplus
16627extern "C"
16628#endif
John Criswell47fdd832003-07-14 16:52:07 +000016629char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016630int
16631main ()
16632{
Reid Spencera773bd52006-08-04 18:18:08 +000016633return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016634 ;
16635 return 0;
16636}
16637_ACEOF
16638rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016639if { (ac_try="$ac_link"
16640case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16643esac
16644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653 { (case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16656esac
16657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016663 { (case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666esac
16667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_lib_dl_dlopen=yes
16673else
16674 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016675sed 's/^/| /' conftest.$ac_ext >&5
16676
Reid Spencera773bd52006-08-04 18:18:08 +000016677 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016678fi
Reid Spencera773bd52006-08-04 18:18:08 +000016679
16680rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016681 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016682LIBS=$ac_check_lib_save_LIBS
16683fi
Reid Spencera773bd52006-08-04 18:18:08 +000016684{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16685echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016686if test $ac_cv_lib_dl_dlopen = yes; then
16687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16688else
16689
16690 lt_cv_dlopen="dyld"
16691 lt_cv_dlopen_libs=
16692 lt_cv_dlopen_self=yes
16693
16694fi
16695
16696 ;;
16697
John Criswell7a73b802003-06-30 21:59:07 +000016698 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016699 { echo "$as_me:$LINENO: checking for shl_load" >&5
16700echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016701if test "${ac_cv_func_shl_load+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16703else
16704 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016705/* confdefs.h. */
16706_ACEOF
16707cat confdefs.h >>conftest.$ac_ext
16708cat >>conftest.$ac_ext <<_ACEOF
16709/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016710/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16712#define shl_load innocuous_shl_load
16713
John Criswell7a73b802003-06-30 21:59:07 +000016714/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016715 which can conflict with char shl_load (); below.
16716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16717 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016718
John Criswell0c38eaf2003-09-10 15:17:25 +000016719#ifdef __STDC__
16720# include <limits.h>
16721#else
16722# include <assert.h>
16723#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016724
16725#undef shl_load
16726
Reid Spencera773bd52006-08-04 18:18:08 +000016727/* Override any GCC internal prototype to avoid an error.
16728 Use char because int might match the return type of a GCC
16729 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016730#ifdef __cplusplus
16731extern "C"
16732#endif
John Criswell7a73b802003-06-30 21:59:07 +000016733char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016734/* The GNU C library defines this for functions which it implements
16735 to always fail with ENOSYS. Some functions are actually named
16736 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016737#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016738choke me
John Criswell7a73b802003-06-30 21:59:07 +000016739#endif
16740
John Criswell0c38eaf2003-09-10 15:17:25 +000016741int
16742main ()
16743{
Reid Spencera773bd52006-08-04 18:18:08 +000016744return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016745 ;
16746 return 0;
16747}
16748_ACEOF
16749rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016750if { (ac_try="$ac_link"
16751case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16754esac
16755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016757 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016758 grep -v '^ *+' conftest.er1 >conftest.err
16759 rm -f conftest.er1
16760 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16764 { (case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16767esac
16768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; } &&
16773 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016774 { (case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16777esac
16778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_cv_func_shl_load=yes
16784else
16785 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016786sed 's/^/| /' conftest.$ac_ext >&5
16787
Reid Spencera773bd52006-08-04 18:18:08 +000016788 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016789fi
Reid Spencera773bd52006-08-04 18:18:08 +000016790
16791rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016792 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016793fi
Reid Spencera773bd52006-08-04 18:18:08 +000016794{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16795echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016796if test $ac_cv_func_shl_load = yes; then
16797 lt_cv_dlopen="shl_load"
16798else
Reid Spencera773bd52006-08-04 18:18:08 +000016799 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16800echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016801if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16803else
16804 ac_check_lib_save_LIBS=$LIBS
16805LIBS="-ldld $LIBS"
16806cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016812
Reid Spencera773bd52006-08-04 18:18:08 +000016813/* Override any GCC internal prototype to avoid an error.
16814 Use char because int might match the return type of a GCC
16815 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016816#ifdef __cplusplus
16817extern "C"
16818#endif
John Criswell7a73b802003-06-30 21:59:07 +000016819char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016820int
16821main ()
16822{
Reid Spencera773bd52006-08-04 18:18:08 +000016823return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016824 ;
16825 return 0;
16826}
16827_ACEOF
16828rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016829if { (ac_try="$ac_link"
16830case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833esac
16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016836 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846esac
16847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_cv_lib_dld_shl_load=yes
16863else
16864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016865sed 's/^/| /' conftest.$ac_ext >&5
16866
Reid Spencera773bd52006-08-04 18:18:08 +000016867 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016868fi
Reid Spencera773bd52006-08-04 18:18:08 +000016869
16870rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016871 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016872LIBS=$ac_check_lib_save_LIBS
16873fi
Reid Spencera773bd52006-08-04 18:18:08 +000016874{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16875echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016876if test $ac_cv_lib_dld_shl_load = yes; then
16877 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16878else
Reid Spencera773bd52006-08-04 18:18:08 +000016879 { echo "$as_me:$LINENO: checking for dlopen" >&5
16880echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016881if test "${ac_cv_func_dlopen+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883else
16884 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016890/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892#define dlopen innocuous_dlopen
16893
John Criswell7a73b802003-06-30 21:59:07 +000016894/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016895 which can conflict with char dlopen (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016898
John Criswell0c38eaf2003-09-10 15:17:25 +000016899#ifdef __STDC__
16900# include <limits.h>
16901#else
16902# include <assert.h>
16903#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016904
16905#undef dlopen
16906
Reid Spencera773bd52006-08-04 18:18:08 +000016907/* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016910#ifdef __cplusplus
16911extern "C"
16912#endif
John Criswell7a73b802003-06-30 21:59:07 +000016913char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016914/* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016917#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016918choke me
John Criswell7a73b802003-06-30 21:59:07 +000016919#endif
16920
John Criswell0c38eaf2003-09-10 15:17:25 +000016921int
16922main ()
16923{
Reid Spencera773bd52006-08-04 18:18:08 +000016924return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016925 ;
16926 return 0;
16927}
16928_ACEOF
16929rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016930if { (ac_try="$ac_link"
16931case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934esac
16935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016937 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947esac
16948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957esac
16958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_cv_func_dlopen=yes
16964else
16965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016966sed 's/^/| /' conftest.$ac_ext >&5
16967
Reid Spencera773bd52006-08-04 18:18:08 +000016968 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016969fi
Reid Spencera773bd52006-08-04 18:18:08 +000016970
16971rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016972 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016973fi
Reid Spencera773bd52006-08-04 18:18:08 +000016974{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16975echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016976if test $ac_cv_func_dlopen = yes; then
16977 lt_cv_dlopen="dlopen"
16978else
Reid Spencera773bd52006-08-04 18:18:08 +000016979 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16980echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016981if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16983else
16984 ac_check_lib_save_LIBS=$LIBS
16985LIBS="-ldl $LIBS"
16986cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016987/* confdefs.h. */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016992
Reid Spencera773bd52006-08-04 18:18:08 +000016993/* Override any GCC internal prototype to avoid an error.
16994 Use char because int might match the return type of a GCC
16995 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016996#ifdef __cplusplus
16997extern "C"
16998#endif
John Criswell7a73b802003-06-30 21:59:07 +000016999char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017000int
17001main ()
17002{
Reid Spencera773bd52006-08-04 18:18:08 +000017003return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017004 ;
17005 return 0;
17006}
17007_ACEOF
17008rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017009if { (ac_try="$ac_link"
17010case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013esac
17014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017016 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000017022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026esac
17027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } &&
17032 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000017033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036esac
17037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000017039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 ac_cv_lib_dl_dlopen=yes
17043else
17044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017045sed 's/^/| /' conftest.$ac_ext >&5
17046
Reid Spencera773bd52006-08-04 18:18:08 +000017047 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017048fi
Reid Spencera773bd52006-08-04 18:18:08 +000017049
17050rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017051 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017052LIBS=$ac_check_lib_save_LIBS
17053fi
Reid Spencera773bd52006-08-04 18:18:08 +000017054{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17055echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017056if test $ac_cv_lib_dl_dlopen = yes; then
17057 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17058else
Reid Spencera773bd52006-08-04 18:18:08 +000017059 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17060echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017061if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063else
17064 ac_check_lib_save_LIBS=$LIBS
17065LIBS="-lsvld $LIBS"
17066cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017067/* confdefs.h. */
17068_ACEOF
17069cat confdefs.h >>conftest.$ac_ext
17070cat >>conftest.$ac_ext <<_ACEOF
17071/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017072
Reid Spencera773bd52006-08-04 18:18:08 +000017073/* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017076#ifdef __cplusplus
17077extern "C"
17078#endif
John Criswell7a73b802003-06-30 21:59:07 +000017079char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017080int
17081main ()
17082{
Reid Spencera773bd52006-08-04 18:18:08 +000017083return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017084 ;
17085 return 0;
17086}
17087_ACEOF
17088rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017089if { (ac_try="$ac_link"
17090case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093esac
17094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000017102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17103 { (case "(($ac_try" in
17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17106esac
17107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; } &&
17112 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000017113 { (case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17116esac
17117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000017119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_cv_lib_svld_dlopen=yes
17123else
17124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017125sed 's/^/| /' conftest.$ac_ext >&5
17126
Reid Spencera773bd52006-08-04 18:18:08 +000017127 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017128fi
Reid Spencera773bd52006-08-04 18:18:08 +000017129
17130rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017131 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017132LIBS=$ac_check_lib_save_LIBS
17133fi
Reid Spencera773bd52006-08-04 18:18:08 +000017134{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17135echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017136if test $ac_cv_lib_svld_dlopen = yes; then
17137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17138else
Reid Spencera773bd52006-08-04 18:18:08 +000017139 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17140echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017141if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17143else
17144 ac_check_lib_save_LIBS=$LIBS
17145LIBS="-ldld $LIBS"
17146cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017147/* confdefs.h. */
17148_ACEOF
17149cat confdefs.h >>conftest.$ac_ext
17150cat >>conftest.$ac_ext <<_ACEOF
17151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017152
Reid Spencera773bd52006-08-04 18:18:08 +000017153/* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017156#ifdef __cplusplus
17157extern "C"
17158#endif
John Criswell7a73b802003-06-30 21:59:07 +000017159char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017160int
17161main ()
17162{
Reid Spencera773bd52006-08-04 18:18:08 +000017163return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017164 ;
17165 return 0;
17166}
17167_ACEOF
17168rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017169if { (ac_try="$ac_link"
17170case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17173esac
17174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017176 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000017182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000017193 { (case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196esac
17197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000017199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_cv_lib_dld_dld_link=yes
17203else
17204 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017205sed 's/^/| /' conftest.$ac_ext >&5
17206
Reid Spencera773bd52006-08-04 18:18:08 +000017207 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017208fi
Reid Spencera773bd52006-08-04 18:18:08 +000017209
17210rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017211 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017212LIBS=$ac_check_lib_save_LIBS
17213fi
Reid Spencera773bd52006-08-04 18:18:08 +000017214{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17215echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017216if test $ac_cv_lib_dld_dld_link = yes; then
17217 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17218fi
17219
17220
17221fi
17222
17223
17224fi
17225
17226
17227fi
17228
17229
17230fi
17231
17232
17233fi
17234
17235 ;;
17236 esac
17237
17238 if test "x$lt_cv_dlopen" != xno; then
17239 enable_dlopen=yes
17240 else
17241 enable_dlopen=no
17242 fi
17243
17244 case $lt_cv_dlopen in
17245 dlopen)
17246 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017247 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017248
17249 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017250 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017251
17252 save_LIBS="$LIBS"
17253 LIBS="$lt_cv_dlopen_libs $LIBS"
17254
Reid Spencera773bd52006-08-04 18:18:08 +000017255 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17256echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017257if test "${lt_cv_dlopen_self+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259else
17260 if test "$cross_compiling" = yes; then :
17261 lt_cv_dlopen_self=cross
17262else
John Criswell47fdd832003-07-14 16:52:07 +000017263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017264 lt_status=$lt_dlunknown
17265 cat > conftest.$ac_ext <<EOF
Devang Patel5d28b882007-12-04 22:54:47 +000017266#line 17266 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017267#include "confdefs.h"
17268
17269#if HAVE_DLFCN_H
17270#include <dlfcn.h>
17271#endif
17272
17273#include <stdio.h>
17274
17275#ifdef RTLD_GLOBAL
17276# define LT_DLGLOBAL RTLD_GLOBAL
17277#else
17278# ifdef DL_GLOBAL
17279# define LT_DLGLOBAL DL_GLOBAL
17280# else
17281# define LT_DLGLOBAL 0
17282# endif
17283#endif
17284
17285/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17286 find out it does not work in some platform. */
17287#ifndef LT_DLLAZY_OR_NOW
17288# ifdef RTLD_LAZY
17289# define LT_DLLAZY_OR_NOW RTLD_LAZY
17290# else
17291# ifdef DL_LAZY
17292# define LT_DLLAZY_OR_NOW DL_LAZY
17293# else
17294# ifdef RTLD_NOW
17295# define LT_DLLAZY_OR_NOW RTLD_NOW
17296# else
17297# ifdef DL_NOW
17298# define LT_DLLAZY_OR_NOW DL_NOW
17299# else
17300# define LT_DLLAZY_OR_NOW 0
17301# endif
17302# endif
17303# endif
17304# endif
17305#endif
17306
17307#ifdef __cplusplus
17308extern "C" void exit (int);
17309#endif
17310
17311void fnord() { int i=42;}
17312int main ()
17313{
17314 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17315 int status = $lt_dlunknown;
17316
17317 if (self)
17318 {
17319 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17320 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17321 /* dlclose (self); */
17322 }
Reid Spencera773bd52006-08-04 18:18:08 +000017323 else
17324 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017325
17326 exit (status);
17327}
17328EOF
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330 (eval $ac_link) 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017334 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017335 lt_status=$?
17336 case x$lt_status in
17337 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17338 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017339 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017340 esac
17341 else :
17342 # compilation failed
17343 lt_cv_dlopen_self=no
17344 fi
17345fi
17346rm -fr conftest*
17347
17348
17349fi
Reid Spencera773bd52006-08-04 18:18:08 +000017350{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17351echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017352
17353 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017354 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17355 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17356echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017357if test "${lt_cv_dlopen_self_static+set}" = set; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17359else
17360 if test "$cross_compiling" = yes; then :
17361 lt_cv_dlopen_self_static=cross
17362else
John Criswell47fdd832003-07-14 16:52:07 +000017363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017364 lt_status=$lt_dlunknown
17365 cat > conftest.$ac_ext <<EOF
Devang Patel5d28b882007-12-04 22:54:47 +000017366#line 17366 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017367#include "confdefs.h"
17368
17369#if HAVE_DLFCN_H
17370#include <dlfcn.h>
17371#endif
17372
17373#include <stdio.h>
17374
17375#ifdef RTLD_GLOBAL
17376# define LT_DLGLOBAL RTLD_GLOBAL
17377#else
17378# ifdef DL_GLOBAL
17379# define LT_DLGLOBAL DL_GLOBAL
17380# else
17381# define LT_DLGLOBAL 0
17382# endif
17383#endif
17384
17385/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17386 find out it does not work in some platform. */
17387#ifndef LT_DLLAZY_OR_NOW
17388# ifdef RTLD_LAZY
17389# define LT_DLLAZY_OR_NOW RTLD_LAZY
17390# else
17391# ifdef DL_LAZY
17392# define LT_DLLAZY_OR_NOW DL_LAZY
17393# else
17394# ifdef RTLD_NOW
17395# define LT_DLLAZY_OR_NOW RTLD_NOW
17396# else
17397# ifdef DL_NOW
17398# define LT_DLLAZY_OR_NOW DL_NOW
17399# else
17400# define LT_DLLAZY_OR_NOW 0
17401# endif
17402# endif
17403# endif
17404# endif
17405#endif
17406
17407#ifdef __cplusplus
17408extern "C" void exit (int);
17409#endif
17410
17411void fnord() { int i=42;}
17412int main ()
17413{
17414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17415 int status = $lt_dlunknown;
17416
17417 if (self)
17418 {
17419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17420 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17421 /* dlclose (self); */
17422 }
Reid Spencera773bd52006-08-04 18:18:08 +000017423 else
17424 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017425
17426 exit (status);
17427}
17428EOF
17429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17430 (eval $ac_link) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017434 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017435 lt_status=$?
17436 case x$lt_status in
17437 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17438 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017439 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017440 esac
17441 else :
17442 # compilation failed
17443 lt_cv_dlopen_self_static=no
17444 fi
17445fi
17446rm -fr conftest*
17447
17448
17449fi
Reid Spencera773bd52006-08-04 18:18:08 +000017450{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17451echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017452 fi
17453
17454 CPPFLAGS="$save_CPPFLAGS"
17455 LDFLAGS="$save_LDFLAGS"
17456 LIBS="$save_LIBS"
17457 ;;
17458 esac
17459
17460 case $lt_cv_dlopen_self in
17461 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17462 *) enable_dlopen_self=unknown ;;
17463 esac
17464
17465 case $lt_cv_dlopen_self_static in
17466 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17467 *) enable_dlopen_self_static=unknown ;;
17468 esac
17469fi
17470
17471
Reid Spencera773bd52006-08-04 18:18:08 +000017472# Report which library types will actually be built
17473{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17474echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17475{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17476echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017477
Reid Spencera773bd52006-08-04 18:18:08 +000017478{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17479echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017480test "$can_build_shared" = "no" && enable_shared=no
17481
17482# On AIX, shared libraries and static libraries use the same namespace, and
17483# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017484case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017485aix3*)
17486 test "$enable_shared" = yes && enable_static=no
17487 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017488 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017489 postinstall_cmds='$RANLIB $lib'
17490 fi
17491 ;;
17492
Reid Spencer2706f8c2004-09-19 23:53:36 +000017493aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017494 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17495 test "$enable_shared" = yes && enable_static=no
17496 fi
John Criswell7a73b802003-06-30 21:59:07 +000017497 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017498esac
Reid Spencera773bd52006-08-04 18:18:08 +000017499{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17500echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017501
Reid Spencera773bd52006-08-04 18:18:08 +000017502{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17503echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017504# Make sure either enable_shared or enable_static is yes.
17505test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017506{ echo "$as_me:$LINENO: result: $enable_static" >&5
17507echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017508
17509# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017510# libtool distribution, otherwise you forgot to ship ltmain.sh
17511# with your package, and you will get complaints that there are
17512# no rules to generate ltmain.sh.
17513if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017514 # See if we are running on zsh, and set the options which allow our commands through
17515 # without removal of \ escapes.
17516 if test -n "${ZSH_VERSION+set}" ; then
17517 setopt NO_GLOB_SUBST
17518 fi
John Criswell7a73b802003-06-30 21:59:07 +000017519 # Now quote all the things that may contain metacharacters while being
17520 # careful not to overquote the AC_SUBSTed values. We take copies of the
17521 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017522 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 +000017523 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017524 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17525 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17526 deplibs_check_method reload_flag reload_cmds need_locks \
17527 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17528 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017529 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017530 old_postinstall_cmds old_postuninstall_cmds \
17531 compiler \
17532 CC \
17533 LD \
17534 lt_prog_compiler_wl \
17535 lt_prog_compiler_pic \
17536 lt_prog_compiler_static \
17537 lt_prog_compiler_no_builtin_flag \
17538 export_dynamic_flag_spec \
17539 thread_safe_flag_spec \
17540 whole_archive_flag_spec \
17541 enable_shared_with_static_runtimes \
17542 old_archive_cmds \
17543 old_archive_from_new_cmds \
17544 predep_objects \
17545 postdep_objects \
17546 predeps \
17547 postdeps \
17548 compiler_lib_search_path \
17549 archive_cmds \
17550 archive_expsym_cmds \
17551 postinstall_cmds \
17552 postuninstall_cmds \
17553 old_archive_from_expsyms_cmds \
17554 allow_undefined_flag \
17555 no_undefined_flag \
17556 export_symbols_cmds \
17557 hardcode_libdir_flag_spec \
17558 hardcode_libdir_flag_spec_ld \
17559 hardcode_libdir_separator \
17560 hardcode_automatic \
17561 module_cmds \
17562 module_expsym_cmds \
17563 lt_cv_prog_compiler_c_o \
17564 exclude_expsyms \
17565 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017566
17567 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017568 old_archive_cmds | \
17569 old_archive_from_new_cmds | \
17570 archive_cmds | \
17571 archive_expsym_cmds | \
17572 module_cmds | \
17573 module_expsym_cmds | \
17574 old_archive_from_expsyms_cmds | \
17575 export_symbols_cmds | \
17576 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017577 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017578 old_postinstall_cmds | old_postuninstall_cmds | \
17579 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017580 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017581 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 +000017582 ;;
17583 *)
17584 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17585 ;;
17586 esac
17587 done
17588
John Criswell47fdd832003-07-14 16:52:07 +000017589 case $lt_echo in
17590 *'\$0 --fallback-echo"')
17591 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17592 ;;
17593 esac
17594
17595cfgfile="${ofile}T"
17596 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17597 $rm -f "$cfgfile"
17598 { echo "$as_me:$LINENO: creating $ofile" >&5
17599echo "$as_me: creating $ofile" >&6;}
17600
17601 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017602#! $SHELL
17603
John Criswell47fdd832003-07-14 16:52:07 +000017604# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017605# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17606# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17607#
John Criswell47fdd832003-07-14 16:52:07 +000017608# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17609# Free Software Foundation, Inc.
17610#
17611# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017612# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17613#
17614# This program is free software; you can redistribute it and/or modify
17615# it under the terms of the GNU General Public License as published by
17616# the Free Software Foundation; either version 2 of the License, or
17617# (at your option) any later version.
17618#
17619# This program is distributed in the hope that it will be useful, but
17620# WITHOUT ANY WARRANTY; without even the implied warranty of
17621# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17622# General Public License for more details.
17623#
17624# You should have received a copy of the GNU General Public License
17625# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017626# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017627#
17628# As a special exception to the GNU General Public License, if you
17629# distribute this file as part of a program that contains a
17630# configuration script generated by Autoconf, you may include it under
17631# the same distribution terms that you use for the rest of that program.
17632
John Criswell47fdd832003-07-14 16:52:07 +000017633# A sed program that does not truncate output.
17634SED=$lt_SED
17635
John Criswell7a73b802003-06-30 21:59:07 +000017636# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017637Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017638
17639# The HP-UX ksh and POSIX shell print the target directory to stdout
17640# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017641(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017642
John Criswell47fdd832003-07-14 16:52:07 +000017643# The names of the tagged configurations supported by this script.
17644available_tags=
17645
John Criswell7a73b802003-06-30 21:59:07 +000017646# ### BEGIN LIBTOOL CONFIG
17647
17648# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17649
17650# Shell to use when invoking shell scripts.
17651SHELL=$lt_SHELL
17652
17653# Whether or not to build shared libraries.
17654build_libtool_libs=$enable_shared
17655
17656# Whether or not to build static libraries.
17657build_old_libs=$enable_static
17658
17659# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017660build_libtool_need_lc=$archive_cmds_need_lc
17661
17662# Whether or not to disallow shared libs when runtime libs are static
17663allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017664
17665# Whether or not to optimize for fast installation.
17666fast_install=$enable_fast_install
17667
17668# The host system.
17669host_alias=$host_alias
17670host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017671host_os=$host_os
17672
17673# The build system.
17674build_alias=$build_alias
17675build=$build
17676build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017677
17678# An echo program that does not interpret backslashes.
17679echo=$lt_echo
17680
17681# The archiver.
17682AR=$lt_AR
17683AR_FLAGS=$lt_AR_FLAGS
17684
John Criswell47fdd832003-07-14 16:52:07 +000017685# A C compiler.
17686LTCC=$lt_LTCC
17687
Reid Spencera773bd52006-08-04 18:18:08 +000017688# LTCC compiler flags.
17689LTCFLAGS=$lt_LTCFLAGS
17690
John Criswell47fdd832003-07-14 16:52:07 +000017691# A language-specific compiler.
17692CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017693
17694# Is the compiler the GNU C compiler?
17695with_gcc=$GCC
17696
John Criswell47fdd832003-07-14 16:52:07 +000017697# An ERE matcher.
17698EGREP=$lt_EGREP
17699
John Criswell7a73b802003-06-30 21:59:07 +000017700# The linker used to build libraries.
17701LD=$lt_LD
17702
17703# Whether we need hard or soft links.
17704LN_S=$lt_LN_S
17705
17706# A BSD-compatible nm program.
17707NM=$lt_NM
17708
17709# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017710STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017711
17712# Used to examine libraries when file_magic_cmd begins "file"
17713MAGIC_CMD=$MAGIC_CMD
17714
17715# Used on cygwin: DLL creation program.
17716DLLTOOL="$DLLTOOL"
17717
17718# Used on cygwin: object dumper.
17719OBJDUMP="$OBJDUMP"
17720
17721# Used on cygwin: assembler.
17722AS="$AS"
17723
17724# The name of the directory that contains temporary libtool files.
17725objdir=$objdir
17726
17727# How to create reloadable object files.
17728reload_flag=$lt_reload_flag
17729reload_cmds=$lt_reload_cmds
17730
17731# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017732wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017733
17734# Object file suffix (normally "o").
17735objext="$ac_objext"
17736
17737# Old archive suffix (normally "a").
17738libext="$libext"
17739
John Criswell47fdd832003-07-14 16:52:07 +000017740# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017741shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017742
John Criswell7a73b802003-06-30 21:59:07 +000017743# Executable file suffix (normally "").
17744exeext="$exeext"
17745
17746# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017747pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017748pic_mode=$pic_mode
17749
John Criswell47fdd832003-07-14 16:52:07 +000017750# What is the maximum length of a command?
17751max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017752
John Criswell47fdd832003-07-14 16:52:07 +000017753# Does compiler simultaneously support -c and -o options?
17754compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017755
Reid Spencera773bd52006-08-04 18:18:08 +000017756# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017757need_locks=$lt_need_locks
17758
17759# Do we need the lib prefix for modules?
17760need_lib_prefix=$need_lib_prefix
17761
17762# Do we need a version for libraries?
17763need_version=$need_version
17764
17765# Whether dlopen is supported.
17766dlopen_support=$enable_dlopen
17767
17768# Whether dlopen of programs is supported.
17769dlopen_self=$enable_dlopen_self
17770
17771# Whether dlopen of statically linked programs is supported.
17772dlopen_self_static=$enable_dlopen_self_static
17773
17774# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017775link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017776
17777# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017778no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017779
17780# Compiler flag to allow reflexive dlopens.
17781export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17782
17783# Compiler flag to generate shared objects directly from archives.
17784whole_archive_flag_spec=$lt_whole_archive_flag_spec
17785
17786# Compiler flag to generate thread-safe objects.
17787thread_safe_flag_spec=$lt_thread_safe_flag_spec
17788
17789# Library versioning type.
17790version_type=$version_type
17791
17792# Format of library name prefix.
17793libname_spec=$lt_libname_spec
17794
17795# List of archive names. First name is the real one, the rest are links.
17796# The last name is the one that the linker finds with -lNAME.
17797library_names_spec=$lt_library_names_spec
17798
17799# The coded name of the library, if different from the real name.
17800soname_spec=$lt_soname_spec
17801
17802# Commands used to build and install an old-style archive.
17803RANLIB=$lt_RANLIB
17804old_archive_cmds=$lt_old_archive_cmds
17805old_postinstall_cmds=$lt_old_postinstall_cmds
17806old_postuninstall_cmds=$lt_old_postuninstall_cmds
17807
17808# Create an old-style archive from a shared archive.
17809old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17810
17811# Create a temporary old-style archive to link instead of a shared archive.
17812old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17813
17814# Commands used to build and install a shared archive.
17815archive_cmds=$lt_archive_cmds
17816archive_expsym_cmds=$lt_archive_expsym_cmds
17817postinstall_cmds=$lt_postinstall_cmds
17818postuninstall_cmds=$lt_postuninstall_cmds
17819
John Criswell47fdd832003-07-14 16:52:07 +000017820# Commands used to build a loadable module (assumed same as above if empty)
17821module_cmds=$lt_module_cmds
17822module_expsym_cmds=$lt_module_expsym_cmds
17823
John Criswell7a73b802003-06-30 21:59:07 +000017824# Commands to strip libraries.
17825old_striplib=$lt_old_striplib
17826striplib=$lt_striplib
17827
John Criswell47fdd832003-07-14 16:52:07 +000017828# Dependencies to place before the objects being linked to create a
17829# shared library.
17830predep_objects=$lt_predep_objects
17831
17832# Dependencies to place after the objects being linked to create a
17833# shared library.
17834postdep_objects=$lt_postdep_objects
17835
17836# Dependencies to place before the objects being linked to create a
17837# shared library.
17838predeps=$lt_predeps
17839
17840# Dependencies to place after the objects being linked to create a
17841# shared library.
17842postdeps=$lt_postdeps
17843
17844# The library search path used internally by the compiler when linking
17845# a shared library.
17846compiler_lib_search_path=$lt_compiler_lib_search_path
17847
John Criswell7a73b802003-06-30 21:59:07 +000017848# Method to check whether dependent libraries are shared objects.
17849deplibs_check_method=$lt_deplibs_check_method
17850
17851# Command to use when deplibs_check_method == file_magic.
17852file_magic_cmd=$lt_file_magic_cmd
17853
17854# Flag that allows shared libraries with undefined symbols to be built.
17855allow_undefined_flag=$lt_allow_undefined_flag
17856
17857# Flag that forces no undefined symbols.
17858no_undefined_flag=$lt_no_undefined_flag
17859
17860# Commands used to finish a libtool library installation in a directory.
17861finish_cmds=$lt_finish_cmds
17862
17863# Same as above, but a single script fragment to be evaled but not shown.
17864finish_eval=$lt_finish_eval
17865
17866# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017867global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017868
17869# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017870global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017871
17872# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017873global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017874
17875# This is the shared library runtime path variable.
17876runpath_var=$runpath_var
17877
17878# This is the shared library path variable.
17879shlibpath_var=$shlibpath_var
17880
17881# Is shlibpath searched before the hard-coded library search path?
17882shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17883
17884# How to hardcode a shared library path into an executable.
17885hardcode_action=$hardcode_action
17886
17887# Whether we should hardcode library paths into libraries.
17888hardcode_into_libs=$hardcode_into_libs
17889
17890# Flag to hardcode \$libdir into a binary during linking.
17891# This must work even if \$libdir does not exist.
17892hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17893
John Criswell47fdd832003-07-14 16:52:07 +000017894# If ld is used when linking, flag to hardcode \$libdir into
17895# a binary during linking. This must work even if \$libdir does
17896# not exist.
17897hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17898
John Criswell7a73b802003-06-30 21:59:07 +000017899# Whether we need a single -rpath flag with a separated argument.
17900hardcode_libdir_separator=$lt_hardcode_libdir_separator
17901
John Criswell47fdd832003-07-14 16:52:07 +000017902# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017903# resulting binary.
17904hardcode_direct=$hardcode_direct
17905
17906# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17907# resulting binary.
17908hardcode_minus_L=$hardcode_minus_L
17909
17910# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17911# the resulting binary.
17912hardcode_shlibpath_var=$hardcode_shlibpath_var
17913
John Criswell47fdd832003-07-14 16:52:07 +000017914# Set to yes if building a shared library automatically hardcodes DIR into the library
17915# and all subsequent libraries and executables linked against it.
17916hardcode_automatic=$hardcode_automatic
17917
John Criswell7a73b802003-06-30 21:59:07 +000017918# Variables whose values should be saved in libtool wrapper scripts and
17919# restored at relink time.
17920variables_saved_for_relink="$variables_saved_for_relink"
17921
17922# Whether libtool must link a program against all its dependency libraries.
17923link_all_deplibs=$link_all_deplibs
17924
17925# Compile-time system search path for libraries
17926sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17927
17928# Run-time system search path for libraries
17929sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17930
17931# Fix the shell variable \$srcfile for the compiler.
17932fix_srcfile_path="$fix_srcfile_path"
17933
17934# Set to yes if exported symbols are required.
17935always_export_symbols=$always_export_symbols
17936
17937# The commands to list exported symbols.
17938export_symbols_cmds=$lt_export_symbols_cmds
17939
17940# The commands to extract the exported symbol list from a shared archive.
17941extract_expsyms_cmds=$lt_extract_expsyms_cmds
17942
17943# Symbols that should not be listed in the preloaded symbols.
17944exclude_expsyms=$lt_exclude_expsyms
17945
17946# Symbols that must always be exported.
17947include_expsyms=$lt_include_expsyms
17948
17949# ### END LIBTOOL CONFIG
17950
17951__EOF__
17952
John Criswell47fdd832003-07-14 16:52:07 +000017953
John Criswell7a73b802003-06-30 21:59:07 +000017954 case $host_os in
17955 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017956 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017957
17958# AIX sometimes has problems with the GCC collect2 program. For some
17959# reason, if we set the COLLECT_NAMES environment variable, the problems
17960# vanish in a puff of smoke.
17961if test "X${COLLECT_NAMES+set}" != Xset; then
17962 COLLECT_NAMES=
17963 export COLLECT_NAMES
17964fi
17965EOF
17966 ;;
17967 esac
17968
John Criswell7a73b802003-06-30 21:59:07 +000017969 # We use sed instead of cat because bash on DJGPP gets confused if
17970 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17971 # text mode, it properly converts lines to CR/LF. This bash problem
17972 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017973 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017974
John Criswell47fdd832003-07-14 16:52:07 +000017975 mv -f "$cfgfile" "$ofile" || \
17976 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017977 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017978
17979else
17980 # If there is no Makefile yet, we rely on a make rule to execute
17981 # `config.status --recheck' to rerun these tests and create the
17982 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017983 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17984 if test -f "$ltmain_in"; then
17985 test -f Makefile && make "$ltmain"
17986 fi
John Criswell7a73b802003-06-30 21:59:07 +000017987fi
John Criswell7a73b802003-06-30 21:59:07 +000017988
17989
John Criswell47fdd832003-07-14 16:52:07 +000017990ac_ext=c
17991ac_cpp='$CPP $CPPFLAGS'
17992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17994ac_compiler_gnu=$ac_cv_c_compiler_gnu
17995
17996CC="$lt_save_CC"
17997
17998
Reid Spencera773bd52006-08-04 18:18:08 +000017999# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018000if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018001 withval=$with_tags; tagnames="$withval"
18002fi
18003
John Criswell47fdd832003-07-14 16:52:07 +000018004
18005if test -f "$ltmain" && test -n "$tagnames"; then
18006 if test ! -f "${ofile}"; then
18007 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18008echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18009 fi
18010
18011 if test -z "$LTCC"; then
18012 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18013 if test -z "$LTCC"; then
18014 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18015echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18016 else
18017 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18018echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18019 fi
18020 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018021 if test -z "$LTCFLAGS"; then
18022 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18023 fi
John Criswell47fdd832003-07-14 16:52:07 +000018024
18025 # Extract list of available tagged configurations in $ofile.
18026 # Note that this assumes the entire list is on one line.
18027 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18028
18029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18030 for tagname in $tagnames; do
18031 IFS="$lt_save_ifs"
18032 # Check whether tagname contains only valid characters
18033 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18034 "") ;;
18035 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18036echo "$as_me: error: invalid tag name: $tagname" >&2;}
18037 { (exit 1); exit 1; }; }
18038 ;;
18039 esac
18040
18041 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18042 then
18043 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18044echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18045 { (exit 1); exit 1; }; }
18046 fi
18047
18048 # Update the list of available tags.
18049 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018050 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018051
18052 case $tagname in
18053 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018054 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18055 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18056 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018057 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018058ac_cpp='$CXXCPP $CPPFLAGS'
18059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18062
18063
18064
18065
18066archive_cmds_need_lc_CXX=no
18067allow_undefined_flag_CXX=
18068always_export_symbols_CXX=no
18069archive_expsym_cmds_CXX=
18070export_dynamic_flag_spec_CXX=
18071hardcode_direct_CXX=no
18072hardcode_libdir_flag_spec_CXX=
18073hardcode_libdir_flag_spec_ld_CXX=
18074hardcode_libdir_separator_CXX=
18075hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018076hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018077hardcode_automatic_CXX=no
18078module_cmds_CXX=
18079module_expsym_cmds_CXX=
18080link_all_deplibs_CXX=unknown
18081old_archive_cmds_CXX=$old_archive_cmds
18082no_undefined_flag_CXX=
18083whole_archive_flag_spec_CXX=
18084enable_shared_with_static_runtimes_CXX=no
18085
18086# Dependencies to place before and after the object being linked:
18087predep_objects_CXX=
18088postdep_objects_CXX=
18089predeps_CXX=
18090postdeps_CXX=
18091compiler_lib_search_path_CXX=
18092
18093# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018094ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018095
18096# Object file extension for compiled C++ test sources.
18097objext=o
18098objext_CXX=$objext
18099
18100# Code to be used in simple compile tests
18101lt_simple_compile_test_code="int some_variable = 0;\n"
18102
18103# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018104lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018105
18106# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18107
18108# If no C compiler was specified, use CC.
18109LTCC=${LTCC-"$CC"}
18110
Reid Spencera773bd52006-08-04 18:18:08 +000018111# If no C compiler flags were specified, use CFLAGS.
18112LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18113
John Criswell47fdd832003-07-14 16:52:07 +000018114# Allow CC to be a program name with arguments.
18115compiler=$CC
18116
18117
Reid Spencera773bd52006-08-04 18:18:08 +000018118# save warnings/boilerplate of simple test code
18119ac_outfile=conftest.$ac_objext
18120printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18121eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18122_lt_compiler_boilerplate=`cat conftest.err`
18123$rm conftest*
18124
18125ac_outfile=conftest.$ac_objext
18126printf "$lt_simple_link_test_code" >conftest.$ac_ext
18127eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18128_lt_linker_boilerplate=`cat conftest.err`
18129$rm conftest*
18130
18131
John Criswell47fdd832003-07-14 16:52:07 +000018132# Allow CC to be a program name with arguments.
18133lt_save_CC=$CC
18134lt_save_LD=$LD
18135lt_save_GCC=$GCC
18136GCC=$GXX
18137lt_save_with_gnu_ld=$with_gnu_ld
18138lt_save_path_LD=$lt_cv_path_LD
18139if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18140 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18141else
Reid Spencera773bd52006-08-04 18:18:08 +000018142 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018143fi
18144if test -n "${lt_cv_path_LDCXX+set}"; then
18145 lt_cv_path_LD=$lt_cv_path_LDCXX
18146else
Reid Spencera773bd52006-08-04 18:18:08 +000018147 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018148fi
18149test -z "${LDCXX+set}" || LD=$LDCXX
18150CC=${CXX-"c++"}
18151compiler=$CC
18152compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018153for cc_temp in $compiler""; do
18154 case $cc_temp in
18155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18157 \-*) ;;
18158 *) break;;
18159 esac
18160done
18161cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18162
John Criswell47fdd832003-07-14 16:52:07 +000018163
18164# We don't want -fno-exception wen compiling C++ code, so set the
18165# no_builtin_flag separately
18166if test "$GXX" = yes; then
18167 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18168else
18169 lt_prog_compiler_no_builtin_flag_CXX=
18170fi
18171
18172if test "$GXX" = yes; then
18173 # Set up default GNU C++ configuration
18174
18175
Reid Spencera773bd52006-08-04 18:18:08 +000018176# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018177if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018179else
18180 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018181fi
18182
John Criswell47fdd832003-07-14 16:52:07 +000018183ac_prog=ld
18184if test "$GCC" = yes; then
18185 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018186 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18187echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018188 case $host in
18189 *-*-mingw*)
18190 # gcc leaves a trailing carriage return which upsets mingw
18191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18192 *)
18193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18194 esac
18195 case $ac_prog in
18196 # Accept absolute paths.
18197 [\\/]* | ?:[\\/]*)
18198 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018199 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018200 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18201 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18202 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18203 done
18204 test -z "$LD" && LD="$ac_prog"
18205 ;;
18206 "")
18207 # If it fails, then pretend we aren't using GCC.
18208 ac_prog=ld
18209 ;;
18210 *)
18211 # If it is relative, then search for the first ld in PATH.
18212 with_gnu_ld=unknown
18213 ;;
18214 esac
18215elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018216 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18217echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018218else
Reid Spencera773bd52006-08-04 18:18:08 +000018219 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18220echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018221fi
18222if test "${lt_cv_path_LD+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225 if test -z "$LD"; then
18226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18227 for ac_dir in $PATH; do
18228 IFS="$lt_save_ifs"
18229 test -z "$ac_dir" && ac_dir=.
18230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18231 lt_cv_path_LD="$ac_dir/$ac_prog"
18232 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018233 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018234 # Break only if it was the GNU/non-GNU ld that we prefer.
18235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18236 *GNU* | *'with BFD'*)
18237 test "$with_gnu_ld" != no && break
18238 ;;
18239 *)
18240 test "$with_gnu_ld" != yes && break
18241 ;;
18242 esac
18243 fi
18244 done
18245 IFS="$lt_save_ifs"
18246else
18247 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18248fi
18249fi
18250
18251LD="$lt_cv_path_LD"
18252if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018253 { echo "$as_me:$LINENO: result: $LD" >&5
18254echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018255else
Reid Spencera773bd52006-08-04 18:18:08 +000018256 { echo "$as_me:$LINENO: result: no" >&5
18257echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018258fi
18259test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18260echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18261 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018262{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18263echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018264if test "${lt_cv_prog_gnu_ld+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18266else
Reid Spencera773bd52006-08-04 18:18:08 +000018267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018268case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018269*GNU* | *'with BFD'*)
18270 lt_cv_prog_gnu_ld=yes
18271 ;;
18272*)
18273 lt_cv_prog_gnu_ld=no
18274 ;;
18275esac
18276fi
Reid Spencera773bd52006-08-04 18:18:08 +000018277{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18278echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018279with_gnu_ld=$lt_cv_prog_gnu_ld
18280
18281
18282
18283 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18284 # archiving commands below assume that GNU ld is being used.
18285 if test "$with_gnu_ld" = yes; then
18286 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18287 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'
18288
18289 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18290 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18291
18292 # If archive_cmds runs LD, not CC, wlarc should be empty
18293 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18294 # investigate it a little bit more. (MM)
18295 wlarc='${wl}'
18296
18297 # ancient GNU ld didn't support --whole-archive et. al.
18298 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18299 grep 'no-whole-archive' > /dev/null; then
18300 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18301 else
18302 whole_archive_flag_spec_CXX=
18303 fi
18304 else
18305 with_gnu_ld=no
18306 wlarc=
18307
18308 # A generic and very simple default shared library creation
18309 # command for GNU C++ for the case where it uses the native
18310 # linker, instead of GNU ld. If possible, this setting should
18311 # overridden to take advantage of the native linker features on
18312 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018313 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018314 fi
18315
18316 # Commands to make compiler produce verbose output that lists
18317 # what "hidden" libraries, object files and flags are used when
18318 # linking a shared library.
18319 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18320
18321else
18322 GXX=no
18323 with_gnu_ld=no
18324 wlarc=
18325fi
18326
18327# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018328{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18329echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018330ld_shlibs_CXX=yes
18331case $host_os in
18332 aix3*)
18333 # FIXME: insert proper C++ library support
18334 ld_shlibs_CXX=no
18335 ;;
18336 aix4* | aix5*)
18337 if test "$host_cpu" = ia64; then
18338 # On IA64, the linker does run time linking by default, so we don't
18339 # have to do anything special.
18340 aix_use_runtimelinking=no
18341 exp_sym_flag='-Bexport'
18342 no_entry_flag=""
18343 else
18344 aix_use_runtimelinking=no
18345
18346 # Test if we are trying to use run time linking or normal
18347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18348 # need to do runtime linking.
18349 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18350 for ld_flag in $LDFLAGS; do
18351 case $ld_flag in
18352 *-brtl*)
18353 aix_use_runtimelinking=yes
18354 break
18355 ;;
18356 esac
18357 done
Reid Spencera773bd52006-08-04 18:18:08 +000018358 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018359 esac
18360
18361 exp_sym_flag='-bexport'
18362 no_entry_flag='-bnoentry'
18363 fi
18364
18365 # When large executables or shared objects are built, AIX ld can
18366 # have problems creating the table of contents. If linking a library
18367 # or program results in "error TOC overflow" add -mminimal-toc to
18368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18370
18371 archive_cmds_CXX=''
18372 hardcode_direct_CXX=yes
18373 hardcode_libdir_separator_CXX=':'
18374 link_all_deplibs_CXX=yes
18375
18376 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018377 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018378 # We only want to do this on AIX 4.2 and lower, the check
18379 # below for broken collect2 doesn't work under 4.3+
18380 collect2name=`${CC} -print-prog-name=collect2`
18381 if test -f "$collect2name" && \
18382 strings "$collect2name" | grep resolve_lib_name >/dev/null
18383 then
18384 # We have reworked collect2
18385 hardcode_direct_CXX=yes
18386 else
18387 # We have old collect2
18388 hardcode_direct_CXX=unsupported
18389 # It fails to find uninstalled libraries when the uninstalled
18390 # path is not listed in the libpath. Setting hardcode_minus_L
18391 # to unsupported forces relinking
18392 hardcode_minus_L_CXX=yes
18393 hardcode_libdir_flag_spec_CXX='-L$libdir'
18394 hardcode_libdir_separator_CXX=
18395 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018396 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018397 esac
18398 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018399 if test "$aix_use_runtimelinking" = yes; then
18400 shared_flag="$shared_flag "'${wl}-G'
18401 fi
John Criswell47fdd832003-07-14 16:52:07 +000018402 else
18403 # not using gcc
18404 if test "$host_cpu" = ia64; then
18405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18406 # chokes on -Wl,-G. The following line is correct:
18407 shared_flag='-G'
18408 else
18409 if test "$aix_use_runtimelinking" = yes; then
18410 shared_flag='${wl}-G'
18411 else
18412 shared_flag='${wl}-bM:SRE'
18413 fi
18414 fi
18415 fi
18416
18417 # It seems that -bexpall does not export symbols beginning with
18418 # underscore (_), so it is better to generate a list of symbols to export.
18419 always_export_symbols_CXX=yes
18420 if test "$aix_use_runtimelinking" = yes; then
18421 # Warning - without using the other runtime loading flags (-brtl),
18422 # -berok will link without error, but may produce a broken library.
18423 allow_undefined_flag_CXX='-berok'
18424 # Determine the default libpath from the value encoded in an empty executable.
18425 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018426/* confdefs.h. */
18427_ACEOF
18428cat confdefs.h >>conftest.$ac_ext
18429cat >>conftest.$ac_ext <<_ACEOF
18430/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018431
John Criswell47fdd832003-07-14 16:52:07 +000018432int
18433main ()
18434{
18435
18436 ;
18437 return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018441if { (ac_try="$ac_link"
18442case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468esac
18469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474
18475aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18476}'`
18477# Check for a 64-bit object if we didn't find anything.
18478if 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; }
18479}'`; fi
18480else
18481 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018482sed 's/^/| /' conftest.$ac_ext >&5
18483
Reid Spencera773bd52006-08-04 18:18:08 +000018484
John Criswell47fdd832003-07-14 16:52:07 +000018485fi
Reid Spencera773bd52006-08-04 18:18:08 +000018486
18487rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018488 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18490
18491 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18492
Reid Spencera773bd52006-08-04 18:18:08 +000018493 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 +000018494 else
18495 if test "$host_cpu" = ia64; then
18496 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18497 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018498 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 +000018499 else
18500 # Determine the default libpath from the value encoded in an empty executable.
18501 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018502/* confdefs.h. */
18503_ACEOF
18504cat confdefs.h >>conftest.$ac_ext
18505cat >>conftest.$ac_ext <<_ACEOF
18506/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018507
John Criswell47fdd832003-07-14 16:52:07 +000018508int
18509main ()
18510{
18511
18512 ;
18513 return 0;
18514}
18515_ACEOF
18516rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018517if { (ac_try="$ac_link"
18518case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521esac
18522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018524 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18531 { (case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534esac
18535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018541 { (case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18544esac
18545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18550
18551aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18552}'`
18553# Check for a 64-bit object if we didn't find anything.
18554if 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; }
18555}'`; fi
18556else
18557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018558sed 's/^/| /' conftest.$ac_ext >&5
18559
Reid Spencera773bd52006-08-04 18:18:08 +000018560
John Criswell47fdd832003-07-14 16:52:07 +000018561fi
Reid Spencera773bd52006-08-04 18:18:08 +000018562
18563rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018564 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018565if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18566
18567 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18568 # Warning - without using the other run time loading flags,
18569 # -berok will link without error, but may produce a broken library.
18570 no_undefined_flag_CXX=' ${wl}-bernotok'
18571 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018572 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018573 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018574 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018575 # This is similar to how AIX traditionally builds its shared libraries.
18576 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 +000018577 fi
18578 fi
18579 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018580
18581 beos*)
18582 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18583 allow_undefined_flag_CXX=unsupported
18584 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18585 # support --undefined. This deserves some investigation. FIXME
18586 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18587 else
18588 ld_shlibs_CXX=no
18589 fi
18590 ;;
18591
John Criswell47fdd832003-07-14 16:52:07 +000018592 chorus*)
18593 case $cc_basename in
18594 *)
18595 # FIXME: insert proper C++ library support
18596 ld_shlibs_CXX=no
18597 ;;
18598 esac
18599 ;;
18600
18601 cygwin* | mingw* | pw32*)
18602 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18603 # as there is no search path for DLLs.
18604 hardcode_libdir_flag_spec_CXX='-L$libdir'
18605 allow_undefined_flag_CXX=unsupported
18606 always_export_symbols_CXX=no
18607 enable_shared_with_static_runtimes_CXX=yes
18608
18609 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018610 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 +000018611 # If the export-symbols file already is a .def file (1st line
18612 # is EXPORTS), use it as is; otherwise, prepend...
18613 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18614 cp $export_symbols $output_objdir/$soname.def;
18615 else
18616 echo EXPORTS > $output_objdir/$soname.def;
18617 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018618 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018619 $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 +000018620 else
18621 ld_shlibs_CXX=no
18622 fi
18623 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018624 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018625 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018626 rhapsody* | darwin1.[012])
18627 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18628 ;;
18629 *) # Darwin 1.3 on
18630 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18631 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18632 else
18633 case ${MACOSX_DEPLOYMENT_TARGET} in
18634 10.[012])
18635 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18636 ;;
18637 10.*)
18638 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18639 ;;
18640 esac
18641 fi
18642 ;;
18643 esac
18644 archive_cmds_need_lc_CXX=no
18645 hardcode_direct_CXX=no
18646 hardcode_automatic_CXX=yes
18647 hardcode_shlibpath_var_CXX=unsupported
18648 whole_archive_flag_spec_CXX=''
18649 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018650
Reid Spencer2706f8c2004-09-19 23:53:36 +000018651 if test "$GXX" = yes ; then
18652 lt_int_apple_cc_single_mod=no
18653 output_verbose_link_cmd='echo'
18654 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18655 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018656 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018657 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018658 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 +000018659 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018660 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 +000018661 fi
18662 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018663 # 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 +000018664 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018665 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 +000018666 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018667 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 +000018668 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018669 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 +000018670 else
Reid Spencera773bd52006-08-04 18:18:08 +000018671 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018672 xlc*)
18673 output_verbose_link_cmd='echo'
18674 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'
18675 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018676 # 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 +000018677 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}'
18678 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 +000018679 ;;
18680 *)
18681 ld_shlibs_CXX=no
18682 ;;
18683 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018684 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018685 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018686
18687 dgux*)
18688 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018689 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018690 # FIXME: insert proper C++ library support
18691 ld_shlibs_CXX=no
18692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018693 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018694 # Green Hills C++ Compiler
18695 # FIXME: insert proper C++ library support
18696 ld_shlibs_CXX=no
18697 ;;
18698 *)
18699 # FIXME: insert proper C++ library support
18700 ld_shlibs_CXX=no
18701 ;;
18702 esac
18703 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018704 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018705 # C++ shared libraries reported to be fairly broken before switch to ELF
18706 ld_shlibs_CXX=no
18707 ;;
18708 freebsd-elf*)
18709 archive_cmds_need_lc_CXX=no
18710 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018711 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018712 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18713 # conventions
18714 ld_shlibs_CXX=yes
18715 ;;
18716 gnu*)
18717 ;;
18718 hpux9*)
18719 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18720 hardcode_libdir_separator_CXX=:
18721 export_dynamic_flag_spec_CXX='${wl}-E'
18722 hardcode_direct_CXX=yes
18723 hardcode_minus_L_CXX=yes # Not in the search PATH,
18724 # but as the default
18725 # location of the library.
18726
18727 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018728 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018729 # FIXME: insert proper C++ library support
18730 ld_shlibs_CXX=no
18731 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018732 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018733 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 +000018734 # Commands to make compiler produce verbose output that lists
18735 # what "hidden" libraries, object files and flags are used when
18736 # linking a shared library.
18737 #
18738 # There doesn't appear to be a way to prevent this compiler from
18739 # explicitly linking system object files so we need to strip them
18740 # from the output so that they don't get included in the library
18741 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018742 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 +000018743 ;;
18744 *)
18745 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018746 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 +000018747 else
18748 # FIXME: insert proper C++ library support
18749 ld_shlibs_CXX=no
18750 fi
18751 ;;
18752 esac
18753 ;;
18754 hpux10*|hpux11*)
18755 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018756 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18757 hardcode_libdir_separator_CXX=:
18758
18759 case $host_cpu in
18760 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018761 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018762 ;;
18763 *)
John Criswell47fdd832003-07-14 16:52:07 +000018764 export_dynamic_flag_spec_CXX='${wl}-E'
18765 ;;
18766 esac
18767 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018768 case $host_cpu in
18769 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018770 hardcode_direct_CXX=no
18771 hardcode_shlibpath_var_CXX=no
18772 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018773 *)
18774 hardcode_direct_CXX=yes
18775 hardcode_minus_L_CXX=yes # Not in the search PATH,
18776 # but as the default
18777 # location of the library.
18778 ;;
18779 esac
18780
18781 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018782 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018783 # FIXME: insert proper C++ library support
18784 ld_shlibs_CXX=no
18785 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018786 aCC*)
18787 case $host_cpu in
18788 hppa*64*)
18789 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18790 ;;
18791 ia64*)
18792 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 +000018793 ;;
18794 *)
18795 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18796 ;;
18797 esac
18798 # Commands to make compiler produce verbose output that lists
18799 # what "hidden" libraries, object files and flags are used when
18800 # linking a shared library.
18801 #
18802 # There doesn't appear to be a way to prevent this compiler from
18803 # explicitly linking system object files so we need to strip them
18804 # from the output so that they don't get included in the library
18805 # dependencies.
18806 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'
18807 ;;
18808 *)
18809 if test "$GXX" = yes; then
18810 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018811 case $host_cpu in
18812 hppa*64*)
18813 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18814 ;;
18815 ia64*)
18816 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 +000018817 ;;
18818 *)
18819 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'
18820 ;;
18821 esac
18822 fi
18823 else
18824 # FIXME: insert proper C++ library support
18825 ld_shlibs_CXX=no
18826 fi
18827 ;;
18828 esac
18829 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018830 interix3*)
18831 hardcode_direct_CXX=no
18832 hardcode_shlibpath_var_CXX=no
18833 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18834 export_dynamic_flag_spec_CXX='${wl}-E'
18835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18836 # Instead, shared libraries are loaded at an image base (0x10000000 by
18837 # default) and relocated if they conflict, which is a slow very memory
18838 # consuming and fragmenting process. To avoid this, we pick a random,
18839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18840 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18841 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'
18842 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'
18843 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018844 irix5* | irix6*)
18845 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018846 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018847 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018848 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 +000018849
18850 # Archives containing C++ object files must be created using
18851 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18852 # necessary to make sure instantiated templates are included
18853 # in the archive.
18854 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18855 ;;
18856 *)
18857 if test "$GXX" = yes; then
18858 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018859 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 +000018860 else
18861 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'
18862 fi
18863 fi
18864 link_all_deplibs_CXX=yes
18865 ;;
18866 esac
18867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18868 hardcode_libdir_separator_CXX=:
18869 ;;
18870 linux*)
18871 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018872 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018873 # Kuck and Associates, Inc. (KAI) C++ Compiler
18874
18875 # KCC will only create a shared library if the output file
18876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18877 # to its proper name (with version) after linking.
18878 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'
18879 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'
18880 # Commands to make compiler produce verbose output that lists
18881 # what "hidden" libraries, object files and flags are used when
18882 # linking a shared library.
18883 #
18884 # There doesn't appear to be a way to prevent this compiler from
18885 # explicitly linking system object files so we need to strip them
18886 # from the output so that they don't get included in the library
18887 # dependencies.
18888 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'
18889
18890 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18892
18893 # Archives containing C++ object files must be created using
18894 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18895 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18896 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018897 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018898 # Intel C++
18899 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018900 # version 8.0 and above of icpc choke on multiply defined symbols
18901 # if we add $predep_objects and $postdep_objects, however 7.1 and
18902 # earlier do not add the objects themselves.
18903 case `$CC -V 2>&1` in
18904 *"Version 7."*)
18905 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18906 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'
18907 ;;
18908 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018909 tmp_idyn=
18910 case $host_cpu in
18911 ia64*) tmp_idyn=' -i_dynamic';;
18912 esac
18913 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18914 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 +000018915 ;;
18916 esac
John Criswell47fdd832003-07-14 16:52:07 +000018917 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18919 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18920 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18921 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018922 pgCC*)
18923 # Portland Group C++ compiler
18924 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18925 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'
18926
18927 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18928 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18929 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'
18930 ;;
18931 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018932 # Compaq C++
18933 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18934 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'
18935
18936 runpath_var=LD_RUN_PATH
18937 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18938 hardcode_libdir_separator_CXX=:
18939
18940 # Commands to make compiler produce verbose output that lists
18941 # what "hidden" libraries, object files and flags are used when
18942 # linking a shared library.
18943 #
18944 # There doesn't appear to be a way to prevent this compiler from
18945 # explicitly linking system object files so we need to strip them
18946 # from the output so that they don't get included in the library
18947 # dependencies.
18948 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'
18949 ;;
18950 esac
18951 ;;
18952 lynxos*)
18953 # FIXME: insert proper C++ library support
18954 ld_shlibs_CXX=no
18955 ;;
18956 m88k*)
18957 # FIXME: insert proper C++ library support
18958 ld_shlibs_CXX=no
18959 ;;
18960 mvs*)
18961 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018962 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018963 # FIXME: insert proper C++ library support
18964 ld_shlibs_CXX=no
18965 ;;
18966 *)
18967 # FIXME: insert proper C++ library support
18968 ld_shlibs_CXX=no
18969 ;;
18970 esac
18971 ;;
18972 netbsd*)
18973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18974 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18975 wlarc=
18976 hardcode_libdir_flag_spec_CXX='-R$libdir'
18977 hardcode_direct_CXX=yes
18978 hardcode_shlibpath_var_CXX=no
18979 fi
18980 # Workaround some broken pre-1.5 toolchains
18981 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18982 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018983 openbsd2*)
18984 # C++ shared libraries are fairly broken
18985 ld_shlibs_CXX=no
18986 ;;
18987 openbsd*)
18988 hardcode_direct_CXX=yes
18989 hardcode_shlibpath_var_CXX=no
18990 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18991 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18993 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18994 export_dynamic_flag_spec_CXX='${wl}-E'
18995 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18996 fi
18997 output_verbose_link_cmd='echo'
18998 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018999 osf3*)
19000 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019001 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019002 # Kuck and Associates, Inc. (KAI) C++ Compiler
19003
19004 # KCC will only create a shared library if the output file
19005 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19006 # to its proper name (with version) after linking.
19007 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'
19008
19009 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19010 hardcode_libdir_separator_CXX=:
19011
19012 # Archives containing C++ object files must be created using
19013 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19014 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19015
19016 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019017 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019018 # Rational C++ 2.4.1
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19021 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019022 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019023 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019024 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 +000019025
19026 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19027 hardcode_libdir_separator_CXX=:
19028
19029 # Commands to make compiler produce verbose output that lists
19030 # what "hidden" libraries, object files and flags are used when
19031 # linking a shared library.
19032 #
19033 # There doesn't appear to be a way to prevent this compiler from
19034 # explicitly linking system object files so we need to strip them
19035 # from the output so that they don't get included in the library
19036 # dependencies.
19037 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'
19038 ;;
19039 *)
19040 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19041 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019042 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 +000019043
19044 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19045 hardcode_libdir_separator_CXX=:
19046
19047 # Commands to make compiler produce verbose output that lists
19048 # what "hidden" libraries, object files and flags are used when
19049 # linking a shared library.
19050 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19051
19052 else
19053 # FIXME: insert proper C++ library support
19054 ld_shlibs_CXX=no
19055 fi
19056 ;;
19057 esac
19058 ;;
19059 osf4* | osf5*)
19060 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019061 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019062 # Kuck and Associates, Inc. (KAI) C++ Compiler
19063
19064 # KCC will only create a shared library if the output file
19065 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19066 # to its proper name (with version) after linking.
19067 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'
19068
19069 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19070 hardcode_libdir_separator_CXX=:
19071
19072 # Archives containing C++ object files must be created using
19073 # the KAI C++ compiler.
19074 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19075 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019076 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019077 # Rational C++ 2.4.1
19078 # FIXME: insert proper C++ library support
19079 ld_shlibs_CXX=no
19080 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019081 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019082 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019083 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 +000019084 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19085 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019086 $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 +000019087 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019088
19089 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19090 hardcode_libdir_separator_CXX=:
19091
19092 # Commands to make compiler produce verbose output that lists
19093 # what "hidden" libraries, object files and flags are used when
19094 # linking a shared library.
19095 #
19096 # There doesn't appear to be a way to prevent this compiler from
19097 # explicitly linking system object files so we need to strip them
19098 # from the output so that they don't get included in the library
19099 # dependencies.
19100 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'
19101 ;;
19102 *)
19103 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19104 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019105 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 +000019106
19107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19108 hardcode_libdir_separator_CXX=:
19109
19110 # Commands to make compiler produce verbose output that lists
19111 # what "hidden" libraries, object files and flags are used when
19112 # linking a shared library.
19113 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19114
19115 else
19116 # FIXME: insert proper C++ library support
19117 ld_shlibs_CXX=no
19118 fi
19119 ;;
19120 esac
19121 ;;
19122 psos*)
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019126 sunos4*)
19127 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019128 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019129 # Sun C++ 4.x
19130 # FIXME: insert proper C++ library support
19131 ld_shlibs_CXX=no
19132 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019133 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019134 # Lucid
19135 # FIXME: insert proper C++ library support
19136 ld_shlibs_CXX=no
19137 ;;
19138 *)
19139 # FIXME: insert proper C++ library support
19140 ld_shlibs_CXX=no
19141 ;;
19142 esac
19143 ;;
19144 solaris*)
19145 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019146 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019147 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019148 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019149 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019150 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 +000019151 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 +000019152 $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 +000019153
19154 hardcode_libdir_flag_spec_CXX='-R$libdir'
19155 hardcode_shlibpath_var_CXX=no
19156 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019157 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019158 *)
19159 # The C++ compiler is used as linker so we must use $wl
19160 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019161 # linker. We must also pass each convience library through
19162 # to the system linker between allextract/defaultextract.
19163 # The C++ compiler will combine linker options so we
19164 # cannot just pass the convience library names through
19165 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019166 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019167 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 +000019168 ;;
19169 esac
19170 link_all_deplibs_CXX=yes
19171
Reid Spencera773bd52006-08-04 18:18:08 +000019172 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019173
19174 # Archives containing C++ object files must be created using
19175 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19176 # necessary to make sure instantiated templates are included
19177 # in the archive.
19178 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19179 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019180 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019181 # Green Hills C++ Compiler
19182 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19183
19184 # The C++ compiler must be used to create the archive.
19185 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19186 ;;
19187 *)
19188 # GNU C++ compiler with Solaris linker
19189 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19190 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19191 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019192 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 +000019193 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19194 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19195
John Criswell47fdd832003-07-14 16:52:07 +000019196 # Commands to make compiler produce verbose output that lists
19197 # what "hidden" libraries, object files and flags are used when
19198 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019199 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019200 else
19201 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19202 # platform.
19203 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 +000019204 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19205 $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 +000019206
19207 # Commands to make compiler produce verbose output that lists
19208 # what "hidden" libraries, object files and flags are used when
19209 # linking a shared library.
19210 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19211 fi
19212
19213 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19214 fi
19215 ;;
19216 esac
19217 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019218 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19219 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019220 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019221 hardcode_shlibpath_var_CXX=no
19222 runpath_var='LD_RUN_PATH'
19223
19224 case $cc_basename in
19225 CC*)
19226 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19227 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19228 ;;
19229 *)
19230 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19231 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19232 ;;
19233 esac
19234 ;;
19235 sysv5* | sco3.2v5* | sco5v6*)
19236 # Note: We can NOT use -z defs as we might desire, because we do not
19237 # link with -lc, and that would cause any symbols used from libc to
19238 # always be unresolved, which means just about no library would
19239 # ever link correctly. If we're not using GNU ld we use -z text
19240 # though, which does catch some bad symbols but isn't as heavy-handed
19241 # as -z defs.
19242 # For security reasons, it is highly recommended that you always
19243 # use absolute paths for naming shared libraries, and exclude the
19244 # DT_RUNPATH tag from executables and libraries. But doing so
19245 # requires that you compile everything twice, which is a pain.
19246 # So that behaviour is only enabled if SCOABSPATH is set to a
19247 # non-empty value in the environment. Most likely only useful for
19248 # creating official distributions of packages.
19249 # This is a hack until libtool officially supports absolute path
19250 # names for shared libraries.
19251 no_undefined_flag_CXX='${wl}-z,text'
19252 allow_undefined_flag_CXX='${wl}-z,nodefs'
19253 archive_cmds_need_lc_CXX=no
19254 hardcode_shlibpath_var_CXX=no
19255 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19256 hardcode_libdir_separator_CXX=':'
19257 link_all_deplibs_CXX=yes
19258 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19259 runpath_var='LD_RUN_PATH'
19260
19261 case $cc_basename in
19262 CC*)
19263 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19264 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19265 ;;
19266 *)
19267 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19268 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19269 ;;
19270 esac
John Criswell47fdd832003-07-14 16:52:07 +000019271 ;;
19272 tandem*)
19273 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019274 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019275 # NonStop-UX NCC 3.20
19276 # FIXME: insert proper C++ library support
19277 ld_shlibs_CXX=no
19278 ;;
19279 *)
19280 # FIXME: insert proper C++ library support
19281 ld_shlibs_CXX=no
19282 ;;
19283 esac
19284 ;;
19285 vxworks*)
19286 # FIXME: insert proper C++ library support
19287 ld_shlibs_CXX=no
19288 ;;
19289 *)
19290 # FIXME: insert proper C++ library support
19291 ld_shlibs_CXX=no
19292 ;;
19293esac
Reid Spencera773bd52006-08-04 18:18:08 +000019294{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19295echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019296test "$ld_shlibs_CXX" = no && can_build_shared=no
19297
19298GCC_CXX="$GXX"
19299LD_CXX="$LD"
19300
John Criswell47fdd832003-07-14 16:52:07 +000019301
19302cat > conftest.$ac_ext <<EOF
19303class Foo
19304{
19305public:
19306 Foo (void) { a = 0; }
19307private:
19308 int a;
19309};
19310EOF
19311
19312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313 (eval $ac_compile) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; then
19317 # Parse the compiler output and extract the necessary
19318 # objects, libraries and library flags.
19319
19320 # Sentinel used to keep track of whether or not we are before
19321 # the conftest object file.
19322 pre_test_object_deps_done=no
19323
19324 # The `*' in the case matches for architectures that use `case' in
19325 # $output_verbose_cmd can trigger glob expansion during the loop
19326 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019327 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019328
19329 for p in `eval $output_verbose_link_cmd`; do
19330 case $p in
19331
19332 -L* | -R* | -l*)
19333 # Some compilers place space between "-{L,R}" and the path.
19334 # Remove the space.
19335 if test $p = "-L" \
19336 || test $p = "-R"; then
19337 prev=$p
19338 continue
19339 else
19340 prev=
19341 fi
19342
19343 if test "$pre_test_object_deps_done" = no; then
19344 case $p in
19345 -L* | -R*)
19346 # Internal compiler library paths should come after those
19347 # provided the user. The postdeps already come after the
19348 # user supplied libs so there is no need to process them.
19349 if test -z "$compiler_lib_search_path_CXX"; then
19350 compiler_lib_search_path_CXX="${prev}${p}"
19351 else
19352 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19353 fi
19354 ;;
19355 # The "-l" case would never come before the object being
19356 # linked, so don't bother handling this case.
19357 esac
19358 else
19359 if test -z "$postdeps_CXX"; then
19360 postdeps_CXX="${prev}${p}"
19361 else
19362 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19363 fi
19364 fi
19365 ;;
19366
19367 *.$objext)
19368 # This assumes that the test object file only shows up
19369 # once in the compiler output.
19370 if test "$p" = "conftest.$objext"; then
19371 pre_test_object_deps_done=yes
19372 continue
19373 fi
19374
19375 if test "$pre_test_object_deps_done" = no; then
19376 if test -z "$predep_objects_CXX"; then
19377 predep_objects_CXX="$p"
19378 else
19379 predep_objects_CXX="$predep_objects_CXX $p"
19380 fi
19381 else
19382 if test -z "$postdep_objects_CXX"; then
19383 postdep_objects_CXX="$p"
19384 else
19385 postdep_objects_CXX="$postdep_objects_CXX $p"
19386 fi
19387 fi
19388 ;;
19389
19390 *) ;; # Ignore the rest.
19391
19392 esac
19393 done
19394
19395 # Clean up.
19396 rm -f a.out a.exe
19397else
19398 echo "libtool.m4: error: problem compiling CXX test program"
19399fi
19400
19401$rm -f confest.$objext
19402
Reid Spencera773bd52006-08-04 18:18:08 +000019403# PORTME: override above test on systems where it is broken
19404case $host_os in
19405interix3*)
19406 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19407 # hack all around it, let's just trust "g++" to DTRT.
19408 predep_objects_CXX=
19409 postdep_objects_CXX=
19410 postdeps_CXX=
19411 ;;
19412
19413solaris*)
19414 case $cc_basename in
19415 CC*)
19416 # Adding this requires a known-good setup of shared libraries for
19417 # Sun compiler versions before 5.6, else PIC objects from an old
19418 # archive will be linked into the output, leading to subtle bugs.
19419 postdeps_CXX='-lCstd -lCrun'
19420 ;;
19421 esac
19422 ;;
19423esac
19424
19425
John Criswell47fdd832003-07-14 16:52:07 +000019426case " $postdeps_CXX " in
19427*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19428esac
19429
19430lt_prog_compiler_wl_CXX=
19431lt_prog_compiler_pic_CXX=
19432lt_prog_compiler_static_CXX=
19433
Reid Spencera773bd52006-08-04 18:18:08 +000019434{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19435echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019436
19437 # C++ specific cases for pic, static, wl, etc.
19438 if test "$GXX" = yes; then
19439 lt_prog_compiler_wl_CXX='-Wl,'
19440 lt_prog_compiler_static_CXX='-static'
19441
19442 case $host_os in
19443 aix*)
19444 # All AIX code is PIC.
19445 if test "$host_cpu" = ia64; then
19446 # AIX 5 now supports IA64 processor
19447 lt_prog_compiler_static_CXX='-Bstatic'
19448 fi
19449 ;;
19450 amigaos*)
19451 # FIXME: we need at least 68020 code to build shared libraries, but
19452 # adding the `-m68020' flag to GCC prevents building anything better,
19453 # like `-m68040'.
19454 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19455 ;;
19456 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19457 # PIC is the default for these OSes.
19458 ;;
19459 mingw* | os2* | pw32*)
19460 # This hack is so that the source file can tell whether it is being
19461 # built for inclusion in a dll (and should export symbols for example).
19462 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19463 ;;
19464 darwin* | rhapsody*)
19465 # PIC is the default on this platform
19466 # Common symbols not allowed in MH_DYLIB files
19467 lt_prog_compiler_pic_CXX='-fno-common'
19468 ;;
19469 *djgpp*)
19470 # DJGPP does not support shared libraries at all
19471 lt_prog_compiler_pic_CXX=
19472 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019473 interix3*)
19474 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19475 # Instead, we relocate shared libraries at runtime.
19476 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019477 sysv4*MP*)
19478 if test -d /usr/nec; then
19479 lt_prog_compiler_pic_CXX=-Kconform_pic
19480 fi
19481 ;;
19482 hpux*)
19483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19484 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019485 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019486 hppa*64*|ia64*)
19487 ;;
19488 *)
19489 lt_prog_compiler_pic_CXX='-fPIC'
19490 ;;
19491 esac
19492 ;;
19493 *)
19494 lt_prog_compiler_pic_CXX='-fPIC'
19495 ;;
19496 esac
19497 else
19498 case $host_os in
19499 aix4* | aix5*)
19500 # All AIX code is PIC.
19501 if test "$host_cpu" = ia64; then
19502 # AIX 5 now supports IA64 processor
19503 lt_prog_compiler_static_CXX='-Bstatic'
19504 else
19505 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19506 fi
19507 ;;
19508 chorus*)
19509 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019510 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019511 # Green Hills C++ Compiler
19512 # _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"
19513 ;;
19514 esac
19515 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019516 darwin*)
19517 # PIC is the default on this platform
19518 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019519 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019520 xlc*)
19521 lt_prog_compiler_pic_CXX='-qnocommon'
19522 lt_prog_compiler_wl_CXX='-Wl,'
19523 ;;
19524 esac
19525 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019526 dgux*)
19527 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019528 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019529 lt_prog_compiler_pic_CXX='-KPIC'
19530 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019531 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019532 # Green Hills C++ Compiler
19533 lt_prog_compiler_pic_CXX='-pic'
19534 ;;
19535 *)
19536 ;;
19537 esac
19538 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019539 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019540 # FreeBSD uses GNU C++
19541 ;;
19542 hpux9* | hpux10* | hpux11*)
19543 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019544 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019545 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019546 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019547 if test "$host_cpu" != ia64; then
19548 lt_prog_compiler_pic_CXX='+Z'
19549 fi
19550 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019551 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019552 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019553 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19554 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019555 hppa*64*|ia64*)
19556 # +Z the default
19557 ;;
19558 *)
19559 lt_prog_compiler_pic_CXX='+Z'
19560 ;;
19561 esac
19562 ;;
19563 *)
19564 ;;
19565 esac
19566 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019567 interix*)
19568 # This is c89, which is MS Visual C++ (no shared libs)
19569 # Anyone wants to do a port?
19570 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019571 irix5* | irix6* | nonstopux*)
19572 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019573 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019574 lt_prog_compiler_wl_CXX='-Wl,'
19575 lt_prog_compiler_static_CXX='-non_shared'
19576 # CC pic flag -KPIC is the default.
19577 ;;
19578 *)
19579 ;;
19580 esac
19581 ;;
19582 linux*)
19583 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019584 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019585 # KAI C++ Compiler
19586 lt_prog_compiler_wl_CXX='--backend -Wl,'
19587 lt_prog_compiler_pic_CXX='-fPIC'
19588 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019589 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019590 # Intel C++
19591 lt_prog_compiler_wl_CXX='-Wl,'
19592 lt_prog_compiler_pic_CXX='-KPIC'
19593 lt_prog_compiler_static_CXX='-static'
19594 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019595 pgCC*)
19596 # Portland Group C++ compiler.
19597 lt_prog_compiler_wl_CXX='-Wl,'
19598 lt_prog_compiler_pic_CXX='-fpic'
19599 lt_prog_compiler_static_CXX='-Bstatic'
19600 ;;
19601 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019602 # Compaq C++
19603 # Make sure the PIC flag is empty. It appears that all Alpha
19604 # Linux and Compaq Tru64 Unix objects are PIC.
19605 lt_prog_compiler_pic_CXX=
19606 lt_prog_compiler_static_CXX='-non_shared'
19607 ;;
19608 *)
19609 ;;
19610 esac
19611 ;;
19612 lynxos*)
19613 ;;
19614 m88k*)
19615 ;;
19616 mvs*)
19617 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019618 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019619 lt_prog_compiler_pic_CXX='-W c,exportall'
19620 ;;
19621 *)
19622 ;;
19623 esac
19624 ;;
19625 netbsd*)
19626 ;;
19627 osf3* | osf4* | osf5*)
19628 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019629 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019630 lt_prog_compiler_wl_CXX='--backend -Wl,'
19631 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019632 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019633 # Rational C++ 2.4.1
19634 lt_prog_compiler_pic_CXX='-pic'
19635 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019636 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019637 # Digital/Compaq C++
19638 lt_prog_compiler_wl_CXX='-Wl,'
19639 # Make sure the PIC flag is empty. It appears that all Alpha
19640 # Linux and Compaq Tru64 Unix objects are PIC.
19641 lt_prog_compiler_pic_CXX=
19642 lt_prog_compiler_static_CXX='-non_shared'
19643 ;;
19644 *)
19645 ;;
19646 esac
19647 ;;
19648 psos*)
19649 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019650 solaris*)
19651 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019652 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019653 # Sun C++ 4.2, 5.x and Centerline C++
19654 lt_prog_compiler_pic_CXX='-KPIC'
19655 lt_prog_compiler_static_CXX='-Bstatic'
19656 lt_prog_compiler_wl_CXX='-Qoption ld '
19657 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019658 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019659 # Green Hills C++ Compiler
19660 lt_prog_compiler_pic_CXX='-PIC'
19661 ;;
19662 *)
19663 ;;
19664 esac
19665 ;;
19666 sunos4*)
19667 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019668 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019669 # Sun C++ 4.x
19670 lt_prog_compiler_pic_CXX='-pic'
19671 lt_prog_compiler_static_CXX='-Bstatic'
19672 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019673 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019674 # Lucid
19675 lt_prog_compiler_pic_CXX='-pic'
19676 ;;
19677 *)
19678 ;;
19679 esac
19680 ;;
19681 tandem*)
19682 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019683 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019684 # NonStop-UX NCC 3.20
19685 lt_prog_compiler_pic_CXX='-KPIC'
19686 ;;
19687 *)
19688 ;;
19689 esac
19690 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19692 case $cc_basename in
19693 CC*)
19694 lt_prog_compiler_wl_CXX='-Wl,'
19695 lt_prog_compiler_pic_CXX='-KPIC'
19696 lt_prog_compiler_static_CXX='-Bstatic'
19697 ;;
19698 esac
John Criswell47fdd832003-07-14 16:52:07 +000019699 ;;
19700 vxworks*)
19701 ;;
19702 *)
19703 lt_prog_compiler_can_build_shared_CXX=no
19704 ;;
19705 esac
19706 fi
19707
Reid Spencera773bd52006-08-04 18:18:08 +000019708{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19709echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019710
19711#
19712# Check to make sure the PIC flag actually works.
19713#
19714if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019715
Reid Spencera773bd52006-08-04 18:18:08 +000019716{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19717echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019718if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19720else
19721 lt_prog_compiler_pic_works_CXX=no
19722 ac_outfile=conftest.$ac_objext
19723 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19724 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19725 # Insert the option either (1) after the last *FLAGS variable, or
19726 # (2) before a word containing "conftest.", or (3) at the end.
19727 # Note that $ac_compile itself does not contain backslashes and begins
19728 # with a dollar sign (not a hyphen), so the echo should work correctly.
19729 # The option is referenced via a variable to avoid confusing sed.
19730 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19733 -e 's:$: $lt_compiler_flag:'`
Devang Patel5d28b882007-12-04 22:54:47 +000019734 (eval echo "\"\$as_me:19734: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019735 (eval "$lt_compile" 2>conftest.err)
19736 ac_status=$?
19737 cat conftest.err >&5
Devang Patel5d28b882007-12-04 22:54:47 +000019738 echo "$as_me:19738: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019739 if (exit $ac_status) && test -s "$ac_outfile"; then
19740 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019741 # So say no if there are warnings other than the usual output.
19742 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019745 lt_prog_compiler_pic_works_CXX=yes
19746 fi
19747 fi
19748 $rm conftest*
19749
19750fi
Reid Spencera773bd52006-08-04 18:18:08 +000019751{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19752echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019753
19754if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19755 case $lt_prog_compiler_pic_CXX in
19756 "" | " "*) ;;
19757 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19758 esac
19759else
19760 lt_prog_compiler_pic_CXX=
19761 lt_prog_compiler_can_build_shared_CXX=no
19762fi
19763
19764fi
Reid Spencera773bd52006-08-04 18:18:08 +000019765case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019766 # For platforms which do not support PIC, -DPIC is meaningless:
19767 *djgpp*)
19768 lt_prog_compiler_pic_CXX=
19769 ;;
19770 *)
19771 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19772 ;;
19773esac
19774
Reid Spencera773bd52006-08-04 18:18:08 +000019775#
19776# Check to make sure the static flag actually works.
19777#
19778wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19779{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19780echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19781if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783else
19784 lt_prog_compiler_static_works_CXX=no
19785 save_LDFLAGS="$LDFLAGS"
19786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19787 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19789 # The linker can only warn and ignore the option if not recognized
19790 # So say no if there are warnings
19791 if test -s conftest.err; then
19792 # Append any errors to the config.log.
19793 cat conftest.err 1>&5
19794 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19796 if diff conftest.exp conftest.er2 >/dev/null; then
19797 lt_prog_compiler_static_works_CXX=yes
19798 fi
19799 else
19800 lt_prog_compiler_static_works_CXX=yes
19801 fi
19802 fi
19803 $rm conftest*
19804 LDFLAGS="$save_LDFLAGS"
19805
19806fi
19807{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19808echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19809
19810if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19811 :
19812else
19813 lt_prog_compiler_static_CXX=
19814fi
19815
19816
19817{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19818echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019819if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19821else
19822 lt_cv_prog_compiler_c_o_CXX=no
19823 $rm -r conftest 2>/dev/null
19824 mkdir conftest
19825 cd conftest
19826 mkdir out
19827 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19828
John Criswell47fdd832003-07-14 16:52:07 +000019829 lt_compiler_flag="-o out/conftest2.$ac_objext"
19830 # Insert the option either (1) after the last *FLAGS variable, or
19831 # (2) before a word containing "conftest.", or (3) at the end.
19832 # Note that $ac_compile itself does not contain backslashes and begins
19833 # with a dollar sign (not a hyphen), so the echo should work correctly.
19834 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19837 -e 's:$: $lt_compiler_flag:'`
Devang Patel5d28b882007-12-04 22:54:47 +000019838 (eval echo "\"\$as_me:19838: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019839 (eval "$lt_compile" 2>out/conftest.err)
19840 ac_status=$?
19841 cat out/conftest.err >&5
Devang Patel5d28b882007-12-04 22:54:47 +000019842 echo "$as_me:19842: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19844 then
19845 # The compiler can only warn and ignore the option if not recognized
19846 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019850 lt_cv_prog_compiler_c_o_CXX=yes
19851 fi
19852 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019853 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019854 $rm conftest*
19855 # SGI C++ compiler will create directory out/ii_files/ for
19856 # template instantiation
19857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19858 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019859 cd ..
19860 rmdir conftest
19861 $rm conftest*
19862
19863fi
Reid Spencera773bd52006-08-04 18:18:08 +000019864{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19865echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019866
19867
19868hard_links="nottested"
19869if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19870 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019871 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19872echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019873 hard_links=yes
19874 $rm conftest*
19875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19876 touch conftest.a
19877 ln conftest.a conftest.b 2>&5 || hard_links=no
19878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019879 { echo "$as_me:$LINENO: result: $hard_links" >&5
19880echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019881 if test "$hard_links" = no; then
19882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19883echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19884 need_locks=warn
19885 fi
19886else
19887 need_locks=no
19888fi
19889
Reid Spencera773bd52006-08-04 18:18:08 +000019890{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19891echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019892
19893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19894 case $host_os in
19895 aix4* | aix5*)
19896 # If we're using GNU nm, then we don't want the "-C" option.
19897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19899 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'
19900 else
19901 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'
19902 fi
19903 ;;
19904 pw32*)
19905 export_symbols_cmds_CXX="$ltdll_cmds"
19906 ;;
19907 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019908 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 +000019909 ;;
19910 *)
19911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19912 ;;
19913 esac
19914
Reid Spencera773bd52006-08-04 18:18:08 +000019915{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19916echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019917test "$ld_shlibs_CXX" = no && can_build_shared=no
19918
John Criswell47fdd832003-07-14 16:52:07 +000019919#
19920# Do we need to explicitly link libc?
19921#
19922case "x$archive_cmds_need_lc_CXX" in
19923x|xyes)
19924 # Assume -lc should be added
19925 archive_cmds_need_lc_CXX=yes
19926
19927 if test "$enable_shared" = yes && test "$GCC" = yes; then
19928 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019929 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019930 # FIXME: we may have to deal with multi-command sequences.
19931 ;;
19932 '$CC '*)
19933 # Test whether the compiler implicitly links with -lc since on some
19934 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19935 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019936 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19937echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019938 $rm conftest*
19939 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19940
19941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19942 (eval $ac_compile) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } 2>conftest.err; then
19946 soname=conftest
19947 lib=conftest
19948 libobjs=conftest.$ac_objext
19949 deplibs=
19950 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019951 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019952 compiler_flags=-v
19953 linker_flags=-v
19954 verstring=
19955 output_objdir=.
19956 libname=conftest
19957 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19958 allow_undefined_flag_CXX=
19959 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19960 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19961 ac_status=$?
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }
19964 then
19965 archive_cmds_need_lc_CXX=no
19966 else
19967 archive_cmds_need_lc_CXX=yes
19968 fi
19969 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19970 else
19971 cat conftest.err 1>&5
19972 fi
19973 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019974 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19975echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019976 ;;
19977 esac
19978 fi
19979 ;;
19980esac
19981
Reid Spencera773bd52006-08-04 18:18:08 +000019982{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19983echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019984library_names_spec=
19985libname_spec='lib$name'
19986soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019987shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019988postinstall_cmds=
19989postuninstall_cmds=
19990finish_cmds=
19991finish_eval=
19992shlibpath_var=
19993shlibpath_overrides_runpath=unknown
19994version_type=none
19995dynamic_linker="$host_os ld.so"
19996sys_lib_dlsearch_path_spec="/lib /usr/lib"
19997if test "$GCC" = yes; then
19998 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19999 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20000 # if the path contains ";" then we assume it to be the separator
20001 # otherwise default to the standard path separator (i.e. ":") - it is
20002 # assumed that no part of a normal pathname contains ";" but that should
20003 # okay in the real world where ";" in dirpaths is itself problematic.
20004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20005 else
20006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20007 fi
20008else
20009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20010fi
20011need_lib_prefix=unknown
20012hardcode_into_libs=no
20013
20014# when you set need_version to no, make sure it does not cause -set_version
20015# flags to be left without arguments
20016need_version=unknown
20017
20018case $host_os in
20019aix3*)
20020 version_type=linux
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20022 shlibpath_var=LIBPATH
20023
20024 # AIX 3 has no versioning support, so we append a major version to the name.
20025 soname_spec='${libname}${release}${shared_ext}$major'
20026 ;;
20027
20028aix4* | aix5*)
20029 version_type=linux
20030 need_lib_prefix=no
20031 need_version=no
20032 hardcode_into_libs=yes
20033 if test "$host_cpu" = ia64; then
20034 # AIX 5 supports IA64
20035 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20036 shlibpath_var=LD_LIBRARY_PATH
20037 else
20038 # With GCC up to 2.95.x, collect2 would create an import file
20039 # for dependence libraries. The import file would start with
20040 # the line `#! .'. This would cause the generated library to
20041 # depend on `.', always an invalid library. This was fixed in
20042 # development snapshots of GCC prior to 3.0.
20043 case $host_os in
20044 aix4 | aix4.[01] | aix4.[01].*)
20045 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20046 echo ' yes '
20047 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20048 :
20049 else
20050 can_build_shared=no
20051 fi
20052 ;;
20053 esac
20054 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20055 # soname into executable. Probably we can add versioning support to
20056 # collect2, so additional links can be useful in future.
20057 if test "$aix_use_runtimelinking" = yes; then
20058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20059 # instead of lib<name>.a to let people know that these are not
20060 # typical AIX shared libraries.
20061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20062 else
20063 # We preserve .a as extension for shared libraries through AIX4.2
20064 # and later when we are not doing run time linking.
20065 library_names_spec='${libname}${release}.a $libname.a'
20066 soname_spec='${libname}${release}${shared_ext}$major'
20067 fi
20068 shlibpath_var=LIBPATH
20069 fi
20070 ;;
20071
20072amigaos*)
20073 library_names_spec='$libname.ixlibrary $libname.a'
20074 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020075 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 +000020076 ;;
20077
20078beos*)
20079 library_names_spec='${libname}${shared_ext}'
20080 dynamic_linker="$host_os ld.so"
20081 shlibpath_var=LIBRARY_PATH
20082 ;;
20083
Reid Spencer2706f8c2004-09-19 23:53:36 +000020084bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020085 version_type=linux
20086 need_version=no
20087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20088 soname_spec='${libname}${release}${shared_ext}$major'
20089 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20090 shlibpath_var=LD_LIBRARY_PATH
20091 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20092 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20093 # the default ld.so.conf also contains /usr/contrib/lib and
20094 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20095 # libtool to hard-code these into programs
20096 ;;
20097
20098cygwin* | mingw* | pw32*)
20099 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020100 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020101 need_version=no
20102 need_lib_prefix=no
20103
20104 case $GCC,$host_os in
20105 yes,cygwin* | yes,mingw* | yes,pw32*)
20106 library_names_spec='$libname.dll.a'
20107 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020108 postinstall_cmds='base_file=`basename \${file}`~
20109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20110 dldir=$destdir/`dirname \$dlpath`~
20111 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020112 $install_prog $dir/$dlname \$dldir/$dlname~
20113 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20115 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020116 $rm \$dlpath'
20117 shlibpath_overrides_runpath=yes
20118
20119 case $host_os in
20120 cygwin*)
20121 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20122 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 +000020123 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020124 ;;
20125 mingw*)
20126 # MinGW DLLs use traditional 'lib' prefix
20127 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20128 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20129 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20130 # It is most probably a Windows format PATH printed by
20131 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20132 # path with ; separators, and with drive letters. We can handle the
20133 # drive letters (cygwin fileutils understands them), so leave them,
20134 # especially as we might pass files found there to a mingw objdump,
20135 # which wouldn't understand a cygwinified path. Ahh.
20136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20137 else
20138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20139 fi
20140 ;;
20141 pw32*)
20142 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020143 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 +000020144 ;;
20145 esac
20146 ;;
20147
20148 *)
20149 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20150 ;;
20151 esac
20152 dynamic_linker='Win32 ld.exe'
20153 # FIXME: first we should search . and the directory the executable is in
20154 shlibpath_var=PATH
20155 ;;
20156
20157darwin* | rhapsody*)
20158 dynamic_linker="$host_os dyld"
20159 version_type=darwin
20160 need_lib_prefix=no
20161 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020162 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020163 soname_spec='${libname}${release}${major}$shared_ext'
20164 shlibpath_overrides_runpath=yes
20165 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020166 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020167 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020168 if test "$GCC" = yes; then
20169 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"`
20170 else
20171 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020172 fi
20173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20174 ;;
20175
20176dgux*)
20177 version_type=linux
20178 need_lib_prefix=no
20179 need_version=no
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20181 soname_spec='${libname}${release}${shared_ext}$major'
20182 shlibpath_var=LD_LIBRARY_PATH
20183 ;;
20184
20185freebsd1*)
20186 dynamic_linker=no
20187 ;;
20188
Reid Spencer2706f8c2004-09-19 23:53:36 +000020189kfreebsd*-gnu)
20190 version_type=linux
20191 need_lib_prefix=no
20192 need_version=no
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20194 soname_spec='${libname}${release}${shared_ext}$major'
20195 shlibpath_var=LD_LIBRARY_PATH
20196 shlibpath_overrides_runpath=no
20197 hardcode_into_libs=yes
20198 dynamic_linker='GNU ld.so'
20199 ;;
20200
Reid Spencera773bd52006-08-04 18:18:08 +000020201freebsd* | dragonfly*)
20202 # DragonFly does not have aout. When/if they implement a new
20203 # versioning mechanism, adjust this.
20204 if test -x /usr/bin/objformat; then
20205 objformat=`/usr/bin/objformat`
20206 else
20207 case $host_os in
20208 freebsd[123]*) objformat=aout ;;
20209 *) objformat=elf ;;
20210 esac
20211 fi
John Criswell47fdd832003-07-14 16:52:07 +000020212 version_type=freebsd-$objformat
20213 case $version_type in
20214 freebsd-elf*)
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20216 need_version=no
20217 need_lib_prefix=no
20218 ;;
20219 freebsd-*)
20220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20221 need_version=yes
20222 ;;
20223 esac
20224 shlibpath_var=LD_LIBRARY_PATH
20225 case $host_os in
20226 freebsd2*)
20227 shlibpath_overrides_runpath=yes
20228 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020229 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020230 shlibpath_overrides_runpath=yes
20231 hardcode_into_libs=yes
20232 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020233 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20234 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020235 shlibpath_overrides_runpath=no
20236 hardcode_into_libs=yes
20237 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020238 freebsd*) # from 4.6 on
20239 shlibpath_overrides_runpath=yes
20240 hardcode_into_libs=yes
20241 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020242 esac
20243 ;;
20244
20245gnu*)
20246 version_type=linux
20247 need_lib_prefix=no
20248 need_version=no
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 shlibpath_var=LD_LIBRARY_PATH
20252 hardcode_into_libs=yes
20253 ;;
20254
20255hpux9* | hpux10* | hpux11*)
20256 # Give a soname corresponding to the major version so that dld.sl refuses to
20257 # link against other versions.
20258 version_type=sunos
20259 need_lib_prefix=no
20260 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020261 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020262 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020263 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020264 hardcode_into_libs=yes
20265 dynamic_linker="$host_os dld.so"
20266 shlibpath_var=LD_LIBRARY_PATH
20267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20269 soname_spec='${libname}${release}${shared_ext}$major'
20270 if test "X$HPUX_IA64_MODE" = X32; then
20271 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20272 else
20273 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20274 fi
20275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20276 ;;
20277 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020278 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020279 hardcode_into_libs=yes
20280 dynamic_linker="$host_os dld.sl"
20281 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284 soname_spec='${libname}${release}${shared_ext}$major'
20285 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20287 ;;
20288 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020289 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020290 dynamic_linker="$host_os dld.sl"
20291 shlibpath_var=SHLIB_PATH
20292 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20294 soname_spec='${libname}${release}${shared_ext}$major'
20295 ;;
20296 esac
20297 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20298 postinstall_cmds='chmod 555 $lib'
20299 ;;
20300
Reid Spencera773bd52006-08-04 18:18:08 +000020301interix3*)
20302 version_type=linux
20303 need_lib_prefix=no
20304 need_version=no
20305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20306 soname_spec='${libname}${release}${shared_ext}$major'
20307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20308 shlibpath_var=LD_LIBRARY_PATH
20309 shlibpath_overrides_runpath=no
20310 hardcode_into_libs=yes
20311 ;;
20312
John Criswell47fdd832003-07-14 16:52:07 +000020313irix5* | irix6* | nonstopux*)
20314 case $host_os in
20315 nonstopux*) version_type=nonstopux ;;
20316 *)
20317 if test "$lt_cv_prog_gnu_ld" = yes; then
20318 version_type=linux
20319 else
20320 version_type=irix
20321 fi ;;
20322 esac
20323 need_lib_prefix=no
20324 need_version=no
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20327 case $host_os in
20328 irix5* | nonstopux*)
20329 libsuff= shlibsuff=
20330 ;;
20331 *)
20332 case $LD in # libtool.m4 will add one of these switches to LD
20333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20334 libsuff= shlibsuff= libmagic=32-bit;;
20335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20336 libsuff=32 shlibsuff=N32 libmagic=N32;;
20337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20338 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20339 *) libsuff= shlibsuff= libmagic=never-match;;
20340 esac
20341 ;;
20342 esac
20343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20344 shlibpath_overrides_runpath=no
20345 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20346 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20347 hardcode_into_libs=yes
20348 ;;
20349
20350# No shared lib support for Linux oldld, aout, or coff.
20351linux*oldld* | linux*aout* | linux*coff*)
20352 dynamic_linker=no
20353 ;;
20354
20355# This must be Linux ELF.
20356linux*)
20357 version_type=linux
20358 need_lib_prefix=no
20359 need_version=no
20360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20361 soname_spec='${libname}${release}${shared_ext}$major'
20362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20363 shlibpath_var=LD_LIBRARY_PATH
20364 shlibpath_overrides_runpath=no
20365 # This implies no fast_install, which is unacceptable.
20366 # Some rework will be needed to allow for fast_install
20367 # before this can be enabled.
20368 hardcode_into_libs=yes
20369
Reid Spencer2706f8c2004-09-19 23:53:36 +000020370 # Append ld.so.conf contents to the search path
20371 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020372 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 +000020373 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20374 fi
20375
John Criswell47fdd832003-07-14 16:52:07 +000020376 # We used to test for /lib/ld.so.1 and disable shared libraries on
20377 # powerpc, because MkLinux only supported shared libraries with the
20378 # GNU dynamic linker. Since this was broken with cross compilers,
20379 # most powerpc-linux boxes support dynamic linking these days and
20380 # people can always --disable-shared, the test was removed, and we
20381 # assume the GNU/Linux dynamic linker is in use.
20382 dynamic_linker='GNU/Linux ld.so'
20383 ;;
20384
Reid Spencer2706f8c2004-09-19 23:53:36 +000020385knetbsd*-gnu)
20386 version_type=linux
20387 need_lib_prefix=no
20388 need_version=no
20389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20390 soname_spec='${libname}${release}${shared_ext}$major'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 shlibpath_overrides_runpath=no
20393 hardcode_into_libs=yes
20394 dynamic_linker='GNU ld.so'
20395 ;;
20396
John Criswell47fdd832003-07-14 16:52:07 +000020397netbsd*)
20398 version_type=sunos
20399 need_lib_prefix=no
20400 need_version=no
20401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20404 dynamic_linker='NetBSD (a.out) ld.so'
20405 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020407 soname_spec='${libname}${release}${shared_ext}$major'
20408 dynamic_linker='NetBSD ld.elf_so'
20409 fi
20410 shlibpath_var=LD_LIBRARY_PATH
20411 shlibpath_overrides_runpath=yes
20412 hardcode_into_libs=yes
20413 ;;
20414
20415newsos6)
20416 version_type=linux
20417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20418 shlibpath_var=LD_LIBRARY_PATH
20419 shlibpath_overrides_runpath=yes
20420 ;;
20421
Reid Spencer2706f8c2004-09-19 23:53:36 +000020422nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020423 version_type=linux
20424 need_lib_prefix=no
20425 need_version=no
20426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20427 soname_spec='${libname}${release}${shared_ext}$major'
20428 shlibpath_var=LD_LIBRARY_PATH
20429 shlibpath_overrides_runpath=yes
20430 ;;
20431
20432openbsd*)
20433 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020434 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020435 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020436 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20437 case $host_os in
20438 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20439 *) need_version=no ;;
20440 esac
John Criswell47fdd832003-07-14 16:52:07 +000020441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20445 case $host_os in
20446 openbsd2.[89] | openbsd2.[89].*)
20447 shlibpath_overrides_runpath=no
20448 ;;
20449 *)
20450 shlibpath_overrides_runpath=yes
20451 ;;
20452 esac
20453 else
20454 shlibpath_overrides_runpath=yes
20455 fi
20456 ;;
20457
20458os2*)
20459 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020460 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020461 need_lib_prefix=no
20462 library_names_spec='$libname${shared_ext} $libname.a'
20463 dynamic_linker='OS/2 ld.exe'
20464 shlibpath_var=LIBPATH
20465 ;;
20466
20467osf3* | osf4* | osf5*)
20468 version_type=osf
20469 need_lib_prefix=no
20470 need_version=no
20471 soname_spec='${libname}${release}${shared_ext}$major'
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473 shlibpath_var=LD_LIBRARY_PATH
20474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20475 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20476 ;;
20477
John Criswell47fdd832003-07-14 16:52:07 +000020478solaris*)
20479 version_type=linux
20480 need_lib_prefix=no
20481 need_version=no
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 shlibpath_var=LD_LIBRARY_PATH
20485 shlibpath_overrides_runpath=yes
20486 hardcode_into_libs=yes
20487 # ldd complains unless libraries are executable
20488 postinstall_cmds='chmod +x $lib'
20489 ;;
20490
20491sunos4*)
20492 version_type=sunos
20493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20494 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20495 shlibpath_var=LD_LIBRARY_PATH
20496 shlibpath_overrides_runpath=yes
20497 if test "$with_gnu_ld" = yes; then
20498 need_lib_prefix=no
20499 fi
20500 need_version=yes
20501 ;;
20502
Reid Spencera773bd52006-08-04 18:18:08 +000020503sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020504 version_type=linux
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20506 soname_spec='${libname}${release}${shared_ext}$major'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 case $host_vendor in
20509 sni)
20510 shlibpath_overrides_runpath=no
20511 need_lib_prefix=no
20512 export_dynamic_flag_spec='${wl}-Blargedynsym'
20513 runpath_var=LD_RUN_PATH
20514 ;;
20515 siemens)
20516 need_lib_prefix=no
20517 ;;
20518 motorola)
20519 need_lib_prefix=no
20520 need_version=no
20521 shlibpath_overrides_runpath=no
20522 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20523 ;;
20524 esac
20525 ;;
20526
20527sysv4*MP*)
20528 if test -d /usr/nec ;then
20529 version_type=linux
20530 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20531 soname_spec='$libname${shared_ext}.$major'
20532 shlibpath_var=LD_LIBRARY_PATH
20533 fi
20534 ;;
20535
Reid Spencera773bd52006-08-04 18:18:08 +000020536sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20537 version_type=freebsd-elf
20538 need_lib_prefix=no
20539 need_version=no
20540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20541 soname_spec='${libname}${release}${shared_ext}$major'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 hardcode_into_libs=yes
20544 if test "$with_gnu_ld" = yes; then
20545 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20546 shlibpath_overrides_runpath=no
20547 else
20548 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20549 shlibpath_overrides_runpath=yes
20550 case $host_os in
20551 sco3.2v5*)
20552 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20553 ;;
20554 esac
20555 fi
20556 sys_lib_dlsearch_path_spec='/usr/lib'
20557 ;;
20558
John Criswell47fdd832003-07-14 16:52:07 +000020559uts4*)
20560 version_type=linux
20561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20562 soname_spec='${libname}${release}${shared_ext}$major'
20563 shlibpath_var=LD_LIBRARY_PATH
20564 ;;
20565
20566*)
20567 dynamic_linker=no
20568 ;;
20569esac
Reid Spencera773bd52006-08-04 18:18:08 +000020570{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20571echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020572test "$dynamic_linker" = no && can_build_shared=no
20573
Reid Spencera773bd52006-08-04 18:18:08 +000020574variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20575if test "$GCC" = yes; then
20576 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20577fi
20578
20579{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20580echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020581hardcode_action_CXX=
20582if test -n "$hardcode_libdir_flag_spec_CXX" || \
20583 test -n "$runpath_var_CXX" || \
20584 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20585
20586 # We can hardcode non-existant directories.
20587 if test "$hardcode_direct_CXX" != no &&
20588 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20589 # have to relink, otherwise we might link with an installed library
20590 # when we should be linking with a yet-to-be-installed one
20591 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20592 test "$hardcode_minus_L_CXX" != no; then
20593 # Linking always hardcodes the temporary library directory.
20594 hardcode_action_CXX=relink
20595 else
20596 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20597 hardcode_action_CXX=immediate
20598 fi
20599else
20600 # We cannot hardcode anything, or else we can only hardcode existing
20601 # directories.
20602 hardcode_action_CXX=unsupported
20603fi
Reid Spencera773bd52006-08-04 18:18:08 +000020604{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20605echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020606
20607if test "$hardcode_action_CXX" = relink; then
20608 # Fast installation is not supported
20609 enable_fast_install=no
20610elif test "$shlibpath_overrides_runpath" = yes ||
20611 test "$enable_shared" = no; then
20612 # Fast installation is not necessary
20613 enable_fast_install=needless
20614fi
20615
John Criswell47fdd832003-07-14 16:52:07 +000020616
20617# The else clause should only fire when bootstrapping the
20618# libtool distribution, otherwise you forgot to ship ltmain.sh
20619# with your package, and you will get complaints that there are
20620# no rules to generate ltmain.sh.
20621if test -f "$ltmain"; then
20622 # See if we are running on zsh, and set the options which allow our commands through
20623 # without removal of \ escapes.
20624 if test -n "${ZSH_VERSION+set}" ; then
20625 setopt NO_GLOB_SUBST
20626 fi
20627 # Now quote all the things that may contain metacharacters while being
20628 # careful not to overquote the AC_SUBSTed values. We take copies of the
20629 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020630 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 +000020631 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020632 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20633 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20634 deplibs_check_method reload_flag reload_cmds need_locks \
20635 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20636 lt_cv_sys_global_symbol_to_c_name_address \
20637 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20638 old_postinstall_cmds old_postuninstall_cmds \
20639 compiler_CXX \
20640 CC_CXX \
20641 LD_CXX \
20642 lt_prog_compiler_wl_CXX \
20643 lt_prog_compiler_pic_CXX \
20644 lt_prog_compiler_static_CXX \
20645 lt_prog_compiler_no_builtin_flag_CXX \
20646 export_dynamic_flag_spec_CXX \
20647 thread_safe_flag_spec_CXX \
20648 whole_archive_flag_spec_CXX \
20649 enable_shared_with_static_runtimes_CXX \
20650 old_archive_cmds_CXX \
20651 old_archive_from_new_cmds_CXX \
20652 predep_objects_CXX \
20653 postdep_objects_CXX \
20654 predeps_CXX \
20655 postdeps_CXX \
20656 compiler_lib_search_path_CXX \
20657 archive_cmds_CXX \
20658 archive_expsym_cmds_CXX \
20659 postinstall_cmds_CXX \
20660 postuninstall_cmds_CXX \
20661 old_archive_from_expsyms_cmds_CXX \
20662 allow_undefined_flag_CXX \
20663 no_undefined_flag_CXX \
20664 export_symbols_cmds_CXX \
20665 hardcode_libdir_flag_spec_CXX \
20666 hardcode_libdir_flag_spec_ld_CXX \
20667 hardcode_libdir_separator_CXX \
20668 hardcode_automatic_CXX \
20669 module_cmds_CXX \
20670 module_expsym_cmds_CXX \
20671 lt_cv_prog_compiler_c_o_CXX \
20672 exclude_expsyms_CXX \
20673 include_expsyms_CXX; do
20674
20675 case $var in
20676 old_archive_cmds_CXX | \
20677 old_archive_from_new_cmds_CXX | \
20678 archive_cmds_CXX | \
20679 archive_expsym_cmds_CXX | \
20680 module_cmds_CXX | \
20681 module_expsym_cmds_CXX | \
20682 old_archive_from_expsyms_cmds_CXX | \
20683 export_symbols_cmds_CXX | \
20684 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20685 postinstall_cmds | postuninstall_cmds | \
20686 old_postinstall_cmds | old_postuninstall_cmds | \
20687 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20688 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020689 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 +000020690 ;;
20691 *)
20692 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20693 ;;
20694 esac
20695 done
20696
20697 case $lt_echo in
20698 *'\$0 --fallback-echo"')
20699 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20700 ;;
20701 esac
20702
20703cfgfile="$ofile"
20704
20705 cat <<__EOF__ >> "$cfgfile"
20706# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20707
20708# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20709
20710# Shell to use when invoking shell scripts.
20711SHELL=$lt_SHELL
20712
20713# Whether or not to build shared libraries.
20714build_libtool_libs=$enable_shared
20715
20716# Whether or not to build static libraries.
20717build_old_libs=$enable_static
20718
20719# Whether or not to add -lc for building shared libraries.
20720build_libtool_need_lc=$archive_cmds_need_lc_CXX
20721
20722# Whether or not to disallow shared libs when runtime libs are static
20723allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20724
20725# Whether or not to optimize for fast installation.
20726fast_install=$enable_fast_install
20727
20728# The host system.
20729host_alias=$host_alias
20730host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020731host_os=$host_os
20732
20733# The build system.
20734build_alias=$build_alias
20735build=$build
20736build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020737
20738# An echo program that does not interpret backslashes.
20739echo=$lt_echo
20740
20741# The archiver.
20742AR=$lt_AR
20743AR_FLAGS=$lt_AR_FLAGS
20744
20745# A C compiler.
20746LTCC=$lt_LTCC
20747
Reid Spencera773bd52006-08-04 18:18:08 +000020748# LTCC compiler flags.
20749LTCFLAGS=$lt_LTCFLAGS
20750
John Criswell47fdd832003-07-14 16:52:07 +000020751# A language-specific compiler.
20752CC=$lt_compiler_CXX
20753
20754# Is the compiler the GNU C compiler?
20755with_gcc=$GCC_CXX
20756
20757# An ERE matcher.
20758EGREP=$lt_EGREP
20759
20760# The linker used to build libraries.
20761LD=$lt_LD_CXX
20762
20763# Whether we need hard or soft links.
20764LN_S=$lt_LN_S
20765
20766# A BSD-compatible nm program.
20767NM=$lt_NM
20768
20769# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020770STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020771
20772# Used to examine libraries when file_magic_cmd begins "file"
20773MAGIC_CMD=$MAGIC_CMD
20774
20775# Used on cygwin: DLL creation program.
20776DLLTOOL="$DLLTOOL"
20777
20778# Used on cygwin: object dumper.
20779OBJDUMP="$OBJDUMP"
20780
20781# Used on cygwin: assembler.
20782AS="$AS"
20783
20784# The name of the directory that contains temporary libtool files.
20785objdir=$objdir
20786
20787# How to create reloadable object files.
20788reload_flag=$lt_reload_flag
20789reload_cmds=$lt_reload_cmds
20790
20791# How to pass a linker flag through the compiler.
20792wl=$lt_lt_prog_compiler_wl_CXX
20793
20794# Object file suffix (normally "o").
20795objext="$ac_objext"
20796
20797# Old archive suffix (normally "a").
20798libext="$libext"
20799
20800# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020801shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020802
20803# Executable file suffix (normally "").
20804exeext="$exeext"
20805
20806# Additional compiler flags for building library objects.
20807pic_flag=$lt_lt_prog_compiler_pic_CXX
20808pic_mode=$pic_mode
20809
20810# What is the maximum length of a command?
20811max_cmd_len=$lt_cv_sys_max_cmd_len
20812
20813# Does compiler simultaneously support -c and -o options?
20814compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20815
Reid Spencera773bd52006-08-04 18:18:08 +000020816# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020817need_locks=$lt_need_locks
20818
20819# Do we need the lib prefix for modules?
20820need_lib_prefix=$need_lib_prefix
20821
20822# Do we need a version for libraries?
20823need_version=$need_version
20824
20825# Whether dlopen is supported.
20826dlopen_support=$enable_dlopen
20827
20828# Whether dlopen of programs is supported.
20829dlopen_self=$enable_dlopen_self
20830
20831# Whether dlopen of statically linked programs is supported.
20832dlopen_self_static=$enable_dlopen_self_static
20833
20834# Compiler flag to prevent dynamic linking.
20835link_static_flag=$lt_lt_prog_compiler_static_CXX
20836
20837# Compiler flag to turn off builtin functions.
20838no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20839
20840# Compiler flag to allow reflexive dlopens.
20841export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20842
20843# Compiler flag to generate shared objects directly from archives.
20844whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20845
20846# Compiler flag to generate thread-safe objects.
20847thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20848
20849# Library versioning type.
20850version_type=$version_type
20851
20852# Format of library name prefix.
20853libname_spec=$lt_libname_spec
20854
20855# List of archive names. First name is the real one, the rest are links.
20856# The last name is the one that the linker finds with -lNAME.
20857library_names_spec=$lt_library_names_spec
20858
20859# The coded name of the library, if different from the real name.
20860soname_spec=$lt_soname_spec
20861
20862# Commands used to build and install an old-style archive.
20863RANLIB=$lt_RANLIB
20864old_archive_cmds=$lt_old_archive_cmds_CXX
20865old_postinstall_cmds=$lt_old_postinstall_cmds
20866old_postuninstall_cmds=$lt_old_postuninstall_cmds
20867
20868# Create an old-style archive from a shared archive.
20869old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20870
20871# Create a temporary old-style archive to link instead of a shared archive.
20872old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20873
20874# Commands used to build and install a shared archive.
20875archive_cmds=$lt_archive_cmds_CXX
20876archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20877postinstall_cmds=$lt_postinstall_cmds
20878postuninstall_cmds=$lt_postuninstall_cmds
20879
20880# Commands used to build a loadable module (assumed same as above if empty)
20881module_cmds=$lt_module_cmds_CXX
20882module_expsym_cmds=$lt_module_expsym_cmds_CXX
20883
20884# Commands to strip libraries.
20885old_striplib=$lt_old_striplib
20886striplib=$lt_striplib
20887
20888# Dependencies to place before the objects being linked to create a
20889# shared library.
20890predep_objects=$lt_predep_objects_CXX
20891
20892# Dependencies to place after the objects being linked to create a
20893# shared library.
20894postdep_objects=$lt_postdep_objects_CXX
20895
20896# Dependencies to place before the objects being linked to create a
20897# shared library.
20898predeps=$lt_predeps_CXX
20899
20900# Dependencies to place after the objects being linked to create a
20901# shared library.
20902postdeps=$lt_postdeps_CXX
20903
20904# The library search path used internally by the compiler when linking
20905# a shared library.
20906compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20907
20908# Method to check whether dependent libraries are shared objects.
20909deplibs_check_method=$lt_deplibs_check_method
20910
20911# Command to use when deplibs_check_method == file_magic.
20912file_magic_cmd=$lt_file_magic_cmd
20913
20914# Flag that allows shared libraries with undefined symbols to be built.
20915allow_undefined_flag=$lt_allow_undefined_flag_CXX
20916
20917# Flag that forces no undefined symbols.
20918no_undefined_flag=$lt_no_undefined_flag_CXX
20919
20920# Commands used to finish a libtool library installation in a directory.
20921finish_cmds=$lt_finish_cmds
20922
20923# Same as above, but a single script fragment to be evaled but not shown.
20924finish_eval=$lt_finish_eval
20925
20926# Take the output of nm and produce a listing of raw symbols and C names.
20927global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20928
20929# Transform the output of nm in a proper C declaration
20930global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20931
20932# Transform the output of nm in a C name address pair
20933global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20934
20935# This is the shared library runtime path variable.
20936runpath_var=$runpath_var
20937
20938# This is the shared library path variable.
20939shlibpath_var=$shlibpath_var
20940
20941# Is shlibpath searched before the hard-coded library search path?
20942shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20943
20944# How to hardcode a shared library path into an executable.
20945hardcode_action=$hardcode_action_CXX
20946
20947# Whether we should hardcode library paths into libraries.
20948hardcode_into_libs=$hardcode_into_libs
20949
20950# Flag to hardcode \$libdir into a binary during linking.
20951# This must work even if \$libdir does not exist.
20952hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20953
20954# If ld is used when linking, flag to hardcode \$libdir into
20955# a binary during linking. This must work even if \$libdir does
20956# not exist.
20957hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20958
20959# Whether we need a single -rpath flag with a separated argument.
20960hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20961
20962# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20963# resulting binary.
20964hardcode_direct=$hardcode_direct_CXX
20965
20966# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20967# resulting binary.
20968hardcode_minus_L=$hardcode_minus_L_CXX
20969
20970# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20971# the resulting binary.
20972hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20973
20974# Set to yes if building a shared library automatically hardcodes DIR into the library
20975# and all subsequent libraries and executables linked against it.
20976hardcode_automatic=$hardcode_automatic_CXX
20977
20978# Variables whose values should be saved in libtool wrapper scripts and
20979# restored at relink time.
20980variables_saved_for_relink="$variables_saved_for_relink"
20981
20982# Whether libtool must link a program against all its dependency libraries.
20983link_all_deplibs=$link_all_deplibs_CXX
20984
20985# Compile-time system search path for libraries
20986sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20987
20988# Run-time system search path for libraries
20989sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20990
20991# Fix the shell variable \$srcfile for the compiler.
20992fix_srcfile_path="$fix_srcfile_path_CXX"
20993
20994# Set to yes if exported symbols are required.
20995always_export_symbols=$always_export_symbols_CXX
20996
20997# The commands to list exported symbols.
20998export_symbols_cmds=$lt_export_symbols_cmds_CXX
20999
21000# The commands to extract the exported symbol list from a shared archive.
21001extract_expsyms_cmds=$lt_extract_expsyms_cmds
21002
21003# Symbols that should not be listed in the preloaded symbols.
21004exclude_expsyms=$lt_exclude_expsyms_CXX
21005
21006# Symbols that must always be exported.
21007include_expsyms=$lt_include_expsyms_CXX
21008
21009# ### END LIBTOOL TAG CONFIG: $tagname
21010
21011__EOF__
21012
21013
21014else
21015 # If there is no Makefile yet, we rely on a make rule to execute
21016 # `config.status --recheck' to rerun these tests and create the
21017 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021018 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21019 if test -f "$ltmain_in"; then
21020 test -f Makefile && make "$ltmain"
21021 fi
John Criswell47fdd832003-07-14 16:52:07 +000021022fi
21023
21024
21025ac_ext=c
21026ac_cpp='$CPP $CPPFLAGS'
21027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029ac_compiler_gnu=$ac_cv_c_compiler_gnu
21030
21031CC=$lt_save_CC
21032LDCXX=$LD
21033LD=$lt_save_LD
21034GCC=$lt_save_GCC
21035with_gnu_ldcxx=$with_gnu_ld
21036with_gnu_ld=$lt_save_with_gnu_ld
21037lt_cv_path_LDCXX=$lt_cv_path_LD
21038lt_cv_path_LD=$lt_save_path_LD
21039lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21040lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21041
21042 else
21043 tagname=""
21044 fi
21045 ;;
21046
21047 F77)
21048 if test -n "$F77" && test "X$F77" != "Xno"; then
21049
21050ac_ext=f
21051ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21052ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21053ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21054
21055
21056archive_cmds_need_lc_F77=no
21057allow_undefined_flag_F77=
21058always_export_symbols_F77=no
21059archive_expsym_cmds_F77=
21060export_dynamic_flag_spec_F77=
21061hardcode_direct_F77=no
21062hardcode_libdir_flag_spec_F77=
21063hardcode_libdir_flag_spec_ld_F77=
21064hardcode_libdir_separator_F77=
21065hardcode_minus_L_F77=no
21066hardcode_automatic_F77=no
21067module_cmds_F77=
21068module_expsym_cmds_F77=
21069link_all_deplibs_F77=unknown
21070old_archive_cmds_F77=$old_archive_cmds
21071no_undefined_flag_F77=
21072whole_archive_flag_spec_F77=
21073enable_shared_with_static_runtimes_F77=no
21074
21075# Source file extension for f77 test sources.
21076ac_ext=f
21077
21078# Object file extension for compiled f77 test sources.
21079objext=o
21080objext_F77=$objext
21081
21082# Code to be used in simple compile tests
21083lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21084
21085# Code to be used in simple link tests
21086lt_simple_link_test_code=" program t\n end\n"
21087
21088# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21089
21090# If no C compiler was specified, use CC.
21091LTCC=${LTCC-"$CC"}
21092
Reid Spencera773bd52006-08-04 18:18:08 +000021093# If no C compiler flags were specified, use CFLAGS.
21094LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21095
John Criswell47fdd832003-07-14 16:52:07 +000021096# Allow CC to be a program name with arguments.
21097compiler=$CC
21098
21099
Reid Spencera773bd52006-08-04 18:18:08 +000021100# save warnings/boilerplate of simple test code
21101ac_outfile=conftest.$ac_objext
21102printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21103eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21104_lt_compiler_boilerplate=`cat conftest.err`
21105$rm conftest*
21106
21107ac_outfile=conftest.$ac_objext
21108printf "$lt_simple_link_test_code" >conftest.$ac_ext
21109eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21110_lt_linker_boilerplate=`cat conftest.err`
21111$rm conftest*
21112
21113
John Criswell47fdd832003-07-14 16:52:07 +000021114# Allow CC to be a program name with arguments.
21115lt_save_CC="$CC"
21116CC=${F77-"f77"}
21117compiler=$CC
21118compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021119for cc_temp in $compiler""; do
21120 case $cc_temp in
21121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21123 \-*) ;;
21124 *) break;;
21125 esac
21126done
21127cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021128
John Criswell47fdd832003-07-14 16:52:07 +000021129
Reid Spencera773bd52006-08-04 18:18:08 +000021130{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21131echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21132{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21133echo "${ECHO_T}$can_build_shared" >&6; }
21134
21135{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21136echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021137test "$can_build_shared" = "no" && enable_shared=no
21138
21139# On AIX, shared libraries and static libraries use the same namespace, and
21140# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021141case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021142aix3*)
21143 test "$enable_shared" = yes && enable_static=no
21144 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021145 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021146 postinstall_cmds='$RANLIB $lib'
21147 fi
21148 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021149aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021150 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21151 test "$enable_shared" = yes && enable_static=no
21152 fi
John Criswell47fdd832003-07-14 16:52:07 +000021153 ;;
21154esac
Reid Spencera773bd52006-08-04 18:18:08 +000021155{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21156echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021157
Reid Spencera773bd52006-08-04 18:18:08 +000021158{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21159echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021160# Make sure either enable_shared or enable_static is yes.
21161test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021162{ echo "$as_me:$LINENO: result: $enable_static" >&5
21163echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021164
21165GCC_F77="$G77"
21166LD_F77="$LD"
21167
21168lt_prog_compiler_wl_F77=
21169lt_prog_compiler_pic_F77=
21170lt_prog_compiler_static_F77=
21171
Reid Spencera773bd52006-08-04 18:18:08 +000021172{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21173echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021174
21175 if test "$GCC" = yes; then
21176 lt_prog_compiler_wl_F77='-Wl,'
21177 lt_prog_compiler_static_F77='-static'
21178
21179 case $host_os in
21180 aix*)
21181 # All AIX code is PIC.
21182 if test "$host_cpu" = ia64; then
21183 # AIX 5 now supports IA64 processor
21184 lt_prog_compiler_static_F77='-Bstatic'
21185 fi
21186 ;;
21187
21188 amigaos*)
21189 # FIXME: we need at least 68020 code to build shared libraries, but
21190 # adding the `-m68020' flag to GCC prevents building anything better,
21191 # like `-m68040'.
21192 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21193 ;;
21194
21195 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21196 # PIC is the default for these OSes.
21197 ;;
21198
21199 mingw* | pw32* | os2*)
21200 # This hack is so that the source file can tell whether it is being
21201 # built for inclusion in a dll (and should export symbols for example).
21202 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21203 ;;
21204
21205 darwin* | rhapsody*)
21206 # PIC is the default on this platform
21207 # Common symbols not allowed in MH_DYLIB files
21208 lt_prog_compiler_pic_F77='-fno-common'
21209 ;;
21210
Reid Spencera773bd52006-08-04 18:18:08 +000021211 interix3*)
21212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21213 # Instead, we relocate shared libraries at runtime.
21214 ;;
21215
John Criswell47fdd832003-07-14 16:52:07 +000021216 msdosdjgpp*)
21217 # Just because we use GCC doesn't mean we suddenly get shared libraries
21218 # on systems that don't support them.
21219 lt_prog_compiler_can_build_shared_F77=no
21220 enable_shared=no
21221 ;;
21222
21223 sysv4*MP*)
21224 if test -d /usr/nec; then
21225 lt_prog_compiler_pic_F77=-Kconform_pic
21226 fi
21227 ;;
21228
21229 hpux*)
21230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21231 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021232 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021233 hppa*64*|ia64*)
21234 # +Z the default
21235 ;;
21236 *)
21237 lt_prog_compiler_pic_F77='-fPIC'
21238 ;;
21239 esac
21240 ;;
21241
21242 *)
21243 lt_prog_compiler_pic_F77='-fPIC'
21244 ;;
21245 esac
21246 else
21247 # PORTME Check for flag to pass linker flags through the system compiler.
21248 case $host_os in
21249 aix*)
21250 lt_prog_compiler_wl_F77='-Wl,'
21251 if test "$host_cpu" = ia64; then
21252 # AIX 5 now supports IA64 processor
21253 lt_prog_compiler_static_F77='-Bstatic'
21254 else
21255 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21256 fi
21257 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021258 darwin*)
21259 # PIC is the default on this platform
21260 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021261 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021262 xlc*)
21263 lt_prog_compiler_pic_F77='-qnocommon'
21264 lt_prog_compiler_wl_F77='-Wl,'
21265 ;;
21266 esac
21267 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021268
21269 mingw* | pw32* | os2*)
21270 # This hack is so that the source file can tell whether it is being
21271 # built for inclusion in a dll (and should export symbols for example).
21272 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21273 ;;
21274
21275 hpux9* | hpux10* | hpux11*)
21276 lt_prog_compiler_wl_F77='-Wl,'
21277 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21278 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021279 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021280 hppa*64*|ia64*)
21281 # +Z the default
21282 ;;
21283 *)
21284 lt_prog_compiler_pic_F77='+Z'
21285 ;;
21286 esac
21287 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21288 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21289 ;;
21290
21291 irix5* | irix6* | nonstopux*)
21292 lt_prog_compiler_wl_F77='-Wl,'
21293 # PIC (with -KPIC) is the default.
21294 lt_prog_compiler_static_F77='-non_shared'
21295 ;;
21296
21297 newsos6)
21298 lt_prog_compiler_pic_F77='-KPIC'
21299 lt_prog_compiler_static_F77='-Bstatic'
21300 ;;
21301
21302 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021303 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021304 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021305 lt_prog_compiler_wl_F77='-Wl,'
21306 lt_prog_compiler_pic_F77='-KPIC'
21307 lt_prog_compiler_static_F77='-static'
21308 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021309 pgcc* | pgf77* | pgf90* | pgf95*)
21310 # Portland Group compilers (*not* the Pentium gcc compiler,
21311 # which looks to be a dead project)
21312 lt_prog_compiler_wl_F77='-Wl,'
21313 lt_prog_compiler_pic_F77='-fpic'
21314 lt_prog_compiler_static_F77='-Bstatic'
21315 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021316 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021317 lt_prog_compiler_wl_F77='-Wl,'
21318 # All Alpha code is PIC.
21319 lt_prog_compiler_static_F77='-non_shared'
21320 ;;
21321 esac
21322 ;;
21323
21324 osf3* | osf4* | osf5*)
21325 lt_prog_compiler_wl_F77='-Wl,'
21326 # All OSF/1 code is PIC.
21327 lt_prog_compiler_static_F77='-non_shared'
21328 ;;
21329
John Criswell47fdd832003-07-14 16:52:07 +000021330 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021331 lt_prog_compiler_pic_F77='-KPIC'
21332 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021333 case $cc_basename in
21334 f77* | f90* | f95*)
21335 lt_prog_compiler_wl_F77='-Qoption ld ';;
21336 *)
21337 lt_prog_compiler_wl_F77='-Wl,';;
21338 esac
John Criswell47fdd832003-07-14 16:52:07 +000021339 ;;
21340
21341 sunos4*)
21342 lt_prog_compiler_wl_F77='-Qoption ld '
21343 lt_prog_compiler_pic_F77='-PIC'
21344 lt_prog_compiler_static_F77='-Bstatic'
21345 ;;
21346
Reid Spencera773bd52006-08-04 18:18:08 +000021347 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021348 lt_prog_compiler_wl_F77='-Wl,'
21349 lt_prog_compiler_pic_F77='-KPIC'
21350 lt_prog_compiler_static_F77='-Bstatic'
21351 ;;
21352
21353 sysv4*MP*)
21354 if test -d /usr/nec ;then
21355 lt_prog_compiler_pic_F77='-Kconform_pic'
21356 lt_prog_compiler_static_F77='-Bstatic'
21357 fi
21358 ;;
21359
Reid Spencera773bd52006-08-04 18:18:08 +000021360 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21361 lt_prog_compiler_wl_F77='-Wl,'
21362 lt_prog_compiler_pic_F77='-KPIC'
21363 lt_prog_compiler_static_F77='-Bstatic'
21364 ;;
21365
21366 unicos*)
21367 lt_prog_compiler_wl_F77='-Wl,'
21368 lt_prog_compiler_can_build_shared_F77=no
21369 ;;
21370
John Criswell47fdd832003-07-14 16:52:07 +000021371 uts4*)
21372 lt_prog_compiler_pic_F77='-pic'
21373 lt_prog_compiler_static_F77='-Bstatic'
21374 ;;
21375
21376 *)
21377 lt_prog_compiler_can_build_shared_F77=no
21378 ;;
21379 esac
21380 fi
21381
Reid Spencera773bd52006-08-04 18:18:08 +000021382{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21383echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021384
21385#
21386# Check to make sure the PIC flag actually works.
21387#
21388if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021389
Reid Spencera773bd52006-08-04 18:18:08 +000021390{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21391echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021392if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21394else
21395 lt_prog_compiler_pic_works_F77=no
21396 ac_outfile=conftest.$ac_objext
21397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21398 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21399 # Insert the option either (1) after the last *FLAGS variable, or
21400 # (2) before a word containing "conftest.", or (3) at the end.
21401 # Note that $ac_compile itself does not contain backslashes and begins
21402 # with a dollar sign (not a hyphen), so the echo should work correctly.
21403 # The option is referenced via a variable to avoid confusing sed.
21404 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21407 -e 's:$: $lt_compiler_flag:'`
Devang Patel5d28b882007-12-04 22:54:47 +000021408 (eval echo "\"\$as_me:21408: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021409 (eval "$lt_compile" 2>conftest.err)
21410 ac_status=$?
21411 cat conftest.err >&5
Devang Patel5d28b882007-12-04 22:54:47 +000021412 echo "$as_me:21412: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021413 if (exit $ac_status) && test -s "$ac_outfile"; then
21414 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021415 # So say no if there are warnings other than the usual output.
21416 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021419 lt_prog_compiler_pic_works_F77=yes
21420 fi
21421 fi
21422 $rm conftest*
21423
21424fi
Reid Spencera773bd52006-08-04 18:18:08 +000021425{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21426echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021427
21428if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21429 case $lt_prog_compiler_pic_F77 in
21430 "" | " "*) ;;
21431 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21432 esac
21433else
21434 lt_prog_compiler_pic_F77=
21435 lt_prog_compiler_can_build_shared_F77=no
21436fi
21437
21438fi
Reid Spencera773bd52006-08-04 18:18:08 +000021439case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021440 # For platforms which do not support PIC, -DPIC is meaningless:
21441 *djgpp*)
21442 lt_prog_compiler_pic_F77=
21443 ;;
21444 *)
21445 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21446 ;;
21447esac
21448
Reid Spencera773bd52006-08-04 18:18:08 +000021449#
21450# Check to make sure the static flag actually works.
21451#
21452wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21453{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21454echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21455if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457else
21458 lt_prog_compiler_static_works_F77=no
21459 save_LDFLAGS="$LDFLAGS"
21460 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21461 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21463 # The linker can only warn and ignore the option if not recognized
21464 # So say no if there are warnings
21465 if test -s conftest.err; then
21466 # Append any errors to the config.log.
21467 cat conftest.err 1>&5
21468 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21470 if diff conftest.exp conftest.er2 >/dev/null; then
21471 lt_prog_compiler_static_works_F77=yes
21472 fi
21473 else
21474 lt_prog_compiler_static_works_F77=yes
21475 fi
21476 fi
21477 $rm conftest*
21478 LDFLAGS="$save_LDFLAGS"
21479
21480fi
21481{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21482echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21483
21484if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21485 :
21486else
21487 lt_prog_compiler_static_F77=
21488fi
21489
21490
21491{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21492echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021493if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21494 echo $ECHO_N "(cached) $ECHO_C" >&6
21495else
21496 lt_cv_prog_compiler_c_o_F77=no
21497 $rm -r conftest 2>/dev/null
21498 mkdir conftest
21499 cd conftest
21500 mkdir out
21501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21502
John Criswell47fdd832003-07-14 16:52:07 +000021503 lt_compiler_flag="-o out/conftest2.$ac_objext"
21504 # Insert the option either (1) after the last *FLAGS variable, or
21505 # (2) before a word containing "conftest.", or (3) at the end.
21506 # Note that $ac_compile itself does not contain backslashes and begins
21507 # with a dollar sign (not a hyphen), so the echo should work correctly.
21508 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21511 -e 's:$: $lt_compiler_flag:'`
Devang Patel5d28b882007-12-04 22:54:47 +000021512 (eval echo "\"\$as_me:21512: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021513 (eval "$lt_compile" 2>out/conftest.err)
21514 ac_status=$?
21515 cat out/conftest.err >&5
Devang Patel5d28b882007-12-04 22:54:47 +000021516 echo "$as_me:21516: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21518 then
21519 # The compiler can only warn and ignore the option if not recognized
21520 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021521 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021524 lt_cv_prog_compiler_c_o_F77=yes
21525 fi
21526 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021527 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021528 $rm conftest*
21529 # SGI C++ compiler will create directory out/ii_files/ for
21530 # template instantiation
21531 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21532 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021533 cd ..
21534 rmdir conftest
21535 $rm conftest*
21536
21537fi
Reid Spencera773bd52006-08-04 18:18:08 +000021538{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21539echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021540
21541
21542hard_links="nottested"
21543if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21544 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021545 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21546echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021547 hard_links=yes
21548 $rm conftest*
21549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21550 touch conftest.a
21551 ln conftest.a conftest.b 2>&5 || hard_links=no
21552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021553 { echo "$as_me:$LINENO: result: $hard_links" >&5
21554echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021555 if test "$hard_links" = no; then
21556 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21557echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21558 need_locks=warn
21559 fi
21560else
21561 need_locks=no
21562fi
21563
Reid Spencera773bd52006-08-04 18:18:08 +000021564{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21565echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021566
21567 runpath_var=
21568 allow_undefined_flag_F77=
21569 enable_shared_with_static_runtimes_F77=no
21570 archive_cmds_F77=
21571 archive_expsym_cmds_F77=
21572 old_archive_From_new_cmds_F77=
21573 old_archive_from_expsyms_cmds_F77=
21574 export_dynamic_flag_spec_F77=
21575 whole_archive_flag_spec_F77=
21576 thread_safe_flag_spec_F77=
21577 hardcode_libdir_flag_spec_F77=
21578 hardcode_libdir_flag_spec_ld_F77=
21579 hardcode_libdir_separator_F77=
21580 hardcode_direct_F77=no
21581 hardcode_minus_L_F77=no
21582 hardcode_shlibpath_var_F77=unsupported
21583 link_all_deplibs_F77=unknown
21584 hardcode_automatic_F77=no
21585 module_cmds_F77=
21586 module_expsym_cmds_F77=
21587 always_export_symbols_F77=no
21588 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21589 # include_expsyms should be a list of space-separated symbols to be *always*
21590 # included in the symbol list
21591 include_expsyms_F77=
21592 # exclude_expsyms can be an extended regexp of symbols to exclude
21593 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21594 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21595 # as well as any symbol that contains `d'.
21596 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21597 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21598 # platforms (ab)use it in PIC code, but their linkers get confused if
21599 # the symbol is explicitly referenced. Since portable code cannot
21600 # rely on this symbol name, it's probably fine to never include it in
21601 # preloaded symbol tables.
21602 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021603 # Just being paranoid about ensuring that cc_basename is set.
21604 for cc_temp in $compiler""; do
21605 case $cc_temp in
21606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21608 \-*) ;;
21609 *) break;;
21610 esac
21611done
21612cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021613
21614 case $host_os in
21615 cygwin* | mingw* | pw32*)
21616 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21617 # When not using gcc, we currently assume that we are using
21618 # Microsoft Visual C++.
21619 if test "$GCC" != yes; then
21620 with_gnu_ld=no
21621 fi
21622 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021623 interix*)
21624 # we just hope/assume this is gcc and not c89 (= MSVC++)
21625 with_gnu_ld=yes
21626 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021627 openbsd*)
21628 with_gnu_ld=no
21629 ;;
21630 esac
21631
21632 ld_shlibs_F77=yes
21633 if test "$with_gnu_ld" = yes; then
21634 # If archive_cmds runs LD, not CC, wlarc should be empty
21635 wlarc='${wl}'
21636
Reid Spencera773bd52006-08-04 18:18:08 +000021637 # Set some defaults for GNU ld with shared library support. These
21638 # are reset later if shared libraries are not supported. Putting them
21639 # here allows them to be overridden if necessary.
21640 runpath_var=LD_RUN_PATH
21641 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21642 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21643 # ancient GNU ld didn't support --whole-archive et. al.
21644 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21645 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21646 else
21647 whole_archive_flag_spec_F77=
21648 fi
21649 supports_anon_versioning=no
21650 case `$LD -v 2>/dev/null` in
21651 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21652 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21653 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21654 *\ 2.11.*) ;; # other 2.11 versions
21655 *) supports_anon_versioning=yes ;;
21656 esac
21657
John Criswell47fdd832003-07-14 16:52:07 +000021658 # See if GNU ld supports shared libraries.
21659 case $host_os in
21660 aix3* | aix4* | aix5*)
21661 # On AIX/PPC, the GNU linker is very broken
21662 if test "$host_cpu" != ia64; then
21663 ld_shlibs_F77=no
21664 cat <<EOF 1>&2
21665
21666*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21667*** to be unable to reliably create shared libraries on AIX.
21668*** Therefore, libtool is disabling shared libraries support. If you
21669*** really care for shared libraries, you may want to modify your PATH
21670*** so that a non-GNU linker is found, and then restart.
21671
21672EOF
21673 fi
21674 ;;
21675
21676 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021677 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 +000021678 hardcode_libdir_flag_spec_F77='-L$libdir'
21679 hardcode_minus_L_F77=yes
21680
21681 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21682 # that the semantics of dynamic libraries on AmigaOS, at least up
21683 # to version 4, is to share data among multiple programs linked
21684 # with the same dynamic library. Since this doesn't match the
21685 # behavior of shared libraries on other platforms, we can't use
21686 # them.
21687 ld_shlibs_F77=no
21688 ;;
21689
21690 beos*)
21691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21692 allow_undefined_flag_F77=unsupported
21693 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21694 # support --undefined. This deserves some investigation. FIXME
21695 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21696 else
21697 ld_shlibs_F77=no
21698 fi
21699 ;;
21700
21701 cygwin* | mingw* | pw32*)
21702 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21703 # as there is no search path for DLLs.
21704 hardcode_libdir_flag_spec_F77='-L$libdir'
21705 allow_undefined_flag_F77=unsupported
21706 always_export_symbols_F77=no
21707 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021708 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 +000021709
21710 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021711 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 +000021712 # If the export-symbols file already is a .def file (1st line
21713 # is EXPORTS), use it as is; otherwise, prepend...
21714 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21715 cp $export_symbols $output_objdir/$soname.def;
21716 else
21717 echo EXPORTS > $output_objdir/$soname.def;
21718 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021719 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021720 $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 +000021721 else
Reid Spencera773bd52006-08-04 18:18:08 +000021722 ld_shlibs_F77=no
21723 fi
21724 ;;
21725
21726 interix3*)
21727 hardcode_direct_F77=no
21728 hardcode_shlibpath_var_F77=no
21729 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21730 export_dynamic_flag_spec_F77='${wl}-E'
21731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21732 # Instead, shared libraries are loaded at an image base (0x10000000 by
21733 # default) and relocated if they conflict, which is a slow very memory
21734 # consuming and fragmenting process. To avoid this, we pick a random,
21735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21737 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'
21738 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'
21739 ;;
21740
21741 linux*)
21742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21743 tmp_addflag=
21744 case $cc_basename,$host_cpu in
21745 pgcc*) # Portland Group C compiler
21746 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'
21747 tmp_addflag=' $pic_flag'
21748 ;;
21749 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21750 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'
21751 tmp_addflag=' $pic_flag -Mnomain' ;;
21752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21753 tmp_addflag=' -i_dynamic' ;;
21754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21755 tmp_addflag=' -i_dynamic -nofor_main' ;;
21756 ifc* | ifort*) # Intel Fortran compiler
21757 tmp_addflag=' -nofor_main' ;;
21758 esac
21759 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21760
21761 if test $supports_anon_versioning = yes; then
21762 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21764 $echo "local: *; };" >> $output_objdir/$libname.ver~
21765 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21766 fi
21767 else
21768 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021769 fi
21770 ;;
21771
21772 netbsd*)
21773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21774 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21775 wlarc=
21776 else
21777 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21778 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21779 fi
21780 ;;
21781
Reid Spencera773bd52006-08-04 18:18:08 +000021782 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021783 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21784 ld_shlibs_F77=no
21785 cat <<EOF 1>&2
21786
21787*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21788*** create shared libraries on Solaris systems. Therefore, libtool
21789*** is disabling shared libraries support. We urge you to upgrade GNU
21790*** binutils to release 2.9.1 or newer. Another option is to modify
21791*** your PATH or compiler configuration so that the native linker is
21792*** used, and then restart.
21793
21794EOF
21795 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21797 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21798 else
21799 ld_shlibs_F77=no
21800 fi
21801 ;;
21802
Reid Spencera773bd52006-08-04 18:18:08 +000021803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21804 case `$LD -v 2>&1` in
21805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21806 ld_shlibs_F77=no
21807 cat <<_LT_EOF 1>&2
21808
21809*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21810*** reliably create shared libraries on SCO systems. Therefore, libtool
21811*** is disabling shared libraries support. We urge you to upgrade GNU
21812*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21813*** your PATH or compiler configuration so that the native linker is
21814*** used, and then restart.
21815
21816_LT_EOF
21817 ;;
21818 *)
21819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21820 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21822 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21823 else
21824 ld_shlibs_F77=no
21825 fi
21826 ;;
21827 esac
21828 ;;
21829
John Criswell47fdd832003-07-14 16:52:07 +000021830 sunos4*)
21831 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21832 wlarc=
21833 hardcode_direct_F77=yes
21834 hardcode_shlibpath_var_F77=no
21835 ;;
21836
21837 *)
21838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21839 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21840 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21841 else
21842 ld_shlibs_F77=no
21843 fi
21844 ;;
21845 esac
21846
Reid Spencera773bd52006-08-04 18:18:08 +000021847 if test "$ld_shlibs_F77" = no; then
21848 runpath_var=
21849 hardcode_libdir_flag_spec_F77=
21850 export_dynamic_flag_spec_F77=
21851 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021852 fi
21853 else
21854 # PORTME fill in a description of your system's linker (not GNU ld)
21855 case $host_os in
21856 aix3*)
21857 allow_undefined_flag_F77=unsupported
21858 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021859 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 +000021860 # Note: this linker hardcodes the directories in LIBPATH if there
21861 # are no directories specified by -L.
21862 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021863 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021864 # Neither direct hardcoding nor static linking is supported with a
21865 # broken collect2.
21866 hardcode_direct_F77=unsupported
21867 fi
21868 ;;
21869
21870 aix4* | aix5*)
21871 if test "$host_cpu" = ia64; then
21872 # On IA64, the linker does run time linking by default, so we don't
21873 # have to do anything special.
21874 aix_use_runtimelinking=no
21875 exp_sym_flag='-Bexport'
21876 no_entry_flag=""
21877 else
21878 # If we're using GNU nm, then we don't want the "-C" option.
21879 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21880 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21881 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'
21882 else
21883 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'
21884 fi
21885 aix_use_runtimelinking=no
21886
21887 # Test if we are trying to use run time linking or normal
21888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21889 # need to do runtime linking.
21890 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21891 for ld_flag in $LDFLAGS; do
21892 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21893 aix_use_runtimelinking=yes
21894 break
21895 fi
21896 done
Reid Spencera773bd52006-08-04 18:18:08 +000021897 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021898 esac
21899
21900 exp_sym_flag='-bexport'
21901 no_entry_flag='-bnoentry'
21902 fi
21903
21904 # When large executables or shared objects are built, AIX ld can
21905 # have problems creating the table of contents. If linking a library
21906 # or program results in "error TOC overflow" add -mminimal-toc to
21907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21909
21910 archive_cmds_F77=''
21911 hardcode_direct_F77=yes
21912 hardcode_libdir_separator_F77=':'
21913 link_all_deplibs_F77=yes
21914
21915 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021916 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021917 # We only want to do this on AIX 4.2 and lower, the check
21918 # below for broken collect2 doesn't work under 4.3+
21919 collect2name=`${CC} -print-prog-name=collect2`
21920 if test -f "$collect2name" && \
21921 strings "$collect2name" | grep resolve_lib_name >/dev/null
21922 then
21923 # We have reworked collect2
21924 hardcode_direct_F77=yes
21925 else
21926 # We have old collect2
21927 hardcode_direct_F77=unsupported
21928 # It fails to find uninstalled libraries when the uninstalled
21929 # path is not listed in the libpath. Setting hardcode_minus_L
21930 # to unsupported forces relinking
21931 hardcode_minus_L_F77=yes
21932 hardcode_libdir_flag_spec_F77='-L$libdir'
21933 hardcode_libdir_separator_F77=
21934 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021935 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021936 esac
21937 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021938 if test "$aix_use_runtimelinking" = yes; then
21939 shared_flag="$shared_flag "'${wl}-G'
21940 fi
John Criswell47fdd832003-07-14 16:52:07 +000021941 else
21942 # not using gcc
21943 if test "$host_cpu" = ia64; then
21944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21945 # chokes on -Wl,-G. The following line is correct:
21946 shared_flag='-G'
21947 else
Reid Spencera773bd52006-08-04 18:18:08 +000021948 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021949 shared_flag='${wl}-G'
21950 else
21951 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021952 fi
John Criswell47fdd832003-07-14 16:52:07 +000021953 fi
21954 fi
21955
21956 # It seems that -bexpall does not export symbols beginning with
21957 # underscore (_), so it is better to generate a list of symbols to export.
21958 always_export_symbols_F77=yes
21959 if test "$aix_use_runtimelinking" = yes; then
21960 # Warning - without using the other runtime loading flags (-brtl),
21961 # -berok will link without error, but may produce a broken library.
21962 allow_undefined_flag_F77='-berok'
21963 # Determine the default libpath from the value encoded in an empty executable.
21964 cat >conftest.$ac_ext <<_ACEOF
21965 program main
21966
21967 end
21968_ACEOF
21969rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021970if { (ac_try="$ac_link"
21971case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21974esac
21975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021977 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021978 grep -v '^ *+' conftest.er1 >conftest.err
21979 rm -f conftest.er1
21980 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021983 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21984 { (case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21987esac
21988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021990 ac_status=$?
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; } &&
21993 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021994 { (case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21997esac
21998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000022000 ac_status=$?
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; }; then
22003
22004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22005}'`
22006# Check for a 64-bit object if we didn't find anything.
22007if 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; }
22008}'`; fi
22009else
22010 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022011sed 's/^/| /' conftest.$ac_ext >&5
22012
Reid Spencera773bd52006-08-04 18:18:08 +000022013
John Criswell47fdd832003-07-14 16:52:07 +000022014fi
Reid Spencera773bd52006-08-04 18:18:08 +000022015
22016rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022017 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022018if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22019
22020 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022021 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 +000022022 else
22023 if test "$host_cpu" = ia64; then
22024 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22025 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022026 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 +000022027 else
22028 # Determine the default libpath from the value encoded in an empty executable.
22029 cat >conftest.$ac_ext <<_ACEOF
22030 program main
22031
22032 end
22033_ACEOF
22034rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022035if { (ac_try="$ac_link"
22036case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22039esac
22040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022042 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022043 grep -v '^ *+' conftest.er1 >conftest.err
22044 rm -f conftest.er1
22045 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000022048 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22049 { (case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22052esac
22053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000022059 { (case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22062esac
22063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000022065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068
22069aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22070}'`
22071# Check for a 64-bit object if we didn't find anything.
22072if 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; }
22073}'`; fi
22074else
22075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022076sed 's/^/| /' conftest.$ac_ext >&5
22077
Reid Spencera773bd52006-08-04 18:18:08 +000022078
John Criswell47fdd832003-07-14 16:52:07 +000022079fi
Reid Spencera773bd52006-08-04 18:18:08 +000022080
22081rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022082 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022083if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22084
22085 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22086 # Warning - without using the other run time loading flags,
22087 # -berok will link without error, but may produce a broken library.
22088 no_undefined_flag_F77=' ${wl}-bernotok'
22089 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022090 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022091 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022092 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022093 # This is similar to how AIX traditionally builds its shared libraries.
22094 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 +000022095 fi
22096 fi
22097 ;;
22098
22099 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022100 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 +000022101 hardcode_libdir_flag_spec_F77='-L$libdir'
22102 hardcode_minus_L_F77=yes
22103 # see comment about different semantics on the GNU ld section
22104 ld_shlibs_F77=no
22105 ;;
22106
Reid Spencer2706f8c2004-09-19 23:53:36 +000022107 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022108 export_dynamic_flag_spec_F77=-rdynamic
22109 ;;
22110
22111 cygwin* | mingw* | pw32*)
22112 # When not using gcc, we currently assume that we are using
22113 # Microsoft Visual C++.
22114 # hardcode_libdir_flag_spec is actually meaningless, as there is
22115 # no search path for DLLs.
22116 hardcode_libdir_flag_spec_F77=' '
22117 allow_undefined_flag_F77=unsupported
22118 # Tell ltmain to make .lib files, not .a files.
22119 libext=lib
22120 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022121 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022122 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022123 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 +000022124 # The linker will automatically build a .lib file if we build a DLL.
22125 old_archive_From_new_cmds_F77='true'
22126 # FIXME: Should let the user specify the lib program.
22127 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022128 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022129 enable_shared_with_static_runtimes_F77=yes
22130 ;;
22131
22132 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022133 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022134 rhapsody* | darwin1.[012])
22135 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22136 ;;
22137 *) # Darwin 1.3 on
22138 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22139 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22140 else
22141 case ${MACOSX_DEPLOYMENT_TARGET} in
22142 10.[012])
22143 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22144 ;;
22145 10.*)
22146 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22147 ;;
22148 esac
22149 fi
22150 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022151 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022152 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022153 hardcode_direct_F77=no
22154 hardcode_automatic_F77=yes
22155 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022156 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022157 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022158 if test "$GCC" = yes ; then
22159 output_verbose_link_cmd='echo'
22160 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22161 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022162 # 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 +000022163 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}'
22164 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 +000022165 else
Reid Spencera773bd52006-08-04 18:18:08 +000022166 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022167 xlc*)
22168 output_verbose_link_cmd='echo'
22169 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22170 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022171 # 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 +000022172 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}'
22173 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 +000022174 ;;
22175 *)
22176 ld_shlibs_F77=no
22177 ;;
22178 esac
John Criswell47fdd832003-07-14 16:52:07 +000022179 fi
22180 ;;
22181
22182 dgux*)
22183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22184 hardcode_libdir_flag_spec_F77='-L$libdir'
22185 hardcode_shlibpath_var_F77=no
22186 ;;
22187
22188 freebsd1*)
22189 ld_shlibs_F77=no
22190 ;;
22191
22192 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22193 # support. Future versions do this automatically, but an explicit c++rt0.o
22194 # does not break anything, and helps significantly (at the cost of a little
22195 # extra space).
22196 freebsd2.2*)
22197 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22198 hardcode_libdir_flag_spec_F77='-R$libdir'
22199 hardcode_direct_F77=yes
22200 hardcode_shlibpath_var_F77=no
22201 ;;
22202
22203 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22204 freebsd2*)
22205 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22206 hardcode_direct_F77=yes
22207 hardcode_minus_L_F77=yes
22208 hardcode_shlibpath_var_F77=no
22209 ;;
22210
22211 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022212 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022213 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22214 hardcode_libdir_flag_spec_F77='-R$libdir'
22215 hardcode_direct_F77=yes
22216 hardcode_shlibpath_var_F77=no
22217 ;;
22218
22219 hpux9*)
22220 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022221 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 +000022222 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022223 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 +000022224 fi
22225 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22226 hardcode_libdir_separator_F77=:
22227 hardcode_direct_F77=yes
22228
22229 # hardcode_minus_L: Not really in the search PATH,
22230 # but as the default location of the library.
22231 hardcode_minus_L_F77=yes
22232 export_dynamic_flag_spec_F77='${wl}-E'
22233 ;;
22234
Reid Spencera773bd52006-08-04 18:18:08 +000022235 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022236 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022237 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22238 else
22239 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22240 fi
22241 if test "$with_gnu_ld" = no; then
22242 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22243 hardcode_libdir_separator_F77=:
22244
22245 hardcode_direct_F77=yes
22246 export_dynamic_flag_spec_F77='${wl}-E'
22247
22248 # hardcode_minus_L: Not really in the search PATH,
22249 # but as the default location of the library.
22250 hardcode_minus_L_F77=yes
22251 fi
22252 ;;
22253
22254 hpux11*)
22255 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22256 case $host_cpu in
22257 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022258 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22259 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022260 ia64*)
22261 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22262 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022263 *)
22264 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22265 ;;
22266 esac
22267 else
Reid Spencera773bd52006-08-04 18:18:08 +000022268 case $host_cpu in
22269 hppa*64*)
22270 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22271 ;;
22272 ia64*)
22273 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022274 ;;
22275 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022276 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 +000022277 ;;
22278 esac
22279 fi
22280 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022281 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22282 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022283
Reid Spencera773bd52006-08-04 18:18:08 +000022284 case $host_cpu in
22285 hppa*64*|ia64*)
22286 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22287 hardcode_direct_F77=no
22288 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022289 ;;
22290 *)
John Criswell47fdd832003-07-14 16:52:07 +000022291 hardcode_direct_F77=yes
22292 export_dynamic_flag_spec_F77='${wl}-E'
22293
22294 # hardcode_minus_L: Not really in the search PATH,
22295 # but as the default location of the library.
22296 hardcode_minus_L_F77=yes
22297 ;;
22298 esac
22299 fi
22300 ;;
22301
22302 irix5* | irix6* | nonstopux*)
22303 if test "$GCC" = yes; then
22304 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'
22305 else
22306 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'
22307 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22308 fi
22309 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22310 hardcode_libdir_separator_F77=:
22311 link_all_deplibs_F77=yes
22312 ;;
22313
22314 netbsd*)
22315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22316 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22317 else
22318 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22319 fi
22320 hardcode_libdir_flag_spec_F77='-R$libdir'
22321 hardcode_direct_F77=yes
22322 hardcode_shlibpath_var_F77=no
22323 ;;
22324
22325 newsos6)
22326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22327 hardcode_direct_F77=yes
22328 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22329 hardcode_libdir_separator_F77=:
22330 hardcode_shlibpath_var_F77=no
22331 ;;
22332
22333 openbsd*)
22334 hardcode_direct_F77=yes
22335 hardcode_shlibpath_var_F77=no
22336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22337 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022338 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 +000022339 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22340 export_dynamic_flag_spec_F77='${wl}-E'
22341 else
22342 case $host_os in
22343 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22344 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22345 hardcode_libdir_flag_spec_F77='-R$libdir'
22346 ;;
22347 *)
22348 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22349 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22350 ;;
22351 esac
22352 fi
22353 ;;
22354
22355 os2*)
22356 hardcode_libdir_flag_spec_F77='-L$libdir'
22357 hardcode_minus_L_F77=yes
22358 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022359 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 +000022360 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22361 ;;
22362
22363 osf3*)
22364 if test "$GCC" = yes; then
22365 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22366 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'
22367 else
22368 allow_undefined_flag_F77=' -expect_unresolved \*'
22369 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'
22370 fi
22371 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22372 hardcode_libdir_separator_F77=:
22373 ;;
22374
22375 osf4* | osf5*) # as osf3* with the addition of -msym flag
22376 if test "$GCC" = yes; then
22377 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22378 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'
22379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22380 else
22381 allow_undefined_flag_F77=' -expect_unresolved \*'
22382 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 +000022383 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 +000022384 $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 +000022385
John Criswell47fdd832003-07-14 16:52:07 +000022386 # Both c and cxx compiler support -rpath directly
22387 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22388 fi
22389 hardcode_libdir_separator_F77=:
22390 ;;
22391
John Criswell47fdd832003-07-14 16:52:07 +000022392 solaris*)
22393 no_undefined_flag_F77=' -z text'
22394 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022395 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022396 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022397 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22398 $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 +000022399 else
Reid Spencera773bd52006-08-04 18:18:08 +000022400 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022401 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022402 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22403 $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 +000022404 fi
22405 hardcode_libdir_flag_spec_F77='-R$libdir'
22406 hardcode_shlibpath_var_F77=no
22407 case $host_os in
22408 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022409 *)
22410 # The compiler driver will combine linker options so we
22411 # cannot just pass the convience library names through
22412 # without $wl, iff we do not link with $LD.
22413 # Luckily, gcc supports the same syntax we need for Sun Studio.
22414 # Supported since Solaris 2.6 (maybe 2.5.1?)
22415 case $wlarc in
22416 '')
22417 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22418 *)
22419 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' ;;
22420 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022421 esac
22422 link_all_deplibs_F77=yes
22423 ;;
22424
22425 sunos4*)
22426 if test "x$host_vendor" = xsequent; then
22427 # Use $CC to link under sequent, because it throws in some extra .o
22428 # files that make .init and .fini sections work.
22429 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22430 else
22431 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22432 fi
22433 hardcode_libdir_flag_spec_F77='-L$libdir'
22434 hardcode_direct_F77=yes
22435 hardcode_minus_L_F77=yes
22436 hardcode_shlibpath_var_F77=no
22437 ;;
22438
22439 sysv4)
22440 case $host_vendor in
22441 sni)
22442 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22443 hardcode_direct_F77=yes # is this really true???
22444 ;;
22445 siemens)
22446 ## LD is ld it makes a PLAMLIB
22447 ## CC just makes a GrossModule.
22448 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22449 reload_cmds_F77='$CC -r -o $output$reload_objs'
22450 hardcode_direct_F77=no
22451 ;;
22452 motorola)
22453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22454 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22455 ;;
22456 esac
22457 runpath_var='LD_RUN_PATH'
22458 hardcode_shlibpath_var_F77=no
22459 ;;
22460
22461 sysv4.3*)
22462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22463 hardcode_shlibpath_var_F77=no
22464 export_dynamic_flag_spec_F77='-Bexport'
22465 ;;
22466
22467 sysv4*MP*)
22468 if test -d /usr/nec; then
22469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22470 hardcode_shlibpath_var_F77=no
22471 runpath_var=LD_RUN_PATH
22472 hardcode_runpath_var=yes
22473 ld_shlibs_F77=yes
22474 fi
22475 ;;
22476
Reid Spencera773bd52006-08-04 18:18:08 +000022477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22478 no_undefined_flag_F77='${wl}-z,text'
22479 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022480 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022481 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022482
John Criswell47fdd832003-07-14 16:52:07 +000022483 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022484 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22485 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 +000022486 else
Reid Spencera773bd52006-08-04 18:18:08 +000022487 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22488 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 +000022489 fi
John Criswell47fdd832003-07-14 16:52:07 +000022490 ;;
22491
Reid Spencera773bd52006-08-04 18:18:08 +000022492 sysv5* | sco3.2v5* | sco5v6*)
22493 # Note: We can NOT use -z defs as we might desire, because we do not
22494 # link with -lc, and that would cause any symbols used from libc to
22495 # always be unresolved, which means just about no library would
22496 # ever link correctly. If we're not using GNU ld we use -z text
22497 # though, which does catch some bad symbols but isn't as heavy-handed
22498 # as -z defs.
22499 no_undefined_flag_F77='${wl}-z,text'
22500 allow_undefined_flag_F77='${wl}-z,nodefs'
22501 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022502 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022503 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22504 hardcode_libdir_separator_F77=':'
22505 link_all_deplibs_F77=yes
22506 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022507 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022508
22509 if test "$GCC" = yes; then
22510 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22511 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22512 else
22513 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22514 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22515 fi
John Criswell47fdd832003-07-14 16:52:07 +000022516 ;;
22517
22518 uts4*)
22519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22520 hardcode_libdir_flag_spec_F77='-L$libdir'
22521 hardcode_shlibpath_var_F77=no
22522 ;;
22523
22524 *)
22525 ld_shlibs_F77=no
22526 ;;
22527 esac
22528 fi
22529
Reid Spencera773bd52006-08-04 18:18:08 +000022530{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22531echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022532test "$ld_shlibs_F77" = no && can_build_shared=no
22533
John Criswell47fdd832003-07-14 16:52:07 +000022534#
22535# Do we need to explicitly link libc?
22536#
22537case "x$archive_cmds_need_lc_F77" in
22538x|xyes)
22539 # Assume -lc should be added
22540 archive_cmds_need_lc_F77=yes
22541
22542 if test "$enable_shared" = yes && test "$GCC" = yes; then
22543 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022544 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022545 # FIXME: we may have to deal with multi-command sequences.
22546 ;;
22547 '$CC '*)
22548 # Test whether the compiler implicitly links with -lc since on some
22549 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22550 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022551 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22552echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022553 $rm conftest*
22554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22555
22556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22557 (eval $ac_compile) 2>&5
22558 ac_status=$?
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } 2>conftest.err; then
22561 soname=conftest
22562 lib=conftest
22563 libobjs=conftest.$ac_objext
22564 deplibs=
22565 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022566 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022567 compiler_flags=-v
22568 linker_flags=-v
22569 verstring=
22570 output_objdir=.
22571 libname=conftest
22572 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22573 allow_undefined_flag_F77=
22574 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22575 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22576 ac_status=$?
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }
22579 then
22580 archive_cmds_need_lc_F77=no
22581 else
22582 archive_cmds_need_lc_F77=yes
22583 fi
22584 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22585 else
22586 cat conftest.err 1>&5
22587 fi
22588 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022589 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22590echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022591 ;;
22592 esac
22593 fi
22594 ;;
22595esac
22596
Reid Spencera773bd52006-08-04 18:18:08 +000022597{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22598echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022599library_names_spec=
22600libname_spec='lib$name'
22601soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022602shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022603postinstall_cmds=
22604postuninstall_cmds=
22605finish_cmds=
22606finish_eval=
22607shlibpath_var=
22608shlibpath_overrides_runpath=unknown
22609version_type=none
22610dynamic_linker="$host_os ld.so"
22611sys_lib_dlsearch_path_spec="/lib /usr/lib"
22612if test "$GCC" = yes; then
22613 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22614 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22615 # if the path contains ";" then we assume it to be the separator
22616 # otherwise default to the standard path separator (i.e. ":") - it is
22617 # assumed that no part of a normal pathname contains ";" but that should
22618 # okay in the real world where ";" in dirpaths is itself problematic.
22619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22620 else
22621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22622 fi
22623else
22624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22625fi
22626need_lib_prefix=unknown
22627hardcode_into_libs=no
22628
22629# when you set need_version to no, make sure it does not cause -set_version
22630# flags to be left without arguments
22631need_version=unknown
22632
22633case $host_os in
22634aix3*)
22635 version_type=linux
22636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22637 shlibpath_var=LIBPATH
22638
22639 # AIX 3 has no versioning support, so we append a major version to the name.
22640 soname_spec='${libname}${release}${shared_ext}$major'
22641 ;;
22642
22643aix4* | aix5*)
22644 version_type=linux
22645 need_lib_prefix=no
22646 need_version=no
22647 hardcode_into_libs=yes
22648 if test "$host_cpu" = ia64; then
22649 # AIX 5 supports IA64
22650 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22651 shlibpath_var=LD_LIBRARY_PATH
22652 else
22653 # With GCC up to 2.95.x, collect2 would create an import file
22654 # for dependence libraries. The import file would start with
22655 # the line `#! .'. This would cause the generated library to
22656 # depend on `.', always an invalid library. This was fixed in
22657 # development snapshots of GCC prior to 3.0.
22658 case $host_os in
22659 aix4 | aix4.[01] | aix4.[01].*)
22660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22661 echo ' yes '
22662 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22663 :
22664 else
22665 can_build_shared=no
22666 fi
22667 ;;
22668 esac
22669 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22670 # soname into executable. Probably we can add versioning support to
22671 # collect2, so additional links can be useful in future.
22672 if test "$aix_use_runtimelinking" = yes; then
22673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22674 # instead of lib<name>.a to let people know that these are not
22675 # typical AIX shared libraries.
22676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22677 else
22678 # We preserve .a as extension for shared libraries through AIX4.2
22679 # and later when we are not doing run time linking.
22680 library_names_spec='${libname}${release}.a $libname.a'
22681 soname_spec='${libname}${release}${shared_ext}$major'
22682 fi
22683 shlibpath_var=LIBPATH
22684 fi
22685 ;;
22686
22687amigaos*)
22688 library_names_spec='$libname.ixlibrary $libname.a'
22689 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022690 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 +000022691 ;;
22692
22693beos*)
22694 library_names_spec='${libname}${shared_ext}'
22695 dynamic_linker="$host_os ld.so"
22696 shlibpath_var=LIBRARY_PATH
22697 ;;
22698
Reid Spencer2706f8c2004-09-19 23:53:36 +000022699bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022700 version_type=linux
22701 need_version=no
22702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22703 soname_spec='${libname}${release}${shared_ext}$major'
22704 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22705 shlibpath_var=LD_LIBRARY_PATH
22706 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22707 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22708 # the default ld.so.conf also contains /usr/contrib/lib and
22709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22710 # libtool to hard-code these into programs
22711 ;;
22712
22713cygwin* | mingw* | pw32*)
22714 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022715 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022716 need_version=no
22717 need_lib_prefix=no
22718
22719 case $GCC,$host_os in
22720 yes,cygwin* | yes,mingw* | yes,pw32*)
22721 library_names_spec='$libname.dll.a'
22722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022723 postinstall_cmds='base_file=`basename \${file}`~
22724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22725 dldir=$destdir/`dirname \$dlpath`~
22726 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022727 $install_prog $dir/$dlname \$dldir/$dlname~
22728 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022729 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22730 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022731 $rm \$dlpath'
22732 shlibpath_overrides_runpath=yes
22733
22734 case $host_os in
22735 cygwin*)
22736 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22737 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 +000022738 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022739 ;;
22740 mingw*)
22741 # MinGW DLLs use traditional 'lib' prefix
22742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22743 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22744 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22745 # It is most probably a Windows format PATH printed by
22746 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22747 # path with ; separators, and with drive letters. We can handle the
22748 # drive letters (cygwin fileutils understands them), so leave them,
22749 # especially as we might pass files found there to a mingw objdump,
22750 # which wouldn't understand a cygwinified path. Ahh.
22751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22752 else
22753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22754 fi
22755 ;;
22756 pw32*)
22757 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022758 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 +000022759 ;;
22760 esac
22761 ;;
22762
22763 *)
22764 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22765 ;;
22766 esac
22767 dynamic_linker='Win32 ld.exe'
22768 # FIXME: first we should search . and the directory the executable is in
22769 shlibpath_var=PATH
22770 ;;
22771
22772darwin* | rhapsody*)
22773 dynamic_linker="$host_os dyld"
22774 version_type=darwin
22775 need_lib_prefix=no
22776 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022777 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022778 soname_spec='${libname}${release}${major}$shared_ext'
22779 shlibpath_overrides_runpath=yes
22780 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022781 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022782 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022783 if test "$GCC" = yes; then
22784 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"`
22785 else
22786 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022787 fi
22788 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22789 ;;
22790
22791dgux*)
22792 version_type=linux
22793 need_lib_prefix=no
22794 need_version=no
22795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22796 soname_spec='${libname}${release}${shared_ext}$major'
22797 shlibpath_var=LD_LIBRARY_PATH
22798 ;;
22799
22800freebsd1*)
22801 dynamic_linker=no
22802 ;;
22803
Reid Spencer2706f8c2004-09-19 23:53:36 +000022804kfreebsd*-gnu)
22805 version_type=linux
22806 need_lib_prefix=no
22807 need_version=no
22808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22809 soname_spec='${libname}${release}${shared_ext}$major'
22810 shlibpath_var=LD_LIBRARY_PATH
22811 shlibpath_overrides_runpath=no
22812 hardcode_into_libs=yes
22813 dynamic_linker='GNU ld.so'
22814 ;;
22815
Reid Spencera773bd52006-08-04 18:18:08 +000022816freebsd* | dragonfly*)
22817 # DragonFly does not have aout. When/if they implement a new
22818 # versioning mechanism, adjust this.
22819 if test -x /usr/bin/objformat; then
22820 objformat=`/usr/bin/objformat`
22821 else
22822 case $host_os in
22823 freebsd[123]*) objformat=aout ;;
22824 *) objformat=elf ;;
22825 esac
22826 fi
John Criswell47fdd832003-07-14 16:52:07 +000022827 version_type=freebsd-$objformat
22828 case $version_type in
22829 freebsd-elf*)
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22831 need_version=no
22832 need_lib_prefix=no
22833 ;;
22834 freebsd-*)
22835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22836 need_version=yes
22837 ;;
22838 esac
22839 shlibpath_var=LD_LIBRARY_PATH
22840 case $host_os in
22841 freebsd2*)
22842 shlibpath_overrides_runpath=yes
22843 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022844 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022845 shlibpath_overrides_runpath=yes
22846 hardcode_into_libs=yes
22847 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022848 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22849 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022850 shlibpath_overrides_runpath=no
22851 hardcode_into_libs=yes
22852 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022853 freebsd*) # from 4.6 on
22854 shlibpath_overrides_runpath=yes
22855 hardcode_into_libs=yes
22856 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022857 esac
22858 ;;
22859
22860gnu*)
22861 version_type=linux
22862 need_lib_prefix=no
22863 need_version=no
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 shlibpath_var=LD_LIBRARY_PATH
22867 hardcode_into_libs=yes
22868 ;;
22869
22870hpux9* | hpux10* | hpux11*)
22871 # Give a soname corresponding to the major version so that dld.sl refuses to
22872 # link against other versions.
22873 version_type=sunos
22874 need_lib_prefix=no
22875 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022876 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022877 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022878 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022879 hardcode_into_libs=yes
22880 dynamic_linker="$host_os dld.so"
22881 shlibpath_var=LD_LIBRARY_PATH
22882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22884 soname_spec='${libname}${release}${shared_ext}$major'
22885 if test "X$HPUX_IA64_MODE" = X32; then
22886 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22887 else
22888 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22889 fi
22890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22891 ;;
22892 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022893 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022894 hardcode_into_libs=yes
22895 dynamic_linker="$host_os dld.sl"
22896 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22899 soname_spec='${libname}${release}${shared_ext}$major'
22900 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22902 ;;
22903 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022904 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022905 dynamic_linker="$host_os dld.sl"
22906 shlibpath_var=SHLIB_PATH
22907 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22909 soname_spec='${libname}${release}${shared_ext}$major'
22910 ;;
22911 esac
22912 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22913 postinstall_cmds='chmod 555 $lib'
22914 ;;
22915
Reid Spencera773bd52006-08-04 18:18:08 +000022916interix3*)
22917 version_type=linux
22918 need_lib_prefix=no
22919 need_version=no
22920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22921 soname_spec='${libname}${release}${shared_ext}$major'
22922 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22923 shlibpath_var=LD_LIBRARY_PATH
22924 shlibpath_overrides_runpath=no
22925 hardcode_into_libs=yes
22926 ;;
22927
John Criswell47fdd832003-07-14 16:52:07 +000022928irix5* | irix6* | nonstopux*)
22929 case $host_os in
22930 nonstopux*) version_type=nonstopux ;;
22931 *)
22932 if test "$lt_cv_prog_gnu_ld" = yes; then
22933 version_type=linux
22934 else
22935 version_type=irix
22936 fi ;;
22937 esac
22938 need_lib_prefix=no
22939 need_version=no
22940 soname_spec='${libname}${release}${shared_ext}$major'
22941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22942 case $host_os in
22943 irix5* | nonstopux*)
22944 libsuff= shlibsuff=
22945 ;;
22946 *)
22947 case $LD in # libtool.m4 will add one of these switches to LD
22948 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22949 libsuff= shlibsuff= libmagic=32-bit;;
22950 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22951 libsuff=32 shlibsuff=N32 libmagic=N32;;
22952 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22953 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22954 *) libsuff= shlibsuff= libmagic=never-match;;
22955 esac
22956 ;;
22957 esac
22958 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22959 shlibpath_overrides_runpath=no
22960 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22961 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22962 hardcode_into_libs=yes
22963 ;;
22964
22965# No shared lib support for Linux oldld, aout, or coff.
22966linux*oldld* | linux*aout* | linux*coff*)
22967 dynamic_linker=no
22968 ;;
22969
22970# This must be Linux ELF.
22971linux*)
22972 version_type=linux
22973 need_lib_prefix=no
22974 need_version=no
22975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22976 soname_spec='${libname}${release}${shared_ext}$major'
22977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22978 shlibpath_var=LD_LIBRARY_PATH
22979 shlibpath_overrides_runpath=no
22980 # This implies no fast_install, which is unacceptable.
22981 # Some rework will be needed to allow for fast_install
22982 # before this can be enabled.
22983 hardcode_into_libs=yes
22984
Reid Spencer2706f8c2004-09-19 23:53:36 +000022985 # Append ld.so.conf contents to the search path
22986 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022987 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 +000022988 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22989 fi
22990
John Criswell47fdd832003-07-14 16:52:07 +000022991 # We used to test for /lib/ld.so.1 and disable shared libraries on
22992 # powerpc, because MkLinux only supported shared libraries with the
22993 # GNU dynamic linker. Since this was broken with cross compilers,
22994 # most powerpc-linux boxes support dynamic linking these days and
22995 # people can always --disable-shared, the test was removed, and we
22996 # assume the GNU/Linux dynamic linker is in use.
22997 dynamic_linker='GNU/Linux ld.so'
22998 ;;
22999
Reid Spencer2706f8c2004-09-19 23:53:36 +000023000knetbsd*-gnu)
23001 version_type=linux
23002 need_lib_prefix=no
23003 need_version=no
23004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23005 soname_spec='${libname}${release}${shared_ext}$major'
23006 shlibpath_var=LD_LIBRARY_PATH
23007 shlibpath_overrides_runpath=no
23008 hardcode_into_libs=yes
23009 dynamic_linker='GNU ld.so'
23010 ;;
23011
John Criswell47fdd832003-07-14 16:52:07 +000023012netbsd*)
23013 version_type=sunos
23014 need_lib_prefix=no
23015 need_version=no
23016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23019 dynamic_linker='NetBSD (a.out) ld.so'
23020 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023022 soname_spec='${libname}${release}${shared_ext}$major'
23023 dynamic_linker='NetBSD ld.elf_so'
23024 fi
23025 shlibpath_var=LD_LIBRARY_PATH
23026 shlibpath_overrides_runpath=yes
23027 hardcode_into_libs=yes
23028 ;;
23029
23030newsos6)
23031 version_type=linux
23032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23033 shlibpath_var=LD_LIBRARY_PATH
23034 shlibpath_overrides_runpath=yes
23035 ;;
23036
Reid Spencer2706f8c2004-09-19 23:53:36 +000023037nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023038 version_type=linux
23039 need_lib_prefix=no
23040 need_version=no
23041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23042 soname_spec='${libname}${release}${shared_ext}$major'
23043 shlibpath_var=LD_LIBRARY_PATH
23044 shlibpath_overrides_runpath=yes
23045 ;;
23046
23047openbsd*)
23048 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023049 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023050 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023051 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23052 case $host_os in
23053 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23054 *) need_version=no ;;
23055 esac
John Criswell47fdd832003-07-14 16:52:07 +000023056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23058 shlibpath_var=LD_LIBRARY_PATH
23059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23060 case $host_os in
23061 openbsd2.[89] | openbsd2.[89].*)
23062 shlibpath_overrides_runpath=no
23063 ;;
23064 *)
23065 shlibpath_overrides_runpath=yes
23066 ;;
23067 esac
23068 else
23069 shlibpath_overrides_runpath=yes
23070 fi
23071 ;;
23072
23073os2*)
23074 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023075 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023076 need_lib_prefix=no
23077 library_names_spec='$libname${shared_ext} $libname.a'
23078 dynamic_linker='OS/2 ld.exe'
23079 shlibpath_var=LIBPATH
23080 ;;
23081
23082osf3* | osf4* | osf5*)
23083 version_type=osf
23084 need_lib_prefix=no
23085 need_version=no
23086 soname_spec='${libname}${release}${shared_ext}$major'
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088 shlibpath_var=LD_LIBRARY_PATH
23089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23091 ;;
23092
John Criswell47fdd832003-07-14 16:52:07 +000023093solaris*)
23094 version_type=linux
23095 need_lib_prefix=no
23096 need_version=no
23097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 shlibpath_var=LD_LIBRARY_PATH
23100 shlibpath_overrides_runpath=yes
23101 hardcode_into_libs=yes
23102 # ldd complains unless libraries are executable
23103 postinstall_cmds='chmod +x $lib'
23104 ;;
23105
23106sunos4*)
23107 version_type=sunos
23108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23109 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23110 shlibpath_var=LD_LIBRARY_PATH
23111 shlibpath_overrides_runpath=yes
23112 if test "$with_gnu_ld" = yes; then
23113 need_lib_prefix=no
23114 fi
23115 need_version=yes
23116 ;;
23117
Reid Spencera773bd52006-08-04 18:18:08 +000023118sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023119 version_type=linux
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23121 soname_spec='${libname}${release}${shared_ext}$major'
23122 shlibpath_var=LD_LIBRARY_PATH
23123 case $host_vendor in
23124 sni)
23125 shlibpath_overrides_runpath=no
23126 need_lib_prefix=no
23127 export_dynamic_flag_spec='${wl}-Blargedynsym'
23128 runpath_var=LD_RUN_PATH
23129 ;;
23130 siemens)
23131 need_lib_prefix=no
23132 ;;
23133 motorola)
23134 need_lib_prefix=no
23135 need_version=no
23136 shlibpath_overrides_runpath=no
23137 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23138 ;;
23139 esac
23140 ;;
23141
23142sysv4*MP*)
23143 if test -d /usr/nec ;then
23144 version_type=linux
23145 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23146 soname_spec='$libname${shared_ext}.$major'
23147 shlibpath_var=LD_LIBRARY_PATH
23148 fi
23149 ;;
23150
Reid Spencera773bd52006-08-04 18:18:08 +000023151sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23152 version_type=freebsd-elf
23153 need_lib_prefix=no
23154 need_version=no
23155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23156 soname_spec='${libname}${release}${shared_ext}$major'
23157 shlibpath_var=LD_LIBRARY_PATH
23158 hardcode_into_libs=yes
23159 if test "$with_gnu_ld" = yes; then
23160 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23161 shlibpath_overrides_runpath=no
23162 else
23163 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23164 shlibpath_overrides_runpath=yes
23165 case $host_os in
23166 sco3.2v5*)
23167 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23168 ;;
23169 esac
23170 fi
23171 sys_lib_dlsearch_path_spec='/usr/lib'
23172 ;;
23173
John Criswell47fdd832003-07-14 16:52:07 +000023174uts4*)
23175 version_type=linux
23176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23177 soname_spec='${libname}${release}${shared_ext}$major'
23178 shlibpath_var=LD_LIBRARY_PATH
23179 ;;
23180
23181*)
23182 dynamic_linker=no
23183 ;;
23184esac
Reid Spencera773bd52006-08-04 18:18:08 +000023185{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23186echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023187test "$dynamic_linker" = no && can_build_shared=no
23188
Reid Spencera773bd52006-08-04 18:18:08 +000023189variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23190if test "$GCC" = yes; then
23191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23192fi
23193
23194{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23195echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023196hardcode_action_F77=
23197if test -n "$hardcode_libdir_flag_spec_F77" || \
23198 test -n "$runpath_var_F77" || \
23199 test "X$hardcode_automatic_F77" = "Xyes" ; then
23200
23201 # We can hardcode non-existant directories.
23202 if test "$hardcode_direct_F77" != no &&
23203 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23204 # have to relink, otherwise we might link with an installed library
23205 # when we should be linking with a yet-to-be-installed one
23206 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23207 test "$hardcode_minus_L_F77" != no; then
23208 # Linking always hardcodes the temporary library directory.
23209 hardcode_action_F77=relink
23210 else
23211 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23212 hardcode_action_F77=immediate
23213 fi
23214else
23215 # We cannot hardcode anything, or else we can only hardcode existing
23216 # directories.
23217 hardcode_action_F77=unsupported
23218fi
Reid Spencera773bd52006-08-04 18:18:08 +000023219{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23220echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023221
23222if test "$hardcode_action_F77" = relink; then
23223 # Fast installation is not supported
23224 enable_fast_install=no
23225elif test "$shlibpath_overrides_runpath" = yes ||
23226 test "$enable_shared" = no; then
23227 # Fast installation is not necessary
23228 enable_fast_install=needless
23229fi
23230
John Criswell47fdd832003-07-14 16:52:07 +000023231
23232# The else clause should only fire when bootstrapping the
23233# libtool distribution, otherwise you forgot to ship ltmain.sh
23234# with your package, and you will get complaints that there are
23235# no rules to generate ltmain.sh.
23236if test -f "$ltmain"; then
23237 # See if we are running on zsh, and set the options which allow our commands through
23238 # without removal of \ escapes.
23239 if test -n "${ZSH_VERSION+set}" ; then
23240 setopt NO_GLOB_SUBST
23241 fi
23242 # Now quote all the things that may contain metacharacters while being
23243 # careful not to overquote the AC_SUBSTed values. We take copies of the
23244 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023245 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 +000023246 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023247 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23248 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23249 deplibs_check_method reload_flag reload_cmds need_locks \
23250 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23251 lt_cv_sys_global_symbol_to_c_name_address \
23252 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23253 old_postinstall_cmds old_postuninstall_cmds \
23254 compiler_F77 \
23255 CC_F77 \
23256 LD_F77 \
23257 lt_prog_compiler_wl_F77 \
23258 lt_prog_compiler_pic_F77 \
23259 lt_prog_compiler_static_F77 \
23260 lt_prog_compiler_no_builtin_flag_F77 \
23261 export_dynamic_flag_spec_F77 \
23262 thread_safe_flag_spec_F77 \
23263 whole_archive_flag_spec_F77 \
23264 enable_shared_with_static_runtimes_F77 \
23265 old_archive_cmds_F77 \
23266 old_archive_from_new_cmds_F77 \
23267 predep_objects_F77 \
23268 postdep_objects_F77 \
23269 predeps_F77 \
23270 postdeps_F77 \
23271 compiler_lib_search_path_F77 \
23272 archive_cmds_F77 \
23273 archive_expsym_cmds_F77 \
23274 postinstall_cmds_F77 \
23275 postuninstall_cmds_F77 \
23276 old_archive_from_expsyms_cmds_F77 \
23277 allow_undefined_flag_F77 \
23278 no_undefined_flag_F77 \
23279 export_symbols_cmds_F77 \
23280 hardcode_libdir_flag_spec_F77 \
23281 hardcode_libdir_flag_spec_ld_F77 \
23282 hardcode_libdir_separator_F77 \
23283 hardcode_automatic_F77 \
23284 module_cmds_F77 \
23285 module_expsym_cmds_F77 \
23286 lt_cv_prog_compiler_c_o_F77 \
23287 exclude_expsyms_F77 \
23288 include_expsyms_F77; do
23289
23290 case $var in
23291 old_archive_cmds_F77 | \
23292 old_archive_from_new_cmds_F77 | \
23293 archive_cmds_F77 | \
23294 archive_expsym_cmds_F77 | \
23295 module_cmds_F77 | \
23296 module_expsym_cmds_F77 | \
23297 old_archive_from_expsyms_cmds_F77 | \
23298 export_symbols_cmds_F77 | \
23299 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23300 postinstall_cmds | postuninstall_cmds | \
23301 old_postinstall_cmds | old_postuninstall_cmds | \
23302 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23303 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023304 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 +000023305 ;;
23306 *)
23307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23308 ;;
23309 esac
23310 done
23311
23312 case $lt_echo in
23313 *'\$0 --fallback-echo"')
23314 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23315 ;;
23316 esac
23317
23318cfgfile="$ofile"
23319
23320 cat <<__EOF__ >> "$cfgfile"
23321# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23322
23323# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23324
23325# Shell to use when invoking shell scripts.
23326SHELL=$lt_SHELL
23327
23328# Whether or not to build shared libraries.
23329build_libtool_libs=$enable_shared
23330
23331# Whether or not to build static libraries.
23332build_old_libs=$enable_static
23333
23334# Whether or not to add -lc for building shared libraries.
23335build_libtool_need_lc=$archive_cmds_need_lc_F77
23336
23337# Whether or not to disallow shared libs when runtime libs are static
23338allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23339
23340# Whether or not to optimize for fast installation.
23341fast_install=$enable_fast_install
23342
23343# The host system.
23344host_alias=$host_alias
23345host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023346host_os=$host_os
23347
23348# The build system.
23349build_alias=$build_alias
23350build=$build
23351build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023352
23353# An echo program that does not interpret backslashes.
23354echo=$lt_echo
23355
23356# The archiver.
23357AR=$lt_AR
23358AR_FLAGS=$lt_AR_FLAGS
23359
23360# A C compiler.
23361LTCC=$lt_LTCC
23362
Reid Spencera773bd52006-08-04 18:18:08 +000023363# LTCC compiler flags.
23364LTCFLAGS=$lt_LTCFLAGS
23365
John Criswell47fdd832003-07-14 16:52:07 +000023366# A language-specific compiler.
23367CC=$lt_compiler_F77
23368
23369# Is the compiler the GNU C compiler?
23370with_gcc=$GCC_F77
23371
23372# An ERE matcher.
23373EGREP=$lt_EGREP
23374
23375# The linker used to build libraries.
23376LD=$lt_LD_F77
23377
23378# Whether we need hard or soft links.
23379LN_S=$lt_LN_S
23380
23381# A BSD-compatible nm program.
23382NM=$lt_NM
23383
23384# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023385STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023386
23387# Used to examine libraries when file_magic_cmd begins "file"
23388MAGIC_CMD=$MAGIC_CMD
23389
23390# Used on cygwin: DLL creation program.
23391DLLTOOL="$DLLTOOL"
23392
23393# Used on cygwin: object dumper.
23394OBJDUMP="$OBJDUMP"
23395
23396# Used on cygwin: assembler.
23397AS="$AS"
23398
23399# The name of the directory that contains temporary libtool files.
23400objdir=$objdir
23401
23402# How to create reloadable object files.
23403reload_flag=$lt_reload_flag
23404reload_cmds=$lt_reload_cmds
23405
23406# How to pass a linker flag through the compiler.
23407wl=$lt_lt_prog_compiler_wl_F77
23408
23409# Object file suffix (normally "o").
23410objext="$ac_objext"
23411
23412# Old archive suffix (normally "a").
23413libext="$libext"
23414
23415# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023416shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023417
23418# Executable file suffix (normally "").
23419exeext="$exeext"
23420
23421# Additional compiler flags for building library objects.
23422pic_flag=$lt_lt_prog_compiler_pic_F77
23423pic_mode=$pic_mode
23424
23425# What is the maximum length of a command?
23426max_cmd_len=$lt_cv_sys_max_cmd_len
23427
23428# Does compiler simultaneously support -c and -o options?
23429compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23430
Reid Spencera773bd52006-08-04 18:18:08 +000023431# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023432need_locks=$lt_need_locks
23433
23434# Do we need the lib prefix for modules?
23435need_lib_prefix=$need_lib_prefix
23436
23437# Do we need a version for libraries?
23438need_version=$need_version
23439
23440# Whether dlopen is supported.
23441dlopen_support=$enable_dlopen
23442
23443# Whether dlopen of programs is supported.
23444dlopen_self=$enable_dlopen_self
23445
23446# Whether dlopen of statically linked programs is supported.
23447dlopen_self_static=$enable_dlopen_self_static
23448
23449# Compiler flag to prevent dynamic linking.
23450link_static_flag=$lt_lt_prog_compiler_static_F77
23451
23452# Compiler flag to turn off builtin functions.
23453no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23454
23455# Compiler flag to allow reflexive dlopens.
23456export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23457
23458# Compiler flag to generate shared objects directly from archives.
23459whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23460
23461# Compiler flag to generate thread-safe objects.
23462thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23463
23464# Library versioning type.
23465version_type=$version_type
23466
23467# Format of library name prefix.
23468libname_spec=$lt_libname_spec
23469
23470# List of archive names. First name is the real one, the rest are links.
23471# The last name is the one that the linker finds with -lNAME.
23472library_names_spec=$lt_library_names_spec
23473
23474# The coded name of the library, if different from the real name.
23475soname_spec=$lt_soname_spec
23476
23477# Commands used to build and install an old-style archive.
23478RANLIB=$lt_RANLIB
23479old_archive_cmds=$lt_old_archive_cmds_F77
23480old_postinstall_cmds=$lt_old_postinstall_cmds
23481old_postuninstall_cmds=$lt_old_postuninstall_cmds
23482
23483# Create an old-style archive from a shared archive.
23484old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23485
23486# Create a temporary old-style archive to link instead of a shared archive.
23487old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23488
23489# Commands used to build and install a shared archive.
23490archive_cmds=$lt_archive_cmds_F77
23491archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23492postinstall_cmds=$lt_postinstall_cmds
23493postuninstall_cmds=$lt_postuninstall_cmds
23494
23495# Commands used to build a loadable module (assumed same as above if empty)
23496module_cmds=$lt_module_cmds_F77
23497module_expsym_cmds=$lt_module_expsym_cmds_F77
23498
23499# Commands to strip libraries.
23500old_striplib=$lt_old_striplib
23501striplib=$lt_striplib
23502
23503# Dependencies to place before the objects being linked to create a
23504# shared library.
23505predep_objects=$lt_predep_objects_F77
23506
23507# Dependencies to place after the objects being linked to create a
23508# shared library.
23509postdep_objects=$lt_postdep_objects_F77
23510
23511# Dependencies to place before the objects being linked to create a
23512# shared library.
23513predeps=$lt_predeps_F77
23514
23515# Dependencies to place after the objects being linked to create a
23516# shared library.
23517postdeps=$lt_postdeps_F77
23518
23519# The library search path used internally by the compiler when linking
23520# a shared library.
23521compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23522
23523# Method to check whether dependent libraries are shared objects.
23524deplibs_check_method=$lt_deplibs_check_method
23525
23526# Command to use when deplibs_check_method == file_magic.
23527file_magic_cmd=$lt_file_magic_cmd
23528
23529# Flag that allows shared libraries with undefined symbols to be built.
23530allow_undefined_flag=$lt_allow_undefined_flag_F77
23531
23532# Flag that forces no undefined symbols.
23533no_undefined_flag=$lt_no_undefined_flag_F77
23534
23535# Commands used to finish a libtool library installation in a directory.
23536finish_cmds=$lt_finish_cmds
23537
23538# Same as above, but a single script fragment to be evaled but not shown.
23539finish_eval=$lt_finish_eval
23540
23541# Take the output of nm and produce a listing of raw symbols and C names.
23542global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23543
23544# Transform the output of nm in a proper C declaration
23545global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23546
23547# Transform the output of nm in a C name address pair
23548global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23549
23550# This is the shared library runtime path variable.
23551runpath_var=$runpath_var
23552
23553# This is the shared library path variable.
23554shlibpath_var=$shlibpath_var
23555
23556# Is shlibpath searched before the hard-coded library search path?
23557shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23558
23559# How to hardcode a shared library path into an executable.
23560hardcode_action=$hardcode_action_F77
23561
23562# Whether we should hardcode library paths into libraries.
23563hardcode_into_libs=$hardcode_into_libs
23564
23565# Flag to hardcode \$libdir into a binary during linking.
23566# This must work even if \$libdir does not exist.
23567hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23568
23569# If ld is used when linking, flag to hardcode \$libdir into
23570# a binary during linking. This must work even if \$libdir does
23571# not exist.
23572hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23573
23574# Whether we need a single -rpath flag with a separated argument.
23575hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23576
23577# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23578# resulting binary.
23579hardcode_direct=$hardcode_direct_F77
23580
23581# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23582# resulting binary.
23583hardcode_minus_L=$hardcode_minus_L_F77
23584
23585# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23586# the resulting binary.
23587hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23588
23589# Set to yes if building a shared library automatically hardcodes DIR into the library
23590# and all subsequent libraries and executables linked against it.
23591hardcode_automatic=$hardcode_automatic_F77
23592
23593# Variables whose values should be saved in libtool wrapper scripts and
23594# restored at relink time.
23595variables_saved_for_relink="$variables_saved_for_relink"
23596
23597# Whether libtool must link a program against all its dependency libraries.
23598link_all_deplibs=$link_all_deplibs_F77
23599
23600# Compile-time system search path for libraries
23601sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23602
23603# Run-time system search path for libraries
23604sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23605
23606# Fix the shell variable \$srcfile for the compiler.
23607fix_srcfile_path="$fix_srcfile_path_F77"
23608
23609# Set to yes if exported symbols are required.
23610always_export_symbols=$always_export_symbols_F77
23611
23612# The commands to list exported symbols.
23613export_symbols_cmds=$lt_export_symbols_cmds_F77
23614
23615# The commands to extract the exported symbol list from a shared archive.
23616extract_expsyms_cmds=$lt_extract_expsyms_cmds
23617
23618# Symbols that should not be listed in the preloaded symbols.
23619exclude_expsyms=$lt_exclude_expsyms_F77
23620
23621# Symbols that must always be exported.
23622include_expsyms=$lt_include_expsyms_F77
23623
23624# ### END LIBTOOL TAG CONFIG: $tagname
23625
23626__EOF__
23627
23628
23629else
23630 # If there is no Makefile yet, we rely on a make rule to execute
23631 # `config.status --recheck' to rerun these tests and create the
23632 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023633 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23634 if test -f "$ltmain_in"; then
23635 test -f Makefile && make "$ltmain"
23636 fi
John Criswell47fdd832003-07-14 16:52:07 +000023637fi
23638
23639
23640ac_ext=c
23641ac_cpp='$CPP $CPPFLAGS'
23642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23644ac_compiler_gnu=$ac_cv_c_compiler_gnu
23645
23646CC="$lt_save_CC"
23647
23648 else
23649 tagname=""
23650 fi
23651 ;;
23652
23653 GCJ)
23654 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023655 ac_ext=c
23656ac_cpp='$CPP $CPPFLAGS'
23657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23659ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023660
23661
23662# Source file extension for Java test sources.
23663ac_ext=java
23664
23665# Object file extension for compiled Java test sources.
23666objext=o
23667objext_GCJ=$objext
23668
23669# Code to be used in simple compile tests
23670lt_simple_compile_test_code="class foo {}\n"
23671
23672# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023673lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023674
23675# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23676
23677# If no C compiler was specified, use CC.
23678LTCC=${LTCC-"$CC"}
23679
Reid Spencera773bd52006-08-04 18:18:08 +000023680# If no C compiler flags were specified, use CFLAGS.
23681LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23682
John Criswell47fdd832003-07-14 16:52:07 +000023683# Allow CC to be a program name with arguments.
23684compiler=$CC
23685
23686
Reid Spencera773bd52006-08-04 18:18:08 +000023687# save warnings/boilerplate of simple test code
23688ac_outfile=conftest.$ac_objext
23689printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23690eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23691_lt_compiler_boilerplate=`cat conftest.err`
23692$rm conftest*
23693
23694ac_outfile=conftest.$ac_objext
23695printf "$lt_simple_link_test_code" >conftest.$ac_ext
23696eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23697_lt_linker_boilerplate=`cat conftest.err`
23698$rm conftest*
23699
23700
John Criswell47fdd832003-07-14 16:52:07 +000023701# Allow CC to be a program name with arguments.
23702lt_save_CC="$CC"
23703CC=${GCJ-"gcj"}
23704compiler=$CC
23705compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023706for cc_temp in $compiler""; do
23707 case $cc_temp in
23708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23710 \-*) ;;
23711 *) break;;
23712 esac
23713done
23714cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23715
John Criswell47fdd832003-07-14 16:52:07 +000023716
23717# GCJ did not exist at the time GCC didn't implicitly link libc in.
23718archive_cmds_need_lc_GCJ=no
23719
Reid Spencera773bd52006-08-04 18:18:08 +000023720old_archive_cmds_GCJ=$old_archive_cmds
23721
John Criswell47fdd832003-07-14 16:52:07 +000023722
23723lt_prog_compiler_no_builtin_flag_GCJ=
23724
23725if test "$GCC" = yes; then
23726 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23727
Reid Spencer2706f8c2004-09-19 23:53:36 +000023728
Reid Spencera773bd52006-08-04 18:18:08 +000023729{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23730echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023731if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23732 echo $ECHO_N "(cached) $ECHO_C" >&6
23733else
23734 lt_cv_prog_compiler_rtti_exceptions=no
23735 ac_outfile=conftest.$ac_objext
23736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23737 lt_compiler_flag="-fno-rtti -fno-exceptions"
23738 # Insert the option either (1) after the last *FLAGS variable, or
23739 # (2) before a word containing "conftest.", or (3) at the end.
23740 # Note that $ac_compile itself does not contain backslashes and begins
23741 # with a dollar sign (not a hyphen), so the echo should work correctly.
23742 # The option is referenced via a variable to avoid confusing sed.
23743 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23746 -e 's:$: $lt_compiler_flag:'`
Devang Patel5d28b882007-12-04 22:54:47 +000023747 (eval echo "\"\$as_me:23747: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023748 (eval "$lt_compile" 2>conftest.err)
23749 ac_status=$?
23750 cat conftest.err >&5
Devang Patel5d28b882007-12-04 22:54:47 +000023751 echo "$as_me:23751: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023752 if (exit $ac_status) && test -s "$ac_outfile"; then
23753 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023754 # So say no if there are warnings other than the usual output.
23755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023758 lt_cv_prog_compiler_rtti_exceptions=yes
23759 fi
23760 fi
23761 $rm conftest*
23762
23763fi
Reid Spencera773bd52006-08-04 18:18:08 +000023764{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23765echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023766
23767if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23768 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23769else
23770 :
23771fi
23772
23773fi
23774
23775lt_prog_compiler_wl_GCJ=
23776lt_prog_compiler_pic_GCJ=
23777lt_prog_compiler_static_GCJ=
23778
Reid Spencera773bd52006-08-04 18:18:08 +000023779{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23780echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023781
23782 if test "$GCC" = yes; then
23783 lt_prog_compiler_wl_GCJ='-Wl,'
23784 lt_prog_compiler_static_GCJ='-static'
23785
23786 case $host_os in
23787 aix*)
23788 # All AIX code is PIC.
23789 if test "$host_cpu" = ia64; then
23790 # AIX 5 now supports IA64 processor
23791 lt_prog_compiler_static_GCJ='-Bstatic'
23792 fi
23793 ;;
23794
23795 amigaos*)
23796 # FIXME: we need at least 68020 code to build shared libraries, but
23797 # adding the `-m68020' flag to GCC prevents building anything better,
23798 # like `-m68040'.
23799 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23800 ;;
23801
23802 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23803 # PIC is the default for these OSes.
23804 ;;
23805
23806 mingw* | pw32* | os2*)
23807 # This hack is so that the source file can tell whether it is being
23808 # built for inclusion in a dll (and should export symbols for example).
23809 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23810 ;;
23811
23812 darwin* | rhapsody*)
23813 # PIC is the default on this platform
23814 # Common symbols not allowed in MH_DYLIB files
23815 lt_prog_compiler_pic_GCJ='-fno-common'
23816 ;;
23817
Reid Spencera773bd52006-08-04 18:18:08 +000023818 interix3*)
23819 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23820 # Instead, we relocate shared libraries at runtime.
23821 ;;
23822
John Criswell47fdd832003-07-14 16:52:07 +000023823 msdosdjgpp*)
23824 # Just because we use GCC doesn't mean we suddenly get shared libraries
23825 # on systems that don't support them.
23826 lt_prog_compiler_can_build_shared_GCJ=no
23827 enable_shared=no
23828 ;;
23829
23830 sysv4*MP*)
23831 if test -d /usr/nec; then
23832 lt_prog_compiler_pic_GCJ=-Kconform_pic
23833 fi
23834 ;;
23835
23836 hpux*)
23837 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23838 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023839 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023840 hppa*64*|ia64*)
23841 # +Z the default
23842 ;;
23843 *)
23844 lt_prog_compiler_pic_GCJ='-fPIC'
23845 ;;
23846 esac
23847 ;;
23848
23849 *)
23850 lt_prog_compiler_pic_GCJ='-fPIC'
23851 ;;
23852 esac
23853 else
23854 # PORTME Check for flag to pass linker flags through the system compiler.
23855 case $host_os in
23856 aix*)
23857 lt_prog_compiler_wl_GCJ='-Wl,'
23858 if test "$host_cpu" = ia64; then
23859 # AIX 5 now supports IA64 processor
23860 lt_prog_compiler_static_GCJ='-Bstatic'
23861 else
23862 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23863 fi
23864 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023865 darwin*)
23866 # PIC is the default on this platform
23867 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023868 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023869 xlc*)
23870 lt_prog_compiler_pic_GCJ='-qnocommon'
23871 lt_prog_compiler_wl_GCJ='-Wl,'
23872 ;;
23873 esac
23874 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023875
23876 mingw* | pw32* | os2*)
23877 # This hack is so that the source file can tell whether it is being
23878 # built for inclusion in a dll (and should export symbols for example).
23879 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23880 ;;
23881
23882 hpux9* | hpux10* | hpux11*)
23883 lt_prog_compiler_wl_GCJ='-Wl,'
23884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23885 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023886 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023887 hppa*64*|ia64*)
23888 # +Z the default
23889 ;;
23890 *)
23891 lt_prog_compiler_pic_GCJ='+Z'
23892 ;;
23893 esac
23894 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23895 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23896 ;;
23897
23898 irix5* | irix6* | nonstopux*)
23899 lt_prog_compiler_wl_GCJ='-Wl,'
23900 # PIC (with -KPIC) is the default.
23901 lt_prog_compiler_static_GCJ='-non_shared'
23902 ;;
23903
23904 newsos6)
23905 lt_prog_compiler_pic_GCJ='-KPIC'
23906 lt_prog_compiler_static_GCJ='-Bstatic'
23907 ;;
23908
23909 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023910 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023911 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023912 lt_prog_compiler_wl_GCJ='-Wl,'
23913 lt_prog_compiler_pic_GCJ='-KPIC'
23914 lt_prog_compiler_static_GCJ='-static'
23915 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023916 pgcc* | pgf77* | pgf90* | pgf95*)
23917 # Portland Group compilers (*not* the Pentium gcc compiler,
23918 # which looks to be a dead project)
23919 lt_prog_compiler_wl_GCJ='-Wl,'
23920 lt_prog_compiler_pic_GCJ='-fpic'
23921 lt_prog_compiler_static_GCJ='-Bstatic'
23922 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023923 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023924 lt_prog_compiler_wl_GCJ='-Wl,'
23925 # All Alpha code is PIC.
23926 lt_prog_compiler_static_GCJ='-non_shared'
23927 ;;
23928 esac
23929 ;;
23930
23931 osf3* | osf4* | osf5*)
23932 lt_prog_compiler_wl_GCJ='-Wl,'
23933 # All OSF/1 code is PIC.
23934 lt_prog_compiler_static_GCJ='-non_shared'
23935 ;;
23936
John Criswell47fdd832003-07-14 16:52:07 +000023937 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023938 lt_prog_compiler_pic_GCJ='-KPIC'
23939 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023940 case $cc_basename in
23941 f77* | f90* | f95*)
23942 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23943 *)
23944 lt_prog_compiler_wl_GCJ='-Wl,';;
23945 esac
John Criswell47fdd832003-07-14 16:52:07 +000023946 ;;
23947
23948 sunos4*)
23949 lt_prog_compiler_wl_GCJ='-Qoption ld '
23950 lt_prog_compiler_pic_GCJ='-PIC'
23951 lt_prog_compiler_static_GCJ='-Bstatic'
23952 ;;
23953
Reid Spencera773bd52006-08-04 18:18:08 +000023954 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023955 lt_prog_compiler_wl_GCJ='-Wl,'
23956 lt_prog_compiler_pic_GCJ='-KPIC'
23957 lt_prog_compiler_static_GCJ='-Bstatic'
23958 ;;
23959
23960 sysv4*MP*)
23961 if test -d /usr/nec ;then
23962 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23963 lt_prog_compiler_static_GCJ='-Bstatic'
23964 fi
23965 ;;
23966
Reid Spencera773bd52006-08-04 18:18:08 +000023967 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23968 lt_prog_compiler_wl_GCJ='-Wl,'
23969 lt_prog_compiler_pic_GCJ='-KPIC'
23970 lt_prog_compiler_static_GCJ='-Bstatic'
23971 ;;
23972
23973 unicos*)
23974 lt_prog_compiler_wl_GCJ='-Wl,'
23975 lt_prog_compiler_can_build_shared_GCJ=no
23976 ;;
23977
John Criswell47fdd832003-07-14 16:52:07 +000023978 uts4*)
23979 lt_prog_compiler_pic_GCJ='-pic'
23980 lt_prog_compiler_static_GCJ='-Bstatic'
23981 ;;
23982
23983 *)
23984 lt_prog_compiler_can_build_shared_GCJ=no
23985 ;;
23986 esac
23987 fi
23988
Reid Spencera773bd52006-08-04 18:18:08 +000023989{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23990echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023991
23992#
23993# Check to make sure the PIC flag actually works.
23994#
23995if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023996
Reid Spencera773bd52006-08-04 18:18:08 +000023997{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23998echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023999if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24000 echo $ECHO_N "(cached) $ECHO_C" >&6
24001else
24002 lt_prog_compiler_pic_works_GCJ=no
24003 ac_outfile=conftest.$ac_objext
24004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24005 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24006 # Insert the option either (1) after the last *FLAGS variable, or
24007 # (2) before a word containing "conftest.", or (3) at the end.
24008 # Note that $ac_compile itself does not contain backslashes and begins
24009 # with a dollar sign (not a hyphen), so the echo should work correctly.
24010 # The option is referenced via a variable to avoid confusing sed.
24011 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24014 -e 's:$: $lt_compiler_flag:'`
Devang Patel5d28b882007-12-04 22:54:47 +000024015 (eval echo "\"\$as_me:24015: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024016 (eval "$lt_compile" 2>conftest.err)
24017 ac_status=$?
24018 cat conftest.err >&5
Devang Patel5d28b882007-12-04 22:54:47 +000024019 echo "$as_me:24019: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024020 if (exit $ac_status) && test -s "$ac_outfile"; then
24021 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024022 # So say no if there are warnings other than the usual output.
24023 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024026 lt_prog_compiler_pic_works_GCJ=yes
24027 fi
24028 fi
24029 $rm conftest*
24030
24031fi
Reid Spencera773bd52006-08-04 18:18:08 +000024032{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24033echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024034
24035if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24036 case $lt_prog_compiler_pic_GCJ in
24037 "" | " "*) ;;
24038 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24039 esac
24040else
24041 lt_prog_compiler_pic_GCJ=
24042 lt_prog_compiler_can_build_shared_GCJ=no
24043fi
24044
24045fi
Reid Spencera773bd52006-08-04 18:18:08 +000024046case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024047 # For platforms which do not support PIC, -DPIC is meaningless:
24048 *djgpp*)
24049 lt_prog_compiler_pic_GCJ=
24050 ;;
24051 *)
24052 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24053 ;;
24054esac
24055
Reid Spencera773bd52006-08-04 18:18:08 +000024056#
24057# Check to make sure the static flag actually works.
24058#
24059wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24060{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24061echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24062if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24064else
24065 lt_prog_compiler_static_works_GCJ=no
24066 save_LDFLAGS="$LDFLAGS"
24067 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24068 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24070 # The linker can only warn and ignore the option if not recognized
24071 # So say no if there are warnings
24072 if test -s conftest.err; then
24073 # Append any errors to the config.log.
24074 cat conftest.err 1>&5
24075 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24077 if diff conftest.exp conftest.er2 >/dev/null; then
24078 lt_prog_compiler_static_works_GCJ=yes
24079 fi
24080 else
24081 lt_prog_compiler_static_works_GCJ=yes
24082 fi
24083 fi
24084 $rm conftest*
24085 LDFLAGS="$save_LDFLAGS"
24086
24087fi
24088{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24089echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24090
24091if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24092 :
24093else
24094 lt_prog_compiler_static_GCJ=
24095fi
24096
24097
24098{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24099echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024100if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24102else
24103 lt_cv_prog_compiler_c_o_GCJ=no
24104 $rm -r conftest 2>/dev/null
24105 mkdir conftest
24106 cd conftest
24107 mkdir out
24108 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24109
John Criswell47fdd832003-07-14 16:52:07 +000024110 lt_compiler_flag="-o out/conftest2.$ac_objext"
24111 # Insert the option either (1) after the last *FLAGS variable, or
24112 # (2) before a word containing "conftest.", or (3) at the end.
24113 # Note that $ac_compile itself does not contain backslashes and begins
24114 # with a dollar sign (not a hyphen), so the echo should work correctly.
24115 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24118 -e 's:$: $lt_compiler_flag:'`
Devang Patel5d28b882007-12-04 22:54:47 +000024119 (eval echo "\"\$as_me:24119: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024120 (eval "$lt_compile" 2>out/conftest.err)
24121 ac_status=$?
24122 cat out/conftest.err >&5
Devang Patel5d28b882007-12-04 22:54:47 +000024123 echo "$as_me:24123: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024124 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24125 then
24126 # The compiler can only warn and ignore the option if not recognized
24127 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024128 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24129 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24130 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024131 lt_cv_prog_compiler_c_o_GCJ=yes
24132 fi
24133 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024134 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024135 $rm conftest*
24136 # SGI C++ compiler will create directory out/ii_files/ for
24137 # template instantiation
24138 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24139 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024140 cd ..
24141 rmdir conftest
24142 $rm conftest*
24143
24144fi
Reid Spencera773bd52006-08-04 18:18:08 +000024145{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24146echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024147
24148
24149hard_links="nottested"
24150if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24151 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024152 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24153echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024154 hard_links=yes
24155 $rm conftest*
24156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24157 touch conftest.a
24158 ln conftest.a conftest.b 2>&5 || hard_links=no
24159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024160 { echo "$as_me:$LINENO: result: $hard_links" >&5
24161echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024162 if test "$hard_links" = no; then
24163 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24164echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24165 need_locks=warn
24166 fi
24167else
24168 need_locks=no
24169fi
24170
Reid Spencera773bd52006-08-04 18:18:08 +000024171{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24172echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024173
24174 runpath_var=
24175 allow_undefined_flag_GCJ=
24176 enable_shared_with_static_runtimes_GCJ=no
24177 archive_cmds_GCJ=
24178 archive_expsym_cmds_GCJ=
24179 old_archive_From_new_cmds_GCJ=
24180 old_archive_from_expsyms_cmds_GCJ=
24181 export_dynamic_flag_spec_GCJ=
24182 whole_archive_flag_spec_GCJ=
24183 thread_safe_flag_spec_GCJ=
24184 hardcode_libdir_flag_spec_GCJ=
24185 hardcode_libdir_flag_spec_ld_GCJ=
24186 hardcode_libdir_separator_GCJ=
24187 hardcode_direct_GCJ=no
24188 hardcode_minus_L_GCJ=no
24189 hardcode_shlibpath_var_GCJ=unsupported
24190 link_all_deplibs_GCJ=unknown
24191 hardcode_automatic_GCJ=no
24192 module_cmds_GCJ=
24193 module_expsym_cmds_GCJ=
24194 always_export_symbols_GCJ=no
24195 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24196 # include_expsyms should be a list of space-separated symbols to be *always*
24197 # included in the symbol list
24198 include_expsyms_GCJ=
24199 # exclude_expsyms can be an extended regexp of symbols to exclude
24200 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24201 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24202 # as well as any symbol that contains `d'.
24203 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24204 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24205 # platforms (ab)use it in PIC code, but their linkers get confused if
24206 # the symbol is explicitly referenced. Since portable code cannot
24207 # rely on this symbol name, it's probably fine to never include it in
24208 # preloaded symbol tables.
24209 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024210 # Just being paranoid about ensuring that cc_basename is set.
24211 for cc_temp in $compiler""; do
24212 case $cc_temp in
24213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24215 \-*) ;;
24216 *) break;;
24217 esac
24218done
24219cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024220
24221 case $host_os in
24222 cygwin* | mingw* | pw32*)
24223 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24224 # When not using gcc, we currently assume that we are using
24225 # Microsoft Visual C++.
24226 if test "$GCC" != yes; then
24227 with_gnu_ld=no
24228 fi
24229 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024230 interix*)
24231 # we just hope/assume this is gcc and not c89 (= MSVC++)
24232 with_gnu_ld=yes
24233 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024234 openbsd*)
24235 with_gnu_ld=no
24236 ;;
24237 esac
24238
24239 ld_shlibs_GCJ=yes
24240 if test "$with_gnu_ld" = yes; then
24241 # If archive_cmds runs LD, not CC, wlarc should be empty
24242 wlarc='${wl}'
24243
Reid Spencera773bd52006-08-04 18:18:08 +000024244 # Set some defaults for GNU ld with shared library support. These
24245 # are reset later if shared libraries are not supported. Putting them
24246 # here allows them to be overridden if necessary.
24247 runpath_var=LD_RUN_PATH
24248 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24249 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24250 # ancient GNU ld didn't support --whole-archive et. al.
24251 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24252 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24253 else
24254 whole_archive_flag_spec_GCJ=
24255 fi
24256 supports_anon_versioning=no
24257 case `$LD -v 2>/dev/null` in
24258 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24259 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24260 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24261 *\ 2.11.*) ;; # other 2.11 versions
24262 *) supports_anon_versioning=yes ;;
24263 esac
24264
John Criswell47fdd832003-07-14 16:52:07 +000024265 # See if GNU ld supports shared libraries.
24266 case $host_os in
24267 aix3* | aix4* | aix5*)
24268 # On AIX/PPC, the GNU linker is very broken
24269 if test "$host_cpu" != ia64; then
24270 ld_shlibs_GCJ=no
24271 cat <<EOF 1>&2
24272
24273*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24274*** to be unable to reliably create shared libraries on AIX.
24275*** Therefore, libtool is disabling shared libraries support. If you
24276*** really care for shared libraries, you may want to modify your PATH
24277*** so that a non-GNU linker is found, and then restart.
24278
24279EOF
24280 fi
24281 ;;
24282
24283 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024284 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 +000024285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24286 hardcode_minus_L_GCJ=yes
24287
24288 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24289 # that the semantics of dynamic libraries on AmigaOS, at least up
24290 # to version 4, is to share data among multiple programs linked
24291 # with the same dynamic library. Since this doesn't match the
24292 # behavior of shared libraries on other platforms, we can't use
24293 # them.
24294 ld_shlibs_GCJ=no
24295 ;;
24296
24297 beos*)
24298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24299 allow_undefined_flag_GCJ=unsupported
24300 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24301 # support --undefined. This deserves some investigation. FIXME
24302 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24303 else
24304 ld_shlibs_GCJ=no
24305 fi
24306 ;;
24307
24308 cygwin* | mingw* | pw32*)
24309 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24310 # as there is no search path for DLLs.
24311 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24312 allow_undefined_flag_GCJ=unsupported
24313 always_export_symbols_GCJ=no
24314 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024315 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 +000024316
24317 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024318 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 +000024319 # If the export-symbols file already is a .def file (1st line
24320 # is EXPORTS), use it as is; otherwise, prepend...
24321 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24322 cp $export_symbols $output_objdir/$soname.def;
24323 else
24324 echo EXPORTS > $output_objdir/$soname.def;
24325 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024326 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024327 $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 +000024328 else
Reid Spencera773bd52006-08-04 18:18:08 +000024329 ld_shlibs_GCJ=no
24330 fi
24331 ;;
24332
24333 interix3*)
24334 hardcode_direct_GCJ=no
24335 hardcode_shlibpath_var_GCJ=no
24336 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24337 export_dynamic_flag_spec_GCJ='${wl}-E'
24338 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24339 # Instead, shared libraries are loaded at an image base (0x10000000 by
24340 # default) and relocated if they conflict, which is a slow very memory
24341 # consuming and fragmenting process. To avoid this, we pick a random,
24342 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24343 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24344 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'
24345 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'
24346 ;;
24347
24348 linux*)
24349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24350 tmp_addflag=
24351 case $cc_basename,$host_cpu in
24352 pgcc*) # Portland Group C compiler
24353 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'
24354 tmp_addflag=' $pic_flag'
24355 ;;
24356 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24357 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'
24358 tmp_addflag=' $pic_flag -Mnomain' ;;
24359 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24360 tmp_addflag=' -i_dynamic' ;;
24361 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24362 tmp_addflag=' -i_dynamic -nofor_main' ;;
24363 ifc* | ifort*) # Intel Fortran compiler
24364 tmp_addflag=' -nofor_main' ;;
24365 esac
24366 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24367
24368 if test $supports_anon_versioning = yes; then
24369 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24371 $echo "local: *; };" >> $output_objdir/$libname.ver~
24372 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24373 fi
24374 else
24375 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024376 fi
24377 ;;
24378
24379 netbsd*)
24380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24381 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24382 wlarc=
24383 else
24384 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24385 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24386 fi
24387 ;;
24388
Reid Spencera773bd52006-08-04 18:18:08 +000024389 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024390 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24391 ld_shlibs_GCJ=no
24392 cat <<EOF 1>&2
24393
24394*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24395*** create shared libraries on Solaris systems. Therefore, libtool
24396*** is disabling shared libraries support. We urge you to upgrade GNU
24397*** binutils to release 2.9.1 or newer. Another option is to modify
24398*** your PATH or compiler configuration so that the native linker is
24399*** used, and then restart.
24400
24401EOF
24402 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24403 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24404 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24405 else
24406 ld_shlibs_GCJ=no
24407 fi
24408 ;;
24409
Reid Spencera773bd52006-08-04 18:18:08 +000024410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24411 case `$LD -v 2>&1` in
24412 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24413 ld_shlibs_GCJ=no
24414 cat <<_LT_EOF 1>&2
24415
24416*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24417*** reliably create shared libraries on SCO systems. Therefore, libtool
24418*** is disabling shared libraries support. We urge you to upgrade GNU
24419*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24420*** your PATH or compiler configuration so that the native linker is
24421*** used, and then restart.
24422
24423_LT_EOF
24424 ;;
24425 *)
24426 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24427 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24428 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24429 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24430 else
24431 ld_shlibs_GCJ=no
24432 fi
24433 ;;
24434 esac
24435 ;;
24436
John Criswell47fdd832003-07-14 16:52:07 +000024437 sunos4*)
24438 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24439 wlarc=
24440 hardcode_direct_GCJ=yes
24441 hardcode_shlibpath_var_GCJ=no
24442 ;;
24443
24444 *)
24445 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24446 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24447 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24448 else
24449 ld_shlibs_GCJ=no
24450 fi
24451 ;;
24452 esac
24453
Reid Spencera773bd52006-08-04 18:18:08 +000024454 if test "$ld_shlibs_GCJ" = no; then
24455 runpath_var=
24456 hardcode_libdir_flag_spec_GCJ=
24457 export_dynamic_flag_spec_GCJ=
24458 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024459 fi
24460 else
24461 # PORTME fill in a description of your system's linker (not GNU ld)
24462 case $host_os in
24463 aix3*)
24464 allow_undefined_flag_GCJ=unsupported
24465 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024466 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 +000024467 # Note: this linker hardcodes the directories in LIBPATH if there
24468 # are no directories specified by -L.
24469 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024470 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024471 # Neither direct hardcoding nor static linking is supported with a
24472 # broken collect2.
24473 hardcode_direct_GCJ=unsupported
24474 fi
24475 ;;
24476
24477 aix4* | aix5*)
24478 if test "$host_cpu" = ia64; then
24479 # On IA64, the linker does run time linking by default, so we don't
24480 # have to do anything special.
24481 aix_use_runtimelinking=no
24482 exp_sym_flag='-Bexport'
24483 no_entry_flag=""
24484 else
24485 # If we're using GNU nm, then we don't want the "-C" option.
24486 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24487 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24488 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'
24489 else
24490 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'
24491 fi
24492 aix_use_runtimelinking=no
24493
24494 # Test if we are trying to use run time linking or normal
24495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24496 # need to do runtime linking.
24497 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24498 for ld_flag in $LDFLAGS; do
24499 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24500 aix_use_runtimelinking=yes
24501 break
24502 fi
24503 done
Reid Spencera773bd52006-08-04 18:18:08 +000024504 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024505 esac
24506
24507 exp_sym_flag='-bexport'
24508 no_entry_flag='-bnoentry'
24509 fi
24510
24511 # When large executables or shared objects are built, AIX ld can
24512 # have problems creating the table of contents. If linking a library
24513 # or program results in "error TOC overflow" add -mminimal-toc to
24514 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24515 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24516
24517 archive_cmds_GCJ=''
24518 hardcode_direct_GCJ=yes
24519 hardcode_libdir_separator_GCJ=':'
24520 link_all_deplibs_GCJ=yes
24521
24522 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024523 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024524 # We only want to do this on AIX 4.2 and lower, the check
24525 # below for broken collect2 doesn't work under 4.3+
24526 collect2name=`${CC} -print-prog-name=collect2`
24527 if test -f "$collect2name" && \
24528 strings "$collect2name" | grep resolve_lib_name >/dev/null
24529 then
24530 # We have reworked collect2
24531 hardcode_direct_GCJ=yes
24532 else
24533 # We have old collect2
24534 hardcode_direct_GCJ=unsupported
24535 # It fails to find uninstalled libraries when the uninstalled
24536 # path is not listed in the libpath. Setting hardcode_minus_L
24537 # to unsupported forces relinking
24538 hardcode_minus_L_GCJ=yes
24539 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24540 hardcode_libdir_separator_GCJ=
24541 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024542 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024543 esac
24544 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024545 if test "$aix_use_runtimelinking" = yes; then
24546 shared_flag="$shared_flag "'${wl}-G'
24547 fi
John Criswell47fdd832003-07-14 16:52:07 +000024548 else
24549 # not using gcc
24550 if test "$host_cpu" = ia64; then
24551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24552 # chokes on -Wl,-G. The following line is correct:
24553 shared_flag='-G'
24554 else
Reid Spencera773bd52006-08-04 18:18:08 +000024555 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024556 shared_flag='${wl}-G'
24557 else
24558 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024559 fi
John Criswell47fdd832003-07-14 16:52:07 +000024560 fi
24561 fi
24562
24563 # It seems that -bexpall does not export symbols beginning with
24564 # underscore (_), so it is better to generate a list of symbols to export.
24565 always_export_symbols_GCJ=yes
24566 if test "$aix_use_runtimelinking" = yes; then
24567 # Warning - without using the other runtime loading flags (-brtl),
24568 # -berok will link without error, but may produce a broken library.
24569 allow_undefined_flag_GCJ='-berok'
24570 # Determine the default libpath from the value encoded in an empty executable.
24571 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024572/* confdefs.h. */
24573_ACEOF
24574cat confdefs.h >>conftest.$ac_ext
24575cat >>conftest.$ac_ext <<_ACEOF
24576/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024577
John Criswell47fdd832003-07-14 16:52:07 +000024578int
24579main ()
24580{
24581
24582 ;
24583 return 0;
24584}
24585_ACEOF
24586rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024587if { (ac_try="$ac_link"
24588case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24591esac
24592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024594 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024595 grep -v '^ *+' conftest.er1 >conftest.err
24596 rm -f conftest.er1
24597 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24601 { (case "(($ac_try" in
24602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603 *) ac_try_echo=$ac_try;;
24604esac
24605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024607 ac_status=$?
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; } &&
24610 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024611 { (case "(($ac_try" in
24612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613 *) ac_try_echo=$ac_try;;
24614esac
24615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024617 ac_status=$?
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; }; then
24620
24621aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24622}'`
24623# Check for a 64-bit object if we didn't find anything.
24624if 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; }
24625}'`; fi
24626else
24627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024628sed 's/^/| /' conftest.$ac_ext >&5
24629
Reid Spencera773bd52006-08-04 18:18:08 +000024630
John Criswell47fdd832003-07-14 16:52:07 +000024631fi
Reid Spencera773bd52006-08-04 18:18:08 +000024632
24633rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024634 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024635if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24636
24637 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024638 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 +000024639 else
24640 if test "$host_cpu" = ia64; then
24641 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24642 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024643 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 +000024644 else
24645 # Determine the default libpath from the value encoded in an empty executable.
24646 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024647/* confdefs.h. */
24648_ACEOF
24649cat confdefs.h >>conftest.$ac_ext
24650cat >>conftest.$ac_ext <<_ACEOF
24651/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024652
John Criswell47fdd832003-07-14 16:52:07 +000024653int
24654main ()
24655{
24656
24657 ;
24658 return 0;
24659}
24660_ACEOF
24661rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024662if { (ac_try="$ac_link"
24663case "(($ac_try" in
24664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665 *) ac_try_echo=$ac_try;;
24666esac
24667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024669 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024670 grep -v '^ *+' conftest.er1 >conftest.err
24671 rm -f conftest.er1
24672 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24676 { (case "(($ac_try" in
24677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24678 *) ac_try_echo=$ac_try;;
24679esac
24680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24681 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024682 ac_status=$?
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; } &&
24685 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024686 { (case "(($ac_try" in
24687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688 *) ac_try_echo=$ac_try;;
24689esac
24690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24691 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024692 ac_status=$?
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); }; }; then
24695
24696aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24697}'`
24698# Check for a 64-bit object if we didn't find anything.
24699if 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; }
24700}'`; fi
24701else
24702 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024703sed 's/^/| /' conftest.$ac_ext >&5
24704
Reid Spencera773bd52006-08-04 18:18:08 +000024705
John Criswell47fdd832003-07-14 16:52:07 +000024706fi
Reid Spencera773bd52006-08-04 18:18:08 +000024707
24708rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024709 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24711
24712 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24713 # Warning - without using the other run time loading flags,
24714 # -berok will link without error, but may produce a broken library.
24715 no_undefined_flag_GCJ=' ${wl}-bernotok'
24716 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024717 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024718 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024719 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024720 # This is similar to how AIX traditionally builds its shared libraries.
24721 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 +000024722 fi
24723 fi
24724 ;;
24725
24726 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024727 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 +000024728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24729 hardcode_minus_L_GCJ=yes
24730 # see comment about different semantics on the GNU ld section
24731 ld_shlibs_GCJ=no
24732 ;;
24733
Reid Spencer2706f8c2004-09-19 23:53:36 +000024734 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024735 export_dynamic_flag_spec_GCJ=-rdynamic
24736 ;;
24737
24738 cygwin* | mingw* | pw32*)
24739 # When not using gcc, we currently assume that we are using
24740 # Microsoft Visual C++.
24741 # hardcode_libdir_flag_spec is actually meaningless, as there is
24742 # no search path for DLLs.
24743 hardcode_libdir_flag_spec_GCJ=' '
24744 allow_undefined_flag_GCJ=unsupported
24745 # Tell ltmain to make .lib files, not .a files.
24746 libext=lib
24747 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024748 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024749 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024750 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 +000024751 # The linker will automatically build a .lib file if we build a DLL.
24752 old_archive_From_new_cmds_GCJ='true'
24753 # FIXME: Should let the user specify the lib program.
24754 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024755 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024756 enable_shared_with_static_runtimes_GCJ=yes
24757 ;;
24758
24759 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024760 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024761 rhapsody* | darwin1.[012])
24762 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24763 ;;
24764 *) # Darwin 1.3 on
24765 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24766 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24767 else
24768 case ${MACOSX_DEPLOYMENT_TARGET} in
24769 10.[012])
24770 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24771 ;;
24772 10.*)
24773 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24774 ;;
24775 esac
24776 fi
24777 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024778 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024779 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024780 hardcode_direct_GCJ=no
24781 hardcode_automatic_GCJ=yes
24782 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024783 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024784 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024785 if test "$GCC" = yes ; then
24786 output_verbose_link_cmd='echo'
24787 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24788 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024789 # 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 +000024790 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}'
24791 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 +000024792 else
Reid Spencera773bd52006-08-04 18:18:08 +000024793 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024794 xlc*)
24795 output_verbose_link_cmd='echo'
24796 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24797 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024798 # 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 +000024799 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}'
24800 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 +000024801 ;;
24802 *)
24803 ld_shlibs_GCJ=no
24804 ;;
24805 esac
John Criswell47fdd832003-07-14 16:52:07 +000024806 fi
24807 ;;
24808
24809 dgux*)
24810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24811 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24812 hardcode_shlibpath_var_GCJ=no
24813 ;;
24814
24815 freebsd1*)
24816 ld_shlibs_GCJ=no
24817 ;;
24818
24819 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24820 # support. Future versions do this automatically, but an explicit c++rt0.o
24821 # does not break anything, and helps significantly (at the cost of a little
24822 # extra space).
24823 freebsd2.2*)
24824 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24825 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24826 hardcode_direct_GCJ=yes
24827 hardcode_shlibpath_var_GCJ=no
24828 ;;
24829
24830 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24831 freebsd2*)
24832 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24833 hardcode_direct_GCJ=yes
24834 hardcode_minus_L_GCJ=yes
24835 hardcode_shlibpath_var_GCJ=no
24836 ;;
24837
24838 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024839 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024840 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24841 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24842 hardcode_direct_GCJ=yes
24843 hardcode_shlibpath_var_GCJ=no
24844 ;;
24845
24846 hpux9*)
24847 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024848 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 +000024849 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024850 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 +000024851 fi
24852 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24853 hardcode_libdir_separator_GCJ=:
24854 hardcode_direct_GCJ=yes
24855
24856 # hardcode_minus_L: Not really in the search PATH,
24857 # but as the default location of the library.
24858 hardcode_minus_L_GCJ=yes
24859 export_dynamic_flag_spec_GCJ='${wl}-E'
24860 ;;
24861
Reid Spencera773bd52006-08-04 18:18:08 +000024862 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024863 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024864 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24865 else
24866 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24867 fi
24868 if test "$with_gnu_ld" = no; then
24869 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24870 hardcode_libdir_separator_GCJ=:
24871
24872 hardcode_direct_GCJ=yes
24873 export_dynamic_flag_spec_GCJ='${wl}-E'
24874
24875 # hardcode_minus_L: Not really in the search PATH,
24876 # but as the default location of the library.
24877 hardcode_minus_L_GCJ=yes
24878 fi
24879 ;;
24880
24881 hpux11*)
24882 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24883 case $host_cpu in
24884 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024885 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24886 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024887 ia64*)
24888 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24889 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024890 *)
24891 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24892 ;;
24893 esac
24894 else
Reid Spencera773bd52006-08-04 18:18:08 +000024895 case $host_cpu in
24896 hppa*64*)
24897 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24898 ;;
24899 ia64*)
24900 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024901 ;;
24902 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024903 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 +000024904 ;;
24905 esac
24906 fi
24907 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024908 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24909 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024910
Reid Spencera773bd52006-08-04 18:18:08 +000024911 case $host_cpu in
24912 hppa*64*|ia64*)
24913 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24914 hardcode_direct_GCJ=no
24915 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024916 ;;
24917 *)
John Criswell47fdd832003-07-14 16:52:07 +000024918 hardcode_direct_GCJ=yes
24919 export_dynamic_flag_spec_GCJ='${wl}-E'
24920
24921 # hardcode_minus_L: Not really in the search PATH,
24922 # but as the default location of the library.
24923 hardcode_minus_L_GCJ=yes
24924 ;;
24925 esac
24926 fi
24927 ;;
24928
24929 irix5* | irix6* | nonstopux*)
24930 if test "$GCC" = yes; then
24931 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'
24932 else
24933 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'
24934 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24935 fi
24936 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24937 hardcode_libdir_separator_GCJ=:
24938 link_all_deplibs_GCJ=yes
24939 ;;
24940
24941 netbsd*)
24942 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24943 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24944 else
24945 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24946 fi
24947 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24948 hardcode_direct_GCJ=yes
24949 hardcode_shlibpath_var_GCJ=no
24950 ;;
24951
24952 newsos6)
24953 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24954 hardcode_direct_GCJ=yes
24955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24956 hardcode_libdir_separator_GCJ=:
24957 hardcode_shlibpath_var_GCJ=no
24958 ;;
24959
24960 openbsd*)
24961 hardcode_direct_GCJ=yes
24962 hardcode_shlibpath_var_GCJ=no
24963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24964 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024965 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 +000024966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24967 export_dynamic_flag_spec_GCJ='${wl}-E'
24968 else
24969 case $host_os in
24970 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24971 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24972 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24973 ;;
24974 *)
24975 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24976 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24977 ;;
24978 esac
24979 fi
24980 ;;
24981
24982 os2*)
24983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24984 hardcode_minus_L_GCJ=yes
24985 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024986 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 +000024987 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24988 ;;
24989
24990 osf3*)
24991 if test "$GCC" = yes; then
24992 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24993 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'
24994 else
24995 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24996 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'
24997 fi
24998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24999 hardcode_libdir_separator_GCJ=:
25000 ;;
25001
25002 osf4* | osf5*) # as osf3* with the addition of -msym flag
25003 if test "$GCC" = yes; then
25004 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25005 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'
25006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25007 else
25008 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25009 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 +000025010 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 +000025011 $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 +000025012
John Criswell47fdd832003-07-14 16:52:07 +000025013 # Both c and cxx compiler support -rpath directly
25014 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25015 fi
25016 hardcode_libdir_separator_GCJ=:
25017 ;;
25018
John Criswell47fdd832003-07-14 16:52:07 +000025019 solaris*)
25020 no_undefined_flag_GCJ=' -z text'
25021 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025022 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025023 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025024 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25025 $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 +000025026 else
Reid Spencera773bd52006-08-04 18:18:08 +000025027 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025028 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025029 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25030 $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 +000025031 fi
25032 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25033 hardcode_shlibpath_var_GCJ=no
25034 case $host_os in
25035 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025036 *)
25037 # The compiler driver will combine linker options so we
25038 # cannot just pass the convience library names through
25039 # without $wl, iff we do not link with $LD.
25040 # Luckily, gcc supports the same syntax we need for Sun Studio.
25041 # Supported since Solaris 2.6 (maybe 2.5.1?)
25042 case $wlarc in
25043 '')
25044 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25045 *)
25046 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' ;;
25047 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025048 esac
25049 link_all_deplibs_GCJ=yes
25050 ;;
25051
25052 sunos4*)
25053 if test "x$host_vendor" = xsequent; then
25054 # Use $CC to link under sequent, because it throws in some extra .o
25055 # files that make .init and .fini sections work.
25056 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25057 else
25058 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25059 fi
25060 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25061 hardcode_direct_GCJ=yes
25062 hardcode_minus_L_GCJ=yes
25063 hardcode_shlibpath_var_GCJ=no
25064 ;;
25065
25066 sysv4)
25067 case $host_vendor in
25068 sni)
25069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25070 hardcode_direct_GCJ=yes # is this really true???
25071 ;;
25072 siemens)
25073 ## LD is ld it makes a PLAMLIB
25074 ## CC just makes a GrossModule.
25075 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25076 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25077 hardcode_direct_GCJ=no
25078 ;;
25079 motorola)
25080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25081 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25082 ;;
25083 esac
25084 runpath_var='LD_RUN_PATH'
25085 hardcode_shlibpath_var_GCJ=no
25086 ;;
25087
25088 sysv4.3*)
25089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25090 hardcode_shlibpath_var_GCJ=no
25091 export_dynamic_flag_spec_GCJ='-Bexport'
25092 ;;
25093
25094 sysv4*MP*)
25095 if test -d /usr/nec; then
25096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25097 hardcode_shlibpath_var_GCJ=no
25098 runpath_var=LD_RUN_PATH
25099 hardcode_runpath_var=yes
25100 ld_shlibs_GCJ=yes
25101 fi
25102 ;;
25103
Reid Spencera773bd52006-08-04 18:18:08 +000025104 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25105 no_undefined_flag_GCJ='${wl}-z,text'
25106 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025107 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025108 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025109
John Criswell47fdd832003-07-14 16:52:07 +000025110 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025111 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25112 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 +000025113 else
Reid Spencera773bd52006-08-04 18:18:08 +000025114 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25115 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 +000025116 fi
John Criswell47fdd832003-07-14 16:52:07 +000025117 ;;
25118
Reid Spencera773bd52006-08-04 18:18:08 +000025119 sysv5* | sco3.2v5* | sco5v6*)
25120 # Note: We can NOT use -z defs as we might desire, because we do not
25121 # link with -lc, and that would cause any symbols used from libc to
25122 # always be unresolved, which means just about no library would
25123 # ever link correctly. If we're not using GNU ld we use -z text
25124 # though, which does catch some bad symbols but isn't as heavy-handed
25125 # as -z defs.
25126 no_undefined_flag_GCJ='${wl}-z,text'
25127 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25128 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025129 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025130 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25131 hardcode_libdir_separator_GCJ=':'
25132 link_all_deplibs_GCJ=yes
25133 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025134 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025135
25136 if test "$GCC" = yes; then
25137 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25138 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25139 else
25140 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25141 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25142 fi
John Criswell47fdd832003-07-14 16:52:07 +000025143 ;;
25144
25145 uts4*)
25146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25148 hardcode_shlibpath_var_GCJ=no
25149 ;;
25150
25151 *)
25152 ld_shlibs_GCJ=no
25153 ;;
25154 esac
25155 fi
25156
Reid Spencera773bd52006-08-04 18:18:08 +000025157{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25158echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025159test "$ld_shlibs_GCJ" = no && can_build_shared=no
25160
John Criswell47fdd832003-07-14 16:52:07 +000025161#
25162# Do we need to explicitly link libc?
25163#
25164case "x$archive_cmds_need_lc_GCJ" in
25165x|xyes)
25166 # Assume -lc should be added
25167 archive_cmds_need_lc_GCJ=yes
25168
25169 if test "$enable_shared" = yes && test "$GCC" = yes; then
25170 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025171 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025172 # FIXME: we may have to deal with multi-command sequences.
25173 ;;
25174 '$CC '*)
25175 # Test whether the compiler implicitly links with -lc since on some
25176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25177 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025178 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25179echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025180 $rm conftest*
25181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25182
25183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25184 (eval $ac_compile) 2>&5
25185 ac_status=$?
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); } 2>conftest.err; then
25188 soname=conftest
25189 lib=conftest
25190 libobjs=conftest.$ac_objext
25191 deplibs=
25192 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025193 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025194 compiler_flags=-v
25195 linker_flags=-v
25196 verstring=
25197 output_objdir=.
25198 libname=conftest
25199 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25200 allow_undefined_flag_GCJ=
25201 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25202 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25203 ac_status=$?
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }
25206 then
25207 archive_cmds_need_lc_GCJ=no
25208 else
25209 archive_cmds_need_lc_GCJ=yes
25210 fi
25211 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25212 else
25213 cat conftest.err 1>&5
25214 fi
25215 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025216 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25217echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025218 ;;
25219 esac
25220 fi
25221 ;;
25222esac
25223
Reid Spencera773bd52006-08-04 18:18:08 +000025224{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25225echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025226library_names_spec=
25227libname_spec='lib$name'
25228soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025229shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025230postinstall_cmds=
25231postuninstall_cmds=
25232finish_cmds=
25233finish_eval=
25234shlibpath_var=
25235shlibpath_overrides_runpath=unknown
25236version_type=none
25237dynamic_linker="$host_os ld.so"
25238sys_lib_dlsearch_path_spec="/lib /usr/lib"
25239if test "$GCC" = yes; then
25240 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25241 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25242 # if the path contains ";" then we assume it to be the separator
25243 # otherwise default to the standard path separator (i.e. ":") - it is
25244 # assumed that no part of a normal pathname contains ";" but that should
25245 # okay in the real world where ";" in dirpaths is itself problematic.
25246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25247 else
25248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25249 fi
25250else
25251 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25252fi
25253need_lib_prefix=unknown
25254hardcode_into_libs=no
25255
25256# when you set need_version to no, make sure it does not cause -set_version
25257# flags to be left without arguments
25258need_version=unknown
25259
25260case $host_os in
25261aix3*)
25262 version_type=linux
25263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25264 shlibpath_var=LIBPATH
25265
25266 # AIX 3 has no versioning support, so we append a major version to the name.
25267 soname_spec='${libname}${release}${shared_ext}$major'
25268 ;;
25269
25270aix4* | aix5*)
25271 version_type=linux
25272 need_lib_prefix=no
25273 need_version=no
25274 hardcode_into_libs=yes
25275 if test "$host_cpu" = ia64; then
25276 # AIX 5 supports IA64
25277 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25278 shlibpath_var=LD_LIBRARY_PATH
25279 else
25280 # With GCC up to 2.95.x, collect2 would create an import file
25281 # for dependence libraries. The import file would start with
25282 # the line `#! .'. This would cause the generated library to
25283 # depend on `.', always an invalid library. This was fixed in
25284 # development snapshots of GCC prior to 3.0.
25285 case $host_os in
25286 aix4 | aix4.[01] | aix4.[01].*)
25287 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25288 echo ' yes '
25289 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25290 :
25291 else
25292 can_build_shared=no
25293 fi
25294 ;;
25295 esac
25296 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25297 # soname into executable. Probably we can add versioning support to
25298 # collect2, so additional links can be useful in future.
25299 if test "$aix_use_runtimelinking" = yes; then
25300 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25301 # instead of lib<name>.a to let people know that these are not
25302 # typical AIX shared libraries.
25303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25304 else
25305 # We preserve .a as extension for shared libraries through AIX4.2
25306 # and later when we are not doing run time linking.
25307 library_names_spec='${libname}${release}.a $libname.a'
25308 soname_spec='${libname}${release}${shared_ext}$major'
25309 fi
25310 shlibpath_var=LIBPATH
25311 fi
25312 ;;
25313
25314amigaos*)
25315 library_names_spec='$libname.ixlibrary $libname.a'
25316 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025317 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 +000025318 ;;
25319
25320beos*)
25321 library_names_spec='${libname}${shared_ext}'
25322 dynamic_linker="$host_os ld.so"
25323 shlibpath_var=LIBRARY_PATH
25324 ;;
25325
Reid Spencer2706f8c2004-09-19 23:53:36 +000025326bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025327 version_type=linux
25328 need_version=no
25329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25330 soname_spec='${libname}${release}${shared_ext}$major'
25331 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25332 shlibpath_var=LD_LIBRARY_PATH
25333 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25334 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25335 # the default ld.so.conf also contains /usr/contrib/lib and
25336 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25337 # libtool to hard-code these into programs
25338 ;;
25339
25340cygwin* | mingw* | pw32*)
25341 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025342 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025343 need_version=no
25344 need_lib_prefix=no
25345
25346 case $GCC,$host_os in
25347 yes,cygwin* | yes,mingw* | yes,pw32*)
25348 library_names_spec='$libname.dll.a'
25349 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025350 postinstall_cmds='base_file=`basename \${file}`~
25351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25352 dldir=$destdir/`dirname \$dlpath`~
25353 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025354 $install_prog $dir/$dlname \$dldir/$dlname~
25355 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25357 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025358 $rm \$dlpath'
25359 shlibpath_overrides_runpath=yes
25360
25361 case $host_os in
25362 cygwin*)
25363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25364 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 +000025365 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025366 ;;
25367 mingw*)
25368 # MinGW DLLs use traditional 'lib' prefix
25369 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25371 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25372 # It is most probably a Windows format PATH printed by
25373 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25374 # path with ; separators, and with drive letters. We can handle the
25375 # drive letters (cygwin fileutils understands them), so leave them,
25376 # especially as we might pass files found there to a mingw objdump,
25377 # which wouldn't understand a cygwinified path. Ahh.
25378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25379 else
25380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25381 fi
25382 ;;
25383 pw32*)
25384 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025385 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 +000025386 ;;
25387 esac
25388 ;;
25389
25390 *)
25391 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25392 ;;
25393 esac
25394 dynamic_linker='Win32 ld.exe'
25395 # FIXME: first we should search . and the directory the executable is in
25396 shlibpath_var=PATH
25397 ;;
25398
25399darwin* | rhapsody*)
25400 dynamic_linker="$host_os dyld"
25401 version_type=darwin
25402 need_lib_prefix=no
25403 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025404 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025405 soname_spec='${libname}${release}${major}$shared_ext'
25406 shlibpath_overrides_runpath=yes
25407 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025408 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025409 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025410 if test "$GCC" = yes; then
25411 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"`
25412 else
25413 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025414 fi
25415 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25416 ;;
25417
25418dgux*)
25419 version_type=linux
25420 need_lib_prefix=no
25421 need_version=no
25422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25423 soname_spec='${libname}${release}${shared_ext}$major'
25424 shlibpath_var=LD_LIBRARY_PATH
25425 ;;
25426
25427freebsd1*)
25428 dynamic_linker=no
25429 ;;
25430
Reid Spencer2706f8c2004-09-19 23:53:36 +000025431kfreebsd*-gnu)
25432 version_type=linux
25433 need_lib_prefix=no
25434 need_version=no
25435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25436 soname_spec='${libname}${release}${shared_ext}$major'
25437 shlibpath_var=LD_LIBRARY_PATH
25438 shlibpath_overrides_runpath=no
25439 hardcode_into_libs=yes
25440 dynamic_linker='GNU ld.so'
25441 ;;
25442
Reid Spencera773bd52006-08-04 18:18:08 +000025443freebsd* | dragonfly*)
25444 # DragonFly does not have aout. When/if they implement a new
25445 # versioning mechanism, adjust this.
25446 if test -x /usr/bin/objformat; then
25447 objformat=`/usr/bin/objformat`
25448 else
25449 case $host_os in
25450 freebsd[123]*) objformat=aout ;;
25451 *) objformat=elf ;;
25452 esac
25453 fi
John Criswell47fdd832003-07-14 16:52:07 +000025454 version_type=freebsd-$objformat
25455 case $version_type in
25456 freebsd-elf*)
25457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25458 need_version=no
25459 need_lib_prefix=no
25460 ;;
25461 freebsd-*)
25462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25463 need_version=yes
25464 ;;
25465 esac
25466 shlibpath_var=LD_LIBRARY_PATH
25467 case $host_os in
25468 freebsd2*)
25469 shlibpath_overrides_runpath=yes
25470 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025471 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025472 shlibpath_overrides_runpath=yes
25473 hardcode_into_libs=yes
25474 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025475 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25476 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025477 shlibpath_overrides_runpath=no
25478 hardcode_into_libs=yes
25479 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025480 freebsd*) # from 4.6 on
25481 shlibpath_overrides_runpath=yes
25482 hardcode_into_libs=yes
25483 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025484 esac
25485 ;;
25486
25487gnu*)
25488 version_type=linux
25489 need_lib_prefix=no
25490 need_version=no
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25492 soname_spec='${libname}${release}${shared_ext}$major'
25493 shlibpath_var=LD_LIBRARY_PATH
25494 hardcode_into_libs=yes
25495 ;;
25496
25497hpux9* | hpux10* | hpux11*)
25498 # Give a soname corresponding to the major version so that dld.sl refuses to
25499 # link against other versions.
25500 version_type=sunos
25501 need_lib_prefix=no
25502 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025503 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025504 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025505 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025506 hardcode_into_libs=yes
25507 dynamic_linker="$host_os dld.so"
25508 shlibpath_var=LD_LIBRARY_PATH
25509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25511 soname_spec='${libname}${release}${shared_ext}$major'
25512 if test "X$HPUX_IA64_MODE" = X32; then
25513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25514 else
25515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25516 fi
25517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25518 ;;
25519 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025520 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025521 hardcode_into_libs=yes
25522 dynamic_linker="$host_os dld.sl"
25523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25526 soname_spec='${libname}${release}${shared_ext}$major'
25527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25529 ;;
25530 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025531 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025532 dynamic_linker="$host_os dld.sl"
25533 shlibpath_var=SHLIB_PATH
25534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25536 soname_spec='${libname}${release}${shared_ext}$major'
25537 ;;
25538 esac
25539 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25540 postinstall_cmds='chmod 555 $lib'
25541 ;;
25542
Reid Spencera773bd52006-08-04 18:18:08 +000025543interix3*)
25544 version_type=linux
25545 need_lib_prefix=no
25546 need_version=no
25547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25548 soname_spec='${libname}${release}${shared_ext}$major'
25549 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25550 shlibpath_var=LD_LIBRARY_PATH
25551 shlibpath_overrides_runpath=no
25552 hardcode_into_libs=yes
25553 ;;
25554
John Criswell47fdd832003-07-14 16:52:07 +000025555irix5* | irix6* | nonstopux*)
25556 case $host_os in
25557 nonstopux*) version_type=nonstopux ;;
25558 *)
25559 if test "$lt_cv_prog_gnu_ld" = yes; then
25560 version_type=linux
25561 else
25562 version_type=irix
25563 fi ;;
25564 esac
25565 need_lib_prefix=no
25566 need_version=no
25567 soname_spec='${libname}${release}${shared_ext}$major'
25568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25569 case $host_os in
25570 irix5* | nonstopux*)
25571 libsuff= shlibsuff=
25572 ;;
25573 *)
25574 case $LD in # libtool.m4 will add one of these switches to LD
25575 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25576 libsuff= shlibsuff= libmagic=32-bit;;
25577 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25578 libsuff=32 shlibsuff=N32 libmagic=N32;;
25579 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25580 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25581 *) libsuff= shlibsuff= libmagic=never-match;;
25582 esac
25583 ;;
25584 esac
25585 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25586 shlibpath_overrides_runpath=no
25587 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25588 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25589 hardcode_into_libs=yes
25590 ;;
25591
25592# No shared lib support for Linux oldld, aout, or coff.
25593linux*oldld* | linux*aout* | linux*coff*)
25594 dynamic_linker=no
25595 ;;
25596
25597# This must be Linux ELF.
25598linux*)
25599 version_type=linux
25600 need_lib_prefix=no
25601 need_version=no
25602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25603 soname_spec='${libname}${release}${shared_ext}$major'
25604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25605 shlibpath_var=LD_LIBRARY_PATH
25606 shlibpath_overrides_runpath=no
25607 # This implies no fast_install, which is unacceptable.
25608 # Some rework will be needed to allow for fast_install
25609 # before this can be enabled.
25610 hardcode_into_libs=yes
25611
Reid Spencer2706f8c2004-09-19 23:53:36 +000025612 # Append ld.so.conf contents to the search path
25613 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025614 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 +000025615 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25616 fi
25617
John Criswell47fdd832003-07-14 16:52:07 +000025618 # We used to test for /lib/ld.so.1 and disable shared libraries on
25619 # powerpc, because MkLinux only supported shared libraries with the
25620 # GNU dynamic linker. Since this was broken with cross compilers,
25621 # most powerpc-linux boxes support dynamic linking these days and
25622 # people can always --disable-shared, the test was removed, and we
25623 # assume the GNU/Linux dynamic linker is in use.
25624 dynamic_linker='GNU/Linux ld.so'
25625 ;;
25626
Reid Spencer2706f8c2004-09-19 23:53:36 +000025627knetbsd*-gnu)
25628 version_type=linux
25629 need_lib_prefix=no
25630 need_version=no
25631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25632 soname_spec='${libname}${release}${shared_ext}$major'
25633 shlibpath_var=LD_LIBRARY_PATH
25634 shlibpath_overrides_runpath=no
25635 hardcode_into_libs=yes
25636 dynamic_linker='GNU ld.so'
25637 ;;
25638
John Criswell47fdd832003-07-14 16:52:07 +000025639netbsd*)
25640 version_type=sunos
25641 need_lib_prefix=no
25642 need_version=no
25643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25646 dynamic_linker='NetBSD (a.out) ld.so'
25647 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025649 soname_spec='${libname}${release}${shared_ext}$major'
25650 dynamic_linker='NetBSD ld.elf_so'
25651 fi
25652 shlibpath_var=LD_LIBRARY_PATH
25653 shlibpath_overrides_runpath=yes
25654 hardcode_into_libs=yes
25655 ;;
25656
25657newsos6)
25658 version_type=linux
25659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25660 shlibpath_var=LD_LIBRARY_PATH
25661 shlibpath_overrides_runpath=yes
25662 ;;
25663
Reid Spencer2706f8c2004-09-19 23:53:36 +000025664nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025665 version_type=linux
25666 need_lib_prefix=no
25667 need_version=no
25668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25669 soname_spec='${libname}${release}${shared_ext}$major'
25670 shlibpath_var=LD_LIBRARY_PATH
25671 shlibpath_overrides_runpath=yes
25672 ;;
25673
25674openbsd*)
25675 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025676 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025677 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025678 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25679 case $host_os in
25680 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25681 *) need_version=no ;;
25682 esac
John Criswell47fdd832003-07-14 16:52:07 +000025683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25685 shlibpath_var=LD_LIBRARY_PATH
25686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25687 case $host_os in
25688 openbsd2.[89] | openbsd2.[89].*)
25689 shlibpath_overrides_runpath=no
25690 ;;
25691 *)
25692 shlibpath_overrides_runpath=yes
25693 ;;
25694 esac
25695 else
25696 shlibpath_overrides_runpath=yes
25697 fi
25698 ;;
25699
25700os2*)
25701 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025702 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025703 need_lib_prefix=no
25704 library_names_spec='$libname${shared_ext} $libname.a'
25705 dynamic_linker='OS/2 ld.exe'
25706 shlibpath_var=LIBPATH
25707 ;;
25708
25709osf3* | osf4* | osf5*)
25710 version_type=osf
25711 need_lib_prefix=no
25712 need_version=no
25713 soname_spec='${libname}${release}${shared_ext}$major'
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715 shlibpath_var=LD_LIBRARY_PATH
25716 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25717 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25718 ;;
25719
John Criswell47fdd832003-07-14 16:52:07 +000025720solaris*)
25721 version_type=linux
25722 need_lib_prefix=no
25723 need_version=no
25724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 shlibpath_var=LD_LIBRARY_PATH
25727 shlibpath_overrides_runpath=yes
25728 hardcode_into_libs=yes
25729 # ldd complains unless libraries are executable
25730 postinstall_cmds='chmod +x $lib'
25731 ;;
25732
25733sunos4*)
25734 version_type=sunos
25735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25736 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25737 shlibpath_var=LD_LIBRARY_PATH
25738 shlibpath_overrides_runpath=yes
25739 if test "$with_gnu_ld" = yes; then
25740 need_lib_prefix=no
25741 fi
25742 need_version=yes
25743 ;;
25744
Reid Spencera773bd52006-08-04 18:18:08 +000025745sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025746 version_type=linux
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25748 soname_spec='${libname}${release}${shared_ext}$major'
25749 shlibpath_var=LD_LIBRARY_PATH
25750 case $host_vendor in
25751 sni)
25752 shlibpath_overrides_runpath=no
25753 need_lib_prefix=no
25754 export_dynamic_flag_spec='${wl}-Blargedynsym'
25755 runpath_var=LD_RUN_PATH
25756 ;;
25757 siemens)
25758 need_lib_prefix=no
25759 ;;
25760 motorola)
25761 need_lib_prefix=no
25762 need_version=no
25763 shlibpath_overrides_runpath=no
25764 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25765 ;;
25766 esac
25767 ;;
25768
25769sysv4*MP*)
25770 if test -d /usr/nec ;then
25771 version_type=linux
25772 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25773 soname_spec='$libname${shared_ext}.$major'
25774 shlibpath_var=LD_LIBRARY_PATH
25775 fi
25776 ;;
25777
Reid Spencera773bd52006-08-04 18:18:08 +000025778sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25779 version_type=freebsd-elf
25780 need_lib_prefix=no
25781 need_version=no
25782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25783 soname_spec='${libname}${release}${shared_ext}$major'
25784 shlibpath_var=LD_LIBRARY_PATH
25785 hardcode_into_libs=yes
25786 if test "$with_gnu_ld" = yes; then
25787 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25788 shlibpath_overrides_runpath=no
25789 else
25790 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25791 shlibpath_overrides_runpath=yes
25792 case $host_os in
25793 sco3.2v5*)
25794 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25795 ;;
25796 esac
25797 fi
25798 sys_lib_dlsearch_path_spec='/usr/lib'
25799 ;;
25800
John Criswell47fdd832003-07-14 16:52:07 +000025801uts4*)
25802 version_type=linux
25803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25804 soname_spec='${libname}${release}${shared_ext}$major'
25805 shlibpath_var=LD_LIBRARY_PATH
25806 ;;
25807
25808*)
25809 dynamic_linker=no
25810 ;;
25811esac
Reid Spencera773bd52006-08-04 18:18:08 +000025812{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25813echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025814test "$dynamic_linker" = no && can_build_shared=no
25815
Reid Spencera773bd52006-08-04 18:18:08 +000025816variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25817if test "$GCC" = yes; then
25818 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25819fi
25820
25821{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25822echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025823hardcode_action_GCJ=
25824if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25825 test -n "$runpath_var_GCJ" || \
25826 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25827
25828 # We can hardcode non-existant directories.
25829 if test "$hardcode_direct_GCJ" != no &&
25830 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25831 # have to relink, otherwise we might link with an installed library
25832 # when we should be linking with a yet-to-be-installed one
25833 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25834 test "$hardcode_minus_L_GCJ" != no; then
25835 # Linking always hardcodes the temporary library directory.
25836 hardcode_action_GCJ=relink
25837 else
25838 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25839 hardcode_action_GCJ=immediate
25840 fi
25841else
25842 # We cannot hardcode anything, or else we can only hardcode existing
25843 # directories.
25844 hardcode_action_GCJ=unsupported
25845fi
Reid Spencera773bd52006-08-04 18:18:08 +000025846{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25847echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025848
25849if test "$hardcode_action_GCJ" = relink; then
25850 # Fast installation is not supported
25851 enable_fast_install=no
25852elif test "$shlibpath_overrides_runpath" = yes ||
25853 test "$enable_shared" = no; then
25854 # Fast installation is not necessary
25855 enable_fast_install=needless
25856fi
25857
John Criswell47fdd832003-07-14 16:52:07 +000025858
25859# The else clause should only fire when bootstrapping the
25860# libtool distribution, otherwise you forgot to ship ltmain.sh
25861# with your package, and you will get complaints that there are
25862# no rules to generate ltmain.sh.
25863if test -f "$ltmain"; then
25864 # See if we are running on zsh, and set the options which allow our commands through
25865 # without removal of \ escapes.
25866 if test -n "${ZSH_VERSION+set}" ; then
25867 setopt NO_GLOB_SUBST
25868 fi
25869 # Now quote all the things that may contain metacharacters while being
25870 # careful not to overquote the AC_SUBSTed values. We take copies of the
25871 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025872 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 +000025873 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025874 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25875 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25876 deplibs_check_method reload_flag reload_cmds need_locks \
25877 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25878 lt_cv_sys_global_symbol_to_c_name_address \
25879 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25880 old_postinstall_cmds old_postuninstall_cmds \
25881 compiler_GCJ \
25882 CC_GCJ \
25883 LD_GCJ \
25884 lt_prog_compiler_wl_GCJ \
25885 lt_prog_compiler_pic_GCJ \
25886 lt_prog_compiler_static_GCJ \
25887 lt_prog_compiler_no_builtin_flag_GCJ \
25888 export_dynamic_flag_spec_GCJ \
25889 thread_safe_flag_spec_GCJ \
25890 whole_archive_flag_spec_GCJ \
25891 enable_shared_with_static_runtimes_GCJ \
25892 old_archive_cmds_GCJ \
25893 old_archive_from_new_cmds_GCJ \
25894 predep_objects_GCJ \
25895 postdep_objects_GCJ \
25896 predeps_GCJ \
25897 postdeps_GCJ \
25898 compiler_lib_search_path_GCJ \
25899 archive_cmds_GCJ \
25900 archive_expsym_cmds_GCJ \
25901 postinstall_cmds_GCJ \
25902 postuninstall_cmds_GCJ \
25903 old_archive_from_expsyms_cmds_GCJ \
25904 allow_undefined_flag_GCJ \
25905 no_undefined_flag_GCJ \
25906 export_symbols_cmds_GCJ \
25907 hardcode_libdir_flag_spec_GCJ \
25908 hardcode_libdir_flag_spec_ld_GCJ \
25909 hardcode_libdir_separator_GCJ \
25910 hardcode_automatic_GCJ \
25911 module_cmds_GCJ \
25912 module_expsym_cmds_GCJ \
25913 lt_cv_prog_compiler_c_o_GCJ \
25914 exclude_expsyms_GCJ \
25915 include_expsyms_GCJ; do
25916
25917 case $var in
25918 old_archive_cmds_GCJ | \
25919 old_archive_from_new_cmds_GCJ | \
25920 archive_cmds_GCJ | \
25921 archive_expsym_cmds_GCJ | \
25922 module_cmds_GCJ | \
25923 module_expsym_cmds_GCJ | \
25924 old_archive_from_expsyms_cmds_GCJ | \
25925 export_symbols_cmds_GCJ | \
25926 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25927 postinstall_cmds | postuninstall_cmds | \
25928 old_postinstall_cmds | old_postuninstall_cmds | \
25929 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25930 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025931 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 +000025932 ;;
25933 *)
25934 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25935 ;;
25936 esac
25937 done
25938
25939 case $lt_echo in
25940 *'\$0 --fallback-echo"')
25941 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25942 ;;
25943 esac
25944
25945cfgfile="$ofile"
25946
25947 cat <<__EOF__ >> "$cfgfile"
25948# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25949
25950# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25951
25952# Shell to use when invoking shell scripts.
25953SHELL=$lt_SHELL
25954
25955# Whether or not to build shared libraries.
25956build_libtool_libs=$enable_shared
25957
25958# Whether or not to build static libraries.
25959build_old_libs=$enable_static
25960
25961# Whether or not to add -lc for building shared libraries.
25962build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25963
25964# Whether or not to disallow shared libs when runtime libs are static
25965allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25966
25967# Whether or not to optimize for fast installation.
25968fast_install=$enable_fast_install
25969
25970# The host system.
25971host_alias=$host_alias
25972host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025973host_os=$host_os
25974
25975# The build system.
25976build_alias=$build_alias
25977build=$build
25978build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025979
25980# An echo program that does not interpret backslashes.
25981echo=$lt_echo
25982
25983# The archiver.
25984AR=$lt_AR
25985AR_FLAGS=$lt_AR_FLAGS
25986
25987# A C compiler.
25988LTCC=$lt_LTCC
25989
Reid Spencera773bd52006-08-04 18:18:08 +000025990# LTCC compiler flags.
25991LTCFLAGS=$lt_LTCFLAGS
25992
John Criswell47fdd832003-07-14 16:52:07 +000025993# A language-specific compiler.
25994CC=$lt_compiler_GCJ
25995
25996# Is the compiler the GNU C compiler?
25997with_gcc=$GCC_GCJ
25998
25999# An ERE matcher.
26000EGREP=$lt_EGREP
26001
26002# The linker used to build libraries.
26003LD=$lt_LD_GCJ
26004
26005# Whether we need hard or soft links.
26006LN_S=$lt_LN_S
26007
26008# A BSD-compatible nm program.
26009NM=$lt_NM
26010
26011# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026012STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026013
26014# Used to examine libraries when file_magic_cmd begins "file"
26015MAGIC_CMD=$MAGIC_CMD
26016
26017# Used on cygwin: DLL creation program.
26018DLLTOOL="$DLLTOOL"
26019
26020# Used on cygwin: object dumper.
26021OBJDUMP="$OBJDUMP"
26022
26023# Used on cygwin: assembler.
26024AS="$AS"
26025
26026# The name of the directory that contains temporary libtool files.
26027objdir=$objdir
26028
26029# How to create reloadable object files.
26030reload_flag=$lt_reload_flag
26031reload_cmds=$lt_reload_cmds
26032
26033# How to pass a linker flag through the compiler.
26034wl=$lt_lt_prog_compiler_wl_GCJ
26035
26036# Object file suffix (normally "o").
26037objext="$ac_objext"
26038
26039# Old archive suffix (normally "a").
26040libext="$libext"
26041
26042# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026043shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026044
26045# Executable file suffix (normally "").
26046exeext="$exeext"
26047
26048# Additional compiler flags for building library objects.
26049pic_flag=$lt_lt_prog_compiler_pic_GCJ
26050pic_mode=$pic_mode
26051
26052# What is the maximum length of a command?
26053max_cmd_len=$lt_cv_sys_max_cmd_len
26054
26055# Does compiler simultaneously support -c and -o options?
26056compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26057
Reid Spencera773bd52006-08-04 18:18:08 +000026058# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026059need_locks=$lt_need_locks
26060
26061# Do we need the lib prefix for modules?
26062need_lib_prefix=$need_lib_prefix
26063
26064# Do we need a version for libraries?
26065need_version=$need_version
26066
26067# Whether dlopen is supported.
26068dlopen_support=$enable_dlopen
26069
26070# Whether dlopen of programs is supported.
26071dlopen_self=$enable_dlopen_self
26072
26073# Whether dlopen of statically linked programs is supported.
26074dlopen_self_static=$enable_dlopen_self_static
26075
26076# Compiler flag to prevent dynamic linking.
26077link_static_flag=$lt_lt_prog_compiler_static_GCJ
26078
26079# Compiler flag to turn off builtin functions.
26080no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26081
26082# Compiler flag to allow reflexive dlopens.
26083export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26084
26085# Compiler flag to generate shared objects directly from archives.
26086whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26087
26088# Compiler flag to generate thread-safe objects.
26089thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26090
26091# Library versioning type.
26092version_type=$version_type
26093
26094# Format of library name prefix.
26095libname_spec=$lt_libname_spec
26096
26097# List of archive names. First name is the real one, the rest are links.
26098# The last name is the one that the linker finds with -lNAME.
26099library_names_spec=$lt_library_names_spec
26100
26101# The coded name of the library, if different from the real name.
26102soname_spec=$lt_soname_spec
26103
26104# Commands used to build and install an old-style archive.
26105RANLIB=$lt_RANLIB
26106old_archive_cmds=$lt_old_archive_cmds_GCJ
26107old_postinstall_cmds=$lt_old_postinstall_cmds
26108old_postuninstall_cmds=$lt_old_postuninstall_cmds
26109
26110# Create an old-style archive from a shared archive.
26111old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26112
26113# Create a temporary old-style archive to link instead of a shared archive.
26114old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26115
26116# Commands used to build and install a shared archive.
26117archive_cmds=$lt_archive_cmds_GCJ
26118archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26119postinstall_cmds=$lt_postinstall_cmds
26120postuninstall_cmds=$lt_postuninstall_cmds
26121
26122# Commands used to build a loadable module (assumed same as above if empty)
26123module_cmds=$lt_module_cmds_GCJ
26124module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26125
26126# Commands to strip libraries.
26127old_striplib=$lt_old_striplib
26128striplib=$lt_striplib
26129
26130# Dependencies to place before the objects being linked to create a
26131# shared library.
26132predep_objects=$lt_predep_objects_GCJ
26133
26134# Dependencies to place after the objects being linked to create a
26135# shared library.
26136postdep_objects=$lt_postdep_objects_GCJ
26137
26138# Dependencies to place before the objects being linked to create a
26139# shared library.
26140predeps=$lt_predeps_GCJ
26141
26142# Dependencies to place after the objects being linked to create a
26143# shared library.
26144postdeps=$lt_postdeps_GCJ
26145
26146# The library search path used internally by the compiler when linking
26147# a shared library.
26148compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26149
26150# Method to check whether dependent libraries are shared objects.
26151deplibs_check_method=$lt_deplibs_check_method
26152
26153# Command to use when deplibs_check_method == file_magic.
26154file_magic_cmd=$lt_file_magic_cmd
26155
26156# Flag that allows shared libraries with undefined symbols to be built.
26157allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26158
26159# Flag that forces no undefined symbols.
26160no_undefined_flag=$lt_no_undefined_flag_GCJ
26161
26162# Commands used to finish a libtool library installation in a directory.
26163finish_cmds=$lt_finish_cmds
26164
26165# Same as above, but a single script fragment to be evaled but not shown.
26166finish_eval=$lt_finish_eval
26167
26168# Take the output of nm and produce a listing of raw symbols and C names.
26169global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26170
26171# Transform the output of nm in a proper C declaration
26172global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26173
26174# Transform the output of nm in a C name address pair
26175global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26176
26177# This is the shared library runtime path variable.
26178runpath_var=$runpath_var
26179
26180# This is the shared library path variable.
26181shlibpath_var=$shlibpath_var
26182
26183# Is shlibpath searched before the hard-coded library search path?
26184shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26185
26186# How to hardcode a shared library path into an executable.
26187hardcode_action=$hardcode_action_GCJ
26188
26189# Whether we should hardcode library paths into libraries.
26190hardcode_into_libs=$hardcode_into_libs
26191
26192# Flag to hardcode \$libdir into a binary during linking.
26193# This must work even if \$libdir does not exist.
26194hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26195
26196# If ld is used when linking, flag to hardcode \$libdir into
26197# a binary during linking. This must work even if \$libdir does
26198# not exist.
26199hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26200
26201# Whether we need a single -rpath flag with a separated argument.
26202hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26203
26204# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26205# resulting binary.
26206hardcode_direct=$hardcode_direct_GCJ
26207
26208# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26209# resulting binary.
26210hardcode_minus_L=$hardcode_minus_L_GCJ
26211
26212# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26213# the resulting binary.
26214hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26215
26216# Set to yes if building a shared library automatically hardcodes DIR into the library
26217# and all subsequent libraries and executables linked against it.
26218hardcode_automatic=$hardcode_automatic_GCJ
26219
26220# Variables whose values should be saved in libtool wrapper scripts and
26221# restored at relink time.
26222variables_saved_for_relink="$variables_saved_for_relink"
26223
26224# Whether libtool must link a program against all its dependency libraries.
26225link_all_deplibs=$link_all_deplibs_GCJ
26226
26227# Compile-time system search path for libraries
26228sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26229
26230# Run-time system search path for libraries
26231sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26232
26233# Fix the shell variable \$srcfile for the compiler.
26234fix_srcfile_path="$fix_srcfile_path_GCJ"
26235
26236# Set to yes if exported symbols are required.
26237always_export_symbols=$always_export_symbols_GCJ
26238
26239# The commands to list exported symbols.
26240export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26241
26242# The commands to extract the exported symbol list from a shared archive.
26243extract_expsyms_cmds=$lt_extract_expsyms_cmds
26244
26245# Symbols that should not be listed in the preloaded symbols.
26246exclude_expsyms=$lt_exclude_expsyms_GCJ
26247
26248# Symbols that must always be exported.
26249include_expsyms=$lt_include_expsyms_GCJ
26250
26251# ### END LIBTOOL TAG CONFIG: $tagname
26252
26253__EOF__
26254
26255
26256else
26257 # If there is no Makefile yet, we rely on a make rule to execute
26258 # `config.status --recheck' to rerun these tests and create the
26259 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026260 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26261 if test -f "$ltmain_in"; then
26262 test -f Makefile && make "$ltmain"
26263 fi
John Criswell47fdd832003-07-14 16:52:07 +000026264fi
26265
26266
26267ac_ext=c
26268ac_cpp='$CPP $CPPFLAGS'
26269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26271ac_compiler_gnu=$ac_cv_c_compiler_gnu
26272
26273CC="$lt_save_CC"
26274
26275 else
26276 tagname=""
26277 fi
26278 ;;
26279
26280 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026281 ac_ext=c
26282ac_cpp='$CPP $CPPFLAGS'
26283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26285ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026286
26287
26288# Source file extension for RC test sources.
26289ac_ext=rc
26290
26291# Object file extension for compiled RC test sources.
26292objext=o
26293objext_RC=$objext
26294
26295# Code to be used in simple compile tests
26296lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26297
26298# Code to be used in simple link tests
26299lt_simple_link_test_code="$lt_simple_compile_test_code"
26300
26301# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26302
26303# If no C compiler was specified, use CC.
26304LTCC=${LTCC-"$CC"}
26305
Reid Spencera773bd52006-08-04 18:18:08 +000026306# If no C compiler flags were specified, use CFLAGS.
26307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26308
John Criswell47fdd832003-07-14 16:52:07 +000026309# Allow CC to be a program name with arguments.
26310compiler=$CC
26311
26312
Reid Spencera773bd52006-08-04 18:18:08 +000026313# save warnings/boilerplate of simple test code
26314ac_outfile=conftest.$ac_objext
26315printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26317_lt_compiler_boilerplate=`cat conftest.err`
26318$rm conftest*
26319
26320ac_outfile=conftest.$ac_objext
26321printf "$lt_simple_link_test_code" >conftest.$ac_ext
26322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26323_lt_linker_boilerplate=`cat conftest.err`
26324$rm conftest*
26325
26326
John Criswell47fdd832003-07-14 16:52:07 +000026327# Allow CC to be a program name with arguments.
26328lt_save_CC="$CC"
26329CC=${RC-"windres"}
26330compiler=$CC
26331compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026332for cc_temp in $compiler""; do
26333 case $cc_temp in
26334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26336 \-*) ;;
26337 *) break;;
26338 esac
26339done
26340cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26341
John Criswell47fdd832003-07-14 16:52:07 +000026342lt_cv_prog_compiler_c_o_RC=yes
26343
26344# The else clause should only fire when bootstrapping the
26345# libtool distribution, otherwise you forgot to ship ltmain.sh
26346# with your package, and you will get complaints that there are
26347# no rules to generate ltmain.sh.
26348if test -f "$ltmain"; then
26349 # See if we are running on zsh, and set the options which allow our commands through
26350 # without removal of \ escapes.
26351 if test -n "${ZSH_VERSION+set}" ; then
26352 setopt NO_GLOB_SUBST
26353 fi
26354 # Now quote all the things that may contain metacharacters while being
26355 # careful not to overquote the AC_SUBSTed values. We take copies of the
26356 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026357 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 +000026358 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026359 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26360 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26361 deplibs_check_method reload_flag reload_cmds need_locks \
26362 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26363 lt_cv_sys_global_symbol_to_c_name_address \
26364 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26365 old_postinstall_cmds old_postuninstall_cmds \
26366 compiler_RC \
26367 CC_RC \
26368 LD_RC \
26369 lt_prog_compiler_wl_RC \
26370 lt_prog_compiler_pic_RC \
26371 lt_prog_compiler_static_RC \
26372 lt_prog_compiler_no_builtin_flag_RC \
26373 export_dynamic_flag_spec_RC \
26374 thread_safe_flag_spec_RC \
26375 whole_archive_flag_spec_RC \
26376 enable_shared_with_static_runtimes_RC \
26377 old_archive_cmds_RC \
26378 old_archive_from_new_cmds_RC \
26379 predep_objects_RC \
26380 postdep_objects_RC \
26381 predeps_RC \
26382 postdeps_RC \
26383 compiler_lib_search_path_RC \
26384 archive_cmds_RC \
26385 archive_expsym_cmds_RC \
26386 postinstall_cmds_RC \
26387 postuninstall_cmds_RC \
26388 old_archive_from_expsyms_cmds_RC \
26389 allow_undefined_flag_RC \
26390 no_undefined_flag_RC \
26391 export_symbols_cmds_RC \
26392 hardcode_libdir_flag_spec_RC \
26393 hardcode_libdir_flag_spec_ld_RC \
26394 hardcode_libdir_separator_RC \
26395 hardcode_automatic_RC \
26396 module_cmds_RC \
26397 module_expsym_cmds_RC \
26398 lt_cv_prog_compiler_c_o_RC \
26399 exclude_expsyms_RC \
26400 include_expsyms_RC; do
26401
26402 case $var in
26403 old_archive_cmds_RC | \
26404 old_archive_from_new_cmds_RC | \
26405 archive_cmds_RC | \
26406 archive_expsym_cmds_RC | \
26407 module_cmds_RC | \
26408 module_expsym_cmds_RC | \
26409 old_archive_from_expsyms_cmds_RC | \
26410 export_symbols_cmds_RC | \
26411 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26412 postinstall_cmds | postuninstall_cmds | \
26413 old_postinstall_cmds | old_postuninstall_cmds | \
26414 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26415 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026416 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 +000026417 ;;
26418 *)
26419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26420 ;;
26421 esac
26422 done
26423
26424 case $lt_echo in
26425 *'\$0 --fallback-echo"')
26426 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26427 ;;
26428 esac
26429
26430cfgfile="$ofile"
26431
26432 cat <<__EOF__ >> "$cfgfile"
26433# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26434
26435# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26436
26437# Shell to use when invoking shell scripts.
26438SHELL=$lt_SHELL
26439
26440# Whether or not to build shared libraries.
26441build_libtool_libs=$enable_shared
26442
26443# Whether or not to build static libraries.
26444build_old_libs=$enable_static
26445
26446# Whether or not to add -lc for building shared libraries.
26447build_libtool_need_lc=$archive_cmds_need_lc_RC
26448
26449# Whether or not to disallow shared libs when runtime libs are static
26450allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26451
26452# Whether or not to optimize for fast installation.
26453fast_install=$enable_fast_install
26454
26455# The host system.
26456host_alias=$host_alias
26457host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026458host_os=$host_os
26459
26460# The build system.
26461build_alias=$build_alias
26462build=$build
26463build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026464
26465# An echo program that does not interpret backslashes.
26466echo=$lt_echo
26467
26468# The archiver.
26469AR=$lt_AR
26470AR_FLAGS=$lt_AR_FLAGS
26471
26472# A C compiler.
26473LTCC=$lt_LTCC
26474
Reid Spencera773bd52006-08-04 18:18:08 +000026475# LTCC compiler flags.
26476LTCFLAGS=$lt_LTCFLAGS
26477
John Criswell47fdd832003-07-14 16:52:07 +000026478# A language-specific compiler.
26479CC=$lt_compiler_RC
26480
26481# Is the compiler the GNU C compiler?
26482with_gcc=$GCC_RC
26483
26484# An ERE matcher.
26485EGREP=$lt_EGREP
26486
26487# The linker used to build libraries.
26488LD=$lt_LD_RC
26489
26490# Whether we need hard or soft links.
26491LN_S=$lt_LN_S
26492
26493# A BSD-compatible nm program.
26494NM=$lt_NM
26495
26496# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026497STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026498
26499# Used to examine libraries when file_magic_cmd begins "file"
26500MAGIC_CMD=$MAGIC_CMD
26501
26502# Used on cygwin: DLL creation program.
26503DLLTOOL="$DLLTOOL"
26504
26505# Used on cygwin: object dumper.
26506OBJDUMP="$OBJDUMP"
26507
26508# Used on cygwin: assembler.
26509AS="$AS"
26510
26511# The name of the directory that contains temporary libtool files.
26512objdir=$objdir
26513
26514# How to create reloadable object files.
26515reload_flag=$lt_reload_flag
26516reload_cmds=$lt_reload_cmds
26517
26518# How to pass a linker flag through the compiler.
26519wl=$lt_lt_prog_compiler_wl_RC
26520
26521# Object file suffix (normally "o").
26522objext="$ac_objext"
26523
26524# Old archive suffix (normally "a").
26525libext="$libext"
26526
26527# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026528shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026529
26530# Executable file suffix (normally "").
26531exeext="$exeext"
26532
26533# Additional compiler flags for building library objects.
26534pic_flag=$lt_lt_prog_compiler_pic_RC
26535pic_mode=$pic_mode
26536
26537# What is the maximum length of a command?
26538max_cmd_len=$lt_cv_sys_max_cmd_len
26539
26540# Does compiler simultaneously support -c and -o options?
26541compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26542
Reid Spencera773bd52006-08-04 18:18:08 +000026543# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026544need_locks=$lt_need_locks
26545
26546# Do we need the lib prefix for modules?
26547need_lib_prefix=$need_lib_prefix
26548
26549# Do we need a version for libraries?
26550need_version=$need_version
26551
26552# Whether dlopen is supported.
26553dlopen_support=$enable_dlopen
26554
26555# Whether dlopen of programs is supported.
26556dlopen_self=$enable_dlopen_self
26557
26558# Whether dlopen of statically linked programs is supported.
26559dlopen_self_static=$enable_dlopen_self_static
26560
26561# Compiler flag to prevent dynamic linking.
26562link_static_flag=$lt_lt_prog_compiler_static_RC
26563
26564# Compiler flag to turn off builtin functions.
26565no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26566
26567# Compiler flag to allow reflexive dlopens.
26568export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26569
26570# Compiler flag to generate shared objects directly from archives.
26571whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26572
26573# Compiler flag to generate thread-safe objects.
26574thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26575
26576# Library versioning type.
26577version_type=$version_type
26578
26579# Format of library name prefix.
26580libname_spec=$lt_libname_spec
26581
26582# List of archive names. First name is the real one, the rest are links.
26583# The last name is the one that the linker finds with -lNAME.
26584library_names_spec=$lt_library_names_spec
26585
26586# The coded name of the library, if different from the real name.
26587soname_spec=$lt_soname_spec
26588
26589# Commands used to build and install an old-style archive.
26590RANLIB=$lt_RANLIB
26591old_archive_cmds=$lt_old_archive_cmds_RC
26592old_postinstall_cmds=$lt_old_postinstall_cmds
26593old_postuninstall_cmds=$lt_old_postuninstall_cmds
26594
26595# Create an old-style archive from a shared archive.
26596old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26597
26598# Create a temporary old-style archive to link instead of a shared archive.
26599old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26600
26601# Commands used to build and install a shared archive.
26602archive_cmds=$lt_archive_cmds_RC
26603archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26604postinstall_cmds=$lt_postinstall_cmds
26605postuninstall_cmds=$lt_postuninstall_cmds
26606
26607# Commands used to build a loadable module (assumed same as above if empty)
26608module_cmds=$lt_module_cmds_RC
26609module_expsym_cmds=$lt_module_expsym_cmds_RC
26610
26611# Commands to strip libraries.
26612old_striplib=$lt_old_striplib
26613striplib=$lt_striplib
26614
26615# Dependencies to place before the objects being linked to create a
26616# shared library.
26617predep_objects=$lt_predep_objects_RC
26618
26619# Dependencies to place after the objects being linked to create a
26620# shared library.
26621postdep_objects=$lt_postdep_objects_RC
26622
26623# Dependencies to place before the objects being linked to create a
26624# shared library.
26625predeps=$lt_predeps_RC
26626
26627# Dependencies to place after the objects being linked to create a
26628# shared library.
26629postdeps=$lt_postdeps_RC
26630
26631# The library search path used internally by the compiler when linking
26632# a shared library.
26633compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26634
26635# Method to check whether dependent libraries are shared objects.
26636deplibs_check_method=$lt_deplibs_check_method
26637
26638# Command to use when deplibs_check_method == file_magic.
26639file_magic_cmd=$lt_file_magic_cmd
26640
26641# Flag that allows shared libraries with undefined symbols to be built.
26642allow_undefined_flag=$lt_allow_undefined_flag_RC
26643
26644# Flag that forces no undefined symbols.
26645no_undefined_flag=$lt_no_undefined_flag_RC
26646
26647# Commands used to finish a libtool library installation in a directory.
26648finish_cmds=$lt_finish_cmds
26649
26650# Same as above, but a single script fragment to be evaled but not shown.
26651finish_eval=$lt_finish_eval
26652
26653# Take the output of nm and produce a listing of raw symbols and C names.
26654global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26655
26656# Transform the output of nm in a proper C declaration
26657global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26658
26659# Transform the output of nm in a C name address pair
26660global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26661
26662# This is the shared library runtime path variable.
26663runpath_var=$runpath_var
26664
26665# This is the shared library path variable.
26666shlibpath_var=$shlibpath_var
26667
26668# Is shlibpath searched before the hard-coded library search path?
26669shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26670
26671# How to hardcode a shared library path into an executable.
26672hardcode_action=$hardcode_action_RC
26673
26674# Whether we should hardcode library paths into libraries.
26675hardcode_into_libs=$hardcode_into_libs
26676
26677# Flag to hardcode \$libdir into a binary during linking.
26678# This must work even if \$libdir does not exist.
26679hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26680
26681# If ld is used when linking, flag to hardcode \$libdir into
26682# a binary during linking. This must work even if \$libdir does
26683# not exist.
26684hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26685
26686# Whether we need a single -rpath flag with a separated argument.
26687hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26688
26689# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26690# resulting binary.
26691hardcode_direct=$hardcode_direct_RC
26692
26693# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26694# resulting binary.
26695hardcode_minus_L=$hardcode_minus_L_RC
26696
26697# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26698# the resulting binary.
26699hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26700
26701# Set to yes if building a shared library automatically hardcodes DIR into the library
26702# and all subsequent libraries and executables linked against it.
26703hardcode_automatic=$hardcode_automatic_RC
26704
26705# Variables whose values should be saved in libtool wrapper scripts and
26706# restored at relink time.
26707variables_saved_for_relink="$variables_saved_for_relink"
26708
26709# Whether libtool must link a program against all its dependency libraries.
26710link_all_deplibs=$link_all_deplibs_RC
26711
26712# Compile-time system search path for libraries
26713sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26714
26715# Run-time system search path for libraries
26716sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26717
26718# Fix the shell variable \$srcfile for the compiler.
26719fix_srcfile_path="$fix_srcfile_path_RC"
26720
26721# Set to yes if exported symbols are required.
26722always_export_symbols=$always_export_symbols_RC
26723
26724# The commands to list exported symbols.
26725export_symbols_cmds=$lt_export_symbols_cmds_RC
26726
26727# The commands to extract the exported symbol list from a shared archive.
26728extract_expsyms_cmds=$lt_extract_expsyms_cmds
26729
26730# Symbols that should not be listed in the preloaded symbols.
26731exclude_expsyms=$lt_exclude_expsyms_RC
26732
26733# Symbols that must always be exported.
26734include_expsyms=$lt_include_expsyms_RC
26735
26736# ### END LIBTOOL TAG CONFIG: $tagname
26737
26738__EOF__
26739
26740
26741else
26742 # If there is no Makefile yet, we rely on a make rule to execute
26743 # `config.status --recheck' to rerun these tests and create the
26744 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026745 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26746 if test -f "$ltmain_in"; then
26747 test -f Makefile && make "$ltmain"
26748 fi
John Criswell47fdd832003-07-14 16:52:07 +000026749fi
26750
26751
26752ac_ext=c
26753ac_cpp='$CPP $CPPFLAGS'
26754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26756ac_compiler_gnu=$ac_cv_c_compiler_gnu
26757
26758CC="$lt_save_CC"
26759
26760 ;;
26761
26762 *)
26763 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26764echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26765 { (exit 1); exit 1; }; }
26766 ;;
26767 esac
26768
26769 # Append the new tag name to the list of available tags.
26770 if test -n "$tagname" ; then
26771 available_tags="$available_tags $tagname"
26772 fi
26773 fi
26774 done
26775 IFS="$lt_save_ifs"
26776
26777 # Now substitute the updated list of available tags.
26778 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26779 mv "${ofile}T" "$ofile"
26780 chmod +x "$ofile"
26781 else
26782 rm -f "${ofile}T"
26783 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26784echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26785 { (exit 1); exit 1; }; }
26786 fi
26787fi
John Criswell7a73b802003-06-30 21:59:07 +000026788
26789
26790
26791# This can be used to rebuild libtool when needed
26792LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26793
26794# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026795LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026796
26797# Prevent multiple expansion
26798
26799
26800
John Criswell47fdd832003-07-14 16:52:07 +000026801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026818
Reid Spencer582a23c2004-12-29 07:07:57 +000026819if test "$lt_cv_dlopen_self" = "yes" ; then
26820
26821cat >>confdefs.h <<\_ACEOF
26822#define CAN_DLOPEN_SELF 1
26823_ACEOF
26824
26825fi
26826
Reid Spencer7931a782004-12-27 06:15:02 +000026827if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026828 LLVMGCC="llvm-gcc${EXEEXT}"
26829 LLVMGXX="llvm-g++${EXEEXT}"
26830 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26831set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026834if test "${ac_cv_path_LLVMGCC+set}" = set; then
26835 echo $ECHO_N "(cached) $ECHO_C" >&6
26836else
26837 case $LLVMGCC in
26838 [\\/]* | ?:[\\/]*)
26839 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26840 ;;
26841 *)
26842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26843for as_dir in $PATH
26844do
26845 IFS=$as_save_IFS
26846 test -z "$as_dir" && as_dir=.
26847 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026848 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 +000026849 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26851 break 2
26852 fi
26853done
26854done
Reid Spencera773bd52006-08-04 18:18:08 +000026855IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026856
Reid Spencer59473af2004-12-25 07:31:29 +000026857 ;;
26858esac
26859fi
26860LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026861if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026862 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26863echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026864else
Reid Spencera773bd52006-08-04 18:18:08 +000026865 { echo "$as_me:$LINENO: result: no" >&5
26866echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026867fi
26868
Reid Spencera773bd52006-08-04 18:18:08 +000026869
Reid Spencerc84492c2005-06-02 22:34:49 +000026870 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26871set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026874if test "${ac_cv_path_LLVMGXX+set}" = set; then
26875 echo $ECHO_N "(cached) $ECHO_C" >&6
26876else
26877 case $LLVMGXX in
26878 [\\/]* | ?:[\\/]*)
26879 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26880 ;;
26881 *)
26882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26883for as_dir in $PATH
26884do
26885 IFS=$as_save_IFS
26886 test -z "$as_dir" && as_dir=.
26887 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026888 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 +000026889 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26891 break 2
26892 fi
26893done
26894done
Reid Spencera773bd52006-08-04 18:18:08 +000026895IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026896
Reid Spencer59473af2004-12-25 07:31:29 +000026897 ;;
26898esac
26899fi
26900LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026901if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026902 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26903echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026904else
Reid Spencera773bd52006-08-04 18:18:08 +000026905 { echo "$as_me:$LINENO: result: no" >&5
26906echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026907fi
26908
Reid Spencera773bd52006-08-04 18:18:08 +000026909
Reid Spencer59473af2004-12-25 07:31:29 +000026910else
Devang Patel5d28b882007-12-04 22:54:47 +000026911 if test -z "$LLVMGCC"; then
26912 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26913 fi
26914 if test -z "$LLVMGXX"; then
26915 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26916 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026917 LLVMGCC=$LLVMGCC
26918
26919 LLVMGXX=$LLVMGXX
26920
26921fi
26922
Reid Spencera773bd52006-08-04 18:18:08 +000026923{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26924echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026925
Reid Spencer86901802004-12-08 23:07:27 +000026926ICC=no
26927IXX=no
26928case $CC in
26929 icc*|icpc*)
26930 ICC=yes
26931 IXX=yes
26932 ;;
26933 *)
26934 ;;
26935esac
26936
Duraid Madina937c60a2006-02-15 07:57:42 +000026937if test "$GCC" != "yes" && test "$ICC" != "yes"
26938then
26939 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26940echo "$as_me: error: gcc|icc required but not found" >&2;}
26941 { (exit 1); exit 1; }; }
26942fi
26943
26944if test "$GXX" != "yes" && test "$IXX" != "yes"
26945then
26946 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26947echo "$as_me: error: g++|icc required but not found" >&2;}
26948 { (exit 1); exit 1; }; }
26949fi
26950
Reid Spencer86901802004-12-08 23:07:27 +000026951if test "$GCC" = "yes"
26952then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026953 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026954 if test "$gccmajor" -lt "3"
26955 then
26956 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026957echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26958 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026959 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026960fi
26961
26962if test -z "$llvm_cv_gnu_make_command"
26963then
26964 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26965echo "$as_me: error: GNU Make required but not found" >&2;}
26966 { (exit 1); exit 1; }; }
26967fi
26968
Reid Spencera773bd52006-08-04 18:18:08 +000026969{ echo "$as_me:$LINENO: result: ok" >&5
26970echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026971
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026972
John Criswell7a73b802003-06-30 21:59:07 +000026973
Reid Spencera773bd52006-08-04 18:18:08 +000026974{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26975echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026976if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26978else
26979 ac_check_lib_save_LIBS=$LIBS
26980LIBS="-lelf $LIBS"
26981cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026982/* confdefs.h. */
26983_ACEOF
26984cat confdefs.h >>conftest.$ac_ext
26985cat >>conftest.$ac_ext <<_ACEOF
26986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026987
Reid Spencera773bd52006-08-04 18:18:08 +000026988/* Override any GCC internal prototype to avoid an error.
26989 Use char because int might match the return type of a GCC
26990 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026991#ifdef __cplusplus
26992extern "C"
26993#endif
John Criswell7a73b802003-06-30 21:59:07 +000026994char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026995int
26996main ()
26997{
Reid Spencera773bd52006-08-04 18:18:08 +000026998return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026999 ;
27000 return 0;
27001}
27002_ACEOF
27003rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027004if { (ac_try="$ac_link"
27005case "(($ac_try" in
27006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007 *) ac_try_echo=$ac_try;;
27008esac
27009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27010 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027011 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027012 grep -v '^ *+' conftest.er1 >conftest.err
27013 rm -f conftest.er1
27014 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27018 { (case "(($ac_try" in
27019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020 *) ac_try_echo=$ac_try;;
27021esac
27022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027024 ac_status=$?
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; } &&
27027 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027028 { (case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27031esac
27032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027034 ac_status=$?
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; }; then
27037 ac_cv_lib_elf_elf_begin=yes
27038else
27039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027040sed 's/^/| /' conftest.$ac_ext >&5
27041
Reid Spencera773bd52006-08-04 18:18:08 +000027042 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027043fi
Reid Spencera773bd52006-08-04 18:18:08 +000027044
27045rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027046 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027047LIBS=$ac_check_lib_save_LIBS
27048fi
Reid Spencera773bd52006-08-04 18:18:08 +000027049{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27050echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027051if test $ac_cv_lib_elf_elf_begin = yes; then
27052 cat >>confdefs.h <<_ACEOF
27053#define HAVE_LIBELF 1
27054_ACEOF
27055
27056 LIBS="-lelf $LIBS"
27057
27058fi
27059
27060
Reid Spencera773bd52006-08-04 18:18:08 +000027061{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27062echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027063if test "${ac_cv_lib_m_sin+set}" = set; then
27064 echo $ECHO_N "(cached) $ECHO_C" >&6
27065else
27066 ac_check_lib_save_LIBS=$LIBS
27067LIBS="-lm $LIBS"
27068cat >conftest.$ac_ext <<_ACEOF
27069/* confdefs.h. */
27070_ACEOF
27071cat confdefs.h >>conftest.$ac_ext
27072cat >>conftest.$ac_ext <<_ACEOF
27073/* end confdefs.h. */
27074
Reid Spencera773bd52006-08-04 18:18:08 +000027075/* Override any GCC internal prototype to avoid an error.
27076 Use char because int might match the return type of a GCC
27077 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027078#ifdef __cplusplus
27079extern "C"
27080#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027081char sin ();
27082int
27083main ()
27084{
Reid Spencera773bd52006-08-04 18:18:08 +000027085return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027086 ;
27087 return 0;
27088}
27089_ACEOF
27090rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027091if { (ac_try="$ac_link"
27092case "(($ac_try" in
27093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094 *) ac_try_echo=$ac_try;;
27095esac
27096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027098 ac_status=$?
27099 grep -v '^ *+' conftest.er1 >conftest.err
27100 rm -f conftest.er1
27101 cat conftest.err >&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105 { (case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108esac
27109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000027111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; } &&
27114 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118esac
27119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000027121 ac_status=$?
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; }; then
27124 ac_cv_lib_m_sin=yes
27125else
27126 echo "$as_me: failed program was:" >&5
27127sed 's/^/| /' conftest.$ac_ext >&5
27128
Reid Spencera773bd52006-08-04 18:18:08 +000027129 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027130fi
Reid Spencera773bd52006-08-04 18:18:08 +000027131
27132rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027133 conftest$ac_exeext conftest.$ac_ext
27134LIBS=$ac_check_lib_save_LIBS
27135fi
Reid Spencera773bd52006-08-04 18:18:08 +000027136{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27137echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027138if test $ac_cv_lib_m_sin = yes; then
27139 cat >>confdefs.h <<_ACEOF
27140#define HAVE_LIBM 1
27141_ACEOF
27142
27143 LIBS="-lm $LIBS"
27144
27145fi
27146
Jeff Cohen28783c32007-01-12 18:22:38 +000027147if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027148
Reid Spencera773bd52006-08-04 18:18:08 +000027149{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27150echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027151if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027152 echo $ECHO_N "(cached) $ECHO_C" >&6
27153else
27154 ac_check_lib_save_LIBS=$LIBS
27155LIBS="-limagehlp $LIBS"
27156cat >conftest.$ac_ext <<_ACEOF
27157/* confdefs.h. */
27158_ACEOF
27159cat confdefs.h >>conftest.$ac_ext
27160cat >>conftest.$ac_ext <<_ACEOF
27161/* end confdefs.h. */
27162
Reid Spencer48fdf912006-06-01 19:03:21 +000027163
Reid Spencer484fc8e2006-06-01 16:55:59 +000027164int
27165main ()
27166{
Reid Spencera773bd52006-08-04 18:18:08 +000027167return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027168 ;
27169 return 0;
27170}
27171_ACEOF
27172rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027173if { (ac_try="$ac_link"
27174case "(($ac_try" in
27175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176 *) ac_try_echo=$ac_try;;
27177esac
27178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027180 ac_status=$?
27181 grep -v '^ *+' conftest.er1 >conftest.err
27182 rm -f conftest.er1
27183 cat conftest.err >&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27187 { (case "(($ac_try" in
27188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27189 *) ac_try_echo=$ac_try;;
27190esac
27191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27192 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027193 ac_status=$?
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; } &&
27196 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027197 { (case "(($ac_try" in
27198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199 *) ac_try_echo=$ac_try;;
27200esac
27201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027206 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027207else
27208 echo "$as_me: failed program was:" >&5
27209sed 's/^/| /' conftest.$ac_ext >&5
27210
Reid Spencera773bd52006-08-04 18:18:08 +000027211 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027212fi
Reid Spencera773bd52006-08-04 18:18:08 +000027213
27214rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027215 conftest$ac_exeext conftest.$ac_ext
27216LIBS=$ac_check_lib_save_LIBS
27217fi
Reid Spencera773bd52006-08-04 18:18:08 +000027218{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27219echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027220if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027221 cat >>confdefs.h <<_ACEOF
27222#define HAVE_LIBIMAGEHLP 1
27223_ACEOF
27224
27225 LIBS="-limagehlp $LIBS"
27226
27227fi
27228
27229
Reid Spencera773bd52006-08-04 18:18:08 +000027230{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27231echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027232if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027233 echo $ECHO_N "(cached) $ECHO_C" >&6
27234else
27235 ac_check_lib_save_LIBS=$LIBS
27236LIBS="-lpsapi $LIBS"
27237cat >conftest.$ac_ext <<_ACEOF
27238/* confdefs.h. */
27239_ACEOF
27240cat confdefs.h >>conftest.$ac_ext
27241cat >>conftest.$ac_ext <<_ACEOF
27242/* end confdefs.h. */
27243
Reid Spencer48fdf912006-06-01 19:03:21 +000027244
Reid Spencer484fc8e2006-06-01 16:55:59 +000027245int
27246main ()
27247{
Reid Spencera773bd52006-08-04 18:18:08 +000027248return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027249 ;
27250 return 0;
27251}
27252_ACEOF
27253rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027254if { (ac_try="$ac_link"
27255case "(($ac_try" in
27256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257 *) ac_try_echo=$ac_try;;
27258esac
27259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027261 ac_status=$?
27262 grep -v '^ *+' conftest.er1 >conftest.err
27263 rm -f conftest.er1
27264 cat conftest.err >&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27268 { (case "(($ac_try" in
27269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270 *) ac_try_echo=$ac_try;;
27271esac
27272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027274 ac_status=$?
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; } &&
27277 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027278 { (case "(($ac_try" in
27279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280 *) ac_try_echo=$ac_try;;
27281esac
27282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027284 ac_status=$?
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027287 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027288else
27289 echo "$as_me: failed program was:" >&5
27290sed 's/^/| /' conftest.$ac_ext >&5
27291
Reid Spencera773bd52006-08-04 18:18:08 +000027292 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027293fi
Reid Spencera773bd52006-08-04 18:18:08 +000027294
27295rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027296 conftest$ac_exeext conftest.$ac_ext
27297LIBS=$ac_check_lib_save_LIBS
27298fi
Reid Spencera773bd52006-08-04 18:18:08 +000027299{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27300echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027301if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027302 cat >>confdefs.h <<_ACEOF
27303#define HAVE_LIBPSAPI 1
27304_ACEOF
27305
27306 LIBS="-lpsapi $LIBS"
27307
27308fi
27309
27310fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027311
Reid Spencera773bd52006-08-04 18:18:08 +000027312{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27313echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027314if test "${ac_cv_search_lt_dlopen+set}" = set; then
27315 echo $ECHO_N "(cached) $ECHO_C" >&6
27316else
27317 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027318cat >conftest.$ac_ext <<_ACEOF
27319/* confdefs.h. */
27320_ACEOF
27321cat confdefs.h >>conftest.$ac_ext
27322cat >>conftest.$ac_ext <<_ACEOF
27323/* end confdefs.h. */
27324
Reid Spencera773bd52006-08-04 18:18:08 +000027325/* Override any GCC internal prototype to avoid an error.
27326 Use char because int might match the return type of a GCC
27327 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027328#ifdef __cplusplus
27329extern "C"
27330#endif
Reid Spencer17795972004-11-18 09:47:37 +000027331char lt_dlopen ();
27332int
27333main ()
27334{
Reid Spencera773bd52006-08-04 18:18:08 +000027335return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027336 ;
27337 return 0;
27338}
27339_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027340for ac_lib in '' ltdl; do
27341 if test -z "$ac_lib"; then
27342 ac_res="none required"
27343 else
27344 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027346 fi
27347 rm -f conftest.$ac_objext conftest$ac_exeext
27348if { (ac_try="$ac_link"
27349case "(($ac_try" in
27350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351 *) ac_try_echo=$ac_try;;
27352esac
27353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027355 ac_status=$?
27356 grep -v '^ *+' conftest.er1 >conftest.err
27357 rm -f conftest.er1
27358 cat conftest.err >&5
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27362 { (case "(($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_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027368 ac_status=$?
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); }; } &&
27371 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027372 { (case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27375esac
27376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027381 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027382else
27383 echo "$as_me: failed program was:" >&5
27384sed 's/^/| /' conftest.$ac_ext >&5
27385
Reid Spencera773bd52006-08-04 18:18:08 +000027386
Reid Spencer17795972004-11-18 09:47:37 +000027387fi
Reid Spencera773bd52006-08-04 18:18:08 +000027388
27389rm -f core conftest.err conftest.$ac_objext \
27390 conftest$ac_exeext
27391 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27392 break
Reid Spencer17795972004-11-18 09:47:37 +000027393fi
Reid Spencera773bd52006-08-04 18:18:08 +000027394done
27395if test "${ac_cv_search_lt_dlopen+set}" = set; then
27396 :
27397else
27398 ac_cv_search_lt_dlopen=no
27399fi
27400rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027401LIBS=$ac_func_search_save_LIBS
27402fi
Reid Spencera773bd52006-08-04 18:18:08 +000027403{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27404echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27405ac_res=$ac_cv_search_lt_dlopen
27406if test "$ac_res" != no; then
27407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027408
27409cat >>confdefs.h <<\_ACEOF
27410#define HAVE_LT_DLOPEN 1
27411_ACEOF
27412
27413else
27414 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27415 not be available" >&5
27416echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27417 not be available" >&2;}
27418fi
27419
27420
Reid Spencera773bd52006-08-04 18:18:08 +000027421{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27422echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027423if test "${ac_cv_search_dlopen+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27425else
27426 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027427cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027428/* confdefs.h. */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027433
Reid Spencera773bd52006-08-04 18:18:08 +000027434/* Override any GCC internal prototype to avoid an error.
27435 Use char because int might match the return type of a GCC
27436 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027437#ifdef __cplusplus
27438extern "C"
27439#endif
John Criswell7a73b802003-06-30 21:59:07 +000027440char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027441int
27442main ()
27443{
Reid Spencera773bd52006-08-04 18:18:08 +000027444return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027445 ;
27446 return 0;
27447}
27448_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027449for ac_lib in '' dl; do
27450 if test -z "$ac_lib"; then
27451 ac_res="none required"
27452 else
27453 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027455 fi
27456 rm -f conftest.$ac_objext conftest$ac_exeext
27457if { (ac_try="$ac_link"
27458case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27461esac
27462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027465 grep -v '^ *+' conftest.er1 >conftest.err
27466 rm -f conftest.er1
27467 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27471 { (case "(($ac_try" in
27472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473 *) ac_try_echo=$ac_try;;
27474esac
27475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27476 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027477 ac_status=$?
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } &&
27480 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027481 { (case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27484esac
27485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027487 ac_status=$?
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027490 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027491else
27492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027493sed 's/^/| /' conftest.$ac_ext >&5
27494
Reid Spencera773bd52006-08-04 18:18:08 +000027495
John Criswell7a73b802003-06-30 21:59:07 +000027496fi
Reid Spencera773bd52006-08-04 18:18:08 +000027497
27498rm -f core conftest.err conftest.$ac_objext \
27499 conftest$ac_exeext
27500 if test "${ac_cv_search_dlopen+set}" = set; then
27501 break
John Criswell7a73b802003-06-30 21:59:07 +000027502fi
Reid Spencera773bd52006-08-04 18:18:08 +000027503done
27504if test "${ac_cv_search_dlopen+set}" = set; then
27505 :
27506else
27507 ac_cv_search_dlopen=no
27508fi
27509rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027510LIBS=$ac_func_search_save_LIBS
27511fi
Reid Spencera773bd52006-08-04 18:18:08 +000027512{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27513echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27514ac_res=$ac_cv_search_dlopen
27515if test "$ac_res" != no; then
27516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027517
27518cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027519#define HAVE_DLOPEN 1
27520_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027521
27522else
Brian Gaekec45be042003-10-07 06:01:34 +000027523 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27524echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027525fi
27526
27527
Reid Spencera773bd52006-08-04 18:18:08 +000027528{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27529echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027530if test "${ac_cv_search_mallinfo+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27532else
27533 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027534cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027535/* confdefs.h. */
27536_ACEOF
27537cat confdefs.h >>conftest.$ac_ext
27538cat >>conftest.$ac_ext <<_ACEOF
27539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027540
Reid Spencera773bd52006-08-04 18:18:08 +000027541/* Override any GCC internal prototype to avoid an error.
27542 Use char because int might match the return type of a GCC
27543 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027544#ifdef __cplusplus
27545extern "C"
27546#endif
John Criswell7a73b802003-06-30 21:59:07 +000027547char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027548int
27549main ()
27550{
Reid Spencera773bd52006-08-04 18:18:08 +000027551return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027552 ;
27553 return 0;
27554}
27555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027556for ac_lib in '' malloc; do
27557 if test -z "$ac_lib"; then
27558 ac_res="none required"
27559 else
27560 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027562 fi
27563 rm -f conftest.$ac_objext conftest$ac_exeext
27564if { (ac_try="$ac_link"
27565case "(($ac_try" in
27566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567 *) ac_try_echo=$ac_try;;
27568esac
27569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027571 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027572 grep -v '^ *+' conftest.er1 >conftest.err
27573 rm -f conftest.er1
27574 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27578 { (case "(($ac_try" in
27579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580 *) ac_try_echo=$ac_try;;
27581esac
27582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027584 ac_status=$?
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; } &&
27587 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027588 { (case "(($ac_try" in
27589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590 *) ac_try_echo=$ac_try;;
27591esac
27592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027594 ac_status=$?
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027597 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027598else
27599 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027600sed 's/^/| /' conftest.$ac_ext >&5
27601
Reid Spencera773bd52006-08-04 18:18:08 +000027602
John Criswell7a73b802003-06-30 21:59:07 +000027603fi
Reid Spencera773bd52006-08-04 18:18:08 +000027604
27605rm -f core conftest.err conftest.$ac_objext \
27606 conftest$ac_exeext
27607 if test "${ac_cv_search_mallinfo+set}" = set; then
27608 break
John Criswell7a73b802003-06-30 21:59:07 +000027609fi
Reid Spencera773bd52006-08-04 18:18:08 +000027610done
27611if test "${ac_cv_search_mallinfo+set}" = set; then
27612 :
27613else
27614 ac_cv_search_mallinfo=no
27615fi
27616rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027617LIBS=$ac_func_search_save_LIBS
27618fi
Reid Spencera773bd52006-08-04 18:18:08 +000027619{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27620echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27621ac_res=$ac_cv_search_mallinfo
27622if test "$ac_res" != no; then
27623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027624
27625cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027626#define HAVE_MALLINFO 1
27627_ACEOF
27628
27629fi
27630
27631
Reid Spencer0a262ba2005-08-24 10:07:20 +000027632if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027633
Reid Spencera773bd52006-08-04 18:18:08 +000027634{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27635echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027636if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27637 echo $ECHO_N "(cached) $ECHO_C" >&6
27638else
27639 ac_check_lib_save_LIBS=$LIBS
27640LIBS="-lpthread $LIBS"
27641cat >conftest.$ac_ext <<_ACEOF
27642/* confdefs.h. */
27643_ACEOF
27644cat confdefs.h >>conftest.$ac_ext
27645cat >>conftest.$ac_ext <<_ACEOF
27646/* end confdefs.h. */
27647
Reid Spencera773bd52006-08-04 18:18:08 +000027648/* Override any GCC internal prototype to avoid an error.
27649 Use char because int might match the return type of a GCC
27650 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027651#ifdef __cplusplus
27652extern "C"
27653#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027654char pthread_mutex_init ();
27655int
27656main ()
27657{
Reid Spencera773bd52006-08-04 18:18:08 +000027658return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027659 ;
27660 return 0;
27661}
27662_ACEOF
27663rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027664if { (ac_try="$ac_link"
27665case "(($ac_try" in
27666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27668esac
27669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027671 ac_status=$?
27672 grep -v '^ *+' conftest.er1 >conftest.err
27673 rm -f conftest.er1
27674 cat conftest.err >&5
27675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27678 { (case "(($ac_try" in
27679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680 *) ac_try_echo=$ac_try;;
27681esac
27682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027684 ac_status=$?
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; } &&
27687 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027688 { (case "(($ac_try" in
27689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690 *) ac_try_echo=$ac_try;;
27691esac
27692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027694 ac_status=$?
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; }; then
27697 ac_cv_lib_pthread_pthread_mutex_init=yes
27698else
27699 echo "$as_me: failed program was:" >&5
27700sed 's/^/| /' conftest.$ac_ext >&5
27701
Reid Spencera773bd52006-08-04 18:18:08 +000027702 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027703fi
Reid Spencera773bd52006-08-04 18:18:08 +000027704
27705rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027706 conftest$ac_exeext conftest.$ac_ext
27707LIBS=$ac_check_lib_save_LIBS
27708fi
Reid Spencera773bd52006-08-04 18:18:08 +000027709{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27710echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027711if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27712 cat >>confdefs.h <<_ACEOF
27713#define HAVE_LIBPTHREAD 1
27714_ACEOF
27715
27716 LIBS="-lpthread $LIBS"
27717
27718fi
27719
Reid Spencera773bd52006-08-04 18:18:08 +000027720 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27721echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027722if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27723 echo $ECHO_N "(cached) $ECHO_C" >&6
27724else
27725 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027726cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027727/* confdefs.h. */
27728_ACEOF
27729cat confdefs.h >>conftest.$ac_ext
27730cat >>conftest.$ac_ext <<_ACEOF
27731/* end confdefs.h. */
27732
Reid Spencera773bd52006-08-04 18:18:08 +000027733/* Override any GCC internal prototype to avoid an error.
27734 Use char because int might match the return type of a GCC
27735 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027736#ifdef __cplusplus
27737extern "C"
27738#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027739char pthread_mutex_lock ();
27740int
27741main ()
27742{
Reid Spencera773bd52006-08-04 18:18:08 +000027743return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027744 ;
27745 return 0;
27746}
27747_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027748for ac_lib in '' pthread; do
27749 if test -z "$ac_lib"; then
27750 ac_res="none required"
27751 else
27752 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027754 fi
27755 rm -f conftest.$ac_objext conftest$ac_exeext
27756if { (ac_try="$ac_link"
27757case "(($ac_try" in
27758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759 *) ac_try_echo=$ac_try;;
27760esac
27761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027763 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027764 grep -v '^ *+' conftest.er1 >conftest.err
27765 rm -f conftest.er1
27766 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27770 { (case "(($ac_try" in
27771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772 *) ac_try_echo=$ac_try;;
27773esac
27774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027776 ac_status=$?
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); }; } &&
27779 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027780 { (case "(($ac_try" in
27781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782 *) ac_try_echo=$ac_try;;
27783esac
27784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027786 ac_status=$?
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027789 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027790else
27791 echo "$as_me: failed program was:" >&5
27792sed 's/^/| /' conftest.$ac_ext >&5
27793
Reid Spencera773bd52006-08-04 18:18:08 +000027794
Brian Gaeke5f268f72003-12-05 19:29:01 +000027795fi
Reid Spencera773bd52006-08-04 18:18:08 +000027796
27797rm -f core conftest.err conftest.$ac_objext \
27798 conftest$ac_exeext
27799 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27800 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027801fi
Reid Spencera773bd52006-08-04 18:18:08 +000027802done
27803if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27804 :
27805else
27806 ac_cv_search_pthread_mutex_lock=no
27807fi
27808rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027809LIBS=$ac_func_search_save_LIBS
27810fi
Reid Spencera773bd52006-08-04 18:18:08 +000027811{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27812echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27813ac_res=$ac_cv_search_pthread_mutex_lock
27814if test "$ac_res" != no; then
27815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027816
John Criswell40468462004-09-24 21:19:06 +000027817cat >>confdefs.h <<\_ACEOF
27818#define HAVE_PTHREAD_MUTEX_LOCK 1
27819_ACEOF
27820
27821fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027822
Reid Spencer0a262ba2005-08-24 10:07:20 +000027823fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027824
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027825
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027826# Check whether --with-udis86 was given.
27827if test "${with_udis86+set}" = set; then
27828 withval=$with_udis86;
27829 USE_UDIS86=1
27830
27831 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027832 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027833 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27834 esac
27835
27836{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27837echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27838if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27840else
27841 ac_check_lib_save_LIBS=$LIBS
27842LIBS="-ludis86 $LIBS"
27843cat >conftest.$ac_ext <<_ACEOF
27844/* confdefs.h. */
27845_ACEOF
27846cat confdefs.h >>conftest.$ac_ext
27847cat >>conftest.$ac_ext <<_ACEOF
27848/* end confdefs.h. */
27849
27850/* Override any GCC internal prototype to avoid an error.
27851 Use char because int might match the return type of a GCC
27852 builtin and then its argument prototype would still apply. */
27853#ifdef __cplusplus
27854extern "C"
27855#endif
27856char ud_init ();
27857int
27858main ()
27859{
27860return ud_init ();
27861 ;
27862 return 0;
27863}
27864_ACEOF
27865rm -f conftest.$ac_objext conftest$ac_exeext
27866if { (ac_try="$ac_link"
27867case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27870esac
27871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_link") 2>conftest.er1
27873 ac_status=$?
27874 grep -v '^ *+' conftest.er1 >conftest.err
27875 rm -f conftest.er1
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } &&
27879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880 { (case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27883esac
27884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_try") 2>&5
27886 ac_status=$?
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest$ac_exeext'
27890 { (case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27893esac
27894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895 (eval "$ac_try") 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 ac_cv_lib_udis86_ud_init=yes
27900else
27901 echo "$as_me: failed program was:" >&5
27902sed 's/^/| /' conftest.$ac_ext >&5
27903
27904 ac_cv_lib_udis86_ud_init=no
27905fi
27906
27907rm -f core conftest.err conftest.$ac_objext \
27908 conftest$ac_exeext conftest.$ac_ext
27909LIBS=$ac_check_lib_save_LIBS
27910fi
27911{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27912echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27913if test $ac_cv_lib_udis86_ud_init = yes; then
27914 cat >>confdefs.h <<_ACEOF
27915#define HAVE_LIBUDIS86 1
27916_ACEOF
27917
27918 LIBS="-ludis86 $LIBS"
27919
27920else
27921
27922 echo "Error! You need to have libudis86 around."
27923 exit -1
27924
27925fi
27926
27927
27928else
27929 USE_UDIS86=0
27930
27931fi
27932
27933
27934cat >>confdefs.h <<_ACEOF
27935#define USE_UDIS86 $USE_UDIS86
27936_ACEOF
27937
27938
27939
Reid Spencer59473af2004-12-25 07:31:29 +000027940
27941
27942
27943
27944
27945ac_header_dirent=no
27946for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27947 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027948{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27949echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027951 echo $ECHO_N "(cached) $ECHO_C" >&6
27952else
27953 cat >conftest.$ac_ext <<_ACEOF
27954/* confdefs.h. */
27955_ACEOF
27956cat confdefs.h >>conftest.$ac_ext
27957cat >>conftest.$ac_ext <<_ACEOF
27958/* end confdefs.h. */
27959#include <sys/types.h>
27960#include <$ac_hdr>
27961
27962int
27963main ()
27964{
27965if ((DIR *) 0)
27966return 0;
27967 ;
27968 return 0;
27969}
27970_ACEOF
27971rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027972if { (ac_try="$ac_compile"
27973case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27976esac
27977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027979 ac_status=$?
27980 grep -v '^ *+' conftest.er1 >conftest.err
27981 rm -f conftest.er1
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27986 { (case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27989esac
27990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; } &&
27995 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027996 { (case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
27999esac
28000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028002 ac_status=$?
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 eval "$as_ac_Header=yes"
28006else
28007 echo "$as_me: failed program was:" >&5
28008sed 's/^/| /' conftest.$ac_ext >&5
28009
Reid Spencera773bd52006-08-04 18:18:08 +000028010 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028011fi
Reid Spencera773bd52006-08-04 18:18:08 +000028012
28013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028014fi
Reid Spencera773bd52006-08-04 18:18:08 +000028015ac_res=`eval echo '${'$as_ac_Header'}'`
28016 { echo "$as_me:$LINENO: result: $ac_res" >&5
28017echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028018if test `eval echo '${'$as_ac_Header'}'` = yes; then
28019 cat >>confdefs.h <<_ACEOF
28020#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28021_ACEOF
28022
28023ac_header_dirent=$ac_hdr; break
28024fi
28025
28026done
28027# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28028if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028029 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28030echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028031if test "${ac_cv_search_opendir+set}" = set; then
28032 echo $ECHO_N "(cached) $ECHO_C" >&6
28033else
28034 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028035cat >conftest.$ac_ext <<_ACEOF
28036/* confdefs.h. */
28037_ACEOF
28038cat confdefs.h >>conftest.$ac_ext
28039cat >>conftest.$ac_ext <<_ACEOF
28040/* end confdefs.h. */
28041
Reid Spencera773bd52006-08-04 18:18:08 +000028042/* Override any GCC internal prototype to avoid an error.
28043 Use char because int might match the return type of a GCC
28044 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028045#ifdef __cplusplus
28046extern "C"
28047#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028048char opendir ();
28049int
28050main ()
28051{
Reid Spencera773bd52006-08-04 18:18:08 +000028052return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028053 ;
28054 return 0;
28055}
28056_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028057for ac_lib in '' dir; do
28058 if test -z "$ac_lib"; then
28059 ac_res="none required"
28060 else
28061 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028063 fi
28064 rm -f conftest.$ac_objext conftest$ac_exeext
28065if { (ac_try="$ac_link"
28066case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28069esac
28070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028072 ac_status=$?
28073 grep -v '^ *+' conftest.er1 >conftest.err
28074 rm -f conftest.er1
28075 cat conftest.err >&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28079 { (case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28082esac
28083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028085 ac_status=$?
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; } &&
28088 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028089 { (case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28092esac
28093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028095 ac_status=$?
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028098 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028099else
28100 echo "$as_me: failed program was:" >&5
28101sed 's/^/| /' conftest.$ac_ext >&5
28102
Reid Spencera773bd52006-08-04 18:18:08 +000028103
Reid Spencer59473af2004-12-25 07:31:29 +000028104fi
Reid Spencera773bd52006-08-04 18:18:08 +000028105
28106rm -f core conftest.err conftest.$ac_objext \
28107 conftest$ac_exeext
28108 if test "${ac_cv_search_opendir+set}" = set; then
28109 break
Reid Spencer59473af2004-12-25 07:31:29 +000028110fi
Reid Spencera773bd52006-08-04 18:18:08 +000028111done
28112if test "${ac_cv_search_opendir+set}" = set; then
28113 :
28114else
28115 ac_cv_search_opendir=no
28116fi
28117rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028118LIBS=$ac_func_search_save_LIBS
28119fi
Reid Spencera773bd52006-08-04 18:18:08 +000028120{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28121echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28122ac_res=$ac_cv_search_opendir
28123if test "$ac_res" != no; then
28124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028125
28126fi
28127
28128else
Reid Spencera773bd52006-08-04 18:18:08 +000028129 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28130echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028131if test "${ac_cv_search_opendir+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28133else
28134 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028135cat >conftest.$ac_ext <<_ACEOF
28136/* confdefs.h. */
28137_ACEOF
28138cat confdefs.h >>conftest.$ac_ext
28139cat >>conftest.$ac_ext <<_ACEOF
28140/* end confdefs.h. */
28141
Reid Spencera773bd52006-08-04 18:18:08 +000028142/* Override any GCC internal prototype to avoid an error.
28143 Use char because int might match the return type of a GCC
28144 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028145#ifdef __cplusplus
28146extern "C"
28147#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028148char opendir ();
28149int
28150main ()
28151{
Reid Spencera773bd52006-08-04 18:18:08 +000028152return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028153 ;
28154 return 0;
28155}
28156_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028157for ac_lib in '' x; do
28158 if test -z "$ac_lib"; then
28159 ac_res="none required"
28160 else
28161 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028163 fi
28164 rm -f conftest.$ac_objext conftest$ac_exeext
28165if { (ac_try="$ac_link"
28166case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28169esac
28170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028172 ac_status=$?
28173 grep -v '^ *+' conftest.er1 >conftest.err
28174 rm -f conftest.er1
28175 cat conftest.err >&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28179 { (case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28182esac
28183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028185 ac_status=$?
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; } &&
28188 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028189 { (case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28192esac
28193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028195 ac_status=$?
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028198 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028199else
28200 echo "$as_me: failed program was:" >&5
28201sed 's/^/| /' conftest.$ac_ext >&5
28202
Reid Spencera773bd52006-08-04 18:18:08 +000028203
Reid Spencer59473af2004-12-25 07:31:29 +000028204fi
Reid Spencera773bd52006-08-04 18:18:08 +000028205
28206rm -f core conftest.err conftest.$ac_objext \
28207 conftest$ac_exeext
28208 if test "${ac_cv_search_opendir+set}" = set; then
28209 break
Reid Spencer59473af2004-12-25 07:31:29 +000028210fi
Reid Spencera773bd52006-08-04 18:18:08 +000028211done
28212if test "${ac_cv_search_opendir+set}" = set; then
28213 :
28214else
28215 ac_cv_search_opendir=no
28216fi
28217rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028218LIBS=$ac_func_search_save_LIBS
28219fi
Reid Spencera773bd52006-08-04 18:18:08 +000028220{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28221echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28222ac_res=$ac_cv_search_opendir
28223if test "$ac_res" != no; then
28224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028225
28226fi
28227
28228fi
28229
Reid Spencera773bd52006-08-04 18:18:08 +000028230{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28231echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028232if test "${ac_cv_header_mmap_anon+set}" = set; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28234else
28235 ac_ext=c
28236ac_cpp='$CPP $CPPFLAGS'
28237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28239ac_compiler_gnu=$ac_cv_c_compiler_gnu
28240
28241 cat >conftest.$ac_ext <<_ACEOF
28242/* confdefs.h. */
28243_ACEOF
28244cat confdefs.h >>conftest.$ac_ext
28245cat >>conftest.$ac_ext <<_ACEOF
28246/* end confdefs.h. */
28247#include <sys/mman.h>
28248#include <unistd.h>
28249#include <fcntl.h>
28250int
28251main ()
28252{
28253mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28254 ;
28255 return 0;
28256}
28257_ACEOF
28258rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028259if { (ac_try="$ac_compile"
28260case "(($ac_try" in
28261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262 *) ac_try_echo=$ac_try;;
28263esac
28264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028266 ac_status=$?
28267 grep -v '^ *+' conftest.er1 >conftest.err
28268 rm -f conftest.er1
28269 cat conftest.err >&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28273 { (case "(($ac_try" in
28274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275 *) ac_try_echo=$ac_try;;
28276esac
28277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; } &&
28282 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028283 { (case "(($ac_try" in
28284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285 *) ac_try_echo=$ac_try;;
28286esac
28287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028289 ac_status=$?
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); }; }; then
28292 ac_cv_header_mmap_anon=yes
28293else
28294 echo "$as_me: failed program was:" >&5
28295sed 's/^/| /' conftest.$ac_ext >&5
28296
Reid Spencera773bd52006-08-04 18:18:08 +000028297 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028298fi
Reid Spencera773bd52006-08-04 18:18:08 +000028299
28300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028301 ac_ext=c
28302ac_cpp='$CPP $CPPFLAGS'
28303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28305ac_compiler_gnu=$ac_cv_c_compiler_gnu
28306
28307
28308fi
Reid Spencera773bd52006-08-04 18:18:08 +000028309{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28310echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028311if test "$ac_cv_header_mmap_anon" = yes; then
28312
28313cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028314#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028315_ACEOF
28316
28317fi
28318
Reid Spencera773bd52006-08-04 18:18:08 +000028319{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28320echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028321if test "${ac_cv_header_stat_broken+set}" = set; then
28322 echo $ECHO_N "(cached) $ECHO_C" >&6
28323else
28324 cat >conftest.$ac_ext <<_ACEOF
28325/* confdefs.h. */
28326_ACEOF
28327cat confdefs.h >>conftest.$ac_ext
28328cat >>conftest.$ac_ext <<_ACEOF
28329/* end confdefs.h. */
28330#include <sys/types.h>
28331#include <sys/stat.h>
28332
Reid Spencera773bd52006-08-04 18:18:08 +000028333#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028334# if S_ISBLK (S_IFDIR)
28335You lose.
28336# endif
28337#endif
28338
Reid Spencera773bd52006-08-04 18:18:08 +000028339#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028340# if S_ISBLK (S_IFCHR)
28341You lose.
28342# endif
28343#endif
28344
Reid Spencera773bd52006-08-04 18:18:08 +000028345#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028346# if S_ISLNK (S_IFREG)
28347You lose.
28348# endif
28349#endif
28350
Reid Spencera773bd52006-08-04 18:18:08 +000028351#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028352# if S_ISSOCK (S_IFREG)
28353You lose.
28354# endif
28355#endif
28356
28357_ACEOF
28358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28359 $EGREP "You lose" >/dev/null 2>&1; then
28360 ac_cv_header_stat_broken=yes
28361else
28362 ac_cv_header_stat_broken=no
28363fi
28364rm -f conftest*
28365
28366fi
Reid Spencera773bd52006-08-04 18:18:08 +000028367{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28368echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028369if test $ac_cv_header_stat_broken = yes; then
28370
28371cat >>confdefs.h <<\_ACEOF
28372#define STAT_MACROS_BROKEN 1
28373_ACEOF
28374
28375fi
28376
Reid Spencera773bd52006-08-04 18:18:08 +000028377{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28378echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028379if test "${ac_cv_header_stdc+set}" = set; then
28380 echo $ECHO_N "(cached) $ECHO_C" >&6
28381else
28382 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028383/* confdefs.h. */
28384_ACEOF
28385cat confdefs.h >>conftest.$ac_ext
28386cat >>conftest.$ac_ext <<_ACEOF
28387/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028388#include <stdlib.h>
28389#include <stdarg.h>
28390#include <string.h>
28391#include <float.h>
28392
John Criswell0c38eaf2003-09-10 15:17:25 +000028393int
28394main ()
28395{
28396
28397 ;
28398 return 0;
28399}
John Criswell7a73b802003-06-30 21:59:07 +000028400_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028401rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028402if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028410 grep -v '^ *+' conftest.er1 >conftest.err
28411 rm -f conftest.er1
28412 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028414 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28416 { (case "(($ac_try" in
28417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418 *) ac_try_echo=$ac_try;;
28419esac
28420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28421 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028422 ac_status=$?
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); }; } &&
28425 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028426 { (case "(($ac_try" in
28427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428 *) ac_try_echo=$ac_try;;
28429esac
28430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028432 ac_status=$?
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028435 ac_cv_header_stdc=yes
28436else
28437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028438sed 's/^/| /' conftest.$ac_ext >&5
28439
Reid Spencera773bd52006-08-04 18:18:08 +000028440 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028441fi
Reid Spencera773bd52006-08-04 18:18:08 +000028442
28443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028444
28445if test $ac_cv_header_stdc = yes; then
28446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28447 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028448/* confdefs.h. */
28449_ACEOF
28450cat confdefs.h >>conftest.$ac_ext
28451cat >>conftest.$ac_ext <<_ACEOF
28452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028453#include <string.h>
28454
28455_ACEOF
28456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028457 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028458 :
28459else
28460 ac_cv_header_stdc=no
28461fi
28462rm -f conftest*
28463
28464fi
28465
28466if test $ac_cv_header_stdc = yes; then
28467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28468 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028469/* confdefs.h. */
28470_ACEOF
28471cat confdefs.h >>conftest.$ac_ext
28472cat >>conftest.$ac_ext <<_ACEOF
28473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028474#include <stdlib.h>
28475
28476_ACEOF
28477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028478 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028479 :
28480else
28481 ac_cv_header_stdc=no
28482fi
28483rm -f conftest*
28484
28485fi
28486
28487if test $ac_cv_header_stdc = yes; then
28488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28489 if test "$cross_compiling" = yes; then
28490 :
28491else
28492 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028493/* confdefs.h. */
28494_ACEOF
28495cat confdefs.h >>conftest.$ac_ext
28496cat >>conftest.$ac_ext <<_ACEOF
28497/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028498#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028499#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028500#if ((' ' & 0x0FF) == 0x020)
28501# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28502# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28503#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028504# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028505 (('a' <= (c) && (c) <= 'i') \
28506 || ('j' <= (c) && (c) <= 'r') \
28507 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028508# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28509#endif
28510
28511#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28512int
28513main ()
28514{
28515 int i;
28516 for (i = 0; i < 256; i++)
28517 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028518 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028519 return 2;
28520 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028521}
28522_ACEOF
28523rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028524if { (ac_try="$ac_link"
28525case "(($ac_try" in
28526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527 *) ac_try_echo=$ac_try;;
28528esac
28529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28530 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028531 ac_status=$?
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028534 { (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
John Criswell7a73b802003-06-30 21:59:07 +000028540 ac_status=$?
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); }; }; then
28543 :
28544else
28545 echo "$as_me: program exited with status $ac_status" >&5
28546echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028547sed 's/^/| /' conftest.$ac_ext >&5
28548
John Criswell7a73b802003-06-30 21:59:07 +000028549( exit $ac_status )
28550ac_cv_header_stdc=no
28551fi
Reid Spencera773bd52006-08-04 18:18:08 +000028552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28553fi
28554
28555
John Criswell7a73b802003-06-30 21:59:07 +000028556fi
28557fi
Reid Spencera773bd52006-08-04 18:18:08 +000028558{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28559echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028560if test $ac_cv_header_stdc = yes; then
28561
28562cat >>confdefs.h <<\_ACEOF
28563#define STDC_HEADERS 1
28564_ACEOF
28565
28566fi
28567
Reid Spencera773bd52006-08-04 18:18:08 +000028568{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28569echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028570if test "${ac_cv_header_sys_wait_h+set}" = set; then
28571 echo $ECHO_N "(cached) $ECHO_C" >&6
28572else
28573 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028579#include <sys/types.h>
28580#include <sys/wait.h>
28581#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028582# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028583#endif
28584#ifndef WIFEXITED
28585# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28586#endif
28587
John Criswell7a73b802003-06-30 21:59:07 +000028588int
28589main ()
28590{
28591 int s;
28592 wait (&s);
28593 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28594 ;
28595 return 0;
28596}
28597_ACEOF
28598rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028599if { (ac_try="$ac_compile"
28600case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28603esac
28604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028606 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028607 grep -v '^ *+' conftest.er1 >conftest.err
28608 rm -f conftest.er1
28609 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28613 { (case "(($ac_try" in
28614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28615 *) ac_try_echo=$ac_try;;
28616esac
28617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28618 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028619 ac_status=$?
28620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); }; } &&
28622 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028623 { (case "(($ac_try" in
28624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625 *) ac_try_echo=$ac_try;;
28626esac
28627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028629 ac_status=$?
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); }; }; then
28632 ac_cv_header_sys_wait_h=yes
28633else
28634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028635sed 's/^/| /' conftest.$ac_ext >&5
28636
Reid Spencera773bd52006-08-04 18:18:08 +000028637 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028638fi
Reid Spencera773bd52006-08-04 18:18:08 +000028639
28640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028641fi
Reid Spencera773bd52006-08-04 18:18:08 +000028642{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28643echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028644if test $ac_cv_header_sys_wait_h = yes; then
28645
28646cat >>confdefs.h <<\_ACEOF
28647#define HAVE_SYS_WAIT_H 1
28648_ACEOF
28649
28650fi
28651
Reid Spencera773bd52006-08-04 18:18:08 +000028652{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28653echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028654if test "${ac_cv_header_time+set}" = set; then
28655 echo $ECHO_N "(cached) $ECHO_C" >&6
28656else
28657 cat >conftest.$ac_ext <<_ACEOF
28658/* confdefs.h. */
28659_ACEOF
28660cat confdefs.h >>conftest.$ac_ext
28661cat >>conftest.$ac_ext <<_ACEOF
28662/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028663#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028664#include <sys/time.h>
28665#include <time.h>
28666
28667int
28668main ()
28669{
28670if ((struct tm *) 0)
28671return 0;
28672 ;
28673 return 0;
28674}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028675_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028676rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028677if { (ac_try="$ac_compile"
28678case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28681esac
28682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028684 ac_status=$?
28685 grep -v '^ *+' conftest.er1 >conftest.err
28686 rm -f conftest.er1
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028689 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28691 { (case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28694esac
28695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028697 ac_status=$?
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; } &&
28700 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028701 { (case "(($ac_try" in
28702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703 *) ac_try_echo=$ac_try;;
28704esac
28705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28706 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028707 ac_status=$?
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); }; }; then
28710 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028711else
28712 echo "$as_me: failed program was:" >&5
28713sed 's/^/| /' conftest.$ac_ext >&5
28714
Reid Spencera773bd52006-08-04 18:18:08 +000028715 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028716fi
Reid Spencera773bd52006-08-04 18:18:08 +000028717
28718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028719fi
Reid Spencera773bd52006-08-04 18:18:08 +000028720{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28721echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028722if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028723
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028724cat >>confdefs.h <<\_ACEOF
28725#define TIME_WITH_SYS_TIME 1
28726_ACEOF
28727
28728fi
28729
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028730
Reid Spencer59473af2004-12-25 07:31:29 +000028731
28732
28733
28734
28735
28736
28737for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28738do
28739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028744 echo $ECHO_N "(cached) $ECHO_C" >&6
28745fi
Reid Spencera773bd52006-08-04 18:18:08 +000028746ac_res=`eval echo '${'$as_ac_Header'}'`
28747 { echo "$as_me:$LINENO: result: $ac_res" >&5
28748echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028749else
28750 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028751{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028753cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028754/* confdefs.h. */
28755_ACEOF
28756cat confdefs.h >>conftest.$ac_ext
28757cat >>conftest.$ac_ext <<_ACEOF
28758/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028759$ac_includes_default
28760#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028761_ACEOF
28762rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028763if { (ac_try="$ac_compile"
28764case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28767esac
28768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028770 ac_status=$?
28771 grep -v '^ *+' conftest.er1 >conftest.err
28772 rm -f conftest.er1
28773 cat conftest.err >&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28777 { (case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28780esac
28781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028783 ac_status=$?
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); }; } &&
28786 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028787 { (case "(($ac_try" in
28788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789 *) ac_try_echo=$ac_try;;
28790esac
28791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28792 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028796 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028797else
28798 echo "$as_me: failed program was:" >&5
28799sed 's/^/| /' conftest.$ac_ext >&5
28800
Reid Spencera773bd52006-08-04 18:18:08 +000028801 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028802fi
Reid Spencera773bd52006-08-04 18:18:08 +000028803
28804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28805{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28806echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028807
Reid Spencer59473af2004-12-25 07:31:29 +000028808# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028809{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028811cat >conftest.$ac_ext <<_ACEOF
28812/* confdefs.h. */
28813_ACEOF
28814cat confdefs.h >>conftest.$ac_ext
28815cat >>conftest.$ac_ext <<_ACEOF
28816/* end confdefs.h. */
28817#include <$ac_header>
28818_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028819if { (ac_try="$ac_cpp conftest.$ac_ext"
28820case "(($ac_try" in
28821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28822 *) ac_try_echo=$ac_try;;
28823esac
28824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028826 ac_status=$?
28827 grep -v '^ *+' conftest.er1 >conftest.err
28828 rm -f conftest.er1
28829 cat conftest.err >&5
28830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831 (exit $ac_status); } >/dev/null; then
28832 if test -s conftest.err; then
28833 ac_cpp_err=$ac_c_preproc_warn_flag
28834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28835 else
28836 ac_cpp_err=
28837 fi
28838else
28839 ac_cpp_err=yes
28840fi
28841if test -z "$ac_cpp_err"; then
28842 ac_header_preproc=yes
28843else
28844 echo "$as_me: failed program was:" >&5
28845sed 's/^/| /' conftest.$ac_ext >&5
28846
28847 ac_header_preproc=no
28848fi
Reid Spencera773bd52006-08-04 18:18:08 +000028849
Reid Spencer59473af2004-12-25 07:31:29 +000028850rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028851{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28852echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028853
28854# So? What about this header?
28855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28856 yes:no: )
28857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28861 ac_header_preproc=yes
28862 ;;
28863 no:yes:* )
28864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28871echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028876 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028877## ----------------------------------- ##
28878## Report this to llvmbugs@cs.uiuc.edu ##
28879## ----------------------------------- ##
28880_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028881 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028882 ;;
28883esac
Reid Spencera773bd52006-08-04 18:18:08 +000028884{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028887 echo $ECHO_N "(cached) $ECHO_C" >&6
28888else
28889 eval "$as_ac_Header=\$ac_header_preproc"
28890fi
Reid Spencera773bd52006-08-04 18:18:08 +000028891ac_res=`eval echo '${'$as_ac_Header'}'`
28892 { echo "$as_me:$LINENO: result: $ac_res" >&5
28893echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028894
28895fi
Reid Spencer59473af2004-12-25 07:31:29 +000028896if test `eval echo '${'$as_ac_Header'}'` = yes; then
28897 cat >>confdefs.h <<_ACEOF
28898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028899_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028900
28901fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028902
Reid Spencer59473af2004-12-25 07:31:29 +000028903done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028904
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028905
28906
Reid Spencer59473af2004-12-25 07:31:29 +000028907
28908
28909
28910
Reid Spencercdb08a32006-06-05 16:11:07 +000028911for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028912do
28913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028918 echo $ECHO_N "(cached) $ECHO_C" >&6
28919fi
Reid Spencera773bd52006-08-04 18:18:08 +000028920ac_res=`eval echo '${'$as_ac_Header'}'`
28921 { echo "$as_me:$LINENO: result: $ac_res" >&5
28922echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028923else
28924 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028927cat >conftest.$ac_ext <<_ACEOF
28928/* confdefs.h. */
28929_ACEOF
28930cat confdefs.h >>conftest.$ac_ext
28931cat >>conftest.$ac_ext <<_ACEOF
28932/* end confdefs.h. */
28933$ac_includes_default
28934#include <$ac_header>
28935_ACEOF
28936rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028937if { (ac_try="$ac_compile"
28938case "(($ac_try" in
28939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940 *) ac_try_echo=$ac_try;;
28941esac
28942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028944 ac_status=$?
28945 grep -v '^ *+' conftest.er1 >conftest.err
28946 rm -f conftest.er1
28947 cat conftest.err >&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28951 { (case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28954esac
28955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028957 ac_status=$?
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); }; } &&
28960 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028961 { (case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28964esac
28965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028967 ac_status=$?
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); }; }; then
28970 ac_header_compiler=yes
28971else
28972 echo "$as_me: failed program was:" >&5
28973sed 's/^/| /' conftest.$ac_ext >&5
28974
Reid Spencera773bd52006-08-04 18:18:08 +000028975 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028976fi
Reid Spencera773bd52006-08-04 18:18:08 +000028977
28978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28980echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028981
28982# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028985cat >conftest.$ac_ext <<_ACEOF
28986/* confdefs.h. */
28987_ACEOF
28988cat confdefs.h >>conftest.$ac_ext
28989cat >>conftest.$ac_ext <<_ACEOF
28990/* end confdefs.h. */
28991#include <$ac_header>
28992_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028993if { (ac_try="$ac_cpp conftest.$ac_ext"
28994case "(($ac_try" in
28995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28996 *) ac_try_echo=$ac_try;;
28997esac
28998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029000 ac_status=$?
29001 grep -v '^ *+' conftest.er1 >conftest.err
29002 rm -f conftest.er1
29003 cat conftest.err >&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); } >/dev/null; then
29006 if test -s conftest.err; then
29007 ac_cpp_err=$ac_c_preproc_warn_flag
29008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29009 else
29010 ac_cpp_err=
29011 fi
29012else
29013 ac_cpp_err=yes
29014fi
29015if test -z "$ac_cpp_err"; then
29016 ac_header_preproc=yes
29017else
29018 echo "$as_me: failed program was:" >&5
29019sed 's/^/| /' conftest.$ac_ext >&5
29020
29021 ac_header_preproc=no
29022fi
Reid Spencera773bd52006-08-04 18:18:08 +000029023
Reid Spencer59473af2004-12-25 07:31:29 +000029024rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29026echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029027
29028# So? What about this header?
29029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29030 yes:no: )
29031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29035 ac_header_preproc=yes
29036 ;;
29037 no:yes:* )
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029050 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029051## ----------------------------------- ##
29052## Report this to llvmbugs@cs.uiuc.edu ##
29053## ----------------------------------- ##
29054_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029055 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029056 ;;
29057esac
Reid Spencera773bd52006-08-04 18:18:08 +000029058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029061 echo $ECHO_N "(cached) $ECHO_C" >&6
29062else
29063 eval "$as_ac_Header=\$ac_header_preproc"
29064fi
Reid Spencera773bd52006-08-04 18:18:08 +000029065ac_res=`eval echo '${'$as_ac_Header'}'`
29066 { echo "$as_me:$LINENO: result: $ac_res" >&5
29067echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029068
29069fi
29070if test `eval echo '${'$as_ac_Header'}'` = yes; then
29071 cat >>confdefs.h <<_ACEOF
29072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29073_ACEOF
29074
29075fi
29076
29077done
29078
29079
Reid Spencerbe3e4192007-08-17 05:45:26 +000029080for ac_header in windows.h
29081do
29082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
29088fi
29089ac_res=`eval echo '${'$as_ac_Header'}'`
29090 { echo "$as_me:$LINENO: result: $ac_res" >&5
29091echo "${ECHO_T}$ac_res" >&6; }
29092else
29093 # Is the header compilable?
29094{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29096cat >conftest.$ac_ext <<_ACEOF
29097/* confdefs.h. */
29098_ACEOF
29099cat confdefs.h >>conftest.$ac_ext
29100cat >>conftest.$ac_ext <<_ACEOF
29101/* end confdefs.h. */
29102$ac_includes_default
29103#include <$ac_header>
29104_ACEOF
29105rm -f conftest.$ac_objext
29106if { (ac_try="$ac_compile"
29107case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29110esac
29111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112 (eval "$ac_compile") 2>conftest.er1
29113 ac_status=$?
29114 grep -v '^ *+' conftest.er1 >conftest.err
29115 rm -f conftest.er1
29116 cat conftest.err >&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); } &&
29119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29120 { (case "(($ac_try" in
29121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122 *) ac_try_echo=$ac_try;;
29123esac
29124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29125 (eval "$ac_try") 2>&5
29126 ac_status=$?
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); }; } &&
29129 { ac_try='test -s conftest.$ac_objext'
29130 { (case "(($ac_try" in
29131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132 *) ac_try_echo=$ac_try;;
29133esac
29134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135 (eval "$ac_try") 2>&5
29136 ac_status=$?
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; }; then
29139 ac_header_compiler=yes
29140else
29141 echo "$as_me: failed program was:" >&5
29142sed 's/^/| /' conftest.$ac_ext >&5
29143
29144 ac_header_compiler=no
29145fi
29146
29147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29148{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29149echo "${ECHO_T}$ac_header_compiler" >&6; }
29150
29151# Is the header present?
29152{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29154cat >conftest.$ac_ext <<_ACEOF
29155/* confdefs.h. */
29156_ACEOF
29157cat confdefs.h >>conftest.$ac_ext
29158cat >>conftest.$ac_ext <<_ACEOF
29159/* end confdefs.h. */
29160#include <$ac_header>
29161_ACEOF
29162if { (ac_try="$ac_cpp conftest.$ac_ext"
29163case "(($ac_try" in
29164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165 *) ac_try_echo=$ac_try;;
29166esac
29167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29169 ac_status=$?
29170 grep -v '^ *+' conftest.er1 >conftest.err
29171 rm -f conftest.er1
29172 cat conftest.err >&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } >/dev/null; then
29175 if test -s conftest.err; then
29176 ac_cpp_err=$ac_c_preproc_warn_flag
29177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29178 else
29179 ac_cpp_err=
29180 fi
29181else
29182 ac_cpp_err=yes
29183fi
29184if test -z "$ac_cpp_err"; then
29185 ac_header_preproc=yes
29186else
29187 echo "$as_me: failed program was:" >&5
29188sed 's/^/| /' conftest.$ac_ext >&5
29189
29190 ac_header_preproc=no
29191fi
29192
29193rm -f conftest.err conftest.$ac_ext
29194{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29195echo "${ECHO_T}$ac_header_preproc" >&6; }
29196
29197# So? What about this header?
29198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29199 yes:no: )
29200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29204 ac_header_preproc=yes
29205 ;;
29206 no:yes:* )
29207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29214echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29219 ( cat <<\_ASBOX
29220## ----------------------------------- ##
29221## Report this to llvmbugs@cs.uiuc.edu ##
29222## ----------------------------------- ##
29223_ASBOX
29224 ) | sed "s/^/$as_me: WARNING: /" >&2
29225 ;;
29226esac
29227{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29230 echo $ECHO_N "(cached) $ECHO_C" >&6
29231else
29232 eval "$as_ac_Header=\$ac_header_preproc"
29233fi
29234ac_res=`eval echo '${'$as_ac_Header'}'`
29235 { echo "$as_me:$LINENO: result: $ac_res" >&5
29236echo "${ECHO_T}$ac_res" >&6; }
29237
29238fi
29239if test `eval echo '${'$as_ac_Header'}'` = yes; then
29240 cat >>confdefs.h <<_ACEOF
29241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29242_ACEOF
29243
29244fi
29245
29246done
Reid Spencer59473af2004-12-25 07:31:29 +000029247
29248
29249
29250
Reid Spencerbe3e4192007-08-17 05:45:26 +000029251
29252for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029253do
29254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029259 echo $ECHO_N "(cached) $ECHO_C" >&6
29260fi
Reid Spencera773bd52006-08-04 18:18:08 +000029261ac_res=`eval echo '${'$as_ac_Header'}'`
29262 { echo "$as_me:$LINENO: result: $ac_res" >&5
29263echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029264else
29265 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029266{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029268cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029269/* confdefs.h. */
29270_ACEOF
29271cat confdefs.h >>conftest.$ac_ext
29272cat >>conftest.$ac_ext <<_ACEOF
29273/* end confdefs.h. */
29274$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029275#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029276_ACEOF
29277rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029278if { (ac_try="$ac_compile"
29279case "(($ac_try" in
29280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281 *) ac_try_echo=$ac_try;;
29282esac
29283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029285 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029286 grep -v '^ *+' conftest.er1 >conftest.err
29287 rm -f conftest.er1
29288 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29292 { (case "(($ac_try" in
29293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29294 *) ac_try_echo=$ac_try;;
29295esac
29296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29297 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029298 ac_status=$?
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); }; } &&
29301 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029302 { (case "(($ac_try" in
29303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304 *) ac_try_echo=$ac_try;;
29305esac
29306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029308 ac_status=$?
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; }; then
29311 ac_header_compiler=yes
29312else
29313 echo "$as_me: failed program was:" >&5
29314sed 's/^/| /' conftest.$ac_ext >&5
29315
Reid Spencera773bd52006-08-04 18:18:08 +000029316 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029317fi
Reid Spencera773bd52006-08-04 18:18:08 +000029318
29319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29320{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29321echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029322
29323# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029324{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029326cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029327/* confdefs.h. */
29328_ACEOF
29329cat confdefs.h >>conftest.$ac_ext
29330cat >>conftest.$ac_ext <<_ACEOF
29331/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029332#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029333_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029334if { (ac_try="$ac_cpp conftest.$ac_ext"
29335case "(($ac_try" in
29336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337 *) ac_try_echo=$ac_try;;
29338esac
29339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029341 ac_status=$?
29342 grep -v '^ *+' conftest.er1 >conftest.err
29343 rm -f conftest.er1
29344 cat conftest.err >&5
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); } >/dev/null; then
29347 if test -s conftest.err; then
29348 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029350 else
29351 ac_cpp_err=
29352 fi
29353else
29354 ac_cpp_err=yes
29355fi
29356if test -z "$ac_cpp_err"; then
29357 ac_header_preproc=yes
29358else
29359 echo "$as_me: failed program was:" >&5
29360sed 's/^/| /' conftest.$ac_ext >&5
29361
29362 ac_header_preproc=no
29363fi
Reid Spencera773bd52006-08-04 18:18:08 +000029364
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029365rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029366{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29367echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029368
29369# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29371 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029376 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029377 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029378 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29382echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29386echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029391 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029392## ----------------------------------- ##
29393## Report this to llvmbugs@cs.uiuc.edu ##
29394## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029395_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029396 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029397 ;;
29398esac
Reid Spencera773bd52006-08-04 18:18:08 +000029399{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029402 echo $ECHO_N "(cached) $ECHO_C" >&6
29403else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029404 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029405fi
Reid Spencera773bd52006-08-04 18:18:08 +000029406ac_res=`eval echo '${'$as_ac_Header'}'`
29407 { echo "$as_me:$LINENO: result: $ac_res" >&5
29408echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029409
29410fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029411if test `eval echo '${'$as_ac_Header'}'` = yes; then
29412 cat >>confdefs.h <<_ACEOF
29413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029414_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029415
29416fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029417
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029418done
29419
John Criswell7ed43ad2004-07-19 16:12:29 +000029420
Reid Spencercdb08a32006-06-05 16:11:07 +000029421
Reid Spencera6d990a2006-09-14 06:17:21 +000029422
29423for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029424do
29425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029430 echo $ECHO_N "(cached) $ECHO_C" >&6
29431fi
Reid Spencera773bd52006-08-04 18:18:08 +000029432ac_res=`eval echo '${'$as_ac_Header'}'`
29433 { echo "$as_me:$LINENO: result: $ac_res" >&5
29434echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029435else
29436 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029437{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029439cat >conftest.$ac_ext <<_ACEOF
29440/* confdefs.h. */
29441_ACEOF
29442cat confdefs.h >>conftest.$ac_ext
29443cat >>conftest.$ac_ext <<_ACEOF
29444/* end confdefs.h. */
29445$ac_includes_default
29446#include <$ac_header>
29447_ACEOF
29448rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029449if { (ac_try="$ac_compile"
29450case "(($ac_try" in
29451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452 *) ac_try_echo=$ac_try;;
29453esac
29454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029456 ac_status=$?
29457 grep -v '^ *+' conftest.er1 >conftest.err
29458 rm -f conftest.er1
29459 cat conftest.err >&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29463 { (case "(($ac_try" in
29464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465 *) ac_try_echo=$ac_try;;
29466esac
29467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029469 ac_status=$?
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); }; } &&
29472 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029473 { (case "(($ac_try" in
29474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29475 *) ac_try_echo=$ac_try;;
29476esac
29477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29478 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029479 ac_status=$?
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; }; then
29482 ac_header_compiler=yes
29483else
29484 echo "$as_me: failed program was:" >&5
29485sed 's/^/| /' conftest.$ac_ext >&5
29486
Reid Spencera773bd52006-08-04 18:18:08 +000029487 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029488fi
Reid Spencera773bd52006-08-04 18:18:08 +000029489
29490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29491{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29492echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029493
29494# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029495{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029497cat >conftest.$ac_ext <<_ACEOF
29498/* confdefs.h. */
29499_ACEOF
29500cat confdefs.h >>conftest.$ac_ext
29501cat >>conftest.$ac_ext <<_ACEOF
29502/* end confdefs.h. */
29503#include <$ac_header>
29504_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029505if { (ac_try="$ac_cpp conftest.$ac_ext"
29506case "(($ac_try" in
29507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508 *) ac_try_echo=$ac_try;;
29509esac
29510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029512 ac_status=$?
29513 grep -v '^ *+' conftest.er1 >conftest.err
29514 rm -f conftest.er1
29515 cat conftest.err >&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); } >/dev/null; then
29518 if test -s conftest.err; then
29519 ac_cpp_err=$ac_c_preproc_warn_flag
29520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29521 else
29522 ac_cpp_err=
29523 fi
29524else
29525 ac_cpp_err=yes
29526fi
29527if test -z "$ac_cpp_err"; then
29528 ac_header_preproc=yes
29529else
29530 echo "$as_me: failed program was:" >&5
29531sed 's/^/| /' conftest.$ac_ext >&5
29532
29533 ac_header_preproc=no
29534fi
Reid Spencera773bd52006-08-04 18:18:08 +000029535
Chris Lattner0b142592005-11-14 06:57:34 +000029536rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029537{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29538echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029539
29540# So? What about this header?
29541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29542 yes:no: )
29543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29546echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29547 ac_header_preproc=yes
29548 ;;
29549 no:yes:* )
29550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29551echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29553echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29555echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29557echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29561echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029562 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029563## ----------------------------------- ##
29564## Report this to llvmbugs@cs.uiuc.edu ##
29565## ----------------------------------- ##
29566_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029567 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029568 ;;
29569esac
Reid Spencera773bd52006-08-04 18:18:08 +000029570{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029573 echo $ECHO_N "(cached) $ECHO_C" >&6
29574else
29575 eval "$as_ac_Header=\$ac_header_preproc"
29576fi
Reid Spencera773bd52006-08-04 18:18:08 +000029577ac_res=`eval echo '${'$as_ac_Header'}'`
29578 { echo "$as_me:$LINENO: result: $ac_res" >&5
29579echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029580
29581fi
29582if test `eval echo '${'$as_ac_Header'}'` = yes; then
29583 cat >>confdefs.h <<_ACEOF
29584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29585_ACEOF
29586
29587fi
29588
29589done
29590
Reid Spencer0a262ba2005-08-24 10:07:20 +000029591if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029592
29593for ac_header in pthread.h
29594do
29595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029600 echo $ECHO_N "(cached) $ECHO_C" >&6
29601fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029602ac_res=`eval echo '${'$as_ac_Header'}'`
29603 { echo "$as_me:$LINENO: result: $ac_res" >&5
29604echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029605else
29606 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029607{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029609cat >conftest.$ac_ext <<_ACEOF
29610/* confdefs.h. */
29611_ACEOF
29612cat confdefs.h >>conftest.$ac_ext
29613cat >>conftest.$ac_ext <<_ACEOF
29614/* end confdefs.h. */
29615$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029616#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029617_ACEOF
29618rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029619if { (ac_try="$ac_compile"
29620case "(($ac_try" in
29621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622 *) ac_try_echo=$ac_try;;
29623esac
29624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029626 ac_status=$?
29627 grep -v '^ *+' conftest.er1 >conftest.err
29628 rm -f conftest.er1
29629 cat conftest.err >&5
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29633 { (case "(($ac_try" in
29634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29635 *) ac_try_echo=$ac_try;;
29636esac
29637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29638 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029639 ac_status=$?
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; } &&
29642 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029643 { (case "(($ac_try" in
29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29646esac
29647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029649 ac_status=$?
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); }; }; then
29652 ac_header_compiler=yes
29653else
29654 echo "$as_me: failed program was:" >&5
29655sed 's/^/| /' conftest.$ac_ext >&5
29656
Reid Spencera773bd52006-08-04 18:18:08 +000029657 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029658fi
Reid Spencera773bd52006-08-04 18:18:08 +000029659
29660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29662echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029663
29664# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029665{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029667cat >conftest.$ac_ext <<_ACEOF
29668/* confdefs.h. */
29669_ACEOF
29670cat confdefs.h >>conftest.$ac_ext
29671cat >>conftest.$ac_ext <<_ACEOF
29672/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029673#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029674_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029675if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029682 ac_status=$?
29683 grep -v '^ *+' conftest.er1 >conftest.err
29684 rm -f conftest.er1
29685 cat conftest.err >&5
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); } >/dev/null; then
29688 if test -s conftest.err; then
29689 ac_cpp_err=$ac_c_preproc_warn_flag
29690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29691 else
29692 ac_cpp_err=
29693 fi
29694else
29695 ac_cpp_err=yes
29696fi
29697if test -z "$ac_cpp_err"; then
29698 ac_header_preproc=yes
29699else
29700 echo "$as_me: failed program was:" >&5
29701sed 's/^/| /' conftest.$ac_ext >&5
29702
29703 ac_header_preproc=no
29704fi
Reid Spencera773bd52006-08-04 18:18:08 +000029705
Reid Spencer0a262ba2005-08-24 10:07:20 +000029706rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29708echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029709
29710# So? What about this header?
29711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29712 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029717 ac_header_preproc=yes
29718 ;;
29719 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029732 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029733## ----------------------------------- ##
29734## Report this to llvmbugs@cs.uiuc.edu ##
29735## ----------------------------------- ##
29736_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029737 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029738 ;;
29739esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029740{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029743 echo $ECHO_N "(cached) $ECHO_C" >&6
29744else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029745 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029746fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029747ac_res=`eval echo '${'$as_ac_Header'}'`
29748 { echo "$as_me:$LINENO: result: $ac_res" >&5
29749echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029750
29751fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029752if test `eval echo '${'$as_ac_Header'}'` = yes; then
29753 cat >>confdefs.h <<_ACEOF
29754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29755_ACEOF
29756 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029757
29758else
29759 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029760
29761fi
29762
Reid Spencerbe3e4192007-08-17 05:45:26 +000029763done
Reid Spencer1000b732006-12-01 00:37:14 +000029764
29765else
29766 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029767
29768fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029769
29770
Reid Spencerb2ed05262006-11-03 18:04:08 +000029771
29772 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29773echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29774if test "${ac_cv_huge_val_sanity+set}" = set; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29776else
29777
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029778 ac_ext=cpp
29779ac_cpp='$CXXCPP $CPPFLAGS'
29780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029783
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029784 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029785 if test "$cross_compiling" = yes; then
29786 ac_cv_huge_val_sanity=yes
29787else
29788 cat >conftest.$ac_ext <<_ACEOF
29789/* confdefs.h. */
29790_ACEOF
29791cat confdefs.h >>conftest.$ac_ext
29792cat >>conftest.$ac_ext <<_ACEOF
29793/* end confdefs.h. */
29794#include <math.h>
29795int
29796main ()
29797{
29798double x = HUGE_VAL; return x != x;
29799 ;
29800 return 0;
29801}
29802_ACEOF
29803rm -f conftest$ac_exeext
29804if { (ac_try="$ac_link"
29805case "(($ac_try" in
29806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807 *) ac_try_echo=$ac_try;;
29808esac
29809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810 (eval "$ac_link") 2>&5
29811 ac_status=$?
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29814 { (case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29817esac
29818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_try") 2>&5
29820 ac_status=$?
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); }; }; then
29823 ac_cv_huge_val_sanity=yes
29824else
29825 echo "$as_me: program exited with status $ac_status" >&5
29826echo "$as_me: failed program was:" >&5
29827sed 's/^/| /' conftest.$ac_ext >&5
29828
29829( exit $ac_status )
29830ac_cv_huge_val_sanity=no
29831fi
29832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29833fi
29834
29835
29836 ac_ext=c
29837ac_cpp='$CPP $CPPFLAGS'
29838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29840ac_compiler_gnu=$ac_cv_c_compiler_gnu
29841
29842
29843fi
29844{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29845echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29846 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29847
29848
Reid Spencera773bd52006-08-04 18:18:08 +000029849{ echo "$as_me:$LINENO: checking for pid_t" >&5
29850echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029851if test "${ac_cv_type_pid_t+set}" = set; then
29852 echo $ECHO_N "(cached) $ECHO_C" >&6
29853else
29854 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029855/* confdefs.h. */
29856_ACEOF
29857cat confdefs.h >>conftest.$ac_ext
29858cat >>conftest.$ac_ext <<_ACEOF
29859/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029860$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029861typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029862int
29863main ()
29864{
Reid Spencera773bd52006-08-04 18:18:08 +000029865if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029866 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029867if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029868 return 0;
29869 ;
29870 return 0;
29871}
29872_ACEOF
29873rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029874if { (ac_try="$ac_compile"
29875case "(($ac_try" in
29876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877 *) ac_try_echo=$ac_try;;
29878esac
29879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29880 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029881 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029882 grep -v '^ *+' conftest.er1 >conftest.err
29883 rm -f conftest.er1
29884 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29888 { (case "(($ac_try" in
29889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29890 *) ac_try_echo=$ac_try;;
29891esac
29892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29893 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029894 ac_status=$?
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); }; } &&
29897 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029898 { (case "(($ac_try" in
29899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29900 *) ac_try_echo=$ac_try;;
29901esac
29902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29903 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029904 ac_status=$?
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); }; }; then
29907 ac_cv_type_pid_t=yes
29908else
29909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029910sed 's/^/| /' conftest.$ac_ext >&5
29911
Reid Spencera773bd52006-08-04 18:18:08 +000029912 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029913fi
Reid Spencera773bd52006-08-04 18:18:08 +000029914
29915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029916fi
Reid Spencera773bd52006-08-04 18:18:08 +000029917{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29918echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029919if test $ac_cv_type_pid_t = yes; then
29920 :
29921else
29922
29923cat >>confdefs.h <<_ACEOF
29924#define pid_t int
29925_ACEOF
29926
29927fi
29928
Reid Spencera773bd52006-08-04 18:18:08 +000029929{ echo "$as_me:$LINENO: checking for size_t" >&5
29930echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029931if test "${ac_cv_type_size_t+set}" = set; then
29932 echo $ECHO_N "(cached) $ECHO_C" >&6
29933else
29934 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029935/* confdefs.h. */
29936_ACEOF
29937cat confdefs.h >>conftest.$ac_ext
29938cat >>conftest.$ac_ext <<_ACEOF
29939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029940$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029941typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029942int
29943main ()
29944{
Reid Spencera773bd52006-08-04 18:18:08 +000029945if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029946 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029947if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029948 return 0;
29949 ;
29950 return 0;
29951}
29952_ACEOF
29953rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029954if { (ac_try="$ac_compile"
29955case "(($ac_try" in
29956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957 *) ac_try_echo=$ac_try;;
29958esac
29959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29960 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029961 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029962 grep -v '^ *+' conftest.er1 >conftest.err
29963 rm -f conftest.er1
29964 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29968 { (case "(($ac_try" in
29969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970 *) ac_try_echo=$ac_try;;
29971esac
29972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29973 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029974 ac_status=$?
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); }; } &&
29977 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029978 { (case "(($ac_try" in
29979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980 *) ac_try_echo=$ac_try;;
29981esac
29982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
29987 ac_cv_type_size_t=yes
29988else
29989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029990sed 's/^/| /' conftest.$ac_ext >&5
29991
Reid Spencera773bd52006-08-04 18:18:08 +000029992 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029993fi
Reid Spencera773bd52006-08-04 18:18:08 +000029994
29995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029996fi
Reid Spencera773bd52006-08-04 18:18:08 +000029997{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29998echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029999if test $ac_cv_type_size_t = yes; then
30000 :
30001else
30002
30003cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030004#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030005_ACEOF
30006
30007fi
30008
Reid Spencera773bd52006-08-04 18:18:08 +000030009{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30010echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030011if test "${ac_cv_type_signal+set}" = set; then
30012 echo $ECHO_N "(cached) $ECHO_C" >&6
30013else
30014 cat >conftest.$ac_ext <<_ACEOF
30015/* confdefs.h. */
30016_ACEOF
30017cat confdefs.h >>conftest.$ac_ext
30018cat >>conftest.$ac_ext <<_ACEOF
30019/* end confdefs.h. */
30020#include <sys/types.h>
30021#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030022
30023int
30024main ()
30025{
Reid Spencera773bd52006-08-04 18:18:08 +000030026return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030027 ;
30028 return 0;
30029}
30030_ACEOF
30031rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030032if { (ac_try="$ac_compile"
30033case "(($ac_try" in
30034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30036esac
30037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030039 ac_status=$?
30040 grep -v '^ *+' conftest.er1 >conftest.err
30041 rm -f conftest.er1
30042 cat conftest.err >&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30046 { (case "(($ac_try" in
30047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048 *) ac_try_echo=$ac_try;;
30049esac
30050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; } &&
30055 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030056 { (case "(($ac_try" in
30057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30058 *) ac_try_echo=$ac_try;;
30059esac
30060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30061 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030062 ac_status=$?
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030065 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030066else
30067 echo "$as_me: failed program was:" >&5
30068sed 's/^/| /' conftest.$ac_ext >&5
30069
Reid Spencera773bd52006-08-04 18:18:08 +000030070 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030071fi
Reid Spencera773bd52006-08-04 18:18:08 +000030072
30073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030074fi
Reid Spencera773bd52006-08-04 18:18:08 +000030075{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30076echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030077
30078cat >>confdefs.h <<_ACEOF
30079#define RETSIGTYPE $ac_cv_type_signal
30080_ACEOF
30081
30082
Reid Spencera773bd52006-08-04 18:18:08 +000030083{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30084echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030085if test "${ac_cv_struct_tm+set}" = set; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30087else
30088 cat >conftest.$ac_ext <<_ACEOF
30089/* confdefs.h. */
30090_ACEOF
30091cat confdefs.h >>conftest.$ac_ext
30092cat >>conftest.$ac_ext <<_ACEOF
30093/* end confdefs.h. */
30094#include <sys/types.h>
30095#include <time.h>
30096
30097int
30098main ()
30099{
30100struct tm *tp; tp->tm_sec;
30101 ;
30102 return 0;
30103}
30104_ACEOF
30105rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030106if { (ac_try="$ac_compile"
30107case "(($ac_try" in
30108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109 *) ac_try_echo=$ac_try;;
30110esac
30111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030113 ac_status=$?
30114 grep -v '^ *+' conftest.er1 >conftest.err
30115 rm -f conftest.er1
30116 cat conftest.err >&5
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30120 { (case "(($ac_try" in
30121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122 *) ac_try_echo=$ac_try;;
30123esac
30124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030126 ac_status=$?
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); }; } &&
30129 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030130 { (case "(($ac_try" in
30131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132 *) ac_try_echo=$ac_try;;
30133esac
30134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030136 ac_status=$?
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; }; then
30139 ac_cv_struct_tm=time.h
30140else
30141 echo "$as_me: failed program was:" >&5
30142sed 's/^/| /' conftest.$ac_ext >&5
30143
Reid Spencera773bd52006-08-04 18:18:08 +000030144 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030145fi
Reid Spencera773bd52006-08-04 18:18:08 +000030146
30147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030148fi
Reid Spencera773bd52006-08-04 18:18:08 +000030149{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30150echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030151if test $ac_cv_struct_tm = sys/time.h; then
30152
30153cat >>confdefs.h <<\_ACEOF
30154#define TM_IN_SYS_TIME 1
30155_ACEOF
30156
30157fi
30158
Reid Spencera773bd52006-08-04 18:18:08 +000030159{ echo "$as_me:$LINENO: checking for int64_t" >&5
30160echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030161if test "${ac_cv_type_int64_t+set}" = set; then
30162 echo $ECHO_N "(cached) $ECHO_C" >&6
30163else
30164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030165/* confdefs.h. */
30166_ACEOF
30167cat confdefs.h >>conftest.$ac_ext
30168cat >>conftest.$ac_ext <<_ACEOF
30169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030170$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030171typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030172int
30173main ()
30174{
Reid Spencera773bd52006-08-04 18:18:08 +000030175if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030176 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030177if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030178 return 0;
30179 ;
30180 return 0;
30181}
30182_ACEOF
30183rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030184if { (ac_try="$ac_compile"
30185case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30188esac
30189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030191 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030192 grep -v '^ *+' conftest.er1 >conftest.err
30193 rm -f conftest.er1
30194 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30198 { (case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30201esac
30202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030204 ac_status=$?
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; } &&
30207 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030208 { (case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30211esac
30212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030214 ac_status=$?
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; }; then
30217 ac_cv_type_int64_t=yes
30218else
30219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030220sed 's/^/| /' conftest.$ac_ext >&5
30221
Reid Spencera773bd52006-08-04 18:18:08 +000030222 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030223fi
Reid Spencera773bd52006-08-04 18:18:08 +000030224
30225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030226fi
Reid Spencera773bd52006-08-04 18:18:08 +000030227{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30228echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030229if test $ac_cv_type_int64_t = yes; then
30230
30231cat >>confdefs.h <<_ACEOF
30232#define HAVE_INT64_T 1
30233_ACEOF
30234
30235
30236else
30237 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30238echo "$as_me: error: Type int64_t required but not found" >&2;}
30239 { (exit 1); exit 1; }; }
30240fi
30241
Reid Spencera773bd52006-08-04 18:18:08 +000030242{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30243echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030244if test "${ac_cv_type_uint64_t+set}" = set; then
30245 echo $ECHO_N "(cached) $ECHO_C" >&6
30246else
30247 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030248/* confdefs.h. */
30249_ACEOF
30250cat confdefs.h >>conftest.$ac_ext
30251cat >>conftest.$ac_ext <<_ACEOF
30252/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030253$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030254typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030255int
30256main ()
30257{
Reid Spencera773bd52006-08-04 18:18:08 +000030258if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030259 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030260if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030261 return 0;
30262 ;
30263 return 0;
30264}
30265_ACEOF
30266rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030267if { (ac_try="$ac_compile"
30268case "(($ac_try" in
30269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270 *) ac_try_echo=$ac_try;;
30271esac
30272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30273 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030274 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030275 grep -v '^ *+' conftest.er1 >conftest.err
30276 rm -f conftest.er1
30277 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30281 { (case "(($ac_try" in
30282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283 *) ac_try_echo=$ac_try;;
30284esac
30285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; } &&
30290 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030291 { (case "(($ac_try" in
30292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293 *) ac_try_echo=$ac_try;;
30294esac
30295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030297 ac_status=$?
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }; }; then
30300 ac_cv_type_uint64_t=yes
30301else
30302 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030303sed 's/^/| /' conftest.$ac_ext >&5
30304
Reid Spencera773bd52006-08-04 18:18:08 +000030305 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030306fi
Reid Spencera773bd52006-08-04 18:18:08 +000030307
30308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030309fi
Reid Spencera773bd52006-08-04 18:18:08 +000030310{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30311echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030312if test $ac_cv_type_uint64_t = yes; then
30313
30314cat >>confdefs.h <<_ACEOF
30315#define HAVE_UINT64_T 1
30316_ACEOF
30317
30318
30319else
Reid Spencera773bd52006-08-04 18:18:08 +000030320 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30321echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030322if test "${ac_cv_type_u_int64_t+set}" = set; then
30323 echo $ECHO_N "(cached) $ECHO_C" >&6
30324else
30325 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030326/* confdefs.h. */
30327_ACEOF
30328cat confdefs.h >>conftest.$ac_ext
30329cat >>conftest.$ac_ext <<_ACEOF
30330/* end confdefs.h. */
30331$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030332typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030333int
30334main ()
30335{
Reid Spencera773bd52006-08-04 18:18:08 +000030336if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030337 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030338if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030339 return 0;
30340 ;
30341 return 0;
30342}
30343_ACEOF
30344rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030345if { (ac_try="$ac_compile"
30346case "(($ac_try" in
30347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348 *) ac_try_echo=$ac_try;;
30349esac
30350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030352 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030353 grep -v '^ *+' conftest.er1 >conftest.err
30354 rm -f conftest.er1
30355 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30359 { (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 Spencer2706f8c2004-09-19 23:53:36 +000030365 ac_status=$?
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; } &&
30368 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030369 { (case "(($ac_try" in
30370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30371 *) ac_try_echo=$ac_try;;
30372esac
30373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30374 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000030375 ac_status=$?
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; }; then
30378 ac_cv_type_u_int64_t=yes
30379else
30380 echo "$as_me: failed program was:" >&5
30381sed 's/^/| /' conftest.$ac_ext >&5
30382
Reid Spencera773bd52006-08-04 18:18:08 +000030383 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030384fi
Reid Spencera773bd52006-08-04 18:18:08 +000030385
30386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030387fi
Reid Spencera773bd52006-08-04 18:18:08 +000030388{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30389echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030390if test $ac_cv_type_u_int64_t = yes; then
30391
30392cat >>confdefs.h <<_ACEOF
30393#define HAVE_U_INT64_T 1
30394_ACEOF
30395
30396
Misha Brukmanceca9042004-09-02 23:02:30 +000030397else
30398 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30399echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30400 { (exit 1); exit 1; }; }
30401fi
30402
John Criswell679ff312004-09-02 18:44:44 +000030403fi
30404
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030405
30406
30407
30408
30409
30410
30411
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030412
30413
Reid Spencerdf3be822006-01-23 08:15:53 +000030414for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030415do
30416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030417{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30419if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030420 echo $ECHO_N "(cached) $ECHO_C" >&6
30421else
30422 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030423/* confdefs.h. */
30424_ACEOF
30425cat confdefs.h >>conftest.$ac_ext
30426cat >>conftest.$ac_ext <<_ACEOF
30427/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30430#define $ac_func innocuous_$ac_func
30431
30432/* System header to define __stub macros and hopefully few prototypes,
30433 which can conflict with char $ac_func (); below.
30434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30435 <limits.h> exists even on freestanding compilers. */
30436
30437#ifdef __STDC__
30438# include <limits.h>
30439#else
30440# include <assert.h>
30441#endif
30442
30443#undef $ac_func
30444
Reid Spencera773bd52006-08-04 18:18:08 +000030445/* Override any GCC internal prototype to avoid an error.
30446 Use char because int might match the return type of a GCC
30447 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030448#ifdef __cplusplus
30449extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030450#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030451char $ac_func ();
30452/* The GNU C library defines this for functions which it implements
30453 to always fail with ENOSYS. Some functions are actually named
30454 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030455#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030456choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030457#endif
John Criswell7a73b802003-06-30 21:59:07 +000030458
John Criswell7a73b802003-06-30 21:59:07 +000030459int
30460main ()
30461{
Reid Spencera773bd52006-08-04 18:18:08 +000030462return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030463 ;
30464 return 0;
30465}
30466_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030467rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030468if { (ac_try="$ac_link"
30469case "(($ac_try" in
30470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30471 *) ac_try_echo=$ac_try;;
30472esac
30473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30474 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030475 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030476 grep -v '^ *+' conftest.er1 >conftest.err
30477 rm -f conftest.er1
30478 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30482 { (case "(($ac_try" in
30483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30484 *) ac_try_echo=$ac_try;;
30485esac
30486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30487 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030488 ac_status=$?
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030491 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030492 { (case "(($ac_try" in
30493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30494 *) ac_try_echo=$ac_try;;
30495esac
30496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30497 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030498 ac_status=$?
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030501 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030502else
30503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030504sed 's/^/| /' conftest.$ac_ext >&5
30505
Reid Spencera773bd52006-08-04 18:18:08 +000030506 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030507fi
Reid Spencera773bd52006-08-04 18:18:08 +000030508
30509rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030510 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030511fi
Reid Spencera773bd52006-08-04 18:18:08 +000030512ac_res=`eval echo '${'$as_ac_var'}'`
30513 { echo "$as_me:$LINENO: result: $ac_res" >&5
30514echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030515if test `eval echo '${'$as_ac_var'}'` = yes; then
30516 cat >>confdefs.h <<_ACEOF
30517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030518_ACEOF
30519
30520fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030521done
John Criswell7a73b802003-06-30 21:59:07 +000030522
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030523
30524
30525
Reid Spencer6af3d262004-12-15 04:01:48 +000030526
Reid Spencer96cf5872007-07-13 10:05:30 +000030527for ac_func in powf fmodf strtof round
30528do
30529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30530{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30532if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30533 echo $ECHO_N "(cached) $ECHO_C" >&6
30534else
30535 cat >conftest.$ac_ext <<_ACEOF
30536/* confdefs.h. */
30537_ACEOF
30538cat confdefs.h >>conftest.$ac_ext
30539cat >>conftest.$ac_ext <<_ACEOF
30540/* end confdefs.h. */
30541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30543#define $ac_func innocuous_$ac_func
30544
30545/* System header to define __stub macros and hopefully few prototypes,
30546 which can conflict with char $ac_func (); below.
30547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30548 <limits.h> exists even on freestanding compilers. */
30549
30550#ifdef __STDC__
30551# include <limits.h>
30552#else
30553# include <assert.h>
30554#endif
30555
30556#undef $ac_func
30557
30558/* Override any GCC internal prototype to avoid an error.
30559 Use char because int might match the return type of a GCC
30560 builtin and then its argument prototype would still apply. */
30561#ifdef __cplusplus
30562extern "C"
30563#endif
30564char $ac_func ();
30565/* The GNU C library defines this for functions which it implements
30566 to always fail with ENOSYS. Some functions are actually named
30567 something starting with __ and the normal name is an alias. */
30568#if defined __stub_$ac_func || defined __stub___$ac_func
30569choke me
30570#endif
30571
30572int
30573main ()
30574{
30575return $ac_func ();
30576 ;
30577 return 0;
30578}
30579_ACEOF
30580rm -f conftest.$ac_objext conftest$ac_exeext
30581if { (ac_try="$ac_link"
30582case "(($ac_try" in
30583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584 *) ac_try_echo=$ac_try;;
30585esac
30586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587 (eval "$ac_link") 2>conftest.er1
30588 ac_status=$?
30589 grep -v '^ *+' conftest.er1 >conftest.err
30590 rm -f conftest.er1
30591 cat conftest.err >&5
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); } &&
30594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30595 { (case "(($ac_try" in
30596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597 *) ac_try_echo=$ac_try;;
30598esac
30599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600 (eval "$ac_try") 2>&5
30601 ac_status=$?
30602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603 (exit $ac_status); }; } &&
30604 { ac_try='test -s conftest$ac_exeext'
30605 { (case "(($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_try") 2>&5
30611 ac_status=$?
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); }; }; then
30614 eval "$as_ac_var=yes"
30615else
30616 echo "$as_me: failed program was:" >&5
30617sed 's/^/| /' conftest.$ac_ext >&5
30618
30619 eval "$as_ac_var=no"
30620fi
30621
30622rm -f core conftest.err conftest.$ac_objext \
30623 conftest$ac_exeext conftest.$ac_ext
30624fi
30625ac_res=`eval echo '${'$as_ac_var'}'`
30626 { echo "$as_me:$LINENO: result: $ac_res" >&5
30627echo "${ECHO_T}$ac_res" >&6; }
30628if test `eval echo '${'$as_ac_var'}'` = yes; then
30629 cat >>confdefs.h <<_ACEOF
30630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30631_ACEOF
30632
30633fi
30634done
30635
30636
30637
30638
30639
Reid Spencer6af3d262004-12-15 04:01:48 +000030640
Reid Spencerb90645c2007-02-16 19:17:20 +000030641for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30642do
30643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30644{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30646if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30648else
30649 cat >conftest.$ac_ext <<_ACEOF
30650/* confdefs.h. */
30651_ACEOF
30652cat confdefs.h >>conftest.$ac_ext
30653cat >>conftest.$ac_ext <<_ACEOF
30654/* end confdefs.h. */
30655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30657#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030658
Reid Spencerb90645c2007-02-16 19:17:20 +000030659/* System header to define __stub macros and hopefully few prototypes,
30660 which can conflict with char $ac_func (); below.
30661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30662 <limits.h> exists even on freestanding compilers. */
30663
30664#ifdef __STDC__
30665# include <limits.h>
30666#else
30667# include <assert.h>
30668#endif
30669
30670#undef $ac_func
30671
30672/* Override any GCC internal prototype to avoid an error.
30673 Use char because int might match the return type of a GCC
30674 builtin and then its argument prototype would still apply. */
30675#ifdef __cplusplus
30676extern "C"
30677#endif
30678char $ac_func ();
30679/* The GNU C library defines this for functions which it implements
30680 to always fail with ENOSYS. Some functions are actually named
30681 something starting with __ and the normal name is an alias. */
30682#if defined __stub_$ac_func || defined __stub___$ac_func
30683choke me
30684#endif
30685
30686int
30687main ()
30688{
30689return $ac_func ();
30690 ;
30691 return 0;
30692}
30693_ACEOF
30694rm -f conftest.$ac_objext conftest$ac_exeext
30695if { (ac_try="$ac_link"
30696case "(($ac_try" in
30697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698 *) ac_try_echo=$ac_try;;
30699esac
30700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701 (eval "$ac_link") 2>conftest.er1
30702 ac_status=$?
30703 grep -v '^ *+' conftest.er1 >conftest.err
30704 rm -f conftest.er1
30705 cat conftest.err >&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); } &&
30708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30709 { (case "(($ac_try" in
30710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30711 *) ac_try_echo=$ac_try;;
30712esac
30713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30714 (eval "$ac_try") 2>&5
30715 ac_status=$?
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; } &&
30718 { ac_try='test -s conftest$ac_exeext'
30719 { (case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30722esac
30723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_try") 2>&5
30725 ac_status=$?
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; }; then
30728 eval "$as_ac_var=yes"
30729else
30730 echo "$as_me: failed program was:" >&5
30731sed 's/^/| /' conftest.$ac_ext >&5
30732
30733 eval "$as_ac_var=no"
30734fi
30735
30736rm -f core conftest.err conftest.$ac_objext \
30737 conftest$ac_exeext conftest.$ac_ext
30738fi
30739ac_res=`eval echo '${'$as_ac_var'}'`
30740 { echo "$as_me:$LINENO: result: $ac_res" >&5
30741echo "${ECHO_T}$ac_res" >&6; }
30742if test `eval echo '${'$as_ac_var'}'` = yes; then
30743 cat >>confdefs.h <<_ACEOF
30744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30745_ACEOF
30746
30747fi
30748done
30749
30750
30751
30752
30753for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030754do
30755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030756{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30758if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030759 echo $ECHO_N "(cached) $ECHO_C" >&6
30760else
30761 cat >conftest.$ac_ext <<_ACEOF
30762/* confdefs.h. */
30763_ACEOF
30764cat confdefs.h >>conftest.$ac_ext
30765cat >>conftest.$ac_ext <<_ACEOF
30766/* end confdefs.h. */
30767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30769#define $ac_func innocuous_$ac_func
30770
30771/* System header to define __stub macros and hopefully few prototypes,
30772 which can conflict with char $ac_func (); below.
30773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30774 <limits.h> exists even on freestanding compilers. */
30775
30776#ifdef __STDC__
30777# include <limits.h>
30778#else
30779# include <assert.h>
30780#endif
30781
30782#undef $ac_func
30783
Reid Spencera773bd52006-08-04 18:18:08 +000030784/* Override any GCC internal prototype to avoid an error.
30785 Use char because int might match the return type of a GCC
30786 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030787#ifdef __cplusplus
30788extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030789#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030790char $ac_func ();
30791/* The GNU C library defines this for functions which it implements
30792 to always fail with ENOSYS. Some functions are actually named
30793 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030794#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030795choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030796#endif
30797
30798int
30799main ()
30800{
Reid Spencera773bd52006-08-04 18:18:08 +000030801return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030802 ;
30803 return 0;
30804}
30805_ACEOF
30806rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030807if { (ac_try="$ac_link"
30808case "(($ac_try" in
30809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810 *) ac_try_echo=$ac_try;;
30811esac
30812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030814 ac_status=$?
30815 grep -v '^ *+' conftest.er1 >conftest.err
30816 rm -f conftest.er1
30817 cat conftest.err >&5
30818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30821 { (case "(($ac_try" in
30822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30823 *) ac_try_echo=$ac_try;;
30824esac
30825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30826 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030827 ac_status=$?
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); }; } &&
30830 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030831 { (case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30834esac
30835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030837 ac_status=$?
30838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839 (exit $ac_status); }; }; then
30840 eval "$as_ac_var=yes"
30841else
30842 echo "$as_me: failed program was:" >&5
30843sed 's/^/| /' conftest.$ac_ext >&5
30844
Reid Spencera773bd52006-08-04 18:18:08 +000030845 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030846fi
Reid Spencera773bd52006-08-04 18:18:08 +000030847
30848rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030849 conftest$ac_exeext conftest.$ac_ext
30850fi
Reid Spencera773bd52006-08-04 18:18:08 +000030851ac_res=`eval echo '${'$as_ac_var'}'`
30852 { echo "$as_me:$LINENO: result: $ac_res" >&5
30853echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030854if test `eval echo '${'$as_ac_var'}'` = yes; then
30855 cat >>confdefs.h <<_ACEOF
30856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30857_ACEOF
30858
30859fi
30860done
30861
30862
30863
30864
30865
30866
30867
30868
30869for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030870do
30871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030872{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30874if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030875 echo $ECHO_N "(cached) $ECHO_C" >&6
30876else
30877 cat >conftest.$ac_ext <<_ACEOF
30878/* confdefs.h. */
30879_ACEOF
30880cat confdefs.h >>conftest.$ac_ext
30881cat >>conftest.$ac_ext <<_ACEOF
30882/* end confdefs.h. */
30883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30885#define $ac_func innocuous_$ac_func
30886
30887/* System header to define __stub macros and hopefully few prototypes,
30888 which can conflict with char $ac_func (); below.
30889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30890 <limits.h> exists even on freestanding compilers. */
30891
30892#ifdef __STDC__
30893# include <limits.h>
30894#else
30895# include <assert.h>
30896#endif
30897
30898#undef $ac_func
30899
Reid Spencera773bd52006-08-04 18:18:08 +000030900/* Override any GCC internal prototype to avoid an error.
30901 Use char because int might match the return type of a GCC
30902 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030903#ifdef __cplusplus
30904extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030905#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030906char $ac_func ();
30907/* The GNU C library defines this for functions which it implements
30908 to always fail with ENOSYS. Some functions are actually named
30909 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030910#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030911choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030912#endif
30913
30914int
30915main ()
30916{
Reid Spencera773bd52006-08-04 18:18:08 +000030917return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030918 ;
30919 return 0;
30920}
30921_ACEOF
30922rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030923if { (ac_try="$ac_link"
30924case "(($ac_try" in
30925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926 *) ac_try_echo=$ac_try;;
30927esac
30928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030930 ac_status=$?
30931 grep -v '^ *+' conftest.er1 >conftest.err
30932 rm -f conftest.er1
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30937 { (case "(($ac_try" in
30938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939 *) ac_try_echo=$ac_try;;
30940esac
30941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030943 ac_status=$?
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; } &&
30946 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030947 { (case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30950esac
30951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030953 ac_status=$?
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); }; }; then
30956 eval "$as_ac_var=yes"
30957else
30958 echo "$as_me: failed program was:" >&5
30959sed 's/^/| /' conftest.$ac_ext >&5
30960
Reid Spencera773bd52006-08-04 18:18:08 +000030961 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030962fi
Reid Spencera773bd52006-08-04 18:18:08 +000030963
30964rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030965 conftest$ac_exeext conftest.$ac_ext
30966fi
Reid Spencera773bd52006-08-04 18:18:08 +000030967ac_res=`eval echo '${'$as_ac_var'}'`
30968 { echo "$as_me:$LINENO: result: $ac_res" >&5
30969echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030970if test `eval echo '${'$as_ac_var'}'` = yes; then
30971 cat >>confdefs.h <<_ACEOF
30972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30973_ACEOF
30974
30975fi
30976done
30977
30978
Reid Spencerba46ca32004-12-31 05:49:15 +000030979
30980
Chris Lattner0b142592005-11-14 06:57:34 +000030981
Chris Lattner511f11d2005-11-14 07:25:50 +000030982for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030983do
30984as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030985{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30986echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30987if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030988 echo $ECHO_N "(cached) $ECHO_C" >&6
30989else
30990 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030991/* confdefs.h. */
30992_ACEOF
30993cat confdefs.h >>conftest.$ac_ext
30994cat >>conftest.$ac_ext <<_ACEOF
30995/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030996/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30998#define $ac_func innocuous_$ac_func
30999
31000/* System header to define __stub macros and hopefully few prototypes,
31001 which can conflict with char $ac_func (); below.
31002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31003 <limits.h> exists even on freestanding compilers. */
31004
31005#ifdef __STDC__
31006# include <limits.h>
31007#else
31008# include <assert.h>
31009#endif
31010
31011#undef $ac_func
31012
Reid Spencera773bd52006-08-04 18:18:08 +000031013/* Override any GCC internal prototype to avoid an error.
31014 Use char because int might match the return type of a GCC
31015 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031016#ifdef __cplusplus
31017extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031018#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031019char $ac_func ();
31020/* The GNU C library defines this for functions which it implements
31021 to always fail with ENOSYS. Some functions are actually named
31022 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031023#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031024choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031025#endif
John Criswell7a73b802003-06-30 21:59:07 +000031026
John Criswell7a73b802003-06-30 21:59:07 +000031027int
31028main ()
31029{
Reid Spencera773bd52006-08-04 18:18:08 +000031030return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031031 ;
31032 return 0;
31033}
31034_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031035rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031036if { (ac_try="$ac_link"
31037case "(($ac_try" in
31038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039 *) ac_try_echo=$ac_try;;
31040esac
31041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31042 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031043 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031044 grep -v '^ *+' conftest.er1 >conftest.err
31045 rm -f conftest.er1
31046 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31050 { (case "(($ac_try" in
31051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052 *) ac_try_echo=$ac_try;;
31053esac
31054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031056 ac_status=$?
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031059 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031060 { (case "(($ac_try" in
31061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062 *) ac_try_echo=$ac_try;;
31063esac
31064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031066 ac_status=$?
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031069 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031070else
31071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031072sed 's/^/| /' conftest.$ac_ext >&5
31073
Reid Spencera773bd52006-08-04 18:18:08 +000031074 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031075fi
Reid Spencera773bd52006-08-04 18:18:08 +000031076
31077rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031078 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031079fi
Reid Spencera773bd52006-08-04 18:18:08 +000031080ac_res=`eval echo '${'$as_ac_var'}'`
31081 { echo "$as_me:$LINENO: result: $ac_res" >&5
31082echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031083if test `eval echo '${'$as_ac_var'}'` = yes; then
31084 cat >>confdefs.h <<_ACEOF
31085#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031086_ACEOF
31087
31088fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031089done
John Criswell7a73b802003-06-30 21:59:07 +000031090
Reid Spencercdb08a32006-06-05 16:11:07 +000031091
31092
31093
31094
Reid Spencerafa22e22006-12-10 23:29:19 +000031095for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031096do
31097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031098{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031101 echo $ECHO_N "(cached) $ECHO_C" >&6
31102else
31103 cat >conftest.$ac_ext <<_ACEOF
31104/* confdefs.h. */
31105_ACEOF
31106cat confdefs.h >>conftest.$ac_ext
31107cat >>conftest.$ac_ext <<_ACEOF
31108/* end confdefs.h. */
31109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31111#define $ac_func innocuous_$ac_func
31112
31113/* System header to define __stub macros and hopefully few prototypes,
31114 which can conflict with char $ac_func (); below.
31115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31116 <limits.h> exists even on freestanding compilers. */
31117
31118#ifdef __STDC__
31119# include <limits.h>
31120#else
31121# include <assert.h>
31122#endif
31123
31124#undef $ac_func
31125
Reid Spencera773bd52006-08-04 18:18:08 +000031126/* Override any GCC internal prototype to avoid an error.
31127 Use char because int might match the return type of a GCC
31128 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031129#ifdef __cplusplus
31130extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031131#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031132char $ac_func ();
31133/* The GNU C library defines this for functions which it implements
31134 to always fail with ENOSYS. Some functions are actually named
31135 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031136#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031137choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031138#endif
31139
31140int
31141main ()
31142{
Reid Spencera773bd52006-08-04 18:18:08 +000031143return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031144 ;
31145 return 0;
31146}
31147_ACEOF
31148rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031149if { (ac_try="$ac_link"
31150case "(($ac_try" in
31151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31152 *) ac_try_echo=$ac_try;;
31153esac
31154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31155 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031156 ac_status=$?
31157 grep -v '^ *+' conftest.er1 >conftest.err
31158 rm -f conftest.er1
31159 cat conftest.err >&5
31160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31163 { (case "(($ac_try" in
31164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31165 *) ac_try_echo=$ac_try;;
31166esac
31167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31168 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000031169 ac_status=$?
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); }; } &&
31172 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031173 { (case "(($ac_try" in
31174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31175 *) ac_try_echo=$ac_try;;
31176esac
31177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31178 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000031179 ac_status=$?
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); }; }; then
31182 eval "$as_ac_var=yes"
31183else
31184 echo "$as_me: failed program was:" >&5
31185sed 's/^/| /' conftest.$ac_ext >&5
31186
Reid Spencera773bd52006-08-04 18:18:08 +000031187 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031188fi
Reid Spencera773bd52006-08-04 18:18:08 +000031189
31190rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031191 conftest$ac_exeext conftest.$ac_ext
31192fi
Reid Spencera773bd52006-08-04 18:18:08 +000031193ac_res=`eval echo '${'$as_ac_var'}'`
31194 { echo "$as_me:$LINENO: result: $ac_res" >&5
31195echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031196if test `eval echo '${'$as_ac_var'}'` = yes; then
31197 cat >>confdefs.h <<_ACEOF
31198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31199_ACEOF
31200
31201fi
31202done
31203
Reid Spencera773bd52006-08-04 18:18:08 +000031204{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31205echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031206if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031207 echo $ECHO_N "(cached) $ECHO_C" >&6
31208else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031209 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031210ac_cpp='$CPP $CPPFLAGS'
31211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31213ac_compiler_gnu=$ac_cv_c_compiler_gnu
31214
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031216 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031217else
31218 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031219
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031220 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031221_ACEOF
31222cat confdefs.h >>conftest.$ac_ext
31223cat >>conftest.$ac_ext <<_ACEOF
31224/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031225
John Criswella0137d32003-10-13 16:22:01 +000031226#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031227#include <stdlib.h>
31228
John Criswella0137d32003-10-13 16:22:01 +000031229int
31230main ()
31231{
31232
Reid Spencer2706f8c2004-09-19 23:53:36 +000031233volatile double A, B;
31234char Buffer[100];
31235A = 1;
31236A /= 10.0;
31237sprintf(Buffer, "%a", A);
31238B = atof(Buffer);
31239if (A != B)
31240 return (1);
31241if (A != 0x1.999999999999ap-4)
31242 return (1);
31243return (0);
John Criswella0137d32003-10-13 16:22:01 +000031244 ;
31245 return 0;
31246}
31247_ACEOF
31248rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031249if { (ac_try="$ac_link"
31250case "(($ac_try" in
31251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252 *) ac_try_echo=$ac_try;;
31253esac
31254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031256 ac_status=$?
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031259 { (case "(($ac_try" in
31260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31261 *) ac_try_echo=$ac_try;;
31262esac
31263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31264 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031265 ac_status=$?
31266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031268 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031269else
31270 echo "$as_me: program exited with status $ac_status" >&5
31271echo "$as_me: failed program was:" >&5
31272sed 's/^/| /' conftest.$ac_ext >&5
31273
31274( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031275llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031276fi
Reid Spencera773bd52006-08-04 18:18:08 +000031277rm -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 +000031278fi
Reid Spencera773bd52006-08-04 18:18:08 +000031279
31280
Reid Spencer2706f8c2004-09-19 23:53:36 +000031281 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031282ac_cpp='$CPP $CPPFLAGS'
31283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31285ac_compiler_gnu=$ac_cv_c_compiler_gnu
31286
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031287fi
Reid Spencera773bd52006-08-04 18:18:08 +000031288{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31289echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031290 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031291
31292cat >>confdefs.h <<\_ACEOF
31293#define HAVE_PRINTF_A 1
31294_ACEOF
31295
Reid Spencer2706f8c2004-09-19 23:53:36 +000031296 fi
John Criswella0137d32003-10-13 16:22:01 +000031297
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031298# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31299# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031300{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31301echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031302if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031303 echo $ECHO_N "(cached) $ECHO_C" >&6
31304else
John Criswell0021c312004-02-13 21:57:29 +000031305 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031306/* confdefs.h. */
31307_ACEOF
31308cat confdefs.h >>conftest.$ac_ext
31309cat >>conftest.$ac_ext <<_ACEOF
31310/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031311#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031312int
31313main ()
31314{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031315char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031316 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031317 ;
31318 return 0;
31319}
31320_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031321rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031322if { (ac_try="$ac_link"
31323case "(($ac_try" in
31324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31325 *) ac_try_echo=$ac_try;;
31326esac
31327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31328 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031329 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031330 grep -v '^ *+' conftest.er1 >conftest.err
31331 rm -f conftest.er1
31332 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31336 { (case "(($ac_try" in
31337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31338 *) ac_try_echo=$ac_try;;
31339esac
31340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31341 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031342 ac_status=$?
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031345 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031346 { (case "(($ac_try" in
31347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348 *) ac_try_echo=$ac_try;;
31349esac
31350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031352 ac_status=$?
31353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031355 ac_cv_working_alloca_h=yes
31356else
31357 echo "$as_me: failed program was:" >&5
31358sed 's/^/| /' conftest.$ac_ext >&5
31359
Reid Spencera773bd52006-08-04 18:18:08 +000031360 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031361fi
Reid Spencera773bd52006-08-04 18:18:08 +000031362
31363rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031364 conftest$ac_exeext conftest.$ac_ext
31365fi
Reid Spencera773bd52006-08-04 18:18:08 +000031366{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31367echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031368if test $ac_cv_working_alloca_h = yes; then
31369
31370cat >>confdefs.h <<\_ACEOF
31371#define HAVE_ALLOCA_H 1
31372_ACEOF
31373
31374fi
31375
Reid Spencera773bd52006-08-04 18:18:08 +000031376{ echo "$as_me:$LINENO: checking for alloca" >&5
31377echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031378if test "${ac_cv_func_alloca_works+set}" = set; then
31379 echo $ECHO_N "(cached) $ECHO_C" >&6
31380else
31381 cat >conftest.$ac_ext <<_ACEOF
31382/* confdefs.h. */
31383_ACEOF
31384cat confdefs.h >>conftest.$ac_ext
31385cat >>conftest.$ac_ext <<_ACEOF
31386/* end confdefs.h. */
31387#ifdef __GNUC__
31388# define alloca __builtin_alloca
31389#else
31390# ifdef _MSC_VER
31391# include <malloc.h>
31392# define alloca _alloca
31393# else
31394# if HAVE_ALLOCA_H
31395# include <alloca.h>
31396# else
31397# ifdef _AIX
31398 #pragma alloca
31399# else
31400# ifndef alloca /* predefined by HP cc +Olibcalls */
31401char *alloca ();
31402# endif
31403# endif
31404# endif
31405# endif
31406#endif
31407
31408int
31409main ()
31410{
31411char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031412 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031413 ;
31414 return 0;
31415}
31416_ACEOF
31417rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031418if { (ac_try="$ac_link"
31419case "(($ac_try" in
31420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31421 *) ac_try_echo=$ac_try;;
31422esac
31423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031425 ac_status=$?
31426 grep -v '^ *+' conftest.er1 >conftest.err
31427 rm -f conftest.er1
31428 cat conftest.err >&5
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31432 { (case "(($ac_try" in
31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31435esac
31436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031438 ac_status=$?
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); }; } &&
31441 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031442 { (case "(($ac_try" in
31443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31444 *) ac_try_echo=$ac_try;;
31445esac
31446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31447 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031448 ac_status=$?
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); }; }; then
31451 ac_cv_func_alloca_works=yes
31452else
31453 echo "$as_me: failed program was:" >&5
31454sed 's/^/| /' conftest.$ac_ext >&5
31455
Reid Spencera773bd52006-08-04 18:18:08 +000031456 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031457fi
Reid Spencera773bd52006-08-04 18:18:08 +000031458
31459rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031460 conftest$ac_exeext conftest.$ac_ext
31461fi
Reid Spencera773bd52006-08-04 18:18:08 +000031462{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31463echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031464
31465if test $ac_cv_func_alloca_works = yes; then
31466
31467cat >>confdefs.h <<\_ACEOF
31468#define HAVE_ALLOCA 1
31469_ACEOF
31470
31471else
31472 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31473# that cause trouble. Some versions do not even contain alloca or
31474# contain a buggy version. If you still want to use their alloca,
31475# use ar to extract alloca.o from them instead of compiling alloca.c.
31476
Reid Spencera773bd52006-08-04 18:18:08 +000031477ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031478
31479cat >>confdefs.h <<\_ACEOF
31480#define C_ALLOCA 1
31481_ACEOF
31482
31483
Reid Spencera773bd52006-08-04 18:18:08 +000031484{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31485echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031486if test "${ac_cv_os_cray+set}" = set; then
31487 echo $ECHO_N "(cached) $ECHO_C" >&6
31488else
31489 cat >conftest.$ac_ext <<_ACEOF
31490/* confdefs.h. */
31491_ACEOF
31492cat confdefs.h >>conftest.$ac_ext
31493cat >>conftest.$ac_ext <<_ACEOF
31494/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031495#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031496webecray
31497#else
31498wenotbecray
31499#endif
31500
31501_ACEOF
31502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31503 $EGREP "webecray" >/dev/null 2>&1; then
31504 ac_cv_os_cray=yes
31505else
31506 ac_cv_os_cray=no
31507fi
31508rm -f conftest*
31509
31510fi
Reid Spencera773bd52006-08-04 18:18:08 +000031511{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31512echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031513if test $ac_cv_os_cray = yes; then
31514 for ac_func in _getb67 GETB67 getb67; do
31515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031516{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31518if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031519 echo $ECHO_N "(cached) $ECHO_C" >&6
31520else
31521 cat >conftest.$ac_ext <<_ACEOF
31522/* confdefs.h. */
31523_ACEOF
31524cat confdefs.h >>conftest.$ac_ext
31525cat >>conftest.$ac_ext <<_ACEOF
31526/* end confdefs.h. */
31527/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31529#define $ac_func innocuous_$ac_func
31530
31531/* System header to define __stub macros and hopefully few prototypes,
31532 which can conflict with char $ac_func (); below.
31533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31534 <limits.h> exists even on freestanding compilers. */
31535
31536#ifdef __STDC__
31537# include <limits.h>
31538#else
31539# include <assert.h>
31540#endif
31541
31542#undef $ac_func
31543
Reid Spencera773bd52006-08-04 18:18:08 +000031544/* Override any GCC internal prototype to avoid an error.
31545 Use char because int might match the return type of a GCC
31546 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031547#ifdef __cplusplus
31548extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031549#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031550char $ac_func ();
31551/* The GNU C library defines this for functions which it implements
31552 to always fail with ENOSYS. Some functions are actually named
31553 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031554#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031555choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031556#endif
31557
31558int
31559main ()
31560{
Reid Spencera773bd52006-08-04 18:18:08 +000031561return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031562 ;
31563 return 0;
31564}
31565_ACEOF
31566rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031567if { (ac_try="$ac_link"
31568case "(($ac_try" in
31569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31570 *) ac_try_echo=$ac_try;;
31571esac
31572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31573 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031574 ac_status=$?
31575 grep -v '^ *+' conftest.er1 >conftest.err
31576 rm -f conftest.er1
31577 cat conftest.err >&5
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31581 { (case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31584esac
31585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031587 ac_status=$?
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; } &&
31590 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031591 { (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 Spencer5e1d9a52004-11-25 04:51:04 +000031597 ac_status=$?
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); }; }; then
31600 eval "$as_ac_var=yes"
31601else
31602 echo "$as_me: failed program was:" >&5
31603sed 's/^/| /' conftest.$ac_ext >&5
31604
Reid Spencera773bd52006-08-04 18:18:08 +000031605 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031606fi
Reid Spencera773bd52006-08-04 18:18:08 +000031607
31608rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031609 conftest$ac_exeext conftest.$ac_ext
31610fi
Reid Spencera773bd52006-08-04 18:18:08 +000031611ac_res=`eval echo '${'$as_ac_var'}'`
31612 { echo "$as_me:$LINENO: result: $ac_res" >&5
31613echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031614if test `eval echo '${'$as_ac_var'}'` = yes; then
31615
31616cat >>confdefs.h <<_ACEOF
31617#define CRAY_STACKSEG_END $ac_func
31618_ACEOF
31619
31620 break
31621fi
31622
31623 done
31624fi
31625
Reid Spencera773bd52006-08-04 18:18:08 +000031626{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31627echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031628if test "${ac_cv_c_stack_direction+set}" = set; then
31629 echo $ECHO_N "(cached) $ECHO_C" >&6
31630else
31631 if test "$cross_compiling" = yes; then
31632 ac_cv_c_stack_direction=0
31633else
31634 cat >conftest.$ac_ext <<_ACEOF
31635/* confdefs.h. */
31636_ACEOF
31637cat confdefs.h >>conftest.$ac_ext
31638cat >>conftest.$ac_ext <<_ACEOF
31639/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031640$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031641int
31642find_stack_direction ()
31643{
31644 static char *addr = 0;
31645 auto char dummy;
31646 if (addr == 0)
31647 {
31648 addr = &dummy;
31649 return find_stack_direction ();
31650 }
John Criswell0021c312004-02-13 21:57:29 +000031651 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031652 return (&dummy > addr) ? 1 : -1;
31653}
John Criswell0021c312004-02-13 21:57:29 +000031654
John Criswell0021c312004-02-13 21:57:29 +000031655int
31656main ()
31657{
Reid Spencera773bd52006-08-04 18:18:08 +000031658 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031659}
31660_ACEOF
31661rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031662if { (ac_try="$ac_link"
31663case "(($ac_try" in
31664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31665 *) ac_try_echo=$ac_try;;
31666esac
31667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31668 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031669 ac_status=$?
31670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031672 { (case "(($ac_try" in
31673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31675esac
31676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031678 ac_status=$?
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031681 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031682else
31683 echo "$as_me: program exited with status $ac_status" >&5
31684echo "$as_me: failed program was:" >&5
31685sed 's/^/| /' conftest.$ac_ext >&5
31686
31687( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031688ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031689fi
Reid Spencera773bd52006-08-04 18:18:08 +000031690rm -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 +000031691fi
Reid Spencera773bd52006-08-04 18:18:08 +000031692
31693
John Criswell0021c312004-02-13 21:57:29 +000031694fi
Reid Spencera773bd52006-08-04 18:18:08 +000031695{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31696echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031697
31698cat >>confdefs.h <<_ACEOF
31699#define STACK_DIRECTION $ac_cv_c_stack_direction
31700_ACEOF
31701
31702
John Criswell0021c312004-02-13 21:57:29 +000031703fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031704
31705
Reid Spencera773bd52006-08-04 18:18:08 +000031706{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31707echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031708if test "${ac_cv_func_rand48+set}" = set; then
31709 echo $ECHO_N "(cached) $ECHO_C" >&6
31710else
Reid Spencera773bd52006-08-04 18:18:08 +000031711 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031712ac_cpp='$CXXCPP $CPPFLAGS'
31713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31716
31717 cat >conftest.$ac_ext <<_ACEOF
31718/* confdefs.h. */
31719_ACEOF
31720cat confdefs.h >>conftest.$ac_ext
31721cat >>conftest.$ac_ext <<_ACEOF
31722/* end confdefs.h. */
31723#include <stdlib.h>
31724int
31725main ()
31726{
31727srand48(0);lrand48();drand48();
31728 ;
31729 return 0;
31730}
31731_ACEOF
31732rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031733if { (ac_try="$ac_compile"
31734case "(($ac_try" in
31735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31736 *) ac_try_echo=$ac_try;;
31737esac
31738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31739 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031740 ac_status=$?
31741 grep -v '^ *+' conftest.er1 >conftest.err
31742 rm -f conftest.er1
31743 cat conftest.err >&5
31744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31747 { (case "(($ac_try" in
31748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749 *) ac_try_echo=$ac_try;;
31750esac
31751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031753 ac_status=$?
31754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31755 (exit $ac_status); }; } &&
31756 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031757 { (case "(($ac_try" in
31758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31759 *) ac_try_echo=$ac_try;;
31760esac
31761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31762 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031763 ac_status=$?
31764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765 (exit $ac_status); }; }; then
31766 ac_cv_func_rand48=yes
31767else
31768 echo "$as_me: failed program was:" >&5
31769sed 's/^/| /' conftest.$ac_ext >&5
31770
Reid Spencera773bd52006-08-04 18:18:08 +000031771 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031772fi
Reid Spencera773bd52006-08-04 18:18:08 +000031773
31774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031775 ac_ext=c
31776ac_cpp='$CPP $CPPFLAGS'
31777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31779ac_compiler_gnu=$ac_cv_c_compiler_gnu
31780
31781fi
Reid Spencera773bd52006-08-04 18:18:08 +000031782{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31783echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031784
31785if test "$ac_cv_func_rand48" = "yes" ; then
31786
31787cat >>confdefs.h <<\_ACEOF
31788#define HAVE_RAND48 1
31789_ACEOF
31790
31791fi
John Criswell0021c312004-02-13 21:57:29 +000031792
31793
Reid Spencera773bd52006-08-04 18:18:08 +000031794{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31795echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031796if test "${ac_cv_cxx_namespaces+set}" = set; then
31797 echo $ECHO_N "(cached) $ECHO_C" >&6
31798else
Reid Spencera773bd52006-08-04 18:18:08 +000031799 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031800ac_cpp='$CXXCPP $CPPFLAGS'
31801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31804
31805 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031806/* confdefs.h. */
31807_ACEOF
31808cat confdefs.h >>conftest.$ac_ext
31809cat >>conftest.$ac_ext <<_ACEOF
31810/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031811namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031812int
31813main ()
31814{
31815using namespace Outer::Inner; return i;
31816 ;
31817 return 0;
31818}
31819_ACEOF
31820rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031821if { (ac_try="$ac_compile"
31822case "(($ac_try" in
31823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31824 *) ac_try_echo=$ac_try;;
31825esac
31826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31827 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031828 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031829 grep -v '^ *+' conftest.er1 >conftest.err
31830 rm -f conftest.er1
31831 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31835 { (case "(($ac_try" in
31836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31837 *) ac_try_echo=$ac_try;;
31838esac
31839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31840 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031841 ac_status=$?
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; } &&
31844 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031845 { (case "(($ac_try" in
31846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31847 *) ac_try_echo=$ac_try;;
31848esac
31849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31850 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031851 ac_status=$?
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); }; }; then
31854 ac_cv_cxx_namespaces=yes
31855else
31856 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031857sed 's/^/| /' conftest.$ac_ext >&5
31858
Reid Spencera773bd52006-08-04 18:18:08 +000031859 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031860fi
Reid Spencera773bd52006-08-04 18:18:08 +000031861
31862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031863 ac_ext=c
31864ac_cpp='$CPP $CPPFLAGS'
31865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31867ac_compiler_gnu=$ac_cv_c_compiler_gnu
31868
31869
31870fi
Reid Spencera773bd52006-08-04 18:18:08 +000031871{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31872echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031873if test "$ac_cv_cxx_namespaces" = yes; then
31874
31875cat >>confdefs.h <<\_ACEOF
31876#define HAVE_NAMESPACES
31877_ACEOF
31878
31879fi
31880
Reid Spencera773bd52006-08-04 18:18:08 +000031881{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31882echo $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 +000031883if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031884 echo $ECHO_N "(cached) $ECHO_C" >&6
31885else
31886
Reid Spencera773bd52006-08-04 18:18:08 +000031887 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031888ac_cpp='$CXXCPP $CPPFLAGS'
31889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31892
31893 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031894/* confdefs.h. */
31895_ACEOF
31896cat confdefs.h >>conftest.$ac_ext
31897cat >>conftest.$ac_ext <<_ACEOF
31898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031899#include <ext/hash_map>
31900#ifdef HAVE_NAMESPACES
31901using namespace std;
31902#endif
John Criswell7a73b802003-06-30 21:59:07 +000031903int
31904main ()
31905{
Brian Gaeke90583492003-11-10 03:06:28 +000031906hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031907 ;
31908 return 0;
31909}
31910_ACEOF
31911rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031912if { (ac_try="$ac_compile"
31913case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31916esac
31917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031919 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031920 grep -v '^ *+' conftest.er1 >conftest.err
31921 rm -f conftest.er1
31922 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31926 { (case "(($ac_try" in
31927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31928 *) ac_try_echo=$ac_try;;
31929esac
31930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31931 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031932 ac_status=$?
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); }; } &&
31935 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031936 { (case "(($ac_try" in
31937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938 *) ac_try_echo=$ac_try;;
31939esac
31940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031942 ac_status=$?
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031945 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031946else
31947 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031948sed 's/^/| /' conftest.$ac_ext >&5
31949
Reid Spencera773bd52006-08-04 18:18:08 +000031950 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031951fi
Reid Spencera773bd52006-08-04 18:18:08 +000031952
31953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031954 ac_ext=c
31955ac_cpp='$CPP $CPPFLAGS'
31956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31958ac_compiler_gnu=$ac_cv_c_compiler_gnu
31959
John Criswell7a73b802003-06-30 21:59:07 +000031960fi
Reid Spencera773bd52006-08-04 18:18:08 +000031961{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31962echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031963 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31964 then
John Criswell9f011862004-09-24 18:28:00 +000031965
31966cat >>confdefs.h <<\_ACEOF
31967#define HAVE_STD_EXT_HASH_MAP 1
31968_ACEOF
31969
31970 else
31971
31972cat >>confdefs.h <<\_ACEOF
31973#define HAVE_STD_EXT_HASH_MAP 0
31974_ACEOF
31975
Brian Gaeke90583492003-11-10 03:06:28 +000031976 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031977
Reid Spencera773bd52006-08-04 18:18:08 +000031978 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31979echo $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 +000031980if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31981 echo $ECHO_N "(cached) $ECHO_C" >&6
31982else
31983
Reid Spencera773bd52006-08-04 18:18:08 +000031984 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031985ac_cpp='$CXXCPP $CPPFLAGS'
31986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31989
31990 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031991/* confdefs.h. */
31992_ACEOF
31993cat confdefs.h >>conftest.$ac_ext
31994cat >>conftest.$ac_ext <<_ACEOF
31995/* end confdefs.h. */
31996#include <ext/hash_map>
31997#ifdef HAVE_NAMESPACES
31998using namespace __gnu_cxx;
31999#endif
32000int
32001main ()
32002{
32003hash_map<int,int> t;
32004 ;
32005 return 0;
32006}
32007_ACEOF
32008rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032009if { (ac_try="$ac_compile"
32010case "(($ac_try" in
32011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32012 *) ac_try_echo=$ac_try;;
32013esac
32014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32015 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032016 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032017 grep -v '^ *+' conftest.er1 >conftest.err
32018 rm -f conftest.er1
32019 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32023 { (case "(($ac_try" in
32024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32025 *) ac_try_echo=$ac_try;;
32026esac
32027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32028 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032029 ac_status=$?
32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031 (exit $ac_status); }; } &&
32032 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032033 { (case "(($ac_try" in
32034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32035 *) ac_try_echo=$ac_try;;
32036esac
32037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32038 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032039 ac_status=$?
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); }; }; then
32042 ac_cv_cxx_have_gnu_ext_hash_map=yes
32043else
32044 echo "$as_me: failed program was:" >&5
32045sed 's/^/| /' conftest.$ac_ext >&5
32046
Reid Spencera773bd52006-08-04 18:18:08 +000032047 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032048fi
Reid Spencera773bd52006-08-04 18:18:08 +000032049
32050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032051 ac_ext=c
32052ac_cpp='$CPP $CPPFLAGS'
32053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32055ac_compiler_gnu=$ac_cv_c_compiler_gnu
32056
32057fi
Reid Spencera773bd52006-08-04 18:18:08 +000032058{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32059echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032060 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32061 then
John Criswell9f011862004-09-24 18:28:00 +000032062
32063cat >>confdefs.h <<\_ACEOF
32064#define HAVE_GNU_EXT_HASH_MAP 1
32065_ACEOF
32066
32067 else
32068
32069cat >>confdefs.h <<\_ACEOF
32070#define HAVE_GNU_EXT_HASH_MAP 0
32071_ACEOF
32072
Brian Gaeke90583492003-11-10 03:06:28 +000032073 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032074
Reid Spencera773bd52006-08-04 18:18:08 +000032075 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32076echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032077if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32078 echo $ECHO_N "(cached) $ECHO_C" >&6
32079else
John Criswell7a73b802003-06-30 21:59:07 +000032080
Reid Spencera773bd52006-08-04 18:18:08 +000032081 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032082ac_cpp='$CXXCPP $CPPFLAGS'
32083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32086
32087 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032088/* confdefs.h. */
32089_ACEOF
32090cat confdefs.h >>conftest.$ac_ext
32091cat >>conftest.$ac_ext <<_ACEOF
32092/* end confdefs.h. */
32093#include <hash_map>
32094int
32095main ()
32096{
32097hash_map<int,int> t;
32098 ;
32099 return 0;
32100}
32101_ACEOF
32102rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032103if { (ac_try="$ac_compile"
32104case "(($ac_try" in
32105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32106 *) ac_try_echo=$ac_try;;
32107esac
32108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32109 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032110 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032111 grep -v '^ *+' conftest.er1 >conftest.err
32112 rm -f conftest.er1
32113 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32117 { (case "(($ac_try" in
32118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32119 *) ac_try_echo=$ac_try;;
32120esac
32121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32122 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032123 ac_status=$?
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); }; } &&
32126 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032127 { (case "(($ac_try" in
32128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32129 *) ac_try_echo=$ac_try;;
32130esac
32131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32132 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032133 ac_status=$?
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); }; }; then
32136 ac_cv_cxx_have_global_hash_map=yes
32137else
32138 echo "$as_me: failed program was:" >&5
32139sed 's/^/| /' conftest.$ac_ext >&5
32140
Reid Spencera773bd52006-08-04 18:18:08 +000032141 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032142fi
Reid Spencera773bd52006-08-04 18:18:08 +000032143
32144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032145 ac_ext=c
32146ac_cpp='$CPP $CPPFLAGS'
32147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32149ac_compiler_gnu=$ac_cv_c_compiler_gnu
32150
32151fi
Reid Spencera773bd52006-08-04 18:18:08 +000032152{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32153echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032154 if test "$ac_cv_cxx_have_global_hash_map" = yes
32155 then
John Criswell9f011862004-09-24 18:28:00 +000032156
32157cat >>confdefs.h <<\_ACEOF
32158#define HAVE_GLOBAL_HASH_MAP 1
32159_ACEOF
32160
32161 else
32162
32163cat >>confdefs.h <<\_ACEOF
32164#define HAVE_GLOBAL_HASH_MAP 0
32165_ACEOF
32166
Brian Gaeke90583492003-11-10 03:06:28 +000032167 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032168
Reid Spencera773bd52006-08-04 18:18:08 +000032169{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32170echo $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 +000032171if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032172 echo $ECHO_N "(cached) $ECHO_C" >&6
32173else
32174
Reid Spencera773bd52006-08-04 18:18:08 +000032175 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032176ac_cpp='$CXXCPP $CPPFLAGS'
32177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32180
32181 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032182/* confdefs.h. */
32183_ACEOF
32184cat confdefs.h >>conftest.$ac_ext
32185cat >>conftest.$ac_ext <<_ACEOF
32186/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032187#include <ext/hash_set>
32188#ifdef HAVE_NAMESPACES
32189using namespace std;
32190#endif
John Criswell7a73b802003-06-30 21:59:07 +000032191int
32192main ()
32193{
Brian Gaeke90583492003-11-10 03:06:28 +000032194hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032195 ;
32196 return 0;
32197}
32198_ACEOF
32199rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032200if { (ac_try="$ac_compile"
32201case "(($ac_try" in
32202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203 *) ac_try_echo=$ac_try;;
32204esac
32205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032207 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032208 grep -v '^ *+' conftest.er1 >conftest.err
32209 rm -f conftest.er1
32210 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32214 { (case "(($ac_try" in
32215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216 *) ac_try_echo=$ac_try;;
32217esac
32218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032220 ac_status=$?
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); }; } &&
32223 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032224 { (case "(($ac_try" in
32225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32226 *) ac_try_echo=$ac_try;;
32227esac
32228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32229 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032230 ac_status=$?
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032233 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032234else
32235 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032236sed 's/^/| /' conftest.$ac_ext >&5
32237
Reid Spencera773bd52006-08-04 18:18:08 +000032238 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032239fi
Reid Spencera773bd52006-08-04 18:18:08 +000032240
32241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032242 ac_ext=c
32243ac_cpp='$CPP $CPPFLAGS'
32244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32246ac_compiler_gnu=$ac_cv_c_compiler_gnu
32247
32248fi
Reid Spencera773bd52006-08-04 18:18:08 +000032249{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32250echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032251 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32252 then
John Criswell9f011862004-09-24 18:28:00 +000032253
32254cat >>confdefs.h <<\_ACEOF
32255#define HAVE_STD_EXT_HASH_SET 1
32256_ACEOF
32257
32258 else
32259
32260cat >>confdefs.h <<\_ACEOF
32261#define HAVE_STD_EXT_HASH_SET 0
32262_ACEOF
32263
Brian Gaeke90583492003-11-10 03:06:28 +000032264 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032265
Reid Spencera773bd52006-08-04 18:18:08 +000032266 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32267echo $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 +000032268if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32269 echo $ECHO_N "(cached) $ECHO_C" >&6
32270else
32271
Reid Spencera773bd52006-08-04 18:18:08 +000032272 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032273ac_cpp='$CXXCPP $CPPFLAGS'
32274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32277
John Criswell7a73b802003-06-30 21:59:07 +000032278 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032279/* confdefs.h. */
32280_ACEOF
32281cat confdefs.h >>conftest.$ac_ext
32282cat >>conftest.$ac_ext <<_ACEOF
32283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032284#include <ext/hash_set>
32285#ifdef HAVE_NAMESPACES
32286using namespace __gnu_cxx;
32287#endif
John Criswell7a73b802003-06-30 21:59:07 +000032288int
32289main ()
32290{
Brian Gaeke90583492003-11-10 03:06:28 +000032291hash_set<int> t;
32292 ;
32293 return 0;
32294}
32295_ACEOF
32296rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032297if { (ac_try="$ac_compile"
32298case "(($ac_try" in
32299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32300 *) ac_try_echo=$ac_try;;
32301esac
32302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32303 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032304 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032305 grep -v '^ *+' conftest.er1 >conftest.err
32306 rm -f conftest.er1
32307 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32311 { (case "(($ac_try" in
32312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32313 *) ac_try_echo=$ac_try;;
32314esac
32315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32316 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032317 ac_status=$?
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); }; } &&
32320 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032321 { (case "(($ac_try" in
32322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32323 *) ac_try_echo=$ac_try;;
32324esac
32325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32326 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032327 ac_status=$?
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); }; }; then
32330 ac_cv_cxx_have_gnu_ext_hash_set=yes
32331else
32332 echo "$as_me: failed program was:" >&5
32333sed 's/^/| /' conftest.$ac_ext >&5
32334
Reid Spencera773bd52006-08-04 18:18:08 +000032335 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032336fi
Reid Spencera773bd52006-08-04 18:18:08 +000032337
32338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032339 ac_ext=c
32340ac_cpp='$CPP $CPPFLAGS'
32341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32343ac_compiler_gnu=$ac_cv_c_compiler_gnu
32344
32345fi
Reid Spencera773bd52006-08-04 18:18:08 +000032346{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32347echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032348 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32349 then
John Criswell9f011862004-09-24 18:28:00 +000032350
32351cat >>confdefs.h <<\_ACEOF
32352#define HAVE_GNU_EXT_HASH_SET 1
32353_ACEOF
32354
32355 else
32356
32357cat >>confdefs.h <<\_ACEOF
32358#define HAVE_GNU_EXT_HASH_SET 0
32359_ACEOF
32360
Brian Gaeke90583492003-11-10 03:06:28 +000032361 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032362
Reid Spencera773bd52006-08-04 18:18:08 +000032363 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32364echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032365if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32366 echo $ECHO_N "(cached) $ECHO_C" >&6
32367else
32368
Reid Spencera773bd52006-08-04 18:18:08 +000032369 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032370ac_cpp='$CXXCPP $CPPFLAGS'
32371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32374
32375 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032376/* confdefs.h. */
32377_ACEOF
32378cat confdefs.h >>conftest.$ac_ext
32379cat >>conftest.$ac_ext <<_ACEOF
32380/* end confdefs.h. */
32381#include <hash_set>
32382int
32383main ()
32384{
John Criswell7a73b802003-06-30 21:59:07 +000032385hash_set<int> t; return 0;
32386 ;
32387 return 0;
32388}
32389_ACEOF
32390rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032391if { (ac_try="$ac_compile"
32392case "(($ac_try" in
32393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394 *) ac_try_echo=$ac_try;;
32395esac
32396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032399 grep -v '^ *+' conftest.er1 >conftest.err
32400 rm -f conftest.er1
32401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32405 { (case "(($ac_try" in
32406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407 *) ac_try_echo=$ac_try;;
32408esac
32409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32410 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032411 ac_status=$?
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); }; } &&
32414 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032415 { (case "(($ac_try" in
32416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417 *) ac_try_echo=$ac_try;;
32418esac
32419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032421 ac_status=$?
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032424 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032425else
32426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032427sed 's/^/| /' conftest.$ac_ext >&5
32428
Reid Spencera773bd52006-08-04 18:18:08 +000032429 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032430fi
Reid Spencera773bd52006-08-04 18:18:08 +000032431
32432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032433 ac_ext=c
32434ac_cpp='$CPP $CPPFLAGS'
32435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32437ac_compiler_gnu=$ac_cv_c_compiler_gnu
32438
John Criswell7a73b802003-06-30 21:59:07 +000032439fi
Reid Spencera773bd52006-08-04 18:18:08 +000032440{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32441echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032442 if test "$ac_cv_cxx_have_global_hash_set" = yes
32443 then
John Criswell9f011862004-09-24 18:28:00 +000032444
32445cat >>confdefs.h <<\_ACEOF
32446#define HAVE_GLOBAL_HASH_SET 1
32447_ACEOF
32448
32449 else
32450
32451cat >>confdefs.h <<\_ACEOF
32452#define HAVE_GLOBAL_HASH_SET 0
32453_ACEOF
32454
Brian Gaeke90583492003-11-10 03:06:28 +000032455 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032456
Reid Spencera773bd52006-08-04 18:18:08 +000032457{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32458echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032459if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32461else
32462
Reid Spencera773bd52006-08-04 18:18:08 +000032463 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032464ac_cpp='$CXXCPP $CPPFLAGS'
32465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32468
32469 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032470/* confdefs.h. */
32471_ACEOF
32472cat confdefs.h >>conftest.$ac_ext
32473cat >>conftest.$ac_ext <<_ACEOF
32474/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032475#include <iterator>
32476#ifdef HAVE_NAMESPACES
32477using namespace std;
32478#endif
John Criswell7a73b802003-06-30 21:59:07 +000032479int
32480main ()
32481{
32482iterator<int,int,int> t; return 0;
32483 ;
32484 return 0;
32485}
32486_ACEOF
32487rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032488if { (ac_try="$ac_compile"
32489case "(($ac_try" in
32490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32491 *) ac_try_echo=$ac_try;;
32492esac
32493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32494 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032495 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032496 grep -v '^ *+' conftest.er1 >conftest.err
32497 rm -f conftest.er1
32498 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32500 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32502 { (case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32505esac
32506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032508 ac_status=$?
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); }; } &&
32511 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032512 { (case "(($ac_try" in
32513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32515esac
32516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032518 ac_status=$?
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; }; then
32521 ac_cv_cxx_have_std_iterator=yes
32522else
32523 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032524sed 's/^/| /' conftest.$ac_ext >&5
32525
Reid Spencera773bd52006-08-04 18:18:08 +000032526 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032527fi
Reid Spencera773bd52006-08-04 18:18:08 +000032528
32529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032530 ac_ext=c
32531ac_cpp='$CPP $CPPFLAGS'
32532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32534ac_compiler_gnu=$ac_cv_c_compiler_gnu
32535
32536
32537fi
Reid Spencera773bd52006-08-04 18:18:08 +000032538{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32539echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032540if test "$ac_cv_cxx_have_std_iterator" = yes
32541then
John Criswell40468462004-09-24 21:19:06 +000032542
32543cat >>confdefs.h <<\_ACEOF
32544#define HAVE_STD_ITERATOR 1
32545_ACEOF
32546
32547else
32548
32549cat >>confdefs.h <<\_ACEOF
32550#define HAVE_STD_ITERATOR 0
32551_ACEOF
32552
John Criswell7a73b802003-06-30 21:59:07 +000032553fi
32554
Reid Spencera773bd52006-08-04 18:18:08 +000032555{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32556echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032557if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32558 echo $ECHO_N "(cached) $ECHO_C" >&6
32559else
32560
Reid Spencera773bd52006-08-04 18:18:08 +000032561 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032562ac_cpp='$CXXCPP $CPPFLAGS'
32563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32566
32567 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032568/* confdefs.h. */
32569_ACEOF
32570cat confdefs.h >>conftest.$ac_ext
32571cat >>conftest.$ac_ext <<_ACEOF
32572/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032573#include <iterator>
32574#ifdef HAVE_NAMESPACES
32575using namespace std;
32576#endif
John Criswell7a73b802003-06-30 21:59:07 +000032577int
32578main ()
32579{
John Criswellc78022e2003-07-29 19:11:58 +000032580bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032581 ;
32582 return 0;
32583}
32584_ACEOF
32585rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032586if { (ac_try="$ac_compile"
32587case "(($ac_try" in
32588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589 *) ac_try_echo=$ac_try;;
32590esac
32591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032593 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032594 grep -v '^ *+' conftest.er1 >conftest.err
32595 rm -f conftest.er1
32596 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32600 { (case "(($ac_try" in
32601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602 *) ac_try_echo=$ac_try;;
32603esac
32604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032606 ac_status=$?
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; } &&
32609 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032610 { (case "(($ac_try" in
32611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612 *) ac_try_echo=$ac_try;;
32613esac
32614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032616 ac_status=$?
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
32619 ac_cv_cxx_have_bi_iterator=yes
32620else
32621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032622sed 's/^/| /' conftest.$ac_ext >&5
32623
Reid Spencera773bd52006-08-04 18:18:08 +000032624 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032625fi
Reid Spencera773bd52006-08-04 18:18:08 +000032626
32627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032628 ac_ext=c
32629ac_cpp='$CPP $CPPFLAGS'
32630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32632ac_compiler_gnu=$ac_cv_c_compiler_gnu
32633
32634
32635fi
Reid Spencera773bd52006-08-04 18:18:08 +000032636{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32637echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032638if test "$ac_cv_cxx_have_bi_iterator" = yes
32639then
John Criswell40468462004-09-24 21:19:06 +000032640
32641cat >>confdefs.h <<\_ACEOF
32642#define HAVE_BI_ITERATOR 1
32643_ACEOF
32644
32645else
32646
32647cat >>confdefs.h <<\_ACEOF
32648#define HAVE_BI_ITERATOR 0
32649_ACEOF
32650
John Criswell7a73b802003-06-30 21:59:07 +000032651fi
32652
Reid Spencera773bd52006-08-04 18:18:08 +000032653{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32654echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032655if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32656 echo $ECHO_N "(cached) $ECHO_C" >&6
32657else
32658
Reid Spencera773bd52006-08-04 18:18:08 +000032659 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032660ac_cpp='$CXXCPP $CPPFLAGS'
32661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32664
32665 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032666/* confdefs.h. */
32667_ACEOF
32668cat confdefs.h >>conftest.$ac_ext
32669cat >>conftest.$ac_ext <<_ACEOF
32670/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032671#include <iterator>
32672#ifdef HAVE_NAMESPACES
32673using namespace std;
32674#endif
John Criswell7a73b802003-06-30 21:59:07 +000032675int
32676main ()
32677{
John Criswellc78022e2003-07-29 19:11:58 +000032678forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032679 ;
32680 return 0;
32681}
32682_ACEOF
32683rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032684if { (ac_try="$ac_compile"
32685case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32688esac
32689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032691 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032692 grep -v '^ *+' conftest.er1 >conftest.err
32693 rm -f conftest.er1
32694 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32698 { (case "(($ac_try" in
32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700 *) ac_try_echo=$ac_try;;
32701esac
32702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032704 ac_status=$?
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); }; } &&
32707 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032708 { (case "(($ac_try" in
32709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710 *) ac_try_echo=$ac_try;;
32711esac
32712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032714 ac_status=$?
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); }; }; then
32717 ac_cv_cxx_have_fwd_iterator=yes
32718else
32719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032720sed 's/^/| /' conftest.$ac_ext >&5
32721
Reid Spencera773bd52006-08-04 18:18:08 +000032722 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032723fi
Reid Spencera773bd52006-08-04 18:18:08 +000032724
32725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032726 ac_ext=c
32727ac_cpp='$CPP $CPPFLAGS'
32728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730ac_compiler_gnu=$ac_cv_c_compiler_gnu
32731
32732
32733fi
Reid Spencera773bd52006-08-04 18:18:08 +000032734{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32735echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032736if test "$ac_cv_cxx_have_fwd_iterator" = yes
32737then
John Criswell40468462004-09-24 21:19:06 +000032738
32739cat >>confdefs.h <<\_ACEOF
32740#define HAVE_FWD_ITERATOR 1
32741_ACEOF
32742
32743else
32744
32745cat >>confdefs.h <<\_ACEOF
32746#define HAVE_FWD_ITERATOR 0
32747_ACEOF
32748
John Criswell7a73b802003-06-30 21:59:07 +000032749fi
32750
32751
Reid Spencera773bd52006-08-04 18:18:08 +000032752{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32753echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032754if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32756else
Reid Spencera773bd52006-08-04 18:18:08 +000032757 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032758ac_cpp='$CXXCPP $CPPFLAGS'
32759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32762
Reid Spencerabec8f92004-10-27 23:03:44 +000032763 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032764/* confdefs.h. */
32765_ACEOF
32766cat confdefs.h >>conftest.$ac_ext
32767cat >>conftest.$ac_ext <<_ACEOF
32768/* end confdefs.h. */
32769#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032770int
32771main ()
32772{
32773float f; isnan(f);
32774 ;
32775 return 0;
32776}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032777_ACEOF
32778rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032779if { (ac_try="$ac_compile"
32780case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32783esac
32784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032786 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032787 grep -v '^ *+' conftest.er1 >conftest.err
32788 rm -f conftest.er1
32789 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32793 { (case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32796esac
32797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032799 ac_status=$?
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; } &&
32802 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032803 { (case "(($ac_try" in
32804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805 *) ac_try_echo=$ac_try;;
32806esac
32807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032809 ac_status=$?
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); }; }; then
32812 ac_cv_func_isnan_in_math_h=yes
32813else
32814 echo "$as_me: failed program was:" >&5
32815sed 's/^/| /' conftest.$ac_ext >&5
32816
Reid Spencera773bd52006-08-04 18:18:08 +000032817 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032818fi
Reid Spencera773bd52006-08-04 18:18:08 +000032819
32820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032821 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032822ac_cpp='$CPP $CPPFLAGS'
32823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32825ac_compiler_gnu=$ac_cv_c_compiler_gnu
32826
32827fi
Reid Spencera773bd52006-08-04 18:18:08 +000032828{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32829echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032830
32831
32832if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032833
32834cat >>confdefs.h <<\_ACEOF
32835#define HAVE_ISNAN_IN_MATH_H 1
32836_ACEOF
32837
Reid Spencerabec8f92004-10-27 23:03:44 +000032838fi
32839
Reid Spencera773bd52006-08-04 18:18:08 +000032840{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32841echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032842if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32843 echo $ECHO_N "(cached) $ECHO_C" >&6
32844else
Reid Spencera773bd52006-08-04 18:18:08 +000032845 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032846ac_cpp='$CXXCPP $CPPFLAGS'
32847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32850
Reid Spencerabec8f92004-10-27 23:03:44 +000032851 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032852/* confdefs.h. */
32853_ACEOF
32854cat confdefs.h >>conftest.$ac_ext
32855cat >>conftest.$ac_ext <<_ACEOF
32856/* end confdefs.h. */
32857#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032858int
32859main ()
32860{
32861float f; isnan(f);
32862 ;
32863 return 0;
32864}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032865_ACEOF
32866rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032867if { (ac_try="$ac_compile"
32868case "(($ac_try" in
32869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870 *) ac_try_echo=$ac_try;;
32871esac
32872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032874 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032875 grep -v '^ *+' conftest.er1 >conftest.err
32876 rm -f conftest.er1
32877 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32881 { (case "(($ac_try" in
32882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32883 *) ac_try_echo=$ac_try;;
32884esac
32885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32886 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032887 ac_status=$?
32888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889 (exit $ac_status); }; } &&
32890 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032891 { (case "(($ac_try" in
32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893 *) ac_try_echo=$ac_try;;
32894esac
32895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032897 ac_status=$?
32898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32899 (exit $ac_status); }; }; then
32900 ac_cv_func_isnan_in_cmath=yes
32901else
32902 echo "$as_me: failed program was:" >&5
32903sed 's/^/| /' conftest.$ac_ext >&5
32904
Reid Spencera773bd52006-08-04 18:18:08 +000032905 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032906fi
Reid Spencera773bd52006-08-04 18:18:08 +000032907
32908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032909 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032910ac_cpp='$CPP $CPPFLAGS'
32911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32913ac_compiler_gnu=$ac_cv_c_compiler_gnu
32914
32915fi
Reid Spencera773bd52006-08-04 18:18:08 +000032916{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32917echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032918
32919if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032920
32921cat >>confdefs.h <<\_ACEOF
32922#define HAVE_ISNAN_IN_CMATH 1
32923_ACEOF
32924
Reid Spencerabec8f92004-10-27 23:03:44 +000032925fi
32926
Reid Spencera773bd52006-08-04 18:18:08 +000032927{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32928echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032929if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32930 echo $ECHO_N "(cached) $ECHO_C" >&6
32931else
Reid Spencera773bd52006-08-04 18:18:08 +000032932 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032933ac_cpp='$CXXCPP $CPPFLAGS'
32934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32937
Reid Spencerabec8f92004-10-27 23:03:44 +000032938 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032939/* confdefs.h. */
32940_ACEOF
32941cat confdefs.h >>conftest.$ac_ext
32942cat >>conftest.$ac_ext <<_ACEOF
32943/* end confdefs.h. */
32944#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032945int
32946main ()
32947{
32948float f; std::isnan(f);
32949 ;
32950 return 0;
32951}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032952_ACEOF
32953rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032954if { (ac_try="$ac_compile"
32955case "(($ac_try" in
32956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957 *) ac_try_echo=$ac_try;;
32958esac
32959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032961 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032962 grep -v '^ *+' conftest.er1 >conftest.err
32963 rm -f conftest.er1
32964 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32968 { (case "(($ac_try" in
32969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32970 *) ac_try_echo=$ac_try;;
32971esac
32972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32973 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032974 ac_status=$?
32975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976 (exit $ac_status); }; } &&
32977 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032978 { (case "(($ac_try" in
32979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980 *) ac_try_echo=$ac_try;;
32981esac
32982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032984 ac_status=$?
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); }; }; then
32987 ac_cv_func_std_isnan_in_cmath=yes
32988else
32989 echo "$as_me: failed program was:" >&5
32990sed 's/^/| /' conftest.$ac_ext >&5
32991
Reid Spencera773bd52006-08-04 18:18:08 +000032992 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032993fi
Reid Spencera773bd52006-08-04 18:18:08 +000032994
32995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032996 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032997ac_cpp='$CPP $CPPFLAGS'
32998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33000ac_compiler_gnu=$ac_cv_c_compiler_gnu
33001
33002fi
Reid Spencera773bd52006-08-04 18:18:08 +000033003{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33004echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033005
33006if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033007
33008cat >>confdefs.h <<\_ACEOF
33009#define HAVE_STD_ISNAN_IN_CMATH 1
33010_ACEOF
33011
Reid Spencerabec8f92004-10-27 23:03:44 +000033012fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033013
33014
Reid Spencera773bd52006-08-04 18:18:08 +000033015{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33016echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033017if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33018 echo $ECHO_N "(cached) $ECHO_C" >&6
33019else
Reid Spencera773bd52006-08-04 18:18:08 +000033020 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033021ac_cpp='$CXXCPP $CPPFLAGS'
33022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33025
Reid Spencerabec8f92004-10-27 23:03:44 +000033026 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033027/* confdefs.h. */
33028_ACEOF
33029cat confdefs.h >>conftest.$ac_ext
33030cat >>conftest.$ac_ext <<_ACEOF
33031/* end confdefs.h. */
33032#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033033int
33034main ()
33035{
33036float f; isinf(f);
33037 ;
33038 return 0;
33039}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033040_ACEOF
33041rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033042if { (ac_try="$ac_compile"
33043case "(($ac_try" in
33044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33045 *) ac_try_echo=$ac_try;;
33046esac
33047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33048 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033049 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033050 grep -v '^ *+' conftest.er1 >conftest.err
33051 rm -f conftest.er1
33052 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33056 { (case "(($ac_try" in
33057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33058 *) ac_try_echo=$ac_try;;
33059esac
33060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33061 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033062 ac_status=$?
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); }; } &&
33065 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033066 { (case "(($ac_try" in
33067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068 *) ac_try_echo=$ac_try;;
33069esac
33070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033072 ac_status=$?
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); }; }; then
33075 ac_cv_func_isinf_in_math_h=yes
33076else
33077 echo "$as_me: failed program was:" >&5
33078sed 's/^/| /' conftest.$ac_ext >&5
33079
Reid Spencera773bd52006-08-04 18:18:08 +000033080 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033081fi
Reid Spencera773bd52006-08-04 18:18:08 +000033082
33083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033084 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033085ac_cpp='$CPP $CPPFLAGS'
33086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33088ac_compiler_gnu=$ac_cv_c_compiler_gnu
33089
33090fi
Reid Spencera773bd52006-08-04 18:18:08 +000033091{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33092echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033093
33094if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033095
33096cat >>confdefs.h <<\_ACEOF
33097#define HAVE_ISINF_IN_MATH_H 1
33098_ACEOF
33099
Reid Spencerabec8f92004-10-27 23:03:44 +000033100fi
33101
Reid Spencera773bd52006-08-04 18:18:08 +000033102{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33103echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033104if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33105 echo $ECHO_N "(cached) $ECHO_C" >&6
33106else
Reid Spencera773bd52006-08-04 18:18:08 +000033107 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033108ac_cpp='$CXXCPP $CPPFLAGS'
33109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33112
Reid Spencerabec8f92004-10-27 23:03:44 +000033113 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033114/* confdefs.h. */
33115_ACEOF
33116cat confdefs.h >>conftest.$ac_ext
33117cat >>conftest.$ac_ext <<_ACEOF
33118/* end confdefs.h. */
33119#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033120int
33121main ()
33122{
33123float f; isinf(f);
33124 ;
33125 return 0;
33126}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033127_ACEOF
33128rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033129if { (ac_try="$ac_compile"
33130case "(($ac_try" in
33131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132 *) ac_try_echo=$ac_try;;
33133esac
33134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33135 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033136 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033137 grep -v '^ *+' conftest.er1 >conftest.err
33138 rm -f conftest.er1
33139 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33143 { (case "(($ac_try" in
33144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33145 *) ac_try_echo=$ac_try;;
33146esac
33147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33148 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033149 ac_status=$?
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); }; } &&
33152 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033153 { (case "(($ac_try" in
33154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155 *) ac_try_echo=$ac_try;;
33156esac
33157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033159 ac_status=$?
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; }; then
33162 ac_cv_func_isinf_in_cmath=yes
33163else
33164 echo "$as_me: failed program was:" >&5
33165sed 's/^/| /' conftest.$ac_ext >&5
33166
Reid Spencera773bd52006-08-04 18:18:08 +000033167 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033168fi
Reid Spencera773bd52006-08-04 18:18:08 +000033169
33170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033171 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033172ac_cpp='$CPP $CPPFLAGS'
33173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33175ac_compiler_gnu=$ac_cv_c_compiler_gnu
33176
33177fi
Reid Spencera773bd52006-08-04 18:18:08 +000033178{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33179echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033180
33181if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033182
33183cat >>confdefs.h <<\_ACEOF
33184#define HAVE_ISINF_IN_CMATH 1
33185_ACEOF
33186
Reid Spencerabec8f92004-10-27 23:03:44 +000033187fi
33188
Reid Spencera773bd52006-08-04 18:18:08 +000033189{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33190echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033191if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33192 echo $ECHO_N "(cached) $ECHO_C" >&6
33193else
Reid Spencera773bd52006-08-04 18:18:08 +000033194 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033195ac_cpp='$CXXCPP $CPPFLAGS'
33196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33199
Reid Spencerabec8f92004-10-27 23:03:44 +000033200 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033201/* confdefs.h. */
33202_ACEOF
33203cat confdefs.h >>conftest.$ac_ext
33204cat >>conftest.$ac_ext <<_ACEOF
33205/* end confdefs.h. */
33206#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033207int
33208main ()
33209{
33210float f; std::isinf(f)}
33211 ;
33212 return 0;
33213}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033214_ACEOF
33215rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033216if { (ac_try="$ac_compile"
33217case "(($ac_try" in
33218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219 *) ac_try_echo=$ac_try;;
33220esac
33221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33222 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033223 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033224 grep -v '^ *+' conftest.er1 >conftest.err
33225 rm -f conftest.er1
33226 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33230 { (case "(($ac_try" in
33231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232 *) ac_try_echo=$ac_try;;
33233esac
33234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033236 ac_status=$?
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); }; } &&
33239 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033240 { (case "(($ac_try" in
33241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33242 *) ac_try_echo=$ac_try;;
33243esac
33244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33245 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033246 ac_status=$?
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); }; }; then
33249 ac_cv_func_std_isinf_in_cmath=yes
33250else
33251 echo "$as_me: failed program was:" >&5
33252sed 's/^/| /' conftest.$ac_ext >&5
33253
Reid Spencera773bd52006-08-04 18:18:08 +000033254 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033255fi
Reid Spencera773bd52006-08-04 18:18:08 +000033256
33257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033258 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033259ac_cpp='$CPP $CPPFLAGS'
33260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33262ac_compiler_gnu=$ac_cv_c_compiler_gnu
33263
33264fi
Reid Spencera773bd52006-08-04 18:18:08 +000033265{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33266echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033267
33268if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033269
33270cat >>confdefs.h <<\_ACEOF
33271#define HAVE_STD_ISINF_IN_CMATH 1
33272_ACEOF
33273
Reid Spencerabec8f92004-10-27 23:03:44 +000033274fi
33275
Reid Spencera773bd52006-08-04 18:18:08 +000033276{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33277echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033278if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33279 echo $ECHO_N "(cached) $ECHO_C" >&6
33280else
Reid Spencera773bd52006-08-04 18:18:08 +000033281 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033282ac_cpp='$CXXCPP $CPPFLAGS'
33283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33286
Reid Spencerabec8f92004-10-27 23:03:44 +000033287 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033288/* confdefs.h. */
33289_ACEOF
33290cat confdefs.h >>conftest.$ac_ext
33291cat >>conftest.$ac_ext <<_ACEOF
33292/* end confdefs.h. */
33293#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033294int
33295main ()
33296{
33297float f; finite(f);
33298 ;
33299 return 0;
33300}
Brian Gaeked59a6472004-07-21 03:33:58 +000033301_ACEOF
33302rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033303if { (ac_try="$ac_compile"
33304case "(($ac_try" in
33305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33306 *) ac_try_echo=$ac_try;;
33307esac
33308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033310 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033311 grep -v '^ *+' conftest.er1 >conftest.err
33312 rm -f conftest.er1
33313 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33317 { (case "(($ac_try" in
33318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33319 *) ac_try_echo=$ac_try;;
33320esac
33321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33322 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033323 ac_status=$?
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); }; } &&
33326 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033327 { (case "(($ac_try" in
33328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33329 *) ac_try_echo=$ac_try;;
33330esac
33331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33332 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033333 ac_status=$?
33334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33335 (exit $ac_status); }; }; then
33336 ac_cv_func_finite_in_ieeefp_h=yes
33337else
33338 echo "$as_me: failed program was:" >&5
33339sed 's/^/| /' conftest.$ac_ext >&5
33340
Reid Spencera773bd52006-08-04 18:18:08 +000033341 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033342fi
Reid Spencera773bd52006-08-04 18:18:08 +000033343
33344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033345 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033346ac_cpp='$CPP $CPPFLAGS'
33347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33349ac_compiler_gnu=$ac_cv_c_compiler_gnu
33350
33351fi
Reid Spencera773bd52006-08-04 18:18:08 +000033352{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33353echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033354
Brian Gaeke6802b552004-10-28 05:06:45 +000033355if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033356
33357cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033358#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033359_ACEOF
33360
Reid Spencerabec8f92004-10-27 23:03:44 +000033361fi
33362
33363
33364
Reid Spencer30fe5262007-01-20 07:48:49 +000033365if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033366
33367
33368for ac_header in stdlib.h unistd.h
33369do
33370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033375 echo $ECHO_N "(cached) $ECHO_C" >&6
33376fi
Reid Spencera773bd52006-08-04 18:18:08 +000033377ac_res=`eval echo '${'$as_ac_Header'}'`
33378 { echo "$as_me:$LINENO: result: $ac_res" >&5
33379echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033380else
33381 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033382{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033384cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033385/* confdefs.h. */
33386_ACEOF
33387cat confdefs.h >>conftest.$ac_ext
33388cat >>conftest.$ac_ext <<_ACEOF
33389/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033390$ac_includes_default
33391#include <$ac_header>
33392_ACEOF
33393rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033394if { (ac_try="$ac_compile"
33395case "(($ac_try" in
33396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397 *) ac_try_echo=$ac_try;;
33398esac
33399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033401 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033402 grep -v '^ *+' conftest.er1 >conftest.err
33403 rm -f conftest.er1
33404 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33408 { (case "(($ac_try" in
33409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410 *) ac_try_echo=$ac_try;;
33411esac
33412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033414 ac_status=$?
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); }; } &&
33417 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033418 { (case "(($ac_try" in
33419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420 *) ac_try_echo=$ac_try;;
33421esac
33422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033424 ac_status=$?
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); }; }; then
33427 ac_header_compiler=yes
33428else
33429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033430sed 's/^/| /' conftest.$ac_ext >&5
33431
Reid Spencera773bd52006-08-04 18:18:08 +000033432 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033433fi
Reid Spencera773bd52006-08-04 18:18:08 +000033434
33435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33436{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33437echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033438
33439# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033440{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033442cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033443/* confdefs.h. */
33444_ACEOF
33445cat confdefs.h >>conftest.$ac_ext
33446cat >>conftest.$ac_ext <<_ACEOF
33447/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033448#include <$ac_header>
33449_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033450if { (ac_try="$ac_cpp conftest.$ac_ext"
33451case "(($ac_try" in
33452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33453 *) ac_try_echo=$ac_try;;
33454esac
33455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033457 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033458 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033459 rm -f conftest.er1
33460 cat conftest.err >&5
33461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462 (exit $ac_status); } >/dev/null; then
33463 if test -s conftest.err; then
33464 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000033465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000033466 else
33467 ac_cpp_err=
33468 fi
33469else
33470 ac_cpp_err=yes
33471fi
33472if test -z "$ac_cpp_err"; then
33473 ac_header_preproc=yes
33474else
33475 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033476sed 's/^/| /' conftest.$ac_ext >&5
33477
John Criswell7a73b802003-06-30 21:59:07 +000033478 ac_header_preproc=no
33479fi
Reid Spencera773bd52006-08-04 18:18:08 +000033480
John Criswell7a73b802003-06-30 21:59:07 +000033481rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033482{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33483echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033484
33485# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33487 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33489echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33491echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33492 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033493 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033494 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33500echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33502echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33504echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33506echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033507 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033508## ----------------------------------- ##
33509## Report this to llvmbugs@cs.uiuc.edu ##
33510## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033511_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033512 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033513 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033514esac
Reid Spencera773bd52006-08-04 18:18:08 +000033515{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033518 echo $ECHO_N "(cached) $ECHO_C" >&6
33519else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033520 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033521fi
Reid Spencera773bd52006-08-04 18:18:08 +000033522ac_res=`eval echo '${'$as_ac_Header'}'`
33523 { echo "$as_me:$LINENO: result: $ac_res" >&5
33524echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033525
33526fi
33527if test `eval echo '${'$as_ac_Header'}'` = yes; then
33528 cat >>confdefs.h <<_ACEOF
33529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33530_ACEOF
33531
33532fi
33533
33534done
33535
33536
33537for ac_func in getpagesize
33538do
33539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033540{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33542if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033543 echo $ECHO_N "(cached) $ECHO_C" >&6
33544else
33545 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033546/* confdefs.h. */
33547_ACEOF
33548cat confdefs.h >>conftest.$ac_ext
33549cat >>conftest.$ac_ext <<_ACEOF
33550/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033551/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33553#define $ac_func innocuous_$ac_func
33554
John Criswell7a73b802003-06-30 21:59:07 +000033555/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033556 which can conflict with char $ac_func (); below.
33557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33558 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033559
John Criswell0c38eaf2003-09-10 15:17:25 +000033560#ifdef __STDC__
33561# include <limits.h>
33562#else
33563# include <assert.h>
33564#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033565
33566#undef $ac_func
33567
Reid Spencera773bd52006-08-04 18:18:08 +000033568/* Override any GCC internal prototype to avoid an error.
33569 Use char because int might match the return type of a GCC
33570 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033571#ifdef __cplusplus
33572extern "C"
33573#endif
John Criswell7a73b802003-06-30 21:59:07 +000033574char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033575/* The GNU C library defines this for functions which it implements
33576 to always fail with ENOSYS. Some functions are actually named
33577 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033578#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033579choke me
John Criswell7a73b802003-06-30 21:59:07 +000033580#endif
33581
John Criswell0c38eaf2003-09-10 15:17:25 +000033582int
33583main ()
33584{
Reid Spencera773bd52006-08-04 18:18:08 +000033585return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033586 ;
33587 return 0;
33588}
33589_ACEOF
33590rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033591if { (ac_try="$ac_link"
33592case "(($ac_try" in
33593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33594 *) ac_try_echo=$ac_try;;
33595esac
33596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33597 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033598 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033599 grep -v '^ *+' conftest.er1 >conftest.err
33600 rm -f conftest.er1
33601 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33605 { (case "(($ac_try" in
33606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33607 *) ac_try_echo=$ac_try;;
33608esac
33609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33610 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033611 ac_status=$?
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; } &&
33614 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033615 { (case "(($ac_try" in
33616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33617 *) ac_try_echo=$ac_try;;
33618esac
33619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33620 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033621 ac_status=$?
33622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 (exit $ac_status); }; }; then
33624 eval "$as_ac_var=yes"
33625else
33626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033627sed 's/^/| /' conftest.$ac_ext >&5
33628
Reid Spencera773bd52006-08-04 18:18:08 +000033629 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033630fi
Reid Spencera773bd52006-08-04 18:18:08 +000033631
33632rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033633 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033634fi
Reid Spencera773bd52006-08-04 18:18:08 +000033635ac_res=`eval echo '${'$as_ac_var'}'`
33636 { echo "$as_me:$LINENO: result: $ac_res" >&5
33637echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033638if test `eval echo '${'$as_ac_var'}'` = yes; then
33639 cat >>confdefs.h <<_ACEOF
33640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33641_ACEOF
33642
33643fi
33644done
33645
Reid Spencera773bd52006-08-04 18:18:08 +000033646{ echo "$as_me:$LINENO: checking for working mmap" >&5
33647echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033648if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33649 echo $ECHO_N "(cached) $ECHO_C" >&6
33650else
33651 if test "$cross_compiling" = yes; then
33652 ac_cv_func_mmap_fixed_mapped=no
33653else
33654 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033655/* confdefs.h. */
33656_ACEOF
33657cat confdefs.h >>conftest.$ac_ext
33658cat >>conftest.$ac_ext <<_ACEOF
33659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033660$ac_includes_default
33661/* malloc might have been renamed as rpl_malloc. */
33662#undef malloc
33663
33664/* Thanks to Mike Haertel and Jim Avera for this test.
33665 Here is a matrix of mmap possibilities:
33666 mmap private not fixed
33667 mmap private fixed at somewhere currently unmapped
33668 mmap private fixed at somewhere already mapped
33669 mmap shared not fixed
33670 mmap shared fixed at somewhere currently unmapped
33671 mmap shared fixed at somewhere already mapped
33672 For private mappings, we should verify that changes cannot be read()
33673 back from the file, nor mmap's back from the file at a different
33674 address. (There have been systems where private was not correctly
33675 implemented like the infamous i386 svr4.0, and systems where the
33676 VM page cache was not coherent with the file system buffer cache
33677 like early versions of FreeBSD and possibly contemporary NetBSD.)
33678 For shared mappings, we should conversely verify that changes get
33679 propagated back to all the places they're supposed to be.
33680
33681 Grep wants private fixed already mapped.
33682 The main things grep needs to know about mmap are:
33683 * does it exist and is it safe to write into the mmap'd area
33684 * how to use it (BSD variants) */
33685
33686#include <fcntl.h>
33687#include <sys/mman.h>
33688
33689#if !STDC_HEADERS && !HAVE_STDLIB_H
33690char *malloc ();
33691#endif
33692
33693/* This mess was copied from the GNU getpagesize.h. */
33694#if !HAVE_GETPAGESIZE
33695/* Assume that all systems that can run configure have sys/param.h. */
33696# if !HAVE_SYS_PARAM_H
33697# define HAVE_SYS_PARAM_H 1
33698# endif
33699
33700# ifdef _SC_PAGESIZE
33701# define getpagesize() sysconf(_SC_PAGESIZE)
33702# else /* no _SC_PAGESIZE */
33703# if HAVE_SYS_PARAM_H
33704# include <sys/param.h>
33705# ifdef EXEC_PAGESIZE
33706# define getpagesize() EXEC_PAGESIZE
33707# else /* no EXEC_PAGESIZE */
33708# ifdef NBPG
33709# define getpagesize() NBPG * CLSIZE
33710# ifndef CLSIZE
33711# define CLSIZE 1
33712# endif /* no CLSIZE */
33713# else /* no NBPG */
33714# ifdef NBPC
33715# define getpagesize() NBPC
33716# else /* no NBPC */
33717# ifdef PAGESIZE
33718# define getpagesize() PAGESIZE
33719# endif /* PAGESIZE */
33720# endif /* no NBPC */
33721# endif /* no NBPG */
33722# endif /* no EXEC_PAGESIZE */
33723# else /* no HAVE_SYS_PARAM_H */
33724# define getpagesize() 8192 /* punt totally */
33725# endif /* no HAVE_SYS_PARAM_H */
33726# endif /* no _SC_PAGESIZE */
33727
33728#endif /* no HAVE_GETPAGESIZE */
33729
33730int
33731main ()
33732{
33733 char *data, *data2, *data3;
33734 int i, pagesize;
33735 int fd;
33736
33737 pagesize = getpagesize ();
33738
33739 /* First, make a file with some known garbage in it. */
33740 data = (char *) malloc (pagesize);
33741 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033742 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033743 for (i = 0; i < pagesize; ++i)
33744 *(data + i) = rand ();
33745 umask (0);
33746 fd = creat ("conftest.mmap", 0600);
33747 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033748 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033749 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033750 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033751 close (fd);
33752
33753 /* Next, try to mmap the file at a fixed address which already has
33754 something else allocated at it. If we can, also make sure that
33755 we see the same garbage. */
33756 fd = open ("conftest.mmap", O_RDWR);
33757 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033758 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033759 data2 = (char *) malloc (2 * pagesize);
33760 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033761 return 1;
33762 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033763 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033764 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033765 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033766 for (i = 0; i < pagesize; ++i)
33767 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033768 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033769
33770 /* Finally, make sure that changes to the mapped area do not
33771 percolate back to the file as seen by read(). (This is a bug on
33772 some variants of i386 svr4.0.) */
33773 for (i = 0; i < pagesize; ++i)
33774 *(data2 + i) = *(data2 + i) + 1;
33775 data3 = (char *) malloc (pagesize);
33776 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033777 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033778 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033779 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033780 for (i = 0; i < pagesize; ++i)
33781 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033782 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033783 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033784 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033785}
33786_ACEOF
33787rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033788if { (ac_try="$ac_link"
33789case "(($ac_try" in
33790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33791 *) ac_try_echo=$ac_try;;
33792esac
33793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33794 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033795 ac_status=$?
33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033798 { (case "(($ac_try" in
33799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33800 *) ac_try_echo=$ac_try;;
33801esac
33802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33803 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033804 ac_status=$?
33805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33806 (exit $ac_status); }; }; then
33807 ac_cv_func_mmap_fixed_mapped=yes
33808else
33809 echo "$as_me: program exited with status $ac_status" >&5
33810echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033811sed 's/^/| /' conftest.$ac_ext >&5
33812
John Criswell7a73b802003-06-30 21:59:07 +000033813( exit $ac_status )
33814ac_cv_func_mmap_fixed_mapped=no
33815fi
Reid Spencera773bd52006-08-04 18:18:08 +000033816rm -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 +000033817fi
Reid Spencera773bd52006-08-04 18:18:08 +000033818
33819
John Criswell7a73b802003-06-30 21:59:07 +000033820fi
Reid Spencera773bd52006-08-04 18:18:08 +000033821{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33822echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033823if test $ac_cv_func_mmap_fixed_mapped = yes; then
33824
33825cat >>confdefs.h <<\_ACEOF
33826#define HAVE_MMAP 1
33827_ACEOF
33828
33829fi
33830rm -f conftest.mmap
33831
Reid Spencer30fe5262007-01-20 07:48:49 +000033832 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033833echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033834if test "${ac_cv_func_mmap_file+set}" = set; then
33835 echo $ECHO_N "(cached) $ECHO_C" >&6
33836else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033837 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033838ac_cpp='$CPP $CPPFLAGS'
33839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33841ac_compiler_gnu=$ac_cv_c_compiler_gnu
33842
33843 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033844 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033845else
33846 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033847
Reid Spencer777ce172004-09-20 04:09:56 +000033848 /* confdefs.h. */
33849_ACEOF
33850cat confdefs.h >>conftest.$ac_ext
33851cat >>conftest.$ac_ext <<_ACEOF
33852/* end confdefs.h. */
33853
John Criswell7a73b802003-06-30 21:59:07 +000033854#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033855#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033856#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033857
33858int
33859main ()
33860{
John Criswell7a73b802003-06-30 21:59:07 +000033861
33862 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033863 fd = creat ("foo",0777);
33864 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33865 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033866 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033867 ;
33868 return 0;
33869}
John Criswell7a73b802003-06-30 21:59:07 +000033870_ACEOF
33871rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033872if { (ac_try="$ac_link"
33873case "(($ac_try" in
33874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33875 *) ac_try_echo=$ac_try;;
33876esac
33877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33878 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033879 ac_status=$?
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033882 { (case "(($ac_try" in
33883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884 *) ac_try_echo=$ac_try;;
33885esac
33886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33887 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033888 ac_status=$?
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); }; }; then
33891 ac_cv_func_mmap_file=yes
33892else
33893 echo "$as_me: program exited with status $ac_status" >&5
33894echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033895sed 's/^/| /' conftest.$ac_ext >&5
33896
John Criswell7a73b802003-06-30 21:59:07 +000033897( exit $ac_status )
33898ac_cv_func_mmap_file=no
33899fi
Reid Spencera773bd52006-08-04 18:18:08 +000033900rm -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 +000033901fi
Reid Spencera773bd52006-08-04 18:18:08 +000033902
33903
John Criswell7a73b802003-06-30 21:59:07 +000033904 ac_ext=c
33905ac_cpp='$CPP $CPPFLAGS'
33906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33908ac_compiler_gnu=$ac_cv_c_compiler_gnu
33909
33910
33911fi
Reid Spencera773bd52006-08-04 18:18:08 +000033912{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33913echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033914if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033915
33916cat >>confdefs.h <<\_ACEOF
33917#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033918_ACEOF
33919
33920 MMAP_FILE=yes
33921
33922fi
33923
Reid Spencer30fe5262007-01-20 07:48:49 +000033924 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033925echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033926if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33927 echo $ECHO_N "(cached) $ECHO_C" >&6
33928else
Reid Spencer582a23c2004-12-29 07:07:57 +000033929 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033930 ac_cv_need_dev_zero_for_mmap=yes
33931 else
33932 ac_cv_need_dev_zero_for_mmap=no
33933 fi
33934
33935fi
Reid Spencera773bd52006-08-04 18:18:08 +000033936{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33937echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033938if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33939
33940cat >>confdefs.h <<\_ACEOF
33941#define NEED_DEV_ZERO_FOR_MMAP 1
33942_ACEOF
33943
33944fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033945
Reid Spencer30fe5262007-01-20 07:48:49 +000033946 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33947 then
33948 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033949echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033950 fi
33951 if test "$ac_cv_func_mmap_file" = "no"
33952 then
33953 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033954echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033955 fi
John Criswellb13092b2003-07-22 21:00:24 +000033956fi
John Criswell7a73b802003-06-30 21:59:07 +000033957
33958
Reid Spencer9372f152007-07-30 20:13:24 +000033959
33960for ac_func in __dso_handle
33961do
33962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33963{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33965if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33967else
33968 cat >conftest.$ac_ext <<_ACEOF
33969/* confdefs.h. */
33970_ACEOF
33971cat confdefs.h >>conftest.$ac_ext
33972cat >>conftest.$ac_ext <<_ACEOF
33973/* end confdefs.h. */
33974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33976#define $ac_func innocuous_$ac_func
33977
33978/* System header to define __stub macros and hopefully few prototypes,
33979 which can conflict with char $ac_func (); below.
33980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33981 <limits.h> exists even on freestanding compilers. */
33982
33983#ifdef __STDC__
33984# include <limits.h>
33985#else
33986# include <assert.h>
33987#endif
33988
33989#undef $ac_func
33990
33991/* Override any GCC internal prototype to avoid an error.
33992 Use char because int might match the return type of a GCC
33993 builtin and then its argument prototype would still apply. */
33994#ifdef __cplusplus
33995extern "C"
33996#endif
33997char $ac_func ();
33998/* The GNU C library defines this for functions which it implements
33999 to always fail with ENOSYS. Some functions are actually named
34000 something starting with __ and the normal name is an alias. */
34001#if defined __stub_$ac_func || defined __stub___$ac_func
34002choke me
34003#endif
34004
34005int
34006main ()
34007{
34008return $ac_func ();
34009 ;
34010 return 0;
34011}
34012_ACEOF
34013rm -f conftest.$ac_objext conftest$ac_exeext
34014if { (ac_try="$ac_link"
34015case "(($ac_try" in
34016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34017 *) ac_try_echo=$ac_try;;
34018esac
34019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34020 (eval "$ac_link") 2>conftest.er1
34021 ac_status=$?
34022 grep -v '^ *+' conftest.er1 >conftest.err
34023 rm -f conftest.er1
34024 cat conftest.err >&5
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); } &&
34027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34028 { (case "(($ac_try" in
34029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030 *) ac_try_echo=$ac_try;;
34031esac
34032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033 (eval "$ac_try") 2>&5
34034 ac_status=$?
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); }; } &&
34037 { ac_try='test -s conftest$ac_exeext'
34038 { (case "(($ac_try" in
34039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34040 *) ac_try_echo=$ac_try;;
34041esac
34042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34043 (eval "$ac_try") 2>&5
34044 ac_status=$?
34045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046 (exit $ac_status); }; }; then
34047 eval "$as_ac_var=yes"
34048else
34049 echo "$as_me: failed program was:" >&5
34050sed 's/^/| /' conftest.$ac_ext >&5
34051
34052 eval "$as_ac_var=no"
34053fi
34054
34055rm -f core conftest.err conftest.$ac_objext \
34056 conftest$ac_exeext conftest.$ac_ext
34057fi
34058ac_res=`eval echo '${'$as_ac_var'}'`
34059 { echo "$as_me:$LINENO: result: $ac_res" >&5
34060echo "${ECHO_T}$ac_res" >&6; }
34061if test `eval echo '${'$as_ac_var'}'` = yes; then
34062 cat >>confdefs.h <<_ACEOF
34063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34064_ACEOF
34065
34066fi
34067done
34068
34069
Reid Spencera773bd52006-08-04 18:18:08 +000034070{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34071echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034072if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34073 echo $ECHO_N "(cached) $ECHO_C" >&6
34074else
34075 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034076if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034077 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034078 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34079 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034080 if test $? -eq 0 ; then
34081 llvm_cv_llvmgcc_sanity="yes"
34082 fi
34083 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034084fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034085fi
Reid Spencera773bd52006-08-04 18:18:08 +000034086{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34087echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034088
34089if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034090 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34091echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034092 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034093 LLVMCC1=$llvmcc1path
34094
Reid Spencer502935f2004-12-22 05:56:56 +000034095 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034096 LLVMCC1PLUS=$llvmcc1pluspath
34097
Reid Spencer502935f2004-12-22 05:56:56 +000034098 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34099 LLVMGCCDIR=$llvmgccdir
34100
Reid Spencer282d8c12006-12-21 22:55:41 +000034101 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34102 LLVMGCCLIBEXEC=$llvmgcclibexec
34103
Reid Spencerb5d75b82006-05-09 00:31:01 +000034104 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034105 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34106 LLVMGCC_VERSION=$llvmgccversion
34107
34108 LLVMGCC_MAJVERS=$llvmgccmajvers
34109
Reid Spencer0d238182007-04-21 21:28:52 +000034110 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34111 LLVMGCC_LANGS=$llvmgcclangs
34112
34113 { echo "$as_me:$LINENO: result: ok" >&5
34114echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034115fi
34116
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034117SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034118
34119
Reid Spencere9de0912004-08-20 09:03:57 +000034120# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034121# information into substitutions that will end up in Makefile.config.in
34122# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034123if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034124 prefix="/usr/local"
34125fi
Reid Spencere9de0912004-08-20 09:03:57 +000034126eval LLVM_PREFIX="${prefix}";
34127eval LLVM_BINDIR="${prefix}/bin";
34128eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034129eval LLVM_DATADIR="${prefix}/share/llvm";
34130eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34131eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034132eval LLVM_INCLUDEDIR="${prefix}/include";
34133eval LLVM_INFODIR="${prefix}/info";
34134eval LLVM_MANDIR="${prefix}/man";
34135LLVM_CONFIGTIME=`date`
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034147# Place the various directores into the config.h file as #defines so that we
34148# can know about the installation paths within LLVM.
34149
Reid Spencere9de0912004-08-20 09:03:57 +000034150cat >>confdefs.h <<_ACEOF
34151#define LLVM_PREFIX "$LLVM_PREFIX"
34152_ACEOF
34153
34154
34155cat >>confdefs.h <<_ACEOF
34156#define LLVM_BINDIR "$LLVM_BINDIR"
34157_ACEOF
34158
34159
34160cat >>confdefs.h <<_ACEOF
34161#define LLVM_LIBDIR "$LLVM_LIBDIR"
34162_ACEOF
34163
34164
34165cat >>confdefs.h <<_ACEOF
34166#define LLVM_DATADIR "$LLVM_DATADIR"
34167_ACEOF
34168
34169
34170cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034171#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034172_ACEOF
34173
34174
34175cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034176#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034177_ACEOF
34178
34179
34180cat >>confdefs.h <<_ACEOF
34181#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34182_ACEOF
34183
34184
34185cat >>confdefs.h <<_ACEOF
34186#define LLVM_INFODIR "$LLVM_INFODIR"
34187_ACEOF
34188
34189
34190cat >>confdefs.h <<_ACEOF
34191#define LLVM_MANDIR "$LLVM_MANDIR"
34192_ACEOF
34193
34194
34195cat >>confdefs.h <<_ACEOF
34196#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34197_ACEOF
34198
34199
Eric Christopher790e11c2007-12-01 00:34:39 +000034200cat >>confdefs.h <<_ACEOF
34201#define LLVM_HOSTTRIPLE "$host"
34202_ACEOF
34203
34204
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034205# Determine which bindings to build.
34206if test "$BINDINGS_TO_BUILD" = auto ; then
34207 BINDINGS_TO_BUILD=""
34208 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34209 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34210 fi
34211fi
34212BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34213
34214
34215# This isn't really configurey, but it avoids having to repeat the list in
34216# other files.
34217ALL_BINDINGS=ocaml
34218
34219
Gordon Henriksenf0915682007-10-02 16:42:22 +000034220# Do any work necessary to ensure that bindings have what they need.
34221binding_prereqs_failed=0
34222for a_binding in $BINDINGS_TO_BUILD ; do
34223 case "$a_binding" in
34224 ocaml)
34225 if test "x$OCAMLC" = x ; then
34226 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34227echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34228 binding_prereqs_failed=1
34229 fi
34230 if test "x$OCAMLDEP" = x ; then
34231 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34232echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34233 binding_prereqs_failed=1
34234 fi
34235 if test "x$OCAMLOPT" = x ; then
34236 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34237echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34238 fi
34239 if test "x$with_ocaml_libdir" != xauto ; then
34240 OCAML_LIBDIR=$with_ocaml_libdir
34241
34242 else
34243 ocaml_stdlib="`"$OCAMLC" -where`"
34244 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34245 then
34246 # ocaml stdlib is beneath our prefix; use stdlib
34247 OCAML_LIBDIR=$ocaml_stdlib
34248
34249 else
34250 # ocaml stdlib is outside our prefix; use libdir/ocaml
34251 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34252
34253 fi
34254 fi
34255 ;;
34256 esac
34257done
34258if test "$binding_prereqs_failed" = 1 ; then
34259 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34260echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34261 { (exit 1); exit 1; }; }
34262fi
34263
34264
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034265
Reid Spencera773bd52006-08-04 18:18:08 +000034266ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034267
Reid Spencera773bd52006-08-04 18:18:08 +000034268ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034269
Reid Spencera773bd52006-08-04 18:18:08 +000034270ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034271
Reid Spencera773bd52006-08-04 18:18:08 +000034272ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034273
Reid Spencera773bd52006-08-04 18:18:08 +000034274ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034275
34276
Reid Spencera773bd52006-08-04 18:18:08 +000034277ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034278
34279
Reid Spencerea949cf2006-08-16 00:45:38 +000034280ac_config_files="$ac_config_files llvm.spec"
34281
34282
Reid Spencera773bd52006-08-04 18:18:08 +000034283ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034284
34285
Reid Spencera773bd52006-08-04 18:18:08 +000034286ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034287
34288
Reid Spencera773bd52006-08-04 18:18:08 +000034289ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034290
Reid Spencera773bd52006-08-04 18:18:08 +000034291ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034292
34293
Reid Spencera773bd52006-08-04 18:18:08 +000034294ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034295
34296
Reid Spencera773bd52006-08-04 18:18:08 +000034297ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034298
34299
Reid Spencera773bd52006-08-04 18:18:08 +000034300ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034301
34302
Reid Spencer8b2e1412006-11-17 03:32:33 +000034303ac_config_commands="$ac_config_commands runtime/Makefile"
34304
34305
Reid Spencera773bd52006-08-04 18:18:08 +000034306ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034307
34308
Reid Spencera773bd52006-08-04 18:18:08 +000034309ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034310
34311
Reid Spencera773bd52006-08-04 18:18:08 +000034312ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034313
34314
Reid Spencera773bd52006-08-04 18:18:08 +000034315ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034316
34317
Reid Spencera773bd52006-08-04 18:18:08 +000034318ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034319
34320
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034321ac_config_commands="$ac_config_commands bindings/Makefile"
34322
34323
34324ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34325
34326
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034327
John Criswell7a73b802003-06-30 21:59:07 +000034328cat >confcache <<\_ACEOF
34329# This file is a shell script that caches the results of configure
34330# tests run on this system so they can be shared between configure
34331# scripts and configure runs, see configure's option --config-cache.
34332# It is not useful on other systems. If it contains results you don't
34333# want to keep, you may remove or edit it.
34334#
34335# config.status only pays attention to the cache file if you give it
34336# the --recheck option to rerun configure.
34337#
John Criswell0c38eaf2003-09-10 15:17:25 +000034338# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034339# loading this file, other *unset* `ac_cv_foo' will be assigned the
34340# following values.
34341
34342_ACEOF
34343
34344# The following way of writing the cache mishandles newlines in values,
34345# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034346# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034347# Ultrix sh set writes to stderr and can't be redirected directly,
34348# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034349(
34350 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34351 eval ac_val=\$$ac_var
34352 case $ac_val in #(
34353 *${as_nl}*)
34354 case $ac_var in #(
34355 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34356echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34357 esac
34358 case $ac_var in #(
34359 _ | IFS | as_nl) ;; #(
34360 *) $as_unset $ac_var ;;
34361 esac ;;
34362 esac
34363 done
34364
John Criswell7a73b802003-06-30 21:59:07 +000034365 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034366 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34367 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034368 # `set' does not quote correctly, so add quotes (double-quote
34369 # substitution turns \\\\ into \\, and sed turns \\ into \).
34370 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034371 "s/'/'\\\\''/g;
34372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034373 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034374 *)
34375 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034376 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034377 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034378 esac |
34379 sort
34380) |
John Criswell7a73b802003-06-30 21:59:07 +000034381 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034382 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034383 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034384 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34386 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034387 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34388 :end' >>confcache
34389if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34390 if test -w "$cache_file"; then
34391 test "x$cache_file" != "x/dev/null" &&
34392 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34393echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034394 cat confcache >$cache_file
34395 else
Reid Spencera773bd52006-08-04 18:18:08 +000034396 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34397echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034398 fi
34399fi
34400rm -f confcache
34401
34402test "x$prefix" = xNONE && prefix=$ac_default_prefix
34403# Let make expand exec_prefix.
34404test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34405
John Criswell7a73b802003-06-30 21:59:07 +000034406DEFS=-DHAVE_CONFIG_H
34407
John Criswell0c38eaf2003-09-10 15:17:25 +000034408ac_libobjs=
34409ac_ltlibobjs=
34410for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34411 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034412 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34413 ac_i=`echo "$ac_i" | sed "$ac_script"`
34414 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34415 # will be set to the directory where LIBOBJS objects are built.
34416 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34417 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034418done
34419LIBOBJS=$ac_libobjs
34420
34421LTLIBOBJS=$ac_ltlibobjs
34422
34423
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034424if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34425 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34426Usually this means the macro was only invoked conditionally." >&5
34427echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34428Usually this means the macro was only invoked conditionally." >&2;}
34429 { (exit 1); exit 1; }; }
34430fi
34431if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34432 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34433Usually this means the macro was only invoked conditionally." >&5
34434echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34435Usually this means the macro was only invoked conditionally." >&2;}
34436 { (exit 1); exit 1; }; }
34437fi
John Criswell7a73b802003-06-30 21:59:07 +000034438
34439: ${CONFIG_STATUS=./config.status}
34440ac_clean_files_save=$ac_clean_files
34441ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34442{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34443echo "$as_me: creating $CONFIG_STATUS" >&6;}
34444cat >$CONFIG_STATUS <<_ACEOF
34445#! $SHELL
34446# Generated by $as_me.
34447# Run this file to recreate the current configuration.
34448# Compiler output produced by configure, useful for debugging
34449# configure, is in config.log if it exists.
34450
34451debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034452ac_cs_recheck=false
34453ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034454SHELL=\${CONFIG_SHELL-$SHELL}
34455_ACEOF
34456
34457cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034458## --------------------- ##
34459## M4sh Initialization. ##
34460## --------------------- ##
34461
34462# Be Bourne compatible
34463if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34464 emulate sh
34465 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034466 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34467 # is contrary to our usage. Disable this feature.
34468 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034469 setopt NO_GLOB_SUBST
34470else
34471 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034472fi
Reid Spencera773bd52006-08-04 18:18:08 +000034473BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000034474DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034475
John Criswell7a73b802003-06-30 21:59:07 +000034476
Reid Spencera773bd52006-08-04 18:18:08 +000034477# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034478# Avoid depending upon Character Ranges.
34479as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34481as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34482as_cr_digits='0123456789'
34483as_cr_alnum=$as_cr_Letters$as_cr_digits
34484
34485# The user is always right.
34486if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034487 echo "#! /bin/sh" >conf$$.sh
34488 echo "exit 0" >>conf$$.sh
34489 chmod +x conf$$.sh
34490 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034491 PATH_SEPARATOR=';'
34492 else
34493 PATH_SEPARATOR=:
34494 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034495 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034496fi
34497
Reid Spencera773bd52006-08-04 18:18:08 +000034498# Support unset when possible.
34499if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34500 as_unset=unset
34501else
34502 as_unset=false
34503fi
John Criswell7a73b802003-06-30 21:59:07 +000034504
Reid Spencera773bd52006-08-04 18:18:08 +000034505
34506# IFS
34507# We need space, tab and new line, in precisely that order. Quoting is
34508# there to prevent editors from complaining about space-tab.
34509# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34510# splitting by setting IFS to empty value.)
34511as_nl='
34512'
34513IFS=" "" $as_nl"
34514
34515# Find who we are. Look in the path if we contain no directory separator.
34516case $0 in
34517 *[\\/]* ) as_myself=$0 ;;
34518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034519for as_dir in $PATH
34520do
34521 IFS=$as_save_IFS
34522 test -z "$as_dir" && as_dir=.
34523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34524done
Reid Spencera773bd52006-08-04 18:18:08 +000034525IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034526
Reid Spencera773bd52006-08-04 18:18:08 +000034527 ;;
34528esac
34529# We did not find ourselves, most probably we were run as `sh COMMAND'
34530# in which case we are not to be found in the path.
34531if test "x$as_myself" = x; then
34532 as_myself=$0
34533fi
34534if test ! -f "$as_myself"; then
34535 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34536 { (exit 1); exit 1; }
34537fi
34538
34539# Work around bugs in pre-3.0 UWIN ksh.
34540for as_var in ENV MAIL MAILPATH
34541do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34542done
34543PS1='$ '
34544PS2='> '
34545PS4='+ '
34546
34547# NLS nuisances.
34548for as_var in \
34549 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34550 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34551 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034552do
Reid Spencera773bd52006-08-04 18:18:08 +000034553 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34554 eval $as_var=C; export $as_var
34555 else
34556 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34557 fi
34558done
34559
34560# Required to use basename.
34561if expr a : '\(a\)' >/dev/null 2>&1 &&
34562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34563 as_expr=expr
34564else
34565 as_expr=false
34566fi
34567
34568if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34569 as_basename=basename
34570else
34571 as_basename=false
34572fi
34573
34574
34575# Name of the executable.
34576as_me=`$as_basename -- "$0" ||
34577$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34578 X"$0" : 'X\(//\)$' \| \
34579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34580echo X/"$0" |
34581 sed '/^.*\/\([^/][^/]*\)\/*$/{
34582 s//\1/
34583 q
34584 }
34585 /^X\/\(\/\/\)$/{
34586 s//\1/
34587 q
34588 }
34589 /^X\/\(\/\).*/{
34590 s//\1/
34591 q
34592 }
34593 s/.*/./; q'`
34594
34595# CDPATH.
34596$as_unset CDPATH
34597
34598
34599
John Criswell7a73b802003-06-30 21:59:07 +000034600 as_lineno_1=$LINENO
34601 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034602 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034603 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034604
34605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34606 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034607 # line-number line after each line using $LINENO; the second 'sed'
34608 # does the real work. The second script uses 'N' to pair each
34609 # line-number line with the line containing $LINENO, and appends
34610 # trailing '-' during substitution so that $LINENO is not a special
34611 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034613 # scripts with optimization help from Paolo Bonzini. Blame Lee
34614 # E. McMahon (1931-1989) for sed's syntax. :-)
34615 sed -n '
34616 p
34617 /[$]LINENO/=
34618 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034619 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034620 s/[$]LINENO.*/&-/
34621 t lineno
34622 b
34623 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034624 N
Reid Spencera773bd52006-08-04 18:18:08 +000034625 :loop
34626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034627 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034628 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034629 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034630 chmod +x "$as_me.lineno" ||
34631 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034632 { (exit 1); exit 1; }; }
34633
34634 # Don't try to exec as it changes $[0], causing all sort of problems
34635 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034636 # original and so on. Autoconf is especially sensitive to this).
34637 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034638 # Exit status is that of the last command.
34639 exit
34640}
34641
34642
Reid Spencera773bd52006-08-04 18:18:08 +000034643if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34644 as_dirname=dirname
34645else
34646 as_dirname=false
34647fi
34648
34649ECHO_C= ECHO_N= ECHO_T=
34650case `echo -n x` in
34651-n*)
34652 case `echo 'x\c'` in
34653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34654 *) ECHO_C='\c';;
34655 esac;;
34656*)
34657 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034658esac
34659
Reid Spencera773bd52006-08-04 18:18:08 +000034660if expr a : '\(a\)' >/dev/null 2>&1 &&
34661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034662 as_expr=expr
34663else
34664 as_expr=false
34665fi
34666
34667rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034668if test -d conf$$.dir; then
34669 rm -f conf$$.dir/conf$$.file
34670else
34671 rm -f conf$$.dir
34672 mkdir conf$$.dir
34673fi
John Criswell7a73b802003-06-30 21:59:07 +000034674echo >conf$$.file
34675if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034676 as_ln_s='ln -s'
34677 # ... but there are two gotchas:
34678 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34679 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34680 # In both cases, we have to default to `cp -p'.
34681 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034682 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034683elif ln conf$$.file conf$$ 2>/dev/null; then
34684 as_ln_s=ln
34685else
34686 as_ln_s='cp -p'
34687fi
Reid Spencera773bd52006-08-04 18:18:08 +000034688rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34689rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034690
John Criswell0c38eaf2003-09-10 15:17:25 +000034691if mkdir -p . 2>/dev/null; then
34692 as_mkdir_p=:
34693else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034694 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034695 as_mkdir_p=false
34696fi
34697
Reid Spencera773bd52006-08-04 18:18:08 +000034698# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34699# systems may use methods other than mode bits to determine executability.
34700cat >conf$$.file <<_ASEOF
34701#! /bin/sh
34702exit 0
34703_ASEOF
34704chmod +x conf$$.file
34705if test -x conf$$.file >/dev/null 2>&1; then
34706 as_executable_p="test -x"
34707else
34708 as_executable_p=:
34709fi
34710rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034711
34712# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034713as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034714
34715# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034716as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034717
34718
John Criswell7a73b802003-06-30 21:59:07 +000034719exec 6>&1
34720
Reid Spencera773bd52006-08-04 18:18:08 +000034721# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034722# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034723# values after options handling.
34724ac_log="
Tanya Lattner5c709542007-09-14 01:24:13 +000034725This file was extended by llvm $as_me 2.2svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +000034726generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034727
34728 CONFIG_FILES = $CONFIG_FILES
34729 CONFIG_HEADERS = $CONFIG_HEADERS
34730 CONFIG_LINKS = $CONFIG_LINKS
34731 CONFIG_COMMANDS = $CONFIG_COMMANDS
34732 $ $0 $@
34733
Reid Spencera773bd52006-08-04 18:18:08 +000034734on `(hostname || uname -n) 2>/dev/null | sed 1q`
34735"
34736
John Criswell7a73b802003-06-30 21:59:07 +000034737_ACEOF
34738
Reid Spencera773bd52006-08-04 18:18:08 +000034739cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034740# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034741config_files="$ac_config_files"
34742config_headers="$ac_config_headers"
34743config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034744
Reid Spencera773bd52006-08-04 18:18:08 +000034745_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034746
34747cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034748ac_cs_usage="\
34749\`$as_me' instantiates files from templates according to the
34750current configuration.
34751
34752Usage: $0 [OPTIONS] [FILE]...
34753
34754 -h, --help print this help, then exit
34755 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034756 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034757 -d, --debug don't remove temporary files
34758 --recheck update $as_me by reconfiguring in the same conditions
34759 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034760 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034761 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034762 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034763
34764Configuration files:
34765$config_files
34766
34767Configuration headers:
34768$config_headers
34769
John Criswellc764fbc2003-09-06 15:17:13 +000034770Configuration commands:
34771$config_commands
34772
John Criswell7a73b802003-06-30 21:59:07 +000034773Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034774
Reid Spencera773bd52006-08-04 18:18:08 +000034775_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034776cat >>$CONFIG_STATUS <<_ACEOF
34777ac_cs_version="\\
Tanya Lattner5c709542007-09-14 01:24:13 +000034778llvm config.status 2.2svn
Reid Spencera773bd52006-08-04 18:18:08 +000034779configured by $0, generated by GNU Autoconf 2.60,
34780 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034781
Reid Spencera773bd52006-08-04 18:18:08 +000034782Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034783This config.status script is free software; the Free Software Foundation
34784gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034785
34786ac_pwd='$ac_pwd'
34787srcdir='$srcdir'
34788INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034789_ACEOF
34790
34791cat >>$CONFIG_STATUS <<\_ACEOF
34792# If no file are specified by the user, then we need to provide default
34793# value. By we need to know if files were specified by the user.
34794ac_need_defaults=:
34795while test $# != 0
34796do
34797 case $1 in
34798 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034801 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034802 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034803 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034804 ac_option=$1
34805 ac_optarg=$2
34806 ac_shift=shift
34807 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034808 esac
34809
John Criswell0c38eaf2003-09-10 15:17:25 +000034810 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034811 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34813 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34815 echo "$ac_cs_version"; exit ;;
34816 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034817 debug=: ;;
34818 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034819 $ac_shift
34820 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034821 ac_need_defaults=false;;
34822 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034823 $ac_shift
34824 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034825 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034826 --he | --h)
34827 # Conflict between --help and --header
34828 { echo "$as_me: error: ambiguous option: $1
34829Try \`$0 --help' for more information." >&2
34830 { (exit 1); exit 1; }; };;
34831 --help | --hel | -h )
34832 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34835 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034836
34837 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034838 -*) { echo "$as_me: error: unrecognized option: $1
34839Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034840 { (exit 1); exit 1; }; } ;;
34841
Reid Spencera773bd52006-08-04 18:18:08 +000034842 *) ac_config_targets="$ac_config_targets $1"
34843 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034844
34845 esac
34846 shift
34847done
34848
John Criswell0c38eaf2003-09-10 15:17:25 +000034849ac_configure_extra_args=
34850
34851if $ac_cs_silent; then
34852 exec 6>/dev/null
34853 ac_configure_extra_args="$ac_configure_extra_args --silent"
34854fi
34855
34856_ACEOF
34857cat >>$CONFIG_STATUS <<_ACEOF
34858if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034859 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34860 CONFIG_SHELL=$SHELL
34861 export CONFIG_SHELL
34862 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034863fi
34864
John Criswell7a73b802003-06-30 21:59:07 +000034865_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034866cat >>$CONFIG_STATUS <<\_ACEOF
34867exec 5>>config.log
34868{
34869 echo
34870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34871## Running $as_me. ##
34872_ASBOX
34873 echo "$ac_log"
34874} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034875
Reid Spencera773bd52006-08-04 18:18:08 +000034876_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034877cat >>$CONFIG_STATUS <<_ACEOF
34878#
Reid Spencera773bd52006-08-04 18:18:08 +000034879# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034880#
Reid Spencerc0682832005-02-24 19:05:19 +000034881llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034882
34883_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034884
John Criswell7a73b802003-06-30 21:59:07 +000034885cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034886
34887# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034888for ac_config_target in $ac_config_targets
34889do
Reid Spencera773bd52006-08-04 18:18:08 +000034890 case $ac_config_target in
34891 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34892 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34893 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34894 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34895 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34896 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034897 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034898 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34899 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34900 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34901 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34902 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34903 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34904 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034905 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034906 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34907 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34908 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34909 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34910 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034911 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34912 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034913
John Criswell7a73b802003-06-30 21:59:07 +000034914 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34915echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34916 { (exit 1); exit 1; }; };;
34917 esac
34918done
34919
Reid Spencera773bd52006-08-04 18:18:08 +000034920
John Criswell7a73b802003-06-30 21:59:07 +000034921# If the user did not use the arguments to specify the items to instantiate,
34922# then the envvar interface is used. Set only those that are not.
34923# We use the long form for the default assignment because of an extremely
34924# bizarre bug on SunOS 4.1.3.
34925if $ac_need_defaults; then
34926 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34927 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034928 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034929fi
34930
John Criswell0c38eaf2003-09-10 15:17:25 +000034931# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034932# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034933# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034934# Hook for its removal unless debugging.
34935# Note that there is a small window in which the directory will not be cleaned:
34936# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034937$debug ||
34938{
Reid Spencera773bd52006-08-04 18:18:08 +000034939 tmp=
34940 trap 'exit_status=$?
34941 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34942' 0
John Criswell7a73b802003-06-30 21:59:07 +000034943 trap '{ (exit 1); exit 1; }' 1 2 13 15
34944}
John Criswell7a73b802003-06-30 21:59:07 +000034945# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034946
John Criswell7a73b802003-06-30 21:59:07 +000034947{
Reid Spencera773bd52006-08-04 18:18:08 +000034948 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034949 test -n "$tmp" && test -d "$tmp"
34950} ||
34951{
Reid Spencera773bd52006-08-04 18:18:08 +000034952 tmp=./conf$$-$RANDOM
34953 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034954} ||
34955{
John Criswell0c38eaf2003-09-10 15:17:25 +000034956 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034957 { (exit 1); exit 1; }
34958}
34959
John Criswell7a73b802003-06-30 21:59:07 +000034960#
Reid Spencera773bd52006-08-04 18:18:08 +000034961# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034962#
34963
34964# No need to generate the scripts if there are no CONFIG_FILES.
34965# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034966if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034967
34968_ACEOF
34969
Reid Spencera773bd52006-08-04 18:18:08 +000034970
34971
34972ac_delim='%!_!# '
34973for ac_last_try in false false false false false :; do
34974 cat >conf$$subs.sed <<_ACEOF
34975SHELL!$SHELL$ac_delim
34976PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34977PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34978PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34979PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34980PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34981PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34982exec_prefix!$exec_prefix$ac_delim
34983prefix!$prefix$ac_delim
34984program_transform_name!$program_transform_name$ac_delim
34985bindir!$bindir$ac_delim
34986sbindir!$sbindir$ac_delim
34987libexecdir!$libexecdir$ac_delim
34988datarootdir!$datarootdir$ac_delim
34989datadir!$datadir$ac_delim
34990sysconfdir!$sysconfdir$ac_delim
34991sharedstatedir!$sharedstatedir$ac_delim
34992localstatedir!$localstatedir$ac_delim
34993includedir!$includedir$ac_delim
34994oldincludedir!$oldincludedir$ac_delim
34995docdir!$docdir$ac_delim
34996infodir!$infodir$ac_delim
34997htmldir!$htmldir$ac_delim
34998dvidir!$dvidir$ac_delim
34999pdfdir!$pdfdir$ac_delim
35000psdir!$psdir$ac_delim
35001libdir!$libdir$ac_delim
35002localedir!$localedir$ac_delim
35003mandir!$mandir$ac_delim
35004DEFS!$DEFS$ac_delim
35005ECHO_C!$ECHO_C$ac_delim
35006ECHO_N!$ECHO_N$ac_delim
35007ECHO_T!$ECHO_T$ac_delim
35008LIBS!$LIBS$ac_delim
35009build_alias!$build_alias$ac_delim
35010host_alias!$host_alias$ac_delim
35011target_alias!$target_alias$ac_delim
35012LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35013subdirs!$subdirs$ac_delim
35014build!$build$ac_delim
35015build_cpu!$build_cpu$ac_delim
35016build_vendor!$build_vendor$ac_delim
35017build_os!$build_os$ac_delim
35018host!$host$ac_delim
35019host_cpu!$host_cpu$ac_delim
35020host_vendor!$host_vendor$ac_delim
35021host_os!$host_os$ac_delim
35022target!$target$ac_delim
35023target_cpu!$target_cpu$ac_delim
35024target_vendor!$target_vendor$ac_delim
35025target_os!$target_os$ac_delim
35026OS!$OS$ac_delim
35027LINKALL!$LINKALL$ac_delim
35028NOLINKALL!$NOLINKALL$ac_delim
35029LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35030LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35031ARCH!$ARCH$ac_delim
35032ENDIAN!$ENDIAN$ac_delim
35033CC!$CC$ac_delim
35034CFLAGS!$CFLAGS$ac_delim
35035LDFLAGS!$LDFLAGS$ac_delim
35036CPPFLAGS!$CPPFLAGS$ac_delim
35037ac_ct_CC!$ac_ct_CC$ac_delim
35038EXEEXT!$EXEEXT$ac_delim
35039OBJEXT!$OBJEXT$ac_delim
35040CPP!$CPP$ac_delim
35041GREP!$GREP$ac_delim
35042EGREP!$EGREP$ac_delim
35043LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35044BUILD_CC!$BUILD_CC$ac_delim
35045BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35046CVSBUILD!$CVSBUILD$ac_delim
35047ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35048DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035049ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35050EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035051DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035052JIT!$JIT$ac_delim
35053TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35054ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35055ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035056ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035057TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035058ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035059EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35060CXX!$CXX$ac_delim
35061CXXFLAGS!$CXXFLAGS$ac_delim
35062ac_ct_CXX!$ac_ct_CXX$ac_delim
35063LEX!$LEX$ac_delim
35064LEXLIB!$LEXLIB$ac_delim
35065LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35066FLEX!$FLEX$ac_delim
35067YACC!$YACC$ac_delim
35068YFLAGS!$YFLAGS$ac_delim
35069BISON!$BISON$ac_delim
35070NM!$NM$ac_delim
35071ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035072_ACEOF
35073
35074 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35075 break
35076 elif $ac_last_try; then
35077 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35078echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35079 { (exit 1); exit 1; }; }
35080 else
35081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035082 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035083done
35084
35085ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35086if test -n "$ac_eof"; then
35087 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35088 ac_eof=`expr $ac_eof + 1`
35089fi
35090
35091cat >>$CONFIG_STATUS <<_ACEOF
35092cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35093/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35094_ACEOF
35095sed '
35096s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35097s/^/s,@/; s/!/@,|#_!!_#|/
35098:n
35099t n
35100s/'"$ac_delim"'$/,g/; t
35101s/$/\\/; p
35102N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35103' >>$CONFIG_STATUS <conf$$subs.sed
35104rm -f conf$$subs.sed
35105cat >>$CONFIG_STATUS <<_ACEOF
35106CEOF$ac_eof
35107_ACEOF
35108
35109
35110ac_delim='%!_!# '
35111for ac_last_try in false false false false false :; do
35112 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000035113LN_S!$LN_S$ac_delim
35114CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035115CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035116DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035117FIND!$FIND$ac_delim
35118MKDIR!$MKDIR$ac_delim
35119MV!$MV$ac_delim
35120RANLIB!$RANLIB$ac_delim
35121RM!$RM$ac_delim
35122SED!$SED$ac_delim
35123TAR!$TAR$ac_delim
35124BINPWD!$BINPWD$ac_delim
35125GRAPHVIZ!$GRAPHVIZ$ac_delim
35126DOT!$DOT$ac_delim
35127GV!$GV$ac_delim
35128DOTTY!$DOTTY$ac_delim
35129PERL!$PERL$ac_delim
35130HAVE_PERL!$HAVE_PERL$ac_delim
35131INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35132INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35133INSTALL_DATA!$INSTALL_DATA$ac_delim
35134BZIP2!$BZIP2$ac_delim
35135DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035136GROFF!$GROFF$ac_delim
35137GZIP!$GZIP$ac_delim
35138POD2HTML!$POD2HTML$ac_delim
35139POD2MAN!$POD2MAN$ac_delim
35140RUNTEST!$RUNTEST$ac_delim
35141TCLSH!$TCLSH$ac_delim
35142ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035143OCAMLC!$OCAMLC$ac_delim
35144OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035145OCAMLDEP!$OCAMLDEP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035146INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35147INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35148CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35149CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35150LIBADD_DL!$LIBADD_DL$ac_delim
35151ECHO!$ECHO$ac_delim
35152AR!$AR$ac_delim
35153STRIP!$STRIP$ac_delim
35154CXXCPP!$CXXCPP$ac_delim
35155F77!$F77$ac_delim
35156FFLAGS!$FFLAGS$ac_delim
35157ac_ct_F77!$ac_ct_F77$ac_delim
35158LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035159LLVMGCC!$LLVMGCC$ac_delim
35160LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035161USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035162HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035163HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035164ALLOCA!$ALLOCA$ac_delim
35165MMAP_FILE!$MMAP_FILE$ac_delim
35166LLVMCC1!$LLVMCC1$ac_delim
35167LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35168LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035169LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035170LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35171LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035172LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035173SHLIBEXT!$SHLIBEXT$ac_delim
35174LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35175LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35176LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35177LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35178LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35179LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35180LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35181LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35182LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35183LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035184BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35185ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035186OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035187LIBOBJS!$LIBOBJS$ac_delim
35188LTLIBOBJS!$LTLIBOBJS$ac_delim
35189_ACEOF
35190
Gordon Henriksenf0915682007-10-02 16:42:22 +000035191 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Reid Spencera773bd52006-08-04 18:18:08 +000035192 break
35193 elif $ac_last_try; then
35194 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35195echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35196 { (exit 1); exit 1; }; }
35197 else
35198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35199 fi
35200done
35201
35202ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35203if test -n "$ac_eof"; then
35204 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35205 ac_eof=`expr $ac_eof + 1`
35206fi
35207
35208cat >>$CONFIG_STATUS <<_ACEOF
35209cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35210/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35211_ACEOF
35212sed '
35213s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35214s/^/s,@/; s/!/@,|#_!!_#|/
35215:n
35216t n
35217s/'"$ac_delim"'$/,g/; t
35218s/$/\\/; p
35219N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35220' >>$CONFIG_STATUS <conf$$subs.sed
35221rm -f conf$$subs.sed
35222cat >>$CONFIG_STATUS <<_ACEOF
35223:end
35224s/|#_!!_#|//g
35225CEOF$ac_eof
35226_ACEOF
35227
35228
35229# VPATH may cause trouble with some makes, so we remove $(srcdir),
35230# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35231# trailing colons and then remove the whole line if VPATH becomes empty
35232# (actually we leave an empty line to preserve line numbers).
35233if test "x$srcdir" = x.; then
35234 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35235s/:*\$(srcdir):*/:/
35236s/:*\${srcdir}:*/:/
35237s/:*@srcdir@:*/:/
35238s/^\([^=]*=[ ]*\):*/\1/
35239s/:*$//
35240s/^[^=]*=[ ]*$//
35241}'
35242fi
35243
35244cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035245fi # test -n "$CONFIG_FILES"
35246
Reid Spencera773bd52006-08-04 18:18:08 +000035247
35248for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35249do
35250 case $ac_tag in
35251 :[FHLC]) ac_mode=$ac_tag; continue;;
35252 esac
35253 case $ac_mode$ac_tag in
35254 :[FHL]*:*);;
35255 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35256echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35257 { (exit 1); exit 1; }; };;
35258 :[FH]-) ac_tag=-:-;;
35259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35260 esac
35261 ac_save_IFS=$IFS
35262 IFS=:
35263 set x $ac_tag
35264 IFS=$ac_save_IFS
35265 shift
35266 ac_file=$1
35267 shift
35268
35269 case $ac_mode in
35270 :L) ac_source=$1;;
35271 :[FH])
35272 ac_file_inputs=
35273 for ac_f
35274 do
35275 case $ac_f in
35276 -) ac_f="$tmp/stdin";;
35277 *) # Look for the file first in the build tree, then in the source tree
35278 # (if the path is not absolute). The absolute path cannot be DOS-style,
35279 # because $ac_f cannot contain `:'.
35280 test -f "$ac_f" ||
35281 case $ac_f in
35282 [\\/$]*) false;;
35283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35284 esac ||
35285 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35286echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35287 { (exit 1); exit 1; }; };;
35288 esac
35289 ac_file_inputs="$ac_file_inputs $ac_f"
35290 done
35291
35292 # Let's still pretend it is `configure' which instantiates (i.e., don't
35293 # use $as_me), people would be surprised to read:
35294 # /* config.h. Generated by config.status. */
35295 configure_input="Generated from "`IFS=:
35296 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35297 if test x"$ac_file" != x-; then
35298 configure_input="$ac_file. $configure_input"
35299 { echo "$as_me:$LINENO: creating $ac_file" >&5
35300echo "$as_me: creating $ac_file" >&6;}
35301 fi
35302
35303 case $ac_tag in
35304 *:-:* | *:-) cat >"$tmp/stdin";;
35305 esac
35306 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035307 esac
35308
Reid Spencera773bd52006-08-04 18:18:08 +000035309 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035310$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035311 X"$ac_file" : 'X\(//\)[^/]' \| \
35312 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035314echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35316 s//\1/
35317 q
35318 }
35319 /^X\(\/\/\)[^/].*/{
35320 s//\1/
35321 q
35322 }
35323 /^X\(\/\/\)$/{
35324 s//\1/
35325 q
35326 }
35327 /^X\(\/\).*/{
35328 s//\1/
35329 q
35330 }
35331 s/.*/./; q'`
35332 { as_dir="$ac_dir"
35333 case $as_dir in #(
35334 -*) as_dir=./$as_dir;;
35335 esac
35336 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035337 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035338 while :; do
35339 case $as_dir in #(
35340 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35341 *) as_qdir=$as_dir;;
35342 esac
35343 as_dirs="'$as_qdir' $as_dirs"
35344 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035346 X"$as_dir" : 'X\(//\)[^/]' \| \
35347 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035349echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35351 s//\1/
35352 q
35353 }
35354 /^X\(\/\/\)[^/].*/{
35355 s//\1/
35356 q
35357 }
35358 /^X\(\/\/\)$/{
35359 s//\1/
35360 q
35361 }
35362 /^X\(\/\).*/{
35363 s//\1/
35364 q
35365 }
35366 s/.*/./; q'`
35367 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035368 done
Reid Spencera773bd52006-08-04 18:18:08 +000035369 test -z "$as_dirs" || eval "mkdir $as_dirs"
35370 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35371echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035372 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035373 ac_builddir=.
35374
Reid Spencera773bd52006-08-04 18:18:08 +000035375case "$ac_dir" in
35376.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35377*)
John Criswell7a73b802003-06-30 21:59:07 +000035378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035379 # A ".." for each directory in $ac_dir_suffix.
35380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35381 case $ac_top_builddir_sub in
35382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35384 esac ;;
35385esac
35386ac_abs_top_builddir=$ac_pwd
35387ac_abs_builddir=$ac_pwd$ac_dir_suffix
35388# for backward compatibility:
35389ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035390
35391case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035392 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035393 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035394 ac_top_srcdir=$ac_top_builddir_sub
35395 ac_abs_top_srcdir=$ac_pwd ;;
35396 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035397 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035398 ac_top_srcdir=$srcdir
35399 ac_abs_top_srcdir=$srcdir ;;
35400 *) # Relative name.
35401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35402 ac_top_srcdir=$ac_top_build_prefix$srcdir
35403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035404esac
Reid Spencera773bd52006-08-04 18:18:08 +000035405ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035406
John Criswell7a73b802003-06-30 21:59:07 +000035407
Reid Spencera773bd52006-08-04 18:18:08 +000035408 case $ac_mode in
35409 :F)
35410 #
35411 # CONFIG_FILE
35412 #
John Criswell7a73b802003-06-30 21:59:07 +000035413
35414 case $INSTALL in
35415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035417 esac
John Criswell7a73b802003-06-30 21:59:07 +000035418_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035419
35420cat >>$CONFIG_STATUS <<\_ACEOF
35421# If the template does not know about datarootdir, expand it.
35422# FIXME: This hack should be removed a few years after 2.60.
35423ac_datarootdir_hack=; ac_datarootdir_seen=
35424
35425case `sed -n '/datarootdir/ {
35426 p
35427 q
35428}
35429/@datadir@/p
35430/@docdir@/p
35431/@infodir@/p
35432/@localedir@/p
35433/@mandir@/p
35434' $ac_file_inputs` in
35435*datarootdir*) ac_datarootdir_seen=yes;;
35436*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35437 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35438echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35439_ACEOF
35440cat >>$CONFIG_STATUS <<_ACEOF
35441 ac_datarootdir_hack='
35442 s&@datadir@&$datadir&g
35443 s&@docdir@&$docdir&g
35444 s&@infodir@&$infodir&g
35445 s&@localedir@&$localedir&g
35446 s&@mandir@&$mandir&g
35447 s&\\\${datarootdir}&$datarootdir&g' ;;
35448esac
35449_ACEOF
35450
35451# Neutralize VPATH when `$srcdir' = `.'.
35452# Shell code in configure.ac might set extrasub.
35453# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035454cat >>$CONFIG_STATUS <<_ACEOF
35455 sed "$ac_vpsub
35456$extrasub
35457_ACEOF
35458cat >>$CONFIG_STATUS <<\_ACEOF
35459:t
35460/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035461s&@configure_input@&$configure_input&;t t
35462s&@top_builddir@&$ac_top_builddir_sub&;t t
35463s&@srcdir@&$ac_srcdir&;t t
35464s&@abs_srcdir@&$ac_abs_srcdir&;t t
35465s&@top_srcdir@&$ac_top_srcdir&;t t
35466s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35467s&@builddir@&$ac_builddir&;t t
35468s&@abs_builddir@&$ac_abs_builddir&;t t
35469s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35470s&@INSTALL@&$ac_INSTALL&;t t
35471$ac_datarootdir_hack
35472" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035473
Reid Spencera773bd52006-08-04 18:18:08 +000035474test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35475 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35477 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35478which seems to be undefined. Please make sure it is defined." >&5
35479echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35480which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035481
Reid Spencera773bd52006-08-04 18:18:08 +000035482 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035483 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035484 -) cat "$tmp/out"; rm -f "$tmp/out";;
35485 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035486 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035487 ;;
35488 :H)
35489 #
35490 # CONFIG_HEADER
35491 #
John Criswell7a73b802003-06-30 21:59:07 +000035492_ACEOF
35493
Reid Spencera773bd52006-08-04 18:18:08 +000035494# Transform confdefs.h into a sed script `conftest.defines', that
35495# substitutes the proper values into config.h.in to produce config.h.
35496rm -f conftest.defines conftest.tail
35497# First, append a space to every undef/define line, to ease matching.
35498echo 's/$/ /' >conftest.defines
35499# Then, protect against being on the right side of a sed subst, or in
35500# an unquoted here document, in config.status. If some macros were
35501# called several times there might be several #defines for the same
35502# symbol, which is useless. But do not sort them, since the last
35503# AC_DEFINE must be honored.
35504ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35505# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35506# NAME is the cpp macro being defined, VALUE is the value it is being given.
35507# PARAMS is the parameter list in the macro definition--in most cases, it's
35508# just an empty string.
35509ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35510ac_dB='\\)[ (].*,\\1define\\2'
35511ac_dC=' '
35512ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035513
Reid Spencera773bd52006-08-04 18:18:08 +000035514uniq confdefs.h |
35515 sed -n '
35516 t rset
35517 :rset
35518 s/^[ ]*#[ ]*define[ ][ ]*//
35519 t ok
35520 d
35521 :ok
35522 s/[\\&,]/\\&/g
35523 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35524 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35525 ' >>conftest.defines
35526
35527# Remove the space that was appended to ease matching.
35528# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035529# example, in the case of _POSIX_SOURCE, which is predefined and required
35530# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035531# (The regexp can be short, since the line contains either #define or #undef.)
35532echo 's/ $//
35533s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035534
Reid Spencera773bd52006-08-04 18:18:08 +000035535# Break up conftest.defines:
35536ac_max_sed_lines=50
35537
35538# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35539# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35540# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35541# et cetera.
35542ac_in='$ac_file_inputs'
35543ac_out='"$tmp/out1"'
35544ac_nxt='"$tmp/out2"'
35545
35546while :
John Criswell7a73b802003-06-30 21:59:07 +000035547do
Reid Spencera773bd52006-08-04 18:18:08 +000035548 # Write a here document:
35549 cat >>$CONFIG_STATUS <<_ACEOF
35550 # First, check the format of the line:
35551 cat >"\$tmp/defines.sed" <<\\CEOF
35552/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35553/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35554b
35555:def
35556_ACEOF
35557 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035558 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035559 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35560 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35561 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35562 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035563 rm -f conftest.defines
35564 mv conftest.tail conftest.defines
35565done
Reid Spencera773bd52006-08-04 18:18:08 +000035566rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035567
Reid Spencera773bd52006-08-04 18:18:08 +000035568echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035569cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035570 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035571 echo "/* $configure_input */" >"$tmp/config.h"
35572 cat "$ac_result" >>"$tmp/config.h"
35573 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035574 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35575echo "$as_me: $ac_file is unchanged" >&6;}
35576 else
John Criswell7a73b802003-06-30 21:59:07 +000035577 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035578 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035579 fi
35580 else
Reid Spencera773bd52006-08-04 18:18:08 +000035581 echo "/* $configure_input */"
35582 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035583 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035584 rm -f "$tmp/out12"
35585 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035586
Reid Spencera773bd52006-08-04 18:18:08 +000035587 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35588echo "$as_me: executing $ac_file commands" >&6;}
35589 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035590 esac
John Criswell7a73b802003-06-30 21:59:07 +000035591
Reid Spencera773bd52006-08-04 18:18:08 +000035592
35593 case $ac_file$ac_mode in
35594 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35596 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35598 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35600 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035602 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035604 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35606 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35608 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35609 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35610 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35611 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35612 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35613 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035614 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35615 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35616 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35617 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035618
35619 esac
35620done # for ac_tag
35621
John Criswell7a73b802003-06-30 21:59:07 +000035622
35623{ (exit 0); exit 0; }
35624_ACEOF
35625chmod +x $CONFIG_STATUS
35626ac_clean_files=$ac_clean_files_save
35627
35628
35629# configure is writing to config.log, and then calls config.status.
35630# config.status does its own redirection, appending to config.log.
35631# Unfortunately, on DOS this fails, as config.log is still kept open
35632# by configure, so config.status won't be able to write to it; its
35633# output is simply discarded. So we exec the FD to /dev/null,
35634# effectively closing config.log, so it can be properly (re)opened and
35635# appended to by config.status. When coming back to configure, we
35636# need to make the FD available again.
35637if test "$no_create" != yes; then
35638 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035639 ac_config_status_args=
35640 test "$silent" = yes &&
35641 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035642 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035644 exec 5>>config.log
35645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35646 # would make configure fail if this is the last instruction.
35647 $ac_cs_success || { (exit 1); exit 1; }
35648fi
35649
John Criswell12399a12003-09-30 15:55:44 +000035650#
35651# CONFIG_SUBDIRS section.
35652#
35653if test "$no_recursion" != yes; then
35654
35655 # Remove --cache-file and --srcdir arguments so they do not pile up.
35656 ac_sub_configure_args=
35657 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035658 eval "set x $ac_configure_args"
35659 shift
35660 for ac_arg
35661 do
John Criswell12399a12003-09-30 15:55:44 +000035662 if test -n "$ac_prev"; then
35663 ac_prev=
35664 continue
35665 fi
35666 case $ac_arg in
35667 -cache-file | --cache-file | --cache-fil | --cache-fi \
35668 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35669 ac_prev=cache_file ;;
35670 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35671 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35672 | --c=*)
35673 ;;
35674 --config-cache | -C)
35675 ;;
35676 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35677 ac_prev=srcdir ;;
35678 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35679 ;;
35680 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35681 ac_prev=prefix ;;
35682 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35683 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035684 *)
35685 case $ac_arg in
35686 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35687 esac
35688 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035689 esac
35690 done
35691
35692 # Always prepend --prefix to ensure using the same prefix
35693 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035694 ac_arg="--prefix=$prefix"
35695 case $ac_arg in
35696 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35697 esac
35698 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035699
35700 ac_popdir=`pwd`
35701 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35702
35703 # Do not complain, so a configure script can configure whichever
35704 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035705 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035706
Reid Spencera773bd52006-08-04 18:18:08 +000035707 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35708 echo "$as_me:$LINENO: $ac_msg" >&5
35709 echo "$ac_msg" >&6
35710 { as_dir="$ac_dir"
35711 case $as_dir in #(
35712 -*) as_dir=./$as_dir;;
35713 esac
35714 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035715 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035716 while :; do
35717 case $as_dir in #(
35718 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35719 *) as_qdir=$as_dir;;
35720 esac
35721 as_dirs="'$as_qdir' $as_dirs"
35722 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035723$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035724 X"$as_dir" : 'X\(//\)[^/]' \| \
35725 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035726 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035727echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35729 s//\1/
35730 q
35731 }
35732 /^X\(\/\/\)[^/].*/{
35733 s//\1/
35734 q
35735 }
35736 /^X\(\/\/\)$/{
35737 s//\1/
35738 q
35739 }
35740 /^X\(\/\).*/{
35741 s//\1/
35742 q
35743 }
35744 s/.*/./; q'`
35745 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035746 done
Reid Spencera773bd52006-08-04 18:18:08 +000035747 test -z "$as_dirs" || eval "mkdir $as_dirs"
35748 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35749echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035750 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035751 ac_builddir=.
35752
Reid Spencera773bd52006-08-04 18:18:08 +000035753case "$ac_dir" in
35754.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35755*)
John Criswell12399a12003-09-30 15:55:44 +000035756 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035757 # A ".." for each directory in $ac_dir_suffix.
35758 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35759 case $ac_top_builddir_sub in
35760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35762 esac ;;
35763esac
35764ac_abs_top_builddir=$ac_pwd
35765ac_abs_builddir=$ac_pwd$ac_dir_suffix
35766# for backward compatibility:
35767ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035768
35769case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035770 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035771 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035772 ac_top_srcdir=$ac_top_builddir_sub
35773 ac_abs_top_srcdir=$ac_pwd ;;
35774 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035775 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035776 ac_top_srcdir=$srcdir
35777 ac_abs_top_srcdir=$srcdir ;;
35778 *) # Relative name.
35779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35780 ac_top_srcdir=$ac_top_build_prefix$srcdir
35781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035782esac
Reid Spencera773bd52006-08-04 18:18:08 +000035783ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035784
35785
Reid Spencera773bd52006-08-04 18:18:08 +000035786 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035787
35788 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035789 if test -f "$ac_srcdir/configure.gnu"; then
35790 ac_sub_configure=$ac_srcdir/configure.gnu
35791 elif test -f "$ac_srcdir/configure"; then
35792 ac_sub_configure=$ac_srcdir/configure
35793 elif test -f "$ac_srcdir/configure.in"; then
35794 # This should be Cygnus configure.
35795 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035796 else
35797 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35798echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35799 ac_sub_configure=
35800 fi
35801
35802 # The recursion is here.
35803 if test -n "$ac_sub_configure"; then
35804 # Make the cache file name correct relative to the subdirectory.
35805 case $cache_file in
35806 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035807 *) # Relative name.
35808 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035809 esac
35810
Reid Spencera773bd52006-08-04 18:18:08 +000035811 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35812echo "$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 +000035813 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035814 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35815 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035816 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035817echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35818 { (exit 1); exit 1; }; }
35819 fi
35820
Reid Spencera773bd52006-08-04 18:18:08 +000035821 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035822 done
35823fi
35824