blob: b58f5cc81cb3050f9728be3f936dfcd1c8745f7f [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)
Evan Chengcf9be262006-06-20 22:16:32 +00001565 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001566 --with-ocaml-libdir Specify install location for ocaml bindings (default
1567 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001568 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 --with-pic try to use only PIC/non-PIC objects [default=use
1571 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001572 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001573 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001574
1575Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001576 CC C compiler command
1577 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001582 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001583 CXX C++ compiler command
1584 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001585 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1586 the first program found out of: `bison -y', `byacc', `yacc'.
1587 YFLAGS The list of arguments that will be passed by default to $YACC.
1588 This script will default YFLAGS to the empty string to avoid a
1589 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001590 CXXCPP C++ preprocessor
1591 F77 Fortran 77 compiler command
1592 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001593
1594Use these variables to override the choices made by `configure' or to help
1595it to find libraries and programs with nonstandard names/locations.
1596
1597Report bugs to <llvmbugs@cs.uiuc.edu>.
1598_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001599ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001600fi
1601
1602if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001605 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001606 ac_builddir=.
1607
Reid Spencera773bd52006-08-04 18:18:08 +00001608case "$ac_dir" in
1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610*)
John Criswell7a73b802003-06-30 21:59:07 +00001611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618esac
1619ac_abs_top_builddir=$ac_pwd
1620ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621# for backward compatibility:
1622ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001623
1624case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001625 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001626 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001630 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001637esac
Reid Spencera773bd52006-08-04 18:18:08 +00001638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001639
Reid Spencera773bd52006-08-04 18:18:08 +00001640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001648 else
1649 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001652 done
1653fi
1654
Reid Spencera773bd52006-08-04 18:18:08 +00001655test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001656if $ac_init_version; then
1657 cat <<\_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001658llvm configure 2.2svn
Reid Spencera773bd52006-08-04 18:18:08 +00001659generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001660
Reid Spencera773bd52006-08-04 18:18:08 +00001661Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001665
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001666Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001667_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001668 exit
John Criswell7a73b802003-06-30 21:59:07 +00001669fi
Reid Spencera773bd52006-08-04 18:18:08 +00001670cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001671This file contains any messages produced by compilers while
1672running configure, to aid debugging if configure makes a mistake.
1673
Tanya Lattner5c709542007-09-14 01:24:13 +00001674It was created by llvm $as_me 2.2svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001675generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001676
1677 $ $0 $@
1678
1679_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001680exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001681{
1682cat <<_ASUNAME
1683## --------- ##
1684## Platform. ##
1685## --------- ##
1686
1687hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692
1693/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1695
1696/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1697/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1698/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001699/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001700/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1701/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1702/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1703
1704_ASUNAME
1705
1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 echo "PATH: $as_dir"
1712done
Reid Spencera773bd52006-08-04 18:18:08 +00001713IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001714
1715} >&5
1716
1717cat >&5 <<_ACEOF
1718
1719
1720## ----------- ##
1721## Core tests. ##
1722## ----------- ##
1723
1724_ACEOF
1725
1726
1727# Keep a trace of the command line.
1728# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001729# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001730# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001731# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001732ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001733ac_configure_args0=
1734ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001735ac_must_keep_next=false
1736for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001737do
John Criswell0c38eaf2003-09-10 15:17:25 +00001738 for ac_arg
1739 do
1740 case $ac_arg in
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1744 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001745 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 esac
1748 case $ac_pass in
1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1750 2)
1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001753 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001755 case $ac_arg in
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762 esac
1763 ;;
1764 -* ) ac_must_keep_next=true ;;
1765 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001767 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001768 ;;
1769 esac
1770 done
John Criswell7a73b802003-06-30 21:59:07 +00001771done
John Criswell0c38eaf2003-09-10 15:17:25 +00001772$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773$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 +00001774
1775# When interrupted or exit'd, cleanup temporary files, and complete
1776# config.log. We remove comments because anyway the quotes in there
1777# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001778# WARNING: Use '\'' to represent an apostrophe within the trap.
1779# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001780trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1782 {
1783 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001784
John Criswell7a73b802003-06-30 21:59:07 +00001785 cat <<\_ASBOX
1786## ---------------- ##
1787## Cache variables. ##
1788## ---------------- ##
1789_ASBOX
1790 echo
1791 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001792(
1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794 eval ac_val=\$$ac_var
1795 case $ac_val in #(
1796 *${as_nl}*)
1797 case $ac_var in #(
1798 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1799echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1800 esac
1801 case $ac_var in #(
1802 _ | IFS | as_nl) ;; #(
1803 *) $as_unset $ac_var ;;
1804 esac ;;
1805 esac
1806 done
John Criswell7a73b802003-06-30 21:59:07 +00001807 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001810 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001814 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001816 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001817 esac |
1818 sort
1819)
John Criswell7a73b802003-06-30 21:59:07 +00001820 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001821
1822 cat <<\_ASBOX
1823## ----------------- ##
1824## Output variables. ##
1825## ----------------- ##
1826_ASBOX
1827 echo
1828 for ac_var in $ac_subst_vars
1829 do
Reid Spencera773bd52006-08-04 18:18:08 +00001830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001835 done | sort
1836 echo
1837
1838 if test -n "$ac_subst_files"; then
1839 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001840## ------------------- ##
1841## File substitutions. ##
1842## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001843_ASBOX
1844 echo
1845 for ac_var in $ac_subst_files
1846 do
Reid Spencera773bd52006-08-04 18:18:08 +00001847 eval ac_val=\$$ac_var
1848 case $ac_val in
1849 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 esac
1851 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001852 done | sort
1853 echo
1854 fi
1855
John Criswell7a73b802003-06-30 21:59:07 +00001856 if test -s confdefs.h; then
1857 cat <<\_ASBOX
1858## ----------- ##
1859## confdefs.h. ##
1860## ----------- ##
1861_ASBOX
1862 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001863 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001864 echo
1865 fi
1866 test "$ac_signal" != 0 &&
1867 echo "$as_me: caught signal $ac_signal"
1868 echo "$as_me: exit $exit_status"
1869 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001872 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001873' 0
John Criswell7a73b802003-06-30 21:59:07 +00001874for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876done
1877ac_signal=0
1878
1879# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001880rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001881
1882# Predefined preprocessor variables.
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_NAME "$PACKAGE_NAME"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_VERSION "$PACKAGE_VERSION"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_STRING "$PACKAGE_STRING"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906_ACEOF
1907
1908
1909# Let the site file select an alternate cache file if it wants to.
1910# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001911if test -n "$CONFIG_SITE"; then
1912 set x "$CONFIG_SITE"
1913elif test "x$prefix" != xNONE; then
1914 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1915else
1916 set x "$ac_default_prefix/share/config.site" \
1917 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001918fi
Reid Spencera773bd52006-08-04 18:18:08 +00001919shift
1920for ac_site_file
1921do
John Criswell7a73b802003-06-30 21:59:07 +00001922 if test -r "$ac_site_file"; then
1923 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924echo "$as_me: loading site script $ac_site_file" >&6;}
1925 sed 's/^/| /' "$ac_site_file" >&5
1926 . "$ac_site_file"
1927 fi
1928done
1929
1930if test -r "$cache_file"; then
1931 # Some versions of bash will fail to source /dev/null (special
1932 # files actually), so we avoid doing that.
1933 if test -f "$cache_file"; then
1934 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935echo "$as_me: loading cache $cache_file" >&6;}
1936 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001939 esac
1940 fi
1941else
1942 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943echo "$as_me: creating cache $cache_file" >&6;}
1944 >$cache_file
1945fi
1946
1947# Check that the precious variables saved in the cache have kept the same
1948# value.
1949ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001950for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001955 case $ac_old_set,$ac_new_set in
1956 set,)
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1960 ,set)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,);;
1965 *)
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001967 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001968echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001969 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001970echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001972echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001974 fi;;
1975 esac
1976 # Pass precious variables to config.status.
1977 if test "$ac_new_set" = set; then
1978 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001979 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001980 *) ac_arg=$ac_var=$ac_new_val ;;
1981 esac
1982 case " $ac_configure_args " in
1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1984 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985 esac
1986 fi
1987done
1988if $ac_cache_corrupted; then
1989 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993 { (exit 1); exit 1; }; }
1994fi
1995
Reid Spencera773bd52006-08-04 18:18:08 +00001996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
John Criswell7a73b802003-06-30 21:59:07 +00002020ac_ext=c
2021ac_cpp='$CPP $CPPFLAGS'
2022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025
2026
2027
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002028LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002029
2030
2031
2032
2033
2034
2035
John Criswell7a73b802003-06-30 21:59:07 +00002036ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002037for ac_dir in autoconf "$srcdir"/autoconf; do
2038 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install-sh -c"
2041 break
Reid Spencera773bd52006-08-04 18:18:08 +00002042 elif 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/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/shtool install -c"
2049 break
2050 fi
2051done
2052if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002053 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2054echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002055 { (exit 1); exit 1; }; }
2056fi
Reid Spencera773bd52006-08-04 18:18:08 +00002057
2058# These three variables are undocumented and unsupported,
2059# and are intended to be withdrawn in a future Autoconf release.
2060# They can cause serious problems if a builder's source tree is in a directory
2061# whose full name contains unusual characters.
2062ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2063ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2064ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2065
John Criswell7a73b802003-06-30 21:59:07 +00002066
John Criswell392aaa32003-07-22 19:18:09 +00002067
Reid Spencer2706f8c2004-09-19 23:53:36 +00002068if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2070 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002071echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2072 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002073 fi
John Criswell93e1c722003-09-15 17:04:06 +00002074fi
2075
John Criswell33a911a2003-11-25 20:36:46 +00002076for i in `ls ${srcdir}/projects`
2077do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002078 if test -d ${srcdir}/projects/${i} ; then
2079 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002080 CVS) ;;
2081 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002083 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002084 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002087 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002088 ;;
2089 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002091 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002092 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002094 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002096 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002098 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002099 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002102 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002103 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002104 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2105echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002106 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107 esac
John Criswell33a911a2003-11-25 20:36:46 +00002108 fi
2109done
John Criswell559a6c12003-09-30 16:31:48 +00002110
John Criswell7a73b802003-06-30 21:59:07 +00002111
2112# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002113$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2114 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2115echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002116 { (exit 1); exit 1; }; }
2117
Reid Spencera773bd52006-08-04 18:18:08 +00002118{ echo "$as_me:$LINENO: checking build system type" >&5
2119echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002120if test "${ac_cv_build+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
Reid Spencera773bd52006-08-04 18:18:08 +00002123 ac_build_alias=$build_alias
2124test "x$ac_build_alias" = x &&
2125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2126test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002127 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2128echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2129 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002130ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2131 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2132echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002133 { (exit 1); exit 1; }; }
2134
2135fi
Reid Spencera773bd52006-08-04 18:18:08 +00002136{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2137echo "${ECHO_T}$ac_cv_build" >&6; }
2138case $ac_cv_build in
2139*-*-*) ;;
2140*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2141echo "$as_me: error: invalid value of canonical build" >&2;}
2142 { (exit 1); exit 1; }; };;
2143esac
John Criswell7a73b802003-06-30 21:59:07 +00002144build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002145ac_save_IFS=$IFS; IFS='-'
2146set x $ac_cv_build
2147shift
2148build_cpu=$1
2149build_vendor=$2
2150shift; shift
2151# Remember, the first character of IFS is used to create $*,
2152# except with old shells:
2153build_os=$*
2154IFS=$ac_save_IFS
2155case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002156
2157
Reid Spencera773bd52006-08-04 18:18:08 +00002158{ echo "$as_me:$LINENO: checking host system type" >&5
2159echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002160if test "${ac_cv_host+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162else
Reid Spencera773bd52006-08-04 18:18:08 +00002163 if test "x$host_alias" = x; then
2164 ac_cv_host=$ac_cv_build
2165else
2166 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2168echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002169 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002170fi
John Criswell7a73b802003-06-30 21:59:07 +00002171
2172fi
Reid Spencera773bd52006-08-04 18:18:08 +00002173{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174echo "${ECHO_T}$ac_cv_host" >&6; }
2175case $ac_cv_host in
2176*-*-*) ;;
2177*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2178echo "$as_me: error: invalid value of canonical host" >&2;}
2179 { (exit 1); exit 1; }; };;
2180esac
John Criswell7a73b802003-06-30 21:59:07 +00002181host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002182ac_save_IFS=$IFS; IFS='-'
2183set x $ac_cv_host
2184shift
2185host_cpu=$1
2186host_vendor=$2
2187shift; shift
2188# Remember, the first character of IFS is used to create $*,
2189# except with old shells:
2190host_os=$*
2191IFS=$ac_save_IFS
2192case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002193
2194
Reid Spencera773bd52006-08-04 18:18:08 +00002195{ echo "$as_me:$LINENO: checking target system type" >&5
2196echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002197if test "${ac_cv_target+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199else
Reid Spencera773bd52006-08-04 18:18:08 +00002200 if test "x$target_alias" = x; then
2201 ac_cv_target=$ac_cv_host
2202else
2203 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2204 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2205echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002206 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002207fi
John Criswell7a73b802003-06-30 21:59:07 +00002208
2209fi
Reid Spencera773bd52006-08-04 18:18:08 +00002210{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2211echo "${ECHO_T}$ac_cv_target" >&6; }
2212case $ac_cv_target in
2213*-*-*) ;;
2214*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2215echo "$as_me: error: invalid value of canonical target" >&2;}
2216 { (exit 1); exit 1; }; };;
2217esac
John Criswell7a73b802003-06-30 21:59:07 +00002218target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002219ac_save_IFS=$IFS; IFS='-'
2220set x $ac_cv_target
2221shift
2222target_cpu=$1
2223target_vendor=$2
2224shift; shift
2225# Remember, the first character of IFS is used to create $*,
2226# except with old shells:
2227target_os=$*
2228IFS=$ac_save_IFS
2229case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002230
2231
2232# The aliases save the names the user supplied, while $host etc.
2233# will get canonicalized.
2234test -n "$target_alias" &&
2235 test "$program_prefix$program_suffix$program_transform_name" = \
2236 NONENONEs,x,x, &&
2237 program_prefix=${target_alias}-
2238
Reid Spencera773bd52006-08-04 18:18:08 +00002239{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2240echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002241if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002244 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002248 llvm_cv_os_type="AIX"
2249 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002250 *-*-irix*)
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="IRIX"
2254 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002255 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 llvm_cv_os_type="Cygwin"
2259 llvm_cv_platform_type="Unix" ;;
2260 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002261 llvm_cv_link_all_option="-Wl,-all_load"
2262 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 llvm_cv_os_type="Darwin"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="FreeBSD"
2269 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002270 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002273 llvm_cv_os_type="OpenBSD"
2274 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002275 *-*-netbsd*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="NetBSD"
2279 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002280 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002283 llvm_cv_os_type="HP-UX"
2284 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002285 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 llvm_cv_os_type="Interix"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 llvm_cv_os_type="Linux"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002296 llvm_cv_link_all_option="-Wl,-z,allextract"
2297 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 llvm_cv_os_type="SunOS"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303 llvm_cv_os_type="Win32"
2304 llvm_cv_platform_type="Win32" ;;
2305 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308 llvm_cv_os_type="MingW"
2309 llvm_cv_platform_type="Win32" ;;
2310 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002311 llvm_cv_link_all_option=""
2312 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002313 llvm_cv_os_type="Unknown"
2314 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002315esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002316fi
Reid Spencera773bd52006-08-04 18:18:08 +00002317{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2318echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002319
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320if test "$llvm_cv_os_type" = "Unknown" ; then
2321 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2322echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002323 { (exit 1); exit 1; }; }
2324fi
2325
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002327
2328
Reid Spencera773bd52006-08-04 18:18:08 +00002329LINKALL=$llvm_cv_link_all_option
2330
2331NOLINKALL=$llvm_cv_no_link_all_option
2332
2333
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334case $llvm_cv_platform_type in
2335 Unix)
2336
2337cat >>confdefs.h <<\_ACEOF
2338#define LLVM_ON_UNIX 1
2339_ACEOF
2340
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002341 LLVM_ON_UNIX=1
2342
2343 LLVM_ON_WIN32=0
2344
Reid Spencer7b3e8512004-12-24 06:29:05 +00002345 ;;
2346 Win32)
2347
2348cat >>confdefs.h <<\_ACEOF
2349#define LLVM_ON_WIN32 1
2350_ACEOF
2351
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002352 LLVM_ON_UNIX=0
2353
2354 LLVM_ON_WIN32=1
2355
Reid Spencer7b3e8512004-12-24 06:29:05 +00002356 ;;
2357esac
2358
Reid Spencera773bd52006-08-04 18:18:08 +00002359{ echo "$as_me:$LINENO: checking target architecture" >&5
2360echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002361if test "${llvm_cv_target_arch+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002365 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002366 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002367 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2368 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002369 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002370 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002371 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002372 mips-*) llvm_cv_target_arch="Mips" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002373 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002374esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002375fi
Reid Spencera773bd52006-08-04 18:18:08 +00002376{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2377echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002378
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379if test "$llvm_cv_target_arch" = "Unknown" ; then
2380 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2381echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2382fi
John Criswell76595452003-07-01 22:07:39 +00002383
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002385
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002386
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387ac_ext=c
2388ac_cpp='$CPP $CPPFLAGS'
2389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002392if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402else
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002409 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 +00002410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2413 fi
2414done
2415done
Reid Spencera773bd52006-08-04 18:18:08 +00002416IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417
2418fi
2419fi
2420CC=$ac_cv_prog_CC
2421if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002422 { echo "$as_me:$LINENO: result: $CC" >&5
2423echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424else
Reid Spencera773bd52006-08-04 18:18:08 +00002425 { echo "$as_me:$LINENO: result: no" >&5
2426echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427fi
2428
Reid Spencera773bd52006-08-04 18:18:08 +00002429
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430fi
2431if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002449 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 +00002450 ac_cv_prog_ac_ct_CC="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454done
2455done
Reid Spencera773bd52006-08-04 18:18:08 +00002456IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464else
Reid Spencera773bd52006-08-04 18:18:08 +00002465 { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467fi
2468
Reid Spencera773bd52006-08-04 18:18:08 +00002469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473yes:)
2474{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475whose name does not start with the host triplet. If you think this
2476configuration is useful to you, please write to autoconf@gnu.org." >&5
2477echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478whose name does not start with the host triplet. If you think this
2479configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480ac_tool_warned=yes ;;
2481esac
2482 CC=$ac_ct_CC
2483 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484else
2485 CC="$ac_cv_prog_CC"
2486fi
2487
2488if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002489 if test -n "$ac_tool_prefix"; then
2490 # 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 +00002491set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499else
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002506 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 +00002507 ac_cv_prog_CC="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511done
2512done
Reid Spencera773bd52006-08-04 18:18:08 +00002513IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514
2515fi
2516fi
2517CC=$ac_cv_prog_CC
2518if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002519 { echo "$as_me:$LINENO: result: $CC" >&5
2520echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002521else
Reid Spencera773bd52006-08-04 18:18:08 +00002522 { echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524fi
2525
Reid Spencera773bd52006-08-04 18:18:08 +00002526
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528fi
2529if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540 ac_prog_rejected=no
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002547 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 +00002548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2550 continue
2551 fi
2552 ac_cv_prog_CC="cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556done
2557done
Reid Spencera773bd52006-08-04 18:18:08 +00002558IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559
2560if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2563 shift
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2568 shift
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570 fi
2571fi
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002576 { echo "$as_me:$LINENO: result: $CC" >&5
2577echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002578else
Reid Spencera773bd52006-08-04 18:18:08 +00002579 { echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002581fi
2582
Reid Spencera773bd52006-08-04 18:18:08 +00002583
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002584fi
2585if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002587 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002588 do
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002593if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002605 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 +00002606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2609 fi
2610done
2611done
Reid Spencera773bd52006-08-04 18:18:08 +00002612IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002613
2614fi
2615fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002618 { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002620else
Reid Spencera773bd52006-08-04 18:18:08 +00002621 { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002623fi
2624
Reid Spencera773bd52006-08-04 18:18:08 +00002625
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002627 done
2628fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629if test -z "$CC"; then
2630 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002631 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002632do
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002649 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 +00002650 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654done
2655done
Reid Spencera773bd52006-08-04 18:18:08 +00002656IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002657
2658fi
2659fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002664else
Reid Spencera773bd52006-08-04 18:18:08 +00002665 { echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002667fi
2668
Reid Spencera773bd52006-08-04 18:18:08 +00002669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002671done
John Criswell7a73b802003-06-30 21:59:07 +00002672
Reid Spencera773bd52006-08-04 18:18:08 +00002673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677yes:)
2678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679whose name does not start with the host triplet. If you think this
2680configuration is useful to you, please write to autoconf@gnu.org." >&5
2681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682whose name does not start with the host triplet. If you think this
2683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684ac_tool_warned=yes ;;
2685esac
2686 CC=$ac_ct_CC
2687 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002688fi
2689
John Criswell7a73b802003-06-30 21:59:07 +00002690fi
2691
2692
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&5
2695echo "$as_me: error: no acceptable C compiler found in \$PATH
2696See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2698
John Criswell7a73b802003-06-30 21:59:07 +00002699# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002700echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002701ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002702{ (ac_try="$ac_compiler --version >&5"
2703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002712{ (ac_try="$ac_compiler -v >&5"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002722{ (ac_try="$ac_compiler -V >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2732
2733cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002739
John Criswell7a73b802003-06-30 21:59:07 +00002740int
2741main ()
2742{
2743
2744 ;
2745 return 0;
2746}
2747_ACEOF
2748ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002749ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002750# Try to create an executable without -o first, disregard a.out.
2751# It will help us diagnose broken compilers, and finding out an intuition
2752# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002753{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002755ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002756#
2757# List of possible output files, starting from the most likely.
2758# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759# only as a last resort. b.out is created by i960 compilers.
2760ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761#
2762# The IRIX 6 linker writes into existing files which may not be
2763# executable, retaining their permissions. Remove them first so a
2764# subsequent execution test works.
2765ac_rmfiles=
2766for ac_file in $ac_files
2767do
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772done
2773rm -f $ac_rmfiles
2774
2775if { (ac_try="$ac_link_default"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787# in a Makefile. We should not override ac_cv_exeext if it was cached,
2788# so that the user can short-circuit this test for compilers unknown to
2789# Autoconf.
2790for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002791do
2792 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002793 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002796 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002797 # We found the default executable, but exeext='' is most
2798 # certainly right.
2799 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002800 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802 then :; else
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 fi
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2809 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002810 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002811 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002812 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002813 esac
2814done
Reid Spencera773bd52006-08-04 18:18:08 +00002815test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
John Criswell7a73b802003-06-30 21:59:07 +00002817else
2818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002819sed 's/^/| /' conftest.$ac_ext >&5
2820
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002821{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002822See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002823echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002824See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002825 { (exit 77); exit 77; }; }
2826fi
2827
2828ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002829{ echo "$as_me:$LINENO: result: $ac_file" >&5
2830echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002831
Reid Spencera773bd52006-08-04 18:18:08 +00002832# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002833# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002834{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002836# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837# If not cross compiling, check that we can run a simple program.
2838if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 cross_compiling=no
2850 else
2851 if test "$cross_compiling" = maybe; then
2852 cross_compiling=yes
2853 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002855If you meant to cross compile, use \`--host'.
2856See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002857echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002858If you meant to cross compile, use \`--host'.
2859See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002860 { (exit 1); exit 1; }; }
2861 fi
2862 fi
2863fi
Reid Spencera773bd52006-08-04 18:18:08 +00002864{ echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002866
John Criswell0c38eaf2003-09-10 15:17:25 +00002867rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002868ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002869# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002870# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002871{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002875
Reid Spencera773bd52006-08-04 18:18:08 +00002876{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878if { (ac_try="$ac_link"
2879case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890# work properly (i.e., refer to `conftest.exe'), while it won't with
2891# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002892for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002894 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002897 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002898 * ) break;;
2899 esac
2900done
2901else
John Criswell0c38eaf2003-09-10 15:17:25 +00002902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002906 { (exit 1); exit 1; }; }
2907fi
2908
2909rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002910{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002916{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002918if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002927
John Criswell7a73b802003-06-30 21:59:07 +00002928int
2929main ()
2930{
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002937if { (ac_try="$ac_compile"
2938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002949 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 break;;
2953 esac
2954done
2955else
2956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002957sed 's/^/| /' conftest.$ac_ext >&5
2958
2959{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002963 { (exit 1); exit 1; }; }
2964fi
2965
2966rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967fi
Reid Spencera773bd52006-08-04 18:18:08 +00002968{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002970OBJEXT=$ac_cv_objext
2971ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002972{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002974if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976else
2977 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002978/* confdefs.h. */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
2982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002983
John Criswell7a73b802003-06-30 21:59:07 +00002984int
2985main ()
2986{
2987#ifndef __GNUC__
2988 choke me
2989#endif
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002996if { (ac_try="$ac_compile"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003003 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 ac_compiler_gnu=yes
3030else
3031 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003032sed 's/^/| /' conftest.$ac_ext >&5
3033
Reid Spencera773bd52006-08-04 18:18:08 +00003034 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003035fi
Reid Spencera773bd52006-08-04 18:18:08 +00003036
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003038ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003039
3040fi
Reid Spencera773bd52006-08-04 18:18:08 +00003041{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003043GCC=`test $ac_compiler_gnu = yes && echo yes`
3044ac_test_CFLAGS=${CFLAGS+set}
3045ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003046{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003048if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
Reid Spencera773bd52006-08-04 18:18:08 +00003051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3053 ac_cv_prog_cc_g=no
3054 CFLAGS="-g"
3055 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003061
John Criswell7a73b802003-06-30 21:59:07 +00003062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003104 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003105else
3106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003107sed 's/^/| /' conftest.$ac_ext >&5
3108
Reid Spencera773bd52006-08-04 18:18:08 +00003109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 :
3160else
3161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3165 CFLAGS="-g"
3166 cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h. */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h. */
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_cv_prog_cc_g=yes
3216else
3217 echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220
John Criswell7a73b802003-06-30 21:59:07 +00003221fi
Reid Spencera773bd52006-08-04 18:18:08 +00003222
3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003224fi
Reid Spencera773bd52006-08-04 18:18:08 +00003225
3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
3228
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3231fi
3232{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003234if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003239 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003240 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003241 fi
3242else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003245 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003247 fi
3248fi
Reid Spencera773bd52006-08-04 18:18:08 +00003249{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
Reid Spencera773bd52006-08-04 18:18:08 +00003254 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255ac_save_CC=$CC
3256cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h. */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h. */
3262#include <stdarg.h>
3263#include <stdio.h>
3264#include <sys/types.h>
3265#include <sys/stat.h>
3266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267struct buf { int x; };
3268FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269static char *e (p, i)
3270 char **p;
3271 int i;
3272{
3273 return p[i];
3274}
3275static char *f (char * (*g) (char **, int), char **p, ...)
3276{
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3283}
3284
3285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003288 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003291 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
Reid Spencera773bd52006-08-04 18:18:08 +00003294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296#define FOO(x) 'x'
3297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299int test (int i, double x);
3300struct s1 {int (*f) (int a);};
3301struct s2 {int (*f) (double a);};
3302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303int argc;
3304char **argv;
3305int
3306main ()
3307{
3308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 ;
3310 return 0;
3311}
3312_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315do
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003318if { (ac_try="$ac_compile"
3319case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003351 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
Reid Spencera773bd52006-08-04 18:18:08 +00003356
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357fi
Reid Spencera773bd52006-08-04 18:18:08 +00003358
3359rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361done
Reid Spencera773bd52006-08-04 18:18:08 +00003362rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363CC=$ac_save_CC
3364
3365fi
Reid Spencera773bd52006-08-04 18:18:08 +00003366# AC_CACHE_VAL
3367case "x$ac_cv_prog_cc_c89" in
3368 x)
3369 { echo "$as_me:$LINENO: result: none needed" >&5
3370echo "${ECHO_T}none needed" >&6; } ;;
3371 xno)
3372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378esac
3379
John Criswell0c38eaf2003-09-10 15:17:25 +00003380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388ac_ext=c
3389ac_cpp='$CPP $CPPFLAGS'
3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003393{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395# On Suns, sometimes $CPP names a directory.
3396if test -n "$CPP" && test -d "$CPP"; then
3397 CPP=
3398fi
3399if test -z "$CPP"; then
3400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405 do
3406 ac_preproc_ok=false
3407for ac_c_preproc_warn_flag in '' yes
3408do
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421#ifdef __STDC__
3422# include <limits.h>
3423#else
3424# include <assert.h>
3425#endif
3426 Syntax error
3427_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003428if { (ac_try="$ac_cpp conftest.$ac_ext"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 else
3445 ac_cpp_err=
3446 fi
3447else
3448 ac_cpp_err=yes
3449fi
3450if test -z "$ac_cpp_err"; then
3451 :
3452else
3453 echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 # Broken: fails on valid input.
3457continue
3458fi
Reid Spencera773bd52006-08-04 18:18:08 +00003459
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460rm -f conftest.err conftest.$ac_ext
3461
Reid Spencera773bd52006-08-04 18:18:08 +00003462 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
3469/* end confdefs.h. */
3470#include <ac_nonexistent.h>
3471_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003472if { (ac_try="$ac_cpp conftest.$ac_ext"
3473case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476esac
3477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3490 fi
3491else
3492 ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3496continue
3497else
3498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 # Passes both tests.
3502ac_preproc_ok=:
3503break
3504fi
Reid Spencera773bd52006-08-04 18:18:08 +00003505
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506rm -f conftest.err conftest.$ac_ext
3507
3508done
3509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510rm -f conftest.err conftest.$ac_ext
3511if $ac_preproc_ok; then
3512 break
3513fi
3514
3515 done
3516 ac_cv_prog_CPP=$CPP
3517
3518fi
3519 CPP=$ac_cv_prog_CPP
3520else
3521 ac_cv_prog_CPP=$CPP
3522fi
Reid Spencera773bd52006-08-04 18:18:08 +00003523{ echo "$as_me:$LINENO: result: $CPP" >&5
3524echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003525ac_preproc_ok=false
3526for ac_c_preproc_warn_flag in '' yes
3527do
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545 Syntax error
3546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003547if { (ac_try="$ac_cpp conftest.$ac_ext"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563 else
3564 ac_cpp_err=
3565 fi
3566else
3567 ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570 :
3571else
3572 echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 # Broken: fails on valid input.
3576continue
3577fi
Reid Spencera773bd52006-08-04 18:18:08 +00003578
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579rm -f conftest.err conftest.$ac_ext
3580
Reid Spencera773bd52006-08-04 18:18:08 +00003581 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589#include <ac_nonexistent.h>
3590_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003591if { (ac_try="$ac_cpp conftest.$ac_ext"
3592case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 else
3608 ac_cpp_err=
3609 fi
3610else
3611 ac_cpp_err=yes
3612fi
3613if test -z "$ac_cpp_err"; then
3614 # Broken: success on invalid input.
3615continue
3616else
3617 echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 # Passes both tests.
3621ac_preproc_ok=:
3622break
3623fi
Reid Spencera773bd52006-08-04 18:18:08 +00003624
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625rm -f conftest.err conftest.$ac_ext
3626
3627done
3628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629rm -f conftest.err conftest.$ac_ext
3630if $ac_preproc_ok; then
3631 :
3632else
3633 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&5
3635echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636See \`config.log' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
3638fi
3639
John Criswell7a73b802003-06-30 21:59:07 +00003640ac_ext=c
3641ac_cpp='$CPP $CPPFLAGS'
3642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
John Criswell7a73b802003-06-30 21:59:07 +00003646
Reid Spencera773bd52006-08-04 18:18:08 +00003647{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003649if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
Reid Spencera773bd52006-08-04 18:18:08 +00003652 # Extract the first word of "grep ggrep" to use in msg output
3653if test -z "$GREP"; then
3654set dummy grep ggrep; ac_prog_name=$2
3655if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
Reid Spencera773bd52006-08-04 18:18:08 +00003658 ac_path_GREP_found=false
3659# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003661for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003662do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003665 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003666 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
3670 # Check for GNU $ac_path_GREP
3671case `"$ac_path_GREP" --version 2>&1` in
3672*GNU*)
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674*)
3675 ac_count=0
3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677 while :
3678 do
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 echo 'GREP' >> "conftest.nl"
3683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 ac_count=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003690 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695esac
3696
3697
3698 $ac_path_GREP_found && break 3
3699 done
3700done
3701
3702done
3703IFS=$as_save_IFS
3704
3705
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003706fi
Reid Spencera773bd52006-08-04 18:18:08 +00003707
3708GREP="$ac_cv_path_GREP"
3709if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3713fi
3714
3715else
3716 ac_cv_path_GREP=$GREP
3717fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003718
John Criswell7a73b802003-06-30 21:59:07 +00003719
Reid Spencera773bd52006-08-04 18:18:08 +00003720fi
3721{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723 GREP="$ac_cv_path_GREP"
3724
3725
3726{ echo "$as_me:$LINENO: checking for egrep" >&5
3727echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732 then ac_cv_path_EGREP="$GREP -E"
3733 else
3734 # Extract the first word of "egrep" to use in msg output
3735if test -z "$EGREP"; then
3736set dummy egrep; ac_prog_name=$2
3737if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 ac_path_EGREP_found=false
3741# Loop through the user's path and test for each of PROGNAME-LIST
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_prog in egrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
3752 # Check for GNU $ac_path_EGREP
3753case `"$ac_path_EGREP" --version 2>&1` in
3754*GNU*)
3755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756*)
3757 ac_count=0
3758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759 while :
3760 do
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
3764 echo 'EGREP' >> "conftest.nl"
3765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767 ac_count=`expr $ac_count + 1`
3768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP="$ac_path_EGREP"
3771 ac_path_EGREP_max=$ac_count
3772 fi
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3775 done
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777esac
3778
3779
3780 $ac_path_EGREP_found && break 3
3781 done
3782done
3783
3784done
3785IFS=$as_save_IFS
3786
3787
3788fi
3789
3790EGREP="$ac_cv_path_EGREP"
3791if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3795fi
3796
3797else
3798 ac_cv_path_EGREP=$EGREP
3799fi
3800
3801
3802 fi
3803fi
3804{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806 EGREP="$ac_cv_path_EGREP"
3807
3808
3809{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003811if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003820#include <stdlib.h>
3821#include <stdarg.h>
3822#include <string.h>
3823#include <float.h>
3824
John Criswell0c38eaf2003-09-10 15:17:25 +00003825int
3826main ()
3827{
3828
3829 ;
3830 return 0;
3831}
John Criswell7a73b802003-06-30 21:59:07 +00003832_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003833rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003834if { (ac_try="$ac_compile"
3835case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003841 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003846 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851esac
3852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
3862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003867 ac_cv_header_stdc=yes
3868else
3869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003870sed 's/^/| /' conftest.$ac_ext >&5
3871
Reid Spencera773bd52006-08-04 18:18:08 +00003872 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003873fi
Reid Spencera773bd52006-08-04 18:18:08 +00003874
3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003876
3877if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003880/* confdefs.h. */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
3884/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003885#include <string.h>
3886
3887_ACEOF
3888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003889 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003890 :
3891else
3892 ac_cv_header_stdc=no
3893fi
3894rm -f conftest*
3895
3896fi
3897
3898if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003906#include <stdlib.h>
3907
3908_ACEOF
3909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003910 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003911 :
3912else
3913 ac_cv_header_stdc=no
3914fi
3915rm -f conftest*
3916
3917fi
3918
3919if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921 if test "$cross_compiling" = yes; then
3922 :
3923else
3924 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003930#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003931#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003932#if ((' ' & 0x0FF) == 0x020)
3933# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003936# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003940# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941#endif
3942
3943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944int
3945main ()
3946{
3947 int i;
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003950 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003951 return 2;
3952 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003953}
3954_ACEOF
3955rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003956if { (ac_try="$ac_link"
3957case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969esac
3970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 :
3976else
3977 echo "$as_me: program exited with status $ac_status" >&5
3978echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003979sed 's/^/| /' conftest.$ac_ext >&5
3980
John Criswell7a73b802003-06-30 21:59:07 +00003981( exit $ac_status )
3982ac_cv_header_stdc=no
3983fi
Reid Spencera773bd52006-08-04 18:18:08 +00003984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3985fi
3986
3987
John Criswell7a73b802003-06-30 21:59:07 +00003988fi
3989fi
Reid Spencera773bd52006-08-04 18:18:08 +00003990{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003992if test $ac_cv_header_stdc = yes; then
3993
3994cat >>confdefs.h <<\_ACEOF
3995#define STDC_HEADERS 1
3996_ACEOF
3997
3998fi
3999
Reid Spencera773bd52006-08-04 18:18:08 +00004000# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
4012do
4013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h. */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h. */
4025$ac_includes_default
4026
4027#include <$ac_header>
4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (ac_try="$ac_compile"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047esac
4048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
4058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 eval "$as_ac_Header=no"
4069fi
4070
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072fi
4073ac_res=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075echo "${ECHO_T}$ac_res" >&6; }
4076if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h <<_ACEOF
4078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079_ACEOF
4080
4081fi
4082
4083done
4084
4085
4086{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091 # See if sys/param.h defines the BYTE_ORDER macro.
4092cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h. */
4098#include <sys/types.h>
4099#include <sys/param.h>
4100
4101int
4102main ()
4103{
4104#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 bogus endian macros
4106#endif
4107
4108 ;
4109 return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext
4113if { (ac_try="$ac_compile"
4114case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130esac
4131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 # It does; now see whether it defined to BIG_ENDIAN or not.
4147cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h. */
4153#include <sys/types.h>
4154#include <sys/param.h>
4155
4156int
4157main ()
4158{
4159#if BYTE_ORDER != BIG_ENDIAN
4160 not big endian
4161#endif
4162
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167rm -f conftest.$ac_objext
4168if { (ac_try="$ac_compile"
4169case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_c_bigendian=yes
4202else
4203 echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 ac_cv_c_bigendian=no
4207fi
4208
4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210else
4211 echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 # It does not; compile a test program.
4215if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian=unknown
4218 cat >conftest.$ac_ext <<_ACEOF
4219/* confdefs.h. */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
4223/* end confdefs.h. */
4224short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4230int
4231main ()
4232{
4233 _ascii (); _ebcdic ();
4234 ;
4235 return 0;
4236}
4237_ACEOF
4238rm -f conftest.$ac_objext
4239if { (ac_try="$ac_compile"
4240case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256esac
4257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273 ac_cv_c_bigendian=yes
4274fi
4275if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4278 else
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4281 fi
4282fi
4283else
4284 echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287
4288fi
4289
4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291else
4292 cat >conftest.$ac_ext <<_ACEOF
4293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
4297/* end confdefs.h. */
4298$ac_includes_default
4299int
4300main ()
4301{
4302
4303 /* Are we little or big endian? From Harbison&Steele. */
4304 union
4305 {
4306 long int l;
4307 char c[sizeof (long int)];
4308 } u;
4309 u.l = 1;
4310 return u.c[sizeof (long int) - 1] == 1;
4311
4312 ;
4313 return 0;
4314}
4315_ACEOF
4316rm -f conftest$ac_exeext
4317if { (ac_try="$ac_link"
4318case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330esac
4331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_c_bigendian=no
4337else
4338 echo "$as_me: program exited with status $ac_status" >&5
4339echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342( exit $ac_status )
4343ac_cv_c_bigendian=yes
4344fi
4345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346fi
4347
4348
4349fi
4350
4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352fi
4353{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355case $ac_cv_c_bigendian in
4356 yes)
4357 ENDIAN=big
4358 ;;
4359 no)
4360 ENDIAN=little
4361 ;;
4362 *)
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365echo "$as_me: error: unknown endianness
4366presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4368esac
4369
4370
4371if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4373
4374
4375{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4382else
4383 ac_build_prefix=${build_alias}-
4384
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386set dummy ${ac_build_prefix}gcc; ac_word=$2
4387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406done
4407done
4408IFS=$as_save_IFS
4409
4410fi
4411fi
4412BUILD_CC=$ac_cv_prog_BUILD_CC
4413if test -n "$BUILD_CC"; then
4414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415echo "${ECHO_T}$BUILD_CC" >&6; }
4416else
4417 { echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6; }
4419fi
4420
4421
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424set dummy gcc; ac_word=$2
4425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_BUILD_CC="gcc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444done
4445done
4446IFS=$as_save_IFS
4447
4448fi
4449fi
4450BUILD_CC=$ac_cv_prog_BUILD_CC
4451if test -n "$BUILD_CC"; then
4452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453echo "${ECHO_T}$BUILD_CC" >&6; }
4454else
4455 { echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6; }
4457fi
4458
4459
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462set dummy cc; ac_word=$2
4463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467else
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470else
4471 ac_prog_rejected=no
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4481 continue
4482 fi
4483 ac_cv_prog_BUILD_CC="cc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4486 fi
4487done
4488done
4489IFS=$as_save_IFS
4490
4491if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4494 shift
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4499 shift
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4501 fi
4502fi
4503fi
4504fi
4505BUILD_CC=$ac_cv_prog_BUILD_CC
4506if test -n "$BUILD_CC"; then
4507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508echo "${ECHO_T}$BUILD_CC" >&6; }
4509else
4510 { echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6; }
4512fi
4513
4514
4515 fi
4516 fi
4517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
4520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 rm -f conftest*
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 ac_cv_build_exeext=
4524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525 (eval $ac_build_link) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 for file in conftest.*; do
4530 case $file in
4531 *.c | *.o | *.obj) ;;
4532 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533 esac
4534 done
4535 else
4536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
4539 fi
4540 rm -f conftest*
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4542fi
4543fi
4544
4545BUILD_EXEEXT=""
4546test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549ac_build_exeext=$BUILD_EXEEXT
4550
4551else
4552 LLVM_CROSS_COMPILING=0
4553
4554fi
4555
Reid Spencer0b1e4662007-04-02 15:41:39 +00004556if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004557 cvsbuild="yes"
4558 optimize="no"
4559 CVSBUILD=CVSBUILD=1
4560
4561else
4562 cvsbuild="no"
4563 optimize="yes"
4564fi
4565
4566
4567# Check whether --enable-optimized was given.
4568if test "${enable_optimized+set}" = set; then
4569 enableval=$enable_optimized;
4570else
4571 enableval=$optimize
4572fi
4573
4574if test ${enableval} = "no" ; then
4575 ENABLE_OPTIMIZED=
4576
4577else
4578 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4579
4580fi
4581
4582# Check whether --enable-assertions was given.
4583if test "${enable_assertions+set}" = set; then
4584 enableval=$enable_assertions;
4585else
4586 enableval="yes"
4587fi
4588
4589if test ${enableval} = "yes" ; then
4590 DISABLE_ASSERTIONS=
4591
4592else
4593 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4594
4595fi
4596
David Greenea696d242007-06-28 19:36:08 +00004597# Check whether --enable-expensive-checks was given.
4598if test "${enable_expensive_checks+set}" = set; then
4599 enableval=$enable_expensive_checks;
4600else
4601 enableval="no"
4602fi
4603
4604if test ${enableval} = "yes" ; then
4605 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4606
4607 EXPENSIVE_CHECKS=yes
4608
4609else
4610 ENABLE_EXPENSIVE_CHECKS=
4611
4612 EXPENSIVE_CHECKS=no
4613
4614fi
4615
Reid Spencer8b2e1412006-11-17 03:32:33 +00004616# Check whether --enable-debug-runtime was given.
4617if test "${enable_debug_runtime+set}" = set; then
4618 enableval=$enable_debug_runtime;
4619else
4620 enableval=no
4621fi
4622
4623if test ${enableval} = "no" ; then
4624 DEBUG_RUNTIME=
4625
4626else
4627 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4628
4629fi
4630
Reid Spencera773bd52006-08-04 18:18:08 +00004631# Check whether --enable-jit was given.
4632if test "${enable_jit+set}" = set; then
4633 enableval=$enable_jit;
4634else
4635 enableval=default
4636fi
4637
4638if test ${enableval} = "no"
4639then
4640 JIT=
4641
4642else
4643 case "$llvm_cv_target_arch" in
4644 x86) TARGET_HAS_JIT=1
4645 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004646 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004647 ;;
4648 PowerPC) TARGET_HAS_JIT=1
4649 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004650 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004651 ;;
4652 Alpha) TARGET_HAS_JIT=1
4653 ;;
4654 IA64) TARGET_HAS_JIT=0
4655 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004656 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004657 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004658 Mips) TARGET_HAS_JIT=0
4659 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004660 *) TARGET_HAS_JIT=0
4661 ;;
4662 esac
4663fi
4664
4665# Check whether --enable-doxygen was given.
4666if test "${enable_doxygen+set}" = set; then
4667 enableval=$enable_doxygen;
4668else
4669 enableval=default
4670fi
4671
4672case "$enableval" in
4673 yes) ENABLE_DOXYGEN=1
4674 ;;
4675 no) ENABLE_DOXYGEN=0
4676 ;;
4677 default) ENABLE_DOXYGEN=0
4678 ;;
4679 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4680echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4681 { (exit 1); exit 1; }; } ;;
4682esac
4683
4684# Check whether --enable-threads was given.
4685if test "${enable_threads+set}" = set; then
4686 enableval=$enable_threads;
4687else
Reid Spencer65c5d752006-11-05 17:08:18 +00004688 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004689fi
4690
4691case "$enableval" in
4692 yes) ENABLE_THREADS=1
4693 ;;
4694 no) ENABLE_THREADS=0
4695 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004696 default) ENABLE_THREADS=1
4697 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004698 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4699echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4700 { (exit 1); exit 1; }; } ;;
4701esac
4702
4703cat >>confdefs.h <<_ACEOF
4704#define ENABLE_THREADS $ENABLE_THREADS
4705_ACEOF
4706
4707
Reid Spencer89b0d992006-12-16 22:07:52 +00004708# Check whether --enable-pic was given.
4709if test "${enable_pic+set}" = set; then
4710 enableval=$enable_pic;
4711else
4712 enableval=default
4713fi
4714
4715case "$enableval" in
4716 yes) ENABLE_PIC=1
4717 ;;
4718 no) ENABLE_PIC=0
4719 ;;
4720 default) ENABLE_PIC=0
4721 ;;
4722 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4723echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4724 { (exit 1); exit 1; }; } ;;
4725esac
4726
4727cat >>confdefs.h <<_ACEOF
4728#define ENABLE_PIC $ENABLE_PIC
4729_ACEOF
4730
4731
Reid Spencera773bd52006-08-04 18:18:08 +00004732TARGETS_TO_BUILD=""
4733# Check whether --enable-targets was given.
4734if test "${enable_targets+set}" = set; then
4735 enableval=$enable_targets;
4736else
4737 enableval=all
4738fi
4739
4740case "$enableval" in
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004741 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004742 host-only)
4743 case "$llvm_cv_target_arch" in
4744 x86) TARGETS_TO_BUILD="X86" ;;
4745 x86_64) TARGETS_TO_BUILD="X86" ;;
4746 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4747 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4748 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4749 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004750 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004751 Mips) TARGETS_TO_BUILD="Mips" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004752 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4753echo "$as_me: error: Can not set target to build" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4755 esac
4756 ;;
4757 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4758 case "$a_target" in
4759 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4760 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4761 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4762 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4763 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4764 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004765 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004766 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004767 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4768echo "$as_me: error: Unrecognized target $a_target" >&2;}
4769 { (exit 1); exit 1; }; } ;;
4770 esac
4771 done
4772 ;;
4773esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004774TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004775TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4776
4777
Reid Spencer65c5d752006-11-05 17:08:18 +00004778# Check whether --enable-cbe-printf-a was given.
4779if test "${enable_cbe_printf_a+set}" = set; then
4780 enableval=$enable_cbe_printf_a;
4781else
4782 enableval=default
4783fi
4784
4785case "$enableval" in
4786 yes) ENABLE_CBE_PRINTF_A=1
4787 ;;
4788 no) ENABLE_CBE_PRINTF_A=0
4789 ;;
4790 default) ENABLE_CBE_PRINTF_A=1
4791 ;;
4792 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4793echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4794 { (exit 1); exit 1; }; } ;;
4795esac
4796
4797cat >>confdefs.h <<_ACEOF
4798#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4799_ACEOF
4800
4801
Reid Spencera773bd52006-08-04 18:18:08 +00004802
4803# Check whether --with-llvmgccdir was given.
4804if test "${with_llvmgccdir+set}" = set; then
4805 withval=$with_llvmgccdir;
4806else
4807 withval=default
4808fi
4809
4810case "$withval" in
4811 default) WITH_LLVMGCCDIR=default ;;
4812 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4813 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4814echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4815 { (exit 1); exit 1; }; } ;;
4816esac
4817
4818
4819# Check whether --with-extra-options was given.
4820if test "${with_extra_options+set}" = set; then
4821 withval=$with_extra_options;
4822else
4823 withval=default
4824fi
4825
4826case "$withval" in
4827 default) EXTRA_OPTIONS= ;;
4828 *) EXTRA_OPTIONS=$withval ;;
4829esac
4830EXTRA_OPTIONS=$EXTRA_OPTIONS
4831
4832
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004833# Check whether --enable-bindings was given.
4834if test "${enable_bindings+set}" = set; then
4835 enableval=$enable_bindings;
4836else
4837 enableval=default
4838fi
4839
4840BINDINGS_TO_BUILD=""
4841case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004842 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004843 all ) BINDINGS_TO_BUILD="ocaml" ;;
4844 none | no) BINDINGS_TO_BUILD="" ;;
4845 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4846 case "$a_binding" in
4847 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4848 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4849echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4850 { (exit 1); exit 1; }; } ;;
4851 esac
4852 done
4853 ;;
4854esac
4855
Reid Spencera773bd52006-08-04 18:18:08 +00004856
Gordon Henriksenf0915682007-10-02 16:42:22 +00004857# Check whether --with-ocaml-libdir was given.
4858if test "${with_ocaml_libdir+set}" = set; then
4859 withval=$with_ocaml_libdir;
4860else
4861 withval=auto
4862fi
4863
4864case "$withval" in
4865 auto) with_ocaml_libdir="$withval" ;;
4866 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4867 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4868echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4869 { (exit 1); exit 1; }; } ;;
4870esac
4871
4872
Reid Spencera773bd52006-08-04 18:18:08 +00004873ac_ext=c
4874ac_cpp='$CPP $CPPFLAGS'
4875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4879echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4880# On Suns, sometimes $CPP names a directory.
4881if test -n "$CPP" && test -d "$CPP"; then
4882 CPP=
4883fi
4884if test -z "$CPP"; then
4885 if test "${ac_cv_prog_CPP+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888 # Double quotes because CPP needs to be expanded
4889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4890 do
4891 ac_preproc_ok=false
4892for ac_c_preproc_warn_flag in '' yes
4893do
4894 # Use a header file that comes with gcc, so configuring glibc
4895 # with a fresh cross-compiler works.
4896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4897 # <limits.h> exists even on freestanding compilers.
4898 # On the NeXT, cc -E runs the code through the compiler's parser,
4899 # not just through cpp. "Syntax error" is here to catch this case.
4900 cat >conftest.$ac_ext <<_ACEOF
4901/* confdefs.h. */
4902_ACEOF
4903cat confdefs.h >>conftest.$ac_ext
4904cat >>conftest.$ac_ext <<_ACEOF
4905/* end confdefs.h. */
4906#ifdef __STDC__
4907# include <limits.h>
4908#else
4909# include <assert.h>
4910#endif
4911 Syntax error
4912_ACEOF
4913if { (ac_try="$ac_cpp conftest.$ac_ext"
4914case "(($ac_try" in
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4917esac
4918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } >/dev/null; then
4926 if test -s conftest.err; then
4927 ac_cpp_err=$ac_c_preproc_warn_flag
4928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4929 else
4930 ac_cpp_err=
4931 fi
4932else
4933 ac_cpp_err=yes
4934fi
4935if test -z "$ac_cpp_err"; then
4936 :
4937else
4938 echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941 # Broken: fails on valid input.
4942continue
4943fi
4944
4945rm -f conftest.err conftest.$ac_ext
4946
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat >conftest.$ac_ext <<_ACEOF
4950/* confdefs.h. */
4951_ACEOF
4952cat confdefs.h >>conftest.$ac_ext
4953cat >>conftest.$ac_ext <<_ACEOF
4954/* end confdefs.h. */
4955#include <ac_nonexistent.h>
4956_ACEOF
4957if { (ac_try="$ac_cpp conftest.$ac_ext"
4958case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961esac
4962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } >/dev/null; then
4970 if test -s conftest.err; then
4971 ac_cpp_err=$ac_c_preproc_warn_flag
4972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4973 else
4974 ac_cpp_err=
4975 fi
4976else
4977 ac_cpp_err=yes
4978fi
4979if test -z "$ac_cpp_err"; then
4980 # Broken: success on invalid input.
4981continue
4982else
4983 echo "$as_me: failed program was:" >&5
4984sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 # Passes both tests.
4987ac_preproc_ok=:
4988break
4989fi
4990
4991rm -f conftest.err conftest.$ac_ext
4992
4993done
4994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4995rm -f conftest.err conftest.$ac_ext
4996if $ac_preproc_ok; then
4997 break
4998fi
4999
5000 done
5001 ac_cv_prog_CPP=$CPP
5002
5003fi
5004 CPP=$ac_cv_prog_CPP
5005else
5006 ac_cv_prog_CPP=$CPP
5007fi
5008{ echo "$as_me:$LINENO: result: $CPP" >&5
5009echo "${ECHO_T}$CPP" >&6; }
5010ac_preproc_ok=false
5011for ac_c_preproc_warn_flag in '' yes
5012do
5013 # Use a header file that comes with gcc, so configuring glibc
5014 # with a fresh cross-compiler works.
5015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016 # <limits.h> exists even on freestanding compilers.
5017 # On the NeXT, cc -E runs the code through the compiler's parser,
5018 # not just through cpp. "Syntax error" is here to catch this case.
5019 cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h. */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h. */
5025#ifdef __STDC__
5026# include <limits.h>
5027#else
5028# include <assert.h>
5029#endif
5030 Syntax error
5031_ACEOF
5032if { (ac_try="$ac_cpp conftest.$ac_ext"
5033case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036esac
5037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } >/dev/null; then
5045 if test -s conftest.err; then
5046 ac_cpp_err=$ac_c_preproc_warn_flag
5047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5048 else
5049 ac_cpp_err=
5050 fi
5051else
5052 ac_cpp_err=yes
5053fi
5054if test -z "$ac_cpp_err"; then
5055 :
5056else
5057 echo "$as_me: failed program was:" >&5
5058sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 # Broken: fails on valid input.
5061continue
5062fi
5063
5064rm -f conftest.err conftest.$ac_ext
5065
5066 # OK, works on sane cases. Now check whether nonexistent headers
5067 # can be detected and how.
5068 cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h. */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h. */
5074#include <ac_nonexistent.h>
5075_ACEOF
5076if { (ac_try="$ac_cpp conftest.$ac_ext"
5077case "(($ac_try" in
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5080esac
5081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_c_preproc_warn_flag
5091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092 else
5093 ac_cpp_err=
5094 fi
5095else
5096 ac_cpp_err=yes
5097fi
5098if test -z "$ac_cpp_err"; then
5099 # Broken: success on invalid input.
5100continue
5101else
5102 echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 # Passes both tests.
5106ac_preproc_ok=:
5107break
5108fi
5109
5110rm -f conftest.err conftest.$ac_ext
5111
5112done
5113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5114rm -f conftest.err conftest.$ac_ext
5115if $ac_preproc_ok; then
5116 :
5117else
5118 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5119See \`config.log' for more details." >&5
5120echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5121See \`config.log' for more details." >&2;}
5122 { (exit 1); exit 1; }; }
5123fi
5124
5125ac_ext=c
5126ac_cpp='$CPP $CPPFLAGS'
5127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129ac_compiler_gnu=$ac_cv_c_compiler_gnu
5130
5131ac_ext=c
5132ac_cpp='$CPP $CPPFLAGS'
5133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136if test -n "$ac_tool_prefix"; then
5137 for ac_prog in gcc
5138 do
5139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143if test "${ac_cv_prog_CC+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146 if test -n "$CC"; then
5147 ac_cv_prog_CC="$CC" # Let the user override the test.
5148else
5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160done
5161done
5162IFS=$as_save_IFS
5163
5164fi
5165fi
5166CC=$ac_cv_prog_CC
5167if test -n "$CC"; then
5168 { echo "$as_me:$LINENO: result: $CC" >&5
5169echo "${ECHO_T}$CC" >&6; }
5170else
5171 { echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6; }
5173fi
5174
5175
5176 test -n "$CC" && break
5177 done
5178fi
5179if test -z "$CC"; then
5180 ac_ct_CC=$CC
5181 for ac_prog in gcc
5182do
5183 # Extract the first word of "$ac_prog", so it can be a program name with args.
5184set dummy $ac_prog; ac_word=$2
5185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190 if test -n "$ac_ct_CC"; then
5191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5192else
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_ac_ct_CC="$ac_prog"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204done
5205done
5206IFS=$as_save_IFS
5207
5208fi
5209fi
5210ac_ct_CC=$ac_cv_prog_ac_ct_CC
5211if test -n "$ac_ct_CC"; then
5212 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5213echo "${ECHO_T}$ac_ct_CC" >&6; }
5214else
5215 { echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6; }
5217fi
5218
5219
5220 test -n "$ac_ct_CC" && break
5221done
5222
5223 if test "x$ac_ct_CC" = x; then
5224 CC=""
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227yes:)
5228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5229whose name does not start with the host triplet. If you think this
5230configuration is useful to you, please write to autoconf@gnu.org." >&5
5231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5232whose name does not start with the host triplet. If you think this
5233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5234ac_tool_warned=yes ;;
5235esac
5236 CC=$ac_ct_CC
5237 fi
5238fi
5239
5240
5241test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5242See \`config.log' for more details." >&5
5243echo "$as_me: error: no acceptable C compiler found in \$PATH
5244See \`config.log' for more details." >&2;}
5245 { (exit 1); exit 1; }; }
5246
5247# Provide some information about the compiler.
5248echo "$as_me:$LINENO: checking for C compiler version" >&5
5249ac_compiler=`set X $ac_compile; echo $2`
5250{ (ac_try="$ac_compiler --version >&5"
5251case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_compiler --version >&5") 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }
5260{ (ac_try="$ac_compiler -v >&5"
5261case "(($ac_try" in
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5264esac
5265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_compiler -v >&5") 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }
5270{ (ac_try="$ac_compiler -V >&5"
5271case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274esac
5275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_compiler -V >&5") 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }
5280
5281{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5282echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5283if test "${ac_cv_c_compiler_gnu+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285else
5286 cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292
5293int
5294main ()
5295{
5296#ifndef __GNUC__
5297 choke me
5298#endif
5299
5300 ;
5301 return 0;
5302}
5303_ACEOF
5304rm -f conftest.$ac_objext
5305if { (ac_try="$ac_compile"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compile") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5319 { (case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322esac
5323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_try") 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; } &&
5328 { ac_try='test -s conftest.$ac_objext'
5329 { (case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332esac
5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_try") 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_compiler_gnu=yes
5339else
5340 echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ac_compiler_gnu=no
5344fi
5345
5346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347ac_cv_c_compiler_gnu=$ac_compiler_gnu
5348
5349fi
5350{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5351echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5352GCC=`test $ac_compiler_gnu = yes && echo yes`
5353ac_test_CFLAGS=${CFLAGS+set}
5354ac_save_CFLAGS=$CFLAGS
5355{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5356echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5357if test "${ac_cv_prog_cc_g+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359else
5360 ac_save_c_werror_flag=$ac_c_werror_flag
5361 ac_c_werror_flag=yes
5362 ac_cv_prog_cc_g=no
5363 CFLAGS="-g"
5364 cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370
5371int
5372main ()
5373{
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379rm -f conftest.$ac_objext
5380if { (ac_try="$ac_compile"
5381case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384esac
5385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_compile") 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5394 { (case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5397esac
5398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_try") 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407esac
5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_try") 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_prog_cc_g=yes
5414else
5415 echo "$as_me: failed program was:" >&5
5416sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 CFLAGS=""
5419 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */
5425
5426int
5427main ()
5428{
5429
5430 ;
5431 return 0;
5432}
5433_ACEOF
5434rm -f conftest.$ac_objext
5435if { (ac_try="$ac_compile"
5436case "(($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_compile") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5449 { (case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452esac
5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_try") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_try") 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 :
5469else
5470 echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 ac_c_werror_flag=$ac_save_c_werror_flag
5474 CFLAGS="-g"
5475 cat >conftest.$ac_ext <<_ACEOF
5476/* confdefs.h. */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */
5481
5482int
5483main ()
5484{
5485
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490rm -f conftest.$ac_objext
5491if { (ac_try="$ac_compile"
5492case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495esac
5496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_compile") 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5505 { (case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508esac
5509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_try") 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try='test -s conftest.$ac_objext'
5515 { (case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518esac
5519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_try") 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 ac_cv_prog_cc_g=yes
5525else
5526 echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
5529
5530fi
5531
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533fi
5534
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536fi
5537
5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 ac_c_werror_flag=$ac_save_c_werror_flag
5540fi
5541{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5542echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5543if test "$ac_test_CFLAGS" = set; then
5544 CFLAGS=$ac_save_CFLAGS
5545elif test $ac_cv_prog_cc_g = yes; then
5546 if test "$GCC" = yes; then
5547 CFLAGS="-g -O2"
5548 else
5549 CFLAGS="-g"
5550 fi
5551else
5552 if test "$GCC" = yes; then
5553 CFLAGS="-O2"
5554 else
5555 CFLAGS=
5556 fi
5557fi
5558{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5559echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5560if test "${ac_cv_prog_cc_c89+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563 ac_cv_prog_cc_c89=no
5564ac_save_CC=$CC
5565cat >conftest.$ac_ext <<_ACEOF
5566/* confdefs.h. */
5567_ACEOF
5568cat confdefs.h >>conftest.$ac_ext
5569cat >>conftest.$ac_ext <<_ACEOF
5570/* end confdefs.h. */
5571#include <stdarg.h>
5572#include <stdio.h>
5573#include <sys/types.h>
5574#include <sys/stat.h>
5575/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5576struct buf { int x; };
5577FILE * (*rcsopen) (struct buf *, struct stat *, int);
5578static char *e (p, i)
5579 char **p;
5580 int i;
5581{
5582 return p[i];
5583}
5584static char *f (char * (*g) (char **, int), char **p, ...)
5585{
5586 char *s;
5587 va_list v;
5588 va_start (v,p);
5589 s = g (p, va_arg (v,int));
5590 va_end (v);
5591 return s;
5592}
5593
5594/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5595 function prototypes and stuff, but not '\xHH' hex character constants.
5596 These don't provoke an error unfortunately, instead are silently treated
5597 as 'x'. The following induces an error, until -std is added to get
5598 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5599 array size at least. It's necessary to write '\x00'==0 to get something
5600 that's true only with -std. */
5601int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5602
5603/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5604 inside strings and character constants. */
5605#define FOO(x) 'x'
5606int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5607
5608int test (int i, double x);
5609struct s1 {int (*f) (int a);};
5610struct s2 {int (*f) (double a);};
5611int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5612int argc;
5613char **argv;
5614int
5615main ()
5616{
5617return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5623 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5624do
5625 CC="$ac_save_CC $ac_arg"
5626 rm -f conftest.$ac_objext
5627if { (ac_try="$ac_compile"
5628case "(($ac_try" in
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5631esac
5632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5641 { (case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_try") 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest.$ac_objext'
5651 { (case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_try") 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5660 ac_cv_prog_cc_c89=$ac_arg
5661else
5662 echo "$as_me: failed program was:" >&5
5663sed 's/^/| /' conftest.$ac_ext >&5
5664
5665
5666fi
5667
5668rm -f core conftest.err conftest.$ac_objext
5669 test "x$ac_cv_prog_cc_c89" != "xno" && break
5670done
5671rm -f conftest.$ac_ext
5672CC=$ac_save_CC
5673
5674fi
5675# AC_CACHE_VAL
5676case "x$ac_cv_prog_cc_c89" in
5677 x)
5678 { echo "$as_me:$LINENO: result: none needed" >&5
5679echo "${ECHO_T}none needed" >&6; } ;;
5680 xno)
5681 { echo "$as_me:$LINENO: result: unsupported" >&5
5682echo "${ECHO_T}unsupported" >&6; } ;;
5683 *)
5684 CC="$CC $ac_cv_prog_cc_c89"
5685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5686echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5687esac
5688
5689
5690ac_ext=c
5691ac_cpp='$CPP $CPPFLAGS'
5692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694ac_compiler_gnu=$ac_cv_c_compiler_gnu
5695
5696ac_ext=cpp
5697ac_cpp='$CXXCPP $CPPFLAGS'
5698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5701if test -z "$CXX"; then
5702 if test -n "$CCC"; then
5703 CXX=$CCC
5704 else
5705 if test -n "$ac_tool_prefix"; then
5706 for ac_prog in g++
5707 do
5708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712if test "${ac_cv_prog_CXX+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715 if test -n "$CXX"; then
5716 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729done
5730done
5731IFS=$as_save_IFS
5732
5733fi
5734fi
5735CXX=$ac_cv_prog_CXX
5736if test -n "$CXX"; then
5737 { echo "$as_me:$LINENO: result: $CXX" >&5
5738echo "${ECHO_T}$CXX" >&6; }
5739else
5740 { echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6; }
5742fi
5743
5744
5745 test -n "$CXX" && break
5746 done
5747fi
5748if test -z "$CXX"; then
5749 ac_ct_CXX=$CXX
5750 for ac_prog in g++
5751do
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753set dummy $ac_prog; ac_word=$2
5754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759 if test -n "$ac_ct_CXX"; then
5760 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_CXX="$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
5774done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5780if test -n "$ac_ct_CXX"; then
5781 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5782echo "${ECHO_T}$ac_ct_CXX" >&6; }
5783else
5784 { echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6; }
5786fi
5787
5788
5789 test -n "$ac_ct_CXX" && break
5790done
5791
5792 if test "x$ac_ct_CXX" = x; then
5793 CXX="g++"
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796yes:)
5797{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5798whose name does not start with the host triplet. If you think this
5799configuration is useful to you, please write to autoconf@gnu.org." >&5
5800echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5801whose name does not start with the host triplet. If you think this
5802configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5803ac_tool_warned=yes ;;
5804esac
5805 CXX=$ac_ct_CXX
5806 fi
5807fi
5808
5809 fi
5810fi
5811# Provide some information about the compiler.
5812echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5813ac_compiler=`set X $ac_compile; echo $2`
5814{ (ac_try="$ac_compiler --version >&5"
5815case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compiler --version >&5") 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }
5824{ (ac_try="$ac_compiler -v >&5"
5825case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compiler -v >&5") 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }
5834{ (ac_try="$ac_compiler -V >&5"
5835case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838esac
5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compiler -V >&5") 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }
5844
5845{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5846echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5847if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849else
5850 cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
5856
5857int
5858main ()
5859{
5860#ifndef __GNUC__
5861 choke me
5862#endif
5863
5864 ;
5865 return 0;
5866}
5867_ACEOF
5868rm -f conftest.$ac_objext
5869if { (ac_try="$ac_compile"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; } &&
5892 { ac_try='test -s conftest.$ac_objext'
5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_compiler_gnu=yes
5903else
5904 echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_compiler_gnu=no
5908fi
5909
5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5912
5913fi
5914{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5915echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5916GXX=`test $ac_compiler_gnu = yes && echo yes`
5917ac_test_CXXFLAGS=${CXXFLAGS+set}
5918ac_save_CXXFLAGS=$CXXFLAGS
5919{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5920echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5921if test "${ac_cv_prog_cxx_g+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923else
5924 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5925 ac_cxx_werror_flag=yes
5926 ac_cv_prog_cxx_g=no
5927 CXXFLAGS="-g"
5928 cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h. */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h. */
5934
5935int
5936main ()
5937{
5938
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext
5944if { (ac_try="$ac_compile"
5945case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5958 { (case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961esac
5962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_try") 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; } &&
5967 { ac_try='test -s conftest.$ac_objext'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971esac
5972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5977 ac_cv_prog_cxx_g=yes
5978else
5979 echo "$as_me: failed program was:" >&5
5980sed 's/^/| /' conftest.$ac_ext >&5
5981
5982 CXXFLAGS=""
5983 cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h. */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h. */
5989
5990int
5991main ()
5992{
5993
5994 ;
5995 return 0;
5996}
5997_ACEOF
5998rm -f conftest.$ac_objext
5999if { (ac_try="$ac_compile"
6000case "(($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_compile") 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 :
6033else
6034 echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
6037 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6038 CXXFLAGS="-g"
6039 cat >conftest.$ac_ext <<_ACEOF
6040/* confdefs.h. */
6041_ACEOF
6042cat confdefs.h >>conftest.$ac_ext
6043cat >>conftest.$ac_ext <<_ACEOF
6044/* end confdefs.h. */
6045
6046int
6047main ()
6048{
6049
6050 ;
6051 return 0;
6052}
6053_ACEOF
6054rm -f conftest.$ac_objext
6055if { (ac_try="$ac_compile"
6056case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059esac
6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compile") 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6069 { (case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072esac
6073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_try") 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try='test -s conftest.$ac_objext'
6079 { (case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082esac
6083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_try") 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_prog_cxx_g=yes
6089else
6090 echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093
6094fi
6095
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097fi
6098
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100fi
6101
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6104fi
6105{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6106echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6107if test "$ac_test_CXXFLAGS" = set; then
6108 CXXFLAGS=$ac_save_CXXFLAGS
6109elif test $ac_cv_prog_cxx_g = yes; then
6110 if test "$GXX" = yes; then
6111 CXXFLAGS="-g -O2"
6112 else
6113 CXXFLAGS="-g"
6114 fi
6115else
6116 if test "$GXX" = yes; then
6117 CXXFLAGS="-O2"
6118 else
6119 CXXFLAGS=
6120 fi
6121fi
6122ac_ext=c
6123ac_cpp='$CPP $CPPFLAGS'
6124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127
6128{ echo "$as_me:$LINENO: checking " >&5
6129echo $ECHO_N "checking ... $ECHO_C" >&6; }
6130if test "${ac_cv_has_flex+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133 for ac_prog in flex lex
6134do
6135 # Extract the first word of "$ac_prog", so it can be a program name with args.
6136set dummy $ac_prog; ac_word=$2
6137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139if test "${ac_cv_prog_LEX+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 if test -n "$LEX"; then
6143 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_LEX="$ac_prog"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156done
6157done
6158IFS=$as_save_IFS
6159
6160fi
6161fi
6162LEX=$ac_cv_prog_LEX
6163if test -n "$LEX"; then
6164 { echo "$as_me:$LINENO: result: $LEX" >&5
6165echo "${ECHO_T}$LEX" >&6; }
6166else
6167 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
6169fi
6170
6171
6172 test -n "$LEX" && break
6173done
6174test -n "$LEX" || LEX=":"
6175
6176if test -z "$LEXLIB"
6177then
6178 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6179echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6180if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183 ac_check_lib_save_LIBS=$LIBS
6184LIBS="-lfl $LIBS"
6185cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191
6192/* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
6195#ifdef __cplusplus
6196extern "C"
6197#endif
6198char yywrap ();
6199int
6200main ()
6201{
6202return yywrap ();
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext conftest$ac_exeext
6208if { (ac_try="$ac_link"
6209case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_link") 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6222 { (case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_try") 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235esac
6236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_try") 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_lib_fl_yywrap=yes
6242else
6243 echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_cv_lib_fl_yywrap=no
6247fi
6248
6249rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251LIBS=$ac_check_lib_save_LIBS
6252fi
6253{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6254echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6255if test $ac_cv_lib_fl_yywrap = yes; then
6256 LEXLIB="-lfl"
6257else
6258 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6259echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6260if test "${ac_cv_lib_l_yywrap+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else
6263 ac_check_lib_save_LIBS=$LIBS
6264LIBS="-ll $LIBS"
6265cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
6271
6272/* Override any GCC internal prototype to avoid an error.
6273 Use char because int might match the return type of a GCC
6274 builtin and then its argument prototype would still apply. */
6275#ifdef __cplusplus
6276extern "C"
6277#endif
6278char yywrap ();
6279int
6280main ()
6281{
6282return yywrap ();
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext conftest$ac_exeext
6288if { (ac_try="$ac_link"
6289case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_link") 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6302 { (case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305esac
6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_try") 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest$ac_exeext'
6312 { (case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315esac
6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_try") 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_lib_l_yywrap=yes
6322else
6323 echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 ac_cv_lib_l_yywrap=no
6327fi
6328
6329rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext conftest.$ac_ext
6331LIBS=$ac_check_lib_save_LIBS
6332fi
6333{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6334echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6335if test $ac_cv_lib_l_yywrap = yes; then
6336 LEXLIB="-ll"
6337fi
6338
6339fi
6340
6341fi
6342
6343if test "x$LEX" != "x:"; then
6344 { echo "$as_me:$LINENO: checking lex output file root" >&5
6345echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6346if test "${ac_cv_prog_lex_root+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6348else
6349 # The minimal lex program is just a single line: %%. But some broken lexes
6350# (Solaris, I think it was) want two %% lines, so accommodate them.
6351cat >conftest.l <<_ACEOF
6352%%
6353%%
6354_ACEOF
6355{ (ac_try="$LEX conftest.l"
6356case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359esac
6360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$LEX conftest.l") 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }
6365if test -f lex.yy.c; then
6366 ac_cv_prog_lex_root=lex.yy
6367elif test -f lexyy.c; then
6368 ac_cv_prog_lex_root=lexyy
6369else
6370 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6371echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6372 { (exit 1); exit 1; }; }
6373fi
6374fi
6375{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6376echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6377rm -f conftest.l
6378LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6379
6380{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6381echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6382if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384else
6385 # POSIX says lex can declare yytext either as a pointer or an array; the
6386# default is implementation-dependent. Figure out which it is, since
6387# not all implementations provide the %pointer and %array declarations.
6388ac_cv_prog_lex_yytext_pointer=no
6389echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6390ac_save_LIBS=$LIBS
6391LIBS="$LIBS $LEXLIB"
6392cat >conftest.$ac_ext <<_ACEOF
6393`cat $LEX_OUTPUT_ROOT.c`
6394_ACEOF
6395rm -f conftest.$ac_objext conftest$ac_exeext
6396if { (ac_try="$ac_link"
6397case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400esac
6401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_link") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6410 { (case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413esac
6414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_try") 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest$ac_exeext'
6420 { (case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423esac
6424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_try") 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_prog_lex_yytext_pointer=yes
6430else
6431 echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434
6435fi
6436
6437rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6439LIBS=$ac_save_LIBS
6440rm -f "${LEX_OUTPUT_ROOT}.c"
6441
6442fi
6443{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6444echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6445if test $ac_cv_prog_lex_yytext_pointer = yes; then
6446
6447cat >>confdefs.h <<\_ACEOF
6448#define YYTEXT_POINTER 1
6449_ACEOF
6450
6451fi
6452
6453fi
6454
6455fi
6456{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6457echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6458if test "$LEX" != "flex"; then
6459 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6460echo "$as_me: error: flex not found but required" >&2;}
6461 { (exit 1); exit 1; }; }
6462else
6463 FLEX=flex
6464
6465fi
6466
6467{ echo "$as_me:$LINENO: checking " >&5
6468echo $ECHO_N "checking ... $ECHO_C" >&6; }
6469if test "${llvm_cv_has_bison+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472 for ac_prog in 'bison -y' byacc
6473do
6474 # Extract the first word of "$ac_prog", so it can be a program name with args.
6475set dummy $ac_prog; ac_word=$2
6476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478if test "${ac_cv_prog_YACC+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480else
6481 if test -n "$YACC"; then
6482 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6483else
6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH
6486do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_YACC="$ac_prog"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495done
6496done
6497IFS=$as_save_IFS
6498
6499fi
6500fi
6501YACC=$ac_cv_prog_YACC
6502if test -n "$YACC"; then
6503 { echo "$as_me:$LINENO: result: $YACC" >&5
6504echo "${ECHO_T}$YACC" >&6; }
6505else
6506 { echo "$as_me:$LINENO: result: no" >&5
6507echo "${ECHO_T}no" >&6; }
6508fi
6509
6510
6511 test -n "$YACC" && break
6512done
6513test -n "$YACC" || YACC="yacc"
6514
6515fi
6516{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6517echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6518if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006519
6520 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6521echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006522else
6523 BISON=bison
6524
6525fi
6526
6527{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6528echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6529if test "${lt_cv_path_NM+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532 if test -n "$NM"; then
6533 # Let the user override the test.
6534 lt_cv_path_NM="$NM"
6535else
6536 lt_nm_to_check="${ac_tool_prefix}nm"
6537 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6538 lt_nm_to_check="$lt_nm_to_check nm"
6539 fi
6540 for lt_tmp_nm in $lt_nm_to_check; do
6541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6542 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6543 IFS="$lt_save_ifs"
6544 test -z "$ac_dir" && ac_dir=.
6545 tmp_nm="$ac_dir/$lt_tmp_nm"
6546 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6547 # Check to see if the nm accepts a BSD-compat flag.
6548 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6549 # nm: unknown option "B" ignored
6550 # Tru64's nm complains that /dev/null is an invalid object file
6551 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6552 */dev/null* | *'Invalid file or object type'*)
6553 lt_cv_path_NM="$tmp_nm -B"
6554 break
6555 ;;
6556 *)
6557 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6558 */dev/null*)
6559 lt_cv_path_NM="$tmp_nm -p"
6560 break
6561 ;;
6562 *)
6563 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6564 continue # so that we can try to find one that supports BSD flags
6565 ;;
6566 esac
6567 ;;
6568 esac
6569 fi
6570 done
6571 IFS="$lt_save_ifs"
6572 done
6573 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6574fi
6575fi
6576{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6577echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6578NM="$lt_cv_path_NM"
6579
6580
6581
6582{ echo "$as_me:$LINENO: checking for GNU make" >&5
6583echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6584if test "${llvm_cv_gnu_make_command+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587 llvm_cv_gnu_make_command=''
6588 for a in "$MAKE" make gmake gnumake ; do
6589 if test -z "$a" ; then continue ; fi ;
6590 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6591 then
6592 llvm_cv_gnu_make_command=$a ;
6593 break;
6594 fi
6595 done
6596fi
6597{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6598echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6599 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6600 ifGNUmake='' ;
6601 else
6602 ifGNUmake='#' ;
6603 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6604echo "${ECHO_T}\"Not found\"" >&6; };
6605 fi
6606
6607
6608{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6609echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6610LN_S=$as_ln_s
6611if test "$LN_S" = "ln -s"; then
6612 { echo "$as_me:$LINENO: result: yes" >&5
6613echo "${ECHO_T}yes" >&6; }
6614else
6615 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6616echo "${ECHO_T}no, using $LN_S" >&6; }
6617fi
6618
6619# Extract the first word of "cmp", so it can be a program name with args.
6620set dummy cmp; ac_word=$2
6621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623if test "${ac_cv_path_CMP+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626 case $CMP in
6627 [\\/]* | ?:[\\/]*)
6628 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6629 ;;
6630 *)
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642done
6643done
6644IFS=$as_save_IFS
6645
6646 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6647 ;;
6648esac
6649fi
6650CMP=$ac_cv_path_CMP
6651if test -n "$CMP"; then
6652 { echo "$as_me:$LINENO: result: $CMP" >&5
6653echo "${ECHO_T}$CMP" >&6; }
6654else
6655 { echo "$as_me:$LINENO: result: no" >&5
6656echo "${ECHO_T}no" >&6; }
6657fi
6658
6659
6660# Extract the first word of "cp", so it can be a program name with args.
6661set dummy cp; ac_word=$2
6662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664if test "${ac_cv_path_CP+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667 case $CP in
6668 [\\/]* | ?:[\\/]*)
6669 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6670 ;;
6671 *)
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683done
6684done
6685IFS=$as_save_IFS
6686
6687 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6688 ;;
6689esac
6690fi
6691CP=$ac_cv_path_CP
6692if test -n "$CP"; then
6693 { echo "$as_me:$LINENO: result: $CP" >&5
6694echo "${ECHO_T}$CP" >&6; }
6695else
6696 { echo "$as_me:$LINENO: result: no" >&5
6697echo "${ECHO_T}no" >&6; }
6698fi
6699
6700
6701# Extract the first word of "date", so it can be a program name with args.
6702set dummy date; ac_word=$2
6703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705if test "${ac_cv_path_DATE+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707else
6708 case $DATE in
6709 [\\/]* | ?:[\\/]*)
6710 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6711 ;;
6712 *)
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724done
6725done
6726IFS=$as_save_IFS
6727
6728 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6729 ;;
6730esac
6731fi
6732DATE=$ac_cv_path_DATE
6733if test -n "$DATE"; then
6734 { echo "$as_me:$LINENO: result: $DATE" >&5
6735echo "${ECHO_T}$DATE" >&6; }
6736else
6737 { echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6; }
6739fi
6740
6741
6742# Extract the first word of "find", so it can be a program name with args.
6743set dummy find; ac_word=$2
6744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746if test "${ac_cv_path_FIND+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748else
6749 case $FIND in
6750 [\\/]* | ?:[\\/]*)
6751 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6752 ;;
6753 *)
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765done
6766done
6767IFS=$as_save_IFS
6768
6769 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6770 ;;
6771esac
6772fi
6773FIND=$ac_cv_path_FIND
6774if test -n "$FIND"; then
6775 { echo "$as_me:$LINENO: result: $FIND" >&5
6776echo "${ECHO_T}$FIND" >&6; }
6777else
6778 { echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6; }
6780fi
6781
6782
6783# Extract the first word of "grep", so it can be a program name with args.
6784set dummy grep; ac_word=$2
6785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787if test "${ac_cv_path_GREP+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790 case $GREP in
6791 [\\/]* | ?:[\\/]*)
6792 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6793 ;;
6794 *)
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806done
6807done
6808IFS=$as_save_IFS
6809
6810 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6811 ;;
6812esac
6813fi
6814GREP=$ac_cv_path_GREP
6815if test -n "$GREP"; then
6816 { echo "$as_me:$LINENO: result: $GREP" >&5
6817echo "${ECHO_T}$GREP" >&6; }
6818else
6819 { echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6; }
6821fi
6822
6823
6824# Extract the first word of "mkdir", so it can be a program name with args.
6825set dummy mkdir; ac_word=$2
6826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828if test "${ac_cv_path_MKDIR+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831 case $MKDIR in
6832 [\\/]* | ?:[\\/]*)
6833 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6834 ;;
6835 *)
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6846 fi
6847done
6848done
6849IFS=$as_save_IFS
6850
6851 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6852 ;;
6853esac
6854fi
6855MKDIR=$ac_cv_path_MKDIR
6856if test -n "$MKDIR"; then
6857 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6858echo "${ECHO_T}$MKDIR" >&6; }
6859else
6860 { echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6; }
6862fi
6863
6864
6865# Extract the first word of "mv", so it can be a program name with args.
6866set dummy mv; ac_word=$2
6867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869if test "${ac_cv_path_MV+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 case $MV in
6873 [\\/]* | ?:[\\/]*)
6874 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6875 ;;
6876 *)
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888done
6889done
6890IFS=$as_save_IFS
6891
6892 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6893 ;;
6894esac
6895fi
6896MV=$ac_cv_path_MV
6897if test -n "$MV"; then
6898 { echo "$as_me:$LINENO: result: $MV" >&5
6899echo "${ECHO_T}$MV" >&6; }
6900else
6901 { echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6; }
6903fi
6904
6905
6906if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6908set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911if test "${ac_cv_prog_RANLIB+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913else
6914 if test -n "$RANLIB"; then
6915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6916else
6917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928done
6929done
6930IFS=$as_save_IFS
6931
6932fi
6933fi
6934RANLIB=$ac_cv_prog_RANLIB
6935if test -n "$RANLIB"; then
6936 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6937echo "${ECHO_T}$RANLIB" >&6; }
6938else
6939 { echo "$as_me:$LINENO: result: no" >&5
6940echo "${ECHO_T}no" >&6; }
6941fi
6942
6943
6944fi
6945if test -z "$ac_cv_prog_RANLIB"; then
6946 ac_ct_RANLIB=$RANLIB
6947 # Extract the first word of "ranlib", so it can be a program name with args.
6948set dummy ranlib; ac_word=$2
6949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953else
6954 if test -n "$ac_ct_RANLIB"; then
6955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6956else
6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_ac_ct_RANLIB="ranlib"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968done
6969done
6970IFS=$as_save_IFS
6971
6972fi
6973fi
6974ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6975if test -n "$ac_ct_RANLIB"; then
6976 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6977echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6978else
6979 { echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6; }
6981fi
6982
6983 if test "x$ac_ct_RANLIB" = x; then
6984 RANLIB=":"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987yes:)
6988{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6989whose name does not start with the host triplet. If you think this
6990configuration is useful to you, please write to autoconf@gnu.org." >&5
6991echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6992whose name does not start with the host triplet. If you think this
6993configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6994ac_tool_warned=yes ;;
6995esac
6996 RANLIB=$ac_ct_RANLIB
6997 fi
6998else
6999 RANLIB="$ac_cv_prog_RANLIB"
7000fi
7001
7002# Extract the first word of "rm", so it can be a program name with args.
7003set dummy rm; ac_word=$2
7004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006if test "${ac_cv_path_RM+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009 case $RM in
7010 [\\/]* | ?:[\\/]*)
7011 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7012 ;;
7013 *)
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025done
7026done
7027IFS=$as_save_IFS
7028
7029 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7030 ;;
7031esac
7032fi
7033RM=$ac_cv_path_RM
7034if test -n "$RM"; then
7035 { echo "$as_me:$LINENO: result: $RM" >&5
7036echo "${ECHO_T}$RM" >&6; }
7037else
7038 { echo "$as_me:$LINENO: result: no" >&5
7039echo "${ECHO_T}no" >&6; }
7040fi
7041
7042
7043# Extract the first word of "sed", so it can be a program name with args.
7044set dummy sed; ac_word=$2
7045{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047if test "${ac_cv_path_SED+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049else
7050 case $SED in
7051 [\\/]* | ?:[\\/]*)
7052 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7053 ;;
7054 *)
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066done
7067done
7068IFS=$as_save_IFS
7069
7070 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7071 ;;
7072esac
7073fi
7074SED=$ac_cv_path_SED
7075if test -n "$SED"; then
7076 { echo "$as_me:$LINENO: result: $SED" >&5
7077echo "${ECHO_T}$SED" >&6; }
7078else
7079 { echo "$as_me:$LINENO: result: no" >&5
7080echo "${ECHO_T}no" >&6; }
7081fi
7082
7083
7084# Extract the first word of "tar", so it can be a program name with args.
7085set dummy tar; ac_word=$2
7086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088if test "${ac_cv_path_TAR+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091 case $TAR in
7092 [\\/]* | ?:[\\/]*)
7093 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7094 ;;
7095 *)
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107done
7108done
7109IFS=$as_save_IFS
7110
7111 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7112 ;;
7113esac
7114fi
7115TAR=$ac_cv_path_TAR
7116if test -n "$TAR"; then
7117 { echo "$as_me:$LINENO: result: $TAR" >&5
7118echo "${ECHO_T}$TAR" >&6; }
7119else
7120 { echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6; }
7122fi
7123
7124
7125# Extract the first word of "pwd", so it can be a program name with args.
7126set dummy pwd; ac_word=$2
7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_path_BINPWD+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132 case $BINPWD in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7135 ;;
7136 *)
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7153 ;;
7154esac
7155fi
7156BINPWD=$ac_cv_path_BINPWD
7157if test -n "$BINPWD"; then
7158 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7159echo "${ECHO_T}$BINPWD" >&6; }
7160else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6; }
7163fi
7164
7165
7166
7167# Extract the first word of "Graphviz", so it can be a program name with args.
7168set dummy Graphviz; ac_word=$2
7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174 case $GRAPHVIZ in
7175 [\\/]* | ?:[\\/]*)
7176 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7177 ;;
7178 *)
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7195 ;;
7196esac
7197fi
7198GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7199if test -n "$GRAPHVIZ"; then
7200 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7201echo "${ECHO_T}$GRAPHVIZ" >&6; }
7202else
7203 { echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6; }
7205fi
7206
7207
7208if test "$GRAPHVIZ" != "echo Graphviz" ; then
7209
7210cat >>confdefs.h <<\_ACEOF
7211#define HAVE_GRAPHVIZ 1
7212_ACEOF
7213
Jeff Cohen28783c32007-01-12 18:22:38 +00007214 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007215 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7216 fi
7217
7218cat >>confdefs.h <<_ACEOF
7219#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7220_ACEOF
7221
7222fi
7223# Extract the first word of "dot", so it can be a program name with args.
7224set dummy dot; ac_word=$2
7225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227if test "${ac_cv_path_DOT+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230 case $DOT in
7231 [\\/]* | ?:[\\/]*)
7232 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7233 ;;
7234 *)
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246done
7247done
7248IFS=$as_save_IFS
7249
7250 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7251 ;;
7252esac
7253fi
7254DOT=$ac_cv_path_DOT
7255if test -n "$DOT"; then
7256 { echo "$as_me:$LINENO: result: $DOT" >&5
7257echo "${ECHO_T}$DOT" >&6; }
7258else
7259 { echo "$as_me:$LINENO: result: no" >&5
7260echo "${ECHO_T}no" >&6; }
7261fi
7262
7263
7264if test "$DOT" != "echo dot" ; then
7265
7266cat >>confdefs.h <<\_ACEOF
7267#define HAVE_DOT 1
7268_ACEOF
7269
Jeff Cohen28783c32007-01-12 18:22:38 +00007270 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007271 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7272 fi
7273
7274cat >>confdefs.h <<_ACEOF
7275#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7276_ACEOF
7277
7278fi
7279for ac_prog in gv gsview32
7280do
7281 # Extract the first word of "$ac_prog", so it can be a program name with args.
7282set dummy $ac_prog; ac_word=$2
7283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285if test "${ac_cv_path_GV+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288 case $GV in
7289 [\\/]* | ?:[\\/]*)
7290 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7291 ;;
7292 *)
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304done
7305done
7306IFS=$as_save_IFS
7307
7308 ;;
7309esac
7310fi
7311GV=$ac_cv_path_GV
7312if test -n "$GV"; then
7313 { echo "$as_me:$LINENO: result: $GV" >&5
7314echo "${ECHO_T}$GV" >&6; }
7315else
7316 { echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6; }
7318fi
7319
7320
7321 test -n "$GV" && break
7322done
7323test -n "$GV" || GV="echo gv"
7324
7325if test "$GV" != "echo gv" ; then
7326
7327cat >>confdefs.h <<\_ACEOF
7328#define HAVE_GV 1
7329_ACEOF
7330
Jeff Cohen28783c32007-01-12 18:22:38 +00007331 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007332 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7333 fi
7334
7335cat >>confdefs.h <<_ACEOF
7336#define LLVM_PATH_GV "$GV${EXEEXT}"
7337_ACEOF
7338
7339fi
7340# Extract the first word of "dotty", so it can be a program name with args.
7341set dummy dotty; ac_word=$2
7342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344if test "${ac_cv_path_DOTTY+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347 case $DOTTY in
7348 [\\/]* | ?:[\\/]*)
7349 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7350 ;;
7351 *)
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363done
7364done
7365IFS=$as_save_IFS
7366
7367 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7368 ;;
7369esac
7370fi
7371DOTTY=$ac_cv_path_DOTTY
7372if test -n "$DOTTY"; then
7373 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7374echo "${ECHO_T}$DOTTY" >&6; }
7375else
7376 { echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6; }
7378fi
7379
7380
7381if test "$DOTTY" != "echo dotty" ; then
7382
7383cat >>confdefs.h <<\_ACEOF
7384#define HAVE_DOTTY 1
7385_ACEOF
7386
Jeff Cohen28783c32007-01-12 18:22:38 +00007387 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007388 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7389 fi
7390
7391cat >>confdefs.h <<_ACEOF
7392#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7393_ACEOF
7394
7395fi
7396
7397
7398# Extract the first word of "perl", so it can be a program name with args.
7399set dummy perl; ac_word=$2
7400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402if test "${ac_cv_path_PERL+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405 case $PERL in
7406 [\\/]* | ?:[\\/]*)
7407 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7408 ;;
7409 *)
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421done
7422done
7423IFS=$as_save_IFS
7424
7425 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7426 ;;
7427esac
7428fi
7429PERL=$ac_cv_path_PERL
7430if test -n "$PERL"; then
7431 { echo "$as_me:$LINENO: result: $PERL" >&5
7432echo "${ECHO_T}$PERL" >&6; }
7433else
7434 { echo "$as_me:$LINENO: result: no" >&5
7435echo "${ECHO_T}no" >&6; }
7436fi
7437
7438
7439if test "$PERL" != "none"; then
7440 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7441echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7442 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7443 { echo "$as_me:$LINENO: result: yes" >&5
7444echo "${ECHO_T}yes" >&6; }
7445 else
7446 PERL=none
7447 { echo "$as_me:$LINENO: result: not found" >&5
7448echo "${ECHO_T}not found" >&6; }
7449 fi
7450fi
7451
7452
7453if test x"$PERL" = xnone; then
7454 HAVE_PERL=0
7455
Reid Spencer59807fa2007-05-17 18:11:03 +00007456 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7457echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7458 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007459else
7460 HAVE_PERL=1
7461
7462fi
7463
7464# Find a good install program. We prefer a C program (faster),
7465# so one script is as good as another. But avoid the broken or
7466# incompatible versions:
7467# SysV /etc/install, /usr/sbin/install
7468# SunOS /usr/etc/install
7469# IRIX /sbin/install
7470# AIX /bin/install
7471# AmigaOS /C/install, which installs bootblocks on floppy discs
7472# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7473# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7474# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7475# OS/2's system install, which has a completely different semantic
7476# ./install, which can be erroneously created by make from ./install.sh.
7477{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7478echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7479if test -z "$INSTALL"; then
7480if test "${ac_cv_path_install+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 # Account for people who put trailing slashes in PATH elements.
7489case $as_dir/ in
7490 ./ | .// | /cC/* | \
7491 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7492 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7493 /usr/ucb/* ) ;;
7494 *)
7495 # OSF1 and SCO ODT 3.0 have their own names for install.
7496 # Don't use installbsd from OSF since it installs stuff as root
7497 # by default.
7498 for ac_prog in ginstall scoinst install; do
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7501 if test $ac_prog = install &&
7502 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7503 # AIX install. It has an incompatible calling convention.
7504 :
7505 elif test $ac_prog = install &&
7506 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7507 # program-specific install script used by HP pwplus--don't use.
7508 :
7509 else
7510 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7511 break 3
7512 fi
7513 fi
7514 done
7515 done
7516 ;;
7517esac
7518done
7519IFS=$as_save_IFS
7520
7521
7522fi
7523 if test "${ac_cv_path_install+set}" = set; then
7524 INSTALL=$ac_cv_path_install
7525 else
7526 # As a last resort, use the slow shell script. Don't cache a
7527 # value for INSTALL within a source directory, because that will
7528 # break other packages using the cache if that directory is
7529 # removed, or if the value is a relative name.
7530 INSTALL=$ac_install_sh
7531 fi
7532fi
7533{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7534echo "${ECHO_T}$INSTALL" >&6; }
7535
7536# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7537# It thinks the first close brace ends the variable substitution.
7538test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7539
7540test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7541
7542test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7543
7544
7545# Extract the first word of "bzip2", so it can be a program name with args.
7546set dummy bzip2; ac_word=$2
7547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549if test "${ac_cv_path_BZIP2+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552 case $BZIP2 in
7553 [\\/]* | ?:[\\/]*)
7554 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7555 ;;
7556 *)
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568done
7569done
7570IFS=$as_save_IFS
7571
7572 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7573 ;;
7574esac
7575fi
7576BZIP2=$ac_cv_path_BZIP2
7577if test -n "$BZIP2"; then
7578 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7579echo "${ECHO_T}$BZIP2" >&6; }
7580else
7581 { echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6; }
7583fi
7584
7585
7586# Extract the first word of "doxygen", so it can be a program name with args.
7587set dummy doxygen; ac_word=$2
7588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_DOXYGEN+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 case $DOXYGEN in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609done
7610done
7611IFS=$as_save_IFS
7612
7613 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7614 ;;
7615esac
7616fi
7617DOXYGEN=$ac_cv_path_DOXYGEN
7618if test -n "$DOXYGEN"; then
7619 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7620echo "${ECHO_T}$DOXYGEN" >&6; }
7621else
7622 { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
7624fi
7625
7626
Reid Spencera773bd52006-08-04 18:18:08 +00007627# Extract the first word of "groff", so it can be a program name with args.
7628set dummy groff; ac_word=$2
7629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631if test "${ac_cv_path_GROFF+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 case $GROFF in
7635 [\\/]* | ?:[\\/]*)
7636 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7637 ;;
7638 *)
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650done
7651done
7652IFS=$as_save_IFS
7653
7654 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7655 ;;
7656esac
7657fi
7658GROFF=$ac_cv_path_GROFF
7659if test -n "$GROFF"; then
7660 { echo "$as_me:$LINENO: result: $GROFF" >&5
7661echo "${ECHO_T}$GROFF" >&6; }
7662else
7663 { echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6; }
7665fi
7666
7667
7668# Extract the first word of "gzip", so it can be a program name with args.
7669set dummy gzip; ac_word=$2
7670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672if test "${ac_cv_path_GZIP+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674else
7675 case $GZIP in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7678 ;;
7679 *)
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691done
7692done
7693IFS=$as_save_IFS
7694
7695 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7696 ;;
7697esac
7698fi
7699GZIP=$ac_cv_path_GZIP
7700if test -n "$GZIP"; then
7701 { echo "$as_me:$LINENO: result: $GZIP" >&5
7702echo "${ECHO_T}$GZIP" >&6; }
7703else
7704 { echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6; }
7706fi
7707
7708
7709# Extract the first word of "pod2html", so it can be a program name with args.
7710set dummy pod2html; ac_word=$2
7711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713if test "${ac_cv_path_POD2HTML+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 case $POD2HTML in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7719 ;;
7720 *)
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732done
7733done
7734IFS=$as_save_IFS
7735
7736 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7737 ;;
7738esac
7739fi
7740POD2HTML=$ac_cv_path_POD2HTML
7741if test -n "$POD2HTML"; then
7742 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7743echo "${ECHO_T}$POD2HTML" >&6; }
7744else
7745 { echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6; }
7747fi
7748
7749
7750# Extract the first word of "pod2man", so it can be a program name with args.
7751set dummy pod2man; ac_word=$2
7752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754if test "${ac_cv_path_POD2MAN+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756else
7757 case $POD2MAN in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7760 ;;
7761 *)
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773done
7774done
7775IFS=$as_save_IFS
7776
7777 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7778 ;;
7779esac
7780fi
7781POD2MAN=$ac_cv_path_POD2MAN
7782if test -n "$POD2MAN"; then
7783 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7784echo "${ECHO_T}$POD2MAN" >&6; }
7785else
7786 { echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6; }
7788fi
7789
7790
7791# Extract the first word of "runtest", so it can be a program name with args.
7792set dummy runtest; ac_word=$2
7793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7795if test "${ac_cv_path_RUNTEST+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798 case $RUNTEST in
7799 [\\/]* | ?:[\\/]*)
7800 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7801 ;;
7802 *)
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7810 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7813 fi
7814done
7815done
7816IFS=$as_save_IFS
7817
7818 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7819 ;;
7820esac
7821fi
7822RUNTEST=$ac_cv_path_RUNTEST
7823if test -n "$RUNTEST"; then
7824 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7825echo "${ECHO_T}$RUNTEST" >&6; }
7826else
7827 { echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6; }
7829fi
7830
7831
7832
7833no_itcl=true
7834{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7835echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7836
7837# Check whether --with-tclinclude was given.
7838if test "${with_tclinclude+set}" = set; then
7839 withval=$with_tclinclude; with_tclinclude=${withval}
7840else
7841 with_tclinclude=''
7842fi
7843
7844if test "${ac_cv_path_tclsh+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847
7848if test x"${with_tclinclude}" != x ; then
7849 if test -f ${with_tclinclude}/tclsh ; then
7850 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7851 elif test -f ${with_tclinclude}/src/tclsh ; then
7852 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7853 else
7854 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7855echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7856 { (exit 1); exit 1; }; }
7857 fi
7858fi
7859
7860if test x"${ac_cv_path_tclsh}" = x ; then
7861 { echo "$as_me:$LINENO: result: none" >&5
7862echo "${ECHO_T}none" >&6; }
7863 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
7864do
7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
7866set dummy $ac_prog; ac_word=$2
7867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869if test "${ac_cv_path_TCLSH+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871else
7872 case $TCLSH in
7873 [\\/]* | ?:[\\/]*)
7874 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7875 ;;
7876 *)
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888done
7889done
7890IFS=$as_save_IFS
7891
7892 ;;
7893esac
7894fi
7895TCLSH=$ac_cv_path_TCLSH
7896if test -n "$TCLSH"; then
7897 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7898echo "${ECHO_T}$TCLSH" >&6; }
7899else
7900 { echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6; }
7902fi
7903
7904
7905 test -n "$TCLSH" && break
7906done
7907
7908 if test x"${TCLSH}" = x ; then
7909 ac_cv_path_tclsh='';
7910 else
7911 ac_cv_path_tclsh="${TCLSH}";
7912 fi
7913else
7914 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7915echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7916 TCLSH="${ac_cv_path_tclsh}"
7917
7918fi
7919
7920fi
7921
7922# Extract the first word of "zip", so it can be a program name with args.
7923set dummy zip; ac_word=$2
7924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926if test "${ac_cv_path_ZIP+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928else
7929 case $ZIP in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7932 ;;
7933 *)
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945done
7946done
7947IFS=$as_save_IFS
7948
7949 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7950 ;;
7951esac
7952fi
7953ZIP=$ac_cv_path_ZIP
7954if test -n "$ZIP"; then
7955 { echo "$as_me:$LINENO: result: $ZIP" >&5
7956echo "${ECHO_T}$ZIP" >&6; }
7957else
7958 { echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6; }
7960fi
7961
7962
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007963# Extract the first word of "ocamlc", so it can be a program name with args.
7964set dummy ocamlc; ac_word=$2
7965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7967if test "${ac_cv_path_OCAMLC+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969else
7970 case $OCAMLC in
7971 [\\/]* | ?:[\\/]*)
7972 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7973 ;;
7974 *)
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976for as_dir in $PATH
7977do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7982 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986done
7987done
7988IFS=$as_save_IFS
7989
7990 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7991 ;;
7992esac
7993fi
7994OCAMLC=$ac_cv_path_OCAMLC
7995if test -n "$OCAMLC"; then
7996 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7997echo "${ECHO_T}$OCAMLC" >&6; }
7998else
7999 { echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6; }
8001fi
8002
8003
8004# Extract the first word of "ocamlopt", so it can be a program name with args.
8005set dummy ocamlopt; ac_word=$2
8006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011 case $OCAMLOPT in
8012 [\\/]* | ?:[\\/]*)
8013 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8014 ;;
8015 *)
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027done
8028done
8029IFS=$as_save_IFS
8030
8031 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
8032 ;;
8033esac
8034fi
8035OCAMLOPT=$ac_cv_path_OCAMLOPT
8036if test -n "$OCAMLOPT"; then
8037 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8038echo "${ECHO_T}$OCAMLOPT" >&6; }
8039else
8040 { echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6; }
8042fi
8043
8044
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008045# Extract the first word of "ocamldep", so it can be a program name with args.
8046set dummy ocamldep; ac_word=$2
8047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 case $OCAMLDEP in
8053 [\\/]* | ?:[\\/]*)
8054 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8055 ;;
8056 *)
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8064 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070IFS=$as_save_IFS
8071
8072 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8073 ;;
8074esac
8075fi
8076OCAMLDEP=$ac_cv_path_OCAMLDEP
8077if test -n "$OCAMLDEP"; then
8078 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8079echo "${ECHO_T}$OCAMLDEP" >&6; }
8080else
8081 { echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6; }
8083fi
8084
8085
Reid Spencera773bd52006-08-04 18:18:08 +00008086
8087{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8088echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8089if test "${llvm_cv_link_use_r+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092 ac_ext=c
8093ac_cpp='$CPP $CPPFLAGS'
8094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8096ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097
8098 oldcflags="$CFLAGS"
8099 CFLAGS="$CFLAGS -Wl,-R."
8100 cat >conftest.$ac_ext <<_ACEOF
8101/* confdefs.h. */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h. */
8106
8107int
8108main ()
8109{
8110int main() { return 0; }
8111 ;
8112 return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext conftest$ac_exeext
8116if { (ac_try="$ac_link"
8117case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120esac
8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_link") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133esac
8134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest$ac_exeext'
8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143esac
8144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 llvm_cv_link_use_r=yes
8150else
8151 echo "$as_me: failed program was:" >&5
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
8154 llvm_cv_link_use_r=no
8155fi
8156
8157rm -f core conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8159 CFLAGS="$oldcflags"
8160 ac_ext=c
8161ac_cpp='$CPP $CPPFLAGS'
8162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8164ac_compiler_gnu=$ac_cv_c_compiler_gnu
8165
8166
8167fi
8168{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8169echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8170if test "$llvm_cv_link_use_r" = yes ; then
8171
8172cat >>confdefs.h <<\_ACEOF
8173#define HAVE_LINK_R 1
8174_ACEOF
8175
8176 fi
8177
8178
8179
8180
8181{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8182echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8183if test "${ac_cv_c_const+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185else
8186 cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h. */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h. */
8192
8193int
8194main ()
8195{
8196/* FIXME: Include the comments suggested by Paul. */
8197#ifndef __cplusplus
8198 /* Ultrix mips cc rejects this. */
8199 typedef int charset[2];
8200 const charset x;
8201 /* SunOS 4.1.1 cc rejects this. */
8202 char const *const *ccp;
8203 char **p;
8204 /* NEC SVR4.0.2 mips cc rejects this. */
8205 struct point {int x, y;};
8206 static struct point const zero = {0,0};
8207 /* AIX XL C 1.02.0.0 rejects this.
8208 It does not let you subtract one const X* pointer from another in
8209 an arm of an if-expression whose if-part is not a constant
8210 expression */
8211 const char *g = "string";
8212 ccp = &g + (g ? g-g : 0);
8213 /* HPUX 7.0 cc rejects these. */
8214 ++ccp;
8215 p = (char**) ccp;
8216 ccp = (char const *const *) p;
8217 { /* SCO 3.2v4 cc rejects this. */
8218 char *t;
8219 char const *s = 0 ? (char *) 0 : (char const *) 0;
8220
8221 *t++ = 0;
8222 if (s) return 0;
8223 }
8224 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8225 int x[] = {25, 17};
8226 const int *foo = &x[0];
8227 ++foo;
8228 }
8229 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8230 typedef const int *iptr;
8231 iptr p = 0;
8232 ++p;
8233 }
8234 { /* AIX XL C 1.02.0.0 rejects this saying
8235 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8236 struct s { int j; const int *ap[3]; };
8237 struct s *b; b->j = 5;
8238 }
8239 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8240 const int foo = 10;
8241 if (!foo) return 0;
8242 }
8243 return !x[0] && !zero.x;
8244#endif
8245
8246 ;
8247 return 0;
8248}
8249_ACEOF
8250rm -f conftest.$ac_objext
8251if { (ac_try="$ac_compile"
8252case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8255esac
8256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } &&
8264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8265 { (case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268esac
8269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_try") 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest.$ac_objext'
8275 { (case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278esac
8279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_try") 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_c_const=yes
8285else
8286 echo "$as_me: failed program was:" >&5
8287sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 ac_cv_c_const=no
8290fi
8291
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293fi
8294{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8295echo "${ECHO_T}$ac_cv_c_const" >&6; }
8296if test $ac_cv_c_const = no; then
8297
8298cat >>confdefs.h <<\_ACEOF
8299#define const
8300_ACEOF
8301
8302fi
8303
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008304
8305
8306
8307
8308
8309ac_header_dirent=no
8310for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8311 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008312{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8313echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317 cat >conftest.$ac_ext <<_ACEOF
8318/* confdefs.h. */
8319_ACEOF
8320cat confdefs.h >>conftest.$ac_ext
8321cat >>conftest.$ac_ext <<_ACEOF
8322/* end confdefs.h. */
8323#include <sys/types.h>
8324#include <$ac_hdr>
8325
8326int
8327main ()
8328{
8329if ((DIR *) 0)
8330return 0;
8331 ;
8332 return 0;
8333}
8334_ACEOF
8335rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008336if { (ac_try="$ac_compile"
8337case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8350 { (case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353esac
8354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008360 { (case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363esac
8364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 eval "$as_ac_Header=yes"
8370else
8371 echo "$as_me: failed program was:" >&5
8372sed 's/^/| /' conftest.$ac_ext >&5
8373
Reid Spencera773bd52006-08-04 18:18:08 +00008374 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008375fi
Reid Spencera773bd52006-08-04 18:18:08 +00008376
8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008378fi
Reid Spencera773bd52006-08-04 18:18:08 +00008379ac_res=`eval echo '${'$as_ac_Header'}'`
8380 { echo "$as_me:$LINENO: result: $ac_res" >&5
8381echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008382if test `eval echo '${'$as_ac_Header'}'` = yes; then
8383 cat >>confdefs.h <<_ACEOF
8384#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8385_ACEOF
8386
8387ac_header_dirent=$ac_hdr; break
8388fi
8389
8390done
8391# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8392if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008393 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8394echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008395if test "${ac_cv_search_opendir+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397else
8398 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008399cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
8405
Reid Spencera773bd52006-08-04 18:18:08 +00008406/* Override any GCC internal prototype to avoid an error.
8407 Use char because int might match the return type of a GCC
8408 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008409#ifdef __cplusplus
8410extern "C"
8411#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008412char opendir ();
8413int
8414main ()
8415{
Reid Spencera773bd52006-08-04 18:18:08 +00008416return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008417 ;
8418 return 0;
8419}
8420_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008421for ac_lib in '' dir; do
8422 if test -z "$ac_lib"; then
8423 ac_res="none required"
8424 else
8425 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008427 fi
8428 rm -f conftest.$ac_objext conftest$ac_exeext
8429if { (ac_try="$ac_link"
8430case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433esac
8434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446esac
8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008453 { (case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8456esac
8457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008462 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008463else
8464 echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008467
8468fi
8469
Reid Spencera773bd52006-08-04 18:18:08 +00008470rm -f core conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext
8472 if test "${ac_cv_search_opendir+set}" = set; then
8473 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008474fi
John Criswell7a73b802003-06-30 21:59:07 +00008475done
Reid Spencera773bd52006-08-04 18:18:08 +00008476if test "${ac_cv_search_opendir+set}" = set; then
8477 :
8478else
8479 ac_cv_search_opendir=no
8480fi
8481rm conftest.$ac_ext
8482LIBS=$ac_func_search_save_LIBS
8483fi
8484{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8485echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8486ac_res=$ac_cv_search_opendir
8487if test "$ac_res" != no; then
8488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008489
Reid Spencera773bd52006-08-04 18:18:08 +00008490fi
8491
8492else
8493 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8494echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8495if test "${ac_cv_search_opendir+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8497else
8498 ac_func_search_save_LIBS=$LIBS
8499cat >conftest.$ac_ext <<_ACEOF
8500/* confdefs.h. */
8501_ACEOF
8502cat confdefs.h >>conftest.$ac_ext
8503cat >>conftest.$ac_ext <<_ACEOF
8504/* end confdefs.h. */
8505
8506/* Override any GCC internal prototype to avoid an error.
8507 Use char because int might match the return type of a GCC
8508 builtin and then its argument prototype would still apply. */
8509#ifdef __cplusplus
8510extern "C"
8511#endif
8512char opendir ();
8513int
8514main ()
8515{
8516return opendir ();
8517 ;
8518 return 0;
8519}
8520_ACEOF
8521for ac_lib in '' x; do
8522 if test -z "$ac_lib"; then
8523 ac_res="none required"
8524 else
8525 ac_res=-l$ac_lib
8526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8527 fi
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529if { (ac_try="$ac_link"
8530case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533esac
8534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_link") 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8543 { (case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546esac
8547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_try") 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try='test -s conftest$ac_exeext'
8553 { (case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556esac
8557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_try") 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_search_opendir=$ac_res
8563else
8564 echo "$as_me: failed program was:" >&5
8565sed 's/^/| /' conftest.$ac_ext >&5
8566
8567
8568fi
8569
8570rm -f core conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext
8572 if test "${ac_cv_search_opendir+set}" = set; then
8573 break
8574fi
8575done
8576if test "${ac_cv_search_opendir+set}" = set; then
8577 :
8578else
8579 ac_cv_search_opendir=no
8580fi
8581rm conftest.$ac_ext
8582LIBS=$ac_func_search_save_LIBS
8583fi
8584{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8585echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8586ac_res=$ac_cv_search_opendir
8587if test "$ac_res" != no; then
8588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8589
8590fi
8591
8592fi
John Criswell7a73b802003-06-30 21:59:07 +00008593
8594
8595for ac_header in dlfcn.h
8596do
8597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008602 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008603fi
Reid Spencera773bd52006-08-04 18:18:08 +00008604ac_res=`eval echo '${'$as_ac_Header'}'`
8605 { echo "$as_me:$LINENO: result: $ac_res" >&5
8606echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008607else
Brian Gaeke0a621332004-09-08 20:38:05 +00008608 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008609{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008611cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008617$ac_includes_default
8618#include <$ac_header>
8619_ACEOF
8620rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008621if { (ac_try="$ac_compile"
8622case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625esac
8626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8635 { (case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638esac
8639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; } &&
8644 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008645 { (case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648esac
8649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008654 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008655else
8656 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008657sed 's/^/| /' conftest.$ac_ext >&5
8658
Reid Spencera773bd52006-08-04 18:18:08 +00008659 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008660fi
Reid Spencera773bd52006-08-04 18:18:08 +00008661
8662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8664echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008665
8666# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008667{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008669cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008670/* confdefs.h. */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h. */
8675#include <$ac_header>
8676_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008677if { (ac_try="$ac_cpp conftest.$ac_ext"
8678case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8681esac
8682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } >/dev/null; then
8690 if test -s conftest.err; then
8691 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008693 else
8694 ac_cpp_err=
8695 fi
8696else
8697 ac_cpp_err=yes
8698fi
8699if test -z "$ac_cpp_err"; then
8700 ac_header_preproc=yes
8701else
8702 echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_header_preproc=no
8706fi
Reid Spencera773bd52006-08-04 18:18:08 +00008707
Brian Gaeke0a621332004-09-08 20:38:05 +00008708rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008709{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8710echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008711
8712# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8714 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8719 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008720 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008721 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008734 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008735## ----------------------------------- ##
8736## Report this to llvmbugs@cs.uiuc.edu ##
8737## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008738_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008739 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008740 ;;
8741esac
Reid Spencera773bd52006-08-04 18:18:08 +00008742{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008747 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008748fi
Reid Spencera773bd52006-08-04 18:18:08 +00008749ac_res=`eval echo '${'$as_ac_Header'}'`
8750 { echo "$as_me:$LINENO: result: $ac_res" >&5
8751echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008752
8753fi
John Criswell7a73b802003-06-30 21:59:07 +00008754if test `eval echo '${'$as_ac_Header'}'` = yes; then
8755 cat >>confdefs.h <<_ACEOF
8756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8757_ACEOF
8758
8759fi
8760
8761done
8762
Reid Spencera773bd52006-08-04 18:18:08 +00008763# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008764if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008765 enableval=$enable_ltdl_install;
8766fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008767
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008768
8769
8770
8771if test x"${enable_ltdl_install-no}" != xno; then
8772 INSTALL_LTDL_TRUE=
8773 INSTALL_LTDL_FALSE='#'
8774else
8775 INSTALL_LTDL_TRUE='#'
8776 INSTALL_LTDL_FALSE=
8777fi
8778
8779
8780
8781if test x"${enable_ltdl_convenience-no}" != xno; then
8782 CONVENIENCE_LTDL_TRUE=
8783 CONVENIENCE_LTDL_FALSE='#'
8784else
8785 CONVENIENCE_LTDL_TRUE='#'
8786 CONVENIENCE_LTDL_FALSE=
8787fi
8788
8789
Reid Spencera773bd52006-08-04 18:18:08 +00008790{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8791echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008792library_names_spec=
8793libname_spec='lib$name'
8794soname_spec=
8795shrext_cmds=".so"
8796postinstall_cmds=
8797postuninstall_cmds=
8798finish_cmds=
8799finish_eval=
8800shlibpath_var=
8801shlibpath_overrides_runpath=unknown
8802version_type=none
8803dynamic_linker="$host_os ld.so"
8804sys_lib_dlsearch_path_spec="/lib /usr/lib"
8805if test "$GCC" = yes; then
8806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8807 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8808 # if the path contains ";" then we assume it to be the separator
8809 # otherwise default to the standard path separator (i.e. ":") - it is
8810 # assumed that no part of a normal pathname contains ";" but that should
8811 # okay in the real world where ";" in dirpaths is itself problematic.
8812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8813 else
8814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8815 fi
8816else
8817 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8818fi
8819need_lib_prefix=unknown
8820hardcode_into_libs=no
8821
8822# when you set need_version to no, make sure it does not cause -set_version
8823# flags to be left without arguments
8824need_version=unknown
8825
8826case $host_os in
8827aix3*)
8828 version_type=linux
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8830 shlibpath_var=LIBPATH
8831
8832 # AIX 3 has no versioning support, so we append a major version to the name.
8833 soname_spec='${libname}${release}${shared_ext}$major'
8834 ;;
8835
8836aix4* | aix5*)
8837 version_type=linux
8838 need_lib_prefix=no
8839 need_version=no
8840 hardcode_into_libs=yes
8841 if test "$host_cpu" = ia64; then
8842 # AIX 5 supports IA64
8843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8844 shlibpath_var=LD_LIBRARY_PATH
8845 else
8846 # With GCC up to 2.95.x, collect2 would create an import file
8847 # for dependence libraries. The import file would start with
8848 # the line `#! .'. This would cause the generated library to
8849 # depend on `.', always an invalid library. This was fixed in
8850 # development snapshots of GCC prior to 3.0.
8851 case $host_os in
8852 aix4 | aix4.[01] | aix4.[01].*)
8853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8854 echo ' yes '
8855 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8856 :
8857 else
8858 can_build_shared=no
8859 fi
8860 ;;
8861 esac
8862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8863 # soname into executable. Probably we can add versioning support to
8864 # collect2, so additional links can be useful in future.
8865 if test "$aix_use_runtimelinking" = yes; then
8866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8867 # instead of lib<name>.a to let people know that these are not
8868 # typical AIX shared libraries.
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 else
8871 # We preserve .a as extension for shared libraries through AIX4.2
8872 # and later when we are not doing run time linking.
8873 library_names_spec='${libname}${release}.a $libname.a'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 fi
8876 shlibpath_var=LIBPATH
8877 fi
8878 ;;
8879
8880amigaos*)
8881 library_names_spec='$libname.ixlibrary $libname.a'
8882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8883 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'
8884 ;;
8885
8886beos*)
8887 library_names_spec='${libname}${shared_ext}'
8888 dynamic_linker="$host_os ld.so"
8889 shlibpath_var=LIBRARY_PATH
8890 ;;
8891
8892bsdi[45]*)
8893 version_type=linux
8894 need_version=no
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8898 shlibpath_var=LD_LIBRARY_PATH
8899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8901 # the default ld.so.conf also contains /usr/contrib/lib and
8902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8903 # libtool to hard-code these into programs
8904 ;;
8905
8906cygwin* | mingw* | pw32*)
8907 version_type=windows
8908 shrext_cmds=".dll"
8909 need_version=no
8910 need_lib_prefix=no
8911
8912 case $GCC,$host_os in
8913 yes,cygwin* | yes,mingw* | yes,pw32*)
8914 library_names_spec='$libname.dll.a'
8915 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8916 postinstall_cmds='base_file=`basename \${file}`~
8917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8918 dldir=$destdir/`dirname \$dlpath`~
8919 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008920 $install_prog $dir/$dlname \$dldir/$dlname~
8921 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8923 dlpath=$dir/\$dldll~
8924 $rm \$dlpath'
8925 shlibpath_overrides_runpath=yes
8926
8927 case $host_os in
8928 cygwin*)
8929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8930 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8931 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8932 ;;
8933 mingw*)
8934 # MinGW DLLs use traditional 'lib' prefix
8935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8936 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8937 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8938 # It is most probably a Windows format PATH printed by
8939 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8940 # path with ; separators, and with drive letters. We can handle the
8941 # drive letters (cygwin fileutils understands them), so leave them,
8942 # especially as we might pass files found there to a mingw objdump,
8943 # which wouldn't understand a cygwinified path. Ahh.
8944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8945 else
8946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8947 fi
8948 ;;
8949 pw32*)
8950 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008951 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 +00008952 ;;
8953 esac
8954 ;;
8955
8956 *)
8957 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8958 ;;
8959 esac
8960 dynamic_linker='Win32 ld.exe'
8961 # FIXME: first we should search . and the directory the executable is in
8962 shlibpath_var=PATH
8963 ;;
8964
8965darwin* | rhapsody*)
8966 dynamic_linker="$host_os dyld"
8967 version_type=darwin
8968 need_lib_prefix=no
8969 need_version=no
8970 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8971 soname_spec='${libname}${release}${major}$shared_ext'
8972 shlibpath_overrides_runpath=yes
8973 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008974 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008975 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8976 if test "$GCC" = yes; then
8977 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"`
8978 else
8979 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8980 fi
8981 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8982 ;;
8983
8984dgux*)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 ;;
8992
8993freebsd1*)
8994 dynamic_linker=no
8995 ;;
8996
8997kfreebsd*-gnu)
8998 version_type=linux
8999 need_lib_prefix=no
9000 need_version=no
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=no
9005 hardcode_into_libs=yes
9006 dynamic_linker='GNU ld.so'
9007 ;;
9008
Reid Spencera773bd52006-08-04 18:18:08 +00009009freebsd* | dragonfly*)
9010 # DragonFly does not have aout. When/if they implement a new
9011 # versioning mechanism, adjust this.
9012 if test -x /usr/bin/objformat; then
9013 objformat=`/usr/bin/objformat`
9014 else
9015 case $host_os in
9016 freebsd[123]*) objformat=aout ;;
9017 *) objformat=elf ;;
9018 esac
9019 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009020 version_type=freebsd-$objformat
9021 case $version_type in
9022 freebsd-elf*)
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9024 need_version=no
9025 need_lib_prefix=no
9026 ;;
9027 freebsd-*)
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9029 need_version=yes
9030 ;;
9031 esac
9032 shlibpath_var=LD_LIBRARY_PATH
9033 case $host_os in
9034 freebsd2*)
9035 shlibpath_overrides_runpath=yes
9036 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009037 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009038 shlibpath_overrides_runpath=yes
9039 hardcode_into_libs=yes
9040 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009041 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9042 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009043 shlibpath_overrides_runpath=no
9044 hardcode_into_libs=yes
9045 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009046 freebsd*) # from 4.6 on
9047 shlibpath_overrides_runpath=yes
9048 hardcode_into_libs=yes
9049 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009050 esac
9051 ;;
9052
9053gnu*)
9054 version_type=linux
9055 need_lib_prefix=no
9056 need_version=no
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 hardcode_into_libs=yes
9061 ;;
9062
9063hpux9* | hpux10* | hpux11*)
9064 # Give a soname corresponding to the major version so that dld.sl refuses to
9065 # link against other versions.
9066 version_type=sunos
9067 need_lib_prefix=no
9068 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009069 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009070 ia64*)
9071 shrext_cmds='.so'
9072 hardcode_into_libs=yes
9073 dynamic_linker="$host_os dld.so"
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 if test "X$HPUX_IA64_MODE" = X32; then
9079 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9080 else
9081 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9082 fi
9083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9084 ;;
9085 hppa*64*)
9086 shrext_cmds='.sl'
9087 hardcode_into_libs=yes
9088 dynamic_linker="$host_os dld.sl"
9089 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9095 ;;
9096 *)
9097 shrext_cmds='.sl'
9098 dynamic_linker="$host_os dld.sl"
9099 shlibpath_var=SHLIB_PATH
9100 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 ;;
9104 esac
9105 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9106 postinstall_cmds='chmod 555 $lib'
9107 ;;
9108
Reid Spencera773bd52006-08-04 18:18:08 +00009109interix3*)
9110 version_type=linux
9111 need_lib_prefix=no
9112 need_version=no
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=no
9118 hardcode_into_libs=yes
9119 ;;
9120
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009121irix5* | irix6* | nonstopux*)
9122 case $host_os in
9123 nonstopux*) version_type=nonstopux ;;
9124 *)
9125 if test "$lt_cv_prog_gnu_ld" = yes; then
9126 version_type=linux
9127 else
9128 version_type=irix
9129 fi ;;
9130 esac
9131 need_lib_prefix=no
9132 need_version=no
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9135 case $host_os in
9136 irix5* | nonstopux*)
9137 libsuff= shlibsuff=
9138 ;;
9139 *)
9140 case $LD in # libtool.m4 will add one of these switches to LD
9141 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9142 libsuff= shlibsuff= libmagic=32-bit;;
9143 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9144 libsuff=32 shlibsuff=N32 libmagic=N32;;
9145 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9146 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9147 *) libsuff= shlibsuff= libmagic=never-match;;
9148 esac
9149 ;;
9150 esac
9151 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9152 shlibpath_overrides_runpath=no
9153 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9154 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9155 hardcode_into_libs=yes
9156 ;;
9157
9158# No shared lib support for Linux oldld, aout, or coff.
9159linux*oldld* | linux*aout* | linux*coff*)
9160 dynamic_linker=no
9161 ;;
9162
9163# This must be Linux ELF.
9164linux*)
9165 version_type=linux
9166 need_lib_prefix=no
9167 need_version=no
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 shlibpath_overrides_runpath=no
9173 # This implies no fast_install, which is unacceptable.
9174 # Some rework will be needed to allow for fast_install
9175 # before this can be enabled.
9176 hardcode_into_libs=yes
9177
9178 # Append ld.so.conf contents to the search path
9179 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009180 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 +00009181 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9182 fi
9183
9184 # We used to test for /lib/ld.so.1 and disable shared libraries on
9185 # powerpc, because MkLinux only supported shared libraries with the
9186 # GNU dynamic linker. Since this was broken with cross compilers,
9187 # most powerpc-linux boxes support dynamic linking these days and
9188 # people can always --disable-shared, the test was removed, and we
9189 # assume the GNU/Linux dynamic linker is in use.
9190 dynamic_linker='GNU/Linux ld.so'
9191 ;;
9192
9193knetbsd*-gnu)
9194 version_type=linux
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9202 dynamic_linker='GNU ld.so'
9203 ;;
9204
9205netbsd*)
9206 version_type=sunos
9207 need_lib_prefix=no
9208 need_version=no
9209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9212 dynamic_linker='NetBSD (a.out) ld.so'
9213 else
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 dynamic_linker='NetBSD ld.elf_so'
9217 fi
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9220 hardcode_into_libs=yes
9221 ;;
9222
9223newsos6)
9224 version_type=linux
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 shlibpath_overrides_runpath=yes
9228 ;;
9229
9230nto-qnx*)
9231 version_type=linux
9232 need_lib_prefix=no
9233 need_version=no
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9238 ;;
9239
9240openbsd*)
9241 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009242 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009243 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9245 case $host_os in
9246 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9247 *) need_version=no ;;
9248 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9253 case $host_os in
9254 openbsd2.[89] | openbsd2.[89].*)
9255 shlibpath_overrides_runpath=no
9256 ;;
9257 *)
9258 shlibpath_overrides_runpath=yes
9259 ;;
9260 esac
9261 else
9262 shlibpath_overrides_runpath=yes
9263 fi
9264 ;;
9265
9266os2*)
9267 libname_spec='$name'
9268 shrext_cmds=".dll"
9269 need_lib_prefix=no
9270 library_names_spec='$libname${shared_ext} $libname.a'
9271 dynamic_linker='OS/2 ld.exe'
9272 shlibpath_var=LIBPATH
9273 ;;
9274
9275osf3* | osf4* | osf5*)
9276 version_type=osf
9277 need_lib_prefix=no
9278 need_version=no
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9284 ;;
9285
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009286solaris*)
9287 version_type=linux
9288 need_lib_prefix=no
9289 need_version=no
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 shlibpath_overrides_runpath=yes
9294 hardcode_into_libs=yes
9295 # ldd complains unless libraries are executable
9296 postinstall_cmds='chmod +x $lib'
9297 ;;
9298
9299sunos4*)
9300 version_type=sunos
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=yes
9305 if test "$with_gnu_ld" = yes; then
9306 need_lib_prefix=no
9307 fi
9308 need_version=yes
9309 ;;
9310
Reid Spencera773bd52006-08-04 18:18:08 +00009311sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009312 version_type=linux
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 case $host_vendor in
9317 sni)
9318 shlibpath_overrides_runpath=no
9319 need_lib_prefix=no
9320 export_dynamic_flag_spec='${wl}-Blargedynsym'
9321 runpath_var=LD_RUN_PATH
9322 ;;
9323 siemens)
9324 need_lib_prefix=no
9325 ;;
9326 motorola)
9327 need_lib_prefix=no
9328 need_version=no
9329 shlibpath_overrides_runpath=no
9330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9331 ;;
9332 esac
9333 ;;
9334
9335sysv4*MP*)
9336 if test -d /usr/nec ;then
9337 version_type=linux
9338 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9339 soname_spec='$libname${shared_ext}.$major'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 fi
9342 ;;
9343
Reid Spencera773bd52006-08-04 18:18:08 +00009344sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9345 version_type=freebsd-elf
9346 need_lib_prefix=no
9347 need_version=no
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 hardcode_into_libs=yes
9352 if test "$with_gnu_ld" = yes; then
9353 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9354 shlibpath_overrides_runpath=no
9355 else
9356 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9357 shlibpath_overrides_runpath=yes
9358 case $host_os in
9359 sco3.2v5*)
9360 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9361 ;;
9362 esac
9363 fi
9364 sys_lib_dlsearch_path_spec='/usr/lib'
9365 ;;
9366
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367uts4*)
9368 version_type=linux
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 ;;
9373
9374*)
9375 dynamic_linker=no
9376 ;;
9377esac
Reid Spencera773bd52006-08-04 18:18:08 +00009378{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9379echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009380test "$dynamic_linker" = no && can_build_shared=no
9381
Reid Spencera773bd52006-08-04 18:18:08 +00009382variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9383if test "$GCC" = yes; then
9384 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9385fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009386
Reid Spencera773bd52006-08-04 18:18:08 +00009387
9388{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9389echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009390if test "${libltdl_cv_shlibext+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392else
9393
9394module=yes
9395eval libltdl_cv_shlibext=$shrext_cmds
9396
9397fi
Reid Spencera773bd52006-08-04 18:18:08 +00009398{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9399echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400if test -n "$libltdl_cv_shlibext"; then
9401
9402cat >>confdefs.h <<_ACEOF
9403#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9404_ACEOF
9405
9406fi
9407
9408
Reid Spencera773bd52006-08-04 18:18:08 +00009409{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9410echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009411if test "${libltdl_cv_shlibpath_var+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413else
9414 libltdl_cv_shlibpath_var="$shlibpath_var"
9415fi
Reid Spencera773bd52006-08-04 18:18:08 +00009416{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9417echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009418if test -n "$libltdl_cv_shlibpath_var"; then
9419
9420cat >>confdefs.h <<_ACEOF
9421#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9422_ACEOF
9423
9424fi
9425
9426
Reid Spencera773bd52006-08-04 18:18:08 +00009427{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9428echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009429if test "${libltdl_cv_sys_search_path+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9433fi
Reid Spencera773bd52006-08-04 18:18:08 +00009434{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9435echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009436if test -n "$libltdl_cv_sys_search_path"; then
9437 sys_search_path=
9438 for dir in $libltdl_cv_sys_search_path; do
9439 if test -z "$sys_search_path"; then
9440 sys_search_path="$dir"
9441 else
9442 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9443 fi
9444 done
9445
9446cat >>confdefs.h <<_ACEOF
9447#define LTDL_SYSSEARCHPATH "$sys_search_path"
9448_ACEOF
9449
9450fi
9451
Reid Spencera773bd52006-08-04 18:18:08 +00009452{ echo "$as_me:$LINENO: checking for objdir" >&5
9453echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454if test "${libltdl_cv_objdir+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457 libltdl_cv_objdir="$objdir"
9458 if test -n "$objdir"; then
9459 :
9460 else
9461 rm -f .libs 2>/dev/null
9462 mkdir .libs 2>/dev/null
9463 if test -d .libs; then
9464 libltdl_cv_objdir=.libs
9465 else
9466 # MS-DOS does not allow filenames that begin with a dot.
9467 libltdl_cv_objdir=_libs
9468 fi
9469 rmdir .libs 2>/dev/null
9470 fi
9471
9472fi
Reid Spencera773bd52006-08-04 18:18:08 +00009473{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9474echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009475
9476cat >>confdefs.h <<_ACEOF
9477#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9478_ACEOF
9479
9480
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009481
9482
9483
9484
9485# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009486{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9487echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009488if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490else
9491
9492# These are sane defaults that work on at least a few old systems.
9493# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9494
9495# Character class describing NM global symbol codes.
9496symcode='[BCDEGRST]'
9497
9498# Regexp to match symbols that can be accessed directly from C.
9499sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9500
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009501# Transform an extracted symbol line into a proper C declaration
9502lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9503
9504# Transform an extracted symbol line into symbol name and symbol address
9505lt_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'"
9506
9507# Define system-specific variables.
9508case $host_os in
9509aix*)
9510 symcode='[BCDT]'
9511 ;;
9512cygwin* | mingw* | pw32*)
9513 symcode='[ABCDGISTW]'
9514 ;;
9515hpux*) # Its linker distinguishes data from code symbols
9516 if test "$host_cpu" = ia64; then
9517 symcode='[ABCDEGRST]'
9518 fi
9519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9520 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'"
9521 ;;
9522linux*)
9523 if test "$host_cpu" = ia64; then
9524 symcode='[ABCDGIRSTW]'
9525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9526 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'"
9527 fi
9528 ;;
9529irix* | nonstopux*)
9530 symcode='[BCDEGRST]'
9531 ;;
9532osf*)
9533 symcode='[BCDEGQRST]'
9534 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009535solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009536 symcode='[BDRT]'
9537 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009538sco3.2v5*)
9539 symcode='[DT]'
9540 ;;
9541sysv4.2uw2*)
9542 symcode='[DT]'
9543 ;;
9544sysv5* | sco5v6* | unixware* | OpenUNIX*)
9545 symcode='[ABDT]'
9546 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009547sysv4)
9548 symcode='[DFNSTU]'
9549 ;;
9550esac
9551
9552# Handle CRLF in mingw tool chain
9553opt_cr=
9554case $build_os in
9555mingw*)
9556 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9557 ;;
9558esac
9559
9560# If we're using GNU nm, then use its standard symbol codes.
9561case `$NM -V 2>&1` in
9562*GNU* | *'with BFD'*)
9563 symcode='[ABCDGIRSTW]' ;;
9564esac
9565
9566# Try without a prefix undercore, then with it.
9567for ac_symprfx in "" "_"; do
9568
Reid Spencera773bd52006-08-04 18:18:08 +00009569 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9570 symxfrm="\\1 $ac_symprfx\\2 \\2"
9571
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009573 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 +00009574
9575 # Check to see that the pipe works correctly.
9576 pipe_works=no
9577
9578 rm -f conftest*
9579 cat > conftest.$ac_ext <<EOF
9580#ifdef __cplusplus
9581extern "C" {
9582#endif
9583char nm_test_var;
9584void nm_test_func(){}
9585#ifdef __cplusplus
9586}
9587#endif
9588int main(){nm_test_var='a';nm_test_func();return(0);}
9589EOF
9590
9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592 (eval $ac_compile) 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; then
9596 # Now try to grab the symbols.
9597 nlist=conftest.nm
9598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && test -s "$nlist"; then
9603 # Try sorting and uniquifying the output.
9604 if sort "$nlist" | uniq > "$nlist"T; then
9605 mv -f "$nlist"T "$nlist"
9606 else
9607 rm -f "$nlist"T
9608 fi
9609
9610 # Make sure that we snagged all the symbols we need.
9611 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9612 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9613 cat <<EOF > conftest.$ac_ext
9614#ifdef __cplusplus
9615extern "C" {
9616#endif
9617
9618EOF
9619 # Now generate the symbol file.
9620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9621
9622 cat <<EOF >> conftest.$ac_ext
9623#if defined (__STDC__) && __STDC__
9624# define lt_ptr_t void *
9625#else
9626# define lt_ptr_t char *
9627# define const
9628#endif
9629
9630/* The mapping between symbol names and symbols. */
9631const struct {
9632 const char *name;
9633 lt_ptr_t address;
9634}
9635lt_preloaded_symbols[] =
9636{
9637EOF
9638 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9639 cat <<\EOF >> conftest.$ac_ext
9640 {0, (lt_ptr_t) 0}
9641};
9642
9643#ifdef __cplusplus
9644}
9645#endif
9646EOF
9647 # Now try linking the two files.
9648 mv conftest.$ac_objext conftstm.$ac_objext
9649 lt_save_LIBS="$LIBS"
9650 lt_save_CFLAGS="$CFLAGS"
9651 LIBS="conftstm.$ac_objext"
9652 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9658 pipe_works=yes
9659 fi
9660 LIBS="$lt_save_LIBS"
9661 CFLAGS="$lt_save_CFLAGS"
9662 else
9663 echo "cannot find nm_test_func in $nlist" >&5
9664 fi
9665 else
9666 echo "cannot find nm_test_var in $nlist" >&5
9667 fi
9668 else
9669 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9670 fi
9671 else
9672 echo "$progname: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9674 fi
9675 rm -f conftest* conftst*
9676
9677 # Do not use the global_symbol_pipe unless it works.
9678 if test "$pipe_works" = yes; then
9679 break
9680 else
9681 lt_cv_sys_global_symbol_pipe=
9682 fi
9683done
9684
9685fi
9686
9687if test -z "$lt_cv_sys_global_symbol_pipe"; then
9688 lt_cv_sys_global_symbol_to_cdecl=
9689fi
9690if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009691 { echo "$as_me:$LINENO: result: failed" >&5
9692echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693else
Reid Spencera773bd52006-08-04 18:18:08 +00009694 { echo "$as_me:$LINENO: result: ok" >&5
9695echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009696fi
9697
9698
Reid Spencera773bd52006-08-04 18:18:08 +00009699{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9700echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009701if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703else
9704 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9705 libltdl_cv_preloaded_symbols=yes
9706 else
9707 libltdl_cv_preloaded_symbols=no
9708 fi
9709
9710fi
Reid Spencera773bd52006-08-04 18:18:08 +00009711{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9712echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009713if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9714
9715cat >>confdefs.h <<\_ACEOF
9716#define HAVE_PRELOADED_SYMBOLS 1
9717_ACEOF
9718
9719fi
9720
9721LIBADD_DL=
9722
9723ac_ext=c
9724ac_cpp='$CPP $CPPFLAGS'
9725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9727ac_compiler_gnu=$ac_cv_c_compiler_gnu
9728
9729
Reid Spencera773bd52006-08-04 18:18:08 +00009730{ echo "$as_me:$LINENO: checking for shl_load" >&5
9731echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009732if test "${ac_cv_func_shl_load+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734else
9735 cat >conftest.$ac_ext <<_ACEOF
9736/* confdefs.h. */
9737_ACEOF
9738cat confdefs.h >>conftest.$ac_ext
9739cat >>conftest.$ac_ext <<_ACEOF
9740/* end confdefs.h. */
9741/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9743#define shl_load innocuous_shl_load
9744
9745/* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char shl_load (); below.
9747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748 <limits.h> exists even on freestanding compilers. */
9749
9750#ifdef __STDC__
9751# include <limits.h>
9752#else
9753# include <assert.h>
9754#endif
9755
9756#undef shl_load
9757
Reid Spencera773bd52006-08-04 18:18:08 +00009758/* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761#ifdef __cplusplus
9762extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764char shl_load ();
9765/* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009768#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770#endif
9771
9772int
9773main ()
9774{
Reid Spencera773bd52006-08-04 18:18:08 +00009775return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776 ;
9777 return 0;
9778}
9779_ACEOF
9780rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009781if { (ac_try="$ac_link"
9782case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785esac
9786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798esac
9799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_func_shl_load=yes
9815else
9816 echo "$as_me: failed program was:" >&5
9817sed 's/^/| /' conftest.$ac_ext >&5
9818
Reid Spencera773bd52006-08-04 18:18:08 +00009819 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009820fi
Reid Spencera773bd52006-08-04 18:18:08 +00009821
9822rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823 conftest$ac_exeext conftest.$ac_ext
9824fi
Reid Spencera773bd52006-08-04 18:18:08 +00009825{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9826echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827if test $ac_cv_func_shl_load = yes; then
9828
9829cat >>confdefs.h <<\_ACEOF
9830#define HAVE_SHL_LOAD 1
9831_ACEOF
9832
9833else
Reid Spencera773bd52006-08-04 18:18:08 +00009834 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9835echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009836if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838else
9839 ac_check_lib_save_LIBS=$LIBS
9840LIBS="-ldld $LIBS"
9841cat >conftest.$ac_ext <<_ACEOF
9842/* confdefs.h. */
9843_ACEOF
9844cat confdefs.h >>conftest.$ac_ext
9845cat >>conftest.$ac_ext <<_ACEOF
9846/* end confdefs.h. */
9847
Reid Spencera773bd52006-08-04 18:18:08 +00009848/* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851#ifdef __cplusplus
9852extern "C"
9853#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854char shl_load ();
9855int
9856main ()
9857{
Reid Spencera773bd52006-08-04 18:18:08 +00009858return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859 ;
9860 return 0;
9861}
9862_ACEOF
9863rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_lib_dld_shl_load=yes
9898else
9899 echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
Reid Spencera773bd52006-08-04 18:18:08 +00009902 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903fi
Reid Spencera773bd52006-08-04 18:18:08 +00009904
9905rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906 conftest$ac_exeext conftest.$ac_ext
9907LIBS=$ac_check_lib_save_LIBS
9908fi
Reid Spencera773bd52006-08-04 18:18:08 +00009909{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9910echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911if test $ac_cv_lib_dld_shl_load = yes; then
9912
9913cat >>confdefs.h <<\_ACEOF
9914#define HAVE_SHL_LOAD 1
9915_ACEOF
9916
9917 LIBADD_DL="$LIBADD_DL -ldld"
9918else
Reid Spencera773bd52006-08-04 18:18:08 +00009919 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9920echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923else
9924 ac_check_lib_save_LIBS=$LIBS
9925LIBS="-ldl $LIBS"
9926cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h. */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h. */
9932
Reid Spencera773bd52006-08-04 18:18:08 +00009933/* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936#ifdef __cplusplus
9937extern "C"
9938#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009939char dlopen ();
9940int
9941main ()
9942{
Reid Spencera773bd52006-08-04 18:18:08 +00009943return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944 ;
9945 return 0;
9946}
9947_ACEOF
9948rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009949if { (ac_try="$ac_link"
9950case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953esac
9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966esac
9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_lib_dl_dlopen=yes
9983else
9984 echo "$as_me: failed program was:" >&5
9985sed 's/^/| /' conftest.$ac_ext >&5
9986
Reid Spencera773bd52006-08-04 18:18:08 +00009987 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988fi
Reid Spencera773bd52006-08-04 18:18:08 +00009989
9990rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991 conftest$ac_exeext conftest.$ac_ext
9992LIBS=$ac_check_lib_save_LIBS
9993fi
Reid Spencera773bd52006-08-04 18:18:08 +00009994{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9995echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996if test $ac_cv_lib_dl_dlopen = yes; then
9997
9998cat >>confdefs.h <<\_ACEOF
9999#define HAVE_LIBDL 1
10000_ACEOF
10001
10002 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10003else
10004 cat >conftest.$ac_ext <<_ACEOF
10005/* confdefs.h. */
10006_ACEOF
10007cat confdefs.h >>conftest.$ac_ext
10008cat >>conftest.$ac_ext <<_ACEOF
10009/* end confdefs.h. */
10010#if HAVE_DLFCN_H
10011# include <dlfcn.h>
10012#endif
10013
10014int
10015main ()
10016{
10017dlopen(0, 0);
10018 ;
10019 return 0;
10020}
10021_ACEOF
10022rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010023if { (ac_try="$ac_link"
10024case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010047 { (case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050esac
10051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056
10057cat >>confdefs.h <<\_ACEOF
10058#define HAVE_LIBDL 1
10059_ACEOF
10060 libltdl_cv_func_dlopen="yes"
10061else
10062 echo "$as_me: failed program was:" >&5
10063sed 's/^/| /' conftest.$ac_ext >&5
10064
Reid Spencera773bd52006-08-04 18:18:08 +000010065 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10066echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010067if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069else
10070 ac_check_lib_save_LIBS=$LIBS
10071LIBS="-lsvld $LIBS"
10072cat >conftest.$ac_ext <<_ACEOF
10073/* confdefs.h. */
10074_ACEOF
10075cat confdefs.h >>conftest.$ac_ext
10076cat >>conftest.$ac_ext <<_ACEOF
10077/* end confdefs.h. */
10078
Reid Spencera773bd52006-08-04 18:18:08 +000010079/* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082#ifdef __cplusplus
10083extern "C"
10084#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085char dlopen ();
10086int
10087main ()
10088{
Reid Spencera773bd52006-08-04 18:18:08 +000010089return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090 ;
10091 return 0;
10092}
10093_ACEOF
10094rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010095if { (ac_try="$ac_link"
10096case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112esac
10113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010119 { (case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10122esac
10123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_svld_dlopen=yes
10129else
10130 echo "$as_me: failed program was:" >&5
10131sed 's/^/| /' conftest.$ac_ext >&5
10132
Reid Spencera773bd52006-08-04 18:18:08 +000010133 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010134fi
Reid Spencera773bd52006-08-04 18:18:08 +000010135
10136rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010137 conftest$ac_exeext conftest.$ac_ext
10138LIBS=$ac_check_lib_save_LIBS
10139fi
Reid Spencera773bd52006-08-04 18:18:08 +000010140{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10141echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142if test $ac_cv_lib_svld_dlopen = yes; then
10143
10144cat >>confdefs.h <<\_ACEOF
10145#define HAVE_LIBDL 1
10146_ACEOF
10147
10148 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10149else
Reid Spencera773bd52006-08-04 18:18:08 +000010150 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10151echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010152if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155 ac_check_lib_save_LIBS=$LIBS
10156LIBS="-ldld $LIBS"
10157cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h. */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h. */
10163
Reid Spencera773bd52006-08-04 18:18:08 +000010164/* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010167#ifdef __cplusplus
10168extern "C"
10169#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010170char dld_link ();
10171int
10172main ()
10173{
Reid Spencera773bd52006-08-04 18:18:08 +000010174return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010175 ;
10176 return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010180if { (ac_try="$ac_link"
10181case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184esac
10185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197esac
10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207esac
10208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_lib_dld_dld_link=yes
10214else
10215 echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
Reid Spencera773bd52006-08-04 18:18:08 +000010218 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219fi
Reid Spencera773bd52006-08-04 18:18:08 +000010220
10221rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222 conftest$ac_exeext conftest.$ac_ext
10223LIBS=$ac_check_lib_save_LIBS
10224fi
Reid Spencera773bd52006-08-04 18:18:08 +000010225{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10226echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227if test $ac_cv_lib_dld_dld_link = yes; then
10228
10229cat >>confdefs.h <<\_ACEOF
10230#define HAVE_DLD 1
10231_ACEOF
10232
10233 LIBADD_DL="$LIBADD_DL -ldld"
10234else
Reid Spencera773bd52006-08-04 18:18:08 +000010235 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10236echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239else
10240 cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h. */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
10245/* end confdefs.h. */
10246/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10248#define _dyld_func_lookup innocuous__dyld_func_lookup
10249
10250/* System header to define __stub macros and hopefully few prototypes,
10251 which can conflict with char _dyld_func_lookup (); below.
10252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10253 <limits.h> exists even on freestanding compilers. */
10254
10255#ifdef __STDC__
10256# include <limits.h>
10257#else
10258# include <assert.h>
10259#endif
10260
10261#undef _dyld_func_lookup
10262
Reid Spencera773bd52006-08-04 18:18:08 +000010263/* Override any GCC internal prototype to avoid an error.
10264 Use char because int might match the return type of a GCC
10265 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266#ifdef __cplusplus
10267extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269char _dyld_func_lookup ();
10270/* The GNU C library defines this for functions which it implements
10271 to always fail with ENOSYS. Some functions are actually named
10272 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010273#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010274choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010275#endif
10276
10277int
10278main ()
10279{
Reid Spencera773bd52006-08-04 18:18:08 +000010280return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010281 ;
10282 return 0;
10283}
10284_ACEOF
10285rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010286if { (ac_try="$ac_link"
10287case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10290esac
10291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10303esac
10304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; } &&
10309 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010310 { (case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313esac
10314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 ac_cv_func__dyld_func_lookup=yes
10320else
10321 echo "$as_me: failed program was:" >&5
10322sed 's/^/| /' conftest.$ac_ext >&5
10323
Reid Spencera773bd52006-08-04 18:18:08 +000010324 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325fi
Reid Spencera773bd52006-08-04 18:18:08 +000010326
10327rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010328 conftest$ac_exeext conftest.$ac_ext
10329fi
Reid Spencera773bd52006-08-04 18:18:08 +000010330{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10331echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332if test $ac_cv_func__dyld_func_lookup = yes; then
10333
10334cat >>confdefs.h <<\_ACEOF
10335#define HAVE_DYLD 1
10336_ACEOF
10337
10338fi
10339
10340
10341fi
10342
10343
10344fi
10345
10346
10347fi
Reid Spencera773bd52006-08-04 18:18:08 +000010348
10349rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350 conftest$ac_exeext conftest.$ac_ext
10351
10352fi
10353
10354
10355fi
10356
10357
10358fi
10359
10360
10361if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10362then
10363 lt_save_LIBS="$LIBS"
10364 LIBS="$LIBS $LIBADD_DL"
10365
10366for ac_func in dlerror
10367do
10368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010369{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10371if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373else
10374 cat >conftest.$ac_ext <<_ACEOF
10375/* confdefs.h. */
10376_ACEOF
10377cat confdefs.h >>conftest.$ac_ext
10378cat >>conftest.$ac_ext <<_ACEOF
10379/* end confdefs.h. */
10380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10382#define $ac_func innocuous_$ac_func
10383
10384/* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char $ac_func (); below.
10386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10387 <limits.h> exists even on freestanding compilers. */
10388
10389#ifdef __STDC__
10390# include <limits.h>
10391#else
10392# include <assert.h>
10393#endif
10394
10395#undef $ac_func
10396
Reid Spencera773bd52006-08-04 18:18:08 +000010397/* Override any GCC internal prototype to avoid an error.
10398 Use char because int might match the return type of a GCC
10399 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010400#ifdef __cplusplus
10401extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010403char $ac_func ();
10404/* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010407#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010409#endif
10410
10411int
10412main ()
10413{
Reid Spencera773bd52006-08-04 18:18:08 +000010414return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415 ;
10416 return 0;
10417}
10418_ACEOF
10419rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010420if { (ac_try="$ac_link"
10421case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424esac
10425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434 { (case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437esac
10438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010444 { (case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447esac
10448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 eval "$as_ac_var=yes"
10454else
10455 echo "$as_me: failed program was:" >&5
10456sed 's/^/| /' conftest.$ac_ext >&5
10457
Reid Spencera773bd52006-08-04 18:18:08 +000010458 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459fi
Reid Spencera773bd52006-08-04 18:18:08 +000010460
10461rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462 conftest$ac_exeext conftest.$ac_ext
10463fi
Reid Spencera773bd52006-08-04 18:18:08 +000010464ac_res=`eval echo '${'$as_ac_var'}'`
10465 { echo "$as_me:$LINENO: result: $ac_res" >&5
10466echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010467if test `eval echo '${'$as_ac_var'}'` = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10470_ACEOF
10471
10472fi
10473done
10474
10475 LIBS="$lt_save_LIBS"
10476fi
10477ac_ext=c
10478ac_cpp='$CPP $CPPFLAGS'
10479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10481ac_compiler_gnu=$ac_cv_c_compiler_gnu
10482
10483
10484
Reid Spencera773bd52006-08-04 18:18:08 +000010485{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10486echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489else
10490 ac_cv_sys_symbol_underscore=no
10491 cat > conftest.$ac_ext <<EOF
10492void nm_test_func(){}
10493int main(){nm_test_func;return 0;}
10494EOF
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; then
10500 # Now try to grab the symbols.
10501 ac_nlist=conftest.nm
10502 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10503 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && test -s "$ac_nlist"; then
10507 # See whether the symbols have a leading underscore.
10508 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10509 ac_cv_sys_symbol_underscore=yes
10510 else
10511 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10512 :
10513 else
10514 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10515 fi
10516 fi
10517 else
10518 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10519 fi
10520 else
10521 echo "configure: failed program was:" >&5
10522 cat conftest.c >&5
10523 fi
10524 rm -rf conftest*
10525
10526fi
Reid Spencera773bd52006-08-04 18:18:08 +000010527{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10528echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529
10530
10531if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10532 if test x"$libltdl_cv_func_dlopen" = xyes ||
10533 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010534 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10535echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536if test "${libltdl_cv_need_uscore+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538else
10539 libltdl_cv_need_uscore=unknown
10540 save_LIBS="$LIBS"
10541 LIBS="$LIBS $LIBADD_DL"
10542 if test "$cross_compiling" = yes; then :
10543 libltdl_cv_need_uscore=cross
10544else
10545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10546 lt_status=$lt_dlunknown
10547 cat > conftest.$ac_ext <<EOF
Gordon Henriksenf0915682007-10-02 16:42:22 +000010548#line 10548 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549#include "confdefs.h"
10550
10551#if HAVE_DLFCN_H
10552#include <dlfcn.h>
10553#endif
10554
10555#include <stdio.h>
10556
10557#ifdef RTLD_GLOBAL
10558# define LT_DLGLOBAL RTLD_GLOBAL
10559#else
10560# ifdef DL_GLOBAL
10561# define LT_DLGLOBAL DL_GLOBAL
10562# else
10563# define LT_DLGLOBAL 0
10564# endif
10565#endif
10566
10567/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10568 find out it does not work in some platform. */
10569#ifndef LT_DLLAZY_OR_NOW
10570# ifdef RTLD_LAZY
10571# define LT_DLLAZY_OR_NOW RTLD_LAZY
10572# else
10573# ifdef DL_LAZY
10574# define LT_DLLAZY_OR_NOW DL_LAZY
10575# else
10576# ifdef RTLD_NOW
10577# define LT_DLLAZY_OR_NOW RTLD_NOW
10578# else
10579# ifdef DL_NOW
10580# define LT_DLLAZY_OR_NOW DL_NOW
10581# else
10582# define LT_DLLAZY_OR_NOW 0
10583# endif
10584# endif
10585# endif
10586# endif
10587#endif
10588
10589#ifdef __cplusplus
10590extern "C" void exit (int);
10591#endif
10592
10593void fnord() { int i=42;}
10594int main ()
10595{
10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10597 int status = $lt_dlunknown;
10598
10599 if (self)
10600 {
10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10603 /* dlclose (self); */
10604 }
Reid Spencera773bd52006-08-04 18:18:08 +000010605 else
10606 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010607
10608 exit (status);
10609}
10610EOF
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010616 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010617 lt_status=$?
10618 case x$lt_status in
10619 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10620 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010621 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010622 esac
10623 else :
10624 # compilation failed
10625
10626 fi
10627fi
10628rm -fr conftest*
10629
10630 LIBS="$save_LIBS"
10631
10632fi
Reid Spencera773bd52006-08-04 18:18:08 +000010633{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10634echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635 fi
10636fi
10637
10638if test x"$libltdl_cv_need_uscore" = xyes; then
10639
10640cat >>confdefs.h <<\_ACEOF
10641#define NEED_USCORE 1
10642_ACEOF
10643
10644fi
10645
10646
Reid Spencera773bd52006-08-04 18:18:08 +000010647{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10648echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651else
10652 # PORTME does your system automatically load deplibs for dlopen?
10653 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10654 # For now, we just catch OSes we know something about -- in the
10655 # future, we'll try test this programmatically.
10656 libltdl_cv_sys_dlopen_deplibs=unknown
10657 case "$host_os" in
10658 aix3*|aix4.1.*|aix4.2.*)
10659 # Unknown whether this is true for these versions of AIX, but
10660 # we want this `case' here to explicitly catch those versions.
10661 libltdl_cv_sys_dlopen_deplibs=unknown
10662 ;;
10663 aix[45]*)
10664 libltdl_cv_sys_dlopen_deplibs=yes
10665 ;;
10666 darwin*)
10667 # Assuming the user has installed a libdl from somewhere, this is true
10668 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10669 libltdl_cv_sys_dlopen_deplibs=yes
10670 ;;
10671 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10672 # GNU and its variants, using gnu ld.so (Glibc)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10674 ;;
10675 hpux10*|hpux11*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10677 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010678 interix*)
10679 libltdl_cv_sys_dlopen_deplibs=yes
10680 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010681 irix[12345]*|irix6.[01]*)
10682 # Catch all versions of IRIX before 6.2, and indicate that we don't
10683 # know how it worked for any of those versions.
10684 libltdl_cv_sys_dlopen_deplibs=unknown
10685 ;;
10686 irix*)
10687 # The case above catches anything before 6.2, and it's known that
10688 # at 6.2 and later dlopen does load deplibs.
10689 libltdl_cv_sys_dlopen_deplibs=yes
10690 ;;
10691 netbsd*)
10692 libltdl_cv_sys_dlopen_deplibs=yes
10693 ;;
10694 openbsd*)
10695 libltdl_cv_sys_dlopen_deplibs=yes
10696 ;;
10697 osf[1234]*)
10698 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10699 # it did *not* use an RPATH in a shared library to find objects the
10700 # library depends on, so we explictly say `no'.
10701 libltdl_cv_sys_dlopen_deplibs=no
10702 ;;
10703 osf5.0|osf5.0a|osf5.1)
10704 # dlopen *does* load deplibs and with the right loader patch applied
10705 # it even uses RPATH in a shared library to search for shared objects
10706 # that the library depends on, but there's no easy way to know if that
10707 # patch is installed. Since this is the case, all we can really
10708 # say is unknown -- it depends on the patch being installed. If
10709 # it is, this changes to `yes'. Without it, it would be `no'.
10710 libltdl_cv_sys_dlopen_deplibs=unknown
10711 ;;
10712 osf*)
10713 # the two cases above should catch all versions of osf <= 5.1. Read
10714 # the comments above for what we know about them.
10715 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10716 # is used to find them so we can finally say `yes'.
10717 libltdl_cv_sys_dlopen_deplibs=yes
10718 ;;
10719 solaris*)
10720 libltdl_cv_sys_dlopen_deplibs=yes
10721 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10723 libltdl_cv_sys_dlopen_deplibs=yes
10724 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725 esac
10726
10727fi
Reid Spencera773bd52006-08-04 18:18:08 +000010728{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10729echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010730if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10731
10732cat >>confdefs.h <<\_ACEOF
10733#define LTDL_DLOPEN_DEPLIBS 1
10734_ACEOF
10735
10736fi
10737
10738
10739for ac_header in argz.h
10740do
10741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747fi
Reid Spencera773bd52006-08-04 18:18:08 +000010748ac_res=`eval echo '${'$as_ac_Header'}'`
10749 { echo "$as_me:$LINENO: result: $ac_res" >&5
10750echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751else
10752 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010753{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010755cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761$ac_includes_default
10762#include <$ac_header>
10763_ACEOF
10764rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010765if { (ac_try="$ac_compile"
10766case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782esac
10783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_header_compiler=yes
10799else
10800 echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
10802
Reid Spencera773bd52006-08-04 18:18:08 +000010803 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804fi
Reid Spencera773bd52006-08-04 18:18:08 +000010805
10806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10808echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010809
10810# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010811{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010813cat >conftest.$ac_ext <<_ACEOF
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819#include <$ac_header>
10820_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010821if { (ac_try="$ac_cpp conftest.$ac_ext"
10822case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825esac
10826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev/null; then
10834 if test -s conftest.err; then
10835 ac_cpp_err=$ac_c_preproc_warn_flag
10836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10837 else
10838 ac_cpp_err=
10839 fi
10840else
10841 ac_cpp_err=yes
10842fi
10843if test -z "$ac_cpp_err"; then
10844 ac_header_preproc=yes
10845else
10846 echo "$as_me: failed program was:" >&5
10847sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 ac_header_preproc=no
10850fi
Reid Spencera773bd52006-08-04 18:18:08 +000010851
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010852rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10854echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010855
10856# So? What about this header?
10857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10858 yes:no: )
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10863 ac_header_preproc=yes
10864 ;;
10865 no:yes:* )
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010878 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010879## ----------------------------------- ##
10880## Report this to llvmbugs@cs.uiuc.edu ##
10881## ----------------------------------- ##
10882_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010883 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884 ;;
10885esac
Reid Spencera773bd52006-08-04 18:18:08 +000010886{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890else
10891 eval "$as_ac_Header=\$ac_header_preproc"
10892fi
Reid Spencera773bd52006-08-04 18:18:08 +000010893ac_res=`eval echo '${'$as_ac_Header'}'`
10894 { echo "$as_me:$LINENO: result: $ac_res" >&5
10895echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010896
10897fi
10898if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901_ACEOF
10902
10903fi
10904
10905done
10906
10907
Reid Spencera773bd52006-08-04 18:18:08 +000010908{ echo "$as_me:$LINENO: checking for error_t" >&5
10909echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910if test "${ac_cv_type_error_t+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912else
10913 cat >conftest.$ac_ext <<_ACEOF
10914/* confdefs.h. */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h. */
10919#if HAVE_ARGZ_H
10920# include <argz.h>
10921#endif
10922
Reid Spencera773bd52006-08-04 18:18:08 +000010923typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924int
10925main ()
10926{
Reid Spencera773bd52006-08-04 18:18:08 +000010927if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010929if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930 return 0;
10931 ;
10932 return 0;
10933}
10934_ACEOF
10935rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010936if { (ac_try="$ac_compile"
10937case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10940esac
10941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953esac
10954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963esac
10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_cv_type_error_t=yes
10970else
10971 echo "$as_me: failed program was:" >&5
10972sed 's/^/| /' conftest.$ac_ext >&5
10973
Reid Spencera773bd52006-08-04 18:18:08 +000010974 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010975fi
Reid Spencera773bd52006-08-04 18:18:08 +000010976
10977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978fi
Reid Spencera773bd52006-08-04 18:18:08 +000010979{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10980echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010981if test $ac_cv_type_error_t = yes; then
10982
10983cat >>confdefs.h <<_ACEOF
10984#define HAVE_ERROR_T 1
10985_ACEOF
10986
10987
10988else
10989
10990cat >>confdefs.h <<\_ACEOF
10991#define error_t int
10992_ACEOF
10993
10994fi
10995
10996
10997
10998
10999
11000
11001
11002for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11003do
11004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011005{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11007if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009else
11010 cat >conftest.$ac_ext <<_ACEOF
11011/* confdefs.h. */
11012_ACEOF
11013cat confdefs.h >>conftest.$ac_ext
11014cat >>conftest.$ac_ext <<_ACEOF
11015/* end confdefs.h. */
11016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11018#define $ac_func innocuous_$ac_func
11019
11020/* System header to define __stub macros and hopefully few prototypes,
11021 which can conflict with char $ac_func (); below.
11022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11023 <limits.h> exists even on freestanding compilers. */
11024
11025#ifdef __STDC__
11026# include <limits.h>
11027#else
11028# include <assert.h>
11029#endif
11030
11031#undef $ac_func
11032
Reid Spencera773bd52006-08-04 18:18:08 +000011033/* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011036#ifdef __cplusplus
11037extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011039char $ac_func ();
11040/* The GNU C library defines this for functions which it implements
11041 to always fail with ENOSYS. Some functions are actually named
11042 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011043#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011045#endif
11046
11047int
11048main ()
11049{
Reid Spencera773bd52006-08-04 18:18:08 +000011050return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011051 ;
11052 return 0;
11053}
11054_ACEOF
11055rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011056if { (ac_try="$ac_link"
11057case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060esac
11061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070 { (case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073esac
11074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011080 { (case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083esac
11084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 eval "$as_ac_var=yes"
11090else
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
Reid Spencera773bd52006-08-04 18:18:08 +000011094 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011095fi
Reid Spencera773bd52006-08-04 18:18:08 +000011096
11097rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098 conftest$ac_exeext conftest.$ac_ext
11099fi
Reid Spencera773bd52006-08-04 18:18:08 +000011100ac_res=`eval echo '${'$as_ac_var'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103if test `eval echo '${'$as_ac_var'}'` = yes; then
11104 cat >>confdefs.h <<_ACEOF
11105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11106_ACEOF
11107
11108fi
11109done
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11139 stdio.h unistd.h
11140do
11141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147fi
Reid Spencera773bd52006-08-04 18:18:08 +000011148ac_res=`eval echo '${'$as_ac_Header'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011151else
11152 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011153{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11154echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011155cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
11161$ac_includes_default
11162#include <$ac_header>
11163_ACEOF
11164rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011165if { (ac_try="$ac_compile"
11166case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169esac
11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11179 { (case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182esac
11183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011189 { (case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11192esac
11193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 ac_header_compiler=yes
11199else
11200 echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
11202
Reid Spencera773bd52006-08-04 18:18:08 +000011203 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011204fi
Reid Spencera773bd52006-08-04 18:18:08 +000011205
11206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11208echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209
11210# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011211{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011213cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
11219#include <$ac_header>
11220_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011221if { (ac_try="$ac_cpp conftest.$ac_ext"
11222case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225esac
11226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } >/dev/null; then
11234 if test -s conftest.err; then
11235 ac_cpp_err=$ac_c_preproc_warn_flag
11236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11237 else
11238 ac_cpp_err=
11239 fi
11240else
11241 ac_cpp_err=yes
11242fi
11243if test -z "$ac_cpp_err"; then
11244 ac_header_preproc=yes
11245else
11246 echo "$as_me: failed program was:" >&5
11247sed 's/^/| /' conftest.$ac_ext >&5
11248
11249 ac_header_preproc=no
11250fi
Reid Spencera773bd52006-08-04 18:18:08 +000011251
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011252rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011253{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11254echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011255
11256# So? What about this header?
11257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11258 yes:no: )
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11263 ac_header_preproc=yes
11264 ;;
11265 no:yes:* )
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11269echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11273echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011278 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011279## ----------------------------------- ##
11280## Report this to llvmbugs@cs.uiuc.edu ##
11281## ----------------------------------- ##
11282_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011283 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011284 ;;
11285esac
Reid Spencera773bd52006-08-04 18:18:08 +000011286{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 eval "$as_ac_Header=\$ac_header_preproc"
11292fi
Reid Spencera773bd52006-08-04 18:18:08 +000011293ac_res=`eval echo '${'$as_ac_Header'}'`
11294 { echo "$as_me:$LINENO: result: $ac_res" >&5
11295echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011296
11297fi
11298if test `eval echo '${'$as_ac_Header'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11301_ACEOF
11302
11303fi
11304
11305done
11306
11307
11308
11309
11310
11311for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11312do
11313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319fi
Reid Spencera773bd52006-08-04 18:18:08 +000011320ac_res=`eval echo '${'$as_ac_Header'}'`
11321 { echo "$as_me:$LINENO: result: $ac_res" >&5
11322echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323else
11324 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011325{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11326echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
11333$ac_includes_default
11334#include <$ac_header>
11335_ACEOF
11336rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011337if { (ac_try="$ac_compile"
11338case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341esac
11342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354esac
11355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364esac
11365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_header_compiler=yes
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
Reid Spencera773bd52006-08-04 18:18:08 +000011375 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011376fi
Reid Spencera773bd52006-08-04 18:18:08 +000011377
11378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11380echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381
11382# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011383{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011385cat >conftest.$ac_ext <<_ACEOF
11386/* confdefs.h. */
11387_ACEOF
11388cat confdefs.h >>conftest.$ac_ext
11389cat >>conftest.$ac_ext <<_ACEOF
11390/* end confdefs.h. */
11391#include <$ac_header>
11392_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011393if { (ac_try="$ac_cpp conftest.$ac_ext"
11394case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397esac
11398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } >/dev/null; then
11406 if test -s conftest.err; then
11407 ac_cpp_err=$ac_c_preproc_warn_flag
11408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11409 else
11410 ac_cpp_err=
11411 fi
11412else
11413 ac_cpp_err=yes
11414fi
11415if test -z "$ac_cpp_err"; then
11416 ac_header_preproc=yes
11417else
11418 echo "$as_me: failed program was:" >&5
11419sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 ac_header_preproc=no
11422fi
Reid Spencera773bd52006-08-04 18:18:08 +000011423
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011425{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11426echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011427
11428# So? What about this header?
11429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11430 yes:no: )
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11435 ac_header_preproc=yes
11436 ;;
11437 no:yes:* )
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011450 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011451## ----------------------------------- ##
11452## Report this to llvmbugs@cs.uiuc.edu ##
11453## ----------------------------------- ##
11454_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011455 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011456 ;;
11457esac
Reid Spencera773bd52006-08-04 18:18:08 +000011458{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462else
11463 eval "$as_ac_Header=\$ac_header_preproc"
11464fi
Reid Spencera773bd52006-08-04 18:18:08 +000011465ac_res=`eval echo '${'$as_ac_Header'}'`
11466 { echo "$as_me:$LINENO: result: $ac_res" >&5
11467echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011468
11469fi
11470if test `eval echo '${'$as_ac_Header'}'` = yes; then
11471 cat >>confdefs.h <<_ACEOF
11472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473_ACEOF
11474
11475fi
11476
11477done
11478
11479
11480
11481for ac_header in string.h strings.h
11482do
11483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489fi
Reid Spencera773bd52006-08-04 18:18:08 +000011490ac_res=`eval echo '${'$as_ac_Header'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493else
11494 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011495{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011497cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503$ac_includes_default
11504#include <$ac_header>
11505_ACEOF
11506rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011507if { (ac_try="$ac_compile"
11508case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11511esac
11512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11521 { (case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11524esac
11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011531 { (case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11534esac
11535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_header_compiler=yes
11541else
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
Reid Spencera773bd52006-08-04 18:18:08 +000011545 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011546fi
Reid Spencera773bd52006-08-04 18:18:08 +000011547
11548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11550echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551
11552# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011553{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11554echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011555cat >conftest.$ac_ext <<_ACEOF
11556/* confdefs.h. */
11557_ACEOF
11558cat confdefs.h >>conftest.$ac_ext
11559cat >>conftest.$ac_ext <<_ACEOF
11560/* end confdefs.h. */
11561#include <$ac_header>
11562_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011563if { (ac_try="$ac_cpp conftest.$ac_ext"
11564case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567esac
11568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } >/dev/null; then
11576 if test -s conftest.err; then
11577 ac_cpp_err=$ac_c_preproc_warn_flag
11578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11579 else
11580 ac_cpp_err=
11581 fi
11582else
11583 ac_cpp_err=yes
11584fi
11585if test -z "$ac_cpp_err"; then
11586 ac_header_preproc=yes
11587else
11588 echo "$as_me: failed program was:" >&5
11589sed 's/^/| /' conftest.$ac_ext >&5
11590
11591 ac_header_preproc=no
11592fi
Reid Spencera773bd52006-08-04 18:18:08 +000011593
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011595{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11596echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011597
11598# So? What about this header?
11599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11600 yes:no: )
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11605 ac_header_preproc=yes
11606 ;;
11607 no:yes:* )
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011620 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011621## ----------------------------------- ##
11622## Report this to llvmbugs@cs.uiuc.edu ##
11623## ----------------------------------- ##
11624_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011625 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011626 ;;
11627esac
Reid Spencera773bd52006-08-04 18:18:08 +000011628{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632else
11633 eval "$as_ac_Header=\$ac_header_preproc"
11634fi
Reid Spencera773bd52006-08-04 18:18:08 +000011635ac_res=`eval echo '${'$as_ac_Header'}'`
11636 { echo "$as_me:$LINENO: result: $ac_res" >&5
11637echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638
11639fi
11640if test `eval echo '${'$as_ac_Header'}'` = yes; then
11641 cat >>confdefs.h <<_ACEOF
11642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643_ACEOF
11644 break
11645fi
11646
11647done
11648
11649
11650
11651
11652for ac_func in strchr index
11653do
11654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011655{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11657if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659else
11660 cat >conftest.$ac_ext <<_ACEOF
11661/* confdefs.h. */
11662_ACEOF
11663cat confdefs.h >>conftest.$ac_ext
11664cat >>conftest.$ac_ext <<_ACEOF
11665/* end confdefs.h. */
11666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11668#define $ac_func innocuous_$ac_func
11669
11670/* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func (); below.
11672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11673 <limits.h> exists even on freestanding compilers. */
11674
11675#ifdef __STDC__
11676# include <limits.h>
11677#else
11678# include <assert.h>
11679#endif
11680
11681#undef $ac_func
11682
Reid Spencera773bd52006-08-04 18:18:08 +000011683/* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686#ifdef __cplusplus
11687extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011689char $ac_func ();
11690/* The GNU C library defines this for functions which it implements
11691 to always fail with ENOSYS. Some functions are actually named
11692 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011693#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695#endif
11696
11697int
11698main ()
11699{
Reid Spencera773bd52006-08-04 18:18:08 +000011700return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701 ;
11702 return 0;
11703}
11704_ACEOF
11705rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011706if { (ac_try="$ac_link"
11707case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11710esac
11711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720 { (case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11723esac
11724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011730 { (case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11733esac
11734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 eval "$as_ac_var=yes"
11740else
11741 echo "$as_me: failed program was:" >&5
11742sed 's/^/| /' conftest.$ac_ext >&5
11743
Reid Spencera773bd52006-08-04 18:18:08 +000011744 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745fi
Reid Spencera773bd52006-08-04 18:18:08 +000011746
11747rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011748 conftest$ac_exeext conftest.$ac_ext
11749fi
Reid Spencera773bd52006-08-04 18:18:08 +000011750ac_res=`eval echo '${'$as_ac_var'}'`
11751 { echo "$as_me:$LINENO: result: $ac_res" >&5
11752echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011753if test `eval echo '${'$as_ac_var'}'` = yes; then
11754 cat >>confdefs.h <<_ACEOF
11755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756_ACEOF
11757 break
11758fi
11759done
11760
11761
11762
11763for ac_func in strrchr rindex
11764do
11765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011766{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11768if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770else
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779#define $ac_func innocuous_$ac_func
11780
11781/* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11785
11786#ifdef __STDC__
11787# include <limits.h>
11788#else
11789# include <assert.h>
11790#endif
11791
11792#undef $ac_func
11793
Reid Spencera773bd52006-08-04 18:18:08 +000011794/* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011797#ifdef __cplusplus
11798extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011799#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011800char $ac_func ();
11801/* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011804#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011806#endif
11807
11808int
11809main ()
11810{
Reid Spencera773bd52006-08-04 18:18:08 +000011811return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812 ;
11813 return 0;
11814}
11815_ACEOF
11816rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011817if { (ac_try="$ac_link"
11818case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821esac
11822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834esac
11835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844esac
11845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 eval "$as_ac_var=yes"
11851else
11852 echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
Reid Spencera773bd52006-08-04 18:18:08 +000011855 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856fi
Reid Spencera773bd52006-08-04 18:18:08 +000011857
11858rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011859 conftest$ac_exeext conftest.$ac_ext
11860fi
Reid Spencera773bd52006-08-04 18:18:08 +000011861ac_res=`eval echo '${'$as_ac_var'}'`
11862 { echo "$as_me:$LINENO: result: $ac_res" >&5
11863echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011864if test `eval echo '${'$as_ac_var'}'` = yes; then
11865 cat >>confdefs.h <<_ACEOF
11866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867_ACEOF
11868 break
11869fi
11870done
11871
11872
11873
11874for ac_func in memcpy bcopy
11875do
11876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011877{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11879if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882 cat >conftest.$ac_ext <<_ACEOF
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
11888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11890#define $ac_func innocuous_$ac_func
11891
11892/* System header to define __stub macros and hopefully few prototypes,
11893 which can conflict with char $ac_func (); below.
11894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11895 <limits.h> exists even on freestanding compilers. */
11896
11897#ifdef __STDC__
11898# include <limits.h>
11899#else
11900# include <assert.h>
11901#endif
11902
11903#undef $ac_func
11904
Reid Spencera773bd52006-08-04 18:18:08 +000011905/* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908#ifdef __cplusplus
11909extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011910#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011911char $ac_func ();
11912/* The GNU C library defines this for functions which it implements
11913 to always fail with ENOSYS. Some functions are actually named
11914 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011915#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917#endif
11918
11919int
11920main ()
11921{
Reid Spencera773bd52006-08-04 18:18:08 +000011922return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011928if { (ac_try="$ac_link"
11929case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932esac
11933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945esac
11946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955esac
11956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 eval "$as_ac_var=yes"
11962else
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
Reid Spencera773bd52006-08-04 18:18:08 +000011966 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011967fi
Reid Spencera773bd52006-08-04 18:18:08 +000011968
11969rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970 conftest$ac_exeext conftest.$ac_ext
11971fi
Reid Spencera773bd52006-08-04 18:18:08 +000011972ac_res=`eval echo '${'$as_ac_var'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975if test `eval echo '${'$as_ac_var'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978_ACEOF
11979 break
11980fi
11981done
11982
11983
11984
11985for ac_func in memmove strcmp
11986do
11987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011988{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11990if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011991 echo $ECHO_N "(cached) $ECHO_C" >&6
11992else
11993 cat >conftest.$ac_ext <<_ACEOF
11994/* confdefs.h. */
11995_ACEOF
11996cat confdefs.h >>conftest.$ac_ext
11997cat >>conftest.$ac_ext <<_ACEOF
11998/* end confdefs.h. */
11999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12001#define $ac_func innocuous_$ac_func
12002
12003/* System header to define __stub macros and hopefully few prototypes,
12004 which can conflict with char $ac_func (); below.
12005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12006 <limits.h> exists even on freestanding compilers. */
12007
12008#ifdef __STDC__
12009# include <limits.h>
12010#else
12011# include <assert.h>
12012#endif
12013
12014#undef $ac_func
12015
Reid Spencera773bd52006-08-04 18:18:08 +000012016/* Override any GCC internal prototype to avoid an error.
12017 Use char because int might match the return type of a GCC
12018 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012019#ifdef __cplusplus
12020extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012021#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012022char $ac_func ();
12023/* The GNU C library defines this for functions which it implements
12024 to always fail with ENOSYS. Some functions are actually named
12025 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012026#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028#endif
12029
12030int
12031main ()
12032{
Reid Spencera773bd52006-08-04 18:18:08 +000012033return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012034 ;
12035 return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012039if { (ac_try="$ac_link"
12040case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12053 { (case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056esac
12057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; } &&
12062 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066esac
12067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 eval "$as_ac_var=yes"
12073else
12074 echo "$as_me: failed program was:" >&5
12075sed 's/^/| /' conftest.$ac_ext >&5
12076
Reid Spencera773bd52006-08-04 18:18:08 +000012077 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012078fi
Reid Spencera773bd52006-08-04 18:18:08 +000012079
12080rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012081 conftest$ac_exeext conftest.$ac_ext
12082fi
Reid Spencera773bd52006-08-04 18:18:08 +000012083ac_res=`eval echo '${'$as_ac_var'}'`
12084 { echo "$as_me:$LINENO: result: $ac_res" >&5
12085echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012086if test `eval echo '${'$as_ac_var'}'` = yes; then
12087 cat >>confdefs.h <<_ACEOF
12088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12089_ACEOF
12090
12091fi
12092done
12093
12094
12095
12096
12097for ac_func in closedir opendir readdir
12098do
12099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012100{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12102if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
12105 cat >conftest.$ac_ext <<_ACEOF
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
12111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12113#define $ac_func innocuous_$ac_func
12114
12115/* System header to define __stub macros and hopefully few prototypes,
12116 which can conflict with char $ac_func (); below.
12117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 <limits.h> exists even on freestanding compilers. */
12119
12120#ifdef __STDC__
12121# include <limits.h>
12122#else
12123# include <assert.h>
12124#endif
12125
12126#undef $ac_func
12127
Reid Spencera773bd52006-08-04 18:18:08 +000012128/* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012131#ifdef __cplusplus
12132extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012134char $ac_func ();
12135/* The GNU C library defines this for functions which it implements
12136 to always fail with ENOSYS. Some functions are actually named
12137 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012138#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012140#endif
12141
12142int
12143main ()
12144{
Reid Spencera773bd52006-08-04 18:18:08 +000012145return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012146 ;
12147 return 0;
12148}
12149_ACEOF
12150rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012151if { (ac_try="$ac_link"
12152case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12155esac
12156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12165 { (case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168esac
12169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012175 { (case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 eval "$as_ac_var=yes"
12185else
12186 echo "$as_me: failed program was:" >&5
12187sed 's/^/| /' conftest.$ac_ext >&5
12188
Reid Spencera773bd52006-08-04 18:18:08 +000012189 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012190fi
Reid Spencera773bd52006-08-04 18:18:08 +000012191
12192rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012193 conftest$ac_exeext conftest.$ac_ext
12194fi
Reid Spencera773bd52006-08-04 18:18:08 +000012195ac_res=`eval echo '${'$as_ac_var'}'`
12196 { echo "$as_me:$LINENO: result: $ac_res" >&5
12197echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012198if test `eval echo '${'$as_ac_var'}'` = yes; then
12199 cat >>confdefs.h <<_ACEOF
12200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201_ACEOF
12202
12203fi
12204done
12205
12206
Reid Spencera773bd52006-08-04 18:18:08 +000012207# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012209 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210 case $enableval in
12211 yes) enable_shared=yes ;;
12212 no) enable_shared=no ;;
12213 *)
12214 enable_shared=no
12215 # Look at the argument we got. We use all the common list separators.
12216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12217 for pkg in $enableval; do
12218 IFS="$lt_save_ifs"
12219 if test "X$pkg" = "X$p"; then
12220 enable_shared=yes
12221 fi
12222 done
12223 IFS="$lt_save_ifs"
12224 ;;
12225 esac
12226else
12227 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012228fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012229
Reid Spencera773bd52006-08-04 18:18:08 +000012230
12231# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012233 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234 case $enableval in
12235 yes) enable_static=yes ;;
12236 no) enable_static=no ;;
12237 *)
12238 enable_static=no
12239 # Look at the argument we got. We use all the common list separators.
12240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12241 for pkg in $enableval; do
12242 IFS="$lt_save_ifs"
12243 if test "X$pkg" = "X$p"; then
12244 enable_static=yes
12245 fi
12246 done
12247 IFS="$lt_save_ifs"
12248 ;;
12249 esac
12250else
12251 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012252fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012253
Reid Spencera773bd52006-08-04 18:18:08 +000012254
12255# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012256if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012257 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012258 case $enableval in
12259 yes) enable_fast_install=yes ;;
12260 no) enable_fast_install=no ;;
12261 *)
12262 enable_fast_install=no
12263 # Look at the argument we got. We use all the common list separators.
12264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12265 for pkg in $enableval; do
12266 IFS="$lt_save_ifs"
12267 if test "X$pkg" = "X$p"; then
12268 enable_fast_install=yes
12269 fi
12270 done
12271 IFS="$lt_save_ifs"
12272 ;;
12273 esac
12274else
12275 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012276fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012277
Reid Spencera773bd52006-08-04 18:18:08 +000012278
12279{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12280echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012281if test "${lt_cv_path_SED+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283else
12284 # Loop through the user's path and test for sed and gsed.
12285# Then use that list of sed's as ones to test for truncation.
12286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287for as_dir in $PATH
12288do
12289 IFS=$as_save_IFS
12290 test -z "$as_dir" && as_dir=.
12291 for lt_ac_prog in sed gsed; do
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12294 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12295 fi
12296 done
12297 done
12298done
12299lt_ac_max=0
12300lt_ac_count=0
12301# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12302# along with /bin/sed that truncates output.
12303for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012304 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012305 cat /dev/null > conftest.in
12306 lt_ac_count=0
12307 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12308 # Check for GNU sed and select it if it is found.
12309 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12310 lt_cv_path_SED=$lt_ac_sed
12311 break
12312 fi
12313 while true; do
12314 cat conftest.in conftest.in >conftest.tmp
12315 mv conftest.tmp conftest.in
12316 cp conftest.in conftest.nl
12317 echo >>conftest.nl
12318 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12319 cmp -s conftest.out conftest.nl || break
12320 # 10000 chars as input seems more than enough
12321 test $lt_ac_count -gt 10 && break
12322 lt_ac_count=`expr $lt_ac_count + 1`
12323 if test $lt_ac_count -gt $lt_ac_max; then
12324 lt_ac_max=$lt_ac_count
12325 lt_cv_path_SED=$lt_ac_sed
12326 fi
12327 done
12328done
12329
12330fi
12331
12332SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012333{ echo "$as_me:$LINENO: result: $SED" >&5
12334echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012335
12336
Reid Spencera773bd52006-08-04 18:18:08 +000012337# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012338if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012339 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012340else
12341 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012342fi
12343
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344ac_prog=ld
12345if test "$GCC" = yes; then
12346 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012347 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12348echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012349 case $host in
12350 *-*-mingw*)
12351 # gcc leaves a trailing carriage return which upsets mingw
12352 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12353 *)
12354 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12355 esac
12356 case $ac_prog in
12357 # Accept absolute paths.
12358 [\\/]* | ?:[\\/]*)
12359 re_direlt='/[^/][^/]*/\.\./'
12360 # Canonicalize the pathname of ld
12361 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12362 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12363 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12364 done
12365 test -z "$LD" && LD="$ac_prog"
12366 ;;
12367 "")
12368 # If it fails, then pretend we aren't using GCC.
12369 ac_prog=ld
12370 ;;
12371 *)
12372 # If it is relative, then search for the first ld in PATH.
12373 with_gnu_ld=unknown
12374 ;;
12375 esac
12376elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012377 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12378echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012379else
Reid Spencera773bd52006-08-04 18:18:08 +000012380 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12381echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382fi
12383if test "${lt_cv_path_LD+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12385else
12386 if test -z "$LD"; then
12387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12388 for ac_dir in $PATH; do
12389 IFS="$lt_save_ifs"
12390 test -z "$ac_dir" && ac_dir=.
12391 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12392 lt_cv_path_LD="$ac_dir/$ac_prog"
12393 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012394 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012395 # Break only if it was the GNU/non-GNU ld that we prefer.
12396 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12397 *GNU* | *'with BFD'*)
12398 test "$with_gnu_ld" != no && break
12399 ;;
12400 *)
12401 test "$with_gnu_ld" != yes && break
12402 ;;
12403 esac
12404 fi
12405 done
12406 IFS="$lt_save_ifs"
12407else
12408 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12409fi
12410fi
12411
12412LD="$lt_cv_path_LD"
12413if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012414 { echo "$as_me:$LINENO: result: $LD" >&5
12415echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012416else
Reid Spencera773bd52006-08-04 18:18:08 +000012417 { echo "$as_me:$LINENO: result: no" >&5
12418echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012419fi
12420test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12421echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12422 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012423{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12424echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012425if test "${lt_cv_prog_gnu_ld+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427else
Reid Spencera773bd52006-08-04 18:18:08 +000012428 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012429case `$LD -v 2>&1 </dev/null` in
12430*GNU* | *'with BFD'*)
12431 lt_cv_prog_gnu_ld=yes
12432 ;;
12433*)
12434 lt_cv_prog_gnu_ld=no
12435 ;;
12436esac
12437fi
Reid Spencera773bd52006-08-04 18:18:08 +000012438{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12439echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440with_gnu_ld=$lt_cv_prog_gnu_ld
12441
12442
Reid Spencera773bd52006-08-04 18:18:08 +000012443{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12444echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012445if test "${lt_cv_ld_reload_flag+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447else
12448 lt_cv_ld_reload_flag='-r'
12449fi
Reid Spencera773bd52006-08-04 18:18:08 +000012450{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12451echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012452reload_flag=$lt_cv_ld_reload_flag
12453case $reload_flag in
12454"" | " "*) ;;
12455*) reload_flag=" $reload_flag" ;;
12456esac
12457reload_cmds='$LD$reload_flag -o $output$reload_objs'
12458case $host_os in
12459 darwin*)
12460 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012461 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012462 else
12463 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12464 fi
12465 ;;
12466esac
12467
Reid Spencera773bd52006-08-04 18:18:08 +000012468{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12469echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470if test "${lt_cv_deplibs_check_method+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473 lt_cv_file_magic_cmd='$MAGIC_CMD'
12474lt_cv_file_magic_test_file=
12475lt_cv_deplibs_check_method='unknown'
12476# Need to set the preceding variable on all platforms that support
12477# interlibrary dependencies.
12478# 'none' -- dependencies not supported.
12479# `unknown' -- same as none, but documents that we really don't know.
12480# 'pass_all' -- all dependencies passed with no checks.
12481# 'test_compile' -- check by making test program.
12482# 'file_magic [[regex]]' -- check by looking for files in library path
12483# which responds to the $file_magic_cmd with a given extended regex.
12484# If you have `file' or equivalent on your system and you're not sure
12485# whether `pass_all' will *always* work, you probably want this one.
12486
12487case $host_os in
12488aix4* | aix5*)
12489 lt_cv_deplibs_check_method=pass_all
12490 ;;
12491
12492beos*)
12493 lt_cv_deplibs_check_method=pass_all
12494 ;;
12495
12496bsdi[45]*)
12497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12498 lt_cv_file_magic_cmd='/usr/bin/file -L'
12499 lt_cv_file_magic_test_file=/shlib/libc.so
12500 ;;
12501
12502cygwin*)
12503 # func_win32_libid is a shell function defined in ltmain.sh
12504 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12505 lt_cv_file_magic_cmd='func_win32_libid'
12506 ;;
12507
12508mingw* | pw32*)
12509 # Base MSYS/MinGW do not provide the 'file' command needed by
12510 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12511 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12512 lt_cv_file_magic_cmd='$OBJDUMP -f'
12513 ;;
12514
12515darwin* | rhapsody*)
12516 lt_cv_deplibs_check_method=pass_all
12517 ;;
12518
Reid Spencera773bd52006-08-04 18:18:08 +000012519freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12521 case $host_cpu in
12522 i*86 )
12523 # Not sure whether the presence of OpenBSD here was a mistake.
12524 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012525 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 +000012526 lt_cv_file_magic_cmd=/usr/bin/file
12527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12528 ;;
12529 esac
12530 else
12531 lt_cv_deplibs_check_method=pass_all
12532 fi
12533 ;;
12534
12535gnu*)
12536 lt_cv_deplibs_check_method=pass_all
12537 ;;
12538
12539hpux10.20* | hpux11*)
12540 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012541 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012542 ia64*)
12543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12544 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12545 ;;
12546 hppa*64*)
12547 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]'
12548 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12549 ;;
12550 *)
12551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12553 ;;
12554 esac
12555 ;;
12556
Reid Spencera773bd52006-08-04 18:18:08 +000012557interix3*)
12558 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12560 ;;
12561
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012562irix5* | irix6* | nonstopux*)
12563 case $LD in
12564 *-32|*"-32 ") libmagic=32-bit;;
12565 *-n32|*"-n32 ") libmagic=N32;;
12566 *-64|*"-64 ") libmagic=64-bit;;
12567 *) libmagic=never-match;;
12568 esac
12569 lt_cv_deplibs_check_method=pass_all
12570 ;;
12571
12572# This must be Linux ELF.
12573linux*)
12574 lt_cv_deplibs_check_method=pass_all
12575 ;;
12576
12577netbsd*)
12578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12580 else
12581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12582 fi
12583 ;;
12584
12585newos6*)
12586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12587 lt_cv_file_magic_cmd=/usr/bin/file
12588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12589 ;;
12590
12591nto-qnx*)
12592 lt_cv_deplibs_check_method=unknown
12593 ;;
12594
12595openbsd*)
12596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12598 else
12599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12600 fi
12601 ;;
12602
12603osf3* | osf4* | osf5*)
12604 lt_cv_deplibs_check_method=pass_all
12605 ;;
12606
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012607solaris*)
12608 lt_cv_deplibs_check_method=pass_all
12609 ;;
12610
Reid Spencera773bd52006-08-04 18:18:08 +000012611sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012612 case $host_vendor in
12613 motorola)
12614 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]'
12615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12616 ;;
12617 ncr)
12618 lt_cv_deplibs_check_method=pass_all
12619 ;;
12620 sequent)
12621 lt_cv_file_magic_cmd='/bin/file'
12622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12623 ;;
12624 sni)
12625 lt_cv_file_magic_cmd='/bin/file'
12626 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12627 lt_cv_file_magic_test_file=/lib/libc.so
12628 ;;
12629 siemens)
12630 lt_cv_deplibs_check_method=pass_all
12631 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012632 pc)
12633 lt_cv_deplibs_check_method=pass_all
12634 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012635 esac
12636 ;;
12637
Reid Spencera773bd52006-08-04 18:18:08 +000012638sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012639 lt_cv_deplibs_check_method=pass_all
12640 ;;
12641esac
12642
12643fi
Reid Spencera773bd52006-08-04 18:18:08 +000012644{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12645echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012646file_magic_cmd=$lt_cv_file_magic_cmd
12647deplibs_check_method=$lt_cv_deplibs_check_method
12648test -z "$deplibs_check_method" && deplibs_check_method=unknown
12649
12650
12651
12652# If no C compiler was specified, use CC.
12653LTCC=${LTCC-"$CC"}
12654
Reid Spencera773bd52006-08-04 18:18:08 +000012655# If no C compiler flags were specified, use CFLAGS.
12656LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12657
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012658# Allow CC to be a program name with arguments.
12659compiler=$CC
12660
Reid Spencera773bd52006-08-04 18:18:08 +000012661# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012662if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012663 enableval=$enable_libtool_lock;
12664fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012666test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12667
12668# Some flags need to be propagated to the compiler or linker for good
12669# libtool support.
12670case $host in
12671ia64-*-hpux*)
12672 # Find out which ABI we are using.
12673 echo 'int i;' > conftest.$ac_ext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675 (eval $ac_compile) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; then
12679 case `/usr/bin/file conftest.$ac_objext` in
12680 *ELF-32*)
12681 HPUX_IA64_MODE="32"
12682 ;;
12683 *ELF-64*)
12684 HPUX_IA64_MODE="64"
12685 ;;
12686 esac
12687 fi
12688 rm -rf conftest*
12689 ;;
12690*-*-irix6*)
12691 # Find out which ABI we are using.
Gordon Henriksenf0915682007-10-02 16:42:22 +000012692 echo '#line 12692 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694 (eval $ac_compile) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; then
12698 if test "$lt_cv_prog_gnu_ld" = yes; then
12699 case `/usr/bin/file conftest.$ac_objext` in
12700 *32-bit*)
12701 LD="${LD-ld} -melf32bsmip"
12702 ;;
12703 *N32*)
12704 LD="${LD-ld} -melf32bmipn32"
12705 ;;
12706 *64-bit*)
12707 LD="${LD-ld} -melf64bmip"
12708 ;;
12709 esac
12710 else
12711 case `/usr/bin/file conftest.$ac_objext` in
12712 *32-bit*)
12713 LD="${LD-ld} -32"
12714 ;;
12715 *N32*)
12716 LD="${LD-ld} -n32"
12717 ;;
12718 *64-bit*)
12719 LD="${LD-ld} -64"
12720 ;;
12721 esac
12722 fi
12723 fi
12724 rm -rf conftest*
12725 ;;
12726
12727x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12728 # Find out which ABI we are using.
12729 echo 'int i;' > conftest.$ac_ext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012735 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012736 *32-bit*)
12737 case $host in
12738 x86_64-*linux*)
12739 LD="${LD-ld} -m elf_i386"
12740 ;;
12741 ppc64-*linux*|powerpc64-*linux*)
12742 LD="${LD-ld} -m elf32ppclinux"
12743 ;;
12744 s390x-*linux*)
12745 LD="${LD-ld} -m elf_s390"
12746 ;;
12747 sparc64-*linux*)
12748 LD="${LD-ld} -m elf32_sparc"
12749 ;;
12750 esac
12751 ;;
12752 *64-bit*)
12753 case $host in
12754 x86_64-*linux*)
12755 LD="${LD-ld} -m elf_x86_64"
12756 ;;
12757 ppc*-*linux*|powerpc*-*linux*)
12758 LD="${LD-ld} -m elf64ppc"
12759 ;;
12760 s390*-*linux*)
12761 LD="${LD-ld} -m elf64_s390"
12762 ;;
12763 sparc*-*linux*)
12764 LD="${LD-ld} -m elf64_sparc"
12765 ;;
12766 esac
12767 ;;
12768 esac
12769 fi
12770 rm -rf conftest*
12771 ;;
12772
12773*-*-sco3.2v5*)
12774 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12775 SAVE_CFLAGS="$CFLAGS"
12776 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012777 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12778echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012779if test "${lt_cv_cc_needs_belf+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781else
12782 ac_ext=c
12783ac_cpp='$CPP $CPPFLAGS'
12784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12786ac_compiler_gnu=$ac_cv_c_compiler_gnu
12787
12788 cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794
Reid Spencera773bd52006-08-04 18:18:08 +000012795int
12796main ()
12797{
12798
12799 ;
12800 return 0;
12801}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012802_ACEOF
12803rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012804if { (ac_try="$ac_link"
12805case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808esac
12809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12818 { (case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12821esac
12822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } &&
12827 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831esac
12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 lt_cv_cc_needs_belf=yes
12838else
12839 echo "$as_me: failed program was:" >&5
12840sed 's/^/| /' conftest.$ac_ext >&5
12841
Reid Spencera773bd52006-08-04 18:18:08 +000012842 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012843fi
Reid Spencera773bd52006-08-04 18:18:08 +000012844
12845rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012846 conftest$ac_exeext conftest.$ac_ext
12847 ac_ext=c
12848ac_cpp='$CPP $CPPFLAGS'
12849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851ac_compiler_gnu=$ac_cv_c_compiler_gnu
12852
12853fi
Reid Spencera773bd52006-08-04 18:18:08 +000012854{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12855echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012856 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12857 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12858 CFLAGS="$SAVE_CFLAGS"
12859 fi
12860 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012861sparc*-*solaris*)
12862 # Find out which ABI we are using.
12863 echo 'int i;' > conftest.$ac_ext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12865 (eval $ac_compile) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; then
12869 case `/usr/bin/file conftest.o` in
12870 *64-bit*)
12871 case $lt_cv_prog_gnu_ld in
12872 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12873 *) LD="${LD-ld} -64" ;;
12874 esac
12875 ;;
12876 esac
12877 fi
12878 rm -rf conftest*
12879 ;;
12880
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012881
12882esac
12883
12884need_locks="$enable_libtool_lock"
12885
12886
Reid Spencer2706f8c2004-09-19 23:53:36 +000012887
12888
12889if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12890 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12891 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012892 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012893ac_cpp='$CXXCPP $CPPFLAGS'
12894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012897{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12898echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012899if test -z "$CXXCPP"; then
12900 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902else
John Criswell47fdd832003-07-14 16:52:07 +000012903 # Double quotes because CXXCPP needs to be expanded
12904 for CXXCPP in "$CXX -E" "/lib/cpp"
12905 do
12906 ac_preproc_ok=false
12907for ac_cxx_preproc_warn_flag in '' yes
12908do
12909 # Use a header file that comes with gcc, so configuring glibc
12910 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12912 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012913 # On the NeXT, cc -E runs the code through the compiler's parser,
12914 # not just through cpp. "Syntax error" is here to catch this case.
12915 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012916/* confdefs.h. */
12917_ACEOF
12918cat confdefs.h >>conftest.$ac_ext
12919cat >>conftest.$ac_ext <<_ACEOF
12920/* end confdefs.h. */
12921#ifdef __STDC__
12922# include <limits.h>
12923#else
12924# include <assert.h>
12925#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012926 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012927_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012928if { (ac_try="$ac_cpp conftest.$ac_ext"
12929case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012935 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012936 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev/null; then
12941 if test -s conftest.err; then
12942 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012943 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012944 else
John Criswell47fdd832003-07-14 16:52:07 +000012945 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012946 fi
John Criswell47fdd832003-07-14 16:52:07 +000012947else
12948 ac_cpp_err=yes
12949fi
12950if test -z "$ac_cpp_err"; then
12951 :
12952else
12953 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012954sed 's/^/| /' conftest.$ac_ext >&5
12955
John Criswell47fdd832003-07-14 16:52:07 +000012956 # Broken: fails on valid input.
12957continue
12958fi
Reid Spencera773bd52006-08-04 18:18:08 +000012959
John Criswell47fdd832003-07-14 16:52:07 +000012960rm -f conftest.err conftest.$ac_ext
12961
Reid Spencera773bd52006-08-04 18:18:08 +000012962 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012963 # can be detected and how.
12964 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012965/* confdefs.h. */
12966_ACEOF
12967cat confdefs.h >>conftest.$ac_ext
12968cat >>conftest.$ac_ext <<_ACEOF
12969/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012970#include <ac_nonexistent.h>
12971_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012972if { (ac_try="$ac_cpp conftest.$ac_ext"
12973case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976esac
12977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012979 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012980 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } >/dev/null; then
12985 if test -s conftest.err; then
12986 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012987 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012988 else
12989 ac_cpp_err=
12990 fi
12991else
12992 ac_cpp_err=yes
12993fi
12994if test -z "$ac_cpp_err"; then
12995 # Broken: success on invalid input.
12996continue
12997else
12998 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012999sed 's/^/| /' conftest.$ac_ext >&5
13000
John Criswell47fdd832003-07-14 16:52:07 +000013001 # Passes both tests.
13002ac_preproc_ok=:
13003break
13004fi
Reid Spencera773bd52006-08-04 18:18:08 +000013005
John Criswell47fdd832003-07-14 16:52:07 +000013006rm -f conftest.err conftest.$ac_ext
13007
13008done
13009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13010rm -f conftest.err conftest.$ac_ext
13011if $ac_preproc_ok; then
13012 break
John Criswell7a73b802003-06-30 21:59:07 +000013013fi
13014
John Criswell47fdd832003-07-14 16:52:07 +000013015 done
13016 ac_cv_prog_CXXCPP=$CXXCPP
13017
13018fi
13019 CXXCPP=$ac_cv_prog_CXXCPP
13020else
13021 ac_cv_prog_CXXCPP=$CXXCPP
13022fi
Reid Spencera773bd52006-08-04 18:18:08 +000013023{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13024echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013025ac_preproc_ok=false
13026for ac_cxx_preproc_warn_flag in '' yes
13027do
13028 # Use a header file that comes with gcc, so configuring glibc
13029 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13031 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013032 # On the NeXT, cc -E runs the code through the compiler's parser,
13033 # not just through cpp. "Syntax error" is here to catch this case.
13034 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013035/* confdefs.h. */
13036_ACEOF
13037cat confdefs.h >>conftest.$ac_ext
13038cat >>conftest.$ac_ext <<_ACEOF
13039/* end confdefs.h. */
13040#ifdef __STDC__
13041# include <limits.h>
13042#else
13043# include <assert.h>
13044#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013045 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013046_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013047if { (ac_try="$ac_cpp conftest.$ac_ext"
13048case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013054 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013055 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } >/dev/null; then
13060 if test -s conftest.err; then
13061 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000013062 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000013063 else
13064 ac_cpp_err=
13065 fi
13066else
13067 ac_cpp_err=yes
13068fi
13069if test -z "$ac_cpp_err"; then
13070 :
13071else
13072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013073sed 's/^/| /' conftest.$ac_ext >&5
13074
John Criswell47fdd832003-07-14 16:52:07 +000013075 # Broken: fails on valid input.
13076continue
13077fi
Reid Spencera773bd52006-08-04 18:18:08 +000013078
John Criswell47fdd832003-07-14 16:52:07 +000013079rm -f conftest.err conftest.$ac_ext
13080
Reid Spencera773bd52006-08-04 18:18:08 +000013081 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013082 # can be detected and how.
13083 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013089#include <ac_nonexistent.h>
13090_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013091if { (ac_try="$ac_cpp conftest.$ac_ext"
13092case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095esac
13096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013098 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013099 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } >/dev/null; then
13104 if test -s conftest.err; then
13105 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000013106 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000013107 else
13108 ac_cpp_err=
13109 fi
13110else
13111 ac_cpp_err=yes
13112fi
13113if test -z "$ac_cpp_err"; then
13114 # Broken: success on invalid input.
13115continue
13116else
13117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013118sed 's/^/| /' conftest.$ac_ext >&5
13119
John Criswell47fdd832003-07-14 16:52:07 +000013120 # Passes both tests.
13121ac_preproc_ok=:
13122break
13123fi
Reid Spencera773bd52006-08-04 18:18:08 +000013124
John Criswell47fdd832003-07-14 16:52:07 +000013125rm -f conftest.err conftest.$ac_ext
13126
13127done
13128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13129rm -f conftest.err conftest.$ac_ext
13130if $ac_preproc_ok; then
13131 :
13132else
John Criswell0c38eaf2003-09-10 15:17:25 +000013133 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13134See \`config.log' for more details." >&5
13135echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13136See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013137 { (exit 1); exit 1; }; }
13138fi
13139
Reid Spencera773bd52006-08-04 18:18:08 +000013140ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013141ac_cpp='$CXXCPP $CPPFLAGS'
13142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13145
Reid Spencer2706f8c2004-09-19 23:53:36 +000013146fi
13147
John Criswell47fdd832003-07-14 16:52:07 +000013148
13149ac_ext=f
13150ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13151ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13152ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13153if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013154 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 +000013155 do
13156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13157set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013160if test "${ac_cv_prog_F77+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162else
13163 if test -n "$F77"; then
13164 ac_cv_prog_F77="$F77" # Let the user override the test.
13165else
13166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167for as_dir in $PATH
13168do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013172 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 +000013173 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13176 fi
13177done
13178done
Reid Spencera773bd52006-08-04 18:18:08 +000013179IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013180
13181fi
13182fi
13183F77=$ac_cv_prog_F77
13184if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013185 { echo "$as_me:$LINENO: result: $F77" >&5
13186echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013187else
Reid Spencera773bd52006-08-04 18:18:08 +000013188 { echo "$as_me:$LINENO: result: no" >&5
13189echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013190fi
13191
Reid Spencera773bd52006-08-04 18:18:08 +000013192
John Criswell47fdd832003-07-14 16:52:07 +000013193 test -n "$F77" && break
13194 done
13195fi
13196if test -z "$F77"; then
13197 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000013198 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 +000013199do
13200 # Extract the first word of "$ac_prog", so it can be a program name with args.
13201set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013204if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207 if test -n "$ac_ct_F77"; then
13208 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13209else
13210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211for as_dir in $PATH
13212do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013216 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 +000013217 ac_cv_prog_ac_ct_F77="$ac_prog"
13218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221done
13222done
Reid Spencera773bd52006-08-04 18:18:08 +000013223IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013224
13225fi
13226fi
13227ac_ct_F77=$ac_cv_prog_ac_ct_F77
13228if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013229 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13230echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013231else
Reid Spencera773bd52006-08-04 18:18:08 +000013232 { echo "$as_me:$LINENO: result: no" >&5
13233echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013234fi
13235
Reid Spencera773bd52006-08-04 18:18:08 +000013236
John Criswell47fdd832003-07-14 16:52:07 +000013237 test -n "$ac_ct_F77" && break
13238done
13239
Reid Spencera773bd52006-08-04 18:18:08 +000013240 if test "x$ac_ct_F77" = x; then
13241 F77=""
13242 else
13243 case $cross_compiling:$ac_tool_warned in
13244yes:)
13245{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13246whose name does not start with the host triplet. If you think this
13247configuration is useful to you, please write to autoconf@gnu.org." >&5
13248echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13249whose name does not start with the host triplet. If you think this
13250configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13251ac_tool_warned=yes ;;
13252esac
13253 F77=$ac_ct_F77
13254 fi
John Criswell47fdd832003-07-14 16:52:07 +000013255fi
13256
13257
13258# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013259echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013260ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013261{ (ac_try="$ac_compiler --version >&5"
13262case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13265esac
13266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013271{ (ac_try="$ac_compiler -v >&5"
13272case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13275esac
13276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013281{ (ac_try="$ac_compiler -V >&5"
13282case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285esac
13286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013291rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013292
13293# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013294# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013295ac_save_ext=$ac_ext
13296ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013297{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13298echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013299if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301else
13302 cat >conftest.$ac_ext <<_ACEOF
13303 program main
13304#ifndef __GNUC__
13305 choke me
13306#endif
13307
13308 end
13309_ACEOF
13310rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013311if { (ac_try="$ac_compile"
13312case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315esac
13316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013318 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013324 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328esac
13329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338esac
13339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_compiler_gnu=yes
13345else
13346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013347sed 's/^/| /' conftest.$ac_ext >&5
13348
Reid Spencera773bd52006-08-04 18:18:08 +000013349 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013350fi
Reid Spencera773bd52006-08-04 18:18:08 +000013351
13352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013353ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13354
13355fi
Reid Spencera773bd52006-08-04 18:18:08 +000013356{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13357echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013358ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013359ac_test_FFLAGS=${FFLAGS+set}
13360ac_save_FFLAGS=$FFLAGS
13361FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013362{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13363echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013364if test "${ac_cv_prog_f77_g+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
13367 FFLAGS=-g
13368cat >conftest.$ac_ext <<_ACEOF
13369 program main
13370
13371 end
13372_ACEOF
13373rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013374if { (ac_try="$ac_compile"
13375case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13378esac
13379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013387 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401esac
13402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_prog_f77_g=yes
13408else
13409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013410sed 's/^/| /' conftest.$ac_ext >&5
13411
Reid Spencera773bd52006-08-04 18:18:08 +000013412 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013413fi
Reid Spencera773bd52006-08-04 18:18:08 +000013414
13415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013416
13417fi
Reid Spencera773bd52006-08-04 18:18:08 +000013418{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13419echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013420if test "$ac_test_FFLAGS" = set; then
13421 FFLAGS=$ac_save_FFLAGS
13422elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013423 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013424 FFLAGS="-g -O2"
13425 else
13426 FFLAGS="-g"
13427 fi
13428else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013429 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013430 FFLAGS="-O2"
13431 else
13432 FFLAGS=
13433 fi
13434fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013435
13436G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013437ac_ext=c
13438ac_cpp='$CPP $CPPFLAGS'
13439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13441ac_compiler_gnu=$ac_cv_c_compiler_gnu
13442
13443
13444
13445# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13446
13447# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013448{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13449echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013450if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452else
13453 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013454 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013455
13456 case $build_os in
13457 msdosdjgpp*)
13458 # On DJGPP, this test can blow up pretty badly due to problems in libc
13459 # (any single argument exceeding 2000 bytes causes a buffer overrun
13460 # during glob expansion). Even if it were fixed, the result of this
13461 # check would be larger than it should be.
13462 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13463 ;;
13464
13465 gnu*)
13466 # Under GNU Hurd, this test is not required because there is
13467 # no limit to the length of command line arguments.
13468 # Libtool will interpret -1 as no limit whatsoever
13469 lt_cv_sys_max_cmd_len=-1;
13470 ;;
13471
13472 cygwin* | mingw*)
13473 # On Win9x/ME, this test blows up -- it succeeds, but takes
13474 # about 5 minutes as the teststring grows exponentially.
13475 # Worse, since 9x/ME are not pre-emptively multitasking,
13476 # you end up with a "frozen" computer, even though with patience
13477 # the test eventually succeeds (with a max line length of 256k).
13478 # Instead, let's just punt: use the minimum linelength reported by
13479 # all of the supported platforms: 8192 (on NT/2K/XP).
13480 lt_cv_sys_max_cmd_len=8192;
13481 ;;
13482
Reid Spencer2706f8c2004-09-19 23:53:36 +000013483 amigaos*)
13484 # On AmigaOS with pdksh, this test takes hours, literally.
13485 # So we just punt and use a minimum line length of 8192.
13486 lt_cv_sys_max_cmd_len=8192;
13487 ;;
13488
Reid Spencera773bd52006-08-04 18:18:08 +000013489 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013490 # This has been around since 386BSD, at least. Likely further.
13491 if test -x /sbin/sysctl; then
13492 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13493 elif test -x /usr/sbin/sysctl; then
13494 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13495 else
Reid Spencera773bd52006-08-04 18:18:08 +000013496 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013497 fi
13498 # And add a safety zone
13499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013501 ;;
13502
Reid Spencera773bd52006-08-04 18:18:08 +000013503 interix*)
13504 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13505 lt_cv_sys_max_cmd_len=196608
13506 ;;
13507
13508 osf*)
13509 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13510 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13511 # nice to cause kernel panics so lets avoid the loop below.
13512 # First set a reasonable default.
13513 lt_cv_sys_max_cmd_len=16384
13514 #
13515 if test -x /sbin/sysconfig; then
13516 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13517 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13518 esac
13519 fi
13520 ;;
13521 sco3.2v5*)
13522 lt_cv_sys_max_cmd_len=102400
13523 ;;
13524 sysv5* | sco5v6* | sysv4.2uw2*)
13525 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13526 if test -n "$kargmax"; then
13527 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13528 else
13529 lt_cv_sys_max_cmd_len=32768
13530 fi
13531 ;;
13532 *)
John Criswell47fdd832003-07-14 16:52:07 +000013533 # If test is not a shell built-in, we'll probably end up computing a
13534 # maximum length that is only half of the actual maximum length, but
13535 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013536 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13537 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13538 = "XX$teststring") >/dev/null 2>&1 &&
13539 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013540 lt_cv_sys_max_cmd_len=$new_result &&
13541 test $i != 17 # 1/2 MB should be enough
13542 do
13543 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013544 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013545 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013546 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013547 # Add a significant safety factor because C++ compilers can tack on massive
13548 # amounts of additional arguments before passing them to the linker.
13549 # It appears as though 1/2 is a usable value.
13550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13551 ;;
13552 esac
13553
13554fi
13555
13556if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013557 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13558echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013559else
Reid Spencera773bd52006-08-04 18:18:08 +000013560 { echo "$as_me:$LINENO: result: none" >&5
13561echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013562fi
13563
13564
13565
13566
13567# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013568{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13569echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013570if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572else
13573
13574# These are sane defaults that work on at least a few old systems.
13575# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13576
13577# Character class describing NM global symbol codes.
13578symcode='[BCDEGRST]'
13579
13580# Regexp to match symbols that can be accessed directly from C.
13581sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13582
John Criswell47fdd832003-07-14 16:52:07 +000013583# Transform an extracted symbol line into a proper C declaration
13584lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13585
13586# Transform an extracted symbol line into symbol name and symbol address
13587lt_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'"
13588
13589# Define system-specific variables.
13590case $host_os in
13591aix*)
13592 symcode='[BCDT]'
13593 ;;
13594cygwin* | mingw* | pw32*)
13595 symcode='[ABCDGISTW]'
13596 ;;
13597hpux*) # Its linker distinguishes data from code symbols
13598 if test "$host_cpu" = ia64; then
13599 symcode='[ABCDEGRST]'
13600 fi
13601 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13602 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'"
13603 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013604linux*)
13605 if test "$host_cpu" = ia64; then
13606 symcode='[ABCDGIRSTW]'
13607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13608 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'"
13609 fi
13610 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013611irix* | nonstopux*)
13612 symcode='[BCDEGRST]'
13613 ;;
13614osf*)
13615 symcode='[BCDEGQRST]'
13616 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013617solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013618 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013619 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013620sco3.2v5*)
13621 symcode='[DT]'
13622 ;;
13623sysv4.2uw2*)
13624 symcode='[DT]'
13625 ;;
13626sysv5* | sco5v6* | unixware* | OpenUNIX*)
13627 symcode='[ABDT]'
13628 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013629sysv4)
13630 symcode='[DFNSTU]'
13631 ;;
13632esac
13633
13634# Handle CRLF in mingw tool chain
13635opt_cr=
13636case $build_os in
13637mingw*)
13638 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13639 ;;
13640esac
13641
13642# If we're using GNU nm, then use its standard symbol codes.
13643case `$NM -V 2>&1` in
13644*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013645 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013646esac
13647
13648# Try without a prefix undercore, then with it.
13649for ac_symprfx in "" "_"; do
13650
Reid Spencera773bd52006-08-04 18:18:08 +000013651 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13652 symxfrm="\\1 $ac_symprfx\\2 \\2"
13653
John Criswell47fdd832003-07-14 16:52:07 +000013654 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013655 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 +000013656
13657 # Check to see that the pipe works correctly.
13658 pipe_works=no
13659
13660 rm -f conftest*
13661 cat > conftest.$ac_ext <<EOF
13662#ifdef __cplusplus
13663extern "C" {
13664#endif
13665char nm_test_var;
13666void nm_test_func(){}
13667#ifdef __cplusplus
13668}
13669#endif
13670int main(){nm_test_var='a';nm_test_func();return(0);}
13671EOF
13672
13673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13674 (eval $ac_compile) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; then
13678 # Now try to grab the symbols.
13679 nlist=conftest.nm
13680 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13681 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && test -s "$nlist"; then
13685 # Try sorting and uniquifying the output.
13686 if sort "$nlist" | uniq > "$nlist"T; then
13687 mv -f "$nlist"T "$nlist"
13688 else
13689 rm -f "$nlist"T
13690 fi
13691
13692 # Make sure that we snagged all the symbols we need.
13693 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13694 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13695 cat <<EOF > conftest.$ac_ext
13696#ifdef __cplusplus
13697extern "C" {
13698#endif
13699
13700EOF
13701 # Now generate the symbol file.
13702 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13703
13704 cat <<EOF >> conftest.$ac_ext
13705#if defined (__STDC__) && __STDC__
13706# define lt_ptr_t void *
13707#else
13708# define lt_ptr_t char *
13709# define const
13710#endif
13711
13712/* The mapping between symbol names and symbols. */
13713const struct {
13714 const char *name;
13715 lt_ptr_t address;
13716}
13717lt_preloaded_symbols[] =
13718{
13719EOF
13720 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13721 cat <<\EOF >> conftest.$ac_ext
13722 {0, (lt_ptr_t) 0}
13723};
13724
13725#ifdef __cplusplus
13726}
13727#endif
13728EOF
13729 # Now try linking the two files.
13730 mv conftest.$ac_objext conftstm.$ac_objext
13731 lt_save_LIBS="$LIBS"
13732 lt_save_CFLAGS="$CFLAGS"
13733 LIBS="conftstm.$ac_objext"
13734 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13740 pipe_works=yes
13741 fi
13742 LIBS="$lt_save_LIBS"
13743 CFLAGS="$lt_save_CFLAGS"
13744 else
13745 echo "cannot find nm_test_func in $nlist" >&5
13746 fi
13747 else
13748 echo "cannot find nm_test_var in $nlist" >&5
13749 fi
13750 else
13751 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13752 fi
13753 else
13754 echo "$progname: failed program was:" >&5
13755 cat conftest.$ac_ext >&5
13756 fi
13757 rm -f conftest* conftst*
13758
13759 # Do not use the global_symbol_pipe unless it works.
13760 if test "$pipe_works" = yes; then
13761 break
13762 else
13763 lt_cv_sys_global_symbol_pipe=
13764 fi
13765done
13766
13767fi
13768
13769if test -z "$lt_cv_sys_global_symbol_pipe"; then
13770 lt_cv_sys_global_symbol_to_cdecl=
13771fi
13772if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013773 { echo "$as_me:$LINENO: result: failed" >&5
13774echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013775else
Reid Spencera773bd52006-08-04 18:18:08 +000013776 { echo "$as_me:$LINENO: result: ok" >&5
13777echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013778fi
13779
Reid Spencera773bd52006-08-04 18:18:08 +000013780{ echo "$as_me:$LINENO: checking for objdir" >&5
13781echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013782if test "${lt_cv_objdir+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784else
13785 rm -f .libs 2>/dev/null
13786mkdir .libs 2>/dev/null
13787if test -d .libs; then
13788 lt_cv_objdir=.libs
13789else
13790 # MS-DOS does not allow filenames that begin with a dot.
13791 lt_cv_objdir=_libs
13792fi
13793rmdir .libs 2>/dev/null
13794fi
Reid Spencera773bd52006-08-04 18:18:08 +000013795{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13796echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013797objdir=$lt_cv_objdir
13798
13799
13800
13801
13802
13803case $host_os in
13804aix3*)
13805 # AIX sometimes has problems with the GCC collect2 program. For some
13806 # reason, if we set the COLLECT_NAMES environment variable, the problems
13807 # vanish in a puff of smoke.
13808 if test "X${COLLECT_NAMES+set}" != Xset; then
13809 COLLECT_NAMES=
13810 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013811 fi
13812 ;;
13813esac
13814
John Criswell47fdd832003-07-14 16:52:07 +000013815# Sed substitution that helps us do robust quoting. It backslashifies
13816# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013817Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013818sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13819
13820# Same as above, but do not quote variable references.
13821double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13822
13823# Sed substitution to delay expansion of an escaped shell variable in a
13824# double_quote_subst'ed string.
13825delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13826
13827# Sed substitution to avoid accidental globbing in evaled expressions
13828no_glob_subst='s/\*/\\\*/g'
13829
13830# Constants:
13831rm="rm -f"
13832
13833# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013834default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013835can_build_shared=yes
13836
Reid Spencera773bd52006-08-04 18:18:08 +000013837# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013838# which needs '.lib').
13839libext=a
13840ltmain="$ac_aux_dir/ltmain.sh"
13841ofile="$default_ofile"
13842with_gnu_ld="$lt_cv_prog_gnu_ld"
13843
13844if test -n "$ac_tool_prefix"; then
13845 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13846set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013849if test "${ac_cv_prog_AR+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851else
13852 if test -n "$AR"; then
13853 ac_cv_prog_AR="$AR" # Let the user override the test.
13854else
13855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856for as_dir in $PATH
13857do
13858 IFS=$as_save_IFS
13859 test -z "$as_dir" && as_dir=.
13860 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013861 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 +000013862 ac_cv_prog_AR="${ac_tool_prefix}ar"
13863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13864 break 2
13865 fi
13866done
13867done
Reid Spencera773bd52006-08-04 18:18:08 +000013868IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013869
13870fi
13871fi
13872AR=$ac_cv_prog_AR
13873if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013874 { echo "$as_me:$LINENO: result: $AR" >&5
13875echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013876else
Reid Spencera773bd52006-08-04 18:18:08 +000013877 { echo "$as_me:$LINENO: result: no" >&5
13878echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013879fi
13880
Reid Spencera773bd52006-08-04 18:18:08 +000013881
John Criswell47fdd832003-07-14 16:52:07 +000013882fi
13883if test -z "$ac_cv_prog_AR"; then
13884 ac_ct_AR=$AR
13885 # Extract the first word of "ar", so it can be a program name with args.
13886set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013889if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891else
13892 if test -n "$ac_ct_AR"; then
13893 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13894else
13895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896for as_dir in $PATH
13897do
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013901 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 +000013902 ac_cv_prog_ac_ct_AR="ar"
13903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13905 fi
13906done
13907done
Reid Spencera773bd52006-08-04 18:18:08 +000013908IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013909
John Criswell47fdd832003-07-14 16:52:07 +000013910fi
13911fi
13912ac_ct_AR=$ac_cv_prog_ac_ct_AR
13913if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013914 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13915echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013916else
Reid Spencera773bd52006-08-04 18:18:08 +000013917 { echo "$as_me:$LINENO: result: no" >&5
13918echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013919fi
13920
Reid Spencera773bd52006-08-04 18:18:08 +000013921 if test "x$ac_ct_AR" = x; then
13922 AR="false"
13923 else
13924 case $cross_compiling:$ac_tool_warned in
13925yes:)
13926{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13927whose name does not start with the host triplet. If you think this
13928configuration is useful to you, please write to autoconf@gnu.org." >&5
13929echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13930whose name does not start with the host triplet. If you think this
13931configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13932ac_tool_warned=yes ;;
13933esac
13934 AR=$ac_ct_AR
13935 fi
John Criswell47fdd832003-07-14 16:52:07 +000013936else
13937 AR="$ac_cv_prog_AR"
13938fi
13939
John Criswell7a73b802003-06-30 21:59:07 +000013940if test -n "$ac_tool_prefix"; then
13941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13942set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013945if test "${ac_cv_prog_RANLIB+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947else
13948 if test -n "$RANLIB"; then
13949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13950else
13951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13952for as_dir in $PATH
13953do
13954 IFS=$as_save_IFS
13955 test -z "$as_dir" && as_dir=.
13956 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013957 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 +000013958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13960 break 2
13961 fi
13962done
13963done
Reid Spencera773bd52006-08-04 18:18:08 +000013964IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013965
13966fi
13967fi
13968RANLIB=$ac_cv_prog_RANLIB
13969if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013970 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13971echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013972else
Reid Spencera773bd52006-08-04 18:18:08 +000013973 { echo "$as_me:$LINENO: result: no" >&5
13974echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013975fi
13976
Reid Spencera773bd52006-08-04 18:18:08 +000013977
John Criswell7a73b802003-06-30 21:59:07 +000013978fi
13979if test -z "$ac_cv_prog_RANLIB"; then
13980 ac_ct_RANLIB=$RANLIB
13981 # Extract the first word of "ranlib", so it can be a program name with args.
13982set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013985if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13987else
13988 if test -n "$ac_ct_RANLIB"; then
13989 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13990else
13991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992for as_dir in $PATH
13993do
13994 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013997 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 +000013998 ac_cv_prog_ac_ct_RANLIB="ranlib"
13999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 break 2
14001 fi
14002done
14003done
Reid Spencera773bd52006-08-04 18:18:08 +000014004IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014005
John Criswell7a73b802003-06-30 21:59:07 +000014006fi
14007fi
14008ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14009if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014010 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14011echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014012else
Reid Spencera773bd52006-08-04 18:18:08 +000014013 { echo "$as_me:$LINENO: result: no" >&5
14014echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014015fi
14016
Reid Spencera773bd52006-08-04 18:18:08 +000014017 if test "x$ac_ct_RANLIB" = x; then
14018 RANLIB=":"
14019 else
14020 case $cross_compiling:$ac_tool_warned in
14021yes:)
14022{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14023whose name does not start with the host triplet. If you think this
14024configuration is useful to you, please write to autoconf@gnu.org." >&5
14025echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14026whose name does not start with the host triplet. If you think this
14027configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14028ac_tool_warned=yes ;;
14029esac
14030 RANLIB=$ac_ct_RANLIB
14031 fi
John Criswell7a73b802003-06-30 21:59:07 +000014032else
14033 RANLIB="$ac_cv_prog_RANLIB"
14034fi
14035
14036if test -n "$ac_tool_prefix"; then
14037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14038set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014041if test "${ac_cv_prog_STRIP+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043else
14044 if test -n "$STRIP"; then
14045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14046else
14047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048for as_dir in $PATH
14049do
14050 IFS=$as_save_IFS
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000014053 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 +000014054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 break 2
14057 fi
14058done
14059done
Reid Spencera773bd52006-08-04 18:18:08 +000014060IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014061
14062fi
14063fi
14064STRIP=$ac_cv_prog_STRIP
14065if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014066 { echo "$as_me:$LINENO: result: $STRIP" >&5
14067echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014068else
Reid Spencera773bd52006-08-04 18:18:08 +000014069 { echo "$as_me:$LINENO: result: no" >&5
14070echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014071fi
14072
Reid Spencera773bd52006-08-04 18:18:08 +000014073
John Criswell7a73b802003-06-30 21:59:07 +000014074fi
14075if test -z "$ac_cv_prog_STRIP"; then
14076 ac_ct_STRIP=$STRIP
14077 # Extract the first word of "strip", so it can be a program name with args.
14078set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014081if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084 if test -n "$ac_ct_STRIP"; then
14085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14086else
14087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088for as_dir in $PATH
14089do
14090 IFS=$as_save_IFS
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000014093 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 +000014094 ac_cv_prog_ac_ct_STRIP="strip"
14095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096 break 2
14097 fi
14098done
14099done
Reid Spencera773bd52006-08-04 18:18:08 +000014100IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014101
John Criswell7a73b802003-06-30 21:59:07 +000014102fi
14103fi
14104ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14105if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014106 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14107echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014108else
Reid Spencera773bd52006-08-04 18:18:08 +000014109 { echo "$as_me:$LINENO: result: no" >&5
14110echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014111fi
14112
Reid Spencera773bd52006-08-04 18:18:08 +000014113 if test "x$ac_ct_STRIP" = x; then
14114 STRIP=":"
14115 else
14116 case $cross_compiling:$ac_tool_warned in
14117yes:)
14118{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14119whose name does not start with the host triplet. If you think this
14120configuration is useful to you, please write to autoconf@gnu.org." >&5
14121echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14122whose name does not start with the host triplet. If you think this
14123configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14124ac_tool_warned=yes ;;
14125esac
14126 STRIP=$ac_ct_STRIP
14127 fi
John Criswell7a73b802003-06-30 21:59:07 +000014128else
14129 STRIP="$ac_cv_prog_STRIP"
14130fi
14131
14132
John Criswell7a73b802003-06-30 21:59:07 +000014133old_CC="$CC"
14134old_CFLAGS="$CFLAGS"
14135
14136# Set sane defaults for various variables
14137test -z "$AR" && AR=ar
14138test -z "$AR_FLAGS" && AR_FLAGS=cru
14139test -z "$AS" && AS=as
14140test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014141test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014142test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014143test -z "$DLLTOOL" && DLLTOOL=dlltool
14144test -z "$LD" && LD=ld
14145test -z "$LN_S" && LN_S="ln -s"
14146test -z "$MAGIC_CMD" && MAGIC_CMD=file
14147test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014148test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014149test -z "$OBJDUMP" && OBJDUMP=objdump
14150test -z "$RANLIB" && RANLIB=:
14151test -z "$STRIP" && STRIP=:
14152test -z "$ac_objext" && ac_objext=o
14153
John Criswell7a73b802003-06-30 21:59:07 +000014154# Determine commands to create old-style static archives.
14155old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14156old_postinstall_cmds='chmod 644 $oldlib'
14157old_postuninstall_cmds=
14158
14159if test -n "$RANLIB"; then
14160 case $host_os in
14161 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014162 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014163 ;;
14164 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014165 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014166 ;;
14167 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014168 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014169fi
14170
Reid Spencera773bd52006-08-04 18:18:08 +000014171for cc_temp in $compiler""; do
14172 case $cc_temp in
14173 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14174 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14175 \-*) ;;
14176 *) break;;
14177 esac
14178done
14179cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14180
Reid Spencer2706f8c2004-09-19 23:53:36 +000014181
John Criswell47fdd832003-07-14 16:52:07 +000014182# Only perform the check for file, if the check method requires it
14183case $deplibs_check_method in
14184file_magic*)
14185 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014186 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14187echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014188if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014190else
John Criswell47fdd832003-07-14 16:52:07 +000014191 case $MAGIC_CMD in
14192[\\/*] | ?:[\\/]*)
14193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14194 ;;
14195*)
14196 lt_save_MAGIC_CMD="$MAGIC_CMD"
14197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14199 for ac_dir in $ac_dummy; do
14200 IFS="$lt_save_ifs"
14201 test -z "$ac_dir" && ac_dir=.
14202 if test -f $ac_dir/${ac_tool_prefix}file; then
14203 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14204 if test -n "$file_magic_test_file"; then
14205 case $deplibs_check_method in
14206 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14210 $EGREP "$file_magic_regex" > /dev/null; then
14211 :
14212 else
14213 cat <<EOF 1>&2
14214
14215*** Warning: the command libtool uses to detect shared libraries,
14216*** $file_magic_cmd, produces output that libtool cannot recognize.
14217*** The result is that libtool may fail to recognize shared libraries
14218*** as such. This will affect the creation of libtool libraries that
14219*** depend on shared libraries, but programs linked with such libtool
14220*** libraries will work regardless of this problem. Nevertheless, you
14221*** may want to report the problem to your system manager and/or to
14222*** bug-libtool@gnu.org
14223
14224EOF
14225 fi ;;
14226 esac
14227 fi
14228 break
14229 fi
14230 done
14231 IFS="$lt_save_ifs"
14232 MAGIC_CMD="$lt_save_MAGIC_CMD"
14233 ;;
14234esac
John Criswell7a73b802003-06-30 21:59:07 +000014235fi
John Criswell7a73b802003-06-30 21:59:07 +000014236
John Criswell47fdd832003-07-14 16:52:07 +000014237MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14238if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014239 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14240echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014241else
Reid Spencera773bd52006-08-04 18:18:08 +000014242 { echo "$as_me:$LINENO: result: no" >&5
14243echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014244fi
John Criswell7a73b802003-06-30 21:59:07 +000014245
John Criswell47fdd832003-07-14 16:52:07 +000014246if test -z "$lt_cv_path_MAGIC_CMD"; then
14247 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014248 { echo "$as_me:$LINENO: checking for file" >&5
14249echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014250if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252else
14253 case $MAGIC_CMD in
14254[\\/*] | ?:[\\/]*)
14255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14256 ;;
14257*)
14258 lt_save_MAGIC_CMD="$MAGIC_CMD"
14259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14261 for ac_dir in $ac_dummy; do
14262 IFS="$lt_save_ifs"
14263 test -z "$ac_dir" && ac_dir=.
14264 if test -f $ac_dir/file; then
14265 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14266 if test -n "$file_magic_test_file"; then
14267 case $deplibs_check_method in
14268 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14272 $EGREP "$file_magic_regex" > /dev/null; then
14273 :
14274 else
14275 cat <<EOF 1>&2
14276
14277*** Warning: the command libtool uses to detect shared libraries,
14278*** $file_magic_cmd, produces output that libtool cannot recognize.
14279*** The result is that libtool may fail to recognize shared libraries
14280*** as such. This will affect the creation of libtool libraries that
14281*** depend on shared libraries, but programs linked with such libtool
14282*** libraries will work regardless of this problem. Nevertheless, you
14283*** may want to report the problem to your system manager and/or to
14284*** bug-libtool@gnu.org
14285
14286EOF
14287 fi ;;
14288 esac
14289 fi
14290 break
14291 fi
14292 done
14293 IFS="$lt_save_ifs"
14294 MAGIC_CMD="$lt_save_MAGIC_CMD"
14295 ;;
14296esac
14297fi
14298
14299MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14300if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014301 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14302echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014303else
Reid Spencera773bd52006-08-04 18:18:08 +000014304 { echo "$as_me:$LINENO: result: no" >&5
14305echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014306fi
14307
14308 else
14309 MAGIC_CMD=:
14310 fi
14311fi
14312
14313 fi
14314 ;;
14315esac
14316
Reid Spencer17795972004-11-18 09:47:37 +000014317enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014318enable_win32_dll=no
14319
Reid Spencera773bd52006-08-04 18:18:08 +000014320# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014321if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014322 enableval=$enable_libtool_lock;
14323fi
John Criswell47fdd832003-07-14 16:52:07 +000014324
John Criswell47fdd832003-07-14 16:52:07 +000014325test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14326
John Criswell7a73b802003-06-30 21:59:07 +000014327
Reid Spencera773bd52006-08-04 18:18:08 +000014328# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014329if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014330 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014331else
14332 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014333fi
14334
John Criswell7a73b802003-06-30 21:59:07 +000014335test -z "$pic_mode" && pic_mode=default
14336
John Criswell47fdd832003-07-14 16:52:07 +000014337# Use C for the default configuration in the libtool script
14338tagname=
14339lt_save_CC="$CC"
14340ac_ext=c
14341ac_cpp='$CPP $CPPFLAGS'
14342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14344ac_compiler_gnu=$ac_cv_c_compiler_gnu
14345
14346
14347# Source file extension for C test sources.
14348ac_ext=c
14349
14350# Object file extension for compiled C test sources.
14351objext=o
14352objext=$objext
14353
14354# Code to be used in simple compile tests
14355lt_simple_compile_test_code="int some_variable = 0;\n"
14356
14357# Code to be used in simple link tests
14358lt_simple_link_test_code='int main(){return(0);}\n'
14359
14360
14361# If no C compiler was specified, use CC.
14362LTCC=${LTCC-"$CC"}
14363
Reid Spencera773bd52006-08-04 18:18:08 +000014364# If no C compiler flags were specified, use CFLAGS.
14365LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14366
John Criswell47fdd832003-07-14 16:52:07 +000014367# Allow CC to be a program name with arguments.
14368compiler=$CC
14369
14370
Reid Spencera773bd52006-08-04 18:18:08 +000014371# save warnings/boilerplate of simple test code
14372ac_outfile=conftest.$ac_objext
14373printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14374eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14375_lt_compiler_boilerplate=`cat conftest.err`
14376$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014377
Reid Spencera773bd52006-08-04 18:18:08 +000014378ac_outfile=conftest.$ac_objext
14379printf "$lt_simple_link_test_code" >conftest.$ac_ext
14380eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14381_lt_linker_boilerplate=`cat conftest.err`
14382$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014383
14384
John Criswell47fdd832003-07-14 16:52:07 +000014385
14386lt_prog_compiler_no_builtin_flag=
14387
14388if test "$GCC" = yes; then
14389 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14390
Reid Spencer2706f8c2004-09-19 23:53:36 +000014391
Reid Spencera773bd52006-08-04 18:18:08 +000014392{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14393echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014394if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
14397 lt_cv_prog_compiler_rtti_exceptions=no
14398 ac_outfile=conftest.$ac_objext
14399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14400 lt_compiler_flag="-fno-rtti -fno-exceptions"
14401 # Insert the option either (1) after the last *FLAGS variable, or
14402 # (2) before a word containing "conftest.", or (3) at the end.
14403 # Note that $ac_compile itself does not contain backslashes and begins
14404 # with a dollar sign (not a hyphen), so the echo should work correctly.
14405 # The option is referenced via a variable to avoid confusing sed.
14406 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14409 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenf0915682007-10-02 16:42:22 +000014410 (eval echo "\"\$as_me:14410: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014411 (eval "$lt_compile" 2>conftest.err)
14412 ac_status=$?
14413 cat conftest.err >&5
Gordon Henriksenf0915682007-10-02 16:42:22 +000014414 echo "$as_me:14414: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014415 if (exit $ac_status) && test -s "$ac_outfile"; then
14416 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014417 # So say no if there are warnings other than the usual output.
14418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014421 lt_cv_prog_compiler_rtti_exceptions=yes
14422 fi
14423 fi
14424 $rm conftest*
14425
14426fi
Reid Spencera773bd52006-08-04 18:18:08 +000014427{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14428echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014429
14430if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14431 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14432else
14433 :
14434fi
14435
14436fi
14437
14438lt_prog_compiler_wl=
14439lt_prog_compiler_pic=
14440lt_prog_compiler_static=
14441
Reid Spencera773bd52006-08-04 18:18:08 +000014442{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14443echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014444
14445 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014446 lt_prog_compiler_wl='-Wl,'
14447 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014448
14449 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014450 aix*)
14451 # All AIX code is PIC.
14452 if test "$host_cpu" = ia64; then
14453 # AIX 5 now supports IA64 processor
14454 lt_prog_compiler_static='-Bstatic'
14455 fi
John Criswell7a73b802003-06-30 21:59:07 +000014456 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014457
John Criswell7a73b802003-06-30 21:59:07 +000014458 amigaos*)
14459 # FIXME: we need at least 68020 code to build shared libraries, but
14460 # adding the `-m68020' flag to GCC prevents building anything better,
14461 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014462 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014463 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014464
14465 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014466 # PIC is the default for these OSes.
14467 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014468
14469 mingw* | pw32* | os2*)
14470 # This hack is so that the source file can tell whether it is being
14471 # built for inclusion in a dll (and should export symbols for example).
14472 lt_prog_compiler_pic='-DDLL_EXPORT'
14473 ;;
14474
John Criswell7a73b802003-06-30 21:59:07 +000014475 darwin* | rhapsody*)
14476 # PIC is the default on this platform
14477 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014478 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014479 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014480
Reid Spencera773bd52006-08-04 18:18:08 +000014481 interix3*)
14482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14483 # Instead, we relocate shared libraries at runtime.
14484 ;;
14485
John Criswell47fdd832003-07-14 16:52:07 +000014486 msdosdjgpp*)
14487 # Just because we use GCC doesn't mean we suddenly get shared libraries
14488 # on systems that don't support them.
14489 lt_prog_compiler_can_build_shared=no
14490 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014491 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014492
John Criswell7a73b802003-06-30 21:59:07 +000014493 sysv4*MP*)
14494 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014495 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014496 fi
14497 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014498
14499 hpux*)
14500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14501 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014502 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014503 hppa*64*|ia64*)
14504 # +Z the default
14505 ;;
14506 *)
14507 lt_prog_compiler_pic='-fPIC'
14508 ;;
14509 esac
14510 ;;
14511
John Criswell7a73b802003-06-30 21:59:07 +000014512 *)
John Criswell47fdd832003-07-14 16:52:07 +000014513 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014514 ;;
14515 esac
14516 else
John Criswell47fdd832003-07-14 16:52:07 +000014517 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014518 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014519 aix*)
14520 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014521 if test "$host_cpu" = ia64; then
14522 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014523 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014524 else
John Criswell47fdd832003-07-14 16:52:07 +000014525 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014526 fi
14527 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014528 darwin*)
14529 # PIC is the default on this platform
14530 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014531 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014532 xlc*)
14533 lt_prog_compiler_pic='-qnocommon'
14534 lt_prog_compiler_wl='-Wl,'
14535 ;;
14536 esac
14537 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014538
John Criswell47fdd832003-07-14 16:52:07 +000014539 mingw* | pw32* | os2*)
14540 # This hack is so that the source file can tell whether it is being
14541 # built for inclusion in a dll (and should export symbols for example).
14542 lt_prog_compiler_pic='-DDLL_EXPORT'
14543 ;;
14544
John Criswell7a73b802003-06-30 21:59:07 +000014545 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014546 lt_prog_compiler_wl='-Wl,'
14547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14548 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014549 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014550 hppa*64*|ia64*)
14551 # +Z the default
14552 ;;
14553 *)
14554 lt_prog_compiler_pic='+Z'
14555 ;;
14556 esac
14557 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14558 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014559 ;;
14560
John Criswell47fdd832003-07-14 16:52:07 +000014561 irix5* | irix6* | nonstopux*)
14562 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014563 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014564 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014565 ;;
14566
14567 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014568 lt_prog_compiler_pic='-KPIC'
14569 lt_prog_compiler_static='-Bstatic'
14570 ;;
14571
14572 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014573 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014574 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014575 lt_prog_compiler_wl='-Wl,'
14576 lt_prog_compiler_pic='-KPIC'
14577 lt_prog_compiler_static='-static'
14578 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014579 pgcc* | pgf77* | pgf90* | pgf95*)
14580 # Portland Group compilers (*not* the Pentium gcc compiler,
14581 # which looks to be a dead project)
14582 lt_prog_compiler_wl='-Wl,'
14583 lt_prog_compiler_pic='-fpic'
14584 lt_prog_compiler_static='-Bstatic'
14585 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014586 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014587 lt_prog_compiler_wl='-Wl,'
14588 # All Alpha code is PIC.
14589 lt_prog_compiler_static='-non_shared'
14590 ;;
14591 esac
John Criswell7a73b802003-06-30 21:59:07 +000014592 ;;
14593
14594 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014595 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014596 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014597 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014598 ;;
14599
John Criswell7a73b802003-06-30 21:59:07 +000014600 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014601 lt_prog_compiler_pic='-KPIC'
14602 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014603 case $cc_basename in
14604 f77* | f90* | f95*)
14605 lt_prog_compiler_wl='-Qoption ld ';;
14606 *)
14607 lt_prog_compiler_wl='-Wl,';;
14608 esac
John Criswell7a73b802003-06-30 21:59:07 +000014609 ;;
14610
14611 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014612 lt_prog_compiler_wl='-Qoption ld '
14613 lt_prog_compiler_pic='-PIC'
14614 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014615 ;;
14616
Reid Spencera773bd52006-08-04 18:18:08 +000014617 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014618 lt_prog_compiler_wl='-Wl,'
14619 lt_prog_compiler_pic='-KPIC'
14620 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014621 ;;
14622
14623 sysv4*MP*)
14624 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014625 lt_prog_compiler_pic='-Kconform_pic'
14626 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014627 fi
14628 ;;
14629
Reid Spencera773bd52006-08-04 18:18:08 +000014630 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14631 lt_prog_compiler_wl='-Wl,'
14632 lt_prog_compiler_pic='-KPIC'
14633 lt_prog_compiler_static='-Bstatic'
14634 ;;
14635
14636 unicos*)
14637 lt_prog_compiler_wl='-Wl,'
14638 lt_prog_compiler_can_build_shared=no
14639 ;;
14640
John Criswell47fdd832003-07-14 16:52:07 +000014641 uts4*)
14642 lt_prog_compiler_pic='-pic'
14643 lt_prog_compiler_static='-Bstatic'
14644 ;;
14645
John Criswell7a73b802003-06-30 21:59:07 +000014646 *)
John Criswell47fdd832003-07-14 16:52:07 +000014647 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014648 ;;
14649 esac
14650 fi
14651
Reid Spencera773bd52006-08-04 18:18:08 +000014652{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14653echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014654
John Criswell47fdd832003-07-14 16:52:07 +000014655#
14656# Check to make sure the PIC flag actually works.
14657#
14658if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014659
Reid Spencera773bd52006-08-04 18:18:08 +000014660{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14661echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014662if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664else
John Criswell47fdd832003-07-14 16:52:07 +000014665 lt_prog_compiler_pic_works=no
14666 ac_outfile=conftest.$ac_objext
14667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14668 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14669 # Insert the option either (1) after the last *FLAGS variable, or
14670 # (2) before a word containing "conftest.", or (3) at the end.
14671 # Note that $ac_compile itself does not contain backslashes and begins
14672 # with a dollar sign (not a hyphen), so the echo should work correctly.
14673 # The option is referenced via a variable to avoid confusing sed.
14674 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14677 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenf0915682007-10-02 16:42:22 +000014678 (eval echo "\"\$as_me:14678: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014679 (eval "$lt_compile" 2>conftest.err)
14680 ac_status=$?
14681 cat conftest.err >&5
Gordon Henriksenf0915682007-10-02 16:42:22 +000014682 echo "$as_me:14682: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014683 if (exit $ac_status) && test -s "$ac_outfile"; then
14684 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014685 # So say no if there are warnings other than the usual output.
14686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014689 lt_prog_compiler_pic_works=yes
14690 fi
14691 fi
14692 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014693
John Criswell47fdd832003-07-14 16:52:07 +000014694fi
Reid Spencera773bd52006-08-04 18:18:08 +000014695{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14696echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014697
John Criswell47fdd832003-07-14 16:52:07 +000014698if test x"$lt_prog_compiler_pic_works" = xyes; then
14699 case $lt_prog_compiler_pic in
14700 "" | " "*) ;;
14701 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14702 esac
John Criswell7a73b802003-06-30 21:59:07 +000014703else
John Criswell47fdd832003-07-14 16:52:07 +000014704 lt_prog_compiler_pic=
14705 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014706fi
14707
John Criswell7a73b802003-06-30 21:59:07 +000014708fi
Reid Spencera773bd52006-08-04 18:18:08 +000014709case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014710 # For platforms which do not support PIC, -DPIC is meaningless:
14711 *djgpp*)
14712 lt_prog_compiler_pic=
14713 ;;
14714 *)
14715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14716 ;;
14717esac
John Criswell7a73b802003-06-30 21:59:07 +000014718
Reid Spencera773bd52006-08-04 18:18:08 +000014719#
14720# Check to make sure the static flag actually works.
14721#
14722wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14723{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14724echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14725if test "${lt_prog_compiler_static_works+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727else
14728 lt_prog_compiler_static_works=no
14729 save_LDFLAGS="$LDFLAGS"
14730 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14731 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14732 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14733 # The linker can only warn and ignore the option if not recognized
14734 # So say no if there are warnings
14735 if test -s conftest.err; then
14736 # Append any errors to the config.log.
14737 cat conftest.err 1>&5
14738 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14740 if diff conftest.exp conftest.er2 >/dev/null; then
14741 lt_prog_compiler_static_works=yes
14742 fi
14743 else
14744 lt_prog_compiler_static_works=yes
14745 fi
14746 fi
14747 $rm conftest*
14748 LDFLAGS="$save_LDFLAGS"
14749
14750fi
14751{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14752echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14753
14754if test x"$lt_prog_compiler_static_works" = xyes; then
14755 :
14756else
14757 lt_prog_compiler_static=
14758fi
14759
14760
14761{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14762echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014763if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
John Criswell47fdd832003-07-14 16:52:07 +000014766 lt_cv_prog_compiler_c_o=no
14767 $rm -r conftest 2>/dev/null
14768 mkdir conftest
14769 cd conftest
14770 mkdir out
14771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014772
John Criswell47fdd832003-07-14 16:52:07 +000014773 lt_compiler_flag="-o out/conftest2.$ac_objext"
14774 # Insert the option either (1) after the last *FLAGS variable, or
14775 # (2) before a word containing "conftest.", or (3) at the end.
14776 # Note that $ac_compile itself does not contain backslashes and begins
14777 # with a dollar sign (not a hyphen), so the echo should work correctly.
14778 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14781 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenf0915682007-10-02 16:42:22 +000014782 (eval echo "\"\$as_me:14782: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014783 (eval "$lt_compile" 2>out/conftest.err)
14784 ac_status=$?
14785 cat out/conftest.err >&5
Gordon Henriksenf0915682007-10-02 16:42:22 +000014786 echo "$as_me:14786: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14788 then
14789 # The compiler can only warn and ignore the option if not recognized
14790 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014791 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014794 lt_cv_prog_compiler_c_o=yes
14795 fi
14796 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014797 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014798 $rm conftest*
14799 # SGI C++ compiler will create directory out/ii_files/ for
14800 # template instantiation
14801 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14802 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014803 cd ..
14804 rmdir conftest
14805 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014806
14807fi
Reid Spencera773bd52006-08-04 18:18:08 +000014808{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14809echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014810
John Criswell7a73b802003-06-30 21:59:07 +000014811
John Criswell7a73b802003-06-30 21:59:07 +000014812hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014813if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014814 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014815 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14816echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014817 hard_links=yes
14818 $rm conftest*
14819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14820 touch conftest.a
14821 ln conftest.a conftest.b 2>&5 || hard_links=no
14822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014823 { echo "$as_me:$LINENO: result: $hard_links" >&5
14824echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014825 if test "$hard_links" = no; then
14826 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14827echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14828 need_locks=warn
14829 fi
14830else
14831 need_locks=no
14832fi
John Criswell7a73b802003-06-30 21:59:07 +000014833
Reid Spencera773bd52006-08-04 18:18:08 +000014834{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14835echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014836
14837 runpath_var=
14838 allow_undefined_flag=
14839 enable_shared_with_static_runtimes=no
14840 archive_cmds=
14841 archive_expsym_cmds=
14842 old_archive_From_new_cmds=
14843 old_archive_from_expsyms_cmds=
14844 export_dynamic_flag_spec=
14845 whole_archive_flag_spec=
14846 thread_safe_flag_spec=
14847 hardcode_libdir_flag_spec=
14848 hardcode_libdir_flag_spec_ld=
14849 hardcode_libdir_separator=
14850 hardcode_direct=no
14851 hardcode_minus_L=no
14852 hardcode_shlibpath_var=unsupported
14853 link_all_deplibs=unknown
14854 hardcode_automatic=no
14855 module_cmds=
14856 module_expsym_cmds=
14857 always_export_symbols=no
14858 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14859 # include_expsyms should be a list of space-separated symbols to be *always*
14860 # included in the symbol list
14861 include_expsyms=
14862 # exclude_expsyms can be an extended regexp of symbols to exclude
14863 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14864 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14865 # as well as any symbol that contains `d'.
14866 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14868 # platforms (ab)use it in PIC code, but their linkers get confused if
14869 # the symbol is explicitly referenced. Since portable code cannot
14870 # rely on this symbol name, it's probably fine to never include it in
14871 # preloaded symbol tables.
14872 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014873 # Just being paranoid about ensuring that cc_basename is set.
14874 for cc_temp in $compiler""; do
14875 case $cc_temp in
14876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14878 \-*) ;;
14879 *) break;;
14880 esac
14881done
14882cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014883
14884 case $host_os in
14885 cygwin* | mingw* | pw32*)
14886 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14887 # When not using gcc, we currently assume that we are using
14888 # Microsoft Visual C++.
14889 if test "$GCC" != yes; then
14890 with_gnu_ld=no
14891 fi
14892 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014893 interix*)
14894 # we just hope/assume this is gcc and not c89 (= MSVC++)
14895 with_gnu_ld=yes
14896 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014897 openbsd*)
14898 with_gnu_ld=no
14899 ;;
14900 esac
14901
14902 ld_shlibs=yes
14903 if test "$with_gnu_ld" = yes; then
14904 # If archive_cmds runs LD, not CC, wlarc should be empty
14905 wlarc='${wl}'
14906
Reid Spencera773bd52006-08-04 18:18:08 +000014907 # Set some defaults for GNU ld with shared library support. These
14908 # are reset later if shared libraries are not supported. Putting them
14909 # here allows them to be overridden if necessary.
14910 runpath_var=LD_RUN_PATH
14911 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14912 export_dynamic_flag_spec='${wl}--export-dynamic'
14913 # ancient GNU ld didn't support --whole-archive et. al.
14914 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14915 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14916 else
14917 whole_archive_flag_spec=
14918 fi
14919 supports_anon_versioning=no
14920 case `$LD -v 2>/dev/null` in
14921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14924 *\ 2.11.*) ;; # other 2.11 versions
14925 *) supports_anon_versioning=yes ;;
14926 esac
14927
John Criswell47fdd832003-07-14 16:52:07 +000014928 # See if GNU ld supports shared libraries.
14929 case $host_os in
14930 aix3* | aix4* | aix5*)
14931 # On AIX/PPC, the GNU linker is very broken
14932 if test "$host_cpu" != ia64; then
14933 ld_shlibs=no
14934 cat <<EOF 1>&2
14935
14936*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14937*** to be unable to reliably create shared libraries on AIX.
14938*** Therefore, libtool is disabling shared libraries support. If you
14939*** really care for shared libraries, you may want to modify your PATH
14940*** so that a non-GNU linker is found, and then restart.
14941
14942EOF
14943 fi
14944 ;;
14945
14946 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014947 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 +000014948 hardcode_libdir_flag_spec='-L$libdir'
14949 hardcode_minus_L=yes
14950
14951 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14952 # that the semantics of dynamic libraries on AmigaOS, at least up
14953 # to version 4, is to share data among multiple programs linked
14954 # with the same dynamic library. Since this doesn't match the
14955 # behavior of shared libraries on other platforms, we can't use
14956 # them.
14957 ld_shlibs=no
14958 ;;
14959
14960 beos*)
14961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14962 allow_undefined_flag=unsupported
14963 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14964 # support --undefined. This deserves some investigation. FIXME
14965 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966 else
14967 ld_shlibs=no
14968 fi
14969 ;;
14970
14971 cygwin* | mingw* | pw32*)
14972 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14973 # as there is no search path for DLLs.
14974 hardcode_libdir_flag_spec='-L$libdir'
14975 allow_undefined_flag=unsupported
14976 always_export_symbols=no
14977 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014978 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 +000014979
14980 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014981 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 +000014982 # If the export-symbols file already is a .def file (1st line
14983 # is EXPORTS), use it as is; otherwise, prepend...
14984 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14985 cp $export_symbols $output_objdir/$soname.def;
14986 else
14987 echo EXPORTS > $output_objdir/$soname.def;
14988 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014989 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014990 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14991 else
14992 ld_shlibs=no
14993 fi
14994 ;;
14995
14996 interix3*)
14997 hardcode_direct=no
14998 hardcode_shlibpath_var=no
14999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15000 export_dynamic_flag_spec='${wl}-E'
15001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15002 # Instead, shared libraries are loaded at an image base (0x10000000 by
15003 # default) and relocated if they conflict, which is a slow very memory
15004 # consuming and fragmenting process. To avoid this, we pick a random,
15005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15007 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15008 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'
15009 ;;
15010
15011 linux*)
15012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15013 tmp_addflag=
15014 case $cc_basename,$host_cpu in
15015 pgcc*) # Portland Group C compiler
15016 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'
15017 tmp_addflag=' $pic_flag'
15018 ;;
15019 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15020 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'
15021 tmp_addflag=' $pic_flag -Mnomain' ;;
15022 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15023 tmp_addflag=' -i_dynamic' ;;
15024 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15025 tmp_addflag=' -i_dynamic -nofor_main' ;;
15026 ifc* | ifort*) # Intel Fortran compiler
15027 tmp_addflag=' -nofor_main' ;;
15028 esac
15029 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030
15031 if test $supports_anon_versioning = yes; then
15032 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15034 $echo "local: *; };" >> $output_objdir/$libname.ver~
15035 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15036 fi
John Criswell47fdd832003-07-14 16:52:07 +000015037 else
15038 ld_shlibs=no
15039 fi
15040 ;;
15041
15042 netbsd*)
15043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15044 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15045 wlarc=
15046 else
15047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15049 fi
15050 ;;
15051
Reid Spencera773bd52006-08-04 18:18:08 +000015052 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15054 ld_shlibs=no
15055 cat <<EOF 1>&2
15056
15057*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15058*** create shared libraries on Solaris systems. Therefore, libtool
15059*** is disabling shared libraries support. We urge you to upgrade GNU
15060*** binutils to release 2.9.1 or newer. Another option is to modify
15061*** your PATH or compiler configuration so that the native linker is
15062*** used, and then restart.
15063
15064EOF
15065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15068 else
15069 ld_shlibs=no
15070 fi
15071 ;;
15072
Reid Spencera773bd52006-08-04 18:18:08 +000015073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15074 case `$LD -v 2>&1` in
15075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15076 ld_shlibs=no
15077 cat <<_LT_EOF 1>&2
15078
15079*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15080*** reliably create shared libraries on SCO systems. Therefore, libtool
15081*** is disabling shared libraries support. We urge you to upgrade GNU
15082*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15083*** your PATH or compiler configuration so that the native linker is
15084*** used, and then restart.
15085
15086_LT_EOF
15087 ;;
15088 *)
15089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15093 else
15094 ld_shlibs=no
15095 fi
15096 ;;
15097 esac
15098 ;;
15099
John Criswell47fdd832003-07-14 16:52:07 +000015100 sunos4*)
15101 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15102 wlarc=
15103 hardcode_direct=yes
15104 hardcode_shlibpath_var=no
15105 ;;
15106
15107 *)
15108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15111 else
15112 ld_shlibs=no
15113 fi
15114 ;;
15115 esac
15116
Reid Spencera773bd52006-08-04 18:18:08 +000015117 if test "$ld_shlibs" = no; then
15118 runpath_var=
15119 hardcode_libdir_flag_spec=
15120 export_dynamic_flag_spec=
15121 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015122 fi
15123 else
15124 # PORTME fill in a description of your system's linker (not GNU ld)
15125 case $host_os in
15126 aix3*)
15127 allow_undefined_flag=unsupported
15128 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015129 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 +000015130 # Note: this linker hardcodes the directories in LIBPATH if there
15131 # are no directories specified by -L.
15132 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015134 # Neither direct hardcoding nor static linking is supported with a
15135 # broken collect2.
15136 hardcode_direct=unsupported
15137 fi
15138 ;;
15139
15140 aix4* | aix5*)
15141 if test "$host_cpu" = ia64; then
15142 # On IA64, the linker does run time linking by default, so we don't
15143 # have to do anything special.
15144 aix_use_runtimelinking=no
15145 exp_sym_flag='-Bexport'
15146 no_entry_flag=""
15147 else
15148 # If we're using GNU nm, then we don't want the "-C" option.
15149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15151 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'
15152 else
15153 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'
15154 fi
15155 aix_use_runtimelinking=no
15156
15157 # Test if we are trying to use run time linking or normal
15158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15159 # need to do runtime linking.
15160 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15161 for ld_flag in $LDFLAGS; do
15162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15163 aix_use_runtimelinking=yes
15164 break
15165 fi
15166 done
Reid Spencera773bd52006-08-04 18:18:08 +000015167 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015168 esac
15169
15170 exp_sym_flag='-bexport'
15171 no_entry_flag='-bnoentry'
15172 fi
15173
15174 # When large executables or shared objects are built, AIX ld can
15175 # have problems creating the table of contents. If linking a library
15176 # or program results in "error TOC overflow" add -mminimal-toc to
15177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15179
15180 archive_cmds=''
15181 hardcode_direct=yes
15182 hardcode_libdir_separator=':'
15183 link_all_deplibs=yes
15184
15185 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015186 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015187 # We only want to do this on AIX 4.2 and lower, the check
15188 # below for broken collect2 doesn't work under 4.3+
15189 collect2name=`${CC} -print-prog-name=collect2`
15190 if test -f "$collect2name" && \
15191 strings "$collect2name" | grep resolve_lib_name >/dev/null
15192 then
15193 # We have reworked collect2
15194 hardcode_direct=yes
15195 else
15196 # We have old collect2
15197 hardcode_direct=unsupported
15198 # It fails to find uninstalled libraries when the uninstalled
15199 # path is not listed in the libpath. Setting hardcode_minus_L
15200 # to unsupported forces relinking
15201 hardcode_minus_L=yes
15202 hardcode_libdir_flag_spec='-L$libdir'
15203 hardcode_libdir_separator=
15204 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015205 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015206 esac
15207 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015208 if test "$aix_use_runtimelinking" = yes; then
15209 shared_flag="$shared_flag "'${wl}-G'
15210 fi
John Criswell47fdd832003-07-14 16:52:07 +000015211 else
15212 # not using gcc
15213 if test "$host_cpu" = ia64; then
15214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15215 # chokes on -Wl,-G. The following line is correct:
15216 shared_flag='-G'
15217 else
Reid Spencera773bd52006-08-04 18:18:08 +000015218 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015219 shared_flag='${wl}-G'
15220 else
15221 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015222 fi
John Criswell47fdd832003-07-14 16:52:07 +000015223 fi
15224 fi
15225
15226 # It seems that -bexpall does not export symbols beginning with
15227 # underscore (_), so it is better to generate a list of symbols to export.
15228 always_export_symbols=yes
15229 if test "$aix_use_runtimelinking" = yes; then
15230 # Warning - without using the other runtime loading flags (-brtl),
15231 # -berok will link without error, but may produce a broken library.
15232 allow_undefined_flag='-berok'
15233 # Determine the default libpath from the value encoded in an empty executable.
15234 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015235/* confdefs.h. */
15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015240
John Criswell7a73b802003-06-30 21:59:07 +000015241int
15242main ()
15243{
John Criswell47fdd832003-07-14 16:52:07 +000015244
John Criswell7a73b802003-06-30 21:59:07 +000015245 ;
15246 return 0;
15247}
15248_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015249rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015250if { (ac_try="$ac_link"
15251case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254esac
15255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015257 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015258 grep -v '^ *+' conftest.er1 >conftest.err
15259 rm -f conftest.er1
15260 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15264 { (case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267esac
15268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015274 { (case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
15278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015283
John Criswell47fdd832003-07-14 16:52:07 +000015284aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15285}'`
15286# Check for a 64-bit object if we didn't find anything.
15287if 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; }
15288}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015289else
15290 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015291sed 's/^/| /' conftest.$ac_ext >&5
15292
Reid Spencera773bd52006-08-04 18:18:08 +000015293
John Criswell7a73b802003-06-30 21:59:07 +000015294fi
Reid Spencera773bd52006-08-04 18:18:08 +000015295
15296rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015297 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015298if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015299
John Criswell47fdd832003-07-14 16:52:07 +000015300 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015301 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 +000015302 else
15303 if test "$host_cpu" = ia64; then
15304 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15305 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015306 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 +000015307 else
15308 # Determine the default libpath from the value encoded in an empty executable.
15309 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015315
John Criswell47fdd832003-07-14 16:52:07 +000015316int
15317main ()
15318{
John Criswell7a73b802003-06-30 21:59:07 +000015319
John Criswell47fdd832003-07-14 16:52:07 +000015320 ;
15321 return 0;
15322}
15323_ACEOF
15324rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015325if { (ac_try="$ac_link"
15326case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329esac
15330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015332 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342esac
15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015349 { (case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352esac
15353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015358
John Criswell47fdd832003-07-14 16:52:07 +000015359aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15360}'`
15361# Check for a 64-bit object if we didn't find anything.
15362if 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; }
15363}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015364else
John Criswell47fdd832003-07-14 16:52:07 +000015365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015366sed 's/^/| /' conftest.$ac_ext >&5
15367
Reid Spencera773bd52006-08-04 18:18:08 +000015368
John Criswell47fdd832003-07-14 16:52:07 +000015369fi
Reid Spencera773bd52006-08-04 18:18:08 +000015370
15371rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015372 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015373if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015374
John Criswell47fdd832003-07-14 16:52:07 +000015375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15376 # Warning - without using the other run time loading flags,
15377 # -berok will link without error, but may produce a broken library.
15378 no_undefined_flag=' ${wl}-bernotok'
15379 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015380 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015381 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015382 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015383 # This is similar to how AIX traditionally builds its shared libraries.
15384 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 +000015385 fi
15386 fi
John Criswell7a73b802003-06-30 21:59:07 +000015387 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015388
15389 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015390 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 +000015391 hardcode_libdir_flag_spec='-L$libdir'
15392 hardcode_minus_L=yes
15393 # see comment about different semantics on the GNU ld section
15394 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015395 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015396
Reid Spencer2706f8c2004-09-19 23:53:36 +000015397 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015398 export_dynamic_flag_spec=-rdynamic
15399 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015400
John Criswell47fdd832003-07-14 16:52:07 +000015401 cygwin* | mingw* | pw32*)
15402 # When not using gcc, we currently assume that we are using
15403 # Microsoft Visual C++.
15404 # hardcode_libdir_flag_spec is actually meaningless, as there is
15405 # no search path for DLLs.
15406 hardcode_libdir_flag_spec=' '
15407 allow_undefined_flag=unsupported
15408 # Tell ltmain to make .lib files, not .a files.
15409 libext=lib
15410 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015411 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015412 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015414 # The linker will automatically build a .lib file if we build a DLL.
15415 old_archive_From_new_cmds='true'
15416 # FIXME: Should let the user specify the lib program.
15417 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15418 fix_srcfile_path='`cygpath -w "$srcfile"`'
15419 enable_shared_with_static_runtimes=yes
15420 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015421
John Criswell47fdd832003-07-14 16:52:07 +000015422 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015423 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015424 rhapsody* | darwin1.[012])
15425 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15426 ;;
15427 *) # Darwin 1.3 on
15428 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15429 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15430 else
15431 case ${MACOSX_DEPLOYMENT_TARGET} in
15432 10.[012])
15433 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15434 ;;
15435 10.*)
15436 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15437 ;;
15438 esac
15439 fi
15440 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015441 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015442 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015443 hardcode_direct=no
15444 hardcode_automatic=yes
15445 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015446 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015447 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015448 if test "$GCC" = yes ; then
15449 output_verbose_link_cmd='echo'
15450 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15451 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015452 # 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 +000015453 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}'
15454 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 +000015455 else
Reid Spencera773bd52006-08-04 18:18:08 +000015456 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015457 xlc*)
15458 output_verbose_link_cmd='echo'
15459 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15460 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015461 # 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 +000015462 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}'
15463 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 +000015464 ;;
15465 *)
15466 ld_shlibs=no
15467 ;;
15468 esac
John Criswell7a73b802003-06-30 21:59:07 +000015469 fi
John Criswell47fdd832003-07-14 16:52:07 +000015470 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015471
John Criswell47fdd832003-07-14 16:52:07 +000015472 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015474 hardcode_libdir_flag_spec='-L$libdir'
15475 hardcode_shlibpath_var=no
15476 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015477
John Criswell47fdd832003-07-14 16:52:07 +000015478 freebsd1*)
15479 ld_shlibs=no
15480 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015481
John Criswell47fdd832003-07-14 16:52:07 +000015482 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15483 # support. Future versions do this automatically, but an explicit c++rt0.o
15484 # does not break anything, and helps significantly (at the cost of a little
15485 # extra space).
15486 freebsd2.2*)
15487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15488 hardcode_libdir_flag_spec='-R$libdir'
15489 hardcode_direct=yes
15490 hardcode_shlibpath_var=no
15491 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015492
John Criswell47fdd832003-07-14 16:52:07 +000015493 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15494 freebsd2*)
15495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15496 hardcode_direct=yes
15497 hardcode_minus_L=yes
15498 hardcode_shlibpath_var=no
15499 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015500
John Criswell47fdd832003-07-14 16:52:07 +000015501 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015502 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015503 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15504 hardcode_libdir_flag_spec='-R$libdir'
15505 hardcode_direct=yes
15506 hardcode_shlibpath_var=no
15507 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015508
John Criswell47fdd832003-07-14 16:52:07 +000015509 hpux9*)
15510 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015511 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 +000015512 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015513 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 +000015514 fi
15515 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15516 hardcode_libdir_separator=:
15517 hardcode_direct=yes
15518
15519 # hardcode_minus_L: Not really in the search PATH,
15520 # but as the default location of the library.
15521 hardcode_minus_L=yes
15522 export_dynamic_flag_spec='${wl}-E'
15523 ;;
15524
Reid Spencera773bd52006-08-04 18:18:08 +000015525 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015527 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15528 else
15529 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15530 fi
15531 if test "$with_gnu_ld" = no; then
15532 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15533 hardcode_libdir_separator=:
15534
15535 hardcode_direct=yes
15536 export_dynamic_flag_spec='${wl}-E'
15537
15538 # hardcode_minus_L: Not really in the search PATH,
15539 # but as the default location of the library.
15540 hardcode_minus_L=yes
15541 fi
15542 ;;
15543
15544 hpux11*)
15545 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15546 case $host_cpu in
15547 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015548 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15549 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015550 ia64*)
15551 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15552 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015553 *)
15554 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15555 ;;
15556 esac
15557 else
Reid Spencera773bd52006-08-04 18:18:08 +000015558 case $host_cpu in
15559 hppa*64*)
15560 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15561 ;;
15562 ia64*)
15563 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015564 ;;
15565 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015566 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 +000015567 ;;
15568 esac
15569 fi
15570 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15572 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015573
Reid Spencera773bd52006-08-04 18:18:08 +000015574 case $host_cpu in
15575 hppa*64*|ia64*)
15576 hardcode_libdir_flag_spec_ld='+b $libdir'
15577 hardcode_direct=no
15578 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015579 ;;
15580 *)
John Criswell47fdd832003-07-14 16:52:07 +000015581 hardcode_direct=yes
15582 export_dynamic_flag_spec='${wl}-E'
15583
15584 # hardcode_minus_L: Not really in the search PATH,
15585 # but as the default location of the library.
15586 hardcode_minus_L=yes
15587 ;;
15588 esac
15589 fi
15590 ;;
15591
15592 irix5* | irix6* | nonstopux*)
15593 if test "$GCC" = yes; then
15594 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'
15595 else
15596 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'
15597 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15598 fi
15599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15600 hardcode_libdir_separator=:
15601 link_all_deplibs=yes
15602 ;;
15603
15604 netbsd*)
15605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15607 else
15608 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15609 fi
15610 hardcode_libdir_flag_spec='-R$libdir'
15611 hardcode_direct=yes
15612 hardcode_shlibpath_var=no
15613 ;;
15614
15615 newsos6)
15616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15617 hardcode_direct=yes
15618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15619 hardcode_libdir_separator=:
15620 hardcode_shlibpath_var=no
15621 ;;
15622
15623 openbsd*)
15624 hardcode_direct=yes
15625 hardcode_shlibpath_var=no
15626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015628 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 +000015629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15630 export_dynamic_flag_spec='${wl}-E'
15631 else
15632 case $host_os in
15633 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15635 hardcode_libdir_flag_spec='-R$libdir'
15636 ;;
15637 *)
15638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15639 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15640 ;;
15641 esac
15642 fi
15643 ;;
15644
15645 os2*)
15646 hardcode_libdir_flag_spec='-L$libdir'
15647 hardcode_minus_L=yes
15648 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015649 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 +000015650 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15651 ;;
15652
15653 osf3*)
15654 if test "$GCC" = yes; then
15655 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15656 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'
15657 else
15658 allow_undefined_flag=' -expect_unresolved \*'
15659 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'
15660 fi
15661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15662 hardcode_libdir_separator=:
15663 ;;
15664
15665 osf4* | osf5*) # as osf3* with the addition of -msym flag
15666 if test "$GCC" = yes; then
15667 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15668 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'
15669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15670 else
15671 allow_undefined_flag=' -expect_unresolved \*'
15672 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 +000015673 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 +000015674 $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 +000015675
John Criswell47fdd832003-07-14 16:52:07 +000015676 # Both c and cxx compiler support -rpath directly
15677 hardcode_libdir_flag_spec='-rpath $libdir'
15678 fi
15679 hardcode_libdir_separator=:
15680 ;;
15681
John Criswell47fdd832003-07-14 16:52:07 +000015682 solaris*)
15683 no_undefined_flag=' -z text'
15684 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015685 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015686 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015687 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15688 $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 +000015689 else
Reid Spencera773bd52006-08-04 18:18:08 +000015690 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015691 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015692 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15693 $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 +000015694 fi
15695 hardcode_libdir_flag_spec='-R$libdir'
15696 hardcode_shlibpath_var=no
15697 case $host_os in
15698 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015699 *)
15700 # The compiler driver will combine linker options so we
15701 # cannot just pass the convience library names through
15702 # without $wl, iff we do not link with $LD.
15703 # Luckily, gcc supports the same syntax we need for Sun Studio.
15704 # Supported since Solaris 2.6 (maybe 2.5.1?)
15705 case $wlarc in
15706 '')
15707 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15708 *)
15709 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' ;;
15710 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015711 esac
15712 link_all_deplibs=yes
15713 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015714
John Criswell47fdd832003-07-14 16:52:07 +000015715 sunos4*)
15716 if test "x$host_vendor" = xsequent; then
15717 # Use $CC to link under sequent, because it throws in some extra .o
15718 # files that make .init and .fini sections work.
15719 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15720 else
15721 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15722 fi
15723 hardcode_libdir_flag_spec='-L$libdir'
15724 hardcode_direct=yes
15725 hardcode_minus_L=yes
15726 hardcode_shlibpath_var=no
15727 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015728
John Criswell47fdd832003-07-14 16:52:07 +000015729 sysv4)
15730 case $host_vendor in
15731 sni)
15732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_direct=yes # is this really true???
15734 ;;
15735 siemens)
15736 ## LD is ld it makes a PLAMLIB
15737 ## CC just makes a GrossModule.
15738 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15739 reload_cmds='$CC -r -o $output$reload_objs'
15740 hardcode_direct=no
15741 ;;
15742 motorola)
15743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15745 ;;
15746 esac
15747 runpath_var='LD_RUN_PATH'
15748 hardcode_shlibpath_var=no
15749 ;;
15750
15751 sysv4.3*)
15752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753 hardcode_shlibpath_var=no
15754 export_dynamic_flag_spec='-Bexport'
15755 ;;
15756
15757 sysv4*MP*)
15758 if test -d /usr/nec; then
15759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760 hardcode_shlibpath_var=no
15761 runpath_var=LD_RUN_PATH
15762 hardcode_runpath_var=yes
15763 ld_shlibs=yes
15764 fi
15765 ;;
15766
Reid Spencera773bd52006-08-04 18:18:08 +000015767 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15768 no_undefined_flag='${wl}-z,text'
15769 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015770 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015771 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015772
John Criswell47fdd832003-07-14 16:52:07 +000015773 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015774 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15775 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 +000015776 else
Reid Spencera773bd52006-08-04 18:18:08 +000015777 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15778 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 +000015779 fi
John Criswell47fdd832003-07-14 16:52:07 +000015780 ;;
15781
Reid Spencera773bd52006-08-04 18:18:08 +000015782 sysv5* | sco3.2v5* | sco5v6*)
15783 # Note: We can NOT use -z defs as we might desire, because we do not
15784 # link with -lc, and that would cause any symbols used from libc to
15785 # always be unresolved, which means just about no library would
15786 # ever link correctly. If we're not using GNU ld we use -z text
15787 # though, which does catch some bad symbols but isn't as heavy-handed
15788 # as -z defs.
15789 no_undefined_flag='${wl}-z,text'
15790 allow_undefined_flag='${wl}-z,nodefs'
15791 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015792 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015793 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15794 hardcode_libdir_separator=':'
15795 link_all_deplibs=yes
15796 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015797 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015798
15799 if test "$GCC" = yes; then
15800 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15801 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15802 else
15803 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15804 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15805 fi
John Criswell47fdd832003-07-14 16:52:07 +000015806 ;;
15807
15808 uts4*)
15809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15810 hardcode_libdir_flag_spec='-L$libdir'
15811 hardcode_shlibpath_var=no
15812 ;;
15813
15814 *)
15815 ld_shlibs=no
15816 ;;
15817 esac
15818 fi
15819
Reid Spencera773bd52006-08-04 18:18:08 +000015820{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15821echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015822test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015823
John Criswell47fdd832003-07-14 16:52:07 +000015824#
15825# Do we need to explicitly link libc?
15826#
15827case "x$archive_cmds_need_lc" in
15828x|xyes)
15829 # Assume -lc should be added
15830 archive_cmds_need_lc=yes
15831
15832 if test "$enable_shared" = yes && test "$GCC" = yes; then
15833 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015834 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015835 # FIXME: we may have to deal with multi-command sequences.
15836 ;;
15837 '$CC '*)
15838 # Test whether the compiler implicitly links with -lc since on some
15839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15840 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015841 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15842echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015843 $rm conftest*
15844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15845
15846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15847 (eval $ac_compile) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } 2>conftest.err; then
15851 soname=conftest
15852 lib=conftest
15853 libobjs=conftest.$ac_objext
15854 deplibs=
15855 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015856 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015857 compiler_flags=-v
15858 linker_flags=-v
15859 verstring=
15860 output_objdir=.
15861 libname=conftest
15862 lt_save_allow_undefined_flag=$allow_undefined_flag
15863 allow_undefined_flag=
15864 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15865 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }
15869 then
15870 archive_cmds_need_lc=no
15871 else
15872 archive_cmds_need_lc=yes
15873 fi
15874 allow_undefined_flag=$lt_save_allow_undefined_flag
15875 else
15876 cat conftest.err 1>&5
15877 fi
15878 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015879 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15880echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015881 ;;
15882 esac
15883 fi
15884 ;;
15885esac
15886
Reid Spencera773bd52006-08-04 18:18:08 +000015887{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15888echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015889library_names_spec=
15890libname_spec='lib$name'
15891soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015892shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015893postinstall_cmds=
15894postuninstall_cmds=
15895finish_cmds=
15896finish_eval=
15897shlibpath_var=
15898shlibpath_overrides_runpath=unknown
15899version_type=none
15900dynamic_linker="$host_os ld.so"
15901sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015902if test "$GCC" = yes; then
15903 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15904 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15905 # if the path contains ";" then we assume it to be the separator
15906 # otherwise default to the standard path separator (i.e. ":") - it is
15907 # assumed that no part of a normal pathname contains ";" but that should
15908 # okay in the real world where ";" in dirpaths is itself problematic.
15909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15910 else
15911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15912 fi
15913else
15914 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15915fi
15916need_lib_prefix=unknown
15917hardcode_into_libs=no
15918
15919# when you set need_version to no, make sure it does not cause -set_version
15920# flags to be left without arguments
15921need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015922
15923case $host_os in
15924aix3*)
15925 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015927 shlibpath_var=LIBPATH
15928
John Criswell47fdd832003-07-14 16:52:07 +000015929 # AIX 3 has no versioning support, so we append a major version to the name.
15930 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015931 ;;
15932
15933aix4* | aix5*)
15934 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015935 need_lib_prefix=no
15936 need_version=no
15937 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015938 if test "$host_cpu" = ia64; then
15939 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015940 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015941 shlibpath_var=LD_LIBRARY_PATH
15942 else
15943 # With GCC up to 2.95.x, collect2 would create an import file
15944 # for dependence libraries. The import file would start with
15945 # the line `#! .'. This would cause the generated library to
15946 # depend on `.', always an invalid library. This was fixed in
15947 # development snapshots of GCC prior to 3.0.
15948 case $host_os in
15949 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015950 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15951 echo ' yes '
15952 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15953 :
15954 else
15955 can_build_shared=no
15956 fi
15957 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015958 esac
John Criswell47fdd832003-07-14 16:52:07 +000015959 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15960 # soname into executable. Probably we can add versioning support to
15961 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015962 if test "$aix_use_runtimelinking" = yes; then
15963 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15964 # instead of lib<name>.a to let people know that these are not
15965 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015967 else
15968 # We preserve .a as extension for shared libraries through AIX4.2
15969 # and later when we are not doing run time linking.
15970 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015971 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015972 fi
15973 shlibpath_var=LIBPATH
15974 fi
15975 ;;
15976
15977amigaos*)
15978 library_names_spec='$libname.ixlibrary $libname.a'
15979 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015980 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 +000015981 ;;
15982
15983beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015984 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015985 dynamic_linker="$host_os ld.so"
15986 shlibpath_var=LIBRARY_PATH
15987 ;;
15988
Reid Spencer2706f8c2004-09-19 23:53:36 +000015989bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015990 version_type=linux
15991 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015994 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15997 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015998 # the default ld.so.conf also contains /usr/contrib/lib and
15999 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16000 # libtool to hard-code these into programs
16001 ;;
16002
16003cygwin* | mingw* | pw32*)
16004 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016005 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016006 need_version=no
16007 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016008
John Criswell7a73b802003-06-30 21:59:07 +000016009 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016010 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016011 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016013 postinstall_cmds='base_file=`basename \${file}`~
16014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16015 dldir=$destdir/`dirname \$dlpath`~
16016 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016017 $install_prog $dir/$dlname \$dldir/$dlname~
16018 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16020 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016021 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016022 shlibpath_overrides_runpath=yes
16023
16024 case $host_os in
16025 cygwin*)
16026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16027 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 +000016028 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016029 ;;
16030 mingw*)
16031 # MinGW DLLs use traditional 'lib' prefix
16032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16033 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16034 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16035 # It is most probably a Windows format PATH printed by
16036 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16037 # path with ; separators, and with drive letters. We can handle the
16038 # drive letters (cygwin fileutils understands them), so leave them,
16039 # especially as we might pass files found there to a mingw objdump,
16040 # which wouldn't understand a cygwinified path. Ahh.
16041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16042 else
16043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16044 fi
16045 ;;
16046 pw32*)
16047 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016048 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 +000016049 ;;
16050 esac
John Criswell7a73b802003-06-30 21:59:07 +000016051 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016052
John Criswell7a73b802003-06-30 21:59:07 +000016053 *)
John Criswell47fdd832003-07-14 16:52:07 +000016054 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016055 ;;
16056 esac
16057 dynamic_linker='Win32 ld.exe'
16058 # FIXME: first we should search . and the directory the executable is in
16059 shlibpath_var=PATH
16060 ;;
16061
16062darwin* | rhapsody*)
16063 dynamic_linker="$host_os dyld"
16064 version_type=darwin
16065 need_lib_prefix=no
16066 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016067 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016068 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016069 shlibpath_overrides_runpath=yes
16070 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016071 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016072 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016073 if test "$GCC" = yes; then
16074 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"`
16075 else
16076 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016077 fi
16078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16079 ;;
16080
16081dgux*)
16082 version_type=linux
16083 need_lib_prefix=no
16084 need_version=no
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016088 ;;
16089
16090freebsd1*)
16091 dynamic_linker=no
16092 ;;
16093
Reid Spencer2706f8c2004-09-19 23:53:36 +000016094kfreebsd*-gnu)
16095 version_type=linux
16096 need_lib_prefix=no
16097 need_version=no
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 shlibpath_var=LD_LIBRARY_PATH
16101 shlibpath_overrides_runpath=no
16102 hardcode_into_libs=yes
16103 dynamic_linker='GNU ld.so'
16104 ;;
16105
Reid Spencera773bd52006-08-04 18:18:08 +000016106freebsd* | dragonfly*)
16107 # DragonFly does not have aout. When/if they implement a new
16108 # versioning mechanism, adjust this.
16109 if test -x /usr/bin/objformat; then
16110 objformat=`/usr/bin/objformat`
16111 else
16112 case $host_os in
16113 freebsd[123]*) objformat=aout ;;
16114 *) objformat=elf ;;
16115 esac
16116 fi
John Criswell7a73b802003-06-30 21:59:07 +000016117 version_type=freebsd-$objformat
16118 case $version_type in
16119 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016121 need_version=no
16122 need_lib_prefix=no
16123 ;;
16124 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016126 need_version=yes
16127 ;;
16128 esac
16129 shlibpath_var=LD_LIBRARY_PATH
16130 case $host_os in
16131 freebsd2*)
16132 shlibpath_overrides_runpath=yes
16133 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016134 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016135 shlibpath_overrides_runpath=yes
16136 hardcode_into_libs=yes
16137 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016138 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16139 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016140 shlibpath_overrides_runpath=no
16141 hardcode_into_libs=yes
16142 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016143 freebsd*) # from 4.6 on
16144 shlibpath_overrides_runpath=yes
16145 hardcode_into_libs=yes
16146 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016147 esac
16148 ;;
16149
16150gnu*)
16151 version_type=linux
16152 need_lib_prefix=no
16153 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016156 shlibpath_var=LD_LIBRARY_PATH
16157 hardcode_into_libs=yes
16158 ;;
16159
16160hpux9* | hpux10* | hpux11*)
16161 # Give a soname corresponding to the major version so that dld.sl refuses to
16162 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016163 version_type=sunos
16164 need_lib_prefix=no
16165 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016166 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016167 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016168 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016169 hardcode_into_libs=yes
16170 dynamic_linker="$host_os dld.so"
16171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 if test "X$HPUX_IA64_MODE" = X32; then
16176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16177 else
16178 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16179 fi
16180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16181 ;;
16182 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016183 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016184 hardcode_into_libs=yes
16185 dynamic_linker="$host_os dld.sl"
16186 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189 soname_spec='${libname}${release}${shared_ext}$major'
16190 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16192 ;;
16193 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016194 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016195 dynamic_linker="$host_os dld.sl"
16196 shlibpath_var=SHLIB_PATH
16197 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16200 ;;
16201 esac
John Criswell7a73b802003-06-30 21:59:07 +000016202 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16203 postinstall_cmds='chmod 555 $lib'
16204 ;;
16205
Reid Spencera773bd52006-08-04 18:18:08 +000016206interix3*)
16207 version_type=linux
16208 need_lib_prefix=no
16209 need_version=no
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16213 shlibpath_var=LD_LIBRARY_PATH
16214 shlibpath_overrides_runpath=no
16215 hardcode_into_libs=yes
16216 ;;
16217
John Criswell47fdd832003-07-14 16:52:07 +000016218irix5* | irix6* | nonstopux*)
16219 case $host_os in
16220 nonstopux*) version_type=nonstopux ;;
16221 *)
16222 if test "$lt_cv_prog_gnu_ld" = yes; then
16223 version_type=linux
16224 else
16225 version_type=irix
16226 fi ;;
16227 esac
John Criswell7a73b802003-06-30 21:59:07 +000016228 need_lib_prefix=no
16229 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016230 soname_spec='${libname}${release}${shared_ext}$major'
16231 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 +000016232 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016233 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016234 libsuff= shlibsuff=
16235 ;;
16236 *)
16237 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016238 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16239 libsuff= shlibsuff= libmagic=32-bit;;
16240 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16241 libsuff=32 shlibsuff=N32 libmagic=N32;;
16242 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16243 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016244 *) libsuff= shlibsuff= libmagic=never-match;;
16245 esac
16246 ;;
16247 esac
16248 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16249 shlibpath_overrides_runpath=no
16250 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16251 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016252 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016253 ;;
16254
16255# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016256linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016257 dynamic_linker=no
16258 ;;
16259
16260# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016261linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016262 version_type=linux
16263 need_lib_prefix=no
16264 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16266 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16268 shlibpath_var=LD_LIBRARY_PATH
16269 shlibpath_overrides_runpath=no
16270 # This implies no fast_install, which is unacceptable.
16271 # Some rework will be needed to allow for fast_install
16272 # before this can be enabled.
16273 hardcode_into_libs=yes
16274
Reid Spencer2706f8c2004-09-19 23:53:36 +000016275 # Append ld.so.conf contents to the search path
16276 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016277 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 +000016278 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16279 fi
16280
John Criswell7a73b802003-06-30 21:59:07 +000016281 # We used to test for /lib/ld.so.1 and disable shared libraries on
16282 # powerpc, because MkLinux only supported shared libraries with the
16283 # GNU dynamic linker. Since this was broken with cross compilers,
16284 # most powerpc-linux boxes support dynamic linking these days and
16285 # people can always --disable-shared, the test was removed, and we
16286 # assume the GNU/Linux dynamic linker is in use.
16287 dynamic_linker='GNU/Linux ld.so'
16288 ;;
16289
Reid Spencer2706f8c2004-09-19 23:53:36 +000016290knetbsd*-gnu)
16291 version_type=linux
16292 need_lib_prefix=no
16293 need_version=no
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=no
16298 hardcode_into_libs=yes
16299 dynamic_linker='GNU ld.so'
16300 ;;
16301
John Criswell7a73b802003-06-30 21:59:07 +000016302netbsd*)
16303 version_type=sunos
16304 need_lib_prefix=no
16305 need_version=no
16306 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16309 dynamic_linker='NetBSD (a.out) ld.so'
16310 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016312 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016313 dynamic_linker='NetBSD ld.elf_so'
16314 fi
16315 shlibpath_var=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath=yes
16317 hardcode_into_libs=yes
16318 ;;
16319
16320newsos6)
16321 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=yes
16325 ;;
16326
Reid Spencer2706f8c2004-09-19 23:53:36 +000016327nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016328 version_type=linux
16329 need_lib_prefix=no
16330 need_version=no
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=yes
16335 ;;
16336
16337openbsd*)
16338 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016339 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016340 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016341 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16342 case $host_os in
16343 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16344 *) need_version=no ;;
16345 esac
John Criswell47fdd832003-07-14 16:52:07 +000016346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16348 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016349 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 +000016350 case $host_os in
16351 openbsd2.[89] | openbsd2.[89].*)
16352 shlibpath_overrides_runpath=no
16353 ;;
16354 *)
16355 shlibpath_overrides_runpath=yes
16356 ;;
16357 esac
John Criswell7a73b802003-06-30 21:59:07 +000016358 else
16359 shlibpath_overrides_runpath=yes
16360 fi
John Criswell7a73b802003-06-30 21:59:07 +000016361 ;;
16362
16363os2*)
16364 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016365 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016366 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016367 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016368 dynamic_linker='OS/2 ld.exe'
16369 shlibpath_var=LIBPATH
16370 ;;
16371
16372osf3* | osf4* | osf5*)
16373 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016374 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016375 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016376 soname_spec='${libname}${release}${shared_ext}$major'
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016378 shlibpath_var=LD_LIBRARY_PATH
16379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16381 ;;
16382
John Criswell7a73b802003-06-30 21:59:07 +000016383solaris*)
16384 version_type=linux
16385 need_lib_prefix=no
16386 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016389 shlibpath_var=LD_LIBRARY_PATH
16390 shlibpath_overrides_runpath=yes
16391 hardcode_into_libs=yes
16392 # ldd complains unless libraries are executable
16393 postinstall_cmds='chmod +x $lib'
16394 ;;
16395
16396sunos4*)
16397 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016399 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 shlibpath_overrides_runpath=yes
16402 if test "$with_gnu_ld" = yes; then
16403 need_lib_prefix=no
16404 fi
16405 need_version=yes
16406 ;;
16407
Reid Spencera773bd52006-08-04 18:18:08 +000016408sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016409 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016412 shlibpath_var=LD_LIBRARY_PATH
16413 case $host_vendor in
16414 sni)
16415 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016416 need_lib_prefix=no
16417 export_dynamic_flag_spec='${wl}-Blargedynsym'
16418 runpath_var=LD_RUN_PATH
16419 ;;
16420 siemens)
16421 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016422 ;;
16423 motorola)
16424 need_lib_prefix=no
16425 need_version=no
16426 shlibpath_overrides_runpath=no
16427 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16428 ;;
16429 esac
16430 ;;
16431
John Criswell7a73b802003-06-30 21:59:07 +000016432sysv4*MP*)
16433 if test -d /usr/nec ;then
16434 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016435 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16436 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016437 shlibpath_var=LD_LIBRARY_PATH
16438 fi
16439 ;;
16440
Reid Spencera773bd52006-08-04 18:18:08 +000016441sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16442 version_type=freebsd-elf
16443 need_lib_prefix=no
16444 need_version=no
16445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16446 soname_spec='${libname}${release}${shared_ext}$major'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 hardcode_into_libs=yes
16449 if test "$with_gnu_ld" = yes; then
16450 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16451 shlibpath_overrides_runpath=no
16452 else
16453 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16454 shlibpath_overrides_runpath=yes
16455 case $host_os in
16456 sco3.2v5*)
16457 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16458 ;;
16459 esac
16460 fi
16461 sys_lib_dlsearch_path_spec='/usr/lib'
16462 ;;
16463
John Criswell47fdd832003-07-14 16:52:07 +000016464uts4*)
16465 version_type=linux
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467 soname_spec='${libname}${release}${shared_ext}$major'
16468 shlibpath_var=LD_LIBRARY_PATH
16469 ;;
16470
John Criswell7a73b802003-06-30 21:59:07 +000016471*)
16472 dynamic_linker=no
16473 ;;
16474esac
Reid Spencera773bd52006-08-04 18:18:08 +000016475{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16476echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016477test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016478
Reid Spencera773bd52006-08-04 18:18:08 +000016479variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16480if test "$GCC" = yes; then
16481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16482fi
16483
16484{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16485echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016486hardcode_action=
16487if test -n "$hardcode_libdir_flag_spec" || \
16488 test -n "$runpath_var" || \
16489 test "X$hardcode_automatic" = "Xyes" ; then
16490
16491 # We can hardcode non-existant directories.
16492 if test "$hardcode_direct" != no &&
16493 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16494 # have to relink, otherwise we might link with an installed library
16495 # when we should be linking with a yet-to-be-installed one
16496 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16497 test "$hardcode_minus_L" != no; then
16498 # Linking always hardcodes the temporary library directory.
16499 hardcode_action=relink
16500 else
16501 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16502 hardcode_action=immediate
16503 fi
16504else
16505 # We cannot hardcode anything, or else we can only hardcode existing
16506 # directories.
16507 hardcode_action=unsupported
16508fi
Reid Spencera773bd52006-08-04 18:18:08 +000016509{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16510echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016511
16512if test "$hardcode_action" = relink; then
16513 # Fast installation is not supported
16514 enable_fast_install=no
16515elif test "$shlibpath_overrides_runpath" = yes ||
16516 test "$enable_shared" = no; then
16517 # Fast installation is not necessary
16518 enable_fast_install=needless
16519fi
16520
16521striplib=
16522old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016523{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16524echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016525if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16526 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16527 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016528 { echo "$as_me:$LINENO: result: yes" >&5
16529echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016530else
16531# FIXME - insert some real tests, host_os isn't really good enough
16532 case $host_os in
16533 darwin*)
16534 if test -n "$STRIP" ; then
16535 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016536 { echo "$as_me:$LINENO: result: yes" >&5
16537echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016538 else
Reid Spencera773bd52006-08-04 18:18:08 +000016539 { echo "$as_me:$LINENO: result: no" >&5
16540echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016541fi
16542 ;;
16543 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016544 { echo "$as_me:$LINENO: result: no" >&5
16545echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016546 ;;
16547 esac
16548fi
16549
John Criswell7a73b802003-06-30 21:59:07 +000016550if test "x$enable_dlopen" != xyes; then
16551 enable_dlopen=unknown
16552 enable_dlopen_self=unknown
16553 enable_dlopen_self_static=unknown
16554else
16555 lt_cv_dlopen=no
16556 lt_cv_dlopen_libs=
16557
16558 case $host_os in
16559 beos*)
16560 lt_cv_dlopen="load_add_on"
16561 lt_cv_dlopen_libs=
16562 lt_cv_dlopen_self=yes
16563 ;;
16564
John Criswell47fdd832003-07-14 16:52:07 +000016565 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016566 lt_cv_dlopen="LoadLibrary"
16567 lt_cv_dlopen_libs=
16568 ;;
16569
John Criswell47fdd832003-07-14 16:52:07 +000016570 cygwin*)
16571 lt_cv_dlopen="dlopen"
16572 lt_cv_dlopen_libs=
16573 ;;
16574
16575 darwin*)
16576 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016577 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16578echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016579if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16581else
16582 ac_check_lib_save_LIBS=$LIBS
16583LIBS="-ldl $LIBS"
16584cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016585/* confdefs.h. */
16586_ACEOF
16587cat confdefs.h >>conftest.$ac_ext
16588cat >>conftest.$ac_ext <<_ACEOF
16589/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016590
Reid Spencera773bd52006-08-04 18:18:08 +000016591/* Override any GCC internal prototype to avoid an error.
16592 Use char because int might match the return type of a GCC
16593 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016594#ifdef __cplusplus
16595extern "C"
16596#endif
John Criswell47fdd832003-07-14 16:52:07 +000016597char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016598int
16599main ()
16600{
Reid Spencera773bd52006-08-04 18:18:08 +000016601return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016602 ;
16603 return 0;
16604}
16605_ACEOF
16606rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016607if { (ac_try="$ac_link"
16608case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611esac
16612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16621 { (case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16624esac
16625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016631 { (case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634esac
16635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_cv_lib_dl_dlopen=yes
16641else
16642 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016643sed 's/^/| /' conftest.$ac_ext >&5
16644
Reid Spencera773bd52006-08-04 18:18:08 +000016645 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016646fi
Reid Spencera773bd52006-08-04 18:18:08 +000016647
16648rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016649 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016650LIBS=$ac_check_lib_save_LIBS
16651fi
Reid Spencera773bd52006-08-04 18:18:08 +000016652{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16653echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016654if test $ac_cv_lib_dl_dlopen = yes; then
16655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16656else
16657
16658 lt_cv_dlopen="dyld"
16659 lt_cv_dlopen_libs=
16660 lt_cv_dlopen_self=yes
16661
16662fi
16663
16664 ;;
16665
John Criswell7a73b802003-06-30 21:59:07 +000016666 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016667 { echo "$as_me:$LINENO: checking for shl_load" >&5
16668echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016669if test "${ac_cv_func_shl_load+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16671else
16672 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016673/* confdefs.h. */
16674_ACEOF
16675cat confdefs.h >>conftest.$ac_ext
16676cat >>conftest.$ac_ext <<_ACEOF
16677/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016678/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16680#define shl_load innocuous_shl_load
16681
John Criswell7a73b802003-06-30 21:59:07 +000016682/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016683 which can conflict with char shl_load (); below.
16684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16685 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016686
John Criswell0c38eaf2003-09-10 15:17:25 +000016687#ifdef __STDC__
16688# include <limits.h>
16689#else
16690# include <assert.h>
16691#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016692
16693#undef shl_load
16694
Reid Spencera773bd52006-08-04 18:18:08 +000016695/* Override any GCC internal prototype to avoid an error.
16696 Use char because int might match the return type of a GCC
16697 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016698#ifdef __cplusplus
16699extern "C"
16700#endif
John Criswell7a73b802003-06-30 21:59:07 +000016701char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016702/* The GNU C library defines this for functions which it implements
16703 to always fail with ENOSYS. Some functions are actually named
16704 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016705#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016706choke me
John Criswell7a73b802003-06-30 21:59:07 +000016707#endif
16708
John Criswell0c38eaf2003-09-10 15:17:25 +000016709int
16710main ()
16711{
Reid Spencera773bd52006-08-04 18:18:08 +000016712return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016713 ;
16714 return 0;
16715}
16716_ACEOF
16717rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016718if { (ac_try="$ac_link"
16719case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722esac
16723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016725 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016726 grep -v '^ *+' conftest.er1 >conftest.err
16727 rm -f conftest.er1
16728 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735esac
16736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016742 { (case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16745esac
16746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_cv_func_shl_load=yes
16752else
16753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016754sed 's/^/| /' conftest.$ac_ext >&5
16755
Reid Spencera773bd52006-08-04 18:18:08 +000016756 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016757fi
Reid Spencera773bd52006-08-04 18:18:08 +000016758
16759rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016760 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016761fi
Reid Spencera773bd52006-08-04 18:18:08 +000016762{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16763echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016764if test $ac_cv_func_shl_load = yes; then
16765 lt_cv_dlopen="shl_load"
16766else
Reid Spencera773bd52006-08-04 18:18:08 +000016767 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16768echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016769if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16771else
16772 ac_check_lib_save_LIBS=$LIBS
16773LIBS="-ldld $LIBS"
16774cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016780
Reid Spencera773bd52006-08-04 18:18:08 +000016781/* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016784#ifdef __cplusplus
16785extern "C"
16786#endif
John Criswell7a73b802003-06-30 21:59:07 +000016787char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016788int
16789main ()
16790{
Reid Spencera773bd52006-08-04 18:18:08 +000016791return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016792 ;
16793 return 0;
16794}
16795_ACEOF
16796rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016797if { (ac_try="$ac_link"
16798case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801esac
16802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016804 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16811 { (case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814esac
16815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 ac_cv_lib_dld_shl_load=yes
16831else
16832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016833sed 's/^/| /' conftest.$ac_ext >&5
16834
Reid Spencera773bd52006-08-04 18:18:08 +000016835 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016836fi
Reid Spencera773bd52006-08-04 18:18:08 +000016837
16838rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016839 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016840LIBS=$ac_check_lib_save_LIBS
16841fi
Reid Spencera773bd52006-08-04 18:18:08 +000016842{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16843echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016844if test $ac_cv_lib_dld_shl_load = yes; then
16845 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16846else
Reid Spencera773bd52006-08-04 18:18:08 +000016847 { echo "$as_me:$LINENO: checking for dlopen" >&5
16848echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016849if test "${ac_cv_func_dlopen+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16851else
16852 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016853/* confdefs.h. */
16854_ACEOF
16855cat confdefs.h >>conftest.$ac_ext
16856cat >>conftest.$ac_ext <<_ACEOF
16857/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016858/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16860#define dlopen innocuous_dlopen
16861
John Criswell7a73b802003-06-30 21:59:07 +000016862/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016863 which can conflict with char dlopen (); below.
16864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16865 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016866
John Criswell0c38eaf2003-09-10 15:17:25 +000016867#ifdef __STDC__
16868# include <limits.h>
16869#else
16870# include <assert.h>
16871#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016872
16873#undef dlopen
16874
Reid Spencera773bd52006-08-04 18:18:08 +000016875/* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016878#ifdef __cplusplus
16879extern "C"
16880#endif
John Criswell7a73b802003-06-30 21:59:07 +000016881char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016882/* The GNU C library defines this for functions which it implements
16883 to always fail with ENOSYS. Some functions are actually named
16884 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016885#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016886choke me
John Criswell7a73b802003-06-30 21:59:07 +000016887#endif
16888
John Criswell0c38eaf2003-09-10 15:17:25 +000016889int
16890main ()
16891{
Reid Spencera773bd52006-08-04 18:18:08 +000016892return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016893 ;
16894 return 0;
16895}
16896_ACEOF
16897rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016898if { (ac_try="$ac_link"
16899case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902esac
16903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016905 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_func_dlopen=yes
16932else
16933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016934sed 's/^/| /' conftest.$ac_ext >&5
16935
Reid Spencera773bd52006-08-04 18:18:08 +000016936 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016937fi
Reid Spencera773bd52006-08-04 18:18:08 +000016938
16939rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016940 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016941fi
Reid Spencera773bd52006-08-04 18:18:08 +000016942{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16943echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016944if test $ac_cv_func_dlopen = yes; then
16945 lt_cv_dlopen="dlopen"
16946else
Reid Spencera773bd52006-08-04 18:18:08 +000016947 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16948echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016949if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16951else
16952 ac_check_lib_save_LIBS=$LIBS
16953LIBS="-ldl $LIBS"
16954cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016955/* confdefs.h. */
16956_ACEOF
16957cat confdefs.h >>conftest.$ac_ext
16958cat >>conftest.$ac_ext <<_ACEOF
16959/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016960
Reid Spencera773bd52006-08-04 18:18:08 +000016961/* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016964#ifdef __cplusplus
16965extern "C"
16966#endif
John Criswell7a73b802003-06-30 21:59:07 +000016967char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016968int
16969main ()
16970{
Reid Spencera773bd52006-08-04 18:18:08 +000016971return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016972 ;
16973 return 0;
16974}
16975_ACEOF
16976rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016977if { (ac_try="$ac_link"
16978case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981esac
16982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016984 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16991 { (case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994esac
16995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000017001 { (case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004esac
17005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000017007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_cv_lib_dl_dlopen=yes
17011else
17012 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017013sed 's/^/| /' conftest.$ac_ext >&5
17014
Reid Spencera773bd52006-08-04 18:18:08 +000017015 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017016fi
Reid Spencera773bd52006-08-04 18:18:08 +000017017
17018rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017019 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017020LIBS=$ac_check_lib_save_LIBS
17021fi
Reid Spencera773bd52006-08-04 18:18:08 +000017022{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17023echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017024if test $ac_cv_lib_dl_dlopen = yes; then
17025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17026else
Reid Spencera773bd52006-08-04 18:18:08 +000017027 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17028echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017029if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031else
17032 ac_check_lib_save_LIBS=$LIBS
17033LIBS="-lsvld $LIBS"
17034cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017040
Reid Spencera773bd52006-08-04 18:18:08 +000017041/* Override any GCC internal prototype to avoid an error.
17042 Use char because int might match the return type of a GCC
17043 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017044#ifdef __cplusplus
17045extern "C"
17046#endif
John Criswell7a73b802003-06-30 21:59:07 +000017047char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017048int
17049main ()
17050{
Reid Spencera773bd52006-08-04 18:18:08 +000017051return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017052 ;
17053 return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017057if { (ac_try="$ac_link"
17058case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061esac
17062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017064 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000017070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17071 { (case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074esac
17075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; } &&
17080 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000017081 { (case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000017087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_cv_lib_svld_dlopen=yes
17091else
17092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017093sed 's/^/| /' conftest.$ac_ext >&5
17094
Reid Spencera773bd52006-08-04 18:18:08 +000017095 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017096fi
Reid Spencera773bd52006-08-04 18:18:08 +000017097
17098rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017099 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017100LIBS=$ac_check_lib_save_LIBS
17101fi
Reid Spencera773bd52006-08-04 18:18:08 +000017102{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17103echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017104if test $ac_cv_lib_svld_dlopen = yes; then
17105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17106else
Reid Spencera773bd52006-08-04 18:18:08 +000017107 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17108echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017109if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111else
17112 ac_check_lib_save_LIBS=$LIBS
17113LIBS="-ldld $LIBS"
17114cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017115/* confdefs.h. */
17116_ACEOF
17117cat confdefs.h >>conftest.$ac_ext
17118cat >>conftest.$ac_ext <<_ACEOF
17119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017120
Reid Spencera773bd52006-08-04 18:18:08 +000017121/* Override any GCC internal prototype to avoid an error.
17122 Use char because int might match the return type of a GCC
17123 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017124#ifdef __cplusplus
17125extern "C"
17126#endif
John Criswell7a73b802003-06-30 21:59:07 +000017127char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017128int
17129main ()
17130{
Reid Spencera773bd52006-08-04 18:18:08 +000017131return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017137if { (ac_try="$ac_link"
17138case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017144 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017145 grep -v '^ *+' conftest.er1 >conftest.err
17146 rm -f conftest.er1
17147 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000017150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17151 { (case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17154esac
17155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; } &&
17160 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000017161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164esac
17165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000017167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 ac_cv_lib_dld_dld_link=yes
17171else
17172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017173sed 's/^/| /' conftest.$ac_ext >&5
17174
Reid Spencera773bd52006-08-04 18:18:08 +000017175 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017176fi
Reid Spencera773bd52006-08-04 18:18:08 +000017177
17178rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017179 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017180LIBS=$ac_check_lib_save_LIBS
17181fi
Reid Spencera773bd52006-08-04 18:18:08 +000017182{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17183echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017184if test $ac_cv_lib_dld_dld_link = yes; then
17185 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17186fi
17187
17188
17189fi
17190
17191
17192fi
17193
17194
17195fi
17196
17197
17198fi
17199
17200
17201fi
17202
17203 ;;
17204 esac
17205
17206 if test "x$lt_cv_dlopen" != xno; then
17207 enable_dlopen=yes
17208 else
17209 enable_dlopen=no
17210 fi
17211
17212 case $lt_cv_dlopen in
17213 dlopen)
17214 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017215 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017216
17217 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017219
17220 save_LIBS="$LIBS"
17221 LIBS="$lt_cv_dlopen_libs $LIBS"
17222
Reid Spencera773bd52006-08-04 18:18:08 +000017223 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17224echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017225if test "${lt_cv_dlopen_self+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227else
17228 if test "$cross_compiling" = yes; then :
17229 lt_cv_dlopen_self=cross
17230else
John Criswell47fdd832003-07-14 16:52:07 +000017231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017232 lt_status=$lt_dlunknown
17233 cat > conftest.$ac_ext <<EOF
Gordon Henriksenf0915682007-10-02 16:42:22 +000017234#line 17234 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017235#include "confdefs.h"
17236
17237#if HAVE_DLFCN_H
17238#include <dlfcn.h>
17239#endif
17240
17241#include <stdio.h>
17242
17243#ifdef RTLD_GLOBAL
17244# define LT_DLGLOBAL RTLD_GLOBAL
17245#else
17246# ifdef DL_GLOBAL
17247# define LT_DLGLOBAL DL_GLOBAL
17248# else
17249# define LT_DLGLOBAL 0
17250# endif
17251#endif
17252
17253/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17254 find out it does not work in some platform. */
17255#ifndef LT_DLLAZY_OR_NOW
17256# ifdef RTLD_LAZY
17257# define LT_DLLAZY_OR_NOW RTLD_LAZY
17258# else
17259# ifdef DL_LAZY
17260# define LT_DLLAZY_OR_NOW DL_LAZY
17261# else
17262# ifdef RTLD_NOW
17263# define LT_DLLAZY_OR_NOW RTLD_NOW
17264# else
17265# ifdef DL_NOW
17266# define LT_DLLAZY_OR_NOW DL_NOW
17267# else
17268# define LT_DLLAZY_OR_NOW 0
17269# endif
17270# endif
17271# endif
17272# endif
17273#endif
17274
17275#ifdef __cplusplus
17276extern "C" void exit (int);
17277#endif
17278
17279void fnord() { int i=42;}
17280int main ()
17281{
17282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17283 int status = $lt_dlunknown;
17284
17285 if (self)
17286 {
17287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17288 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17289 /* dlclose (self); */
17290 }
Reid Spencera773bd52006-08-04 18:18:08 +000017291 else
17292 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017293
17294 exit (status);
17295}
17296EOF
17297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017302 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017303 lt_status=$?
17304 case x$lt_status in
17305 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17306 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017307 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017308 esac
17309 else :
17310 # compilation failed
17311 lt_cv_dlopen_self=no
17312 fi
17313fi
17314rm -fr conftest*
17315
17316
17317fi
Reid Spencera773bd52006-08-04 18:18:08 +000017318{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17319echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017320
17321 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017322 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17323 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17324echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017325if test "${lt_cv_dlopen_self_static+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327else
17328 if test "$cross_compiling" = yes; then :
17329 lt_cv_dlopen_self_static=cross
17330else
John Criswell47fdd832003-07-14 16:52:07 +000017331 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017332 lt_status=$lt_dlunknown
17333 cat > conftest.$ac_ext <<EOF
Gordon Henriksenf0915682007-10-02 16:42:22 +000017334#line 17334 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017335#include "confdefs.h"
17336
17337#if HAVE_DLFCN_H
17338#include <dlfcn.h>
17339#endif
17340
17341#include <stdio.h>
17342
17343#ifdef RTLD_GLOBAL
17344# define LT_DLGLOBAL RTLD_GLOBAL
17345#else
17346# ifdef DL_GLOBAL
17347# define LT_DLGLOBAL DL_GLOBAL
17348# else
17349# define LT_DLGLOBAL 0
17350# endif
17351#endif
17352
17353/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17354 find out it does not work in some platform. */
17355#ifndef LT_DLLAZY_OR_NOW
17356# ifdef RTLD_LAZY
17357# define LT_DLLAZY_OR_NOW RTLD_LAZY
17358# else
17359# ifdef DL_LAZY
17360# define LT_DLLAZY_OR_NOW DL_LAZY
17361# else
17362# ifdef RTLD_NOW
17363# define LT_DLLAZY_OR_NOW RTLD_NOW
17364# else
17365# ifdef DL_NOW
17366# define LT_DLLAZY_OR_NOW DL_NOW
17367# else
17368# define LT_DLLAZY_OR_NOW 0
17369# endif
17370# endif
17371# endif
17372# endif
17373#endif
17374
17375#ifdef __cplusplus
17376extern "C" void exit (int);
17377#endif
17378
17379void fnord() { int i=42;}
17380int main ()
17381{
17382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17383 int status = $lt_dlunknown;
17384
17385 if (self)
17386 {
17387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17388 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17389 /* dlclose (self); */
17390 }
Reid Spencera773bd52006-08-04 18:18:08 +000017391 else
17392 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017393
17394 exit (status);
17395}
17396EOF
17397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398 (eval $ac_link) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017402 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017403 lt_status=$?
17404 case x$lt_status in
17405 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17406 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017407 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017408 esac
17409 else :
17410 # compilation failed
17411 lt_cv_dlopen_self_static=no
17412 fi
17413fi
17414rm -fr conftest*
17415
17416
17417fi
Reid Spencera773bd52006-08-04 18:18:08 +000017418{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17419echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017420 fi
17421
17422 CPPFLAGS="$save_CPPFLAGS"
17423 LDFLAGS="$save_LDFLAGS"
17424 LIBS="$save_LIBS"
17425 ;;
17426 esac
17427
17428 case $lt_cv_dlopen_self in
17429 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17430 *) enable_dlopen_self=unknown ;;
17431 esac
17432
17433 case $lt_cv_dlopen_self_static in
17434 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17435 *) enable_dlopen_self_static=unknown ;;
17436 esac
17437fi
17438
17439
Reid Spencera773bd52006-08-04 18:18:08 +000017440# Report which library types will actually be built
17441{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17442echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17443{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17444echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017445
Reid Spencera773bd52006-08-04 18:18:08 +000017446{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17447echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017448test "$can_build_shared" = "no" && enable_shared=no
17449
17450# On AIX, shared libraries and static libraries use the same namespace, and
17451# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017452case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017453aix3*)
17454 test "$enable_shared" = yes && enable_static=no
17455 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017456 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017457 postinstall_cmds='$RANLIB $lib'
17458 fi
17459 ;;
17460
Reid Spencer2706f8c2004-09-19 23:53:36 +000017461aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017462 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17463 test "$enable_shared" = yes && enable_static=no
17464 fi
John Criswell7a73b802003-06-30 21:59:07 +000017465 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017466esac
Reid Spencera773bd52006-08-04 18:18:08 +000017467{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17468echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017469
Reid Spencera773bd52006-08-04 18:18:08 +000017470{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17471echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017472# Make sure either enable_shared or enable_static is yes.
17473test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017474{ echo "$as_me:$LINENO: result: $enable_static" >&5
17475echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017476
17477# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017478# libtool distribution, otherwise you forgot to ship ltmain.sh
17479# with your package, and you will get complaints that there are
17480# no rules to generate ltmain.sh.
17481if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017482 # See if we are running on zsh, and set the options which allow our commands through
17483 # without removal of \ escapes.
17484 if test -n "${ZSH_VERSION+set}" ; then
17485 setopt NO_GLOB_SUBST
17486 fi
John Criswell7a73b802003-06-30 21:59:07 +000017487 # Now quote all the things that may contain metacharacters while being
17488 # careful not to overquote the AC_SUBSTed values. We take copies of the
17489 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017490 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 +000017491 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17494 deplibs_check_method reload_flag reload_cmds need_locks \
17495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17496 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017498 old_postinstall_cmds old_postuninstall_cmds \
17499 compiler \
17500 CC \
17501 LD \
17502 lt_prog_compiler_wl \
17503 lt_prog_compiler_pic \
17504 lt_prog_compiler_static \
17505 lt_prog_compiler_no_builtin_flag \
17506 export_dynamic_flag_spec \
17507 thread_safe_flag_spec \
17508 whole_archive_flag_spec \
17509 enable_shared_with_static_runtimes \
17510 old_archive_cmds \
17511 old_archive_from_new_cmds \
17512 predep_objects \
17513 postdep_objects \
17514 predeps \
17515 postdeps \
17516 compiler_lib_search_path \
17517 archive_cmds \
17518 archive_expsym_cmds \
17519 postinstall_cmds \
17520 postuninstall_cmds \
17521 old_archive_from_expsyms_cmds \
17522 allow_undefined_flag \
17523 no_undefined_flag \
17524 export_symbols_cmds \
17525 hardcode_libdir_flag_spec \
17526 hardcode_libdir_flag_spec_ld \
17527 hardcode_libdir_separator \
17528 hardcode_automatic \
17529 module_cmds \
17530 module_expsym_cmds \
17531 lt_cv_prog_compiler_c_o \
17532 exclude_expsyms \
17533 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017534
17535 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017536 old_archive_cmds | \
17537 old_archive_from_new_cmds | \
17538 archive_cmds | \
17539 archive_expsym_cmds | \
17540 module_cmds | \
17541 module_expsym_cmds | \
17542 old_archive_from_expsyms_cmds | \
17543 export_symbols_cmds | \
17544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017545 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017546 old_postinstall_cmds | old_postuninstall_cmds | \
17547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017548 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017549 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 +000017550 ;;
17551 *)
17552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17553 ;;
17554 esac
17555 done
17556
John Criswell47fdd832003-07-14 16:52:07 +000017557 case $lt_echo in
17558 *'\$0 --fallback-echo"')
17559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17560 ;;
17561 esac
17562
17563cfgfile="${ofile}T"
17564 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17565 $rm -f "$cfgfile"
17566 { echo "$as_me:$LINENO: creating $ofile" >&5
17567echo "$as_me: creating $ofile" >&6;}
17568
17569 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017570#! $SHELL
17571
John Criswell47fdd832003-07-14 16:52:07 +000017572# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017573# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17574# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17575#
John Criswell47fdd832003-07-14 16:52:07 +000017576# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17577# Free Software Foundation, Inc.
17578#
17579# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017580# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17581#
17582# This program is free software; you can redistribute it and/or modify
17583# it under the terms of the GNU General Public License as published by
17584# the Free Software Foundation; either version 2 of the License, or
17585# (at your option) any later version.
17586#
17587# This program is distributed in the hope that it will be useful, but
17588# WITHOUT ANY WARRANTY; without even the implied warranty of
17589# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17590# General Public License for more details.
17591#
17592# You should have received a copy of the GNU General Public License
17593# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017594# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017595#
17596# As a special exception to the GNU General Public License, if you
17597# distribute this file as part of a program that contains a
17598# configuration script generated by Autoconf, you may include it under
17599# the same distribution terms that you use for the rest of that program.
17600
John Criswell47fdd832003-07-14 16:52:07 +000017601# A sed program that does not truncate output.
17602SED=$lt_SED
17603
John Criswell7a73b802003-06-30 21:59:07 +000017604# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017605Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017606
17607# The HP-UX ksh and POSIX shell print the target directory to stdout
17608# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017609(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017610
John Criswell47fdd832003-07-14 16:52:07 +000017611# The names of the tagged configurations supported by this script.
17612available_tags=
17613
John Criswell7a73b802003-06-30 21:59:07 +000017614# ### BEGIN LIBTOOL CONFIG
17615
17616# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17617
17618# Shell to use when invoking shell scripts.
17619SHELL=$lt_SHELL
17620
17621# Whether or not to build shared libraries.
17622build_libtool_libs=$enable_shared
17623
17624# Whether or not to build static libraries.
17625build_old_libs=$enable_static
17626
17627# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017628build_libtool_need_lc=$archive_cmds_need_lc
17629
17630# Whether or not to disallow shared libs when runtime libs are static
17631allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017632
17633# Whether or not to optimize for fast installation.
17634fast_install=$enable_fast_install
17635
17636# The host system.
17637host_alias=$host_alias
17638host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017639host_os=$host_os
17640
17641# The build system.
17642build_alias=$build_alias
17643build=$build
17644build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017645
17646# An echo program that does not interpret backslashes.
17647echo=$lt_echo
17648
17649# The archiver.
17650AR=$lt_AR
17651AR_FLAGS=$lt_AR_FLAGS
17652
John Criswell47fdd832003-07-14 16:52:07 +000017653# A C compiler.
17654LTCC=$lt_LTCC
17655
Reid Spencera773bd52006-08-04 18:18:08 +000017656# LTCC compiler flags.
17657LTCFLAGS=$lt_LTCFLAGS
17658
John Criswell47fdd832003-07-14 16:52:07 +000017659# A language-specific compiler.
17660CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017661
17662# Is the compiler the GNU C compiler?
17663with_gcc=$GCC
17664
John Criswell47fdd832003-07-14 16:52:07 +000017665# An ERE matcher.
17666EGREP=$lt_EGREP
17667
John Criswell7a73b802003-06-30 21:59:07 +000017668# The linker used to build libraries.
17669LD=$lt_LD
17670
17671# Whether we need hard or soft links.
17672LN_S=$lt_LN_S
17673
17674# A BSD-compatible nm program.
17675NM=$lt_NM
17676
17677# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017678STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017679
17680# Used to examine libraries when file_magic_cmd begins "file"
17681MAGIC_CMD=$MAGIC_CMD
17682
17683# Used on cygwin: DLL creation program.
17684DLLTOOL="$DLLTOOL"
17685
17686# Used on cygwin: object dumper.
17687OBJDUMP="$OBJDUMP"
17688
17689# Used on cygwin: assembler.
17690AS="$AS"
17691
17692# The name of the directory that contains temporary libtool files.
17693objdir=$objdir
17694
17695# How to create reloadable object files.
17696reload_flag=$lt_reload_flag
17697reload_cmds=$lt_reload_cmds
17698
17699# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017700wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017701
17702# Object file suffix (normally "o").
17703objext="$ac_objext"
17704
17705# Old archive suffix (normally "a").
17706libext="$libext"
17707
John Criswell47fdd832003-07-14 16:52:07 +000017708# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017709shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017710
John Criswell7a73b802003-06-30 21:59:07 +000017711# Executable file suffix (normally "").
17712exeext="$exeext"
17713
17714# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017715pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017716pic_mode=$pic_mode
17717
John Criswell47fdd832003-07-14 16:52:07 +000017718# What is the maximum length of a command?
17719max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017720
John Criswell47fdd832003-07-14 16:52:07 +000017721# Does compiler simultaneously support -c and -o options?
17722compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017723
Reid Spencera773bd52006-08-04 18:18:08 +000017724# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017725need_locks=$lt_need_locks
17726
17727# Do we need the lib prefix for modules?
17728need_lib_prefix=$need_lib_prefix
17729
17730# Do we need a version for libraries?
17731need_version=$need_version
17732
17733# Whether dlopen is supported.
17734dlopen_support=$enable_dlopen
17735
17736# Whether dlopen of programs is supported.
17737dlopen_self=$enable_dlopen_self
17738
17739# Whether dlopen of statically linked programs is supported.
17740dlopen_self_static=$enable_dlopen_self_static
17741
17742# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017743link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017744
17745# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017746no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017747
17748# Compiler flag to allow reflexive dlopens.
17749export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17750
17751# Compiler flag to generate shared objects directly from archives.
17752whole_archive_flag_spec=$lt_whole_archive_flag_spec
17753
17754# Compiler flag to generate thread-safe objects.
17755thread_safe_flag_spec=$lt_thread_safe_flag_spec
17756
17757# Library versioning type.
17758version_type=$version_type
17759
17760# Format of library name prefix.
17761libname_spec=$lt_libname_spec
17762
17763# List of archive names. First name is the real one, the rest are links.
17764# The last name is the one that the linker finds with -lNAME.
17765library_names_spec=$lt_library_names_spec
17766
17767# The coded name of the library, if different from the real name.
17768soname_spec=$lt_soname_spec
17769
17770# Commands used to build and install an old-style archive.
17771RANLIB=$lt_RANLIB
17772old_archive_cmds=$lt_old_archive_cmds
17773old_postinstall_cmds=$lt_old_postinstall_cmds
17774old_postuninstall_cmds=$lt_old_postuninstall_cmds
17775
17776# Create an old-style archive from a shared archive.
17777old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17778
17779# Create a temporary old-style archive to link instead of a shared archive.
17780old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17781
17782# Commands used to build and install a shared archive.
17783archive_cmds=$lt_archive_cmds
17784archive_expsym_cmds=$lt_archive_expsym_cmds
17785postinstall_cmds=$lt_postinstall_cmds
17786postuninstall_cmds=$lt_postuninstall_cmds
17787
John Criswell47fdd832003-07-14 16:52:07 +000017788# Commands used to build a loadable module (assumed same as above if empty)
17789module_cmds=$lt_module_cmds
17790module_expsym_cmds=$lt_module_expsym_cmds
17791
John Criswell7a73b802003-06-30 21:59:07 +000017792# Commands to strip libraries.
17793old_striplib=$lt_old_striplib
17794striplib=$lt_striplib
17795
John Criswell47fdd832003-07-14 16:52:07 +000017796# Dependencies to place before the objects being linked to create a
17797# shared library.
17798predep_objects=$lt_predep_objects
17799
17800# Dependencies to place after the objects being linked to create a
17801# shared library.
17802postdep_objects=$lt_postdep_objects
17803
17804# Dependencies to place before the objects being linked to create a
17805# shared library.
17806predeps=$lt_predeps
17807
17808# Dependencies to place after the objects being linked to create a
17809# shared library.
17810postdeps=$lt_postdeps
17811
17812# The library search path used internally by the compiler when linking
17813# a shared library.
17814compiler_lib_search_path=$lt_compiler_lib_search_path
17815
John Criswell7a73b802003-06-30 21:59:07 +000017816# Method to check whether dependent libraries are shared objects.
17817deplibs_check_method=$lt_deplibs_check_method
17818
17819# Command to use when deplibs_check_method == file_magic.
17820file_magic_cmd=$lt_file_magic_cmd
17821
17822# Flag that allows shared libraries with undefined symbols to be built.
17823allow_undefined_flag=$lt_allow_undefined_flag
17824
17825# Flag that forces no undefined symbols.
17826no_undefined_flag=$lt_no_undefined_flag
17827
17828# Commands used to finish a libtool library installation in a directory.
17829finish_cmds=$lt_finish_cmds
17830
17831# Same as above, but a single script fragment to be evaled but not shown.
17832finish_eval=$lt_finish_eval
17833
17834# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017835global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017836
17837# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017838global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017839
17840# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017841global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017842
17843# This is the shared library runtime path variable.
17844runpath_var=$runpath_var
17845
17846# This is the shared library path variable.
17847shlibpath_var=$shlibpath_var
17848
17849# Is shlibpath searched before the hard-coded library search path?
17850shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17851
17852# How to hardcode a shared library path into an executable.
17853hardcode_action=$hardcode_action
17854
17855# Whether we should hardcode library paths into libraries.
17856hardcode_into_libs=$hardcode_into_libs
17857
17858# Flag to hardcode \$libdir into a binary during linking.
17859# This must work even if \$libdir does not exist.
17860hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17861
John Criswell47fdd832003-07-14 16:52:07 +000017862# If ld is used when linking, flag to hardcode \$libdir into
17863# a binary during linking. This must work even if \$libdir does
17864# not exist.
17865hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17866
John Criswell7a73b802003-06-30 21:59:07 +000017867# Whether we need a single -rpath flag with a separated argument.
17868hardcode_libdir_separator=$lt_hardcode_libdir_separator
17869
John Criswell47fdd832003-07-14 16:52:07 +000017870# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017871# resulting binary.
17872hardcode_direct=$hardcode_direct
17873
17874# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17875# resulting binary.
17876hardcode_minus_L=$hardcode_minus_L
17877
17878# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17879# the resulting binary.
17880hardcode_shlibpath_var=$hardcode_shlibpath_var
17881
John Criswell47fdd832003-07-14 16:52:07 +000017882# Set to yes if building a shared library automatically hardcodes DIR into the library
17883# and all subsequent libraries and executables linked against it.
17884hardcode_automatic=$hardcode_automatic
17885
John Criswell7a73b802003-06-30 21:59:07 +000017886# Variables whose values should be saved in libtool wrapper scripts and
17887# restored at relink time.
17888variables_saved_for_relink="$variables_saved_for_relink"
17889
17890# Whether libtool must link a program against all its dependency libraries.
17891link_all_deplibs=$link_all_deplibs
17892
17893# Compile-time system search path for libraries
17894sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17895
17896# Run-time system search path for libraries
17897sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17898
17899# Fix the shell variable \$srcfile for the compiler.
17900fix_srcfile_path="$fix_srcfile_path"
17901
17902# Set to yes if exported symbols are required.
17903always_export_symbols=$always_export_symbols
17904
17905# The commands to list exported symbols.
17906export_symbols_cmds=$lt_export_symbols_cmds
17907
17908# The commands to extract the exported symbol list from a shared archive.
17909extract_expsyms_cmds=$lt_extract_expsyms_cmds
17910
17911# Symbols that should not be listed in the preloaded symbols.
17912exclude_expsyms=$lt_exclude_expsyms
17913
17914# Symbols that must always be exported.
17915include_expsyms=$lt_include_expsyms
17916
17917# ### END LIBTOOL CONFIG
17918
17919__EOF__
17920
John Criswell47fdd832003-07-14 16:52:07 +000017921
John Criswell7a73b802003-06-30 21:59:07 +000017922 case $host_os in
17923 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017924 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017925
17926# AIX sometimes has problems with the GCC collect2 program. For some
17927# reason, if we set the COLLECT_NAMES environment variable, the problems
17928# vanish in a puff of smoke.
17929if test "X${COLLECT_NAMES+set}" != Xset; then
17930 COLLECT_NAMES=
17931 export COLLECT_NAMES
17932fi
17933EOF
17934 ;;
17935 esac
17936
John Criswell7a73b802003-06-30 21:59:07 +000017937 # We use sed instead of cat because bash on DJGPP gets confused if
17938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17939 # text mode, it properly converts lines to CR/LF. This bash problem
17940 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017941 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017942
John Criswell47fdd832003-07-14 16:52:07 +000017943 mv -f "$cfgfile" "$ofile" || \
17944 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017945 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017946
17947else
17948 # If there is no Makefile yet, we rely on a make rule to execute
17949 # `config.status --recheck' to rerun these tests and create the
17950 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17952 if test -f "$ltmain_in"; then
17953 test -f Makefile && make "$ltmain"
17954 fi
John Criswell7a73b802003-06-30 21:59:07 +000017955fi
John Criswell7a73b802003-06-30 21:59:07 +000017956
17957
John Criswell47fdd832003-07-14 16:52:07 +000017958ac_ext=c
17959ac_cpp='$CPP $CPPFLAGS'
17960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962ac_compiler_gnu=$ac_cv_c_compiler_gnu
17963
17964CC="$lt_save_CC"
17965
17966
Reid Spencera773bd52006-08-04 18:18:08 +000017967# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017968if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017969 withval=$with_tags; tagnames="$withval"
17970fi
17971
John Criswell47fdd832003-07-14 16:52:07 +000017972
17973if test -f "$ltmain" && test -n "$tagnames"; then
17974 if test ! -f "${ofile}"; then
17975 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17976echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17977 fi
17978
17979 if test -z "$LTCC"; then
17980 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17981 if test -z "$LTCC"; then
17982 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17983echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17984 else
17985 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17986echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17987 fi
17988 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017989 if test -z "$LTCFLAGS"; then
17990 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17991 fi
John Criswell47fdd832003-07-14 16:52:07 +000017992
17993 # Extract list of available tagged configurations in $ofile.
17994 # Note that this assumes the entire list is on one line.
17995 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17996
17997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17998 for tagname in $tagnames; do
17999 IFS="$lt_save_ifs"
18000 # Check whether tagname contains only valid characters
18001 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18002 "") ;;
18003 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18004echo "$as_me: error: invalid tag name: $tagname" >&2;}
18005 { (exit 1); exit 1; }; }
18006 ;;
18007 esac
18008
18009 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18010 then
18011 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18012echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18013 { (exit 1); exit 1; }; }
18014 fi
18015
18016 # Update the list of available tags.
18017 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018018 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018019
18020 case $tagname in
18021 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018022 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18023 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18024 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018025 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018026ac_cpp='$CXXCPP $CPPFLAGS'
18027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18030
18031
18032
18033
18034archive_cmds_need_lc_CXX=no
18035allow_undefined_flag_CXX=
18036always_export_symbols_CXX=no
18037archive_expsym_cmds_CXX=
18038export_dynamic_flag_spec_CXX=
18039hardcode_direct_CXX=no
18040hardcode_libdir_flag_spec_CXX=
18041hardcode_libdir_flag_spec_ld_CXX=
18042hardcode_libdir_separator_CXX=
18043hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018044hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018045hardcode_automatic_CXX=no
18046module_cmds_CXX=
18047module_expsym_cmds_CXX=
18048link_all_deplibs_CXX=unknown
18049old_archive_cmds_CXX=$old_archive_cmds
18050no_undefined_flag_CXX=
18051whole_archive_flag_spec_CXX=
18052enable_shared_with_static_runtimes_CXX=no
18053
18054# Dependencies to place before and after the object being linked:
18055predep_objects_CXX=
18056postdep_objects_CXX=
18057predeps_CXX=
18058postdeps_CXX=
18059compiler_lib_search_path_CXX=
18060
18061# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018062ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018063
18064# Object file extension for compiled C++ test sources.
18065objext=o
18066objext_CXX=$objext
18067
18068# Code to be used in simple compile tests
18069lt_simple_compile_test_code="int some_variable = 0;\n"
18070
18071# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018072lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018073
18074# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18075
18076# If no C compiler was specified, use CC.
18077LTCC=${LTCC-"$CC"}
18078
Reid Spencera773bd52006-08-04 18:18:08 +000018079# If no C compiler flags were specified, use CFLAGS.
18080LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18081
John Criswell47fdd832003-07-14 16:52:07 +000018082# Allow CC to be a program name with arguments.
18083compiler=$CC
18084
18085
Reid Spencera773bd52006-08-04 18:18:08 +000018086# save warnings/boilerplate of simple test code
18087ac_outfile=conftest.$ac_objext
18088printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18089eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18090_lt_compiler_boilerplate=`cat conftest.err`
18091$rm conftest*
18092
18093ac_outfile=conftest.$ac_objext
18094printf "$lt_simple_link_test_code" >conftest.$ac_ext
18095eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18096_lt_linker_boilerplate=`cat conftest.err`
18097$rm conftest*
18098
18099
John Criswell47fdd832003-07-14 16:52:07 +000018100# Allow CC to be a program name with arguments.
18101lt_save_CC=$CC
18102lt_save_LD=$LD
18103lt_save_GCC=$GCC
18104GCC=$GXX
18105lt_save_with_gnu_ld=$with_gnu_ld
18106lt_save_path_LD=$lt_cv_path_LD
18107if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18108 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18109else
Reid Spencera773bd52006-08-04 18:18:08 +000018110 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018111fi
18112if test -n "${lt_cv_path_LDCXX+set}"; then
18113 lt_cv_path_LD=$lt_cv_path_LDCXX
18114else
Reid Spencera773bd52006-08-04 18:18:08 +000018115 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018116fi
18117test -z "${LDCXX+set}" || LD=$LDCXX
18118CC=${CXX-"c++"}
18119compiler=$CC
18120compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018121for cc_temp in $compiler""; do
18122 case $cc_temp in
18123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18125 \-*) ;;
18126 *) break;;
18127 esac
18128done
18129cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18130
John Criswell47fdd832003-07-14 16:52:07 +000018131
18132# We don't want -fno-exception wen compiling C++ code, so set the
18133# no_builtin_flag separately
18134if test "$GXX" = yes; then
18135 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18136else
18137 lt_prog_compiler_no_builtin_flag_CXX=
18138fi
18139
18140if test "$GXX" = yes; then
18141 # Set up default GNU C++ configuration
18142
18143
Reid Spencera773bd52006-08-04 18:18:08 +000018144# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018145if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018146 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018147else
18148 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018149fi
18150
John Criswell47fdd832003-07-14 16:52:07 +000018151ac_prog=ld
18152if test "$GCC" = yes; then
18153 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018154 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18155echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018156 case $host in
18157 *-*-mingw*)
18158 # gcc leaves a trailing carriage return which upsets mingw
18159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18160 *)
18161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18162 esac
18163 case $ac_prog in
18164 # Accept absolute paths.
18165 [\\/]* | ?:[\\/]*)
18166 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018167 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018168 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18169 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18170 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18171 done
18172 test -z "$LD" && LD="$ac_prog"
18173 ;;
18174 "")
18175 # If it fails, then pretend we aren't using GCC.
18176 ac_prog=ld
18177 ;;
18178 *)
18179 # If it is relative, then search for the first ld in PATH.
18180 with_gnu_ld=unknown
18181 ;;
18182 esac
18183elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018184 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18185echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018186else
Reid Spencera773bd52006-08-04 18:18:08 +000018187 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18188echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018189fi
18190if test "${lt_cv_path_LD+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192else
18193 if test -z "$LD"; then
18194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18195 for ac_dir in $PATH; do
18196 IFS="$lt_save_ifs"
18197 test -z "$ac_dir" && ac_dir=.
18198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18199 lt_cv_path_LD="$ac_dir/$ac_prog"
18200 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018201 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018202 # Break only if it was the GNU/non-GNU ld that we prefer.
18203 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18204 *GNU* | *'with BFD'*)
18205 test "$with_gnu_ld" != no && break
18206 ;;
18207 *)
18208 test "$with_gnu_ld" != yes && break
18209 ;;
18210 esac
18211 fi
18212 done
18213 IFS="$lt_save_ifs"
18214else
18215 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18216fi
18217fi
18218
18219LD="$lt_cv_path_LD"
18220if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018221 { echo "$as_me:$LINENO: result: $LD" >&5
18222echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018223else
Reid Spencera773bd52006-08-04 18:18:08 +000018224 { echo "$as_me:$LINENO: result: no" >&5
18225echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018226fi
18227test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18228echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18229 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018230{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18231echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018232if test "${lt_cv_prog_gnu_ld+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234else
Reid Spencera773bd52006-08-04 18:18:08 +000018235 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018236case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018237*GNU* | *'with BFD'*)
18238 lt_cv_prog_gnu_ld=yes
18239 ;;
18240*)
18241 lt_cv_prog_gnu_ld=no
18242 ;;
18243esac
18244fi
Reid Spencera773bd52006-08-04 18:18:08 +000018245{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18246echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018247with_gnu_ld=$lt_cv_prog_gnu_ld
18248
18249
18250
18251 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18252 # archiving commands below assume that GNU ld is being used.
18253 if test "$with_gnu_ld" = yes; then
18254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18255 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'
18256
18257 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18259
18260 # If archive_cmds runs LD, not CC, wlarc should be empty
18261 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18262 # investigate it a little bit more. (MM)
18263 wlarc='${wl}'
18264
18265 # ancient GNU ld didn't support --whole-archive et. al.
18266 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18267 grep 'no-whole-archive' > /dev/null; then
18268 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18269 else
18270 whole_archive_flag_spec_CXX=
18271 fi
18272 else
18273 with_gnu_ld=no
18274 wlarc=
18275
18276 # A generic and very simple default shared library creation
18277 # command for GNU C++ for the case where it uses the native
18278 # linker, instead of GNU ld. If possible, this setting should
18279 # overridden to take advantage of the native linker features on
18280 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018281 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018282 fi
18283
18284 # Commands to make compiler produce verbose output that lists
18285 # what "hidden" libraries, object files and flags are used when
18286 # linking a shared library.
18287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18288
18289else
18290 GXX=no
18291 with_gnu_ld=no
18292 wlarc=
18293fi
18294
18295# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018296{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18297echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018298ld_shlibs_CXX=yes
18299case $host_os in
18300 aix3*)
18301 # FIXME: insert proper C++ library support
18302 ld_shlibs_CXX=no
18303 ;;
18304 aix4* | aix5*)
18305 if test "$host_cpu" = ia64; then
18306 # On IA64, the linker does run time linking by default, so we don't
18307 # have to do anything special.
18308 aix_use_runtimelinking=no
18309 exp_sym_flag='-Bexport'
18310 no_entry_flag=""
18311 else
18312 aix_use_runtimelinking=no
18313
18314 # Test if we are trying to use run time linking or normal
18315 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18316 # need to do runtime linking.
18317 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18318 for ld_flag in $LDFLAGS; do
18319 case $ld_flag in
18320 *-brtl*)
18321 aix_use_runtimelinking=yes
18322 break
18323 ;;
18324 esac
18325 done
Reid Spencera773bd52006-08-04 18:18:08 +000018326 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018327 esac
18328
18329 exp_sym_flag='-bexport'
18330 no_entry_flag='-bnoentry'
18331 fi
18332
18333 # When large executables or shared objects are built, AIX ld can
18334 # have problems creating the table of contents. If linking a library
18335 # or program results in "error TOC overflow" add -mminimal-toc to
18336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18338
18339 archive_cmds_CXX=''
18340 hardcode_direct_CXX=yes
18341 hardcode_libdir_separator_CXX=':'
18342 link_all_deplibs_CXX=yes
18343
18344 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018345 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018346 # We only want to do this on AIX 4.2 and lower, the check
18347 # below for broken collect2 doesn't work under 4.3+
18348 collect2name=`${CC} -print-prog-name=collect2`
18349 if test -f "$collect2name" && \
18350 strings "$collect2name" | grep resolve_lib_name >/dev/null
18351 then
18352 # We have reworked collect2
18353 hardcode_direct_CXX=yes
18354 else
18355 # We have old collect2
18356 hardcode_direct_CXX=unsupported
18357 # It fails to find uninstalled libraries when the uninstalled
18358 # path is not listed in the libpath. Setting hardcode_minus_L
18359 # to unsupported forces relinking
18360 hardcode_minus_L_CXX=yes
18361 hardcode_libdir_flag_spec_CXX='-L$libdir'
18362 hardcode_libdir_separator_CXX=
18363 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018364 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018365 esac
18366 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018367 if test "$aix_use_runtimelinking" = yes; then
18368 shared_flag="$shared_flag "'${wl}-G'
18369 fi
John Criswell47fdd832003-07-14 16:52:07 +000018370 else
18371 # not using gcc
18372 if test "$host_cpu" = ia64; then
18373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18374 # chokes on -Wl,-G. The following line is correct:
18375 shared_flag='-G'
18376 else
18377 if test "$aix_use_runtimelinking" = yes; then
18378 shared_flag='${wl}-G'
18379 else
18380 shared_flag='${wl}-bM:SRE'
18381 fi
18382 fi
18383 fi
18384
18385 # It seems that -bexpall does not export symbols beginning with
18386 # underscore (_), so it is better to generate a list of symbols to export.
18387 always_export_symbols_CXX=yes
18388 if test "$aix_use_runtimelinking" = yes; then
18389 # Warning - without using the other runtime loading flags (-brtl),
18390 # -berok will link without error, but may produce a broken library.
18391 allow_undefined_flag_CXX='-berok'
18392 # Determine the default libpath from the value encoded in an empty executable.
18393 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018394/* confdefs.h. */
18395_ACEOF
18396cat confdefs.h >>conftest.$ac_ext
18397cat >>conftest.$ac_ext <<_ACEOF
18398/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018399
John Criswell47fdd832003-07-14 16:52:07 +000018400int
18401main ()
18402{
18403
18404 ;
18405 return 0;
18406}
18407_ACEOF
18408rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018409if { (ac_try="$ac_link"
18410case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413esac
18414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018416 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18426esac
18427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018433 { (case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436esac
18437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442
18443aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18444}'`
18445# Check for a 64-bit object if we didn't find anything.
18446if 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; }
18447}'`; fi
18448else
18449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018450sed 's/^/| /' conftest.$ac_ext >&5
18451
Reid Spencera773bd52006-08-04 18:18:08 +000018452
John Criswell47fdd832003-07-14 16:52:07 +000018453fi
Reid Spencera773bd52006-08-04 18:18:08 +000018454
18455rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018456 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018457if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18458
18459 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18460
Reid Spencera773bd52006-08-04 18:18:08 +000018461 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 +000018462 else
18463 if test "$host_cpu" = ia64; then
18464 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18465 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018466 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 +000018467 else
18468 # Determine the default libpath from the value encoded in an empty executable.
18469 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018470/* confdefs.h. */
18471_ACEOF
18472cat confdefs.h >>conftest.$ac_ext
18473cat >>conftest.$ac_ext <<_ACEOF
18474/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018475
John Criswell47fdd832003-07-14 16:52:07 +000018476int
18477main ()
18478{
18479
18480 ;
18481 return 0;
18482}
18483_ACEOF
18484rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018485if { (ac_try="$ac_link"
18486case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18489esac
18490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018492 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018493 grep -v '^ *+' conftest.er1 >conftest.err
18494 rm -f conftest.er1
18495 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18499 { (case "(($ac_try" in
18500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501 *) ac_try_echo=$ac_try;;
18502esac
18503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; } &&
18508 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518
18519aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18520}'`
18521# Check for a 64-bit object if we didn't find anything.
18522if 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; }
18523}'`; fi
18524else
18525 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018526sed 's/^/| /' conftest.$ac_ext >&5
18527
Reid Spencera773bd52006-08-04 18:18:08 +000018528
John Criswell47fdd832003-07-14 16:52:07 +000018529fi
Reid Spencera773bd52006-08-04 18:18:08 +000018530
18531rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018532 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018533if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18534
18535 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18536 # Warning - without using the other run time loading flags,
18537 # -berok will link without error, but may produce a broken library.
18538 no_undefined_flag_CXX=' ${wl}-bernotok'
18539 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018540 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018541 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018542 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018543 # This is similar to how AIX traditionally builds its shared libraries.
18544 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 +000018545 fi
18546 fi
18547 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018548
18549 beos*)
18550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18551 allow_undefined_flag_CXX=unsupported
18552 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18553 # support --undefined. This deserves some investigation. FIXME
18554 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18555 else
18556 ld_shlibs_CXX=no
18557 fi
18558 ;;
18559
John Criswell47fdd832003-07-14 16:52:07 +000018560 chorus*)
18561 case $cc_basename in
18562 *)
18563 # FIXME: insert proper C++ library support
18564 ld_shlibs_CXX=no
18565 ;;
18566 esac
18567 ;;
18568
18569 cygwin* | mingw* | pw32*)
18570 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18571 # as there is no search path for DLLs.
18572 hardcode_libdir_flag_spec_CXX='-L$libdir'
18573 allow_undefined_flag_CXX=unsupported
18574 always_export_symbols_CXX=no
18575 enable_shared_with_static_runtimes_CXX=yes
18576
18577 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018578 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 +000018579 # If the export-symbols file already is a .def file (1st line
18580 # is EXPORTS), use it as is; otherwise, prepend...
18581 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18582 cp $export_symbols $output_objdir/$soname.def;
18583 else
18584 echo EXPORTS > $output_objdir/$soname.def;
18585 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018586 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018587 $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 +000018588 else
18589 ld_shlibs_CXX=no
18590 fi
18591 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018592 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018593 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018594 rhapsody* | darwin1.[012])
18595 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18596 ;;
18597 *) # Darwin 1.3 on
18598 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18599 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18600 else
18601 case ${MACOSX_DEPLOYMENT_TARGET} in
18602 10.[012])
18603 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18604 ;;
18605 10.*)
18606 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18607 ;;
18608 esac
18609 fi
18610 ;;
18611 esac
18612 archive_cmds_need_lc_CXX=no
18613 hardcode_direct_CXX=no
18614 hardcode_automatic_CXX=yes
18615 hardcode_shlibpath_var_CXX=unsupported
18616 whole_archive_flag_spec_CXX=''
18617 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018618
Reid Spencer2706f8c2004-09-19 23:53:36 +000018619 if test "$GXX" = yes ; then
18620 lt_int_apple_cc_single_mod=no
18621 output_verbose_link_cmd='echo'
18622 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18623 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018624 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018625 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018626 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 +000018627 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018628 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 +000018629 fi
18630 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018631 # 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 +000018632 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018633 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 +000018634 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018635 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 +000018636 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018637 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 +000018638 else
Reid Spencera773bd52006-08-04 18:18:08 +000018639 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018640 xlc*)
18641 output_verbose_link_cmd='echo'
18642 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'
18643 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018644 # 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 +000018645 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}'
18646 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 +000018647 ;;
18648 *)
18649 ld_shlibs_CXX=no
18650 ;;
18651 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018652 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018653 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018654
18655 dgux*)
18656 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018657 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018658 # FIXME: insert proper C++ library support
18659 ld_shlibs_CXX=no
18660 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018661 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018662 # Green Hills C++ Compiler
18663 # FIXME: insert proper C++ library support
18664 ld_shlibs_CXX=no
18665 ;;
18666 *)
18667 # FIXME: insert proper C++ library support
18668 ld_shlibs_CXX=no
18669 ;;
18670 esac
18671 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018672 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018673 # C++ shared libraries reported to be fairly broken before switch to ELF
18674 ld_shlibs_CXX=no
18675 ;;
18676 freebsd-elf*)
18677 archive_cmds_need_lc_CXX=no
18678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018679 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018680 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18681 # conventions
18682 ld_shlibs_CXX=yes
18683 ;;
18684 gnu*)
18685 ;;
18686 hpux9*)
18687 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18688 hardcode_libdir_separator_CXX=:
18689 export_dynamic_flag_spec_CXX='${wl}-E'
18690 hardcode_direct_CXX=yes
18691 hardcode_minus_L_CXX=yes # Not in the search PATH,
18692 # but as the default
18693 # location of the library.
18694
18695 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018696 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018697 # FIXME: insert proper C++ library support
18698 ld_shlibs_CXX=no
18699 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018700 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018701 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 +000018702 # Commands to make compiler produce verbose output that lists
18703 # what "hidden" libraries, object files and flags are used when
18704 # linking a shared library.
18705 #
18706 # There doesn't appear to be a way to prevent this compiler from
18707 # explicitly linking system object files so we need to strip them
18708 # from the output so that they don't get included in the library
18709 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018710 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 +000018711 ;;
18712 *)
18713 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018714 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 +000018715 else
18716 # FIXME: insert proper C++ library support
18717 ld_shlibs_CXX=no
18718 fi
18719 ;;
18720 esac
18721 ;;
18722 hpux10*|hpux11*)
18723 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018724 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18725 hardcode_libdir_separator_CXX=:
18726
18727 case $host_cpu in
18728 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018729 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018730 ;;
18731 *)
John Criswell47fdd832003-07-14 16:52:07 +000018732 export_dynamic_flag_spec_CXX='${wl}-E'
18733 ;;
18734 esac
18735 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018736 case $host_cpu in
18737 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018738 hardcode_direct_CXX=no
18739 hardcode_shlibpath_var_CXX=no
18740 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018741 *)
18742 hardcode_direct_CXX=yes
18743 hardcode_minus_L_CXX=yes # Not in the search PATH,
18744 # but as the default
18745 # location of the library.
18746 ;;
18747 esac
18748
18749 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018750 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018751 # FIXME: insert proper C++ library support
18752 ld_shlibs_CXX=no
18753 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018754 aCC*)
18755 case $host_cpu in
18756 hppa*64*)
18757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18758 ;;
18759 ia64*)
18760 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 +000018761 ;;
18762 *)
18763 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18764 ;;
18765 esac
18766 # Commands to make compiler produce verbose output that lists
18767 # what "hidden" libraries, object files and flags are used when
18768 # linking a shared library.
18769 #
18770 # There doesn't appear to be a way to prevent this compiler from
18771 # explicitly linking system object files so we need to strip them
18772 # from the output so that they don't get included in the library
18773 # dependencies.
18774 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'
18775 ;;
18776 *)
18777 if test "$GXX" = yes; then
18778 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018779 case $host_cpu in
18780 hppa*64*)
18781 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18782 ;;
18783 ia64*)
18784 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 +000018785 ;;
18786 *)
18787 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'
18788 ;;
18789 esac
18790 fi
18791 else
18792 # FIXME: insert proper C++ library support
18793 ld_shlibs_CXX=no
18794 fi
18795 ;;
18796 esac
18797 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018798 interix3*)
18799 hardcode_direct_CXX=no
18800 hardcode_shlibpath_var_CXX=no
18801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18802 export_dynamic_flag_spec_CXX='${wl}-E'
18803 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18804 # Instead, shared libraries are loaded at an image base (0x10000000 by
18805 # default) and relocated if they conflict, which is a slow very memory
18806 # consuming and fragmenting process. To avoid this, we pick a random,
18807 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18808 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18809 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'
18810 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'
18811 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018812 irix5* | irix6*)
18813 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018814 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018815 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018816 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 +000018817
18818 # Archives containing C++ object files must be created using
18819 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18820 # necessary to make sure instantiated templates are included
18821 # in the archive.
18822 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18823 ;;
18824 *)
18825 if test "$GXX" = yes; then
18826 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018827 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 +000018828 else
18829 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'
18830 fi
18831 fi
18832 link_all_deplibs_CXX=yes
18833 ;;
18834 esac
18835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18836 hardcode_libdir_separator_CXX=:
18837 ;;
18838 linux*)
18839 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018840 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018841 # Kuck and Associates, Inc. (KAI) C++ Compiler
18842
18843 # KCC will only create a shared library if the output file
18844 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18845 # to its proper name (with version) after linking.
18846 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'
18847 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'
18848 # Commands to make compiler produce verbose output that lists
18849 # what "hidden" libraries, object files and flags are used when
18850 # linking a shared library.
18851 #
18852 # There doesn't appear to be a way to prevent this compiler from
18853 # explicitly linking system object files so we need to strip them
18854 # from the output so that they don't get included in the library
18855 # dependencies.
18856 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'
18857
18858 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18859 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18860
18861 # Archives containing C++ object files must be created using
18862 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18863 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18864 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018865 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018866 # Intel C++
18867 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018868 # version 8.0 and above of icpc choke on multiply defined symbols
18869 # if we add $predep_objects and $postdep_objects, however 7.1 and
18870 # earlier do not add the objects themselves.
18871 case `$CC -V 2>&1` in
18872 *"Version 7."*)
18873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18874 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'
18875 ;;
18876 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018877 tmp_idyn=
18878 case $host_cpu in
18879 ia64*) tmp_idyn=' -i_dynamic';;
18880 esac
18881 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18882 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 +000018883 ;;
18884 esac
John Criswell47fdd832003-07-14 16:52:07 +000018885 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18887 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18888 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18889 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018890 pgCC*)
18891 # Portland Group C++ compiler
18892 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18893 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'
18894
18895 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18896 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18897 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'
18898 ;;
18899 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018900 # Compaq C++
18901 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18902 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'
18903
18904 runpath_var=LD_RUN_PATH
18905 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18906 hardcode_libdir_separator_CXX=:
18907
18908 # Commands to make compiler produce verbose output that lists
18909 # what "hidden" libraries, object files and flags are used when
18910 # linking a shared library.
18911 #
18912 # There doesn't appear to be a way to prevent this compiler from
18913 # explicitly linking system object files so we need to strip them
18914 # from the output so that they don't get included in the library
18915 # dependencies.
18916 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'
18917 ;;
18918 esac
18919 ;;
18920 lynxos*)
18921 # FIXME: insert proper C++ library support
18922 ld_shlibs_CXX=no
18923 ;;
18924 m88k*)
18925 # FIXME: insert proper C++ library support
18926 ld_shlibs_CXX=no
18927 ;;
18928 mvs*)
18929 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018930 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018931 # FIXME: insert proper C++ library support
18932 ld_shlibs_CXX=no
18933 ;;
18934 *)
18935 # FIXME: insert proper C++ library support
18936 ld_shlibs_CXX=no
18937 ;;
18938 esac
18939 ;;
18940 netbsd*)
18941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18942 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18943 wlarc=
18944 hardcode_libdir_flag_spec_CXX='-R$libdir'
18945 hardcode_direct_CXX=yes
18946 hardcode_shlibpath_var_CXX=no
18947 fi
18948 # Workaround some broken pre-1.5 toolchains
18949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18950 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018951 openbsd2*)
18952 # C++ shared libraries are fairly broken
18953 ld_shlibs_CXX=no
18954 ;;
18955 openbsd*)
18956 hardcode_direct_CXX=yes
18957 hardcode_shlibpath_var_CXX=no
18958 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18959 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18961 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18962 export_dynamic_flag_spec_CXX='${wl}-E'
18963 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18964 fi
18965 output_verbose_link_cmd='echo'
18966 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018967 osf3*)
18968 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018969 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018970 # Kuck and Associates, Inc. (KAI) C++ Compiler
18971
18972 # KCC will only create a shared library if the output file
18973 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18974 # to its proper name (with version) after linking.
18975 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'
18976
18977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18978 hardcode_libdir_separator_CXX=:
18979
18980 # Archives containing C++ object files must be created using
18981 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18982 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18983
18984 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018985 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018986 # Rational C++ 2.4.1
18987 # FIXME: insert proper C++ library support
18988 ld_shlibs_CXX=no
18989 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018990 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018991 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018992 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 +000018993
18994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18995 hardcode_libdir_separator_CXX=:
18996
18997 # Commands to make compiler produce verbose output that lists
18998 # what "hidden" libraries, object files and flags are used when
18999 # linking a shared library.
19000 #
19001 # There doesn't appear to be a way to prevent this compiler from
19002 # explicitly linking system object files so we need to strip them
19003 # from the output so that they don't get included in the library
19004 # dependencies.
19005 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'
19006 ;;
19007 *)
19008 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19009 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019010 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 +000019011
19012 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19013 hardcode_libdir_separator_CXX=:
19014
19015 # Commands to make compiler produce verbose output that lists
19016 # what "hidden" libraries, object files and flags are used when
19017 # linking a shared library.
19018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19019
19020 else
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 fi
19024 ;;
19025 esac
19026 ;;
19027 osf4* | osf5*)
19028 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019029 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019030 # Kuck and Associates, Inc. (KAI) C++ Compiler
19031
19032 # KCC will only create a shared library if the output file
19033 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19034 # to its proper name (with version) after linking.
19035 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'
19036
19037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19038 hardcode_libdir_separator_CXX=:
19039
19040 # Archives containing C++ object files must be created using
19041 # the KAI C++ compiler.
19042 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19043 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019044 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019045 # Rational C++ 2.4.1
19046 # FIXME: insert proper C++ library support
19047 ld_shlibs_CXX=no
19048 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019049 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019050 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019051 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 +000019052 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19053 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019054 $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 +000019055 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019056
19057 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19058 hardcode_libdir_separator_CXX=:
19059
19060 # Commands to make compiler produce verbose output that lists
19061 # what "hidden" libraries, object files and flags are used when
19062 # linking a shared library.
19063 #
19064 # There doesn't appear to be a way to prevent this compiler from
19065 # explicitly linking system object files so we need to strip them
19066 # from the output so that they don't get included in the library
19067 # dependencies.
19068 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'
19069 ;;
19070 *)
19071 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19072 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019073 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 +000019074
19075 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19076 hardcode_libdir_separator_CXX=:
19077
19078 # Commands to make compiler produce verbose output that lists
19079 # what "hidden" libraries, object files and flags are used when
19080 # linking a shared library.
19081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19082
19083 else
19084 # FIXME: insert proper C++ library support
19085 ld_shlibs_CXX=no
19086 fi
19087 ;;
19088 esac
19089 ;;
19090 psos*)
19091 # FIXME: insert proper C++ library support
19092 ld_shlibs_CXX=no
19093 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019094 sunos4*)
19095 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019096 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019097 # Sun C++ 4.x
19098 # FIXME: insert proper C++ library support
19099 ld_shlibs_CXX=no
19100 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019101 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019102 # Lucid
19103 # FIXME: insert proper C++ library support
19104 ld_shlibs_CXX=no
19105 ;;
19106 *)
19107 # FIXME: insert proper C++ library support
19108 ld_shlibs_CXX=no
19109 ;;
19110 esac
19111 ;;
19112 solaris*)
19113 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019114 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019115 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019116 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019117 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019118 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 +000019119 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 +000019120 $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 +000019121
19122 hardcode_libdir_flag_spec_CXX='-R$libdir'
19123 hardcode_shlibpath_var_CXX=no
19124 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019125 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019126 *)
19127 # The C++ compiler is used as linker so we must use $wl
19128 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019129 # linker. We must also pass each convience library through
19130 # to the system linker between allextract/defaultextract.
19131 # The C++ compiler will combine linker options so we
19132 # cannot just pass the convience library names through
19133 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019134 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019135 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 +000019136 ;;
19137 esac
19138 link_all_deplibs_CXX=yes
19139
Reid Spencera773bd52006-08-04 18:18:08 +000019140 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019141
19142 # Archives containing C++ object files must be created using
19143 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19144 # necessary to make sure instantiated templates are included
19145 # in the archive.
19146 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19147 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019148 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019149 # Green Hills C++ Compiler
19150 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19151
19152 # The C++ compiler must be used to create the archive.
19153 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19154 ;;
19155 *)
19156 # GNU C++ compiler with Solaris linker
19157 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19158 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19159 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019160 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 +000019161 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19162 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19163
John Criswell47fdd832003-07-14 16:52:07 +000019164 # Commands to make compiler produce verbose output that lists
19165 # what "hidden" libraries, object files and flags are used when
19166 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019167 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019168 else
19169 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19170 # platform.
19171 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 +000019172 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19173 $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 +000019174
19175 # Commands to make compiler produce verbose output that lists
19176 # what "hidden" libraries, object files and flags are used when
19177 # linking a shared library.
19178 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19179 fi
19180
19181 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19182 fi
19183 ;;
19184 esac
19185 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019186 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19187 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019188 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019189 hardcode_shlibpath_var_CXX=no
19190 runpath_var='LD_RUN_PATH'
19191
19192 case $cc_basename in
19193 CC*)
19194 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19195 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19196 ;;
19197 *)
19198 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19199 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19200 ;;
19201 esac
19202 ;;
19203 sysv5* | sco3.2v5* | sco5v6*)
19204 # Note: We can NOT use -z defs as we might desire, because we do not
19205 # link with -lc, and that would cause any symbols used from libc to
19206 # always be unresolved, which means just about no library would
19207 # ever link correctly. If we're not using GNU ld we use -z text
19208 # though, which does catch some bad symbols but isn't as heavy-handed
19209 # as -z defs.
19210 # For security reasons, it is highly recommended that you always
19211 # use absolute paths for naming shared libraries, and exclude the
19212 # DT_RUNPATH tag from executables and libraries. But doing so
19213 # requires that you compile everything twice, which is a pain.
19214 # So that behaviour is only enabled if SCOABSPATH is set to a
19215 # non-empty value in the environment. Most likely only useful for
19216 # creating official distributions of packages.
19217 # This is a hack until libtool officially supports absolute path
19218 # names for shared libraries.
19219 no_undefined_flag_CXX='${wl}-z,text'
19220 allow_undefined_flag_CXX='${wl}-z,nodefs'
19221 archive_cmds_need_lc_CXX=no
19222 hardcode_shlibpath_var_CXX=no
19223 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19224 hardcode_libdir_separator_CXX=':'
19225 link_all_deplibs_CXX=yes
19226 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19227 runpath_var='LD_RUN_PATH'
19228
19229 case $cc_basename in
19230 CC*)
19231 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19232 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19233 ;;
19234 *)
19235 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19236 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19237 ;;
19238 esac
John Criswell47fdd832003-07-14 16:52:07 +000019239 ;;
19240 tandem*)
19241 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019242 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019243 # NonStop-UX NCC 3.20
19244 # FIXME: insert proper C++ library support
19245 ld_shlibs_CXX=no
19246 ;;
19247 *)
19248 # FIXME: insert proper C++ library support
19249 ld_shlibs_CXX=no
19250 ;;
19251 esac
19252 ;;
19253 vxworks*)
19254 # FIXME: insert proper C++ library support
19255 ld_shlibs_CXX=no
19256 ;;
19257 *)
19258 # FIXME: insert proper C++ library support
19259 ld_shlibs_CXX=no
19260 ;;
19261esac
Reid Spencera773bd52006-08-04 18:18:08 +000019262{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19263echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019264test "$ld_shlibs_CXX" = no && can_build_shared=no
19265
19266GCC_CXX="$GXX"
19267LD_CXX="$LD"
19268
John Criswell47fdd832003-07-14 16:52:07 +000019269
19270cat > conftest.$ac_ext <<EOF
19271class Foo
19272{
19273public:
19274 Foo (void) { a = 0; }
19275private:
19276 int a;
19277};
19278EOF
19279
19280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19281 (eval $ac_compile) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; then
19285 # Parse the compiler output and extract the necessary
19286 # objects, libraries and library flags.
19287
19288 # Sentinel used to keep track of whether or not we are before
19289 # the conftest object file.
19290 pre_test_object_deps_done=no
19291
19292 # The `*' in the case matches for architectures that use `case' in
19293 # $output_verbose_cmd can trigger glob expansion during the loop
19294 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019295 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019296
19297 for p in `eval $output_verbose_link_cmd`; do
19298 case $p in
19299
19300 -L* | -R* | -l*)
19301 # Some compilers place space between "-{L,R}" and the path.
19302 # Remove the space.
19303 if test $p = "-L" \
19304 || test $p = "-R"; then
19305 prev=$p
19306 continue
19307 else
19308 prev=
19309 fi
19310
19311 if test "$pre_test_object_deps_done" = no; then
19312 case $p in
19313 -L* | -R*)
19314 # Internal compiler library paths should come after those
19315 # provided the user. The postdeps already come after the
19316 # user supplied libs so there is no need to process them.
19317 if test -z "$compiler_lib_search_path_CXX"; then
19318 compiler_lib_search_path_CXX="${prev}${p}"
19319 else
19320 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19321 fi
19322 ;;
19323 # The "-l" case would never come before the object being
19324 # linked, so don't bother handling this case.
19325 esac
19326 else
19327 if test -z "$postdeps_CXX"; then
19328 postdeps_CXX="${prev}${p}"
19329 else
19330 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19331 fi
19332 fi
19333 ;;
19334
19335 *.$objext)
19336 # This assumes that the test object file only shows up
19337 # once in the compiler output.
19338 if test "$p" = "conftest.$objext"; then
19339 pre_test_object_deps_done=yes
19340 continue
19341 fi
19342
19343 if test "$pre_test_object_deps_done" = no; then
19344 if test -z "$predep_objects_CXX"; then
19345 predep_objects_CXX="$p"
19346 else
19347 predep_objects_CXX="$predep_objects_CXX $p"
19348 fi
19349 else
19350 if test -z "$postdep_objects_CXX"; then
19351 postdep_objects_CXX="$p"
19352 else
19353 postdep_objects_CXX="$postdep_objects_CXX $p"
19354 fi
19355 fi
19356 ;;
19357
19358 *) ;; # Ignore the rest.
19359
19360 esac
19361 done
19362
19363 # Clean up.
19364 rm -f a.out a.exe
19365else
19366 echo "libtool.m4: error: problem compiling CXX test program"
19367fi
19368
19369$rm -f confest.$objext
19370
Reid Spencera773bd52006-08-04 18:18:08 +000019371# PORTME: override above test on systems where it is broken
19372case $host_os in
19373interix3*)
19374 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19375 # hack all around it, let's just trust "g++" to DTRT.
19376 predep_objects_CXX=
19377 postdep_objects_CXX=
19378 postdeps_CXX=
19379 ;;
19380
19381solaris*)
19382 case $cc_basename in
19383 CC*)
19384 # Adding this requires a known-good setup of shared libraries for
19385 # Sun compiler versions before 5.6, else PIC objects from an old
19386 # archive will be linked into the output, leading to subtle bugs.
19387 postdeps_CXX='-lCstd -lCrun'
19388 ;;
19389 esac
19390 ;;
19391esac
19392
19393
John Criswell47fdd832003-07-14 16:52:07 +000019394case " $postdeps_CXX " in
19395*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19396esac
19397
19398lt_prog_compiler_wl_CXX=
19399lt_prog_compiler_pic_CXX=
19400lt_prog_compiler_static_CXX=
19401
Reid Spencera773bd52006-08-04 18:18:08 +000019402{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19403echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019404
19405 # C++ specific cases for pic, static, wl, etc.
19406 if test "$GXX" = yes; then
19407 lt_prog_compiler_wl_CXX='-Wl,'
19408 lt_prog_compiler_static_CXX='-static'
19409
19410 case $host_os in
19411 aix*)
19412 # All AIX code is PIC.
19413 if test "$host_cpu" = ia64; then
19414 # AIX 5 now supports IA64 processor
19415 lt_prog_compiler_static_CXX='-Bstatic'
19416 fi
19417 ;;
19418 amigaos*)
19419 # FIXME: we need at least 68020 code to build shared libraries, but
19420 # adding the `-m68020' flag to GCC prevents building anything better,
19421 # like `-m68040'.
19422 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19423 ;;
19424 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19425 # PIC is the default for these OSes.
19426 ;;
19427 mingw* | os2* | pw32*)
19428 # This hack is so that the source file can tell whether it is being
19429 # built for inclusion in a dll (and should export symbols for example).
19430 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19431 ;;
19432 darwin* | rhapsody*)
19433 # PIC is the default on this platform
19434 # Common symbols not allowed in MH_DYLIB files
19435 lt_prog_compiler_pic_CXX='-fno-common'
19436 ;;
19437 *djgpp*)
19438 # DJGPP does not support shared libraries at all
19439 lt_prog_compiler_pic_CXX=
19440 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019441 interix3*)
19442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19443 # Instead, we relocate shared libraries at runtime.
19444 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019445 sysv4*MP*)
19446 if test -d /usr/nec; then
19447 lt_prog_compiler_pic_CXX=-Kconform_pic
19448 fi
19449 ;;
19450 hpux*)
19451 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19452 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019453 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019454 hppa*64*|ia64*)
19455 ;;
19456 *)
19457 lt_prog_compiler_pic_CXX='-fPIC'
19458 ;;
19459 esac
19460 ;;
19461 *)
19462 lt_prog_compiler_pic_CXX='-fPIC'
19463 ;;
19464 esac
19465 else
19466 case $host_os in
19467 aix4* | aix5*)
19468 # All AIX code is PIC.
19469 if test "$host_cpu" = ia64; then
19470 # AIX 5 now supports IA64 processor
19471 lt_prog_compiler_static_CXX='-Bstatic'
19472 else
19473 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19474 fi
19475 ;;
19476 chorus*)
19477 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019478 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019479 # Green Hills C++ Compiler
19480 # _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"
19481 ;;
19482 esac
19483 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019484 darwin*)
19485 # PIC is the default on this platform
19486 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019487 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019488 xlc*)
19489 lt_prog_compiler_pic_CXX='-qnocommon'
19490 lt_prog_compiler_wl_CXX='-Wl,'
19491 ;;
19492 esac
19493 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019494 dgux*)
19495 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019496 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019497 lt_prog_compiler_pic_CXX='-KPIC'
19498 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019499 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019500 # Green Hills C++ Compiler
19501 lt_prog_compiler_pic_CXX='-pic'
19502 ;;
19503 *)
19504 ;;
19505 esac
19506 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019507 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019508 # FreeBSD uses GNU C++
19509 ;;
19510 hpux9* | hpux10* | hpux11*)
19511 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019512 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019513 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019514 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019515 if test "$host_cpu" != ia64; then
19516 lt_prog_compiler_pic_CXX='+Z'
19517 fi
19518 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019519 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019520 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019521 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19522 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019523 hppa*64*|ia64*)
19524 # +Z the default
19525 ;;
19526 *)
19527 lt_prog_compiler_pic_CXX='+Z'
19528 ;;
19529 esac
19530 ;;
19531 *)
19532 ;;
19533 esac
19534 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019535 interix*)
19536 # This is c89, which is MS Visual C++ (no shared libs)
19537 # Anyone wants to do a port?
19538 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019539 irix5* | irix6* | nonstopux*)
19540 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019541 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019542 lt_prog_compiler_wl_CXX='-Wl,'
19543 lt_prog_compiler_static_CXX='-non_shared'
19544 # CC pic flag -KPIC is the default.
19545 ;;
19546 *)
19547 ;;
19548 esac
19549 ;;
19550 linux*)
19551 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019552 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019553 # KAI C++ Compiler
19554 lt_prog_compiler_wl_CXX='--backend -Wl,'
19555 lt_prog_compiler_pic_CXX='-fPIC'
19556 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019557 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019558 # Intel C++
19559 lt_prog_compiler_wl_CXX='-Wl,'
19560 lt_prog_compiler_pic_CXX='-KPIC'
19561 lt_prog_compiler_static_CXX='-static'
19562 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019563 pgCC*)
19564 # Portland Group C++ compiler.
19565 lt_prog_compiler_wl_CXX='-Wl,'
19566 lt_prog_compiler_pic_CXX='-fpic'
19567 lt_prog_compiler_static_CXX='-Bstatic'
19568 ;;
19569 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019570 # Compaq C++
19571 # Make sure the PIC flag is empty. It appears that all Alpha
19572 # Linux and Compaq Tru64 Unix objects are PIC.
19573 lt_prog_compiler_pic_CXX=
19574 lt_prog_compiler_static_CXX='-non_shared'
19575 ;;
19576 *)
19577 ;;
19578 esac
19579 ;;
19580 lynxos*)
19581 ;;
19582 m88k*)
19583 ;;
19584 mvs*)
19585 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019586 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019587 lt_prog_compiler_pic_CXX='-W c,exportall'
19588 ;;
19589 *)
19590 ;;
19591 esac
19592 ;;
19593 netbsd*)
19594 ;;
19595 osf3* | osf4* | osf5*)
19596 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019597 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019598 lt_prog_compiler_wl_CXX='--backend -Wl,'
19599 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019600 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019601 # Rational C++ 2.4.1
19602 lt_prog_compiler_pic_CXX='-pic'
19603 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019604 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019605 # Digital/Compaq C++
19606 lt_prog_compiler_wl_CXX='-Wl,'
19607 # Make sure the PIC flag is empty. It appears that all Alpha
19608 # Linux and Compaq Tru64 Unix objects are PIC.
19609 lt_prog_compiler_pic_CXX=
19610 lt_prog_compiler_static_CXX='-non_shared'
19611 ;;
19612 *)
19613 ;;
19614 esac
19615 ;;
19616 psos*)
19617 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019618 solaris*)
19619 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019620 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019621 # Sun C++ 4.2, 5.x and Centerline C++
19622 lt_prog_compiler_pic_CXX='-KPIC'
19623 lt_prog_compiler_static_CXX='-Bstatic'
19624 lt_prog_compiler_wl_CXX='-Qoption ld '
19625 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019626 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019627 # Green Hills C++ Compiler
19628 lt_prog_compiler_pic_CXX='-PIC'
19629 ;;
19630 *)
19631 ;;
19632 esac
19633 ;;
19634 sunos4*)
19635 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019636 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019637 # Sun C++ 4.x
19638 lt_prog_compiler_pic_CXX='-pic'
19639 lt_prog_compiler_static_CXX='-Bstatic'
19640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019641 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019642 # Lucid
19643 lt_prog_compiler_pic_CXX='-pic'
19644 ;;
19645 *)
19646 ;;
19647 esac
19648 ;;
19649 tandem*)
19650 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019651 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019652 # NonStop-UX NCC 3.20
19653 lt_prog_compiler_pic_CXX='-KPIC'
19654 ;;
19655 *)
19656 ;;
19657 esac
19658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19660 case $cc_basename in
19661 CC*)
19662 lt_prog_compiler_wl_CXX='-Wl,'
19663 lt_prog_compiler_pic_CXX='-KPIC'
19664 lt_prog_compiler_static_CXX='-Bstatic'
19665 ;;
19666 esac
John Criswell47fdd832003-07-14 16:52:07 +000019667 ;;
19668 vxworks*)
19669 ;;
19670 *)
19671 lt_prog_compiler_can_build_shared_CXX=no
19672 ;;
19673 esac
19674 fi
19675
Reid Spencera773bd52006-08-04 18:18:08 +000019676{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19677echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019678
19679#
19680# Check to make sure the PIC flag actually works.
19681#
19682if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019683
Reid Spencera773bd52006-08-04 18:18:08 +000019684{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19685echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019686if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19688else
19689 lt_prog_compiler_pic_works_CXX=no
19690 ac_outfile=conftest.$ac_objext
19691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19692 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19693 # Insert the option either (1) after the last *FLAGS variable, or
19694 # (2) before a word containing "conftest.", or (3) at the end.
19695 # Note that $ac_compile itself does not contain backslashes and begins
19696 # with a dollar sign (not a hyphen), so the echo should work correctly.
19697 # The option is referenced via a variable to avoid confusing sed.
19698 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19701 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenf0915682007-10-02 16:42:22 +000019702 (eval echo "\"\$as_me:19702: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019703 (eval "$lt_compile" 2>conftest.err)
19704 ac_status=$?
19705 cat conftest.err >&5
Gordon Henriksenf0915682007-10-02 16:42:22 +000019706 echo "$as_me:19706: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019707 if (exit $ac_status) && test -s "$ac_outfile"; then
19708 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019709 # So say no if there are warnings other than the usual output.
19710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019713 lt_prog_compiler_pic_works_CXX=yes
19714 fi
19715 fi
19716 $rm conftest*
19717
19718fi
Reid Spencera773bd52006-08-04 18:18:08 +000019719{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19720echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019721
19722if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19723 case $lt_prog_compiler_pic_CXX in
19724 "" | " "*) ;;
19725 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19726 esac
19727else
19728 lt_prog_compiler_pic_CXX=
19729 lt_prog_compiler_can_build_shared_CXX=no
19730fi
19731
19732fi
Reid Spencera773bd52006-08-04 18:18:08 +000019733case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019734 # For platforms which do not support PIC, -DPIC is meaningless:
19735 *djgpp*)
19736 lt_prog_compiler_pic_CXX=
19737 ;;
19738 *)
19739 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19740 ;;
19741esac
19742
Reid Spencera773bd52006-08-04 18:18:08 +000019743#
19744# Check to make sure the static flag actually works.
19745#
19746wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19747{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19748echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19749if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751else
19752 lt_prog_compiler_static_works_CXX=no
19753 save_LDFLAGS="$LDFLAGS"
19754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19755 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19757 # The linker can only warn and ignore the option if not recognized
19758 # So say no if there are warnings
19759 if test -s conftest.err; then
19760 # Append any errors to the config.log.
19761 cat conftest.err 1>&5
19762 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19764 if diff conftest.exp conftest.er2 >/dev/null; then
19765 lt_prog_compiler_static_works_CXX=yes
19766 fi
19767 else
19768 lt_prog_compiler_static_works_CXX=yes
19769 fi
19770 fi
19771 $rm conftest*
19772 LDFLAGS="$save_LDFLAGS"
19773
19774fi
19775{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19776echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19777
19778if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19779 :
19780else
19781 lt_prog_compiler_static_CXX=
19782fi
19783
19784
19785{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19786echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019787if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789else
19790 lt_cv_prog_compiler_c_o_CXX=no
19791 $rm -r conftest 2>/dev/null
19792 mkdir conftest
19793 cd conftest
19794 mkdir out
19795 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19796
John Criswell47fdd832003-07-14 16:52:07 +000019797 lt_compiler_flag="-o out/conftest2.$ac_objext"
19798 # Insert the option either (1) after the last *FLAGS variable, or
19799 # (2) before a word containing "conftest.", or (3) at the end.
19800 # Note that $ac_compile itself does not contain backslashes and begins
19801 # with a dollar sign (not a hyphen), so the echo should work correctly.
19802 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19805 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenf0915682007-10-02 16:42:22 +000019806 (eval echo "\"\$as_me:19806: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019807 (eval "$lt_compile" 2>out/conftest.err)
19808 ac_status=$?
19809 cat out/conftest.err >&5
Gordon Henriksenf0915682007-10-02 16:42:22 +000019810 echo "$as_me:19810: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19812 then
19813 # The compiler can only warn and ignore the option if not recognized
19814 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019815 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019818 lt_cv_prog_compiler_c_o_CXX=yes
19819 fi
19820 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019821 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019822 $rm conftest*
19823 # SGI C++ compiler will create directory out/ii_files/ for
19824 # template instantiation
19825 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19826 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019827 cd ..
19828 rmdir conftest
19829 $rm conftest*
19830
19831fi
Reid Spencera773bd52006-08-04 18:18:08 +000019832{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19833echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019834
19835
19836hard_links="nottested"
19837if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19838 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019839 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19840echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019841 hard_links=yes
19842 $rm conftest*
19843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19844 touch conftest.a
19845 ln conftest.a conftest.b 2>&5 || hard_links=no
19846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019847 { echo "$as_me:$LINENO: result: $hard_links" >&5
19848echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019849 if test "$hard_links" = no; then
19850 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19851echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19852 need_locks=warn
19853 fi
19854else
19855 need_locks=no
19856fi
19857
Reid Spencera773bd52006-08-04 18:18:08 +000019858{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19859echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019860
19861 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19862 case $host_os in
19863 aix4* | aix5*)
19864 # If we're using GNU nm, then we don't want the "-C" option.
19865 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19866 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19867 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'
19868 else
19869 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'
19870 fi
19871 ;;
19872 pw32*)
19873 export_symbols_cmds_CXX="$ltdll_cmds"
19874 ;;
19875 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019876 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 +000019877 ;;
19878 *)
19879 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19880 ;;
19881 esac
19882
Reid Spencera773bd52006-08-04 18:18:08 +000019883{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19884echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019885test "$ld_shlibs_CXX" = no && can_build_shared=no
19886
John Criswell47fdd832003-07-14 16:52:07 +000019887#
19888# Do we need to explicitly link libc?
19889#
19890case "x$archive_cmds_need_lc_CXX" in
19891x|xyes)
19892 # Assume -lc should be added
19893 archive_cmds_need_lc_CXX=yes
19894
19895 if test "$enable_shared" = yes && test "$GCC" = yes; then
19896 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019897 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019898 # FIXME: we may have to deal with multi-command sequences.
19899 ;;
19900 '$CC '*)
19901 # Test whether the compiler implicitly links with -lc since on some
19902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19903 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019904 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19905echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019906 $rm conftest*
19907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19908
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910 (eval $ac_compile) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } 2>conftest.err; then
19914 soname=conftest
19915 lib=conftest
19916 libobjs=conftest.$ac_objext
19917 deplibs=
19918 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019919 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019920 compiler_flags=-v
19921 linker_flags=-v
19922 verstring=
19923 output_objdir=.
19924 libname=conftest
19925 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19926 allow_undefined_flag_CXX=
19927 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19928 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19929 ac_status=$?
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }
19932 then
19933 archive_cmds_need_lc_CXX=no
19934 else
19935 archive_cmds_need_lc_CXX=yes
19936 fi
19937 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19938 else
19939 cat conftest.err 1>&5
19940 fi
19941 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019942 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19943echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019944 ;;
19945 esac
19946 fi
19947 ;;
19948esac
19949
Reid Spencera773bd52006-08-04 18:18:08 +000019950{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19951echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019952library_names_spec=
19953libname_spec='lib$name'
19954soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019955shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019956postinstall_cmds=
19957postuninstall_cmds=
19958finish_cmds=
19959finish_eval=
19960shlibpath_var=
19961shlibpath_overrides_runpath=unknown
19962version_type=none
19963dynamic_linker="$host_os ld.so"
19964sys_lib_dlsearch_path_spec="/lib /usr/lib"
19965if test "$GCC" = yes; then
19966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19967 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19968 # if the path contains ";" then we assume it to be the separator
19969 # otherwise default to the standard path separator (i.e. ":") - it is
19970 # assumed that no part of a normal pathname contains ";" but that should
19971 # okay in the real world where ";" in dirpaths is itself problematic.
19972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19973 else
19974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19975 fi
19976else
19977 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19978fi
19979need_lib_prefix=unknown
19980hardcode_into_libs=no
19981
19982# when you set need_version to no, make sure it does not cause -set_version
19983# flags to be left without arguments
19984need_version=unknown
19985
19986case $host_os in
19987aix3*)
19988 version_type=linux
19989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19990 shlibpath_var=LIBPATH
19991
19992 # AIX 3 has no versioning support, so we append a major version to the name.
19993 soname_spec='${libname}${release}${shared_ext}$major'
19994 ;;
19995
19996aix4* | aix5*)
19997 version_type=linux
19998 need_lib_prefix=no
19999 need_version=no
20000 hardcode_into_libs=yes
20001 if test "$host_cpu" = ia64; then
20002 # AIX 5 supports IA64
20003 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20004 shlibpath_var=LD_LIBRARY_PATH
20005 else
20006 # With GCC up to 2.95.x, collect2 would create an import file
20007 # for dependence libraries. The import file would start with
20008 # the line `#! .'. This would cause the generated library to
20009 # depend on `.', always an invalid library. This was fixed in
20010 # development snapshots of GCC prior to 3.0.
20011 case $host_os in
20012 aix4 | aix4.[01] | aix4.[01].*)
20013 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20014 echo ' yes '
20015 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20016 :
20017 else
20018 can_build_shared=no
20019 fi
20020 ;;
20021 esac
20022 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20023 # soname into executable. Probably we can add versioning support to
20024 # collect2, so additional links can be useful in future.
20025 if test "$aix_use_runtimelinking" = yes; then
20026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20027 # instead of lib<name>.a to let people know that these are not
20028 # typical AIX shared libraries.
20029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20030 else
20031 # We preserve .a as extension for shared libraries through AIX4.2
20032 # and later when we are not doing run time linking.
20033 library_names_spec='${libname}${release}.a $libname.a'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20035 fi
20036 shlibpath_var=LIBPATH
20037 fi
20038 ;;
20039
20040amigaos*)
20041 library_names_spec='$libname.ixlibrary $libname.a'
20042 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020043 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 +000020044 ;;
20045
20046beos*)
20047 library_names_spec='${libname}${shared_ext}'
20048 dynamic_linker="$host_os ld.so"
20049 shlibpath_var=LIBRARY_PATH
20050 ;;
20051
Reid Spencer2706f8c2004-09-19 23:53:36 +000020052bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020053 version_type=linux
20054 need_version=no
20055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20056 soname_spec='${libname}${release}${shared_ext}$major'
20057 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20058 shlibpath_var=LD_LIBRARY_PATH
20059 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20060 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20061 # the default ld.so.conf also contains /usr/contrib/lib and
20062 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20063 # libtool to hard-code these into programs
20064 ;;
20065
20066cygwin* | mingw* | pw32*)
20067 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020068 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020069 need_version=no
20070 need_lib_prefix=no
20071
20072 case $GCC,$host_os in
20073 yes,cygwin* | yes,mingw* | yes,pw32*)
20074 library_names_spec='$libname.dll.a'
20075 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020076 postinstall_cmds='base_file=`basename \${file}`~
20077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20078 dldir=$destdir/`dirname \$dlpath`~
20079 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020080 $install_prog $dir/$dlname \$dldir/$dlname~
20081 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20083 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020084 $rm \$dlpath'
20085 shlibpath_overrides_runpath=yes
20086
20087 case $host_os in
20088 cygwin*)
20089 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20090 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 +000020091 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020092 ;;
20093 mingw*)
20094 # MinGW DLLs use traditional 'lib' prefix
20095 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20096 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20097 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20098 # It is most probably a Windows format PATH printed by
20099 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20100 # path with ; separators, and with drive letters. We can handle the
20101 # drive letters (cygwin fileutils understands them), so leave them,
20102 # especially as we might pass files found there to a mingw objdump,
20103 # which wouldn't understand a cygwinified path. Ahh.
20104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20105 else
20106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20107 fi
20108 ;;
20109 pw32*)
20110 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020111 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 +000020112 ;;
20113 esac
20114 ;;
20115
20116 *)
20117 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20118 ;;
20119 esac
20120 dynamic_linker='Win32 ld.exe'
20121 # FIXME: first we should search . and the directory the executable is in
20122 shlibpath_var=PATH
20123 ;;
20124
20125darwin* | rhapsody*)
20126 dynamic_linker="$host_os dyld"
20127 version_type=darwin
20128 need_lib_prefix=no
20129 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020130 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020131 soname_spec='${libname}${release}${major}$shared_ext'
20132 shlibpath_overrides_runpath=yes
20133 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020134 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020135 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020136 if test "$GCC" = yes; then
20137 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"`
20138 else
20139 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020140 fi
20141 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20142 ;;
20143
20144dgux*)
20145 version_type=linux
20146 need_lib_prefix=no
20147 need_version=no
20148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20149 soname_spec='${libname}${release}${shared_ext}$major'
20150 shlibpath_var=LD_LIBRARY_PATH
20151 ;;
20152
20153freebsd1*)
20154 dynamic_linker=no
20155 ;;
20156
Reid Spencer2706f8c2004-09-19 23:53:36 +000020157kfreebsd*-gnu)
20158 version_type=linux
20159 need_lib_prefix=no
20160 need_version=no
20161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20162 soname_spec='${libname}${release}${shared_ext}$major'
20163 shlibpath_var=LD_LIBRARY_PATH
20164 shlibpath_overrides_runpath=no
20165 hardcode_into_libs=yes
20166 dynamic_linker='GNU ld.so'
20167 ;;
20168
Reid Spencera773bd52006-08-04 18:18:08 +000020169freebsd* | dragonfly*)
20170 # DragonFly does not have aout. When/if they implement a new
20171 # versioning mechanism, adjust this.
20172 if test -x /usr/bin/objformat; then
20173 objformat=`/usr/bin/objformat`
20174 else
20175 case $host_os in
20176 freebsd[123]*) objformat=aout ;;
20177 *) objformat=elf ;;
20178 esac
20179 fi
John Criswell47fdd832003-07-14 16:52:07 +000020180 version_type=freebsd-$objformat
20181 case $version_type in
20182 freebsd-elf*)
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20184 need_version=no
20185 need_lib_prefix=no
20186 ;;
20187 freebsd-*)
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20189 need_version=yes
20190 ;;
20191 esac
20192 shlibpath_var=LD_LIBRARY_PATH
20193 case $host_os in
20194 freebsd2*)
20195 shlibpath_overrides_runpath=yes
20196 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020197 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020198 shlibpath_overrides_runpath=yes
20199 hardcode_into_libs=yes
20200 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020201 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20202 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020203 shlibpath_overrides_runpath=no
20204 hardcode_into_libs=yes
20205 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020206 freebsd*) # from 4.6 on
20207 shlibpath_overrides_runpath=yes
20208 hardcode_into_libs=yes
20209 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020210 esac
20211 ;;
20212
20213gnu*)
20214 version_type=linux
20215 need_lib_prefix=no
20216 need_version=no
20217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20218 soname_spec='${libname}${release}${shared_ext}$major'
20219 shlibpath_var=LD_LIBRARY_PATH
20220 hardcode_into_libs=yes
20221 ;;
20222
20223hpux9* | hpux10* | hpux11*)
20224 # Give a soname corresponding to the major version so that dld.sl refuses to
20225 # link against other versions.
20226 version_type=sunos
20227 need_lib_prefix=no
20228 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020229 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020230 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020231 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020232 hardcode_into_libs=yes
20233 dynamic_linker="$host_os dld.so"
20234 shlibpath_var=LD_LIBRARY_PATH
20235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20237 soname_spec='${libname}${release}${shared_ext}$major'
20238 if test "X$HPUX_IA64_MODE" = X32; then
20239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20240 else
20241 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20242 fi
20243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20244 ;;
20245 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020246 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020247 hardcode_into_libs=yes
20248 dynamic_linker="$host_os dld.sl"
20249 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20255 ;;
20256 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020257 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020258 dynamic_linker="$host_os dld.sl"
20259 shlibpath_var=SHLIB_PATH
20260 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 ;;
20264 esac
20265 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20266 postinstall_cmds='chmod 555 $lib'
20267 ;;
20268
Reid Spencera773bd52006-08-04 18:18:08 +000020269interix3*)
20270 version_type=linux
20271 need_lib_prefix=no
20272 need_version=no
20273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20274 soname_spec='${libname}${release}${shared_ext}$major'
20275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20276 shlibpath_var=LD_LIBRARY_PATH
20277 shlibpath_overrides_runpath=no
20278 hardcode_into_libs=yes
20279 ;;
20280
John Criswell47fdd832003-07-14 16:52:07 +000020281irix5* | irix6* | nonstopux*)
20282 case $host_os in
20283 nonstopux*) version_type=nonstopux ;;
20284 *)
20285 if test "$lt_cv_prog_gnu_ld" = yes; then
20286 version_type=linux
20287 else
20288 version_type=irix
20289 fi ;;
20290 esac
20291 need_lib_prefix=no
20292 need_version=no
20293 soname_spec='${libname}${release}${shared_ext}$major'
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20295 case $host_os in
20296 irix5* | nonstopux*)
20297 libsuff= shlibsuff=
20298 ;;
20299 *)
20300 case $LD in # libtool.m4 will add one of these switches to LD
20301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20302 libsuff= shlibsuff= libmagic=32-bit;;
20303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20304 libsuff=32 shlibsuff=N32 libmagic=N32;;
20305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20306 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20307 *) libsuff= shlibsuff= libmagic=never-match;;
20308 esac
20309 ;;
20310 esac
20311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20312 shlibpath_overrides_runpath=no
20313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20315 hardcode_into_libs=yes
20316 ;;
20317
20318# No shared lib support for Linux oldld, aout, or coff.
20319linux*oldld* | linux*aout* | linux*coff*)
20320 dynamic_linker=no
20321 ;;
20322
20323# This must be Linux ELF.
20324linux*)
20325 version_type=linux
20326 need_lib_prefix=no
20327 need_version=no
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329 soname_spec='${libname}${release}${shared_ext}$major'
20330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20331 shlibpath_var=LD_LIBRARY_PATH
20332 shlibpath_overrides_runpath=no
20333 # This implies no fast_install, which is unacceptable.
20334 # Some rework will be needed to allow for fast_install
20335 # before this can be enabled.
20336 hardcode_into_libs=yes
20337
Reid Spencer2706f8c2004-09-19 23:53:36 +000020338 # Append ld.so.conf contents to the search path
20339 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020340 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 +000020341 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20342 fi
20343
John Criswell47fdd832003-07-14 16:52:07 +000020344 # We used to test for /lib/ld.so.1 and disable shared libraries on
20345 # powerpc, because MkLinux only supported shared libraries with the
20346 # GNU dynamic linker. Since this was broken with cross compilers,
20347 # most powerpc-linux boxes support dynamic linking these days and
20348 # people can always --disable-shared, the test was removed, and we
20349 # assume the GNU/Linux dynamic linker is in use.
20350 dynamic_linker='GNU/Linux ld.so'
20351 ;;
20352
Reid Spencer2706f8c2004-09-19 23:53:36 +000020353knetbsd*-gnu)
20354 version_type=linux
20355 need_lib_prefix=no
20356 need_version=no
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 shlibpath_var=LD_LIBRARY_PATH
20360 shlibpath_overrides_runpath=no
20361 hardcode_into_libs=yes
20362 dynamic_linker='GNU ld.so'
20363 ;;
20364
John Criswell47fdd832003-07-14 16:52:07 +000020365netbsd*)
20366 version_type=sunos
20367 need_lib_prefix=no
20368 need_version=no
20369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20372 dynamic_linker='NetBSD (a.out) ld.so'
20373 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020375 soname_spec='${libname}${release}${shared_ext}$major'
20376 dynamic_linker='NetBSD ld.elf_so'
20377 fi
20378 shlibpath_var=LD_LIBRARY_PATH
20379 shlibpath_overrides_runpath=yes
20380 hardcode_into_libs=yes
20381 ;;
20382
20383newsos6)
20384 version_type=linux
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 shlibpath_overrides_runpath=yes
20388 ;;
20389
Reid Spencer2706f8c2004-09-19 23:53:36 +000020390nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020391 version_type=linux
20392 need_lib_prefix=no
20393 need_version=no
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20395 soname_spec='${libname}${release}${shared_ext}$major'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 shlibpath_overrides_runpath=yes
20398 ;;
20399
20400openbsd*)
20401 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020402 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020403 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20405 case $host_os in
20406 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20407 *) need_version=no ;;
20408 esac
John Criswell47fdd832003-07-14 16:52:07 +000020409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20413 case $host_os in
20414 openbsd2.[89] | openbsd2.[89].*)
20415 shlibpath_overrides_runpath=no
20416 ;;
20417 *)
20418 shlibpath_overrides_runpath=yes
20419 ;;
20420 esac
20421 else
20422 shlibpath_overrides_runpath=yes
20423 fi
20424 ;;
20425
20426os2*)
20427 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020428 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020429 need_lib_prefix=no
20430 library_names_spec='$libname${shared_ext} $libname.a'
20431 dynamic_linker='OS/2 ld.exe'
20432 shlibpath_var=LIBPATH
20433 ;;
20434
20435osf3* | osf4* | osf5*)
20436 version_type=osf
20437 need_lib_prefix=no
20438 need_version=no
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20441 shlibpath_var=LD_LIBRARY_PATH
20442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20444 ;;
20445
John Criswell47fdd832003-07-14 16:52:07 +000020446solaris*)
20447 version_type=linux
20448 need_lib_prefix=no
20449 need_version=no
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20451 soname_spec='${libname}${release}${shared_ext}$major'
20452 shlibpath_var=LD_LIBRARY_PATH
20453 shlibpath_overrides_runpath=yes
20454 hardcode_into_libs=yes
20455 # ldd complains unless libraries are executable
20456 postinstall_cmds='chmod +x $lib'
20457 ;;
20458
20459sunos4*)
20460 version_type=sunos
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20463 shlibpath_var=LD_LIBRARY_PATH
20464 shlibpath_overrides_runpath=yes
20465 if test "$with_gnu_ld" = yes; then
20466 need_lib_prefix=no
20467 fi
20468 need_version=yes
20469 ;;
20470
Reid Spencera773bd52006-08-04 18:18:08 +000020471sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020472 version_type=linux
20473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474 soname_spec='${libname}${release}${shared_ext}$major'
20475 shlibpath_var=LD_LIBRARY_PATH
20476 case $host_vendor in
20477 sni)
20478 shlibpath_overrides_runpath=no
20479 need_lib_prefix=no
20480 export_dynamic_flag_spec='${wl}-Blargedynsym'
20481 runpath_var=LD_RUN_PATH
20482 ;;
20483 siemens)
20484 need_lib_prefix=no
20485 ;;
20486 motorola)
20487 need_lib_prefix=no
20488 need_version=no
20489 shlibpath_overrides_runpath=no
20490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20491 ;;
20492 esac
20493 ;;
20494
20495sysv4*MP*)
20496 if test -d /usr/nec ;then
20497 version_type=linux
20498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20499 soname_spec='$libname${shared_ext}.$major'
20500 shlibpath_var=LD_LIBRARY_PATH
20501 fi
20502 ;;
20503
Reid Spencera773bd52006-08-04 18:18:08 +000020504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20505 version_type=freebsd-elf
20506 need_lib_prefix=no
20507 need_version=no
20508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20509 soname_spec='${libname}${release}${shared_ext}$major'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 hardcode_into_libs=yes
20512 if test "$with_gnu_ld" = yes; then
20513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20514 shlibpath_overrides_runpath=no
20515 else
20516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20517 shlibpath_overrides_runpath=yes
20518 case $host_os in
20519 sco3.2v5*)
20520 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20521 ;;
20522 esac
20523 fi
20524 sys_lib_dlsearch_path_spec='/usr/lib'
20525 ;;
20526
John Criswell47fdd832003-07-14 16:52:07 +000020527uts4*)
20528 version_type=linux
20529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20530 soname_spec='${libname}${release}${shared_ext}$major'
20531 shlibpath_var=LD_LIBRARY_PATH
20532 ;;
20533
20534*)
20535 dynamic_linker=no
20536 ;;
20537esac
Reid Spencera773bd52006-08-04 18:18:08 +000020538{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20539echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020540test "$dynamic_linker" = no && can_build_shared=no
20541
Reid Spencera773bd52006-08-04 18:18:08 +000020542variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20543if test "$GCC" = yes; then
20544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20545fi
20546
20547{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20548echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020549hardcode_action_CXX=
20550if test -n "$hardcode_libdir_flag_spec_CXX" || \
20551 test -n "$runpath_var_CXX" || \
20552 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20553
20554 # We can hardcode non-existant directories.
20555 if test "$hardcode_direct_CXX" != no &&
20556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20557 # have to relink, otherwise we might link with an installed library
20558 # when we should be linking with a yet-to-be-installed one
20559 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20560 test "$hardcode_minus_L_CXX" != no; then
20561 # Linking always hardcodes the temporary library directory.
20562 hardcode_action_CXX=relink
20563 else
20564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20565 hardcode_action_CXX=immediate
20566 fi
20567else
20568 # We cannot hardcode anything, or else we can only hardcode existing
20569 # directories.
20570 hardcode_action_CXX=unsupported
20571fi
Reid Spencera773bd52006-08-04 18:18:08 +000020572{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20573echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020574
20575if test "$hardcode_action_CXX" = relink; then
20576 # Fast installation is not supported
20577 enable_fast_install=no
20578elif test "$shlibpath_overrides_runpath" = yes ||
20579 test "$enable_shared" = no; then
20580 # Fast installation is not necessary
20581 enable_fast_install=needless
20582fi
20583
John Criswell47fdd832003-07-14 16:52:07 +000020584
20585# The else clause should only fire when bootstrapping the
20586# libtool distribution, otherwise you forgot to ship ltmain.sh
20587# with your package, and you will get complaints that there are
20588# no rules to generate ltmain.sh.
20589if test -f "$ltmain"; then
20590 # See if we are running on zsh, and set the options which allow our commands through
20591 # without removal of \ escapes.
20592 if test -n "${ZSH_VERSION+set}" ; then
20593 setopt NO_GLOB_SUBST
20594 fi
20595 # Now quote all the things that may contain metacharacters while being
20596 # careful not to overquote the AC_SUBSTed values. We take copies of the
20597 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020598 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 +000020599 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020600 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20601 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20602 deplibs_check_method reload_flag reload_cmds need_locks \
20603 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20604 lt_cv_sys_global_symbol_to_c_name_address \
20605 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20606 old_postinstall_cmds old_postuninstall_cmds \
20607 compiler_CXX \
20608 CC_CXX \
20609 LD_CXX \
20610 lt_prog_compiler_wl_CXX \
20611 lt_prog_compiler_pic_CXX \
20612 lt_prog_compiler_static_CXX \
20613 lt_prog_compiler_no_builtin_flag_CXX \
20614 export_dynamic_flag_spec_CXX \
20615 thread_safe_flag_spec_CXX \
20616 whole_archive_flag_spec_CXX \
20617 enable_shared_with_static_runtimes_CXX \
20618 old_archive_cmds_CXX \
20619 old_archive_from_new_cmds_CXX \
20620 predep_objects_CXX \
20621 postdep_objects_CXX \
20622 predeps_CXX \
20623 postdeps_CXX \
20624 compiler_lib_search_path_CXX \
20625 archive_cmds_CXX \
20626 archive_expsym_cmds_CXX \
20627 postinstall_cmds_CXX \
20628 postuninstall_cmds_CXX \
20629 old_archive_from_expsyms_cmds_CXX \
20630 allow_undefined_flag_CXX \
20631 no_undefined_flag_CXX \
20632 export_symbols_cmds_CXX \
20633 hardcode_libdir_flag_spec_CXX \
20634 hardcode_libdir_flag_spec_ld_CXX \
20635 hardcode_libdir_separator_CXX \
20636 hardcode_automatic_CXX \
20637 module_cmds_CXX \
20638 module_expsym_cmds_CXX \
20639 lt_cv_prog_compiler_c_o_CXX \
20640 exclude_expsyms_CXX \
20641 include_expsyms_CXX; do
20642
20643 case $var in
20644 old_archive_cmds_CXX | \
20645 old_archive_from_new_cmds_CXX | \
20646 archive_cmds_CXX | \
20647 archive_expsym_cmds_CXX | \
20648 module_cmds_CXX | \
20649 module_expsym_cmds_CXX | \
20650 old_archive_from_expsyms_cmds_CXX | \
20651 export_symbols_cmds_CXX | \
20652 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20653 postinstall_cmds | postuninstall_cmds | \
20654 old_postinstall_cmds | old_postuninstall_cmds | \
20655 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20656 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020657 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 +000020658 ;;
20659 *)
20660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20661 ;;
20662 esac
20663 done
20664
20665 case $lt_echo in
20666 *'\$0 --fallback-echo"')
20667 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20668 ;;
20669 esac
20670
20671cfgfile="$ofile"
20672
20673 cat <<__EOF__ >> "$cfgfile"
20674# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20675
20676# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20677
20678# Shell to use when invoking shell scripts.
20679SHELL=$lt_SHELL
20680
20681# Whether or not to build shared libraries.
20682build_libtool_libs=$enable_shared
20683
20684# Whether or not to build static libraries.
20685build_old_libs=$enable_static
20686
20687# Whether or not to add -lc for building shared libraries.
20688build_libtool_need_lc=$archive_cmds_need_lc_CXX
20689
20690# Whether or not to disallow shared libs when runtime libs are static
20691allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20692
20693# Whether or not to optimize for fast installation.
20694fast_install=$enable_fast_install
20695
20696# The host system.
20697host_alias=$host_alias
20698host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020699host_os=$host_os
20700
20701# The build system.
20702build_alias=$build_alias
20703build=$build
20704build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020705
20706# An echo program that does not interpret backslashes.
20707echo=$lt_echo
20708
20709# The archiver.
20710AR=$lt_AR
20711AR_FLAGS=$lt_AR_FLAGS
20712
20713# A C compiler.
20714LTCC=$lt_LTCC
20715
Reid Spencera773bd52006-08-04 18:18:08 +000020716# LTCC compiler flags.
20717LTCFLAGS=$lt_LTCFLAGS
20718
John Criswell47fdd832003-07-14 16:52:07 +000020719# A language-specific compiler.
20720CC=$lt_compiler_CXX
20721
20722# Is the compiler the GNU C compiler?
20723with_gcc=$GCC_CXX
20724
20725# An ERE matcher.
20726EGREP=$lt_EGREP
20727
20728# The linker used to build libraries.
20729LD=$lt_LD_CXX
20730
20731# Whether we need hard or soft links.
20732LN_S=$lt_LN_S
20733
20734# A BSD-compatible nm program.
20735NM=$lt_NM
20736
20737# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020738STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020739
20740# Used to examine libraries when file_magic_cmd begins "file"
20741MAGIC_CMD=$MAGIC_CMD
20742
20743# Used on cygwin: DLL creation program.
20744DLLTOOL="$DLLTOOL"
20745
20746# Used on cygwin: object dumper.
20747OBJDUMP="$OBJDUMP"
20748
20749# Used on cygwin: assembler.
20750AS="$AS"
20751
20752# The name of the directory that contains temporary libtool files.
20753objdir=$objdir
20754
20755# How to create reloadable object files.
20756reload_flag=$lt_reload_flag
20757reload_cmds=$lt_reload_cmds
20758
20759# How to pass a linker flag through the compiler.
20760wl=$lt_lt_prog_compiler_wl_CXX
20761
20762# Object file suffix (normally "o").
20763objext="$ac_objext"
20764
20765# Old archive suffix (normally "a").
20766libext="$libext"
20767
20768# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020769shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020770
20771# Executable file suffix (normally "").
20772exeext="$exeext"
20773
20774# Additional compiler flags for building library objects.
20775pic_flag=$lt_lt_prog_compiler_pic_CXX
20776pic_mode=$pic_mode
20777
20778# What is the maximum length of a command?
20779max_cmd_len=$lt_cv_sys_max_cmd_len
20780
20781# Does compiler simultaneously support -c and -o options?
20782compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20783
Reid Spencera773bd52006-08-04 18:18:08 +000020784# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020785need_locks=$lt_need_locks
20786
20787# Do we need the lib prefix for modules?
20788need_lib_prefix=$need_lib_prefix
20789
20790# Do we need a version for libraries?
20791need_version=$need_version
20792
20793# Whether dlopen is supported.
20794dlopen_support=$enable_dlopen
20795
20796# Whether dlopen of programs is supported.
20797dlopen_self=$enable_dlopen_self
20798
20799# Whether dlopen of statically linked programs is supported.
20800dlopen_self_static=$enable_dlopen_self_static
20801
20802# Compiler flag to prevent dynamic linking.
20803link_static_flag=$lt_lt_prog_compiler_static_CXX
20804
20805# Compiler flag to turn off builtin functions.
20806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20807
20808# Compiler flag to allow reflexive dlopens.
20809export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20810
20811# Compiler flag to generate shared objects directly from archives.
20812whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20813
20814# Compiler flag to generate thread-safe objects.
20815thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20816
20817# Library versioning type.
20818version_type=$version_type
20819
20820# Format of library name prefix.
20821libname_spec=$lt_libname_spec
20822
20823# List of archive names. First name is the real one, the rest are links.
20824# The last name is the one that the linker finds with -lNAME.
20825library_names_spec=$lt_library_names_spec
20826
20827# The coded name of the library, if different from the real name.
20828soname_spec=$lt_soname_spec
20829
20830# Commands used to build and install an old-style archive.
20831RANLIB=$lt_RANLIB
20832old_archive_cmds=$lt_old_archive_cmds_CXX
20833old_postinstall_cmds=$lt_old_postinstall_cmds
20834old_postuninstall_cmds=$lt_old_postuninstall_cmds
20835
20836# Create an old-style archive from a shared archive.
20837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20838
20839# Create a temporary old-style archive to link instead of a shared archive.
20840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20841
20842# Commands used to build and install a shared archive.
20843archive_cmds=$lt_archive_cmds_CXX
20844archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20845postinstall_cmds=$lt_postinstall_cmds
20846postuninstall_cmds=$lt_postuninstall_cmds
20847
20848# Commands used to build a loadable module (assumed same as above if empty)
20849module_cmds=$lt_module_cmds_CXX
20850module_expsym_cmds=$lt_module_expsym_cmds_CXX
20851
20852# Commands to strip libraries.
20853old_striplib=$lt_old_striplib
20854striplib=$lt_striplib
20855
20856# Dependencies to place before the objects being linked to create a
20857# shared library.
20858predep_objects=$lt_predep_objects_CXX
20859
20860# Dependencies to place after the objects being linked to create a
20861# shared library.
20862postdep_objects=$lt_postdep_objects_CXX
20863
20864# Dependencies to place before the objects being linked to create a
20865# shared library.
20866predeps=$lt_predeps_CXX
20867
20868# Dependencies to place after the objects being linked to create a
20869# shared library.
20870postdeps=$lt_postdeps_CXX
20871
20872# The library search path used internally by the compiler when linking
20873# a shared library.
20874compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20875
20876# Method to check whether dependent libraries are shared objects.
20877deplibs_check_method=$lt_deplibs_check_method
20878
20879# Command to use when deplibs_check_method == file_magic.
20880file_magic_cmd=$lt_file_magic_cmd
20881
20882# Flag that allows shared libraries with undefined symbols to be built.
20883allow_undefined_flag=$lt_allow_undefined_flag_CXX
20884
20885# Flag that forces no undefined symbols.
20886no_undefined_flag=$lt_no_undefined_flag_CXX
20887
20888# Commands used to finish a libtool library installation in a directory.
20889finish_cmds=$lt_finish_cmds
20890
20891# Same as above, but a single script fragment to be evaled but not shown.
20892finish_eval=$lt_finish_eval
20893
20894# Take the output of nm and produce a listing of raw symbols and C names.
20895global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20896
20897# Transform the output of nm in a proper C declaration
20898global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20899
20900# Transform the output of nm in a C name address pair
20901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20902
20903# This is the shared library runtime path variable.
20904runpath_var=$runpath_var
20905
20906# This is the shared library path variable.
20907shlibpath_var=$shlibpath_var
20908
20909# Is shlibpath searched before the hard-coded library search path?
20910shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20911
20912# How to hardcode a shared library path into an executable.
20913hardcode_action=$hardcode_action_CXX
20914
20915# Whether we should hardcode library paths into libraries.
20916hardcode_into_libs=$hardcode_into_libs
20917
20918# Flag to hardcode \$libdir into a binary during linking.
20919# This must work even if \$libdir does not exist.
20920hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20921
20922# If ld is used when linking, flag to hardcode \$libdir into
20923# a binary during linking. This must work even if \$libdir does
20924# not exist.
20925hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20926
20927# Whether we need a single -rpath flag with a separated argument.
20928hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20929
20930# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20931# resulting binary.
20932hardcode_direct=$hardcode_direct_CXX
20933
20934# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20935# resulting binary.
20936hardcode_minus_L=$hardcode_minus_L_CXX
20937
20938# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20939# the resulting binary.
20940hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20941
20942# Set to yes if building a shared library automatically hardcodes DIR into the library
20943# and all subsequent libraries and executables linked against it.
20944hardcode_automatic=$hardcode_automatic_CXX
20945
20946# Variables whose values should be saved in libtool wrapper scripts and
20947# restored at relink time.
20948variables_saved_for_relink="$variables_saved_for_relink"
20949
20950# Whether libtool must link a program against all its dependency libraries.
20951link_all_deplibs=$link_all_deplibs_CXX
20952
20953# Compile-time system search path for libraries
20954sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20955
20956# Run-time system search path for libraries
20957sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20958
20959# Fix the shell variable \$srcfile for the compiler.
20960fix_srcfile_path="$fix_srcfile_path_CXX"
20961
20962# Set to yes if exported symbols are required.
20963always_export_symbols=$always_export_symbols_CXX
20964
20965# The commands to list exported symbols.
20966export_symbols_cmds=$lt_export_symbols_cmds_CXX
20967
20968# The commands to extract the exported symbol list from a shared archive.
20969extract_expsyms_cmds=$lt_extract_expsyms_cmds
20970
20971# Symbols that should not be listed in the preloaded symbols.
20972exclude_expsyms=$lt_exclude_expsyms_CXX
20973
20974# Symbols that must always be exported.
20975include_expsyms=$lt_include_expsyms_CXX
20976
20977# ### END LIBTOOL TAG CONFIG: $tagname
20978
20979__EOF__
20980
20981
20982else
20983 # If there is no Makefile yet, we rely on a make rule to execute
20984 # `config.status --recheck' to rerun these tests and create the
20985 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020986 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20987 if test -f "$ltmain_in"; then
20988 test -f Makefile && make "$ltmain"
20989 fi
John Criswell47fdd832003-07-14 16:52:07 +000020990fi
20991
20992
20993ac_ext=c
20994ac_cpp='$CPP $CPPFLAGS'
20995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20997ac_compiler_gnu=$ac_cv_c_compiler_gnu
20998
20999CC=$lt_save_CC
21000LDCXX=$LD
21001LD=$lt_save_LD
21002GCC=$lt_save_GCC
21003with_gnu_ldcxx=$with_gnu_ld
21004with_gnu_ld=$lt_save_with_gnu_ld
21005lt_cv_path_LDCXX=$lt_cv_path_LD
21006lt_cv_path_LD=$lt_save_path_LD
21007lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21008lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21009
21010 else
21011 tagname=""
21012 fi
21013 ;;
21014
21015 F77)
21016 if test -n "$F77" && test "X$F77" != "Xno"; then
21017
21018ac_ext=f
21019ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21020ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21021ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21022
21023
21024archive_cmds_need_lc_F77=no
21025allow_undefined_flag_F77=
21026always_export_symbols_F77=no
21027archive_expsym_cmds_F77=
21028export_dynamic_flag_spec_F77=
21029hardcode_direct_F77=no
21030hardcode_libdir_flag_spec_F77=
21031hardcode_libdir_flag_spec_ld_F77=
21032hardcode_libdir_separator_F77=
21033hardcode_minus_L_F77=no
21034hardcode_automatic_F77=no
21035module_cmds_F77=
21036module_expsym_cmds_F77=
21037link_all_deplibs_F77=unknown
21038old_archive_cmds_F77=$old_archive_cmds
21039no_undefined_flag_F77=
21040whole_archive_flag_spec_F77=
21041enable_shared_with_static_runtimes_F77=no
21042
21043# Source file extension for f77 test sources.
21044ac_ext=f
21045
21046# Object file extension for compiled f77 test sources.
21047objext=o
21048objext_F77=$objext
21049
21050# Code to be used in simple compile tests
21051lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21052
21053# Code to be used in simple link tests
21054lt_simple_link_test_code=" program t\n end\n"
21055
21056# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21057
21058# If no C compiler was specified, use CC.
21059LTCC=${LTCC-"$CC"}
21060
Reid Spencera773bd52006-08-04 18:18:08 +000021061# If no C compiler flags were specified, use CFLAGS.
21062LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21063
John Criswell47fdd832003-07-14 16:52:07 +000021064# Allow CC to be a program name with arguments.
21065compiler=$CC
21066
21067
Reid Spencera773bd52006-08-04 18:18:08 +000021068# save warnings/boilerplate of simple test code
21069ac_outfile=conftest.$ac_objext
21070printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21071eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21072_lt_compiler_boilerplate=`cat conftest.err`
21073$rm conftest*
21074
21075ac_outfile=conftest.$ac_objext
21076printf "$lt_simple_link_test_code" >conftest.$ac_ext
21077eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21078_lt_linker_boilerplate=`cat conftest.err`
21079$rm conftest*
21080
21081
John Criswell47fdd832003-07-14 16:52:07 +000021082# Allow CC to be a program name with arguments.
21083lt_save_CC="$CC"
21084CC=${F77-"f77"}
21085compiler=$CC
21086compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021087for cc_temp in $compiler""; do
21088 case $cc_temp in
21089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21091 \-*) ;;
21092 *) break;;
21093 esac
21094done
21095cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021096
John Criswell47fdd832003-07-14 16:52:07 +000021097
Reid Spencera773bd52006-08-04 18:18:08 +000021098{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21099echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21100{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21101echo "${ECHO_T}$can_build_shared" >&6; }
21102
21103{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21104echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021105test "$can_build_shared" = "no" && enable_shared=no
21106
21107# On AIX, shared libraries and static libraries use the same namespace, and
21108# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021109case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021110aix3*)
21111 test "$enable_shared" = yes && enable_static=no
21112 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021113 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021114 postinstall_cmds='$RANLIB $lib'
21115 fi
21116 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021117aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021118 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21119 test "$enable_shared" = yes && enable_static=no
21120 fi
John Criswell47fdd832003-07-14 16:52:07 +000021121 ;;
21122esac
Reid Spencera773bd52006-08-04 18:18:08 +000021123{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21124echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021125
Reid Spencera773bd52006-08-04 18:18:08 +000021126{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21127echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021128# Make sure either enable_shared or enable_static is yes.
21129test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021130{ echo "$as_me:$LINENO: result: $enable_static" >&5
21131echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021132
21133GCC_F77="$G77"
21134LD_F77="$LD"
21135
21136lt_prog_compiler_wl_F77=
21137lt_prog_compiler_pic_F77=
21138lt_prog_compiler_static_F77=
21139
Reid Spencera773bd52006-08-04 18:18:08 +000021140{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21141echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021142
21143 if test "$GCC" = yes; then
21144 lt_prog_compiler_wl_F77='-Wl,'
21145 lt_prog_compiler_static_F77='-static'
21146
21147 case $host_os in
21148 aix*)
21149 # All AIX code is PIC.
21150 if test "$host_cpu" = ia64; then
21151 # AIX 5 now supports IA64 processor
21152 lt_prog_compiler_static_F77='-Bstatic'
21153 fi
21154 ;;
21155
21156 amigaos*)
21157 # FIXME: we need at least 68020 code to build shared libraries, but
21158 # adding the `-m68020' flag to GCC prevents building anything better,
21159 # like `-m68040'.
21160 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21161 ;;
21162
21163 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21164 # PIC is the default for these OSes.
21165 ;;
21166
21167 mingw* | pw32* | os2*)
21168 # This hack is so that the source file can tell whether it is being
21169 # built for inclusion in a dll (and should export symbols for example).
21170 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21171 ;;
21172
21173 darwin* | rhapsody*)
21174 # PIC is the default on this platform
21175 # Common symbols not allowed in MH_DYLIB files
21176 lt_prog_compiler_pic_F77='-fno-common'
21177 ;;
21178
Reid Spencera773bd52006-08-04 18:18:08 +000021179 interix3*)
21180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21181 # Instead, we relocate shared libraries at runtime.
21182 ;;
21183
John Criswell47fdd832003-07-14 16:52:07 +000021184 msdosdjgpp*)
21185 # Just because we use GCC doesn't mean we suddenly get shared libraries
21186 # on systems that don't support them.
21187 lt_prog_compiler_can_build_shared_F77=no
21188 enable_shared=no
21189 ;;
21190
21191 sysv4*MP*)
21192 if test -d /usr/nec; then
21193 lt_prog_compiler_pic_F77=-Kconform_pic
21194 fi
21195 ;;
21196
21197 hpux*)
21198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21199 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021200 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021201 hppa*64*|ia64*)
21202 # +Z the default
21203 ;;
21204 *)
21205 lt_prog_compiler_pic_F77='-fPIC'
21206 ;;
21207 esac
21208 ;;
21209
21210 *)
21211 lt_prog_compiler_pic_F77='-fPIC'
21212 ;;
21213 esac
21214 else
21215 # PORTME Check for flag to pass linker flags through the system compiler.
21216 case $host_os in
21217 aix*)
21218 lt_prog_compiler_wl_F77='-Wl,'
21219 if test "$host_cpu" = ia64; then
21220 # AIX 5 now supports IA64 processor
21221 lt_prog_compiler_static_F77='-Bstatic'
21222 else
21223 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21224 fi
21225 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021226 darwin*)
21227 # PIC is the default on this platform
21228 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021229 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021230 xlc*)
21231 lt_prog_compiler_pic_F77='-qnocommon'
21232 lt_prog_compiler_wl_F77='-Wl,'
21233 ;;
21234 esac
21235 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021236
21237 mingw* | pw32* | os2*)
21238 # This hack is so that the source file can tell whether it is being
21239 # built for inclusion in a dll (and should export symbols for example).
21240 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21241 ;;
21242
21243 hpux9* | hpux10* | hpux11*)
21244 lt_prog_compiler_wl_F77='-Wl,'
21245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21246 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021247 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021248 hppa*64*|ia64*)
21249 # +Z the default
21250 ;;
21251 *)
21252 lt_prog_compiler_pic_F77='+Z'
21253 ;;
21254 esac
21255 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21256 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21257 ;;
21258
21259 irix5* | irix6* | nonstopux*)
21260 lt_prog_compiler_wl_F77='-Wl,'
21261 # PIC (with -KPIC) is the default.
21262 lt_prog_compiler_static_F77='-non_shared'
21263 ;;
21264
21265 newsos6)
21266 lt_prog_compiler_pic_F77='-KPIC'
21267 lt_prog_compiler_static_F77='-Bstatic'
21268 ;;
21269
21270 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021271 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021272 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021273 lt_prog_compiler_wl_F77='-Wl,'
21274 lt_prog_compiler_pic_F77='-KPIC'
21275 lt_prog_compiler_static_F77='-static'
21276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021277 pgcc* | pgf77* | pgf90* | pgf95*)
21278 # Portland Group compilers (*not* the Pentium gcc compiler,
21279 # which looks to be a dead project)
21280 lt_prog_compiler_wl_F77='-Wl,'
21281 lt_prog_compiler_pic_F77='-fpic'
21282 lt_prog_compiler_static_F77='-Bstatic'
21283 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021284 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021285 lt_prog_compiler_wl_F77='-Wl,'
21286 # All Alpha code is PIC.
21287 lt_prog_compiler_static_F77='-non_shared'
21288 ;;
21289 esac
21290 ;;
21291
21292 osf3* | osf4* | osf5*)
21293 lt_prog_compiler_wl_F77='-Wl,'
21294 # All OSF/1 code is PIC.
21295 lt_prog_compiler_static_F77='-non_shared'
21296 ;;
21297
John Criswell47fdd832003-07-14 16:52:07 +000021298 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021299 lt_prog_compiler_pic_F77='-KPIC'
21300 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021301 case $cc_basename in
21302 f77* | f90* | f95*)
21303 lt_prog_compiler_wl_F77='-Qoption ld ';;
21304 *)
21305 lt_prog_compiler_wl_F77='-Wl,';;
21306 esac
John Criswell47fdd832003-07-14 16:52:07 +000021307 ;;
21308
21309 sunos4*)
21310 lt_prog_compiler_wl_F77='-Qoption ld '
21311 lt_prog_compiler_pic_F77='-PIC'
21312 lt_prog_compiler_static_F77='-Bstatic'
21313 ;;
21314
Reid Spencera773bd52006-08-04 18:18:08 +000021315 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021316 lt_prog_compiler_wl_F77='-Wl,'
21317 lt_prog_compiler_pic_F77='-KPIC'
21318 lt_prog_compiler_static_F77='-Bstatic'
21319 ;;
21320
21321 sysv4*MP*)
21322 if test -d /usr/nec ;then
21323 lt_prog_compiler_pic_F77='-Kconform_pic'
21324 lt_prog_compiler_static_F77='-Bstatic'
21325 fi
21326 ;;
21327
Reid Spencera773bd52006-08-04 18:18:08 +000021328 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21329 lt_prog_compiler_wl_F77='-Wl,'
21330 lt_prog_compiler_pic_F77='-KPIC'
21331 lt_prog_compiler_static_F77='-Bstatic'
21332 ;;
21333
21334 unicos*)
21335 lt_prog_compiler_wl_F77='-Wl,'
21336 lt_prog_compiler_can_build_shared_F77=no
21337 ;;
21338
John Criswell47fdd832003-07-14 16:52:07 +000021339 uts4*)
21340 lt_prog_compiler_pic_F77='-pic'
21341 lt_prog_compiler_static_F77='-Bstatic'
21342 ;;
21343
21344 *)
21345 lt_prog_compiler_can_build_shared_F77=no
21346 ;;
21347 esac
21348 fi
21349
Reid Spencera773bd52006-08-04 18:18:08 +000021350{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21351echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021352
21353#
21354# Check to make sure the PIC flag actually works.
21355#
21356if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021357
Reid Spencera773bd52006-08-04 18:18:08 +000021358{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21359echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021360if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21362else
21363 lt_prog_compiler_pic_works_F77=no
21364 ac_outfile=conftest.$ac_objext
21365 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21366 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21367 # Insert the option either (1) after the last *FLAGS variable, or
21368 # (2) before a word containing "conftest.", or (3) at the end.
21369 # Note that $ac_compile itself does not contain backslashes and begins
21370 # with a dollar sign (not a hyphen), so the echo should work correctly.
21371 # The option is referenced via a variable to avoid confusing sed.
21372 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21375 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenf0915682007-10-02 16:42:22 +000021376 (eval echo "\"\$as_me:21376: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021377 (eval "$lt_compile" 2>conftest.err)
21378 ac_status=$?
21379 cat conftest.err >&5
Gordon Henriksenf0915682007-10-02 16:42:22 +000021380 echo "$as_me:21380: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021381 if (exit $ac_status) && test -s "$ac_outfile"; then
21382 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021383 # So say no if there are warnings other than the usual output.
21384 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021387 lt_prog_compiler_pic_works_F77=yes
21388 fi
21389 fi
21390 $rm conftest*
21391
21392fi
Reid Spencera773bd52006-08-04 18:18:08 +000021393{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21394echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021395
21396if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21397 case $lt_prog_compiler_pic_F77 in
21398 "" | " "*) ;;
21399 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21400 esac
21401else
21402 lt_prog_compiler_pic_F77=
21403 lt_prog_compiler_can_build_shared_F77=no
21404fi
21405
21406fi
Reid Spencera773bd52006-08-04 18:18:08 +000021407case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021408 # For platforms which do not support PIC, -DPIC is meaningless:
21409 *djgpp*)
21410 lt_prog_compiler_pic_F77=
21411 ;;
21412 *)
21413 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21414 ;;
21415esac
21416
Reid Spencera773bd52006-08-04 18:18:08 +000021417#
21418# Check to make sure the static flag actually works.
21419#
21420wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21421{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21422echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21423if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425else
21426 lt_prog_compiler_static_works_F77=no
21427 save_LDFLAGS="$LDFLAGS"
21428 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21429 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21431 # The linker can only warn and ignore the option if not recognized
21432 # So say no if there are warnings
21433 if test -s conftest.err; then
21434 # Append any errors to the config.log.
21435 cat conftest.err 1>&5
21436 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21438 if diff conftest.exp conftest.er2 >/dev/null; then
21439 lt_prog_compiler_static_works_F77=yes
21440 fi
21441 else
21442 lt_prog_compiler_static_works_F77=yes
21443 fi
21444 fi
21445 $rm conftest*
21446 LDFLAGS="$save_LDFLAGS"
21447
21448fi
21449{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21450echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21451
21452if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21453 :
21454else
21455 lt_prog_compiler_static_F77=
21456fi
21457
21458
21459{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21460echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021461if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21463else
21464 lt_cv_prog_compiler_c_o_F77=no
21465 $rm -r conftest 2>/dev/null
21466 mkdir conftest
21467 cd conftest
21468 mkdir out
21469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21470
John Criswell47fdd832003-07-14 16:52:07 +000021471 lt_compiler_flag="-o out/conftest2.$ac_objext"
21472 # Insert the option either (1) after the last *FLAGS variable, or
21473 # (2) before a word containing "conftest.", or (3) at the end.
21474 # Note that $ac_compile itself does not contain backslashes and begins
21475 # with a dollar sign (not a hyphen), so the echo should work correctly.
21476 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21479 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenf0915682007-10-02 16:42:22 +000021480 (eval echo "\"\$as_me:21480: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021481 (eval "$lt_compile" 2>out/conftest.err)
21482 ac_status=$?
21483 cat out/conftest.err >&5
Gordon Henriksenf0915682007-10-02 16:42:22 +000021484 echo "$as_me:21484: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21486 then
21487 # The compiler can only warn and ignore the option if not recognized
21488 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021489 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021492 lt_cv_prog_compiler_c_o_F77=yes
21493 fi
21494 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021495 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021496 $rm conftest*
21497 # SGI C++ compiler will create directory out/ii_files/ for
21498 # template instantiation
21499 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21500 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021501 cd ..
21502 rmdir conftest
21503 $rm conftest*
21504
21505fi
Reid Spencera773bd52006-08-04 18:18:08 +000021506{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21507echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021508
21509
21510hard_links="nottested"
21511if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21512 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021513 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21514echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021515 hard_links=yes
21516 $rm conftest*
21517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21518 touch conftest.a
21519 ln conftest.a conftest.b 2>&5 || hard_links=no
21520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021521 { echo "$as_me:$LINENO: result: $hard_links" >&5
21522echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021523 if test "$hard_links" = no; then
21524 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21525echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21526 need_locks=warn
21527 fi
21528else
21529 need_locks=no
21530fi
21531
Reid Spencera773bd52006-08-04 18:18:08 +000021532{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21533echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021534
21535 runpath_var=
21536 allow_undefined_flag_F77=
21537 enable_shared_with_static_runtimes_F77=no
21538 archive_cmds_F77=
21539 archive_expsym_cmds_F77=
21540 old_archive_From_new_cmds_F77=
21541 old_archive_from_expsyms_cmds_F77=
21542 export_dynamic_flag_spec_F77=
21543 whole_archive_flag_spec_F77=
21544 thread_safe_flag_spec_F77=
21545 hardcode_libdir_flag_spec_F77=
21546 hardcode_libdir_flag_spec_ld_F77=
21547 hardcode_libdir_separator_F77=
21548 hardcode_direct_F77=no
21549 hardcode_minus_L_F77=no
21550 hardcode_shlibpath_var_F77=unsupported
21551 link_all_deplibs_F77=unknown
21552 hardcode_automatic_F77=no
21553 module_cmds_F77=
21554 module_expsym_cmds_F77=
21555 always_export_symbols_F77=no
21556 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21557 # include_expsyms should be a list of space-separated symbols to be *always*
21558 # included in the symbol list
21559 include_expsyms_F77=
21560 # exclude_expsyms can be an extended regexp of symbols to exclude
21561 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21562 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21563 # as well as any symbol that contains `d'.
21564 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21565 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21566 # platforms (ab)use it in PIC code, but their linkers get confused if
21567 # the symbol is explicitly referenced. Since portable code cannot
21568 # rely on this symbol name, it's probably fine to never include it in
21569 # preloaded symbol tables.
21570 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021571 # Just being paranoid about ensuring that cc_basename is set.
21572 for cc_temp in $compiler""; do
21573 case $cc_temp in
21574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21576 \-*) ;;
21577 *) break;;
21578 esac
21579done
21580cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021581
21582 case $host_os in
21583 cygwin* | mingw* | pw32*)
21584 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21585 # When not using gcc, we currently assume that we are using
21586 # Microsoft Visual C++.
21587 if test "$GCC" != yes; then
21588 with_gnu_ld=no
21589 fi
21590 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021591 interix*)
21592 # we just hope/assume this is gcc and not c89 (= MSVC++)
21593 with_gnu_ld=yes
21594 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021595 openbsd*)
21596 with_gnu_ld=no
21597 ;;
21598 esac
21599
21600 ld_shlibs_F77=yes
21601 if test "$with_gnu_ld" = yes; then
21602 # If archive_cmds runs LD, not CC, wlarc should be empty
21603 wlarc='${wl}'
21604
Reid Spencera773bd52006-08-04 18:18:08 +000021605 # Set some defaults for GNU ld with shared library support. These
21606 # are reset later if shared libraries are not supported. Putting them
21607 # here allows them to be overridden if necessary.
21608 runpath_var=LD_RUN_PATH
21609 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21610 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21611 # ancient GNU ld didn't support --whole-archive et. al.
21612 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21613 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21614 else
21615 whole_archive_flag_spec_F77=
21616 fi
21617 supports_anon_versioning=no
21618 case `$LD -v 2>/dev/null` in
21619 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21620 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21621 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21622 *\ 2.11.*) ;; # other 2.11 versions
21623 *) supports_anon_versioning=yes ;;
21624 esac
21625
John Criswell47fdd832003-07-14 16:52:07 +000021626 # See if GNU ld supports shared libraries.
21627 case $host_os in
21628 aix3* | aix4* | aix5*)
21629 # On AIX/PPC, the GNU linker is very broken
21630 if test "$host_cpu" != ia64; then
21631 ld_shlibs_F77=no
21632 cat <<EOF 1>&2
21633
21634*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21635*** to be unable to reliably create shared libraries on AIX.
21636*** Therefore, libtool is disabling shared libraries support. If you
21637*** really care for shared libraries, you may want to modify your PATH
21638*** so that a non-GNU linker is found, and then restart.
21639
21640EOF
21641 fi
21642 ;;
21643
21644 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021645 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 +000021646 hardcode_libdir_flag_spec_F77='-L$libdir'
21647 hardcode_minus_L_F77=yes
21648
21649 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21650 # that the semantics of dynamic libraries on AmigaOS, at least up
21651 # to version 4, is to share data among multiple programs linked
21652 # with the same dynamic library. Since this doesn't match the
21653 # behavior of shared libraries on other platforms, we can't use
21654 # them.
21655 ld_shlibs_F77=no
21656 ;;
21657
21658 beos*)
21659 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21660 allow_undefined_flag_F77=unsupported
21661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21662 # support --undefined. This deserves some investigation. FIXME
21663 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21664 else
21665 ld_shlibs_F77=no
21666 fi
21667 ;;
21668
21669 cygwin* | mingw* | pw32*)
21670 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21671 # as there is no search path for DLLs.
21672 hardcode_libdir_flag_spec_F77='-L$libdir'
21673 allow_undefined_flag_F77=unsupported
21674 always_export_symbols_F77=no
21675 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021676 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 +000021677
21678 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021679 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 +000021680 # If the export-symbols file already is a .def file (1st line
21681 # is EXPORTS), use it as is; otherwise, prepend...
21682 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21683 cp $export_symbols $output_objdir/$soname.def;
21684 else
21685 echo EXPORTS > $output_objdir/$soname.def;
21686 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021687 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021688 $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 +000021689 else
Reid Spencera773bd52006-08-04 18:18:08 +000021690 ld_shlibs_F77=no
21691 fi
21692 ;;
21693
21694 interix3*)
21695 hardcode_direct_F77=no
21696 hardcode_shlibpath_var_F77=no
21697 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21698 export_dynamic_flag_spec_F77='${wl}-E'
21699 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21700 # Instead, shared libraries are loaded at an image base (0x10000000 by
21701 # default) and relocated if they conflict, which is a slow very memory
21702 # consuming and fragmenting process. To avoid this, we pick a random,
21703 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21704 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21705 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'
21706 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'
21707 ;;
21708
21709 linux*)
21710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21711 tmp_addflag=
21712 case $cc_basename,$host_cpu in
21713 pgcc*) # Portland Group C compiler
21714 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'
21715 tmp_addflag=' $pic_flag'
21716 ;;
21717 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21718 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'
21719 tmp_addflag=' $pic_flag -Mnomain' ;;
21720 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21721 tmp_addflag=' -i_dynamic' ;;
21722 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21723 tmp_addflag=' -i_dynamic -nofor_main' ;;
21724 ifc* | ifort*) # Intel Fortran compiler
21725 tmp_addflag=' -nofor_main' ;;
21726 esac
21727 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21728
21729 if test $supports_anon_versioning = yes; then
21730 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21732 $echo "local: *; };" >> $output_objdir/$libname.ver~
21733 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21734 fi
21735 else
21736 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021737 fi
21738 ;;
21739
21740 netbsd*)
21741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21742 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21743 wlarc=
21744 else
21745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21746 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21747 fi
21748 ;;
21749
Reid Spencera773bd52006-08-04 18:18:08 +000021750 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021751 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21752 ld_shlibs_F77=no
21753 cat <<EOF 1>&2
21754
21755*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21756*** create shared libraries on Solaris systems. Therefore, libtool
21757*** is disabling shared libraries support. We urge you to upgrade GNU
21758*** binutils to release 2.9.1 or newer. Another option is to modify
21759*** your PATH or compiler configuration so that the native linker is
21760*** used, and then restart.
21761
21762EOF
21763 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21764 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21765 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21766 else
21767 ld_shlibs_F77=no
21768 fi
21769 ;;
21770
Reid Spencera773bd52006-08-04 18:18:08 +000021771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21772 case `$LD -v 2>&1` in
21773 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21774 ld_shlibs_F77=no
21775 cat <<_LT_EOF 1>&2
21776
21777*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21778*** reliably create shared libraries on SCO systems. Therefore, libtool
21779*** is disabling shared libraries support. We urge you to upgrade GNU
21780*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21781*** your PATH or compiler configuration so that the native linker is
21782*** used, and then restart.
21783
21784_LT_EOF
21785 ;;
21786 *)
21787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21788 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21789 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21790 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21791 else
21792 ld_shlibs_F77=no
21793 fi
21794 ;;
21795 esac
21796 ;;
21797
John Criswell47fdd832003-07-14 16:52:07 +000021798 sunos4*)
21799 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21800 wlarc=
21801 hardcode_direct_F77=yes
21802 hardcode_shlibpath_var_F77=no
21803 ;;
21804
21805 *)
21806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21807 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21808 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21809 else
21810 ld_shlibs_F77=no
21811 fi
21812 ;;
21813 esac
21814
Reid Spencera773bd52006-08-04 18:18:08 +000021815 if test "$ld_shlibs_F77" = no; then
21816 runpath_var=
21817 hardcode_libdir_flag_spec_F77=
21818 export_dynamic_flag_spec_F77=
21819 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021820 fi
21821 else
21822 # PORTME fill in a description of your system's linker (not GNU ld)
21823 case $host_os in
21824 aix3*)
21825 allow_undefined_flag_F77=unsupported
21826 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021827 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 +000021828 # Note: this linker hardcodes the directories in LIBPATH if there
21829 # are no directories specified by -L.
21830 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021831 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021832 # Neither direct hardcoding nor static linking is supported with a
21833 # broken collect2.
21834 hardcode_direct_F77=unsupported
21835 fi
21836 ;;
21837
21838 aix4* | aix5*)
21839 if test "$host_cpu" = ia64; then
21840 # On IA64, the linker does run time linking by default, so we don't
21841 # have to do anything special.
21842 aix_use_runtimelinking=no
21843 exp_sym_flag='-Bexport'
21844 no_entry_flag=""
21845 else
21846 # If we're using GNU nm, then we don't want the "-C" option.
21847 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21848 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21849 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'
21850 else
21851 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'
21852 fi
21853 aix_use_runtimelinking=no
21854
21855 # Test if we are trying to use run time linking or normal
21856 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21857 # need to do runtime linking.
21858 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21859 for ld_flag in $LDFLAGS; do
21860 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21861 aix_use_runtimelinking=yes
21862 break
21863 fi
21864 done
Reid Spencera773bd52006-08-04 18:18:08 +000021865 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021866 esac
21867
21868 exp_sym_flag='-bexport'
21869 no_entry_flag='-bnoentry'
21870 fi
21871
21872 # When large executables or shared objects are built, AIX ld can
21873 # have problems creating the table of contents. If linking a library
21874 # or program results in "error TOC overflow" add -mminimal-toc to
21875 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21876 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21877
21878 archive_cmds_F77=''
21879 hardcode_direct_F77=yes
21880 hardcode_libdir_separator_F77=':'
21881 link_all_deplibs_F77=yes
21882
21883 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021884 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021885 # We only want to do this on AIX 4.2 and lower, the check
21886 # below for broken collect2 doesn't work under 4.3+
21887 collect2name=`${CC} -print-prog-name=collect2`
21888 if test -f "$collect2name" && \
21889 strings "$collect2name" | grep resolve_lib_name >/dev/null
21890 then
21891 # We have reworked collect2
21892 hardcode_direct_F77=yes
21893 else
21894 # We have old collect2
21895 hardcode_direct_F77=unsupported
21896 # It fails to find uninstalled libraries when the uninstalled
21897 # path is not listed in the libpath. Setting hardcode_minus_L
21898 # to unsupported forces relinking
21899 hardcode_minus_L_F77=yes
21900 hardcode_libdir_flag_spec_F77='-L$libdir'
21901 hardcode_libdir_separator_F77=
21902 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021903 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021904 esac
21905 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021906 if test "$aix_use_runtimelinking" = yes; then
21907 shared_flag="$shared_flag "'${wl}-G'
21908 fi
John Criswell47fdd832003-07-14 16:52:07 +000021909 else
21910 # not using gcc
21911 if test "$host_cpu" = ia64; then
21912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21913 # chokes on -Wl,-G. The following line is correct:
21914 shared_flag='-G'
21915 else
Reid Spencera773bd52006-08-04 18:18:08 +000021916 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021917 shared_flag='${wl}-G'
21918 else
21919 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021920 fi
John Criswell47fdd832003-07-14 16:52:07 +000021921 fi
21922 fi
21923
21924 # It seems that -bexpall does not export symbols beginning with
21925 # underscore (_), so it is better to generate a list of symbols to export.
21926 always_export_symbols_F77=yes
21927 if test "$aix_use_runtimelinking" = yes; then
21928 # Warning - without using the other runtime loading flags (-brtl),
21929 # -berok will link without error, but may produce a broken library.
21930 allow_undefined_flag_F77='-berok'
21931 # Determine the default libpath from the value encoded in an empty executable.
21932 cat >conftest.$ac_ext <<_ACEOF
21933 program main
21934
21935 end
21936_ACEOF
21937rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021938if { (ac_try="$ac_link"
21939case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21942esac
21943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021945 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021951 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21952 { (case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21955esac
21956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; } &&
21961 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021962 { (case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965esac
21966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971
21972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21973}'`
21974# Check for a 64-bit object if we didn't find anything.
21975if 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; }
21976}'`; fi
21977else
21978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021979sed 's/^/| /' conftest.$ac_ext >&5
21980
Reid Spencera773bd52006-08-04 18:18:08 +000021981
John Criswell47fdd832003-07-14 16:52:07 +000021982fi
Reid Spencera773bd52006-08-04 18:18:08 +000021983
21984rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021985 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21987
21988 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021989 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 +000021990 else
21991 if test "$host_cpu" = ia64; then
21992 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21993 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021994 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 +000021995 else
21996 # Determine the default libpath from the value encoded in an empty executable.
21997 cat >conftest.$ac_ext <<_ACEOF
21998 program main
21999
22000 end
22001_ACEOF
22002rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022003if { (ac_try="$ac_link"
22004case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007esac
22008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022010 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000022016 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22020esac
22021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000022027 { (case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030esac
22031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000022033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22036
22037aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22038}'`
22039# Check for a 64-bit object if we didn't find anything.
22040if 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; }
22041}'`; fi
22042else
22043 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022044sed 's/^/| /' conftest.$ac_ext >&5
22045
Reid Spencera773bd52006-08-04 18:18:08 +000022046
John Criswell47fdd832003-07-14 16:52:07 +000022047fi
Reid Spencera773bd52006-08-04 18:18:08 +000022048
22049rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022050 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22052
22053 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22054 # Warning - without using the other run time loading flags,
22055 # -berok will link without error, but may produce a broken library.
22056 no_undefined_flag_F77=' ${wl}-bernotok'
22057 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022058 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022059 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022060 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022061 # This is similar to how AIX traditionally builds its shared libraries.
22062 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 +000022063 fi
22064 fi
22065 ;;
22066
22067 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022068 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 +000022069 hardcode_libdir_flag_spec_F77='-L$libdir'
22070 hardcode_minus_L_F77=yes
22071 # see comment about different semantics on the GNU ld section
22072 ld_shlibs_F77=no
22073 ;;
22074
Reid Spencer2706f8c2004-09-19 23:53:36 +000022075 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022076 export_dynamic_flag_spec_F77=-rdynamic
22077 ;;
22078
22079 cygwin* | mingw* | pw32*)
22080 # When not using gcc, we currently assume that we are using
22081 # Microsoft Visual C++.
22082 # hardcode_libdir_flag_spec is actually meaningless, as there is
22083 # no search path for DLLs.
22084 hardcode_libdir_flag_spec_F77=' '
22085 allow_undefined_flag_F77=unsupported
22086 # Tell ltmain to make .lib files, not .a files.
22087 libext=lib
22088 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022089 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022090 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022091 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 +000022092 # The linker will automatically build a .lib file if we build a DLL.
22093 old_archive_From_new_cmds_F77='true'
22094 # FIXME: Should let the user specify the lib program.
22095 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022096 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022097 enable_shared_with_static_runtimes_F77=yes
22098 ;;
22099
22100 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022101 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022102 rhapsody* | darwin1.[012])
22103 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22104 ;;
22105 *) # Darwin 1.3 on
22106 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22107 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22108 else
22109 case ${MACOSX_DEPLOYMENT_TARGET} in
22110 10.[012])
22111 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22112 ;;
22113 10.*)
22114 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22115 ;;
22116 esac
22117 fi
22118 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022119 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022120 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022121 hardcode_direct_F77=no
22122 hardcode_automatic_F77=yes
22123 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022124 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022125 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022126 if test "$GCC" = yes ; then
22127 output_verbose_link_cmd='echo'
22128 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22129 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022130 # 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 +000022131 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}'
22132 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 +000022133 else
Reid Spencera773bd52006-08-04 18:18:08 +000022134 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022135 xlc*)
22136 output_verbose_link_cmd='echo'
22137 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22138 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022139 # 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 +000022140 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}'
22141 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 +000022142 ;;
22143 *)
22144 ld_shlibs_F77=no
22145 ;;
22146 esac
John Criswell47fdd832003-07-14 16:52:07 +000022147 fi
22148 ;;
22149
22150 dgux*)
22151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22152 hardcode_libdir_flag_spec_F77='-L$libdir'
22153 hardcode_shlibpath_var_F77=no
22154 ;;
22155
22156 freebsd1*)
22157 ld_shlibs_F77=no
22158 ;;
22159
22160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22161 # support. Future versions do this automatically, but an explicit c++rt0.o
22162 # does not break anything, and helps significantly (at the cost of a little
22163 # extra space).
22164 freebsd2.2*)
22165 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22166 hardcode_libdir_flag_spec_F77='-R$libdir'
22167 hardcode_direct_F77=yes
22168 hardcode_shlibpath_var_F77=no
22169 ;;
22170
22171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22172 freebsd2*)
22173 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22174 hardcode_direct_F77=yes
22175 hardcode_minus_L_F77=yes
22176 hardcode_shlibpath_var_F77=no
22177 ;;
22178
22179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022180 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022181 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22182 hardcode_libdir_flag_spec_F77='-R$libdir'
22183 hardcode_direct_F77=yes
22184 hardcode_shlibpath_var_F77=no
22185 ;;
22186
22187 hpux9*)
22188 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022189 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 +000022190 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022191 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 +000022192 fi
22193 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22194 hardcode_libdir_separator_F77=:
22195 hardcode_direct_F77=yes
22196
22197 # hardcode_minus_L: Not really in the search PATH,
22198 # but as the default location of the library.
22199 hardcode_minus_L_F77=yes
22200 export_dynamic_flag_spec_F77='${wl}-E'
22201 ;;
22202
Reid Spencera773bd52006-08-04 18:18:08 +000022203 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022205 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22206 else
22207 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22208 fi
22209 if test "$with_gnu_ld" = no; then
22210 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22211 hardcode_libdir_separator_F77=:
22212
22213 hardcode_direct_F77=yes
22214 export_dynamic_flag_spec_F77='${wl}-E'
22215
22216 # hardcode_minus_L: Not really in the search PATH,
22217 # but as the default location of the library.
22218 hardcode_minus_L_F77=yes
22219 fi
22220 ;;
22221
22222 hpux11*)
22223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22224 case $host_cpu in
22225 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022226 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22227 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022228 ia64*)
22229 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22230 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022231 *)
22232 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22233 ;;
22234 esac
22235 else
Reid Spencera773bd52006-08-04 18:18:08 +000022236 case $host_cpu in
22237 hppa*64*)
22238 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22239 ;;
22240 ia64*)
22241 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022242 ;;
22243 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022244 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 +000022245 ;;
22246 esac
22247 fi
22248 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022249 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22250 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022251
Reid Spencera773bd52006-08-04 18:18:08 +000022252 case $host_cpu in
22253 hppa*64*|ia64*)
22254 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22255 hardcode_direct_F77=no
22256 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022257 ;;
22258 *)
John Criswell47fdd832003-07-14 16:52:07 +000022259 hardcode_direct_F77=yes
22260 export_dynamic_flag_spec_F77='${wl}-E'
22261
22262 # hardcode_minus_L: Not really in the search PATH,
22263 # but as the default location of the library.
22264 hardcode_minus_L_F77=yes
22265 ;;
22266 esac
22267 fi
22268 ;;
22269
22270 irix5* | irix6* | nonstopux*)
22271 if test "$GCC" = yes; then
22272 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'
22273 else
22274 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'
22275 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22276 fi
22277 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22278 hardcode_libdir_separator_F77=:
22279 link_all_deplibs_F77=yes
22280 ;;
22281
22282 netbsd*)
22283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22284 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22285 else
22286 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22287 fi
22288 hardcode_libdir_flag_spec_F77='-R$libdir'
22289 hardcode_direct_F77=yes
22290 hardcode_shlibpath_var_F77=no
22291 ;;
22292
22293 newsos6)
22294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22295 hardcode_direct_F77=yes
22296 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22297 hardcode_libdir_separator_F77=:
22298 hardcode_shlibpath_var_F77=no
22299 ;;
22300
22301 openbsd*)
22302 hardcode_direct_F77=yes
22303 hardcode_shlibpath_var_F77=no
22304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22305 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022306 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 +000022307 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22308 export_dynamic_flag_spec_F77='${wl}-E'
22309 else
22310 case $host_os in
22311 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22312 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22313 hardcode_libdir_flag_spec_F77='-R$libdir'
22314 ;;
22315 *)
22316 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22317 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22318 ;;
22319 esac
22320 fi
22321 ;;
22322
22323 os2*)
22324 hardcode_libdir_flag_spec_F77='-L$libdir'
22325 hardcode_minus_L_F77=yes
22326 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022327 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 +000022328 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22329 ;;
22330
22331 osf3*)
22332 if test "$GCC" = yes; then
22333 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22334 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'
22335 else
22336 allow_undefined_flag_F77=' -expect_unresolved \*'
22337 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'
22338 fi
22339 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22340 hardcode_libdir_separator_F77=:
22341 ;;
22342
22343 osf4* | osf5*) # as osf3* with the addition of -msym flag
22344 if test "$GCC" = yes; then
22345 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22346 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'
22347 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22348 else
22349 allow_undefined_flag_F77=' -expect_unresolved \*'
22350 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 +000022351 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 +000022352 $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 +000022353
John Criswell47fdd832003-07-14 16:52:07 +000022354 # Both c and cxx compiler support -rpath directly
22355 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22356 fi
22357 hardcode_libdir_separator_F77=:
22358 ;;
22359
John Criswell47fdd832003-07-14 16:52:07 +000022360 solaris*)
22361 no_undefined_flag_F77=' -z text'
22362 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022363 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022364 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022365 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22366 $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 +000022367 else
Reid Spencera773bd52006-08-04 18:18:08 +000022368 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022369 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022370 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22371 $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 +000022372 fi
22373 hardcode_libdir_flag_spec_F77='-R$libdir'
22374 hardcode_shlibpath_var_F77=no
22375 case $host_os in
22376 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022377 *)
22378 # The compiler driver will combine linker options so we
22379 # cannot just pass the convience library names through
22380 # without $wl, iff we do not link with $LD.
22381 # Luckily, gcc supports the same syntax we need for Sun Studio.
22382 # Supported since Solaris 2.6 (maybe 2.5.1?)
22383 case $wlarc in
22384 '')
22385 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22386 *)
22387 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' ;;
22388 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022389 esac
22390 link_all_deplibs_F77=yes
22391 ;;
22392
22393 sunos4*)
22394 if test "x$host_vendor" = xsequent; then
22395 # Use $CC to link under sequent, because it throws in some extra .o
22396 # files that make .init and .fini sections work.
22397 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22398 else
22399 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22400 fi
22401 hardcode_libdir_flag_spec_F77='-L$libdir'
22402 hardcode_direct_F77=yes
22403 hardcode_minus_L_F77=yes
22404 hardcode_shlibpath_var_F77=no
22405 ;;
22406
22407 sysv4)
22408 case $host_vendor in
22409 sni)
22410 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22411 hardcode_direct_F77=yes # is this really true???
22412 ;;
22413 siemens)
22414 ## LD is ld it makes a PLAMLIB
22415 ## CC just makes a GrossModule.
22416 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22417 reload_cmds_F77='$CC -r -o $output$reload_objs'
22418 hardcode_direct_F77=no
22419 ;;
22420 motorola)
22421 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22422 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22423 ;;
22424 esac
22425 runpath_var='LD_RUN_PATH'
22426 hardcode_shlibpath_var_F77=no
22427 ;;
22428
22429 sysv4.3*)
22430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22431 hardcode_shlibpath_var_F77=no
22432 export_dynamic_flag_spec_F77='-Bexport'
22433 ;;
22434
22435 sysv4*MP*)
22436 if test -d /usr/nec; then
22437 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22438 hardcode_shlibpath_var_F77=no
22439 runpath_var=LD_RUN_PATH
22440 hardcode_runpath_var=yes
22441 ld_shlibs_F77=yes
22442 fi
22443 ;;
22444
Reid Spencera773bd52006-08-04 18:18:08 +000022445 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22446 no_undefined_flag_F77='${wl}-z,text'
22447 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022448 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022449 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022450
John Criswell47fdd832003-07-14 16:52:07 +000022451 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022452 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22453 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 +000022454 else
Reid Spencera773bd52006-08-04 18:18:08 +000022455 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22456 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 +000022457 fi
John Criswell47fdd832003-07-14 16:52:07 +000022458 ;;
22459
Reid Spencera773bd52006-08-04 18:18:08 +000022460 sysv5* | sco3.2v5* | sco5v6*)
22461 # Note: We can NOT use -z defs as we might desire, because we do not
22462 # link with -lc, and that would cause any symbols used from libc to
22463 # always be unresolved, which means just about no library would
22464 # ever link correctly. If we're not using GNU ld we use -z text
22465 # though, which does catch some bad symbols but isn't as heavy-handed
22466 # as -z defs.
22467 no_undefined_flag_F77='${wl}-z,text'
22468 allow_undefined_flag_F77='${wl}-z,nodefs'
22469 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022470 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022471 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22472 hardcode_libdir_separator_F77=':'
22473 link_all_deplibs_F77=yes
22474 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022475 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022476
22477 if test "$GCC" = yes; then
22478 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22479 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22480 else
22481 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22482 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22483 fi
John Criswell47fdd832003-07-14 16:52:07 +000022484 ;;
22485
22486 uts4*)
22487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22488 hardcode_libdir_flag_spec_F77='-L$libdir'
22489 hardcode_shlibpath_var_F77=no
22490 ;;
22491
22492 *)
22493 ld_shlibs_F77=no
22494 ;;
22495 esac
22496 fi
22497
Reid Spencera773bd52006-08-04 18:18:08 +000022498{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22499echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022500test "$ld_shlibs_F77" = no && can_build_shared=no
22501
John Criswell47fdd832003-07-14 16:52:07 +000022502#
22503# Do we need to explicitly link libc?
22504#
22505case "x$archive_cmds_need_lc_F77" in
22506x|xyes)
22507 # Assume -lc should be added
22508 archive_cmds_need_lc_F77=yes
22509
22510 if test "$enable_shared" = yes && test "$GCC" = yes; then
22511 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022512 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022513 # FIXME: we may have to deal with multi-command sequences.
22514 ;;
22515 '$CC '*)
22516 # Test whether the compiler implicitly links with -lc since on some
22517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22518 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022519 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22520echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022521 $rm conftest*
22522 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22523
22524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525 (eval $ac_compile) 2>&5
22526 ac_status=$?
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } 2>conftest.err; then
22529 soname=conftest
22530 lib=conftest
22531 libobjs=conftest.$ac_objext
22532 deplibs=
22533 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022534 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022535 compiler_flags=-v
22536 linker_flags=-v
22537 verstring=
22538 output_objdir=.
22539 libname=conftest
22540 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22541 allow_undefined_flag_F77=
22542 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22543 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22544 ac_status=$?
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }
22547 then
22548 archive_cmds_need_lc_F77=no
22549 else
22550 archive_cmds_need_lc_F77=yes
22551 fi
22552 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22553 else
22554 cat conftest.err 1>&5
22555 fi
22556 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022557 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22558echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022559 ;;
22560 esac
22561 fi
22562 ;;
22563esac
22564
Reid Spencera773bd52006-08-04 18:18:08 +000022565{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22566echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022567library_names_spec=
22568libname_spec='lib$name'
22569soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022570shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022571postinstall_cmds=
22572postuninstall_cmds=
22573finish_cmds=
22574finish_eval=
22575shlibpath_var=
22576shlibpath_overrides_runpath=unknown
22577version_type=none
22578dynamic_linker="$host_os ld.so"
22579sys_lib_dlsearch_path_spec="/lib /usr/lib"
22580if test "$GCC" = yes; then
22581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22582 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22583 # if the path contains ";" then we assume it to be the separator
22584 # otherwise default to the standard path separator (i.e. ":") - it is
22585 # assumed that no part of a normal pathname contains ";" but that should
22586 # okay in the real world where ";" in dirpaths is itself problematic.
22587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22588 else
22589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22590 fi
22591else
22592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22593fi
22594need_lib_prefix=unknown
22595hardcode_into_libs=no
22596
22597# when you set need_version to no, make sure it does not cause -set_version
22598# flags to be left without arguments
22599need_version=unknown
22600
22601case $host_os in
22602aix3*)
22603 version_type=linux
22604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22605 shlibpath_var=LIBPATH
22606
22607 # AIX 3 has no versioning support, so we append a major version to the name.
22608 soname_spec='${libname}${release}${shared_ext}$major'
22609 ;;
22610
22611aix4* | aix5*)
22612 version_type=linux
22613 need_lib_prefix=no
22614 need_version=no
22615 hardcode_into_libs=yes
22616 if test "$host_cpu" = ia64; then
22617 # AIX 5 supports IA64
22618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22619 shlibpath_var=LD_LIBRARY_PATH
22620 else
22621 # With GCC up to 2.95.x, collect2 would create an import file
22622 # for dependence libraries. The import file would start with
22623 # the line `#! .'. This would cause the generated library to
22624 # depend on `.', always an invalid library. This was fixed in
22625 # development snapshots of GCC prior to 3.0.
22626 case $host_os in
22627 aix4 | aix4.[01] | aix4.[01].*)
22628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22629 echo ' yes '
22630 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22631 :
22632 else
22633 can_build_shared=no
22634 fi
22635 ;;
22636 esac
22637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22638 # soname into executable. Probably we can add versioning support to
22639 # collect2, so additional links can be useful in future.
22640 if test "$aix_use_runtimelinking" = yes; then
22641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22642 # instead of lib<name>.a to let people know that these are not
22643 # typical AIX shared libraries.
22644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22645 else
22646 # We preserve .a as extension for shared libraries through AIX4.2
22647 # and later when we are not doing run time linking.
22648 library_names_spec='${libname}${release}.a $libname.a'
22649 soname_spec='${libname}${release}${shared_ext}$major'
22650 fi
22651 shlibpath_var=LIBPATH
22652 fi
22653 ;;
22654
22655amigaos*)
22656 library_names_spec='$libname.ixlibrary $libname.a'
22657 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022658 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 +000022659 ;;
22660
22661beos*)
22662 library_names_spec='${libname}${shared_ext}'
22663 dynamic_linker="$host_os ld.so"
22664 shlibpath_var=LIBRARY_PATH
22665 ;;
22666
Reid Spencer2706f8c2004-09-19 23:53:36 +000022667bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022668 version_type=linux
22669 need_version=no
22670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671 soname_spec='${libname}${release}${shared_ext}$major'
22672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22673 shlibpath_var=LD_LIBRARY_PATH
22674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22676 # the default ld.so.conf also contains /usr/contrib/lib and
22677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22678 # libtool to hard-code these into programs
22679 ;;
22680
22681cygwin* | mingw* | pw32*)
22682 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022683 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022684 need_version=no
22685 need_lib_prefix=no
22686
22687 case $GCC,$host_os in
22688 yes,cygwin* | yes,mingw* | yes,pw32*)
22689 library_names_spec='$libname.dll.a'
22690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022691 postinstall_cmds='base_file=`basename \${file}`~
22692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22693 dldir=$destdir/`dirname \$dlpath`~
22694 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022695 $install_prog $dir/$dlname \$dldir/$dlname~
22696 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22698 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022699 $rm \$dlpath'
22700 shlibpath_overrides_runpath=yes
22701
22702 case $host_os in
22703 cygwin*)
22704 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22705 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 +000022706 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022707 ;;
22708 mingw*)
22709 # MinGW DLLs use traditional 'lib' prefix
22710 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22712 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22713 # It is most probably a Windows format PATH printed by
22714 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22715 # path with ; separators, and with drive letters. We can handle the
22716 # drive letters (cygwin fileutils understands them), so leave them,
22717 # especially as we might pass files found there to a mingw objdump,
22718 # which wouldn't understand a cygwinified path. Ahh.
22719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22720 else
22721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22722 fi
22723 ;;
22724 pw32*)
22725 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022726 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 +000022727 ;;
22728 esac
22729 ;;
22730
22731 *)
22732 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22733 ;;
22734 esac
22735 dynamic_linker='Win32 ld.exe'
22736 # FIXME: first we should search . and the directory the executable is in
22737 shlibpath_var=PATH
22738 ;;
22739
22740darwin* | rhapsody*)
22741 dynamic_linker="$host_os dyld"
22742 version_type=darwin
22743 need_lib_prefix=no
22744 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022745 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022746 soname_spec='${libname}${release}${major}$shared_ext'
22747 shlibpath_overrides_runpath=yes
22748 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022749 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022750 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022751 if test "$GCC" = yes; then
22752 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"`
22753 else
22754 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022755 fi
22756 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22757 ;;
22758
22759dgux*)
22760 version_type=linux
22761 need_lib_prefix=no
22762 need_version=no
22763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22764 soname_spec='${libname}${release}${shared_ext}$major'
22765 shlibpath_var=LD_LIBRARY_PATH
22766 ;;
22767
22768freebsd1*)
22769 dynamic_linker=no
22770 ;;
22771
Reid Spencer2706f8c2004-09-19 23:53:36 +000022772kfreebsd*-gnu)
22773 version_type=linux
22774 need_lib_prefix=no
22775 need_version=no
22776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 shlibpath_var=LD_LIBRARY_PATH
22779 shlibpath_overrides_runpath=no
22780 hardcode_into_libs=yes
22781 dynamic_linker='GNU ld.so'
22782 ;;
22783
Reid Spencera773bd52006-08-04 18:18:08 +000022784freebsd* | dragonfly*)
22785 # DragonFly does not have aout. When/if they implement a new
22786 # versioning mechanism, adjust this.
22787 if test -x /usr/bin/objformat; then
22788 objformat=`/usr/bin/objformat`
22789 else
22790 case $host_os in
22791 freebsd[123]*) objformat=aout ;;
22792 *) objformat=elf ;;
22793 esac
22794 fi
John Criswell47fdd832003-07-14 16:52:07 +000022795 version_type=freebsd-$objformat
22796 case $version_type in
22797 freebsd-elf*)
22798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22799 need_version=no
22800 need_lib_prefix=no
22801 ;;
22802 freebsd-*)
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22804 need_version=yes
22805 ;;
22806 esac
22807 shlibpath_var=LD_LIBRARY_PATH
22808 case $host_os in
22809 freebsd2*)
22810 shlibpath_overrides_runpath=yes
22811 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022812 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022813 shlibpath_overrides_runpath=yes
22814 hardcode_into_libs=yes
22815 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022816 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22817 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022818 shlibpath_overrides_runpath=no
22819 hardcode_into_libs=yes
22820 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022821 freebsd*) # from 4.6 on
22822 shlibpath_overrides_runpath=yes
22823 hardcode_into_libs=yes
22824 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022825 esac
22826 ;;
22827
22828gnu*)
22829 version_type=linux
22830 need_lib_prefix=no
22831 need_version=no
22832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22833 soname_spec='${libname}${release}${shared_ext}$major'
22834 shlibpath_var=LD_LIBRARY_PATH
22835 hardcode_into_libs=yes
22836 ;;
22837
22838hpux9* | hpux10* | hpux11*)
22839 # Give a soname corresponding to the major version so that dld.sl refuses to
22840 # link against other versions.
22841 version_type=sunos
22842 need_lib_prefix=no
22843 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022844 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022845 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022846 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022847 hardcode_into_libs=yes
22848 dynamic_linker="$host_os dld.so"
22849 shlibpath_var=LD_LIBRARY_PATH
22850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22852 soname_spec='${libname}${release}${shared_ext}$major'
22853 if test "X$HPUX_IA64_MODE" = X32; then
22854 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22855 else
22856 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22857 fi
22858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22859 ;;
22860 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022861 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022862 hardcode_into_libs=yes
22863 dynamic_linker="$host_os dld.sl"
22864 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22867 soname_spec='${libname}${release}${shared_ext}$major'
22868 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22870 ;;
22871 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022872 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022873 dynamic_linker="$host_os dld.sl"
22874 shlibpath_var=SHLIB_PATH
22875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 ;;
22879 esac
22880 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22881 postinstall_cmds='chmod 555 $lib'
22882 ;;
22883
Reid Spencera773bd52006-08-04 18:18:08 +000022884interix3*)
22885 version_type=linux
22886 need_lib_prefix=no
22887 need_version=no
22888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22889 soname_spec='${libname}${release}${shared_ext}$major'
22890 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22891 shlibpath_var=LD_LIBRARY_PATH
22892 shlibpath_overrides_runpath=no
22893 hardcode_into_libs=yes
22894 ;;
22895
John Criswell47fdd832003-07-14 16:52:07 +000022896irix5* | irix6* | nonstopux*)
22897 case $host_os in
22898 nonstopux*) version_type=nonstopux ;;
22899 *)
22900 if test "$lt_cv_prog_gnu_ld" = yes; then
22901 version_type=linux
22902 else
22903 version_type=irix
22904 fi ;;
22905 esac
22906 need_lib_prefix=no
22907 need_version=no
22908 soname_spec='${libname}${release}${shared_ext}$major'
22909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22910 case $host_os in
22911 irix5* | nonstopux*)
22912 libsuff= shlibsuff=
22913 ;;
22914 *)
22915 case $LD in # libtool.m4 will add one of these switches to LD
22916 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22917 libsuff= shlibsuff= libmagic=32-bit;;
22918 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22919 libsuff=32 shlibsuff=N32 libmagic=N32;;
22920 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22921 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22922 *) libsuff= shlibsuff= libmagic=never-match;;
22923 esac
22924 ;;
22925 esac
22926 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22927 shlibpath_overrides_runpath=no
22928 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22929 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22930 hardcode_into_libs=yes
22931 ;;
22932
22933# No shared lib support for Linux oldld, aout, or coff.
22934linux*oldld* | linux*aout* | linux*coff*)
22935 dynamic_linker=no
22936 ;;
22937
22938# This must be Linux ELF.
22939linux*)
22940 version_type=linux
22941 need_lib_prefix=no
22942 need_version=no
22943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22944 soname_spec='${libname}${release}${shared_ext}$major'
22945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22946 shlibpath_var=LD_LIBRARY_PATH
22947 shlibpath_overrides_runpath=no
22948 # This implies no fast_install, which is unacceptable.
22949 # Some rework will be needed to allow for fast_install
22950 # before this can be enabled.
22951 hardcode_into_libs=yes
22952
Reid Spencer2706f8c2004-09-19 23:53:36 +000022953 # Append ld.so.conf contents to the search path
22954 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022955 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 +000022956 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22957 fi
22958
John Criswell47fdd832003-07-14 16:52:07 +000022959 # We used to test for /lib/ld.so.1 and disable shared libraries on
22960 # powerpc, because MkLinux only supported shared libraries with the
22961 # GNU dynamic linker. Since this was broken with cross compilers,
22962 # most powerpc-linux boxes support dynamic linking these days and
22963 # people can always --disable-shared, the test was removed, and we
22964 # assume the GNU/Linux dynamic linker is in use.
22965 dynamic_linker='GNU/Linux ld.so'
22966 ;;
22967
Reid Spencer2706f8c2004-09-19 23:53:36 +000022968knetbsd*-gnu)
22969 version_type=linux
22970 need_lib_prefix=no
22971 need_version=no
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22973 soname_spec='${libname}${release}${shared_ext}$major'
22974 shlibpath_var=LD_LIBRARY_PATH
22975 shlibpath_overrides_runpath=no
22976 hardcode_into_libs=yes
22977 dynamic_linker='GNU ld.so'
22978 ;;
22979
John Criswell47fdd832003-07-14 16:52:07 +000022980netbsd*)
22981 version_type=sunos
22982 need_lib_prefix=no
22983 need_version=no
22984 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22987 dynamic_linker='NetBSD (a.out) ld.so'
22988 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022990 soname_spec='${libname}${release}${shared_ext}$major'
22991 dynamic_linker='NetBSD ld.elf_so'
22992 fi
22993 shlibpath_var=LD_LIBRARY_PATH
22994 shlibpath_overrides_runpath=yes
22995 hardcode_into_libs=yes
22996 ;;
22997
22998newsos6)
22999 version_type=linux
23000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23001 shlibpath_var=LD_LIBRARY_PATH
23002 shlibpath_overrides_runpath=yes
23003 ;;
23004
Reid Spencer2706f8c2004-09-19 23:53:36 +000023005nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023006 version_type=linux
23007 need_lib_prefix=no
23008 need_version=no
23009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23010 soname_spec='${libname}${release}${shared_ext}$major'
23011 shlibpath_var=LD_LIBRARY_PATH
23012 shlibpath_overrides_runpath=yes
23013 ;;
23014
23015openbsd*)
23016 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023017 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023018 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023019 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23020 case $host_os in
23021 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23022 *) need_version=no ;;
23023 esac
John Criswell47fdd832003-07-14 16:52:07 +000023024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23026 shlibpath_var=LD_LIBRARY_PATH
23027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23028 case $host_os in
23029 openbsd2.[89] | openbsd2.[89].*)
23030 shlibpath_overrides_runpath=no
23031 ;;
23032 *)
23033 shlibpath_overrides_runpath=yes
23034 ;;
23035 esac
23036 else
23037 shlibpath_overrides_runpath=yes
23038 fi
23039 ;;
23040
23041os2*)
23042 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023043 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023044 need_lib_prefix=no
23045 library_names_spec='$libname${shared_ext} $libname.a'
23046 dynamic_linker='OS/2 ld.exe'
23047 shlibpath_var=LIBPATH
23048 ;;
23049
23050osf3* | osf4* | osf5*)
23051 version_type=osf
23052 need_lib_prefix=no
23053 need_version=no
23054 soname_spec='${libname}${release}${shared_ext}$major'
23055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23056 shlibpath_var=LD_LIBRARY_PATH
23057 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23058 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23059 ;;
23060
John Criswell47fdd832003-07-14 16:52:07 +000023061solaris*)
23062 version_type=linux
23063 need_lib_prefix=no
23064 need_version=no
23065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23066 soname_spec='${libname}${release}${shared_ext}$major'
23067 shlibpath_var=LD_LIBRARY_PATH
23068 shlibpath_overrides_runpath=yes
23069 hardcode_into_libs=yes
23070 # ldd complains unless libraries are executable
23071 postinstall_cmds='chmod +x $lib'
23072 ;;
23073
23074sunos4*)
23075 version_type=sunos
23076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23078 shlibpath_var=LD_LIBRARY_PATH
23079 shlibpath_overrides_runpath=yes
23080 if test "$with_gnu_ld" = yes; then
23081 need_lib_prefix=no
23082 fi
23083 need_version=yes
23084 ;;
23085
Reid Spencera773bd52006-08-04 18:18:08 +000023086sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023087 version_type=linux
23088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089 soname_spec='${libname}${release}${shared_ext}$major'
23090 shlibpath_var=LD_LIBRARY_PATH
23091 case $host_vendor in
23092 sni)
23093 shlibpath_overrides_runpath=no
23094 need_lib_prefix=no
23095 export_dynamic_flag_spec='${wl}-Blargedynsym'
23096 runpath_var=LD_RUN_PATH
23097 ;;
23098 siemens)
23099 need_lib_prefix=no
23100 ;;
23101 motorola)
23102 need_lib_prefix=no
23103 need_version=no
23104 shlibpath_overrides_runpath=no
23105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23106 ;;
23107 esac
23108 ;;
23109
23110sysv4*MP*)
23111 if test -d /usr/nec ;then
23112 version_type=linux
23113 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23114 soname_spec='$libname${shared_ext}.$major'
23115 shlibpath_var=LD_LIBRARY_PATH
23116 fi
23117 ;;
23118
Reid Spencera773bd52006-08-04 18:18:08 +000023119sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23120 version_type=freebsd-elf
23121 need_lib_prefix=no
23122 need_version=no
23123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23124 soname_spec='${libname}${release}${shared_ext}$major'
23125 shlibpath_var=LD_LIBRARY_PATH
23126 hardcode_into_libs=yes
23127 if test "$with_gnu_ld" = yes; then
23128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23129 shlibpath_overrides_runpath=no
23130 else
23131 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23132 shlibpath_overrides_runpath=yes
23133 case $host_os in
23134 sco3.2v5*)
23135 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23136 ;;
23137 esac
23138 fi
23139 sys_lib_dlsearch_path_spec='/usr/lib'
23140 ;;
23141
John Criswell47fdd832003-07-14 16:52:07 +000023142uts4*)
23143 version_type=linux
23144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23145 soname_spec='${libname}${release}${shared_ext}$major'
23146 shlibpath_var=LD_LIBRARY_PATH
23147 ;;
23148
23149*)
23150 dynamic_linker=no
23151 ;;
23152esac
Reid Spencera773bd52006-08-04 18:18:08 +000023153{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23154echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023155test "$dynamic_linker" = no && can_build_shared=no
23156
Reid Spencera773bd52006-08-04 18:18:08 +000023157variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23158if test "$GCC" = yes; then
23159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23160fi
23161
23162{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23163echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023164hardcode_action_F77=
23165if test -n "$hardcode_libdir_flag_spec_F77" || \
23166 test -n "$runpath_var_F77" || \
23167 test "X$hardcode_automatic_F77" = "Xyes" ; then
23168
23169 # We can hardcode non-existant directories.
23170 if test "$hardcode_direct_F77" != no &&
23171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23172 # have to relink, otherwise we might link with an installed library
23173 # when we should be linking with a yet-to-be-installed one
23174 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23175 test "$hardcode_minus_L_F77" != no; then
23176 # Linking always hardcodes the temporary library directory.
23177 hardcode_action_F77=relink
23178 else
23179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23180 hardcode_action_F77=immediate
23181 fi
23182else
23183 # We cannot hardcode anything, or else we can only hardcode existing
23184 # directories.
23185 hardcode_action_F77=unsupported
23186fi
Reid Spencera773bd52006-08-04 18:18:08 +000023187{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23188echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023189
23190if test "$hardcode_action_F77" = relink; then
23191 # Fast installation is not supported
23192 enable_fast_install=no
23193elif test "$shlibpath_overrides_runpath" = yes ||
23194 test "$enable_shared" = no; then
23195 # Fast installation is not necessary
23196 enable_fast_install=needless
23197fi
23198
John Criswell47fdd832003-07-14 16:52:07 +000023199
23200# The else clause should only fire when bootstrapping the
23201# libtool distribution, otherwise you forgot to ship ltmain.sh
23202# with your package, and you will get complaints that there are
23203# no rules to generate ltmain.sh.
23204if test -f "$ltmain"; then
23205 # See if we are running on zsh, and set the options which allow our commands through
23206 # without removal of \ escapes.
23207 if test -n "${ZSH_VERSION+set}" ; then
23208 setopt NO_GLOB_SUBST
23209 fi
23210 # Now quote all the things that may contain metacharacters while being
23211 # careful not to overquote the AC_SUBSTed values. We take copies of the
23212 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023213 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 +000023214 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023215 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23216 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23217 deplibs_check_method reload_flag reload_cmds need_locks \
23218 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23219 lt_cv_sys_global_symbol_to_c_name_address \
23220 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23221 old_postinstall_cmds old_postuninstall_cmds \
23222 compiler_F77 \
23223 CC_F77 \
23224 LD_F77 \
23225 lt_prog_compiler_wl_F77 \
23226 lt_prog_compiler_pic_F77 \
23227 lt_prog_compiler_static_F77 \
23228 lt_prog_compiler_no_builtin_flag_F77 \
23229 export_dynamic_flag_spec_F77 \
23230 thread_safe_flag_spec_F77 \
23231 whole_archive_flag_spec_F77 \
23232 enable_shared_with_static_runtimes_F77 \
23233 old_archive_cmds_F77 \
23234 old_archive_from_new_cmds_F77 \
23235 predep_objects_F77 \
23236 postdep_objects_F77 \
23237 predeps_F77 \
23238 postdeps_F77 \
23239 compiler_lib_search_path_F77 \
23240 archive_cmds_F77 \
23241 archive_expsym_cmds_F77 \
23242 postinstall_cmds_F77 \
23243 postuninstall_cmds_F77 \
23244 old_archive_from_expsyms_cmds_F77 \
23245 allow_undefined_flag_F77 \
23246 no_undefined_flag_F77 \
23247 export_symbols_cmds_F77 \
23248 hardcode_libdir_flag_spec_F77 \
23249 hardcode_libdir_flag_spec_ld_F77 \
23250 hardcode_libdir_separator_F77 \
23251 hardcode_automatic_F77 \
23252 module_cmds_F77 \
23253 module_expsym_cmds_F77 \
23254 lt_cv_prog_compiler_c_o_F77 \
23255 exclude_expsyms_F77 \
23256 include_expsyms_F77; do
23257
23258 case $var in
23259 old_archive_cmds_F77 | \
23260 old_archive_from_new_cmds_F77 | \
23261 archive_cmds_F77 | \
23262 archive_expsym_cmds_F77 | \
23263 module_cmds_F77 | \
23264 module_expsym_cmds_F77 | \
23265 old_archive_from_expsyms_cmds_F77 | \
23266 export_symbols_cmds_F77 | \
23267 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23268 postinstall_cmds | postuninstall_cmds | \
23269 old_postinstall_cmds | old_postuninstall_cmds | \
23270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23271 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023272 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 +000023273 ;;
23274 *)
23275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23276 ;;
23277 esac
23278 done
23279
23280 case $lt_echo in
23281 *'\$0 --fallback-echo"')
23282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23283 ;;
23284 esac
23285
23286cfgfile="$ofile"
23287
23288 cat <<__EOF__ >> "$cfgfile"
23289# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23290
23291# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23292
23293# Shell to use when invoking shell scripts.
23294SHELL=$lt_SHELL
23295
23296# Whether or not to build shared libraries.
23297build_libtool_libs=$enable_shared
23298
23299# Whether or not to build static libraries.
23300build_old_libs=$enable_static
23301
23302# Whether or not to add -lc for building shared libraries.
23303build_libtool_need_lc=$archive_cmds_need_lc_F77
23304
23305# Whether or not to disallow shared libs when runtime libs are static
23306allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23307
23308# Whether or not to optimize for fast installation.
23309fast_install=$enable_fast_install
23310
23311# The host system.
23312host_alias=$host_alias
23313host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023314host_os=$host_os
23315
23316# The build system.
23317build_alias=$build_alias
23318build=$build
23319build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023320
23321# An echo program that does not interpret backslashes.
23322echo=$lt_echo
23323
23324# The archiver.
23325AR=$lt_AR
23326AR_FLAGS=$lt_AR_FLAGS
23327
23328# A C compiler.
23329LTCC=$lt_LTCC
23330
Reid Spencera773bd52006-08-04 18:18:08 +000023331# LTCC compiler flags.
23332LTCFLAGS=$lt_LTCFLAGS
23333
John Criswell47fdd832003-07-14 16:52:07 +000023334# A language-specific compiler.
23335CC=$lt_compiler_F77
23336
23337# Is the compiler the GNU C compiler?
23338with_gcc=$GCC_F77
23339
23340# An ERE matcher.
23341EGREP=$lt_EGREP
23342
23343# The linker used to build libraries.
23344LD=$lt_LD_F77
23345
23346# Whether we need hard or soft links.
23347LN_S=$lt_LN_S
23348
23349# A BSD-compatible nm program.
23350NM=$lt_NM
23351
23352# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023353STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023354
23355# Used to examine libraries when file_magic_cmd begins "file"
23356MAGIC_CMD=$MAGIC_CMD
23357
23358# Used on cygwin: DLL creation program.
23359DLLTOOL="$DLLTOOL"
23360
23361# Used on cygwin: object dumper.
23362OBJDUMP="$OBJDUMP"
23363
23364# Used on cygwin: assembler.
23365AS="$AS"
23366
23367# The name of the directory that contains temporary libtool files.
23368objdir=$objdir
23369
23370# How to create reloadable object files.
23371reload_flag=$lt_reload_flag
23372reload_cmds=$lt_reload_cmds
23373
23374# How to pass a linker flag through the compiler.
23375wl=$lt_lt_prog_compiler_wl_F77
23376
23377# Object file suffix (normally "o").
23378objext="$ac_objext"
23379
23380# Old archive suffix (normally "a").
23381libext="$libext"
23382
23383# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023384shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023385
23386# Executable file suffix (normally "").
23387exeext="$exeext"
23388
23389# Additional compiler flags for building library objects.
23390pic_flag=$lt_lt_prog_compiler_pic_F77
23391pic_mode=$pic_mode
23392
23393# What is the maximum length of a command?
23394max_cmd_len=$lt_cv_sys_max_cmd_len
23395
23396# Does compiler simultaneously support -c and -o options?
23397compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23398
Reid Spencera773bd52006-08-04 18:18:08 +000023399# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023400need_locks=$lt_need_locks
23401
23402# Do we need the lib prefix for modules?
23403need_lib_prefix=$need_lib_prefix
23404
23405# Do we need a version for libraries?
23406need_version=$need_version
23407
23408# Whether dlopen is supported.
23409dlopen_support=$enable_dlopen
23410
23411# Whether dlopen of programs is supported.
23412dlopen_self=$enable_dlopen_self
23413
23414# Whether dlopen of statically linked programs is supported.
23415dlopen_self_static=$enable_dlopen_self_static
23416
23417# Compiler flag to prevent dynamic linking.
23418link_static_flag=$lt_lt_prog_compiler_static_F77
23419
23420# Compiler flag to turn off builtin functions.
23421no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23422
23423# Compiler flag to allow reflexive dlopens.
23424export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23425
23426# Compiler flag to generate shared objects directly from archives.
23427whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23428
23429# Compiler flag to generate thread-safe objects.
23430thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23431
23432# Library versioning type.
23433version_type=$version_type
23434
23435# Format of library name prefix.
23436libname_spec=$lt_libname_spec
23437
23438# List of archive names. First name is the real one, the rest are links.
23439# The last name is the one that the linker finds with -lNAME.
23440library_names_spec=$lt_library_names_spec
23441
23442# The coded name of the library, if different from the real name.
23443soname_spec=$lt_soname_spec
23444
23445# Commands used to build and install an old-style archive.
23446RANLIB=$lt_RANLIB
23447old_archive_cmds=$lt_old_archive_cmds_F77
23448old_postinstall_cmds=$lt_old_postinstall_cmds
23449old_postuninstall_cmds=$lt_old_postuninstall_cmds
23450
23451# Create an old-style archive from a shared archive.
23452old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23453
23454# Create a temporary old-style archive to link instead of a shared archive.
23455old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23456
23457# Commands used to build and install a shared archive.
23458archive_cmds=$lt_archive_cmds_F77
23459archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23460postinstall_cmds=$lt_postinstall_cmds
23461postuninstall_cmds=$lt_postuninstall_cmds
23462
23463# Commands used to build a loadable module (assumed same as above if empty)
23464module_cmds=$lt_module_cmds_F77
23465module_expsym_cmds=$lt_module_expsym_cmds_F77
23466
23467# Commands to strip libraries.
23468old_striplib=$lt_old_striplib
23469striplib=$lt_striplib
23470
23471# Dependencies to place before the objects being linked to create a
23472# shared library.
23473predep_objects=$lt_predep_objects_F77
23474
23475# Dependencies to place after the objects being linked to create a
23476# shared library.
23477postdep_objects=$lt_postdep_objects_F77
23478
23479# Dependencies to place before the objects being linked to create a
23480# shared library.
23481predeps=$lt_predeps_F77
23482
23483# Dependencies to place after the objects being linked to create a
23484# shared library.
23485postdeps=$lt_postdeps_F77
23486
23487# The library search path used internally by the compiler when linking
23488# a shared library.
23489compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23490
23491# Method to check whether dependent libraries are shared objects.
23492deplibs_check_method=$lt_deplibs_check_method
23493
23494# Command to use when deplibs_check_method == file_magic.
23495file_magic_cmd=$lt_file_magic_cmd
23496
23497# Flag that allows shared libraries with undefined symbols to be built.
23498allow_undefined_flag=$lt_allow_undefined_flag_F77
23499
23500# Flag that forces no undefined symbols.
23501no_undefined_flag=$lt_no_undefined_flag_F77
23502
23503# Commands used to finish a libtool library installation in a directory.
23504finish_cmds=$lt_finish_cmds
23505
23506# Same as above, but a single script fragment to be evaled but not shown.
23507finish_eval=$lt_finish_eval
23508
23509# Take the output of nm and produce a listing of raw symbols and C names.
23510global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23511
23512# Transform the output of nm in a proper C declaration
23513global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23514
23515# Transform the output of nm in a C name address pair
23516global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23517
23518# This is the shared library runtime path variable.
23519runpath_var=$runpath_var
23520
23521# This is the shared library path variable.
23522shlibpath_var=$shlibpath_var
23523
23524# Is shlibpath searched before the hard-coded library search path?
23525shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23526
23527# How to hardcode a shared library path into an executable.
23528hardcode_action=$hardcode_action_F77
23529
23530# Whether we should hardcode library paths into libraries.
23531hardcode_into_libs=$hardcode_into_libs
23532
23533# Flag to hardcode \$libdir into a binary during linking.
23534# This must work even if \$libdir does not exist.
23535hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23536
23537# If ld is used when linking, flag to hardcode \$libdir into
23538# a binary during linking. This must work even if \$libdir does
23539# not exist.
23540hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23541
23542# Whether we need a single -rpath flag with a separated argument.
23543hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23544
23545# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23546# resulting binary.
23547hardcode_direct=$hardcode_direct_F77
23548
23549# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23550# resulting binary.
23551hardcode_minus_L=$hardcode_minus_L_F77
23552
23553# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23554# the resulting binary.
23555hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23556
23557# Set to yes if building a shared library automatically hardcodes DIR into the library
23558# and all subsequent libraries and executables linked against it.
23559hardcode_automatic=$hardcode_automatic_F77
23560
23561# Variables whose values should be saved in libtool wrapper scripts and
23562# restored at relink time.
23563variables_saved_for_relink="$variables_saved_for_relink"
23564
23565# Whether libtool must link a program against all its dependency libraries.
23566link_all_deplibs=$link_all_deplibs_F77
23567
23568# Compile-time system search path for libraries
23569sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23570
23571# Run-time system search path for libraries
23572sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23573
23574# Fix the shell variable \$srcfile for the compiler.
23575fix_srcfile_path="$fix_srcfile_path_F77"
23576
23577# Set to yes if exported symbols are required.
23578always_export_symbols=$always_export_symbols_F77
23579
23580# The commands to list exported symbols.
23581export_symbols_cmds=$lt_export_symbols_cmds_F77
23582
23583# The commands to extract the exported symbol list from a shared archive.
23584extract_expsyms_cmds=$lt_extract_expsyms_cmds
23585
23586# Symbols that should not be listed in the preloaded symbols.
23587exclude_expsyms=$lt_exclude_expsyms_F77
23588
23589# Symbols that must always be exported.
23590include_expsyms=$lt_include_expsyms_F77
23591
23592# ### END LIBTOOL TAG CONFIG: $tagname
23593
23594__EOF__
23595
23596
23597else
23598 # If there is no Makefile yet, we rely on a make rule to execute
23599 # `config.status --recheck' to rerun these tests and create the
23600 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023601 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23602 if test -f "$ltmain_in"; then
23603 test -f Makefile && make "$ltmain"
23604 fi
John Criswell47fdd832003-07-14 16:52:07 +000023605fi
23606
23607
23608ac_ext=c
23609ac_cpp='$CPP $CPPFLAGS'
23610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23612ac_compiler_gnu=$ac_cv_c_compiler_gnu
23613
23614CC="$lt_save_CC"
23615
23616 else
23617 tagname=""
23618 fi
23619 ;;
23620
23621 GCJ)
23622 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023623 ac_ext=c
23624ac_cpp='$CPP $CPPFLAGS'
23625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23627ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023628
23629
23630# Source file extension for Java test sources.
23631ac_ext=java
23632
23633# Object file extension for compiled Java test sources.
23634objext=o
23635objext_GCJ=$objext
23636
23637# Code to be used in simple compile tests
23638lt_simple_compile_test_code="class foo {}\n"
23639
23640# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023641lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023642
23643# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23644
23645# If no C compiler was specified, use CC.
23646LTCC=${LTCC-"$CC"}
23647
Reid Spencera773bd52006-08-04 18:18:08 +000023648# If no C compiler flags were specified, use CFLAGS.
23649LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23650
John Criswell47fdd832003-07-14 16:52:07 +000023651# Allow CC to be a program name with arguments.
23652compiler=$CC
23653
23654
Reid Spencera773bd52006-08-04 18:18:08 +000023655# save warnings/boilerplate of simple test code
23656ac_outfile=conftest.$ac_objext
23657printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23658eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23659_lt_compiler_boilerplate=`cat conftest.err`
23660$rm conftest*
23661
23662ac_outfile=conftest.$ac_objext
23663printf "$lt_simple_link_test_code" >conftest.$ac_ext
23664eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23665_lt_linker_boilerplate=`cat conftest.err`
23666$rm conftest*
23667
23668
John Criswell47fdd832003-07-14 16:52:07 +000023669# Allow CC to be a program name with arguments.
23670lt_save_CC="$CC"
23671CC=${GCJ-"gcj"}
23672compiler=$CC
23673compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023674for cc_temp in $compiler""; do
23675 case $cc_temp in
23676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23678 \-*) ;;
23679 *) break;;
23680 esac
23681done
23682cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23683
John Criswell47fdd832003-07-14 16:52:07 +000023684
23685# GCJ did not exist at the time GCC didn't implicitly link libc in.
23686archive_cmds_need_lc_GCJ=no
23687
Reid Spencera773bd52006-08-04 18:18:08 +000023688old_archive_cmds_GCJ=$old_archive_cmds
23689
John Criswell47fdd832003-07-14 16:52:07 +000023690
23691lt_prog_compiler_no_builtin_flag_GCJ=
23692
23693if test "$GCC" = yes; then
23694 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23695
Reid Spencer2706f8c2004-09-19 23:53:36 +000023696
Reid Spencera773bd52006-08-04 18:18:08 +000023697{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23698echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023699if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23700 echo $ECHO_N "(cached) $ECHO_C" >&6
23701else
23702 lt_cv_prog_compiler_rtti_exceptions=no
23703 ac_outfile=conftest.$ac_objext
23704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23705 lt_compiler_flag="-fno-rtti -fno-exceptions"
23706 # Insert the option either (1) after the last *FLAGS variable, or
23707 # (2) before a word containing "conftest.", or (3) at the end.
23708 # Note that $ac_compile itself does not contain backslashes and begins
23709 # with a dollar sign (not a hyphen), so the echo should work correctly.
23710 # The option is referenced via a variable to avoid confusing sed.
23711 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23714 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenf0915682007-10-02 16:42:22 +000023715 (eval echo "\"\$as_me:23715: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023716 (eval "$lt_compile" 2>conftest.err)
23717 ac_status=$?
23718 cat conftest.err >&5
Gordon Henriksenf0915682007-10-02 16:42:22 +000023719 echo "$as_me:23719: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023720 if (exit $ac_status) && test -s "$ac_outfile"; then
23721 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023722 # So say no if there are warnings other than the usual output.
23723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023726 lt_cv_prog_compiler_rtti_exceptions=yes
23727 fi
23728 fi
23729 $rm conftest*
23730
23731fi
Reid Spencera773bd52006-08-04 18:18:08 +000023732{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23733echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023734
23735if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23736 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23737else
23738 :
23739fi
23740
23741fi
23742
23743lt_prog_compiler_wl_GCJ=
23744lt_prog_compiler_pic_GCJ=
23745lt_prog_compiler_static_GCJ=
23746
Reid Spencera773bd52006-08-04 18:18:08 +000023747{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23748echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023749
23750 if test "$GCC" = yes; then
23751 lt_prog_compiler_wl_GCJ='-Wl,'
23752 lt_prog_compiler_static_GCJ='-static'
23753
23754 case $host_os in
23755 aix*)
23756 # All AIX code is PIC.
23757 if test "$host_cpu" = ia64; then
23758 # AIX 5 now supports IA64 processor
23759 lt_prog_compiler_static_GCJ='-Bstatic'
23760 fi
23761 ;;
23762
23763 amigaos*)
23764 # FIXME: we need at least 68020 code to build shared libraries, but
23765 # adding the `-m68020' flag to GCC prevents building anything better,
23766 # like `-m68040'.
23767 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23768 ;;
23769
23770 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23771 # PIC is the default for these OSes.
23772 ;;
23773
23774 mingw* | pw32* | os2*)
23775 # This hack is so that the source file can tell whether it is being
23776 # built for inclusion in a dll (and should export symbols for example).
23777 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23778 ;;
23779
23780 darwin* | rhapsody*)
23781 # PIC is the default on this platform
23782 # Common symbols not allowed in MH_DYLIB files
23783 lt_prog_compiler_pic_GCJ='-fno-common'
23784 ;;
23785
Reid Spencera773bd52006-08-04 18:18:08 +000023786 interix3*)
23787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23788 # Instead, we relocate shared libraries at runtime.
23789 ;;
23790
John Criswell47fdd832003-07-14 16:52:07 +000023791 msdosdjgpp*)
23792 # Just because we use GCC doesn't mean we suddenly get shared libraries
23793 # on systems that don't support them.
23794 lt_prog_compiler_can_build_shared_GCJ=no
23795 enable_shared=no
23796 ;;
23797
23798 sysv4*MP*)
23799 if test -d /usr/nec; then
23800 lt_prog_compiler_pic_GCJ=-Kconform_pic
23801 fi
23802 ;;
23803
23804 hpux*)
23805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23806 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023807 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023808 hppa*64*|ia64*)
23809 # +Z the default
23810 ;;
23811 *)
23812 lt_prog_compiler_pic_GCJ='-fPIC'
23813 ;;
23814 esac
23815 ;;
23816
23817 *)
23818 lt_prog_compiler_pic_GCJ='-fPIC'
23819 ;;
23820 esac
23821 else
23822 # PORTME Check for flag to pass linker flags through the system compiler.
23823 case $host_os in
23824 aix*)
23825 lt_prog_compiler_wl_GCJ='-Wl,'
23826 if test "$host_cpu" = ia64; then
23827 # AIX 5 now supports IA64 processor
23828 lt_prog_compiler_static_GCJ='-Bstatic'
23829 else
23830 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23831 fi
23832 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023833 darwin*)
23834 # PIC is the default on this platform
23835 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023836 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023837 xlc*)
23838 lt_prog_compiler_pic_GCJ='-qnocommon'
23839 lt_prog_compiler_wl_GCJ='-Wl,'
23840 ;;
23841 esac
23842 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023843
23844 mingw* | pw32* | os2*)
23845 # This hack is so that the source file can tell whether it is being
23846 # built for inclusion in a dll (and should export symbols for example).
23847 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23848 ;;
23849
23850 hpux9* | hpux10* | hpux11*)
23851 lt_prog_compiler_wl_GCJ='-Wl,'
23852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23853 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023854 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023855 hppa*64*|ia64*)
23856 # +Z the default
23857 ;;
23858 *)
23859 lt_prog_compiler_pic_GCJ='+Z'
23860 ;;
23861 esac
23862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23863 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23864 ;;
23865
23866 irix5* | irix6* | nonstopux*)
23867 lt_prog_compiler_wl_GCJ='-Wl,'
23868 # PIC (with -KPIC) is the default.
23869 lt_prog_compiler_static_GCJ='-non_shared'
23870 ;;
23871
23872 newsos6)
23873 lt_prog_compiler_pic_GCJ='-KPIC'
23874 lt_prog_compiler_static_GCJ='-Bstatic'
23875 ;;
23876
23877 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023878 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023879 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023880 lt_prog_compiler_wl_GCJ='-Wl,'
23881 lt_prog_compiler_pic_GCJ='-KPIC'
23882 lt_prog_compiler_static_GCJ='-static'
23883 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023884 pgcc* | pgf77* | pgf90* | pgf95*)
23885 # Portland Group compilers (*not* the Pentium gcc compiler,
23886 # which looks to be a dead project)
23887 lt_prog_compiler_wl_GCJ='-Wl,'
23888 lt_prog_compiler_pic_GCJ='-fpic'
23889 lt_prog_compiler_static_GCJ='-Bstatic'
23890 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023891 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023892 lt_prog_compiler_wl_GCJ='-Wl,'
23893 # All Alpha code is PIC.
23894 lt_prog_compiler_static_GCJ='-non_shared'
23895 ;;
23896 esac
23897 ;;
23898
23899 osf3* | osf4* | osf5*)
23900 lt_prog_compiler_wl_GCJ='-Wl,'
23901 # All OSF/1 code is PIC.
23902 lt_prog_compiler_static_GCJ='-non_shared'
23903 ;;
23904
John Criswell47fdd832003-07-14 16:52:07 +000023905 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023906 lt_prog_compiler_pic_GCJ='-KPIC'
23907 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023908 case $cc_basename in
23909 f77* | f90* | f95*)
23910 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23911 *)
23912 lt_prog_compiler_wl_GCJ='-Wl,';;
23913 esac
John Criswell47fdd832003-07-14 16:52:07 +000023914 ;;
23915
23916 sunos4*)
23917 lt_prog_compiler_wl_GCJ='-Qoption ld '
23918 lt_prog_compiler_pic_GCJ='-PIC'
23919 lt_prog_compiler_static_GCJ='-Bstatic'
23920 ;;
23921
Reid Spencera773bd52006-08-04 18:18:08 +000023922 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023923 lt_prog_compiler_wl_GCJ='-Wl,'
23924 lt_prog_compiler_pic_GCJ='-KPIC'
23925 lt_prog_compiler_static_GCJ='-Bstatic'
23926 ;;
23927
23928 sysv4*MP*)
23929 if test -d /usr/nec ;then
23930 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23931 lt_prog_compiler_static_GCJ='-Bstatic'
23932 fi
23933 ;;
23934
Reid Spencera773bd52006-08-04 18:18:08 +000023935 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23936 lt_prog_compiler_wl_GCJ='-Wl,'
23937 lt_prog_compiler_pic_GCJ='-KPIC'
23938 lt_prog_compiler_static_GCJ='-Bstatic'
23939 ;;
23940
23941 unicos*)
23942 lt_prog_compiler_wl_GCJ='-Wl,'
23943 lt_prog_compiler_can_build_shared_GCJ=no
23944 ;;
23945
John Criswell47fdd832003-07-14 16:52:07 +000023946 uts4*)
23947 lt_prog_compiler_pic_GCJ='-pic'
23948 lt_prog_compiler_static_GCJ='-Bstatic'
23949 ;;
23950
23951 *)
23952 lt_prog_compiler_can_build_shared_GCJ=no
23953 ;;
23954 esac
23955 fi
23956
Reid Spencera773bd52006-08-04 18:18:08 +000023957{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23958echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023959
23960#
23961# Check to make sure the PIC flag actually works.
23962#
23963if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023964
Reid Spencera773bd52006-08-04 18:18:08 +000023965{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23966echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023967if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23968 echo $ECHO_N "(cached) $ECHO_C" >&6
23969else
23970 lt_prog_compiler_pic_works_GCJ=no
23971 ac_outfile=conftest.$ac_objext
23972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23973 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23974 # Insert the option either (1) after the last *FLAGS variable, or
23975 # (2) before a word containing "conftest.", or (3) at the end.
23976 # Note that $ac_compile itself does not contain backslashes and begins
23977 # with a dollar sign (not a hyphen), so the echo should work correctly.
23978 # The option is referenced via a variable to avoid confusing sed.
23979 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23982 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenf0915682007-10-02 16:42:22 +000023983 (eval echo "\"\$as_me:23983: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023984 (eval "$lt_compile" 2>conftest.err)
23985 ac_status=$?
23986 cat conftest.err >&5
Gordon Henriksenf0915682007-10-02 16:42:22 +000023987 echo "$as_me:23987: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023988 if (exit $ac_status) && test -s "$ac_outfile"; then
23989 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023990 # So say no if there are warnings other than the usual output.
23991 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023994 lt_prog_compiler_pic_works_GCJ=yes
23995 fi
23996 fi
23997 $rm conftest*
23998
23999fi
Reid Spencera773bd52006-08-04 18:18:08 +000024000{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24001echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024002
24003if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24004 case $lt_prog_compiler_pic_GCJ in
24005 "" | " "*) ;;
24006 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24007 esac
24008else
24009 lt_prog_compiler_pic_GCJ=
24010 lt_prog_compiler_can_build_shared_GCJ=no
24011fi
24012
24013fi
Reid Spencera773bd52006-08-04 18:18:08 +000024014case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024015 # For platforms which do not support PIC, -DPIC is meaningless:
24016 *djgpp*)
24017 lt_prog_compiler_pic_GCJ=
24018 ;;
24019 *)
24020 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24021 ;;
24022esac
24023
Reid Spencera773bd52006-08-04 18:18:08 +000024024#
24025# Check to make sure the static flag actually works.
24026#
24027wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24028{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24029echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24030if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24031 echo $ECHO_N "(cached) $ECHO_C" >&6
24032else
24033 lt_prog_compiler_static_works_GCJ=no
24034 save_LDFLAGS="$LDFLAGS"
24035 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24036 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24038 # The linker can only warn and ignore the option if not recognized
24039 # So say no if there are warnings
24040 if test -s conftest.err; then
24041 # Append any errors to the config.log.
24042 cat conftest.err 1>&5
24043 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24045 if diff conftest.exp conftest.er2 >/dev/null; then
24046 lt_prog_compiler_static_works_GCJ=yes
24047 fi
24048 else
24049 lt_prog_compiler_static_works_GCJ=yes
24050 fi
24051 fi
24052 $rm conftest*
24053 LDFLAGS="$save_LDFLAGS"
24054
24055fi
24056{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24057echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24058
24059if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24060 :
24061else
24062 lt_prog_compiler_static_GCJ=
24063fi
24064
24065
24066{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24067echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024068if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24070else
24071 lt_cv_prog_compiler_c_o_GCJ=no
24072 $rm -r conftest 2>/dev/null
24073 mkdir conftest
24074 cd conftest
24075 mkdir out
24076 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24077
John Criswell47fdd832003-07-14 16:52:07 +000024078 lt_compiler_flag="-o out/conftest2.$ac_objext"
24079 # Insert the option either (1) after the last *FLAGS variable, or
24080 # (2) before a word containing "conftest.", or (3) at the end.
24081 # Note that $ac_compile itself does not contain backslashes and begins
24082 # with a dollar sign (not a hyphen), so the echo should work correctly.
24083 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24086 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksenf0915682007-10-02 16:42:22 +000024087 (eval echo "\"\$as_me:24087: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024088 (eval "$lt_compile" 2>out/conftest.err)
24089 ac_status=$?
24090 cat out/conftest.err >&5
Gordon Henriksenf0915682007-10-02 16:42:22 +000024091 echo "$as_me:24091: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24093 then
24094 # The compiler can only warn and ignore the option if not recognized
24095 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024096 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024099 lt_cv_prog_compiler_c_o_GCJ=yes
24100 fi
24101 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024102 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024103 $rm conftest*
24104 # SGI C++ compiler will create directory out/ii_files/ for
24105 # template instantiation
24106 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24107 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024108 cd ..
24109 rmdir conftest
24110 $rm conftest*
24111
24112fi
Reid Spencera773bd52006-08-04 18:18:08 +000024113{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24114echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024115
24116
24117hard_links="nottested"
24118if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24119 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024120 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24121echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024122 hard_links=yes
24123 $rm conftest*
24124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24125 touch conftest.a
24126 ln conftest.a conftest.b 2>&5 || hard_links=no
24127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024128 { echo "$as_me:$LINENO: result: $hard_links" >&5
24129echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024130 if test "$hard_links" = no; then
24131 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24132echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24133 need_locks=warn
24134 fi
24135else
24136 need_locks=no
24137fi
24138
Reid Spencera773bd52006-08-04 18:18:08 +000024139{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24140echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024141
24142 runpath_var=
24143 allow_undefined_flag_GCJ=
24144 enable_shared_with_static_runtimes_GCJ=no
24145 archive_cmds_GCJ=
24146 archive_expsym_cmds_GCJ=
24147 old_archive_From_new_cmds_GCJ=
24148 old_archive_from_expsyms_cmds_GCJ=
24149 export_dynamic_flag_spec_GCJ=
24150 whole_archive_flag_spec_GCJ=
24151 thread_safe_flag_spec_GCJ=
24152 hardcode_libdir_flag_spec_GCJ=
24153 hardcode_libdir_flag_spec_ld_GCJ=
24154 hardcode_libdir_separator_GCJ=
24155 hardcode_direct_GCJ=no
24156 hardcode_minus_L_GCJ=no
24157 hardcode_shlibpath_var_GCJ=unsupported
24158 link_all_deplibs_GCJ=unknown
24159 hardcode_automatic_GCJ=no
24160 module_cmds_GCJ=
24161 module_expsym_cmds_GCJ=
24162 always_export_symbols_GCJ=no
24163 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24164 # include_expsyms should be a list of space-separated symbols to be *always*
24165 # included in the symbol list
24166 include_expsyms_GCJ=
24167 # exclude_expsyms can be an extended regexp of symbols to exclude
24168 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24169 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24170 # as well as any symbol that contains `d'.
24171 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24172 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24173 # platforms (ab)use it in PIC code, but their linkers get confused if
24174 # the symbol is explicitly referenced. Since portable code cannot
24175 # rely on this symbol name, it's probably fine to never include it in
24176 # preloaded symbol tables.
24177 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024178 # Just being paranoid about ensuring that cc_basename is set.
24179 for cc_temp in $compiler""; do
24180 case $cc_temp in
24181 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24182 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24183 \-*) ;;
24184 *) break;;
24185 esac
24186done
24187cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024188
24189 case $host_os in
24190 cygwin* | mingw* | pw32*)
24191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24192 # When not using gcc, we currently assume that we are using
24193 # Microsoft Visual C++.
24194 if test "$GCC" != yes; then
24195 with_gnu_ld=no
24196 fi
24197 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024198 interix*)
24199 # we just hope/assume this is gcc and not c89 (= MSVC++)
24200 with_gnu_ld=yes
24201 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024202 openbsd*)
24203 with_gnu_ld=no
24204 ;;
24205 esac
24206
24207 ld_shlibs_GCJ=yes
24208 if test "$with_gnu_ld" = yes; then
24209 # If archive_cmds runs LD, not CC, wlarc should be empty
24210 wlarc='${wl}'
24211
Reid Spencera773bd52006-08-04 18:18:08 +000024212 # Set some defaults for GNU ld with shared library support. These
24213 # are reset later if shared libraries are not supported. Putting them
24214 # here allows them to be overridden if necessary.
24215 runpath_var=LD_RUN_PATH
24216 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24217 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24218 # ancient GNU ld didn't support --whole-archive et. al.
24219 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24220 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24221 else
24222 whole_archive_flag_spec_GCJ=
24223 fi
24224 supports_anon_versioning=no
24225 case `$LD -v 2>/dev/null` in
24226 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24229 *\ 2.11.*) ;; # other 2.11 versions
24230 *) supports_anon_versioning=yes ;;
24231 esac
24232
John Criswell47fdd832003-07-14 16:52:07 +000024233 # See if GNU ld supports shared libraries.
24234 case $host_os in
24235 aix3* | aix4* | aix5*)
24236 # On AIX/PPC, the GNU linker is very broken
24237 if test "$host_cpu" != ia64; then
24238 ld_shlibs_GCJ=no
24239 cat <<EOF 1>&2
24240
24241*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24242*** to be unable to reliably create shared libraries on AIX.
24243*** Therefore, libtool is disabling shared libraries support. If you
24244*** really care for shared libraries, you may want to modify your PATH
24245*** so that a non-GNU linker is found, and then restart.
24246
24247EOF
24248 fi
24249 ;;
24250
24251 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024252 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 +000024253 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24254 hardcode_minus_L_GCJ=yes
24255
24256 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24257 # that the semantics of dynamic libraries on AmigaOS, at least up
24258 # to version 4, is to share data among multiple programs linked
24259 # with the same dynamic library. Since this doesn't match the
24260 # behavior of shared libraries on other platforms, we can't use
24261 # them.
24262 ld_shlibs_GCJ=no
24263 ;;
24264
24265 beos*)
24266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24267 allow_undefined_flag_GCJ=unsupported
24268 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24269 # support --undefined. This deserves some investigation. FIXME
24270 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24271 else
24272 ld_shlibs_GCJ=no
24273 fi
24274 ;;
24275
24276 cygwin* | mingw* | pw32*)
24277 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24278 # as there is no search path for DLLs.
24279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24280 allow_undefined_flag_GCJ=unsupported
24281 always_export_symbols_GCJ=no
24282 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024283 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 +000024284
24285 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024286 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 +000024287 # If the export-symbols file already is a .def file (1st line
24288 # is EXPORTS), use it as is; otherwise, prepend...
24289 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24290 cp $export_symbols $output_objdir/$soname.def;
24291 else
24292 echo EXPORTS > $output_objdir/$soname.def;
24293 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024294 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024295 $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 +000024296 else
Reid Spencera773bd52006-08-04 18:18:08 +000024297 ld_shlibs_GCJ=no
24298 fi
24299 ;;
24300
24301 interix3*)
24302 hardcode_direct_GCJ=no
24303 hardcode_shlibpath_var_GCJ=no
24304 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24305 export_dynamic_flag_spec_GCJ='${wl}-E'
24306 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24307 # Instead, shared libraries are loaded at an image base (0x10000000 by
24308 # default) and relocated if they conflict, which is a slow very memory
24309 # consuming and fragmenting process. To avoid this, we pick a random,
24310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24311 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24312 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'
24313 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'
24314 ;;
24315
24316 linux*)
24317 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24318 tmp_addflag=
24319 case $cc_basename,$host_cpu in
24320 pgcc*) # Portland Group C compiler
24321 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'
24322 tmp_addflag=' $pic_flag'
24323 ;;
24324 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24325 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'
24326 tmp_addflag=' $pic_flag -Mnomain' ;;
24327 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24328 tmp_addflag=' -i_dynamic' ;;
24329 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24330 tmp_addflag=' -i_dynamic -nofor_main' ;;
24331 ifc* | ifort*) # Intel Fortran compiler
24332 tmp_addflag=' -nofor_main' ;;
24333 esac
24334 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24335
24336 if test $supports_anon_versioning = yes; then
24337 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24339 $echo "local: *; };" >> $output_objdir/$libname.ver~
24340 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24341 fi
24342 else
24343 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024344 fi
24345 ;;
24346
24347 netbsd*)
24348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24349 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24350 wlarc=
24351 else
24352 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24353 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24354 fi
24355 ;;
24356
Reid Spencera773bd52006-08-04 18:18:08 +000024357 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024358 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24359 ld_shlibs_GCJ=no
24360 cat <<EOF 1>&2
24361
24362*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24363*** create shared libraries on Solaris systems. Therefore, libtool
24364*** is disabling shared libraries support. We urge you to upgrade GNU
24365*** binutils to release 2.9.1 or newer. Another option is to modify
24366*** your PATH or compiler configuration so that the native linker is
24367*** used, and then restart.
24368
24369EOF
24370 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24371 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24372 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24373 else
24374 ld_shlibs_GCJ=no
24375 fi
24376 ;;
24377
Reid Spencera773bd52006-08-04 18:18:08 +000024378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24379 case `$LD -v 2>&1` in
24380 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24381 ld_shlibs_GCJ=no
24382 cat <<_LT_EOF 1>&2
24383
24384*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24385*** reliably create shared libraries on SCO systems. Therefore, libtool
24386*** is disabling shared libraries support. We urge you to upgrade GNU
24387*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24388*** your PATH or compiler configuration so that the native linker is
24389*** used, and then restart.
24390
24391_LT_EOF
24392 ;;
24393 *)
24394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24395 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24396 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24397 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24398 else
24399 ld_shlibs_GCJ=no
24400 fi
24401 ;;
24402 esac
24403 ;;
24404
John Criswell47fdd832003-07-14 16:52:07 +000024405 sunos4*)
24406 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24407 wlarc=
24408 hardcode_direct_GCJ=yes
24409 hardcode_shlibpath_var_GCJ=no
24410 ;;
24411
24412 *)
24413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24414 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24415 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24416 else
24417 ld_shlibs_GCJ=no
24418 fi
24419 ;;
24420 esac
24421
Reid Spencera773bd52006-08-04 18:18:08 +000024422 if test "$ld_shlibs_GCJ" = no; then
24423 runpath_var=
24424 hardcode_libdir_flag_spec_GCJ=
24425 export_dynamic_flag_spec_GCJ=
24426 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024427 fi
24428 else
24429 # PORTME fill in a description of your system's linker (not GNU ld)
24430 case $host_os in
24431 aix3*)
24432 allow_undefined_flag_GCJ=unsupported
24433 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024434 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 +000024435 # Note: this linker hardcodes the directories in LIBPATH if there
24436 # are no directories specified by -L.
24437 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024439 # Neither direct hardcoding nor static linking is supported with a
24440 # broken collect2.
24441 hardcode_direct_GCJ=unsupported
24442 fi
24443 ;;
24444
24445 aix4* | aix5*)
24446 if test "$host_cpu" = ia64; then
24447 # On IA64, the linker does run time linking by default, so we don't
24448 # have to do anything special.
24449 aix_use_runtimelinking=no
24450 exp_sym_flag='-Bexport'
24451 no_entry_flag=""
24452 else
24453 # If we're using GNU nm, then we don't want the "-C" option.
24454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24455 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24456 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'
24457 else
24458 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'
24459 fi
24460 aix_use_runtimelinking=no
24461
24462 # Test if we are trying to use run time linking or normal
24463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24464 # need to do runtime linking.
24465 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24466 for ld_flag in $LDFLAGS; do
24467 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24468 aix_use_runtimelinking=yes
24469 break
24470 fi
24471 done
Reid Spencera773bd52006-08-04 18:18:08 +000024472 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024473 esac
24474
24475 exp_sym_flag='-bexport'
24476 no_entry_flag='-bnoentry'
24477 fi
24478
24479 # When large executables or shared objects are built, AIX ld can
24480 # have problems creating the table of contents. If linking a library
24481 # or program results in "error TOC overflow" add -mminimal-toc to
24482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24484
24485 archive_cmds_GCJ=''
24486 hardcode_direct_GCJ=yes
24487 hardcode_libdir_separator_GCJ=':'
24488 link_all_deplibs_GCJ=yes
24489
24490 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024491 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024492 # We only want to do this on AIX 4.2 and lower, the check
24493 # below for broken collect2 doesn't work under 4.3+
24494 collect2name=`${CC} -print-prog-name=collect2`
24495 if test -f "$collect2name" && \
24496 strings "$collect2name" | grep resolve_lib_name >/dev/null
24497 then
24498 # We have reworked collect2
24499 hardcode_direct_GCJ=yes
24500 else
24501 # We have old collect2
24502 hardcode_direct_GCJ=unsupported
24503 # It fails to find uninstalled libraries when the uninstalled
24504 # path is not listed in the libpath. Setting hardcode_minus_L
24505 # to unsupported forces relinking
24506 hardcode_minus_L_GCJ=yes
24507 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24508 hardcode_libdir_separator_GCJ=
24509 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024510 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024511 esac
24512 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024513 if test "$aix_use_runtimelinking" = yes; then
24514 shared_flag="$shared_flag "'${wl}-G'
24515 fi
John Criswell47fdd832003-07-14 16:52:07 +000024516 else
24517 # not using gcc
24518 if test "$host_cpu" = ia64; then
24519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24520 # chokes on -Wl,-G. The following line is correct:
24521 shared_flag='-G'
24522 else
Reid Spencera773bd52006-08-04 18:18:08 +000024523 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024524 shared_flag='${wl}-G'
24525 else
24526 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024527 fi
John Criswell47fdd832003-07-14 16:52:07 +000024528 fi
24529 fi
24530
24531 # It seems that -bexpall does not export symbols beginning with
24532 # underscore (_), so it is better to generate a list of symbols to export.
24533 always_export_symbols_GCJ=yes
24534 if test "$aix_use_runtimelinking" = yes; then
24535 # Warning - without using the other runtime loading flags (-brtl),
24536 # -berok will link without error, but may produce a broken library.
24537 allow_undefined_flag_GCJ='-berok'
24538 # Determine the default libpath from the value encoded in an empty executable.
24539 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024540/* confdefs.h. */
24541_ACEOF
24542cat confdefs.h >>conftest.$ac_ext
24543cat >>conftest.$ac_ext <<_ACEOF
24544/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024545
John Criswell47fdd832003-07-14 16:52:07 +000024546int
24547main ()
24548{
24549
24550 ;
24551 return 0;
24552}
24553_ACEOF
24554rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024555if { (ac_try="$ac_link"
24556case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24559esac
24560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024562 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024563 grep -v '^ *+' conftest.er1 >conftest.err
24564 rm -f conftest.er1
24565 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24569 { (case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24572esac
24573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024575 ac_status=$?
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; } &&
24578 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024579 { (case "(($ac_try" in
24580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581 *) ac_try_echo=$ac_try;;
24582esac
24583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024585 ac_status=$?
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); }; }; then
24588
24589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24590}'`
24591# Check for a 64-bit object if we didn't find anything.
24592if 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; }
24593}'`; fi
24594else
24595 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024596sed 's/^/| /' conftest.$ac_ext >&5
24597
Reid Spencera773bd52006-08-04 18:18:08 +000024598
John Criswell47fdd832003-07-14 16:52:07 +000024599fi
Reid Spencera773bd52006-08-04 18:18:08 +000024600
24601rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024602 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24604
24605 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024606 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 +000024607 else
24608 if test "$host_cpu" = ia64; then
24609 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24610 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024611 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 +000024612 else
24613 # Determine the default libpath from the value encoded in an empty executable.
24614 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024615/* confdefs.h. */
24616_ACEOF
24617cat confdefs.h >>conftest.$ac_ext
24618cat >>conftest.$ac_ext <<_ACEOF
24619/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024620
John Criswell47fdd832003-07-14 16:52:07 +000024621int
24622main ()
24623{
24624
24625 ;
24626 return 0;
24627}
24628_ACEOF
24629rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024630if { (ac_try="$ac_link"
24631case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24634esac
24635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024637 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024638 grep -v '^ *+' conftest.er1 >conftest.err
24639 rm -f conftest.er1
24640 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24644 { (case "(($ac_try" in
24645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24647esac
24648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24649 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024650 ac_status=$?
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); }; } &&
24653 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024654 { (case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24657esac
24658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024660 ac_status=$?
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; }; then
24663
24664aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24665}'`
24666# Check for a 64-bit object if we didn't find anything.
24667if 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; }
24668}'`; fi
24669else
24670 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024671sed 's/^/| /' conftest.$ac_ext >&5
24672
Reid Spencera773bd52006-08-04 18:18:08 +000024673
John Criswell47fdd832003-07-14 16:52:07 +000024674fi
Reid Spencera773bd52006-08-04 18:18:08 +000024675
24676rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024677 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024678if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24679
24680 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24681 # Warning - without using the other run time loading flags,
24682 # -berok will link without error, but may produce a broken library.
24683 no_undefined_flag_GCJ=' ${wl}-bernotok'
24684 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024685 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024686 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024687 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024688 # This is similar to how AIX traditionally builds its shared libraries.
24689 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 +000024690 fi
24691 fi
24692 ;;
24693
24694 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024695 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 +000024696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24697 hardcode_minus_L_GCJ=yes
24698 # see comment about different semantics on the GNU ld section
24699 ld_shlibs_GCJ=no
24700 ;;
24701
Reid Spencer2706f8c2004-09-19 23:53:36 +000024702 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024703 export_dynamic_flag_spec_GCJ=-rdynamic
24704 ;;
24705
24706 cygwin* | mingw* | pw32*)
24707 # When not using gcc, we currently assume that we are using
24708 # Microsoft Visual C++.
24709 # hardcode_libdir_flag_spec is actually meaningless, as there is
24710 # no search path for DLLs.
24711 hardcode_libdir_flag_spec_GCJ=' '
24712 allow_undefined_flag_GCJ=unsupported
24713 # Tell ltmain to make .lib files, not .a files.
24714 libext=lib
24715 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024716 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024717 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024718 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 +000024719 # The linker will automatically build a .lib file if we build a DLL.
24720 old_archive_From_new_cmds_GCJ='true'
24721 # FIXME: Should let the user specify the lib program.
24722 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024723 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024724 enable_shared_with_static_runtimes_GCJ=yes
24725 ;;
24726
24727 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024728 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024729 rhapsody* | darwin1.[012])
24730 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24731 ;;
24732 *) # Darwin 1.3 on
24733 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24734 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24735 else
24736 case ${MACOSX_DEPLOYMENT_TARGET} in
24737 10.[012])
24738 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24739 ;;
24740 10.*)
24741 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24742 ;;
24743 esac
24744 fi
24745 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024746 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024747 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024748 hardcode_direct_GCJ=no
24749 hardcode_automatic_GCJ=yes
24750 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024751 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024752 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024753 if test "$GCC" = yes ; then
24754 output_verbose_link_cmd='echo'
24755 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24756 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024757 # 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 +000024758 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}'
24759 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 +000024760 else
Reid Spencera773bd52006-08-04 18:18:08 +000024761 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024762 xlc*)
24763 output_verbose_link_cmd='echo'
24764 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24765 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024766 # 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 +000024767 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}'
24768 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 +000024769 ;;
24770 *)
24771 ld_shlibs_GCJ=no
24772 ;;
24773 esac
John Criswell47fdd832003-07-14 16:52:07 +000024774 fi
24775 ;;
24776
24777 dgux*)
24778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24780 hardcode_shlibpath_var_GCJ=no
24781 ;;
24782
24783 freebsd1*)
24784 ld_shlibs_GCJ=no
24785 ;;
24786
24787 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24788 # support. Future versions do this automatically, but an explicit c++rt0.o
24789 # does not break anything, and helps significantly (at the cost of a little
24790 # extra space).
24791 freebsd2.2*)
24792 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24794 hardcode_direct_GCJ=yes
24795 hardcode_shlibpath_var_GCJ=no
24796 ;;
24797
24798 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24799 freebsd2*)
24800 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24801 hardcode_direct_GCJ=yes
24802 hardcode_minus_L_GCJ=yes
24803 hardcode_shlibpath_var_GCJ=no
24804 ;;
24805
24806 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024807 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024808 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24810 hardcode_direct_GCJ=yes
24811 hardcode_shlibpath_var_GCJ=no
24812 ;;
24813
24814 hpux9*)
24815 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024816 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 +000024817 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024818 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 +000024819 fi
24820 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24821 hardcode_libdir_separator_GCJ=:
24822 hardcode_direct_GCJ=yes
24823
24824 # hardcode_minus_L: Not really in the search PATH,
24825 # but as the default location of the library.
24826 hardcode_minus_L_GCJ=yes
24827 export_dynamic_flag_spec_GCJ='${wl}-E'
24828 ;;
24829
Reid Spencera773bd52006-08-04 18:18:08 +000024830 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024831 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024832 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24833 else
24834 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24835 fi
24836 if test "$with_gnu_ld" = no; then
24837 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24838 hardcode_libdir_separator_GCJ=:
24839
24840 hardcode_direct_GCJ=yes
24841 export_dynamic_flag_spec_GCJ='${wl}-E'
24842
24843 # hardcode_minus_L: Not really in the search PATH,
24844 # but as the default location of the library.
24845 hardcode_minus_L_GCJ=yes
24846 fi
24847 ;;
24848
24849 hpux11*)
24850 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24851 case $host_cpu in
24852 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024853 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24854 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024855 ia64*)
24856 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24857 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024858 *)
24859 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24860 ;;
24861 esac
24862 else
Reid Spencera773bd52006-08-04 18:18:08 +000024863 case $host_cpu in
24864 hppa*64*)
24865 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24866 ;;
24867 ia64*)
24868 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024869 ;;
24870 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024871 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 +000024872 ;;
24873 esac
24874 fi
24875 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024876 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24877 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024878
Reid Spencera773bd52006-08-04 18:18:08 +000024879 case $host_cpu in
24880 hppa*64*|ia64*)
24881 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24882 hardcode_direct_GCJ=no
24883 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024884 ;;
24885 *)
John Criswell47fdd832003-07-14 16:52:07 +000024886 hardcode_direct_GCJ=yes
24887 export_dynamic_flag_spec_GCJ='${wl}-E'
24888
24889 # hardcode_minus_L: Not really in the search PATH,
24890 # but as the default location of the library.
24891 hardcode_minus_L_GCJ=yes
24892 ;;
24893 esac
24894 fi
24895 ;;
24896
24897 irix5* | irix6* | nonstopux*)
24898 if test "$GCC" = yes; then
24899 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'
24900 else
24901 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'
24902 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24903 fi
24904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24905 hardcode_libdir_separator_GCJ=:
24906 link_all_deplibs_GCJ=yes
24907 ;;
24908
24909 netbsd*)
24910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24912 else
24913 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24914 fi
24915 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24916 hardcode_direct_GCJ=yes
24917 hardcode_shlibpath_var_GCJ=no
24918 ;;
24919
24920 newsos6)
24921 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24922 hardcode_direct_GCJ=yes
24923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24924 hardcode_libdir_separator_GCJ=:
24925 hardcode_shlibpath_var_GCJ=no
24926 ;;
24927
24928 openbsd*)
24929 hardcode_direct_GCJ=yes
24930 hardcode_shlibpath_var_GCJ=no
24931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24932 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024933 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 +000024934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24935 export_dynamic_flag_spec_GCJ='${wl}-E'
24936 else
24937 case $host_os in
24938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24941 ;;
24942 *)
24943 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24945 ;;
24946 esac
24947 fi
24948 ;;
24949
24950 os2*)
24951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24952 hardcode_minus_L_GCJ=yes
24953 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024954 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 +000024955 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24956 ;;
24957
24958 osf3*)
24959 if test "$GCC" = yes; then
24960 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24961 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'
24962 else
24963 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24964 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'
24965 fi
24966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24967 hardcode_libdir_separator_GCJ=:
24968 ;;
24969
24970 osf4* | osf5*) # as osf3* with the addition of -msym flag
24971 if test "$GCC" = yes; then
24972 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24973 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'
24974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24975 else
24976 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24977 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 +000024978 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 +000024979 $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 +000024980
John Criswell47fdd832003-07-14 16:52:07 +000024981 # Both c and cxx compiler support -rpath directly
24982 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24983 fi
24984 hardcode_libdir_separator_GCJ=:
24985 ;;
24986
John Criswell47fdd832003-07-14 16:52:07 +000024987 solaris*)
24988 no_undefined_flag_GCJ=' -z text'
24989 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024990 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024991 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024992 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24993 $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 +000024994 else
Reid Spencera773bd52006-08-04 18:18:08 +000024995 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024996 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024997 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24998 $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 +000024999 fi
25000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25001 hardcode_shlibpath_var_GCJ=no
25002 case $host_os in
25003 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025004 *)
25005 # The compiler driver will combine linker options so we
25006 # cannot just pass the convience library names through
25007 # without $wl, iff we do not link with $LD.
25008 # Luckily, gcc supports the same syntax we need for Sun Studio.
25009 # Supported since Solaris 2.6 (maybe 2.5.1?)
25010 case $wlarc in
25011 '')
25012 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25013 *)
25014 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' ;;
25015 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025016 esac
25017 link_all_deplibs_GCJ=yes
25018 ;;
25019
25020 sunos4*)
25021 if test "x$host_vendor" = xsequent; then
25022 # Use $CC to link under sequent, because it throws in some extra .o
25023 # files that make .init and .fini sections work.
25024 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25025 else
25026 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25027 fi
25028 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25029 hardcode_direct_GCJ=yes
25030 hardcode_minus_L_GCJ=yes
25031 hardcode_shlibpath_var_GCJ=no
25032 ;;
25033
25034 sysv4)
25035 case $host_vendor in
25036 sni)
25037 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25038 hardcode_direct_GCJ=yes # is this really true???
25039 ;;
25040 siemens)
25041 ## LD is ld it makes a PLAMLIB
25042 ## CC just makes a GrossModule.
25043 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25044 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25045 hardcode_direct_GCJ=no
25046 ;;
25047 motorola)
25048 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25049 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25050 ;;
25051 esac
25052 runpath_var='LD_RUN_PATH'
25053 hardcode_shlibpath_var_GCJ=no
25054 ;;
25055
25056 sysv4.3*)
25057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25058 hardcode_shlibpath_var_GCJ=no
25059 export_dynamic_flag_spec_GCJ='-Bexport'
25060 ;;
25061
25062 sysv4*MP*)
25063 if test -d /usr/nec; then
25064 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25065 hardcode_shlibpath_var_GCJ=no
25066 runpath_var=LD_RUN_PATH
25067 hardcode_runpath_var=yes
25068 ld_shlibs_GCJ=yes
25069 fi
25070 ;;
25071
Reid Spencera773bd52006-08-04 18:18:08 +000025072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25073 no_undefined_flag_GCJ='${wl}-z,text'
25074 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025075 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025076 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025077
John Criswell47fdd832003-07-14 16:52:07 +000025078 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025079 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25080 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 +000025081 else
Reid Spencera773bd52006-08-04 18:18:08 +000025082 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25083 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 +000025084 fi
John Criswell47fdd832003-07-14 16:52:07 +000025085 ;;
25086
Reid Spencera773bd52006-08-04 18:18:08 +000025087 sysv5* | sco3.2v5* | sco5v6*)
25088 # Note: We can NOT use -z defs as we might desire, because we do not
25089 # link with -lc, and that would cause any symbols used from libc to
25090 # always be unresolved, which means just about no library would
25091 # ever link correctly. If we're not using GNU ld we use -z text
25092 # though, which does catch some bad symbols but isn't as heavy-handed
25093 # as -z defs.
25094 no_undefined_flag_GCJ='${wl}-z,text'
25095 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25096 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025097 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025098 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25099 hardcode_libdir_separator_GCJ=':'
25100 link_all_deplibs_GCJ=yes
25101 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025102 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025103
25104 if test "$GCC" = yes; then
25105 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25106 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25107 else
25108 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25109 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25110 fi
John Criswell47fdd832003-07-14 16:52:07 +000025111 ;;
25112
25113 uts4*)
25114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25115 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25116 hardcode_shlibpath_var_GCJ=no
25117 ;;
25118
25119 *)
25120 ld_shlibs_GCJ=no
25121 ;;
25122 esac
25123 fi
25124
Reid Spencera773bd52006-08-04 18:18:08 +000025125{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25126echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025127test "$ld_shlibs_GCJ" = no && can_build_shared=no
25128
John Criswell47fdd832003-07-14 16:52:07 +000025129#
25130# Do we need to explicitly link libc?
25131#
25132case "x$archive_cmds_need_lc_GCJ" in
25133x|xyes)
25134 # Assume -lc should be added
25135 archive_cmds_need_lc_GCJ=yes
25136
25137 if test "$enable_shared" = yes && test "$GCC" = yes; then
25138 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025139 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025140 # FIXME: we may have to deal with multi-command sequences.
25141 ;;
25142 '$CC '*)
25143 # Test whether the compiler implicitly links with -lc since on some
25144 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25145 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025146 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25147echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025148 $rm conftest*
25149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25150
25151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25152 (eval $ac_compile) 2>&5
25153 ac_status=$?
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } 2>conftest.err; then
25156 soname=conftest
25157 lib=conftest
25158 libobjs=conftest.$ac_objext
25159 deplibs=
25160 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025161 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025162 compiler_flags=-v
25163 linker_flags=-v
25164 verstring=
25165 output_objdir=.
25166 libname=conftest
25167 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25168 allow_undefined_flag_GCJ=
25169 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25170 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }
25174 then
25175 archive_cmds_need_lc_GCJ=no
25176 else
25177 archive_cmds_need_lc_GCJ=yes
25178 fi
25179 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25180 else
25181 cat conftest.err 1>&5
25182 fi
25183 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025184 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25185echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025186 ;;
25187 esac
25188 fi
25189 ;;
25190esac
25191
Reid Spencera773bd52006-08-04 18:18:08 +000025192{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25193echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025194library_names_spec=
25195libname_spec='lib$name'
25196soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025197shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025198postinstall_cmds=
25199postuninstall_cmds=
25200finish_cmds=
25201finish_eval=
25202shlibpath_var=
25203shlibpath_overrides_runpath=unknown
25204version_type=none
25205dynamic_linker="$host_os ld.so"
25206sys_lib_dlsearch_path_spec="/lib /usr/lib"
25207if test "$GCC" = yes; then
25208 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25209 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25210 # if the path contains ";" then we assume it to be the separator
25211 # otherwise default to the standard path separator (i.e. ":") - it is
25212 # assumed that no part of a normal pathname contains ";" but that should
25213 # okay in the real world where ";" in dirpaths is itself problematic.
25214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25215 else
25216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25217 fi
25218else
25219 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25220fi
25221need_lib_prefix=unknown
25222hardcode_into_libs=no
25223
25224# when you set need_version to no, make sure it does not cause -set_version
25225# flags to be left without arguments
25226need_version=unknown
25227
25228case $host_os in
25229aix3*)
25230 version_type=linux
25231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25232 shlibpath_var=LIBPATH
25233
25234 # AIX 3 has no versioning support, so we append a major version to the name.
25235 soname_spec='${libname}${release}${shared_ext}$major'
25236 ;;
25237
25238aix4* | aix5*)
25239 version_type=linux
25240 need_lib_prefix=no
25241 need_version=no
25242 hardcode_into_libs=yes
25243 if test "$host_cpu" = ia64; then
25244 # AIX 5 supports IA64
25245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25246 shlibpath_var=LD_LIBRARY_PATH
25247 else
25248 # With GCC up to 2.95.x, collect2 would create an import file
25249 # for dependence libraries. The import file would start with
25250 # the line `#! .'. This would cause the generated library to
25251 # depend on `.', always an invalid library. This was fixed in
25252 # development snapshots of GCC prior to 3.0.
25253 case $host_os in
25254 aix4 | aix4.[01] | aix4.[01].*)
25255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25256 echo ' yes '
25257 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25258 :
25259 else
25260 can_build_shared=no
25261 fi
25262 ;;
25263 esac
25264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25265 # soname into executable. Probably we can add versioning support to
25266 # collect2, so additional links can be useful in future.
25267 if test "$aix_use_runtimelinking" = yes; then
25268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25269 # instead of lib<name>.a to let people know that these are not
25270 # typical AIX shared libraries.
25271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25272 else
25273 # We preserve .a as extension for shared libraries through AIX4.2
25274 # and later when we are not doing run time linking.
25275 library_names_spec='${libname}${release}.a $libname.a'
25276 soname_spec='${libname}${release}${shared_ext}$major'
25277 fi
25278 shlibpath_var=LIBPATH
25279 fi
25280 ;;
25281
25282amigaos*)
25283 library_names_spec='$libname.ixlibrary $libname.a'
25284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025285 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 +000025286 ;;
25287
25288beos*)
25289 library_names_spec='${libname}${shared_ext}'
25290 dynamic_linker="$host_os ld.so"
25291 shlibpath_var=LIBRARY_PATH
25292 ;;
25293
Reid Spencer2706f8c2004-09-19 23:53:36 +000025294bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025295 version_type=linux
25296 need_version=no
25297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25298 soname_spec='${libname}${release}${shared_ext}$major'
25299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25300 shlibpath_var=LD_LIBRARY_PATH
25301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25303 # the default ld.so.conf also contains /usr/contrib/lib and
25304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25305 # libtool to hard-code these into programs
25306 ;;
25307
25308cygwin* | mingw* | pw32*)
25309 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025310 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025311 need_version=no
25312 need_lib_prefix=no
25313
25314 case $GCC,$host_os in
25315 yes,cygwin* | yes,mingw* | yes,pw32*)
25316 library_names_spec='$libname.dll.a'
25317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025318 postinstall_cmds='base_file=`basename \${file}`~
25319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25320 dldir=$destdir/`dirname \$dlpath`~
25321 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025322 $install_prog $dir/$dlname \$dldir/$dlname~
25323 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25325 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025326 $rm \$dlpath'
25327 shlibpath_overrides_runpath=yes
25328
25329 case $host_os in
25330 cygwin*)
25331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25332 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 +000025333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025334 ;;
25335 mingw*)
25336 # MinGW DLLs use traditional 'lib' prefix
25337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25339 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25340 # It is most probably a Windows format PATH printed by
25341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25342 # path with ; separators, and with drive letters. We can handle the
25343 # drive letters (cygwin fileutils understands them), so leave them,
25344 # especially as we might pass files found there to a mingw objdump,
25345 # which wouldn't understand a cygwinified path. Ahh.
25346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25347 else
25348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25349 fi
25350 ;;
25351 pw32*)
25352 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025353 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 +000025354 ;;
25355 esac
25356 ;;
25357
25358 *)
25359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25360 ;;
25361 esac
25362 dynamic_linker='Win32 ld.exe'
25363 # FIXME: first we should search . and the directory the executable is in
25364 shlibpath_var=PATH
25365 ;;
25366
25367darwin* | rhapsody*)
25368 dynamic_linker="$host_os dyld"
25369 version_type=darwin
25370 need_lib_prefix=no
25371 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025373 soname_spec='${libname}${release}${major}$shared_ext'
25374 shlibpath_overrides_runpath=yes
25375 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025376 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025377 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025378 if test "$GCC" = yes; then
25379 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"`
25380 else
25381 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025382 fi
25383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25384 ;;
25385
25386dgux*)
25387 version_type=linux
25388 need_lib_prefix=no
25389 need_version=no
25390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25391 soname_spec='${libname}${release}${shared_ext}$major'
25392 shlibpath_var=LD_LIBRARY_PATH
25393 ;;
25394
25395freebsd1*)
25396 dynamic_linker=no
25397 ;;
25398
Reid Spencer2706f8c2004-09-19 23:53:36 +000025399kfreebsd*-gnu)
25400 version_type=linux
25401 need_lib_prefix=no
25402 need_version=no
25403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25404 soname_spec='${libname}${release}${shared_ext}$major'
25405 shlibpath_var=LD_LIBRARY_PATH
25406 shlibpath_overrides_runpath=no
25407 hardcode_into_libs=yes
25408 dynamic_linker='GNU ld.so'
25409 ;;
25410
Reid Spencera773bd52006-08-04 18:18:08 +000025411freebsd* | dragonfly*)
25412 # DragonFly does not have aout. When/if they implement a new
25413 # versioning mechanism, adjust this.
25414 if test -x /usr/bin/objformat; then
25415 objformat=`/usr/bin/objformat`
25416 else
25417 case $host_os in
25418 freebsd[123]*) objformat=aout ;;
25419 *) objformat=elf ;;
25420 esac
25421 fi
John Criswell47fdd832003-07-14 16:52:07 +000025422 version_type=freebsd-$objformat
25423 case $version_type in
25424 freebsd-elf*)
25425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25426 need_version=no
25427 need_lib_prefix=no
25428 ;;
25429 freebsd-*)
25430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25431 need_version=yes
25432 ;;
25433 esac
25434 shlibpath_var=LD_LIBRARY_PATH
25435 case $host_os in
25436 freebsd2*)
25437 shlibpath_overrides_runpath=yes
25438 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025439 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025440 shlibpath_overrides_runpath=yes
25441 hardcode_into_libs=yes
25442 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025443 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25444 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025445 shlibpath_overrides_runpath=no
25446 hardcode_into_libs=yes
25447 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025448 freebsd*) # from 4.6 on
25449 shlibpath_overrides_runpath=yes
25450 hardcode_into_libs=yes
25451 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025452 esac
25453 ;;
25454
25455gnu*)
25456 version_type=linux
25457 need_lib_prefix=no
25458 need_version=no
25459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25460 soname_spec='${libname}${release}${shared_ext}$major'
25461 shlibpath_var=LD_LIBRARY_PATH
25462 hardcode_into_libs=yes
25463 ;;
25464
25465hpux9* | hpux10* | hpux11*)
25466 # Give a soname corresponding to the major version so that dld.sl refuses to
25467 # link against other versions.
25468 version_type=sunos
25469 need_lib_prefix=no
25470 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025471 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025472 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025473 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025474 hardcode_into_libs=yes
25475 dynamic_linker="$host_os dld.so"
25476 shlibpath_var=LD_LIBRARY_PATH
25477 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25479 soname_spec='${libname}${release}${shared_ext}$major'
25480 if test "X$HPUX_IA64_MODE" = X32; then
25481 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25482 else
25483 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25484 fi
25485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25486 ;;
25487 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025488 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025489 hardcode_into_libs=yes
25490 dynamic_linker="$host_os dld.sl"
25491 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25494 soname_spec='${libname}${release}${shared_ext}$major'
25495 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25497 ;;
25498 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025499 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025500 dynamic_linker="$host_os dld.sl"
25501 shlibpath_var=SHLIB_PATH
25502 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504 soname_spec='${libname}${release}${shared_ext}$major'
25505 ;;
25506 esac
25507 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25508 postinstall_cmds='chmod 555 $lib'
25509 ;;
25510
Reid Spencera773bd52006-08-04 18:18:08 +000025511interix3*)
25512 version_type=linux
25513 need_lib_prefix=no
25514 need_version=no
25515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25516 soname_spec='${libname}${release}${shared_ext}$major'
25517 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25518 shlibpath_var=LD_LIBRARY_PATH
25519 shlibpath_overrides_runpath=no
25520 hardcode_into_libs=yes
25521 ;;
25522
John Criswell47fdd832003-07-14 16:52:07 +000025523irix5* | irix6* | nonstopux*)
25524 case $host_os in
25525 nonstopux*) version_type=nonstopux ;;
25526 *)
25527 if test "$lt_cv_prog_gnu_ld" = yes; then
25528 version_type=linux
25529 else
25530 version_type=irix
25531 fi ;;
25532 esac
25533 need_lib_prefix=no
25534 need_version=no
25535 soname_spec='${libname}${release}${shared_ext}$major'
25536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25537 case $host_os in
25538 irix5* | nonstopux*)
25539 libsuff= shlibsuff=
25540 ;;
25541 *)
25542 case $LD in # libtool.m4 will add one of these switches to LD
25543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25544 libsuff= shlibsuff= libmagic=32-bit;;
25545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25546 libsuff=32 shlibsuff=N32 libmagic=N32;;
25547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25548 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25549 *) libsuff= shlibsuff= libmagic=never-match;;
25550 esac
25551 ;;
25552 esac
25553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25554 shlibpath_overrides_runpath=no
25555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25557 hardcode_into_libs=yes
25558 ;;
25559
25560# No shared lib support for Linux oldld, aout, or coff.
25561linux*oldld* | linux*aout* | linux*coff*)
25562 dynamic_linker=no
25563 ;;
25564
25565# This must be Linux ELF.
25566linux*)
25567 version_type=linux
25568 need_lib_prefix=no
25569 need_version=no
25570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25571 soname_spec='${libname}${release}${shared_ext}$major'
25572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25573 shlibpath_var=LD_LIBRARY_PATH
25574 shlibpath_overrides_runpath=no
25575 # This implies no fast_install, which is unacceptable.
25576 # Some rework will be needed to allow for fast_install
25577 # before this can be enabled.
25578 hardcode_into_libs=yes
25579
Reid Spencer2706f8c2004-09-19 23:53:36 +000025580 # Append ld.so.conf contents to the search path
25581 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025582 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 +000025583 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25584 fi
25585
John Criswell47fdd832003-07-14 16:52:07 +000025586 # We used to test for /lib/ld.so.1 and disable shared libraries on
25587 # powerpc, because MkLinux only supported shared libraries with the
25588 # GNU dynamic linker. Since this was broken with cross compilers,
25589 # most powerpc-linux boxes support dynamic linking these days and
25590 # people can always --disable-shared, the test was removed, and we
25591 # assume the GNU/Linux dynamic linker is in use.
25592 dynamic_linker='GNU/Linux ld.so'
25593 ;;
25594
Reid Spencer2706f8c2004-09-19 23:53:36 +000025595knetbsd*-gnu)
25596 version_type=linux
25597 need_lib_prefix=no
25598 need_version=no
25599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25600 soname_spec='${libname}${release}${shared_ext}$major'
25601 shlibpath_var=LD_LIBRARY_PATH
25602 shlibpath_overrides_runpath=no
25603 hardcode_into_libs=yes
25604 dynamic_linker='GNU ld.so'
25605 ;;
25606
John Criswell47fdd832003-07-14 16:52:07 +000025607netbsd*)
25608 version_type=sunos
25609 need_lib_prefix=no
25610 need_version=no
25611 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25614 dynamic_linker='NetBSD (a.out) ld.so'
25615 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025617 soname_spec='${libname}${release}${shared_ext}$major'
25618 dynamic_linker='NetBSD ld.elf_so'
25619 fi
25620 shlibpath_var=LD_LIBRARY_PATH
25621 shlibpath_overrides_runpath=yes
25622 hardcode_into_libs=yes
25623 ;;
25624
25625newsos6)
25626 version_type=linux
25627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25628 shlibpath_var=LD_LIBRARY_PATH
25629 shlibpath_overrides_runpath=yes
25630 ;;
25631
Reid Spencer2706f8c2004-09-19 23:53:36 +000025632nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025633 version_type=linux
25634 need_lib_prefix=no
25635 need_version=no
25636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25637 soname_spec='${libname}${release}${shared_ext}$major'
25638 shlibpath_var=LD_LIBRARY_PATH
25639 shlibpath_overrides_runpath=yes
25640 ;;
25641
25642openbsd*)
25643 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025644 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025645 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25647 case $host_os in
25648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25649 *) need_version=no ;;
25650 esac
John Criswell47fdd832003-07-14 16:52:07 +000025651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25653 shlibpath_var=LD_LIBRARY_PATH
25654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25655 case $host_os in
25656 openbsd2.[89] | openbsd2.[89].*)
25657 shlibpath_overrides_runpath=no
25658 ;;
25659 *)
25660 shlibpath_overrides_runpath=yes
25661 ;;
25662 esac
25663 else
25664 shlibpath_overrides_runpath=yes
25665 fi
25666 ;;
25667
25668os2*)
25669 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025670 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025671 need_lib_prefix=no
25672 library_names_spec='$libname${shared_ext} $libname.a'
25673 dynamic_linker='OS/2 ld.exe'
25674 shlibpath_var=LIBPATH
25675 ;;
25676
25677osf3* | osf4* | osf5*)
25678 version_type=osf
25679 need_lib_prefix=no
25680 need_version=no
25681 soname_spec='${libname}${release}${shared_ext}$major'
25682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25683 shlibpath_var=LD_LIBRARY_PATH
25684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25686 ;;
25687
John Criswell47fdd832003-07-14 16:52:07 +000025688solaris*)
25689 version_type=linux
25690 need_lib_prefix=no
25691 need_version=no
25692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25693 soname_spec='${libname}${release}${shared_ext}$major'
25694 shlibpath_var=LD_LIBRARY_PATH
25695 shlibpath_overrides_runpath=yes
25696 hardcode_into_libs=yes
25697 # ldd complains unless libraries are executable
25698 postinstall_cmds='chmod +x $lib'
25699 ;;
25700
25701sunos4*)
25702 version_type=sunos
25703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25704 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25705 shlibpath_var=LD_LIBRARY_PATH
25706 shlibpath_overrides_runpath=yes
25707 if test "$with_gnu_ld" = yes; then
25708 need_lib_prefix=no
25709 fi
25710 need_version=yes
25711 ;;
25712
Reid Spencera773bd52006-08-04 18:18:08 +000025713sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025714 version_type=linux
25715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25716 soname_spec='${libname}${release}${shared_ext}$major'
25717 shlibpath_var=LD_LIBRARY_PATH
25718 case $host_vendor in
25719 sni)
25720 shlibpath_overrides_runpath=no
25721 need_lib_prefix=no
25722 export_dynamic_flag_spec='${wl}-Blargedynsym'
25723 runpath_var=LD_RUN_PATH
25724 ;;
25725 siemens)
25726 need_lib_prefix=no
25727 ;;
25728 motorola)
25729 need_lib_prefix=no
25730 need_version=no
25731 shlibpath_overrides_runpath=no
25732 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25733 ;;
25734 esac
25735 ;;
25736
25737sysv4*MP*)
25738 if test -d /usr/nec ;then
25739 version_type=linux
25740 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25741 soname_spec='$libname${shared_ext}.$major'
25742 shlibpath_var=LD_LIBRARY_PATH
25743 fi
25744 ;;
25745
Reid Spencera773bd52006-08-04 18:18:08 +000025746sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25747 version_type=freebsd-elf
25748 need_lib_prefix=no
25749 need_version=no
25750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25751 soname_spec='${libname}${release}${shared_ext}$major'
25752 shlibpath_var=LD_LIBRARY_PATH
25753 hardcode_into_libs=yes
25754 if test "$with_gnu_ld" = yes; then
25755 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25756 shlibpath_overrides_runpath=no
25757 else
25758 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25759 shlibpath_overrides_runpath=yes
25760 case $host_os in
25761 sco3.2v5*)
25762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25763 ;;
25764 esac
25765 fi
25766 sys_lib_dlsearch_path_spec='/usr/lib'
25767 ;;
25768
John Criswell47fdd832003-07-14 16:52:07 +000025769uts4*)
25770 version_type=linux
25771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25772 soname_spec='${libname}${release}${shared_ext}$major'
25773 shlibpath_var=LD_LIBRARY_PATH
25774 ;;
25775
25776*)
25777 dynamic_linker=no
25778 ;;
25779esac
Reid Spencera773bd52006-08-04 18:18:08 +000025780{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25781echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025782test "$dynamic_linker" = no && can_build_shared=no
25783
Reid Spencera773bd52006-08-04 18:18:08 +000025784variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25785if test "$GCC" = yes; then
25786 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25787fi
25788
25789{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25790echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025791hardcode_action_GCJ=
25792if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25793 test -n "$runpath_var_GCJ" || \
25794 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25795
25796 # We can hardcode non-existant directories.
25797 if test "$hardcode_direct_GCJ" != no &&
25798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25799 # have to relink, otherwise we might link with an installed library
25800 # when we should be linking with a yet-to-be-installed one
25801 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25802 test "$hardcode_minus_L_GCJ" != no; then
25803 # Linking always hardcodes the temporary library directory.
25804 hardcode_action_GCJ=relink
25805 else
25806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25807 hardcode_action_GCJ=immediate
25808 fi
25809else
25810 # We cannot hardcode anything, or else we can only hardcode existing
25811 # directories.
25812 hardcode_action_GCJ=unsupported
25813fi
Reid Spencera773bd52006-08-04 18:18:08 +000025814{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25815echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025816
25817if test "$hardcode_action_GCJ" = relink; then
25818 # Fast installation is not supported
25819 enable_fast_install=no
25820elif test "$shlibpath_overrides_runpath" = yes ||
25821 test "$enable_shared" = no; then
25822 # Fast installation is not necessary
25823 enable_fast_install=needless
25824fi
25825
John Criswell47fdd832003-07-14 16:52:07 +000025826
25827# The else clause should only fire when bootstrapping the
25828# libtool distribution, otherwise you forgot to ship ltmain.sh
25829# with your package, and you will get complaints that there are
25830# no rules to generate ltmain.sh.
25831if test -f "$ltmain"; then
25832 # See if we are running on zsh, and set the options which allow our commands through
25833 # without removal of \ escapes.
25834 if test -n "${ZSH_VERSION+set}" ; then
25835 setopt NO_GLOB_SUBST
25836 fi
25837 # Now quote all the things that may contain metacharacters while being
25838 # careful not to overquote the AC_SUBSTed values. We take copies of the
25839 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025840 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 +000025841 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025842 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25843 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25844 deplibs_check_method reload_flag reload_cmds need_locks \
25845 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25846 lt_cv_sys_global_symbol_to_c_name_address \
25847 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25848 old_postinstall_cmds old_postuninstall_cmds \
25849 compiler_GCJ \
25850 CC_GCJ \
25851 LD_GCJ \
25852 lt_prog_compiler_wl_GCJ \
25853 lt_prog_compiler_pic_GCJ \
25854 lt_prog_compiler_static_GCJ \
25855 lt_prog_compiler_no_builtin_flag_GCJ \
25856 export_dynamic_flag_spec_GCJ \
25857 thread_safe_flag_spec_GCJ \
25858 whole_archive_flag_spec_GCJ \
25859 enable_shared_with_static_runtimes_GCJ \
25860 old_archive_cmds_GCJ \
25861 old_archive_from_new_cmds_GCJ \
25862 predep_objects_GCJ \
25863 postdep_objects_GCJ \
25864 predeps_GCJ \
25865 postdeps_GCJ \
25866 compiler_lib_search_path_GCJ \
25867 archive_cmds_GCJ \
25868 archive_expsym_cmds_GCJ \
25869 postinstall_cmds_GCJ \
25870 postuninstall_cmds_GCJ \
25871 old_archive_from_expsyms_cmds_GCJ \
25872 allow_undefined_flag_GCJ \
25873 no_undefined_flag_GCJ \
25874 export_symbols_cmds_GCJ \
25875 hardcode_libdir_flag_spec_GCJ \
25876 hardcode_libdir_flag_spec_ld_GCJ \
25877 hardcode_libdir_separator_GCJ \
25878 hardcode_automatic_GCJ \
25879 module_cmds_GCJ \
25880 module_expsym_cmds_GCJ \
25881 lt_cv_prog_compiler_c_o_GCJ \
25882 exclude_expsyms_GCJ \
25883 include_expsyms_GCJ; do
25884
25885 case $var in
25886 old_archive_cmds_GCJ | \
25887 old_archive_from_new_cmds_GCJ | \
25888 archive_cmds_GCJ | \
25889 archive_expsym_cmds_GCJ | \
25890 module_cmds_GCJ | \
25891 module_expsym_cmds_GCJ | \
25892 old_archive_from_expsyms_cmds_GCJ | \
25893 export_symbols_cmds_GCJ | \
25894 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25895 postinstall_cmds | postuninstall_cmds | \
25896 old_postinstall_cmds | old_postuninstall_cmds | \
25897 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25898 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025899 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 +000025900 ;;
25901 *)
25902 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25903 ;;
25904 esac
25905 done
25906
25907 case $lt_echo in
25908 *'\$0 --fallback-echo"')
25909 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25910 ;;
25911 esac
25912
25913cfgfile="$ofile"
25914
25915 cat <<__EOF__ >> "$cfgfile"
25916# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25917
25918# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25919
25920# Shell to use when invoking shell scripts.
25921SHELL=$lt_SHELL
25922
25923# Whether or not to build shared libraries.
25924build_libtool_libs=$enable_shared
25925
25926# Whether or not to build static libraries.
25927build_old_libs=$enable_static
25928
25929# Whether or not to add -lc for building shared libraries.
25930build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25931
25932# Whether or not to disallow shared libs when runtime libs are static
25933allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25934
25935# Whether or not to optimize for fast installation.
25936fast_install=$enable_fast_install
25937
25938# The host system.
25939host_alias=$host_alias
25940host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025941host_os=$host_os
25942
25943# The build system.
25944build_alias=$build_alias
25945build=$build
25946build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025947
25948# An echo program that does not interpret backslashes.
25949echo=$lt_echo
25950
25951# The archiver.
25952AR=$lt_AR
25953AR_FLAGS=$lt_AR_FLAGS
25954
25955# A C compiler.
25956LTCC=$lt_LTCC
25957
Reid Spencera773bd52006-08-04 18:18:08 +000025958# LTCC compiler flags.
25959LTCFLAGS=$lt_LTCFLAGS
25960
John Criswell47fdd832003-07-14 16:52:07 +000025961# A language-specific compiler.
25962CC=$lt_compiler_GCJ
25963
25964# Is the compiler the GNU C compiler?
25965with_gcc=$GCC_GCJ
25966
25967# An ERE matcher.
25968EGREP=$lt_EGREP
25969
25970# The linker used to build libraries.
25971LD=$lt_LD_GCJ
25972
25973# Whether we need hard or soft links.
25974LN_S=$lt_LN_S
25975
25976# A BSD-compatible nm program.
25977NM=$lt_NM
25978
25979# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025980STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025981
25982# Used to examine libraries when file_magic_cmd begins "file"
25983MAGIC_CMD=$MAGIC_CMD
25984
25985# Used on cygwin: DLL creation program.
25986DLLTOOL="$DLLTOOL"
25987
25988# Used on cygwin: object dumper.
25989OBJDUMP="$OBJDUMP"
25990
25991# Used on cygwin: assembler.
25992AS="$AS"
25993
25994# The name of the directory that contains temporary libtool files.
25995objdir=$objdir
25996
25997# How to create reloadable object files.
25998reload_flag=$lt_reload_flag
25999reload_cmds=$lt_reload_cmds
26000
26001# How to pass a linker flag through the compiler.
26002wl=$lt_lt_prog_compiler_wl_GCJ
26003
26004# Object file suffix (normally "o").
26005objext="$ac_objext"
26006
26007# Old archive suffix (normally "a").
26008libext="$libext"
26009
26010# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026011shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026012
26013# Executable file suffix (normally "").
26014exeext="$exeext"
26015
26016# Additional compiler flags for building library objects.
26017pic_flag=$lt_lt_prog_compiler_pic_GCJ
26018pic_mode=$pic_mode
26019
26020# What is the maximum length of a command?
26021max_cmd_len=$lt_cv_sys_max_cmd_len
26022
26023# Does compiler simultaneously support -c and -o options?
26024compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26025
Reid Spencera773bd52006-08-04 18:18:08 +000026026# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026027need_locks=$lt_need_locks
26028
26029# Do we need the lib prefix for modules?
26030need_lib_prefix=$need_lib_prefix
26031
26032# Do we need a version for libraries?
26033need_version=$need_version
26034
26035# Whether dlopen is supported.
26036dlopen_support=$enable_dlopen
26037
26038# Whether dlopen of programs is supported.
26039dlopen_self=$enable_dlopen_self
26040
26041# Whether dlopen of statically linked programs is supported.
26042dlopen_self_static=$enable_dlopen_self_static
26043
26044# Compiler flag to prevent dynamic linking.
26045link_static_flag=$lt_lt_prog_compiler_static_GCJ
26046
26047# Compiler flag to turn off builtin functions.
26048no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26049
26050# Compiler flag to allow reflexive dlopens.
26051export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26052
26053# Compiler flag to generate shared objects directly from archives.
26054whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26055
26056# Compiler flag to generate thread-safe objects.
26057thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26058
26059# Library versioning type.
26060version_type=$version_type
26061
26062# Format of library name prefix.
26063libname_spec=$lt_libname_spec
26064
26065# List of archive names. First name is the real one, the rest are links.
26066# The last name is the one that the linker finds with -lNAME.
26067library_names_spec=$lt_library_names_spec
26068
26069# The coded name of the library, if different from the real name.
26070soname_spec=$lt_soname_spec
26071
26072# Commands used to build and install an old-style archive.
26073RANLIB=$lt_RANLIB
26074old_archive_cmds=$lt_old_archive_cmds_GCJ
26075old_postinstall_cmds=$lt_old_postinstall_cmds
26076old_postuninstall_cmds=$lt_old_postuninstall_cmds
26077
26078# Create an old-style archive from a shared archive.
26079old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26080
26081# Create a temporary old-style archive to link instead of a shared archive.
26082old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26083
26084# Commands used to build and install a shared archive.
26085archive_cmds=$lt_archive_cmds_GCJ
26086archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26087postinstall_cmds=$lt_postinstall_cmds
26088postuninstall_cmds=$lt_postuninstall_cmds
26089
26090# Commands used to build a loadable module (assumed same as above if empty)
26091module_cmds=$lt_module_cmds_GCJ
26092module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26093
26094# Commands to strip libraries.
26095old_striplib=$lt_old_striplib
26096striplib=$lt_striplib
26097
26098# Dependencies to place before the objects being linked to create a
26099# shared library.
26100predep_objects=$lt_predep_objects_GCJ
26101
26102# Dependencies to place after the objects being linked to create a
26103# shared library.
26104postdep_objects=$lt_postdep_objects_GCJ
26105
26106# Dependencies to place before the objects being linked to create a
26107# shared library.
26108predeps=$lt_predeps_GCJ
26109
26110# Dependencies to place after the objects being linked to create a
26111# shared library.
26112postdeps=$lt_postdeps_GCJ
26113
26114# The library search path used internally by the compiler when linking
26115# a shared library.
26116compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26117
26118# Method to check whether dependent libraries are shared objects.
26119deplibs_check_method=$lt_deplibs_check_method
26120
26121# Command to use when deplibs_check_method == file_magic.
26122file_magic_cmd=$lt_file_magic_cmd
26123
26124# Flag that allows shared libraries with undefined symbols to be built.
26125allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26126
26127# Flag that forces no undefined symbols.
26128no_undefined_flag=$lt_no_undefined_flag_GCJ
26129
26130# Commands used to finish a libtool library installation in a directory.
26131finish_cmds=$lt_finish_cmds
26132
26133# Same as above, but a single script fragment to be evaled but not shown.
26134finish_eval=$lt_finish_eval
26135
26136# Take the output of nm and produce a listing of raw symbols and C names.
26137global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26138
26139# Transform the output of nm in a proper C declaration
26140global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26141
26142# Transform the output of nm in a C name address pair
26143global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26144
26145# This is the shared library runtime path variable.
26146runpath_var=$runpath_var
26147
26148# This is the shared library path variable.
26149shlibpath_var=$shlibpath_var
26150
26151# Is shlibpath searched before the hard-coded library search path?
26152shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26153
26154# How to hardcode a shared library path into an executable.
26155hardcode_action=$hardcode_action_GCJ
26156
26157# Whether we should hardcode library paths into libraries.
26158hardcode_into_libs=$hardcode_into_libs
26159
26160# Flag to hardcode \$libdir into a binary during linking.
26161# This must work even if \$libdir does not exist.
26162hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26163
26164# If ld is used when linking, flag to hardcode \$libdir into
26165# a binary during linking. This must work even if \$libdir does
26166# not exist.
26167hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26168
26169# Whether we need a single -rpath flag with a separated argument.
26170hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26171
26172# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26173# resulting binary.
26174hardcode_direct=$hardcode_direct_GCJ
26175
26176# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26177# resulting binary.
26178hardcode_minus_L=$hardcode_minus_L_GCJ
26179
26180# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26181# the resulting binary.
26182hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26183
26184# Set to yes if building a shared library automatically hardcodes DIR into the library
26185# and all subsequent libraries and executables linked against it.
26186hardcode_automatic=$hardcode_automatic_GCJ
26187
26188# Variables whose values should be saved in libtool wrapper scripts and
26189# restored at relink time.
26190variables_saved_for_relink="$variables_saved_for_relink"
26191
26192# Whether libtool must link a program against all its dependency libraries.
26193link_all_deplibs=$link_all_deplibs_GCJ
26194
26195# Compile-time system search path for libraries
26196sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26197
26198# Run-time system search path for libraries
26199sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26200
26201# Fix the shell variable \$srcfile for the compiler.
26202fix_srcfile_path="$fix_srcfile_path_GCJ"
26203
26204# Set to yes if exported symbols are required.
26205always_export_symbols=$always_export_symbols_GCJ
26206
26207# The commands to list exported symbols.
26208export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26209
26210# The commands to extract the exported symbol list from a shared archive.
26211extract_expsyms_cmds=$lt_extract_expsyms_cmds
26212
26213# Symbols that should not be listed in the preloaded symbols.
26214exclude_expsyms=$lt_exclude_expsyms_GCJ
26215
26216# Symbols that must always be exported.
26217include_expsyms=$lt_include_expsyms_GCJ
26218
26219# ### END LIBTOOL TAG CONFIG: $tagname
26220
26221__EOF__
26222
26223
26224else
26225 # If there is no Makefile yet, we rely on a make rule to execute
26226 # `config.status --recheck' to rerun these tests and create the
26227 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026228 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26229 if test -f "$ltmain_in"; then
26230 test -f Makefile && make "$ltmain"
26231 fi
John Criswell47fdd832003-07-14 16:52:07 +000026232fi
26233
26234
26235ac_ext=c
26236ac_cpp='$CPP $CPPFLAGS'
26237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26239ac_compiler_gnu=$ac_cv_c_compiler_gnu
26240
26241CC="$lt_save_CC"
26242
26243 else
26244 tagname=""
26245 fi
26246 ;;
26247
26248 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026249 ac_ext=c
26250ac_cpp='$CPP $CPPFLAGS'
26251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26253ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026254
26255
26256# Source file extension for RC test sources.
26257ac_ext=rc
26258
26259# Object file extension for compiled RC test sources.
26260objext=o
26261objext_RC=$objext
26262
26263# Code to be used in simple compile tests
26264lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26265
26266# Code to be used in simple link tests
26267lt_simple_link_test_code="$lt_simple_compile_test_code"
26268
26269# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26270
26271# If no C compiler was specified, use CC.
26272LTCC=${LTCC-"$CC"}
26273
Reid Spencera773bd52006-08-04 18:18:08 +000026274# If no C compiler flags were specified, use CFLAGS.
26275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26276
John Criswell47fdd832003-07-14 16:52:07 +000026277# Allow CC to be a program name with arguments.
26278compiler=$CC
26279
26280
Reid Spencera773bd52006-08-04 18:18:08 +000026281# save warnings/boilerplate of simple test code
26282ac_outfile=conftest.$ac_objext
26283printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26284eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26285_lt_compiler_boilerplate=`cat conftest.err`
26286$rm conftest*
26287
26288ac_outfile=conftest.$ac_objext
26289printf "$lt_simple_link_test_code" >conftest.$ac_ext
26290eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26291_lt_linker_boilerplate=`cat conftest.err`
26292$rm conftest*
26293
26294
John Criswell47fdd832003-07-14 16:52:07 +000026295# Allow CC to be a program name with arguments.
26296lt_save_CC="$CC"
26297CC=${RC-"windres"}
26298compiler=$CC
26299compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026300for cc_temp in $compiler""; do
26301 case $cc_temp in
26302 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26303 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26304 \-*) ;;
26305 *) break;;
26306 esac
26307done
26308cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26309
John Criswell47fdd832003-07-14 16:52:07 +000026310lt_cv_prog_compiler_c_o_RC=yes
26311
26312# The else clause should only fire when bootstrapping the
26313# libtool distribution, otherwise you forgot to ship ltmain.sh
26314# with your package, and you will get complaints that there are
26315# no rules to generate ltmain.sh.
26316if test -f "$ltmain"; then
26317 # See if we are running on zsh, and set the options which allow our commands through
26318 # without removal of \ escapes.
26319 if test -n "${ZSH_VERSION+set}" ; then
26320 setopt NO_GLOB_SUBST
26321 fi
26322 # Now quote all the things that may contain metacharacters while being
26323 # careful not to overquote the AC_SUBSTed values. We take copies of the
26324 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026325 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 +000026326 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026327 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26328 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26329 deplibs_check_method reload_flag reload_cmds need_locks \
26330 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26331 lt_cv_sys_global_symbol_to_c_name_address \
26332 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26333 old_postinstall_cmds old_postuninstall_cmds \
26334 compiler_RC \
26335 CC_RC \
26336 LD_RC \
26337 lt_prog_compiler_wl_RC \
26338 lt_prog_compiler_pic_RC \
26339 lt_prog_compiler_static_RC \
26340 lt_prog_compiler_no_builtin_flag_RC \
26341 export_dynamic_flag_spec_RC \
26342 thread_safe_flag_spec_RC \
26343 whole_archive_flag_spec_RC \
26344 enable_shared_with_static_runtimes_RC \
26345 old_archive_cmds_RC \
26346 old_archive_from_new_cmds_RC \
26347 predep_objects_RC \
26348 postdep_objects_RC \
26349 predeps_RC \
26350 postdeps_RC \
26351 compiler_lib_search_path_RC \
26352 archive_cmds_RC \
26353 archive_expsym_cmds_RC \
26354 postinstall_cmds_RC \
26355 postuninstall_cmds_RC \
26356 old_archive_from_expsyms_cmds_RC \
26357 allow_undefined_flag_RC \
26358 no_undefined_flag_RC \
26359 export_symbols_cmds_RC \
26360 hardcode_libdir_flag_spec_RC \
26361 hardcode_libdir_flag_spec_ld_RC \
26362 hardcode_libdir_separator_RC \
26363 hardcode_automatic_RC \
26364 module_cmds_RC \
26365 module_expsym_cmds_RC \
26366 lt_cv_prog_compiler_c_o_RC \
26367 exclude_expsyms_RC \
26368 include_expsyms_RC; do
26369
26370 case $var in
26371 old_archive_cmds_RC | \
26372 old_archive_from_new_cmds_RC | \
26373 archive_cmds_RC | \
26374 archive_expsym_cmds_RC | \
26375 module_cmds_RC | \
26376 module_expsym_cmds_RC | \
26377 old_archive_from_expsyms_cmds_RC | \
26378 export_symbols_cmds_RC | \
26379 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26380 postinstall_cmds | postuninstall_cmds | \
26381 old_postinstall_cmds | old_postuninstall_cmds | \
26382 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26383 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026384 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 +000026385 ;;
26386 *)
26387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26388 ;;
26389 esac
26390 done
26391
26392 case $lt_echo in
26393 *'\$0 --fallback-echo"')
26394 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26395 ;;
26396 esac
26397
26398cfgfile="$ofile"
26399
26400 cat <<__EOF__ >> "$cfgfile"
26401# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26402
26403# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26404
26405# Shell to use when invoking shell scripts.
26406SHELL=$lt_SHELL
26407
26408# Whether or not to build shared libraries.
26409build_libtool_libs=$enable_shared
26410
26411# Whether or not to build static libraries.
26412build_old_libs=$enable_static
26413
26414# Whether or not to add -lc for building shared libraries.
26415build_libtool_need_lc=$archive_cmds_need_lc_RC
26416
26417# Whether or not to disallow shared libs when runtime libs are static
26418allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26419
26420# Whether or not to optimize for fast installation.
26421fast_install=$enable_fast_install
26422
26423# The host system.
26424host_alias=$host_alias
26425host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026426host_os=$host_os
26427
26428# The build system.
26429build_alias=$build_alias
26430build=$build
26431build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026432
26433# An echo program that does not interpret backslashes.
26434echo=$lt_echo
26435
26436# The archiver.
26437AR=$lt_AR
26438AR_FLAGS=$lt_AR_FLAGS
26439
26440# A C compiler.
26441LTCC=$lt_LTCC
26442
Reid Spencera773bd52006-08-04 18:18:08 +000026443# LTCC compiler flags.
26444LTCFLAGS=$lt_LTCFLAGS
26445
John Criswell47fdd832003-07-14 16:52:07 +000026446# A language-specific compiler.
26447CC=$lt_compiler_RC
26448
26449# Is the compiler the GNU C compiler?
26450with_gcc=$GCC_RC
26451
26452# An ERE matcher.
26453EGREP=$lt_EGREP
26454
26455# The linker used to build libraries.
26456LD=$lt_LD_RC
26457
26458# Whether we need hard or soft links.
26459LN_S=$lt_LN_S
26460
26461# A BSD-compatible nm program.
26462NM=$lt_NM
26463
26464# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026465STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026466
26467# Used to examine libraries when file_magic_cmd begins "file"
26468MAGIC_CMD=$MAGIC_CMD
26469
26470# Used on cygwin: DLL creation program.
26471DLLTOOL="$DLLTOOL"
26472
26473# Used on cygwin: object dumper.
26474OBJDUMP="$OBJDUMP"
26475
26476# Used on cygwin: assembler.
26477AS="$AS"
26478
26479# The name of the directory that contains temporary libtool files.
26480objdir=$objdir
26481
26482# How to create reloadable object files.
26483reload_flag=$lt_reload_flag
26484reload_cmds=$lt_reload_cmds
26485
26486# How to pass a linker flag through the compiler.
26487wl=$lt_lt_prog_compiler_wl_RC
26488
26489# Object file suffix (normally "o").
26490objext="$ac_objext"
26491
26492# Old archive suffix (normally "a").
26493libext="$libext"
26494
26495# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026496shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026497
26498# Executable file suffix (normally "").
26499exeext="$exeext"
26500
26501# Additional compiler flags for building library objects.
26502pic_flag=$lt_lt_prog_compiler_pic_RC
26503pic_mode=$pic_mode
26504
26505# What is the maximum length of a command?
26506max_cmd_len=$lt_cv_sys_max_cmd_len
26507
26508# Does compiler simultaneously support -c and -o options?
26509compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26510
Reid Spencera773bd52006-08-04 18:18:08 +000026511# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026512need_locks=$lt_need_locks
26513
26514# Do we need the lib prefix for modules?
26515need_lib_prefix=$need_lib_prefix
26516
26517# Do we need a version for libraries?
26518need_version=$need_version
26519
26520# Whether dlopen is supported.
26521dlopen_support=$enable_dlopen
26522
26523# Whether dlopen of programs is supported.
26524dlopen_self=$enable_dlopen_self
26525
26526# Whether dlopen of statically linked programs is supported.
26527dlopen_self_static=$enable_dlopen_self_static
26528
26529# Compiler flag to prevent dynamic linking.
26530link_static_flag=$lt_lt_prog_compiler_static_RC
26531
26532# Compiler flag to turn off builtin functions.
26533no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26534
26535# Compiler flag to allow reflexive dlopens.
26536export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26537
26538# Compiler flag to generate shared objects directly from archives.
26539whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26540
26541# Compiler flag to generate thread-safe objects.
26542thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26543
26544# Library versioning type.
26545version_type=$version_type
26546
26547# Format of library name prefix.
26548libname_spec=$lt_libname_spec
26549
26550# List of archive names. First name is the real one, the rest are links.
26551# The last name is the one that the linker finds with -lNAME.
26552library_names_spec=$lt_library_names_spec
26553
26554# The coded name of the library, if different from the real name.
26555soname_spec=$lt_soname_spec
26556
26557# Commands used to build and install an old-style archive.
26558RANLIB=$lt_RANLIB
26559old_archive_cmds=$lt_old_archive_cmds_RC
26560old_postinstall_cmds=$lt_old_postinstall_cmds
26561old_postuninstall_cmds=$lt_old_postuninstall_cmds
26562
26563# Create an old-style archive from a shared archive.
26564old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26565
26566# Create a temporary old-style archive to link instead of a shared archive.
26567old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26568
26569# Commands used to build and install a shared archive.
26570archive_cmds=$lt_archive_cmds_RC
26571archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26572postinstall_cmds=$lt_postinstall_cmds
26573postuninstall_cmds=$lt_postuninstall_cmds
26574
26575# Commands used to build a loadable module (assumed same as above if empty)
26576module_cmds=$lt_module_cmds_RC
26577module_expsym_cmds=$lt_module_expsym_cmds_RC
26578
26579# Commands to strip libraries.
26580old_striplib=$lt_old_striplib
26581striplib=$lt_striplib
26582
26583# Dependencies to place before the objects being linked to create a
26584# shared library.
26585predep_objects=$lt_predep_objects_RC
26586
26587# Dependencies to place after the objects being linked to create a
26588# shared library.
26589postdep_objects=$lt_postdep_objects_RC
26590
26591# Dependencies to place before the objects being linked to create a
26592# shared library.
26593predeps=$lt_predeps_RC
26594
26595# Dependencies to place after the objects being linked to create a
26596# shared library.
26597postdeps=$lt_postdeps_RC
26598
26599# The library search path used internally by the compiler when linking
26600# a shared library.
26601compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26602
26603# Method to check whether dependent libraries are shared objects.
26604deplibs_check_method=$lt_deplibs_check_method
26605
26606# Command to use when deplibs_check_method == file_magic.
26607file_magic_cmd=$lt_file_magic_cmd
26608
26609# Flag that allows shared libraries with undefined symbols to be built.
26610allow_undefined_flag=$lt_allow_undefined_flag_RC
26611
26612# Flag that forces no undefined symbols.
26613no_undefined_flag=$lt_no_undefined_flag_RC
26614
26615# Commands used to finish a libtool library installation in a directory.
26616finish_cmds=$lt_finish_cmds
26617
26618# Same as above, but a single script fragment to be evaled but not shown.
26619finish_eval=$lt_finish_eval
26620
26621# Take the output of nm and produce a listing of raw symbols and C names.
26622global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26623
26624# Transform the output of nm in a proper C declaration
26625global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26626
26627# Transform the output of nm in a C name address pair
26628global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26629
26630# This is the shared library runtime path variable.
26631runpath_var=$runpath_var
26632
26633# This is the shared library path variable.
26634shlibpath_var=$shlibpath_var
26635
26636# Is shlibpath searched before the hard-coded library search path?
26637shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26638
26639# How to hardcode a shared library path into an executable.
26640hardcode_action=$hardcode_action_RC
26641
26642# Whether we should hardcode library paths into libraries.
26643hardcode_into_libs=$hardcode_into_libs
26644
26645# Flag to hardcode \$libdir into a binary during linking.
26646# This must work even if \$libdir does not exist.
26647hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26648
26649# If ld is used when linking, flag to hardcode \$libdir into
26650# a binary during linking. This must work even if \$libdir does
26651# not exist.
26652hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26653
26654# Whether we need a single -rpath flag with a separated argument.
26655hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26656
26657# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26658# resulting binary.
26659hardcode_direct=$hardcode_direct_RC
26660
26661# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26662# resulting binary.
26663hardcode_minus_L=$hardcode_minus_L_RC
26664
26665# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26666# the resulting binary.
26667hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26668
26669# Set to yes if building a shared library automatically hardcodes DIR into the library
26670# and all subsequent libraries and executables linked against it.
26671hardcode_automatic=$hardcode_automatic_RC
26672
26673# Variables whose values should be saved in libtool wrapper scripts and
26674# restored at relink time.
26675variables_saved_for_relink="$variables_saved_for_relink"
26676
26677# Whether libtool must link a program against all its dependency libraries.
26678link_all_deplibs=$link_all_deplibs_RC
26679
26680# Compile-time system search path for libraries
26681sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26682
26683# Run-time system search path for libraries
26684sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26685
26686# Fix the shell variable \$srcfile for the compiler.
26687fix_srcfile_path="$fix_srcfile_path_RC"
26688
26689# Set to yes if exported symbols are required.
26690always_export_symbols=$always_export_symbols_RC
26691
26692# The commands to list exported symbols.
26693export_symbols_cmds=$lt_export_symbols_cmds_RC
26694
26695# The commands to extract the exported symbol list from a shared archive.
26696extract_expsyms_cmds=$lt_extract_expsyms_cmds
26697
26698# Symbols that should not be listed in the preloaded symbols.
26699exclude_expsyms=$lt_exclude_expsyms_RC
26700
26701# Symbols that must always be exported.
26702include_expsyms=$lt_include_expsyms_RC
26703
26704# ### END LIBTOOL TAG CONFIG: $tagname
26705
26706__EOF__
26707
26708
26709else
26710 # If there is no Makefile yet, we rely on a make rule to execute
26711 # `config.status --recheck' to rerun these tests and create the
26712 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026713 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26714 if test -f "$ltmain_in"; then
26715 test -f Makefile && make "$ltmain"
26716 fi
John Criswell47fdd832003-07-14 16:52:07 +000026717fi
26718
26719
26720ac_ext=c
26721ac_cpp='$CPP $CPPFLAGS'
26722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26724ac_compiler_gnu=$ac_cv_c_compiler_gnu
26725
26726CC="$lt_save_CC"
26727
26728 ;;
26729
26730 *)
26731 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26732echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26733 { (exit 1); exit 1; }; }
26734 ;;
26735 esac
26736
26737 # Append the new tag name to the list of available tags.
26738 if test -n "$tagname" ; then
26739 available_tags="$available_tags $tagname"
26740 fi
26741 fi
26742 done
26743 IFS="$lt_save_ifs"
26744
26745 # Now substitute the updated list of available tags.
26746 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26747 mv "${ofile}T" "$ofile"
26748 chmod +x "$ofile"
26749 else
26750 rm -f "${ofile}T"
26751 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26752echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26753 { (exit 1); exit 1; }; }
26754 fi
26755fi
John Criswell7a73b802003-06-30 21:59:07 +000026756
26757
26758
26759# This can be used to rebuild libtool when needed
26760LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26761
26762# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026763LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026764
26765# Prevent multiple expansion
26766
26767
26768
John Criswell47fdd832003-07-14 16:52:07 +000026769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026786
Reid Spencer582a23c2004-12-29 07:07:57 +000026787if test "$lt_cv_dlopen_self" = "yes" ; then
26788
26789cat >>confdefs.h <<\_ACEOF
26790#define CAN_DLOPEN_SELF 1
26791_ACEOF
26792
26793fi
26794
Reid Spencer7931a782004-12-27 06:15:02 +000026795if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026796 LLVMGCC="llvm-gcc${EXEEXT}"
26797 LLVMGXX="llvm-g++${EXEEXT}"
26798 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26799set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026802if test "${ac_cv_path_LLVMGCC+set}" = set; then
26803 echo $ECHO_N "(cached) $ECHO_C" >&6
26804else
26805 case $LLVMGCC in
26806 [\\/]* | ?:[\\/]*)
26807 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26808 ;;
26809 *)
26810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26811for as_dir in $PATH
26812do
26813 IFS=$as_save_IFS
26814 test -z "$as_dir" && as_dir=.
26815 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026816 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 +000026817 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26819 break 2
26820 fi
26821done
26822done
Reid Spencera773bd52006-08-04 18:18:08 +000026823IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026824
Reid Spencer59473af2004-12-25 07:31:29 +000026825 ;;
26826esac
26827fi
26828LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026829if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026830 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26831echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026832else
Reid Spencera773bd52006-08-04 18:18:08 +000026833 { echo "$as_me:$LINENO: result: no" >&5
26834echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026835fi
26836
Reid Spencera773bd52006-08-04 18:18:08 +000026837
Reid Spencerc84492c2005-06-02 22:34:49 +000026838 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26839set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026842if test "${ac_cv_path_LLVMGXX+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26844else
26845 case $LLVMGXX in
26846 [\\/]* | ?:[\\/]*)
26847 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26848 ;;
26849 *)
26850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26851for as_dir in $PATH
26852do
26853 IFS=$as_save_IFS
26854 test -z "$as_dir" && as_dir=.
26855 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026856 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 +000026857 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26859 break 2
26860 fi
26861done
26862done
Reid Spencera773bd52006-08-04 18:18:08 +000026863IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026864
Reid Spencer59473af2004-12-25 07:31:29 +000026865 ;;
26866esac
26867fi
26868LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026869if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026870 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26871echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026872else
Reid Spencera773bd52006-08-04 18:18:08 +000026873 { echo "$as_me:$LINENO: result: no" >&5
26874echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026875fi
26876
Reid Spencera773bd52006-08-04 18:18:08 +000026877
Reid Spencer59473af2004-12-25 07:31:29 +000026878else
Reid Spencerc84492c2005-06-02 22:34:49 +000026879 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26880 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026881 LLVMGCC=$LLVMGCC
26882
26883 LLVMGXX=$LLVMGXX
26884
26885fi
26886
Reid Spencera773bd52006-08-04 18:18:08 +000026887{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26888echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026889
Reid Spencer86901802004-12-08 23:07:27 +000026890ICC=no
26891IXX=no
26892case $CC in
26893 icc*|icpc*)
26894 ICC=yes
26895 IXX=yes
26896 ;;
26897 *)
26898 ;;
26899esac
26900
Duraid Madina937c60a2006-02-15 07:57:42 +000026901if test "$GCC" != "yes" && test "$ICC" != "yes"
26902then
26903 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26904echo "$as_me: error: gcc|icc required but not found" >&2;}
26905 { (exit 1); exit 1; }; }
26906fi
26907
26908if test "$GXX" != "yes" && test "$IXX" != "yes"
26909then
26910 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26911echo "$as_me: error: g++|icc required but not found" >&2;}
26912 { (exit 1); exit 1; }; }
26913fi
26914
Reid Spencer86901802004-12-08 23:07:27 +000026915if test "$GCC" = "yes"
26916then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026917 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026918 if test "$gccmajor" -lt "3"
26919 then
26920 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026921echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26922 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026923 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026924fi
26925
26926if test -z "$llvm_cv_gnu_make_command"
26927then
26928 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26929echo "$as_me: error: GNU Make required but not found" >&2;}
26930 { (exit 1); exit 1; }; }
26931fi
26932
Reid Spencera773bd52006-08-04 18:18:08 +000026933{ echo "$as_me:$LINENO: result: ok" >&5
26934echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026935
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026936
John Criswell7a73b802003-06-30 21:59:07 +000026937
Reid Spencera773bd52006-08-04 18:18:08 +000026938{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26939echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026940if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26941 echo $ECHO_N "(cached) $ECHO_C" >&6
26942else
26943 ac_check_lib_save_LIBS=$LIBS
26944LIBS="-lelf $LIBS"
26945cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026946/* confdefs.h. */
26947_ACEOF
26948cat confdefs.h >>conftest.$ac_ext
26949cat >>conftest.$ac_ext <<_ACEOF
26950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026951
Reid Spencera773bd52006-08-04 18:18:08 +000026952/* Override any GCC internal prototype to avoid an error.
26953 Use char because int might match the return type of a GCC
26954 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026955#ifdef __cplusplus
26956extern "C"
26957#endif
John Criswell7a73b802003-06-30 21:59:07 +000026958char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026959int
26960main ()
26961{
Reid Spencera773bd52006-08-04 18:18:08 +000026962return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026963 ;
26964 return 0;
26965}
26966_ACEOF
26967rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026968if { (ac_try="$ac_link"
26969case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972esac
26973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026975 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26982 { (case "(($ac_try" in
26983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984 *) ac_try_echo=$ac_try;;
26985esac
26986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026988 ac_status=$?
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; } &&
26991 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026992 { (case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26995esac
26996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026998 ac_status=$?
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; }; then
27001 ac_cv_lib_elf_elf_begin=yes
27002else
27003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027004sed 's/^/| /' conftest.$ac_ext >&5
27005
Reid Spencera773bd52006-08-04 18:18:08 +000027006 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027007fi
Reid Spencera773bd52006-08-04 18:18:08 +000027008
27009rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027010 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027011LIBS=$ac_check_lib_save_LIBS
27012fi
Reid Spencera773bd52006-08-04 18:18:08 +000027013{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27014echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027015if test $ac_cv_lib_elf_elf_begin = yes; then
27016 cat >>confdefs.h <<_ACEOF
27017#define HAVE_LIBELF 1
27018_ACEOF
27019
27020 LIBS="-lelf $LIBS"
27021
27022fi
27023
27024
Reid Spencera773bd52006-08-04 18:18:08 +000027025{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27026echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027027if test "${ac_cv_lib_m_sin+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029else
27030 ac_check_lib_save_LIBS=$LIBS
27031LIBS="-lm $LIBS"
27032cat >conftest.$ac_ext <<_ACEOF
27033/* confdefs.h. */
27034_ACEOF
27035cat confdefs.h >>conftest.$ac_ext
27036cat >>conftest.$ac_ext <<_ACEOF
27037/* end confdefs.h. */
27038
Reid Spencera773bd52006-08-04 18:18:08 +000027039/* Override any GCC internal prototype to avoid an error.
27040 Use char because int might match the return type of a GCC
27041 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027042#ifdef __cplusplus
27043extern "C"
27044#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027045char sin ();
27046int
27047main ()
27048{
Reid Spencera773bd52006-08-04 18:18:08 +000027049return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027050 ;
27051 return 0;
27052}
27053_ACEOF
27054rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027055if { (ac_try="$ac_link"
27056case "(($ac_try" in
27057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27058 *) ac_try_echo=$ac_try;;
27059esac
27060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27061 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027062 ac_status=$?
27063 grep -v '^ *+' conftest.er1 >conftest.err
27064 rm -f conftest.er1
27065 cat conftest.err >&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27069 { (case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27072esac
27073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000027075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; } &&
27078 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027079 { (case "(($ac_try" in
27080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081 *) ac_try_echo=$ac_try;;
27082esac
27083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000027085 ac_status=$?
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; }; then
27088 ac_cv_lib_m_sin=yes
27089else
27090 echo "$as_me: failed program was:" >&5
27091sed 's/^/| /' conftest.$ac_ext >&5
27092
Reid Spencera773bd52006-08-04 18:18:08 +000027093 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027094fi
Reid Spencera773bd52006-08-04 18:18:08 +000027095
27096rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027097 conftest$ac_exeext conftest.$ac_ext
27098LIBS=$ac_check_lib_save_LIBS
27099fi
Reid Spencera773bd52006-08-04 18:18:08 +000027100{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27101echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027102if test $ac_cv_lib_m_sin = yes; then
27103 cat >>confdefs.h <<_ACEOF
27104#define HAVE_LIBM 1
27105_ACEOF
27106
27107 LIBS="-lm $LIBS"
27108
27109fi
27110
Jeff Cohen28783c32007-01-12 18:22:38 +000027111if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027112
Reid Spencera773bd52006-08-04 18:18:08 +000027113{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27114echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027115if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027116 echo $ECHO_N "(cached) $ECHO_C" >&6
27117else
27118 ac_check_lib_save_LIBS=$LIBS
27119LIBS="-limagehlp $LIBS"
27120cat >conftest.$ac_ext <<_ACEOF
27121/* confdefs.h. */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h. */
27126
Reid Spencer48fdf912006-06-01 19:03:21 +000027127
Reid Spencer484fc8e2006-06-01 16:55:59 +000027128int
27129main ()
27130{
Reid Spencera773bd52006-08-04 18:18:08 +000027131return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027132 ;
27133 return 0;
27134}
27135_ACEOF
27136rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027137if { (ac_try="$ac_link"
27138case "(($ac_try" in
27139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140 *) ac_try_echo=$ac_try;;
27141esac
27142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027144 ac_status=$?
27145 grep -v '^ *+' conftest.er1 >conftest.err
27146 rm -f conftest.er1
27147 cat conftest.err >&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27151 { (case "(($ac_try" in
27152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153 *) ac_try_echo=$ac_try;;
27154esac
27155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027157 ac_status=$?
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); }; } &&
27160 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027161 { (case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27164esac
27165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027167 ac_status=$?
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027170 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027171else
27172 echo "$as_me: failed program was:" >&5
27173sed 's/^/| /' conftest.$ac_ext >&5
27174
Reid Spencera773bd52006-08-04 18:18:08 +000027175 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027176fi
Reid Spencera773bd52006-08-04 18:18:08 +000027177
27178rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027179 conftest$ac_exeext conftest.$ac_ext
27180LIBS=$ac_check_lib_save_LIBS
27181fi
Reid Spencera773bd52006-08-04 18:18:08 +000027182{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27183echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027184if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027185 cat >>confdefs.h <<_ACEOF
27186#define HAVE_LIBIMAGEHLP 1
27187_ACEOF
27188
27189 LIBS="-limagehlp $LIBS"
27190
27191fi
27192
27193
Reid Spencera773bd52006-08-04 18:18:08 +000027194{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27195echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027196if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027197 echo $ECHO_N "(cached) $ECHO_C" >&6
27198else
27199 ac_check_lib_save_LIBS=$LIBS
27200LIBS="-lpsapi $LIBS"
27201cat >conftest.$ac_ext <<_ACEOF
27202/* confdefs.h. */
27203_ACEOF
27204cat confdefs.h >>conftest.$ac_ext
27205cat >>conftest.$ac_ext <<_ACEOF
27206/* end confdefs.h. */
27207
Reid Spencer48fdf912006-06-01 19:03:21 +000027208
Reid Spencer484fc8e2006-06-01 16:55:59 +000027209int
27210main ()
27211{
Reid Spencera773bd52006-08-04 18:18:08 +000027212return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027213 ;
27214 return 0;
27215}
27216_ACEOF
27217rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027218if { (ac_try="$ac_link"
27219case "(($ac_try" in
27220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221 *) ac_try_echo=$ac_try;;
27222esac
27223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27224 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027225 ac_status=$?
27226 grep -v '^ *+' conftest.er1 >conftest.err
27227 rm -f conftest.er1
27228 cat conftest.err >&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27232 { (case "(($ac_try" in
27233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234 *) ac_try_echo=$ac_try;;
27235esac
27236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27237 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027238 ac_status=$?
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); }; } &&
27241 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027242 { (case "(($ac_try" in
27243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27244 *) ac_try_echo=$ac_try;;
27245esac
27246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027248 ac_status=$?
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027251 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027252else
27253 echo "$as_me: failed program was:" >&5
27254sed 's/^/| /' conftest.$ac_ext >&5
27255
Reid Spencera773bd52006-08-04 18:18:08 +000027256 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027257fi
Reid Spencera773bd52006-08-04 18:18:08 +000027258
27259rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027260 conftest$ac_exeext conftest.$ac_ext
27261LIBS=$ac_check_lib_save_LIBS
27262fi
Reid Spencera773bd52006-08-04 18:18:08 +000027263{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27264echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027265if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027266 cat >>confdefs.h <<_ACEOF
27267#define HAVE_LIBPSAPI 1
27268_ACEOF
27269
27270 LIBS="-lpsapi $LIBS"
27271
27272fi
27273
27274fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027275
Reid Spencera773bd52006-08-04 18:18:08 +000027276{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27277echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027278if test "${ac_cv_search_lt_dlopen+set}" = set; then
27279 echo $ECHO_N "(cached) $ECHO_C" >&6
27280else
27281 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027282cat >conftest.$ac_ext <<_ACEOF
27283/* confdefs.h. */
27284_ACEOF
27285cat confdefs.h >>conftest.$ac_ext
27286cat >>conftest.$ac_ext <<_ACEOF
27287/* end confdefs.h. */
27288
Reid Spencera773bd52006-08-04 18:18:08 +000027289/* Override any GCC internal prototype to avoid an error.
27290 Use char because int might match the return type of a GCC
27291 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027292#ifdef __cplusplus
27293extern "C"
27294#endif
Reid Spencer17795972004-11-18 09:47:37 +000027295char lt_dlopen ();
27296int
27297main ()
27298{
Reid Spencera773bd52006-08-04 18:18:08 +000027299return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027300 ;
27301 return 0;
27302}
27303_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027304for ac_lib in '' ltdl; do
27305 if test -z "$ac_lib"; then
27306 ac_res="none required"
27307 else
27308 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027310 fi
27311 rm -f conftest.$ac_objext conftest$ac_exeext
27312if { (ac_try="$ac_link"
27313case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27316esac
27317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027319 ac_status=$?
27320 grep -v '^ *+' conftest.er1 >conftest.err
27321 rm -f conftest.er1
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27326 { (case "(($ac_try" in
27327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27328 *) ac_try_echo=$ac_try;;
27329esac
27330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27331 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027332 ac_status=$?
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); }; } &&
27335 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027336 { (case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27339esac
27340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027342 ac_status=$?
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027345 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027346else
27347 echo "$as_me: failed program was:" >&5
27348sed 's/^/| /' conftest.$ac_ext >&5
27349
Reid Spencera773bd52006-08-04 18:18:08 +000027350
Reid Spencer17795972004-11-18 09:47:37 +000027351fi
Reid Spencera773bd52006-08-04 18:18:08 +000027352
27353rm -f core conftest.err conftest.$ac_objext \
27354 conftest$ac_exeext
27355 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27356 break
Reid Spencer17795972004-11-18 09:47:37 +000027357fi
Reid Spencera773bd52006-08-04 18:18:08 +000027358done
27359if test "${ac_cv_search_lt_dlopen+set}" = set; then
27360 :
27361else
27362 ac_cv_search_lt_dlopen=no
27363fi
27364rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027365LIBS=$ac_func_search_save_LIBS
27366fi
Reid Spencera773bd52006-08-04 18:18:08 +000027367{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27368echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27369ac_res=$ac_cv_search_lt_dlopen
27370if test "$ac_res" != no; then
27371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027372
27373cat >>confdefs.h <<\_ACEOF
27374#define HAVE_LT_DLOPEN 1
27375_ACEOF
27376
27377else
27378 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27379 not be available" >&5
27380echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27381 not be available" >&2;}
27382fi
27383
27384
Reid Spencera773bd52006-08-04 18:18:08 +000027385{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27386echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027387if test "${ac_cv_search_dlopen+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27389else
27390 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027391cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027392/* confdefs.h. */
27393_ACEOF
27394cat confdefs.h >>conftest.$ac_ext
27395cat >>conftest.$ac_ext <<_ACEOF
27396/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027397
Reid Spencera773bd52006-08-04 18:18:08 +000027398/* Override any GCC internal prototype to avoid an error.
27399 Use char because int might match the return type of a GCC
27400 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027401#ifdef __cplusplus
27402extern "C"
27403#endif
John Criswell7a73b802003-06-30 21:59:07 +000027404char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027405int
27406main ()
27407{
Reid Spencera773bd52006-08-04 18:18:08 +000027408return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027409 ;
27410 return 0;
27411}
27412_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027413for ac_lib in '' dl; do
27414 if test -z "$ac_lib"; then
27415 ac_res="none required"
27416 else
27417 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027419 fi
27420 rm -f conftest.$ac_objext conftest$ac_exeext
27421if { (ac_try="$ac_link"
27422case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27425esac
27426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027428 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027429 grep -v '^ *+' conftest.er1 >conftest.err
27430 rm -f conftest.er1
27431 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435 { (case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27438esac
27439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027441 ac_status=$?
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27448esac
27449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027454 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027455else
27456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027457sed 's/^/| /' conftest.$ac_ext >&5
27458
Reid Spencera773bd52006-08-04 18:18:08 +000027459
John Criswell7a73b802003-06-30 21:59:07 +000027460fi
Reid Spencera773bd52006-08-04 18:18:08 +000027461
27462rm -f core conftest.err conftest.$ac_objext \
27463 conftest$ac_exeext
27464 if test "${ac_cv_search_dlopen+set}" = set; then
27465 break
John Criswell7a73b802003-06-30 21:59:07 +000027466fi
Reid Spencera773bd52006-08-04 18:18:08 +000027467done
27468if test "${ac_cv_search_dlopen+set}" = set; then
27469 :
27470else
27471 ac_cv_search_dlopen=no
27472fi
27473rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027474LIBS=$ac_func_search_save_LIBS
27475fi
Reid Spencera773bd52006-08-04 18:18:08 +000027476{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27477echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27478ac_res=$ac_cv_search_dlopen
27479if test "$ac_res" != no; then
27480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027481
27482cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027483#define HAVE_DLOPEN 1
27484_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027485
27486else
Brian Gaekec45be042003-10-07 06:01:34 +000027487 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27488echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027489fi
27490
27491
Reid Spencera773bd52006-08-04 18:18:08 +000027492{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27493echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027494if test "${ac_cv_search_mallinfo+set}" = set; then
27495 echo $ECHO_N "(cached) $ECHO_C" >&6
27496else
27497 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027498cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027499/* confdefs.h. */
27500_ACEOF
27501cat confdefs.h >>conftest.$ac_ext
27502cat >>conftest.$ac_ext <<_ACEOF
27503/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027504
Reid Spencera773bd52006-08-04 18:18:08 +000027505/* Override any GCC internal prototype to avoid an error.
27506 Use char because int might match the return type of a GCC
27507 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027508#ifdef __cplusplus
27509extern "C"
27510#endif
John Criswell7a73b802003-06-30 21:59:07 +000027511char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027512int
27513main ()
27514{
Reid Spencera773bd52006-08-04 18:18:08 +000027515return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027516 ;
27517 return 0;
27518}
27519_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027520for ac_lib in '' malloc; do
27521 if test -z "$ac_lib"; then
27522 ac_res="none required"
27523 else
27524 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027526 fi
27527 rm -f conftest.$ac_objext conftest$ac_exeext
27528if { (ac_try="$ac_link"
27529case "(($ac_try" in
27530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27531 *) ac_try_echo=$ac_try;;
27532esac
27533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27534 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027535 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027536 grep -v '^ *+' conftest.er1 >conftest.err
27537 rm -f conftest.er1
27538 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27542 { (case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27545esac
27546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; } &&
27551 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027552 { (case "(($ac_try" in
27553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27554 *) ac_try_echo=$ac_try;;
27555esac
27556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27557 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027558 ac_status=$?
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027561 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027562else
27563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027564sed 's/^/| /' conftest.$ac_ext >&5
27565
Reid Spencera773bd52006-08-04 18:18:08 +000027566
John Criswell7a73b802003-06-30 21:59:07 +000027567fi
Reid Spencera773bd52006-08-04 18:18:08 +000027568
27569rm -f core conftest.err conftest.$ac_objext \
27570 conftest$ac_exeext
27571 if test "${ac_cv_search_mallinfo+set}" = set; then
27572 break
John Criswell7a73b802003-06-30 21:59:07 +000027573fi
Reid Spencera773bd52006-08-04 18:18:08 +000027574done
27575if test "${ac_cv_search_mallinfo+set}" = set; then
27576 :
27577else
27578 ac_cv_search_mallinfo=no
27579fi
27580rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027581LIBS=$ac_func_search_save_LIBS
27582fi
Reid Spencera773bd52006-08-04 18:18:08 +000027583{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27584echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27585ac_res=$ac_cv_search_mallinfo
27586if test "$ac_res" != no; then
27587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027588
27589cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027590#define HAVE_MALLINFO 1
27591_ACEOF
27592
27593fi
27594
27595
Reid Spencer0a262ba2005-08-24 10:07:20 +000027596if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027597
Reid Spencera773bd52006-08-04 18:18:08 +000027598{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27599echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027600if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27601 echo $ECHO_N "(cached) $ECHO_C" >&6
27602else
27603 ac_check_lib_save_LIBS=$LIBS
27604LIBS="-lpthread $LIBS"
27605cat >conftest.$ac_ext <<_ACEOF
27606/* confdefs.h. */
27607_ACEOF
27608cat confdefs.h >>conftest.$ac_ext
27609cat >>conftest.$ac_ext <<_ACEOF
27610/* end confdefs.h. */
27611
Reid Spencera773bd52006-08-04 18:18:08 +000027612/* Override any GCC internal prototype to avoid an error.
27613 Use char because int might match the return type of a GCC
27614 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027615#ifdef __cplusplus
27616extern "C"
27617#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027618char pthread_mutex_init ();
27619int
27620main ()
27621{
Reid Spencera773bd52006-08-04 18:18:08 +000027622return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027623 ;
27624 return 0;
27625}
27626_ACEOF
27627rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027628if { (ac_try="$ac_link"
27629case "(($ac_try" in
27630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27631 *) ac_try_echo=$ac_try;;
27632esac
27633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27634 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027635 ac_status=$?
27636 grep -v '^ *+' conftest.er1 >conftest.err
27637 rm -f conftest.er1
27638 cat conftest.err >&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27642 { (case "(($ac_try" in
27643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644 *) ac_try_echo=$ac_try;;
27645esac
27646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; } &&
27651 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027652 { (case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27655esac
27656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027658 ac_status=$?
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); }; }; then
27661 ac_cv_lib_pthread_pthread_mutex_init=yes
27662else
27663 echo "$as_me: failed program was:" >&5
27664sed 's/^/| /' conftest.$ac_ext >&5
27665
Reid Spencera773bd52006-08-04 18:18:08 +000027666 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027667fi
Reid Spencera773bd52006-08-04 18:18:08 +000027668
27669rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027670 conftest$ac_exeext conftest.$ac_ext
27671LIBS=$ac_check_lib_save_LIBS
27672fi
Reid Spencera773bd52006-08-04 18:18:08 +000027673{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27674echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027675if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27676 cat >>confdefs.h <<_ACEOF
27677#define HAVE_LIBPTHREAD 1
27678_ACEOF
27679
27680 LIBS="-lpthread $LIBS"
27681
27682fi
27683
Reid Spencera773bd52006-08-04 18:18:08 +000027684 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27685echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027686if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27688else
27689 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027690cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027691/* confdefs.h. */
27692_ACEOF
27693cat confdefs.h >>conftest.$ac_ext
27694cat >>conftest.$ac_ext <<_ACEOF
27695/* end confdefs.h. */
27696
Reid Spencera773bd52006-08-04 18:18:08 +000027697/* Override any GCC internal prototype to avoid an error.
27698 Use char because int might match the return type of a GCC
27699 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027700#ifdef __cplusplus
27701extern "C"
27702#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027703char pthread_mutex_lock ();
27704int
27705main ()
27706{
Reid Spencera773bd52006-08-04 18:18:08 +000027707return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027708 ;
27709 return 0;
27710}
27711_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027712for ac_lib in '' pthread; do
27713 if test -z "$ac_lib"; then
27714 ac_res="none required"
27715 else
27716 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027718 fi
27719 rm -f conftest.$ac_objext conftest$ac_exeext
27720if { (ac_try="$ac_link"
27721case "(($ac_try" in
27722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27723 *) ac_try_echo=$ac_try;;
27724esac
27725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27726 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027727 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027728 grep -v '^ *+' conftest.er1 >conftest.err
27729 rm -f conftest.er1
27730 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27734 { (case "(($ac_try" in
27735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736 *) ac_try_echo=$ac_try;;
27737esac
27738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27739 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027740 ac_status=$?
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; } &&
27743 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027744 { (case "(($ac_try" in
27745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746 *) ac_try_echo=$ac_try;;
27747esac
27748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027750 ac_status=$?
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027753 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027754else
27755 echo "$as_me: failed program was:" >&5
27756sed 's/^/| /' conftest.$ac_ext >&5
27757
Reid Spencera773bd52006-08-04 18:18:08 +000027758
Brian Gaeke5f268f72003-12-05 19:29:01 +000027759fi
Reid Spencera773bd52006-08-04 18:18:08 +000027760
27761rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext
27763 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27764 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027765fi
Reid Spencera773bd52006-08-04 18:18:08 +000027766done
27767if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27768 :
27769else
27770 ac_cv_search_pthread_mutex_lock=no
27771fi
27772rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027773LIBS=$ac_func_search_save_LIBS
27774fi
Reid Spencera773bd52006-08-04 18:18:08 +000027775{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27776echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27777ac_res=$ac_cv_search_pthread_mutex_lock
27778if test "$ac_res" != no; then
27779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027780
John Criswell40468462004-09-24 21:19:06 +000027781cat >>confdefs.h <<\_ACEOF
27782#define HAVE_PTHREAD_MUTEX_LOCK 1
27783_ACEOF
27784
27785fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027786
Reid Spencer0a262ba2005-08-24 10:07:20 +000027787fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027788
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027789
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027790# Check whether --with-udis86 was given.
27791if test "${with_udis86+set}" = set; then
27792 withval=$with_udis86;
27793 USE_UDIS86=1
27794
27795 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027796 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027797 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27798 esac
27799
27800{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27801echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27802if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27804else
27805 ac_check_lib_save_LIBS=$LIBS
27806LIBS="-ludis86 $LIBS"
27807cat >conftest.$ac_ext <<_ACEOF
27808/* confdefs.h. */
27809_ACEOF
27810cat confdefs.h >>conftest.$ac_ext
27811cat >>conftest.$ac_ext <<_ACEOF
27812/* end confdefs.h. */
27813
27814/* Override any GCC internal prototype to avoid an error.
27815 Use char because int might match the return type of a GCC
27816 builtin and then its argument prototype would still apply. */
27817#ifdef __cplusplus
27818extern "C"
27819#endif
27820char ud_init ();
27821int
27822main ()
27823{
27824return ud_init ();
27825 ;
27826 return 0;
27827}
27828_ACEOF
27829rm -f conftest.$ac_objext conftest$ac_exeext
27830if { (ac_try="$ac_link"
27831case "(($ac_try" in
27832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833 *) ac_try_echo=$ac_try;;
27834esac
27835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836 (eval "$ac_link") 2>conftest.er1
27837 ac_status=$?
27838 grep -v '^ *+' conftest.er1 >conftest.err
27839 rm -f conftest.er1
27840 cat conftest.err >&5
27841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842 (exit $ac_status); } &&
27843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27844 { (case "(($ac_try" in
27845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27846 *) ac_try_echo=$ac_try;;
27847esac
27848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27849 (eval "$ac_try") 2>&5
27850 ac_status=$?
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); }; } &&
27853 { ac_try='test -s conftest$ac_exeext'
27854 { (case "(($ac_try" in
27855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856 *) ac_try_echo=$ac_try;;
27857esac
27858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859 (eval "$ac_try") 2>&5
27860 ac_status=$?
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); }; }; then
27863 ac_cv_lib_udis86_ud_init=yes
27864else
27865 echo "$as_me: failed program was:" >&5
27866sed 's/^/| /' conftest.$ac_ext >&5
27867
27868 ac_cv_lib_udis86_ud_init=no
27869fi
27870
27871rm -f core conftest.err conftest.$ac_objext \
27872 conftest$ac_exeext conftest.$ac_ext
27873LIBS=$ac_check_lib_save_LIBS
27874fi
27875{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27876echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27877if test $ac_cv_lib_udis86_ud_init = yes; then
27878 cat >>confdefs.h <<_ACEOF
27879#define HAVE_LIBUDIS86 1
27880_ACEOF
27881
27882 LIBS="-ludis86 $LIBS"
27883
27884else
27885
27886 echo "Error! You need to have libudis86 around."
27887 exit -1
27888
27889fi
27890
27891
27892else
27893 USE_UDIS86=0
27894
27895fi
27896
27897
27898cat >>confdefs.h <<_ACEOF
27899#define USE_UDIS86 $USE_UDIS86
27900_ACEOF
27901
27902
27903
Reid Spencer59473af2004-12-25 07:31:29 +000027904
27905
27906
27907
27908
27909ac_header_dirent=no
27910for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27911 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027912{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27913echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027915 echo $ECHO_N "(cached) $ECHO_C" >&6
27916else
27917 cat >conftest.$ac_ext <<_ACEOF
27918/* confdefs.h. */
27919_ACEOF
27920cat confdefs.h >>conftest.$ac_ext
27921cat >>conftest.$ac_ext <<_ACEOF
27922/* end confdefs.h. */
27923#include <sys/types.h>
27924#include <$ac_hdr>
27925
27926int
27927main ()
27928{
27929if ((DIR *) 0)
27930return 0;
27931 ;
27932 return 0;
27933}
27934_ACEOF
27935rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027936if { (ac_try="$ac_compile"
27937case "(($ac_try" in
27938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939 *) ac_try_echo=$ac_try;;
27940esac
27941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027943 ac_status=$?
27944 grep -v '^ *+' conftest.er1 >conftest.err
27945 rm -f conftest.er1
27946 cat conftest.err >&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27950 { (case "(($ac_try" in
27951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952 *) ac_try_echo=$ac_try;;
27953esac
27954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27955 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027956 ac_status=$?
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); }; } &&
27959 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027960 { (case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27963esac
27964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027966 ac_status=$?
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; }; then
27969 eval "$as_ac_Header=yes"
27970else
27971 echo "$as_me: failed program was:" >&5
27972sed 's/^/| /' conftest.$ac_ext >&5
27973
Reid Spencera773bd52006-08-04 18:18:08 +000027974 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027975fi
Reid Spencera773bd52006-08-04 18:18:08 +000027976
27977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027978fi
Reid Spencera773bd52006-08-04 18:18:08 +000027979ac_res=`eval echo '${'$as_ac_Header'}'`
27980 { echo "$as_me:$LINENO: result: $ac_res" >&5
27981echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027982if test `eval echo '${'$as_ac_Header'}'` = yes; then
27983 cat >>confdefs.h <<_ACEOF
27984#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27985_ACEOF
27986
27987ac_header_dirent=$ac_hdr; break
27988fi
27989
27990done
27991# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27992if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027993 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27994echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027995if test "${ac_cv_search_opendir+set}" = set; then
27996 echo $ECHO_N "(cached) $ECHO_C" >&6
27997else
27998 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027999cat >conftest.$ac_ext <<_ACEOF
28000/* confdefs.h. */
28001_ACEOF
28002cat confdefs.h >>conftest.$ac_ext
28003cat >>conftest.$ac_ext <<_ACEOF
28004/* end confdefs.h. */
28005
Reid Spencera773bd52006-08-04 18:18:08 +000028006/* Override any GCC internal prototype to avoid an error.
28007 Use char because int might match the return type of a GCC
28008 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028009#ifdef __cplusplus
28010extern "C"
28011#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028012char opendir ();
28013int
28014main ()
28015{
Reid Spencera773bd52006-08-04 18:18:08 +000028016return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028017 ;
28018 return 0;
28019}
28020_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028021for ac_lib in '' dir; do
28022 if test -z "$ac_lib"; then
28023 ac_res="none required"
28024 else
28025 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028027 fi
28028 rm -f conftest.$ac_objext conftest$ac_exeext
28029if { (ac_try="$ac_link"
28030case "(($ac_try" in
28031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032 *) ac_try_echo=$ac_try;;
28033esac
28034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28035 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028036 ac_status=$?
28037 grep -v '^ *+' conftest.er1 >conftest.err
28038 rm -f conftest.er1
28039 cat conftest.err >&5
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28043 { (case "(($ac_try" in
28044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045 *) ac_try_echo=$ac_try;;
28046esac
28047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; } &&
28052 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028053 { (case "(($ac_try" in
28054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055 *) ac_try_echo=$ac_try;;
28056esac
28057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28058 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028059 ac_status=$?
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028062 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028063else
28064 echo "$as_me: failed program was:" >&5
28065sed 's/^/| /' conftest.$ac_ext >&5
28066
Reid Spencera773bd52006-08-04 18:18:08 +000028067
Reid Spencer59473af2004-12-25 07:31:29 +000028068fi
Reid Spencera773bd52006-08-04 18:18:08 +000028069
28070rm -f core conftest.err conftest.$ac_objext \
28071 conftest$ac_exeext
28072 if test "${ac_cv_search_opendir+set}" = set; then
28073 break
Reid Spencer59473af2004-12-25 07:31:29 +000028074fi
Reid Spencera773bd52006-08-04 18:18:08 +000028075done
28076if test "${ac_cv_search_opendir+set}" = set; then
28077 :
28078else
28079 ac_cv_search_opendir=no
28080fi
28081rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028082LIBS=$ac_func_search_save_LIBS
28083fi
Reid Spencera773bd52006-08-04 18:18:08 +000028084{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28085echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28086ac_res=$ac_cv_search_opendir
28087if test "$ac_res" != no; then
28088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028089
28090fi
28091
28092else
Reid Spencera773bd52006-08-04 18:18:08 +000028093 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28094echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028095if test "${ac_cv_search_opendir+set}" = set; then
28096 echo $ECHO_N "(cached) $ECHO_C" >&6
28097else
28098 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028099cat >conftest.$ac_ext <<_ACEOF
28100/* confdefs.h. */
28101_ACEOF
28102cat confdefs.h >>conftest.$ac_ext
28103cat >>conftest.$ac_ext <<_ACEOF
28104/* end confdefs.h. */
28105
Reid Spencera773bd52006-08-04 18:18:08 +000028106/* Override any GCC internal prototype to avoid an error.
28107 Use char because int might match the return type of a GCC
28108 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028109#ifdef __cplusplus
28110extern "C"
28111#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028112char opendir ();
28113int
28114main ()
28115{
Reid Spencera773bd52006-08-04 18:18:08 +000028116return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028117 ;
28118 return 0;
28119}
28120_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028121for ac_lib in '' x; do
28122 if test -z "$ac_lib"; then
28123 ac_res="none required"
28124 else
28125 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028127 fi
28128 rm -f conftest.$ac_objext conftest$ac_exeext
28129if { (ac_try="$ac_link"
28130case "(($ac_try" in
28131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28132 *) ac_try_echo=$ac_try;;
28133esac
28134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28135 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028136 ac_status=$?
28137 grep -v '^ *+' conftest.er1 >conftest.err
28138 rm -f conftest.er1
28139 cat conftest.err >&5
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28143 { (case "(($ac_try" in
28144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145 *) ac_try_echo=$ac_try;;
28146esac
28147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028149 ac_status=$?
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; } &&
28152 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028153 { (case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28156esac
28157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028162 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028163else
28164 echo "$as_me: failed program was:" >&5
28165sed 's/^/| /' conftest.$ac_ext >&5
28166
Reid Spencera773bd52006-08-04 18:18:08 +000028167
Reid Spencer59473af2004-12-25 07:31:29 +000028168fi
Reid Spencera773bd52006-08-04 18:18:08 +000028169
28170rm -f core conftest.err conftest.$ac_objext \
28171 conftest$ac_exeext
28172 if test "${ac_cv_search_opendir+set}" = set; then
28173 break
Reid Spencer59473af2004-12-25 07:31:29 +000028174fi
Reid Spencera773bd52006-08-04 18:18:08 +000028175done
28176if test "${ac_cv_search_opendir+set}" = set; then
28177 :
28178else
28179 ac_cv_search_opendir=no
28180fi
28181rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028182LIBS=$ac_func_search_save_LIBS
28183fi
Reid Spencera773bd52006-08-04 18:18:08 +000028184{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28185echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28186ac_res=$ac_cv_search_opendir
28187if test "$ac_res" != no; then
28188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028189
28190fi
28191
28192fi
28193
Reid Spencera773bd52006-08-04 18:18:08 +000028194{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28195echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028196if test "${ac_cv_header_mmap_anon+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28198else
28199 ac_ext=c
28200ac_cpp='$CPP $CPPFLAGS'
28201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28203ac_compiler_gnu=$ac_cv_c_compiler_gnu
28204
28205 cat >conftest.$ac_ext <<_ACEOF
28206/* confdefs.h. */
28207_ACEOF
28208cat confdefs.h >>conftest.$ac_ext
28209cat >>conftest.$ac_ext <<_ACEOF
28210/* end confdefs.h. */
28211#include <sys/mman.h>
28212#include <unistd.h>
28213#include <fcntl.h>
28214int
28215main ()
28216{
28217mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28218 ;
28219 return 0;
28220}
28221_ACEOF
28222rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028223if { (ac_try="$ac_compile"
28224case "(($ac_try" in
28225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226 *) ac_try_echo=$ac_try;;
28227esac
28228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28229 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028230 ac_status=$?
28231 grep -v '^ *+' conftest.er1 >conftest.err
28232 rm -f conftest.er1
28233 cat conftest.err >&5
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28237 { (case "(($ac_try" in
28238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239 *) ac_try_echo=$ac_try;;
28240esac
28241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28242 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; } &&
28246 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028247 { (case "(($ac_try" in
28248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249 *) ac_try_echo=$ac_try;;
28250esac
28251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028253 ac_status=$?
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); }; }; then
28256 ac_cv_header_mmap_anon=yes
28257else
28258 echo "$as_me: failed program was:" >&5
28259sed 's/^/| /' conftest.$ac_ext >&5
28260
Reid Spencera773bd52006-08-04 18:18:08 +000028261 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028262fi
Reid Spencera773bd52006-08-04 18:18:08 +000028263
28264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028265 ac_ext=c
28266ac_cpp='$CPP $CPPFLAGS'
28267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28269ac_compiler_gnu=$ac_cv_c_compiler_gnu
28270
28271
28272fi
Reid Spencera773bd52006-08-04 18:18:08 +000028273{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28274echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028275if test "$ac_cv_header_mmap_anon" = yes; then
28276
28277cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028278#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028279_ACEOF
28280
28281fi
28282
Reid Spencera773bd52006-08-04 18:18:08 +000028283{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28284echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028285if test "${ac_cv_header_stat_broken+set}" = set; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28287else
28288 cat >conftest.$ac_ext <<_ACEOF
28289/* confdefs.h. */
28290_ACEOF
28291cat confdefs.h >>conftest.$ac_ext
28292cat >>conftest.$ac_ext <<_ACEOF
28293/* end confdefs.h. */
28294#include <sys/types.h>
28295#include <sys/stat.h>
28296
Reid Spencera773bd52006-08-04 18:18:08 +000028297#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028298# if S_ISBLK (S_IFDIR)
28299You lose.
28300# endif
28301#endif
28302
Reid Spencera773bd52006-08-04 18:18:08 +000028303#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028304# if S_ISBLK (S_IFCHR)
28305You lose.
28306# endif
28307#endif
28308
Reid Spencera773bd52006-08-04 18:18:08 +000028309#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028310# if S_ISLNK (S_IFREG)
28311You lose.
28312# endif
28313#endif
28314
Reid Spencera773bd52006-08-04 18:18:08 +000028315#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028316# if S_ISSOCK (S_IFREG)
28317You lose.
28318# endif
28319#endif
28320
28321_ACEOF
28322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28323 $EGREP "You lose" >/dev/null 2>&1; then
28324 ac_cv_header_stat_broken=yes
28325else
28326 ac_cv_header_stat_broken=no
28327fi
28328rm -f conftest*
28329
28330fi
Reid Spencera773bd52006-08-04 18:18:08 +000028331{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28332echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028333if test $ac_cv_header_stat_broken = yes; then
28334
28335cat >>confdefs.h <<\_ACEOF
28336#define STAT_MACROS_BROKEN 1
28337_ACEOF
28338
28339fi
28340
Reid Spencera773bd52006-08-04 18:18:08 +000028341{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28342echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028343if test "${ac_cv_header_stdc+set}" = set; then
28344 echo $ECHO_N "(cached) $ECHO_C" >&6
28345else
28346 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028347/* confdefs.h. */
28348_ACEOF
28349cat confdefs.h >>conftest.$ac_ext
28350cat >>conftest.$ac_ext <<_ACEOF
28351/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028352#include <stdlib.h>
28353#include <stdarg.h>
28354#include <string.h>
28355#include <float.h>
28356
John Criswell0c38eaf2003-09-10 15:17:25 +000028357int
28358main ()
28359{
28360
28361 ;
28362 return 0;
28363}
John Criswell7a73b802003-06-30 21:59:07 +000028364_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028365rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028366if { (ac_try="$ac_compile"
28367case "(($ac_try" in
28368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28369 *) ac_try_echo=$ac_try;;
28370esac
28371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28372 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028374 grep -v '^ *+' conftest.er1 >conftest.err
28375 rm -f conftest.er1
28376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028378 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28380 { (case "(($ac_try" in
28381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382 *) ac_try_echo=$ac_try;;
28383esac
28384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028386 ac_status=$?
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); }; } &&
28389 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028390 { (case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28393esac
28394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028399 ac_cv_header_stdc=yes
28400else
28401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028402sed 's/^/| /' conftest.$ac_ext >&5
28403
Reid Spencera773bd52006-08-04 18:18:08 +000028404 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028405fi
Reid Spencera773bd52006-08-04 18:18:08 +000028406
28407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028408
28409if test $ac_cv_header_stdc = yes; then
28410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28411 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028412/* confdefs.h. */
28413_ACEOF
28414cat confdefs.h >>conftest.$ac_ext
28415cat >>conftest.$ac_ext <<_ACEOF
28416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028417#include <string.h>
28418
28419_ACEOF
28420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028421 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028422 :
28423else
28424 ac_cv_header_stdc=no
28425fi
28426rm -f conftest*
28427
28428fi
28429
28430if test $ac_cv_header_stdc = yes; then
28431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028433/* confdefs.h. */
28434_ACEOF
28435cat confdefs.h >>conftest.$ac_ext
28436cat >>conftest.$ac_ext <<_ACEOF
28437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028438#include <stdlib.h>
28439
28440_ACEOF
28441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028442 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028443 :
28444else
28445 ac_cv_header_stdc=no
28446fi
28447rm -f conftest*
28448
28449fi
28450
28451if test $ac_cv_header_stdc = yes; then
28452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28453 if test "$cross_compiling" = yes; then
28454 :
28455else
28456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028457/* confdefs.h. */
28458_ACEOF
28459cat confdefs.h >>conftest.$ac_ext
28460cat >>conftest.$ac_ext <<_ACEOF
28461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028462#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028463#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028464#if ((' ' & 0x0FF) == 0x020)
28465# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28466# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28467#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028468# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028469 (('a' <= (c) && (c) <= 'i') \
28470 || ('j' <= (c) && (c) <= 'r') \
28471 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28473#endif
28474
28475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28476int
28477main ()
28478{
28479 int i;
28480 for (i = 0; i < 256; i++)
28481 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028482 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028483 return 2;
28484 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028485}
28486_ACEOF
28487rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028488if { (ac_try="$ac_link"
28489case "(($ac_try" in
28490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491 *) ac_try_echo=$ac_try;;
28492esac
28493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028498 { (case "(($ac_try" in
28499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500 *) ac_try_echo=$ac_try;;
28501esac
28502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028504 ac_status=$?
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); }; }; then
28507 :
28508else
28509 echo "$as_me: program exited with status $ac_status" >&5
28510echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028511sed 's/^/| /' conftest.$ac_ext >&5
28512
John Criswell7a73b802003-06-30 21:59:07 +000028513( exit $ac_status )
28514ac_cv_header_stdc=no
28515fi
Reid Spencera773bd52006-08-04 18:18:08 +000028516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28517fi
28518
28519
John Criswell7a73b802003-06-30 21:59:07 +000028520fi
28521fi
Reid Spencera773bd52006-08-04 18:18:08 +000028522{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28523echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028524if test $ac_cv_header_stdc = yes; then
28525
28526cat >>confdefs.h <<\_ACEOF
28527#define STDC_HEADERS 1
28528_ACEOF
28529
28530fi
28531
Reid Spencera773bd52006-08-04 18:18:08 +000028532{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28533echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028534if test "${ac_cv_header_sys_wait_h+set}" = set; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28536else
28537 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028538/* confdefs.h. */
28539_ACEOF
28540cat confdefs.h >>conftest.$ac_ext
28541cat >>conftest.$ac_ext <<_ACEOF
28542/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028543#include <sys/types.h>
28544#include <sys/wait.h>
28545#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028546# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028547#endif
28548#ifndef WIFEXITED
28549# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28550#endif
28551
John Criswell7a73b802003-06-30 21:59:07 +000028552int
28553main ()
28554{
28555 int s;
28556 wait (&s);
28557 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28558 ;
28559 return 0;
28560}
28561_ACEOF
28562rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028563if { (ac_try="$ac_compile"
28564case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28567esac
28568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028570 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028571 grep -v '^ *+' conftest.er1 >conftest.err
28572 rm -f conftest.er1
28573 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28577 { (case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28580esac
28581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028583 ac_status=$?
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; } &&
28586 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028587 { (case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28590esac
28591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028593 ac_status=$?
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); }; }; then
28596 ac_cv_header_sys_wait_h=yes
28597else
28598 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028599sed 's/^/| /' conftest.$ac_ext >&5
28600
Reid Spencera773bd52006-08-04 18:18:08 +000028601 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028602fi
Reid Spencera773bd52006-08-04 18:18:08 +000028603
28604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028605fi
Reid Spencera773bd52006-08-04 18:18:08 +000028606{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28607echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028608if test $ac_cv_header_sys_wait_h = yes; then
28609
28610cat >>confdefs.h <<\_ACEOF
28611#define HAVE_SYS_WAIT_H 1
28612_ACEOF
28613
28614fi
28615
Reid Spencera773bd52006-08-04 18:18:08 +000028616{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28617echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028618if test "${ac_cv_header_time+set}" = set; then
28619 echo $ECHO_N "(cached) $ECHO_C" >&6
28620else
28621 cat >conftest.$ac_ext <<_ACEOF
28622/* confdefs.h. */
28623_ACEOF
28624cat confdefs.h >>conftest.$ac_ext
28625cat >>conftest.$ac_ext <<_ACEOF
28626/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028627#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028628#include <sys/time.h>
28629#include <time.h>
28630
28631int
28632main ()
28633{
28634if ((struct tm *) 0)
28635return 0;
28636 ;
28637 return 0;
28638}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028639_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028640rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028641if { (ac_try="$ac_compile"
28642case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28645esac
28646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028648 ac_status=$?
28649 grep -v '^ *+' conftest.er1 >conftest.err
28650 rm -f conftest.er1
28651 cat conftest.err >&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028653 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28655 { (case "(($ac_try" in
28656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657 *) ac_try_echo=$ac_try;;
28658esac
28659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028661 ac_status=$?
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); }; } &&
28664 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028665 { (case "(($ac_try" in
28666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667 *) ac_try_echo=$ac_try;;
28668esac
28669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028671 ac_status=$?
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); }; }; then
28674 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028675else
28676 echo "$as_me: failed program was:" >&5
28677sed 's/^/| /' conftest.$ac_ext >&5
28678
Reid Spencera773bd52006-08-04 18:18:08 +000028679 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028680fi
Reid Spencera773bd52006-08-04 18:18:08 +000028681
28682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028683fi
Reid Spencera773bd52006-08-04 18:18:08 +000028684{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28685echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028686if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028687
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028688cat >>confdefs.h <<\_ACEOF
28689#define TIME_WITH_SYS_TIME 1
28690_ACEOF
28691
28692fi
28693
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028694
Reid Spencer59473af2004-12-25 07:31:29 +000028695
28696
28697
28698
28699
28700
28701for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28702do
28703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028708 echo $ECHO_N "(cached) $ECHO_C" >&6
28709fi
Reid Spencera773bd52006-08-04 18:18:08 +000028710ac_res=`eval echo '${'$as_ac_Header'}'`
28711 { echo "$as_me:$LINENO: result: $ac_res" >&5
28712echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028713else
28714 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028715{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028717cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028718/* confdefs.h. */
28719_ACEOF
28720cat confdefs.h >>conftest.$ac_ext
28721cat >>conftest.$ac_ext <<_ACEOF
28722/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028723$ac_includes_default
28724#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028725_ACEOF
28726rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028727if { (ac_try="$ac_compile"
28728case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28731esac
28732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028734 ac_status=$?
28735 grep -v '^ *+' conftest.er1 >conftest.err
28736 rm -f conftest.er1
28737 cat conftest.err >&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28741 { (case "(($ac_try" in
28742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28743 *) ac_try_echo=$ac_try;;
28744esac
28745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28746 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028747 ac_status=$?
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028751 { (case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28754esac
28755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028760 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028761else
28762 echo "$as_me: failed program was:" >&5
28763sed 's/^/| /' conftest.$ac_ext >&5
28764
Reid Spencera773bd52006-08-04 18:18:08 +000028765 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028766fi
Reid Spencera773bd52006-08-04 18:18:08 +000028767
28768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28770echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028771
Reid Spencer59473af2004-12-25 07:31:29 +000028772# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028773{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028775cat >conftest.$ac_ext <<_ACEOF
28776/* confdefs.h. */
28777_ACEOF
28778cat confdefs.h >>conftest.$ac_ext
28779cat >>conftest.$ac_ext <<_ACEOF
28780/* end confdefs.h. */
28781#include <$ac_header>
28782_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028783if { (ac_try="$ac_cpp conftest.$ac_ext"
28784case "(($ac_try" in
28785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28786 *) ac_try_echo=$ac_try;;
28787esac
28788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028790 ac_status=$?
28791 grep -v '^ *+' conftest.er1 >conftest.err
28792 rm -f conftest.er1
28793 cat conftest.err >&5
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); } >/dev/null; then
28796 if test -s conftest.err; then
28797 ac_cpp_err=$ac_c_preproc_warn_flag
28798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28799 else
28800 ac_cpp_err=
28801 fi
28802else
28803 ac_cpp_err=yes
28804fi
28805if test -z "$ac_cpp_err"; then
28806 ac_header_preproc=yes
28807else
28808 echo "$as_me: failed program was:" >&5
28809sed 's/^/| /' conftest.$ac_ext >&5
28810
28811 ac_header_preproc=no
28812fi
Reid Spencera773bd52006-08-04 18:18:08 +000028813
Reid Spencer59473af2004-12-25 07:31:29 +000028814rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028815{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28816echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028817
28818# So? What about this header?
28819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28820 yes:no: )
28821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28825 ac_header_preproc=yes
28826 ;;
28827 no:yes:* )
28828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028840 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028841## ----------------------------------- ##
28842## Report this to llvmbugs@cs.uiuc.edu ##
28843## ----------------------------------- ##
28844_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028845 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028846 ;;
28847esac
Reid Spencera773bd52006-08-04 18:18:08 +000028848{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028851 echo $ECHO_N "(cached) $ECHO_C" >&6
28852else
28853 eval "$as_ac_Header=\$ac_header_preproc"
28854fi
Reid Spencera773bd52006-08-04 18:18:08 +000028855ac_res=`eval echo '${'$as_ac_Header'}'`
28856 { echo "$as_me:$LINENO: result: $ac_res" >&5
28857echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028858
28859fi
Reid Spencer59473af2004-12-25 07:31:29 +000028860if test `eval echo '${'$as_ac_Header'}'` = yes; then
28861 cat >>confdefs.h <<_ACEOF
28862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028863_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028864
28865fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028866
Reid Spencer59473af2004-12-25 07:31:29 +000028867done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028868
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028869
28870
Reid Spencer59473af2004-12-25 07:31:29 +000028871
28872
28873
28874
Reid Spencercdb08a32006-06-05 16:11:07 +000028875for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028876do
28877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028882 echo $ECHO_N "(cached) $ECHO_C" >&6
28883fi
Reid Spencera773bd52006-08-04 18:18:08 +000028884ac_res=`eval echo '${'$as_ac_Header'}'`
28885 { echo "$as_me:$LINENO: result: $ac_res" >&5
28886echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028887else
28888 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028889{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28890echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028891cat >conftest.$ac_ext <<_ACEOF
28892/* confdefs.h. */
28893_ACEOF
28894cat confdefs.h >>conftest.$ac_ext
28895cat >>conftest.$ac_ext <<_ACEOF
28896/* end confdefs.h. */
28897$ac_includes_default
28898#include <$ac_header>
28899_ACEOF
28900rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028901if { (ac_try="$ac_compile"
28902case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28905esac
28906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028908 ac_status=$?
28909 grep -v '^ *+' conftest.er1 >conftest.err
28910 rm -f conftest.er1
28911 cat conftest.err >&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28915 { (case "(($ac_try" in
28916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28917 *) ac_try_echo=$ac_try;;
28918esac
28919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28920 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028921 ac_status=$?
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); }; } &&
28924 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028925 { (case "(($ac_try" in
28926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28927 *) ac_try_echo=$ac_try;;
28928esac
28929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28930 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); }; }; then
28934 ac_header_compiler=yes
28935else
28936 echo "$as_me: failed program was:" >&5
28937sed 's/^/| /' conftest.$ac_ext >&5
28938
Reid Spencera773bd52006-08-04 18:18:08 +000028939 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028940fi
Reid Spencera773bd52006-08-04 18:18:08 +000028941
28942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28943{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28944echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028945
28946# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028947{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28948echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028949cat >conftest.$ac_ext <<_ACEOF
28950/* confdefs.h. */
28951_ACEOF
28952cat confdefs.h >>conftest.$ac_ext
28953cat >>conftest.$ac_ext <<_ACEOF
28954/* end confdefs.h. */
28955#include <$ac_header>
28956_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028957if { (ac_try="$ac_cpp conftest.$ac_ext"
28958case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28961esac
28962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028964 ac_status=$?
28965 grep -v '^ *+' conftest.er1 >conftest.err
28966 rm -f conftest.er1
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } >/dev/null; then
28970 if test -s conftest.err; then
28971 ac_cpp_err=$ac_c_preproc_warn_flag
28972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28973 else
28974 ac_cpp_err=
28975 fi
28976else
28977 ac_cpp_err=yes
28978fi
28979if test -z "$ac_cpp_err"; then
28980 ac_header_preproc=yes
28981else
28982 echo "$as_me: failed program was:" >&5
28983sed 's/^/| /' conftest.$ac_ext >&5
28984
28985 ac_header_preproc=no
28986fi
Reid Spencera773bd52006-08-04 18:18:08 +000028987
Reid Spencer59473af2004-12-25 07:31:29 +000028988rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028989{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28990echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028991
28992# So? What about this header?
28993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28994 yes:no: )
28995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28998echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28999 ac_header_preproc=yes
29000 ;;
29001 no:yes:* )
29002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29005echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29007echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29009echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29013echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029014 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029015## ----------------------------------- ##
29016## Report this to llvmbugs@cs.uiuc.edu ##
29017## ----------------------------------- ##
29018_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029019 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029020 ;;
29021esac
Reid Spencera773bd52006-08-04 18:18:08 +000029022{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029025 echo $ECHO_N "(cached) $ECHO_C" >&6
29026else
29027 eval "$as_ac_Header=\$ac_header_preproc"
29028fi
Reid Spencera773bd52006-08-04 18:18:08 +000029029ac_res=`eval echo '${'$as_ac_Header'}'`
29030 { echo "$as_me:$LINENO: result: $ac_res" >&5
29031echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029032
29033fi
29034if test `eval echo '${'$as_ac_Header'}'` = yes; then
29035 cat >>confdefs.h <<_ACEOF
29036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29037_ACEOF
29038
29039fi
29040
29041done
29042
29043
Reid Spencerbe3e4192007-08-17 05:45:26 +000029044for ac_header in windows.h
29045do
29046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052fi
29053ac_res=`eval echo '${'$as_ac_Header'}'`
29054 { echo "$as_me:$LINENO: result: $ac_res" >&5
29055echo "${ECHO_T}$ac_res" >&6; }
29056else
29057 # Is the header compilable?
29058{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29060cat >conftest.$ac_ext <<_ACEOF
29061/* confdefs.h. */
29062_ACEOF
29063cat confdefs.h >>conftest.$ac_ext
29064cat >>conftest.$ac_ext <<_ACEOF
29065/* end confdefs.h. */
29066$ac_includes_default
29067#include <$ac_header>
29068_ACEOF
29069rm -f conftest.$ac_objext
29070if { (ac_try="$ac_compile"
29071case "(($ac_try" in
29072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29073 *) ac_try_echo=$ac_try;;
29074esac
29075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29076 (eval "$ac_compile") 2>conftest.er1
29077 ac_status=$?
29078 grep -v '^ *+' conftest.er1 >conftest.err
29079 rm -f conftest.er1
29080 cat conftest.err >&5
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); } &&
29083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29084 { (case "(($ac_try" in
29085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086 *) ac_try_echo=$ac_try;;
29087esac
29088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29089 (eval "$ac_try") 2>&5
29090 ac_status=$?
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; } &&
29093 { ac_try='test -s conftest.$ac_objext'
29094 { (case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29097esac
29098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_try") 2>&5
29100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; }; then
29103 ac_header_compiler=yes
29104else
29105 echo "$as_me: failed program was:" >&5
29106sed 's/^/| /' conftest.$ac_ext >&5
29107
29108 ac_header_compiler=no
29109fi
29110
29111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29112{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29113echo "${ECHO_T}$ac_header_compiler" >&6; }
29114
29115# Is the header present?
29116{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29118cat >conftest.$ac_ext <<_ACEOF
29119/* confdefs.h. */
29120_ACEOF
29121cat confdefs.h >>conftest.$ac_ext
29122cat >>conftest.$ac_ext <<_ACEOF
29123/* end confdefs.h. */
29124#include <$ac_header>
29125_ACEOF
29126if { (ac_try="$ac_cpp conftest.$ac_ext"
29127case "(($ac_try" in
29128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29129 *) ac_try_echo=$ac_try;;
29130esac
29131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29133 ac_status=$?
29134 grep -v '^ *+' conftest.er1 >conftest.err
29135 rm -f conftest.er1
29136 cat conftest.err >&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); } >/dev/null; then
29139 if test -s conftest.err; then
29140 ac_cpp_err=$ac_c_preproc_warn_flag
29141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29142 else
29143 ac_cpp_err=
29144 fi
29145else
29146 ac_cpp_err=yes
29147fi
29148if test -z "$ac_cpp_err"; then
29149 ac_header_preproc=yes
29150else
29151 echo "$as_me: failed program was:" >&5
29152sed 's/^/| /' conftest.$ac_ext >&5
29153
29154 ac_header_preproc=no
29155fi
29156
29157rm -f conftest.err conftest.$ac_ext
29158{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29159echo "${ECHO_T}$ac_header_preproc" >&6; }
29160
29161# So? What about this header?
29162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29163 yes:no: )
29164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29168 ac_header_preproc=yes
29169 ;;
29170 no:yes:* )
29171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29183 ( cat <<\_ASBOX
29184## ----------------------------------- ##
29185## Report this to llvmbugs@cs.uiuc.edu ##
29186## ----------------------------------- ##
29187_ASBOX
29188 ) | sed "s/^/$as_me: WARNING: /" >&2
29189 ;;
29190esac
29191{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29194 echo $ECHO_N "(cached) $ECHO_C" >&6
29195else
29196 eval "$as_ac_Header=\$ac_header_preproc"
29197fi
29198ac_res=`eval echo '${'$as_ac_Header'}'`
29199 { echo "$as_me:$LINENO: result: $ac_res" >&5
29200echo "${ECHO_T}$ac_res" >&6; }
29201
29202fi
29203if test `eval echo '${'$as_ac_Header'}'` = yes; then
29204 cat >>confdefs.h <<_ACEOF
29205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29206_ACEOF
29207
29208fi
29209
29210done
Reid Spencer59473af2004-12-25 07:31:29 +000029211
29212
29213
29214
Reid Spencerbe3e4192007-08-17 05:45:26 +000029215
29216for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029217do
29218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029223 echo $ECHO_N "(cached) $ECHO_C" >&6
29224fi
Reid Spencera773bd52006-08-04 18:18:08 +000029225ac_res=`eval echo '${'$as_ac_Header'}'`
29226 { echo "$as_me:$LINENO: result: $ac_res" >&5
29227echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029228else
29229 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029230{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029232cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029233/* confdefs.h. */
29234_ACEOF
29235cat confdefs.h >>conftest.$ac_ext
29236cat >>conftest.$ac_ext <<_ACEOF
29237/* end confdefs.h. */
29238$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029239#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029240_ACEOF
29241rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029242if { (ac_try="$ac_compile"
29243case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29246esac
29247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029249 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29256 { (case "(($ac_try" in
29257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258 *) ac_try_echo=$ac_try;;
29259esac
29260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029262 ac_status=$?
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; } &&
29265 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029266 { (case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29269esac
29270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_header_compiler=yes
29276else
29277 echo "$as_me: failed program was:" >&5
29278sed 's/^/| /' conftest.$ac_ext >&5
29279
Reid Spencera773bd52006-08-04 18:18:08 +000029280 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029281fi
Reid Spencera773bd52006-08-04 18:18:08 +000029282
29283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29285echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029286
29287# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029288{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029290cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029291/* confdefs.h. */
29292_ACEOF
29293cat confdefs.h >>conftest.$ac_ext
29294cat >>conftest.$ac_ext <<_ACEOF
29295/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029296#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029297_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029298if { (ac_try="$ac_cpp conftest.$ac_ext"
29299case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29302esac
29303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029305 ac_status=$?
29306 grep -v '^ *+' conftest.er1 >conftest.err
29307 rm -f conftest.er1
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } >/dev/null; then
29311 if test -s conftest.err; then
29312 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029314 else
29315 ac_cpp_err=
29316 fi
29317else
29318 ac_cpp_err=yes
29319fi
29320if test -z "$ac_cpp_err"; then
29321 ac_header_preproc=yes
29322else
29323 echo "$as_me: failed program was:" >&5
29324sed 's/^/| /' conftest.$ac_ext >&5
29325
29326 ac_header_preproc=no
29327fi
Reid Spencera773bd52006-08-04 18:18:08 +000029328
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029329rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29331echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029332
29333# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29335 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029340 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029341 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029342 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029355 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029356## ----------------------------------- ##
29357## Report this to llvmbugs@cs.uiuc.edu ##
29358## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029359_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029360 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029361 ;;
29362esac
Reid Spencera773bd52006-08-04 18:18:08 +000029363{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029366 echo $ECHO_N "(cached) $ECHO_C" >&6
29367else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029368 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029369fi
Reid Spencera773bd52006-08-04 18:18:08 +000029370ac_res=`eval echo '${'$as_ac_Header'}'`
29371 { echo "$as_me:$LINENO: result: $ac_res" >&5
29372echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029373
29374fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029375if test `eval echo '${'$as_ac_Header'}'` = yes; then
29376 cat >>confdefs.h <<_ACEOF
29377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029378_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029379
29380fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029381
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029382done
29383
John Criswell7ed43ad2004-07-19 16:12:29 +000029384
Reid Spencercdb08a32006-06-05 16:11:07 +000029385
Reid Spencera6d990a2006-09-14 06:17:21 +000029386
29387for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029388do
29389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029394 echo $ECHO_N "(cached) $ECHO_C" >&6
29395fi
Reid Spencera773bd52006-08-04 18:18:08 +000029396ac_res=`eval echo '${'$as_ac_Header'}'`
29397 { echo "$as_me:$LINENO: result: $ac_res" >&5
29398echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029399else
29400 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029403cat >conftest.$ac_ext <<_ACEOF
29404/* confdefs.h. */
29405_ACEOF
29406cat confdefs.h >>conftest.$ac_ext
29407cat >>conftest.$ac_ext <<_ACEOF
29408/* end confdefs.h. */
29409$ac_includes_default
29410#include <$ac_header>
29411_ACEOF
29412rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029413if { (ac_try="$ac_compile"
29414case "(($ac_try" in
29415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416 *) ac_try_echo=$ac_try;;
29417esac
29418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029420 ac_status=$?
29421 grep -v '^ *+' conftest.er1 >conftest.err
29422 rm -f conftest.er1
29423 cat conftest.err >&5
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29427 { (case "(($ac_try" in
29428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429 *) ac_try_echo=$ac_try;;
29430esac
29431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29432 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029433 ac_status=$?
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; } &&
29436 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029437 { (case "(($ac_try" in
29438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439 *) ac_try_echo=$ac_try;;
29440esac
29441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029443 ac_status=$?
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); }; }; then
29446 ac_header_compiler=yes
29447else
29448 echo "$as_me: failed program was:" >&5
29449sed 's/^/| /' conftest.$ac_ext >&5
29450
Reid Spencera773bd52006-08-04 18:18:08 +000029451 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029452fi
Reid Spencera773bd52006-08-04 18:18:08 +000029453
29454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29456echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029457
29458# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029459{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029461cat >conftest.$ac_ext <<_ACEOF
29462/* confdefs.h. */
29463_ACEOF
29464cat confdefs.h >>conftest.$ac_ext
29465cat >>conftest.$ac_ext <<_ACEOF
29466/* end confdefs.h. */
29467#include <$ac_header>
29468_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029469if { (ac_try="$ac_cpp conftest.$ac_ext"
29470case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29473esac
29474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029476 ac_status=$?
29477 grep -v '^ *+' conftest.er1 >conftest.err
29478 rm -f conftest.er1
29479 cat conftest.err >&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); } >/dev/null; then
29482 if test -s conftest.err; then
29483 ac_cpp_err=$ac_c_preproc_warn_flag
29484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29485 else
29486 ac_cpp_err=
29487 fi
29488else
29489 ac_cpp_err=yes
29490fi
29491if test -z "$ac_cpp_err"; then
29492 ac_header_preproc=yes
29493else
29494 echo "$as_me: failed program was:" >&5
29495sed 's/^/| /' conftest.$ac_ext >&5
29496
29497 ac_header_preproc=no
29498fi
Reid Spencera773bd52006-08-04 18:18:08 +000029499
Chris Lattner0b142592005-11-14 06:57:34 +000029500rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029501{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29502echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029503
29504# So? What about this header?
29505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29506 yes:no: )
29507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29511 ac_header_preproc=yes
29512 ;;
29513 no:yes:* )
29514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29517echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29521echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029526 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029527## ----------------------------------- ##
29528## Report this to llvmbugs@cs.uiuc.edu ##
29529## ----------------------------------- ##
29530_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029531 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029532 ;;
29533esac
Reid Spencera773bd52006-08-04 18:18:08 +000029534{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029537 echo $ECHO_N "(cached) $ECHO_C" >&6
29538else
29539 eval "$as_ac_Header=\$ac_header_preproc"
29540fi
Reid Spencera773bd52006-08-04 18:18:08 +000029541ac_res=`eval echo '${'$as_ac_Header'}'`
29542 { echo "$as_me:$LINENO: result: $ac_res" >&5
29543echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029544
29545fi
29546if test `eval echo '${'$as_ac_Header'}'` = yes; then
29547 cat >>confdefs.h <<_ACEOF
29548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29549_ACEOF
29550
29551fi
29552
29553done
29554
Reid Spencer0a262ba2005-08-24 10:07:20 +000029555if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029556
29557for ac_header in pthread.h
29558do
29559as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029564 echo $ECHO_N "(cached) $ECHO_C" >&6
29565fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029566ac_res=`eval echo '${'$as_ac_Header'}'`
29567 { echo "$as_me:$LINENO: result: $ac_res" >&5
29568echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029569else
29570 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029571{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029573cat >conftest.$ac_ext <<_ACEOF
29574/* confdefs.h. */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h. */
29579$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029580#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029581_ACEOF
29582rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029583if { (ac_try="$ac_compile"
29584case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29587esac
29588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029590 ac_status=$?
29591 grep -v '^ *+' conftest.er1 >conftest.err
29592 rm -f conftest.er1
29593 cat conftest.err >&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597 { (case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29600esac
29601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; } &&
29606 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029607 { (case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29610esac
29611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029613 ac_status=$?
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; }; then
29616 ac_header_compiler=yes
29617else
29618 echo "$as_me: failed program was:" >&5
29619sed 's/^/| /' conftest.$ac_ext >&5
29620
Reid Spencera773bd52006-08-04 18:18:08 +000029621 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029622fi
Reid Spencera773bd52006-08-04 18:18:08 +000029623
29624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29626echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029627
29628# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029629{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029631cat >conftest.$ac_ext <<_ACEOF
29632/* confdefs.h. */
29633_ACEOF
29634cat confdefs.h >>conftest.$ac_ext
29635cat >>conftest.$ac_ext <<_ACEOF
29636/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029637#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029638_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029639if { (ac_try="$ac_cpp conftest.$ac_ext"
29640case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29643esac
29644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029646 ac_status=$?
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } >/dev/null; then
29652 if test -s conftest.err; then
29653 ac_cpp_err=$ac_c_preproc_warn_flag
29654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29655 else
29656 ac_cpp_err=
29657 fi
29658else
29659 ac_cpp_err=yes
29660fi
29661if test -z "$ac_cpp_err"; then
29662 ac_header_preproc=yes
29663else
29664 echo "$as_me: failed program was:" >&5
29665sed 's/^/| /' conftest.$ac_ext >&5
29666
29667 ac_header_preproc=no
29668fi
Reid Spencera773bd52006-08-04 18:18:08 +000029669
Reid Spencer0a262ba2005-08-24 10:07:20 +000029670rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029671{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29672echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029673
29674# So? What about this header?
29675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29676 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29678echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29680echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029681 ac_header_preproc=yes
29682 ;;
29683 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29687echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29689echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29691echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29695echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029696 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029697## ----------------------------------- ##
29698## Report this to llvmbugs@cs.uiuc.edu ##
29699## ----------------------------------- ##
29700_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029701 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029702 ;;
29703esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029704{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029707 echo $ECHO_N "(cached) $ECHO_C" >&6
29708else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029709 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029710fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029711ac_res=`eval echo '${'$as_ac_Header'}'`
29712 { echo "$as_me:$LINENO: result: $ac_res" >&5
29713echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029714
29715fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029716if test `eval echo '${'$as_ac_Header'}'` = yes; then
29717 cat >>confdefs.h <<_ACEOF
29718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29719_ACEOF
29720 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029721
29722else
29723 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029724
29725fi
29726
Reid Spencerbe3e4192007-08-17 05:45:26 +000029727done
Reid Spencer1000b732006-12-01 00:37:14 +000029728
29729else
29730 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029731
29732fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029733
29734
Reid Spencerb2ed05262006-11-03 18:04:08 +000029735
29736 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29737echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29738if test "${ac_cv_huge_val_sanity+set}" = set; then
29739 echo $ECHO_N "(cached) $ECHO_C" >&6
29740else
29741
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029742 ac_ext=cpp
29743ac_cpp='$CXXCPP $CPPFLAGS'
29744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029747
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029748 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029749 if test "$cross_compiling" = yes; then
29750 ac_cv_huge_val_sanity=yes
29751else
29752 cat >conftest.$ac_ext <<_ACEOF
29753/* confdefs.h. */
29754_ACEOF
29755cat confdefs.h >>conftest.$ac_ext
29756cat >>conftest.$ac_ext <<_ACEOF
29757/* end confdefs.h. */
29758#include <math.h>
29759int
29760main ()
29761{
29762double x = HUGE_VAL; return x != x;
29763 ;
29764 return 0;
29765}
29766_ACEOF
29767rm -f conftest$ac_exeext
29768if { (ac_try="$ac_link"
29769case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29772esac
29773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_link") 2>&5
29775 ac_status=$?
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29778 { (case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29781esac
29782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_try") 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
29787 ac_cv_huge_val_sanity=yes
29788else
29789 echo "$as_me: program exited with status $ac_status" >&5
29790echo "$as_me: failed program was:" >&5
29791sed 's/^/| /' conftest.$ac_ext >&5
29792
29793( exit $ac_status )
29794ac_cv_huge_val_sanity=no
29795fi
29796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29797fi
29798
29799
29800 ac_ext=c
29801ac_cpp='$CPP $CPPFLAGS'
29802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29804ac_compiler_gnu=$ac_cv_c_compiler_gnu
29805
29806
29807fi
29808{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29809echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29810 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29811
29812
Reid Spencera773bd52006-08-04 18:18:08 +000029813{ echo "$as_me:$LINENO: checking for pid_t" >&5
29814echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029815if test "${ac_cv_type_pid_t+set}" = set; then
29816 echo $ECHO_N "(cached) $ECHO_C" >&6
29817else
29818 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029819/* confdefs.h. */
29820_ACEOF
29821cat confdefs.h >>conftest.$ac_ext
29822cat >>conftest.$ac_ext <<_ACEOF
29823/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029824$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029825typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029826int
29827main ()
29828{
Reid Spencera773bd52006-08-04 18:18:08 +000029829if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029830 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029831if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029832 return 0;
29833 ;
29834 return 0;
29835}
29836_ACEOF
29837rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029838if { (ac_try="$ac_compile"
29839case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29842esac
29843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029845 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029846 grep -v '^ *+' conftest.er1 >conftest.err
29847 rm -f conftest.er1
29848 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29852 { (case "(($ac_try" in
29853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29855esac
29856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029858 ac_status=$?
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); }; } &&
29861 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029862 { (case "(($ac_try" in
29863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864 *) ac_try_echo=$ac_try;;
29865esac
29866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029868 ac_status=$?
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); }; }; then
29871 ac_cv_type_pid_t=yes
29872else
29873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029874sed 's/^/| /' conftest.$ac_ext >&5
29875
Reid Spencera773bd52006-08-04 18:18:08 +000029876 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029877fi
Reid Spencera773bd52006-08-04 18:18:08 +000029878
29879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029880fi
Reid Spencera773bd52006-08-04 18:18:08 +000029881{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29882echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029883if test $ac_cv_type_pid_t = yes; then
29884 :
29885else
29886
29887cat >>confdefs.h <<_ACEOF
29888#define pid_t int
29889_ACEOF
29890
29891fi
29892
Reid Spencera773bd52006-08-04 18:18:08 +000029893{ echo "$as_me:$LINENO: checking for size_t" >&5
29894echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029895if test "${ac_cv_type_size_t+set}" = set; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29897else
29898 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029899/* confdefs.h. */
29900_ACEOF
29901cat confdefs.h >>conftest.$ac_ext
29902cat >>conftest.$ac_ext <<_ACEOF
29903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029904$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029905typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029906int
29907main ()
29908{
Reid Spencera773bd52006-08-04 18:18:08 +000029909if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029910 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029911if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029912 return 0;
29913 ;
29914 return 0;
29915}
29916_ACEOF
29917rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029918if { (ac_try="$ac_compile"
29919case "(($ac_try" in
29920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921 *) ac_try_echo=$ac_try;;
29922esac
29923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029925 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29932 { (case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935esac
29936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029938 ac_status=$?
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); }; } &&
29941 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029942 { (case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29945esac
29946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029948 ac_status=$?
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; }; then
29951 ac_cv_type_size_t=yes
29952else
29953 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029954sed 's/^/| /' conftest.$ac_ext >&5
29955
Reid Spencera773bd52006-08-04 18:18:08 +000029956 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029957fi
Reid Spencera773bd52006-08-04 18:18:08 +000029958
29959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029960fi
Reid Spencera773bd52006-08-04 18:18:08 +000029961{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29962echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029963if test $ac_cv_type_size_t = yes; then
29964 :
29965else
29966
29967cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029968#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029969_ACEOF
29970
29971fi
29972
Reid Spencera773bd52006-08-04 18:18:08 +000029973{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29974echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029975if test "${ac_cv_type_signal+set}" = set; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29977else
29978 cat >conftest.$ac_ext <<_ACEOF
29979/* confdefs.h. */
29980_ACEOF
29981cat confdefs.h >>conftest.$ac_ext
29982cat >>conftest.$ac_ext <<_ACEOF
29983/* end confdefs.h. */
29984#include <sys/types.h>
29985#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029986
29987int
29988main ()
29989{
Reid Spencera773bd52006-08-04 18:18:08 +000029990return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029991 ;
29992 return 0;
29993}
29994_ACEOF
29995rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029996if { (ac_try="$ac_compile"
29997case "(($ac_try" in
29998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29999 *) ac_try_echo=$ac_try;;
30000esac
30001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30002 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030003 ac_status=$?
30004 grep -v '^ *+' conftest.er1 >conftest.err
30005 rm -f conftest.er1
30006 cat conftest.err >&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30010 { (case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30013esac
30014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030016 ac_status=$?
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; } &&
30019 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030020 { (case "(($ac_try" in
30021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30022 *) ac_try_echo=$ac_try;;
30023esac
30024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30025 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030029 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030030else
30031 echo "$as_me: failed program was:" >&5
30032sed 's/^/| /' conftest.$ac_ext >&5
30033
Reid Spencera773bd52006-08-04 18:18:08 +000030034 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030035fi
Reid Spencera773bd52006-08-04 18:18:08 +000030036
30037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030038fi
Reid Spencera773bd52006-08-04 18:18:08 +000030039{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30040echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030041
30042cat >>confdefs.h <<_ACEOF
30043#define RETSIGTYPE $ac_cv_type_signal
30044_ACEOF
30045
30046
Reid Spencera773bd52006-08-04 18:18:08 +000030047{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30048echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030049if test "${ac_cv_struct_tm+set}" = set; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30051else
30052 cat >conftest.$ac_ext <<_ACEOF
30053/* confdefs.h. */
30054_ACEOF
30055cat confdefs.h >>conftest.$ac_ext
30056cat >>conftest.$ac_ext <<_ACEOF
30057/* end confdefs.h. */
30058#include <sys/types.h>
30059#include <time.h>
30060
30061int
30062main ()
30063{
30064struct tm *tp; tp->tm_sec;
30065 ;
30066 return 0;
30067}
30068_ACEOF
30069rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030070if { (ac_try="$ac_compile"
30071case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30074esac
30075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030077 ac_status=$?
30078 grep -v '^ *+' conftest.er1 >conftest.err
30079 rm -f conftest.er1
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084 { (case "(($ac_try" in
30085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086 *) ac_try_echo=$ac_try;;
30087esac
30088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030094 { (case "(($ac_try" in
30095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096 *) ac_try_echo=$ac_try;;
30097esac
30098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030100 ac_status=$?
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 ac_cv_struct_tm=time.h
30104else
30105 echo "$as_me: failed program was:" >&5
30106sed 's/^/| /' conftest.$ac_ext >&5
30107
Reid Spencera773bd52006-08-04 18:18:08 +000030108 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030109fi
Reid Spencera773bd52006-08-04 18:18:08 +000030110
30111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030112fi
Reid Spencera773bd52006-08-04 18:18:08 +000030113{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30114echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030115if test $ac_cv_struct_tm = sys/time.h; then
30116
30117cat >>confdefs.h <<\_ACEOF
30118#define TM_IN_SYS_TIME 1
30119_ACEOF
30120
30121fi
30122
Reid Spencera773bd52006-08-04 18:18:08 +000030123{ echo "$as_me:$LINENO: checking for int64_t" >&5
30124echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030125if test "${ac_cv_type_int64_t+set}" = set; then
30126 echo $ECHO_N "(cached) $ECHO_C" >&6
30127else
30128 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030129/* confdefs.h. */
30130_ACEOF
30131cat confdefs.h >>conftest.$ac_ext
30132cat >>conftest.$ac_ext <<_ACEOF
30133/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030134$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030135typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030136int
30137main ()
30138{
Reid Spencera773bd52006-08-04 18:18:08 +000030139if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030140 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030141if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030142 return 0;
30143 ;
30144 return 0;
30145}
30146_ACEOF
30147rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030148if { (ac_try="$ac_compile"
30149case "(($ac_try" in
30150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151 *) ac_try_echo=$ac_try;;
30152esac
30153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030156 grep -v '^ *+' conftest.er1 >conftest.err
30157 rm -f conftest.er1
30158 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30162 { (case "(($ac_try" in
30163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164 *) ac_try_echo=$ac_try;;
30165esac
30166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030168 ac_status=$?
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); }; } &&
30171 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030172 { (case "(($ac_try" in
30173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30175esac
30176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030178 ac_status=$?
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; }; then
30181 ac_cv_type_int64_t=yes
30182else
30183 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030184sed 's/^/| /' conftest.$ac_ext >&5
30185
Reid Spencera773bd52006-08-04 18:18:08 +000030186 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030187fi
Reid Spencera773bd52006-08-04 18:18:08 +000030188
30189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030190fi
Reid Spencera773bd52006-08-04 18:18:08 +000030191{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30192echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030193if test $ac_cv_type_int64_t = yes; then
30194
30195cat >>confdefs.h <<_ACEOF
30196#define HAVE_INT64_T 1
30197_ACEOF
30198
30199
30200else
30201 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30202echo "$as_me: error: Type int64_t required but not found" >&2;}
30203 { (exit 1); exit 1; }; }
30204fi
30205
Reid Spencera773bd52006-08-04 18:18:08 +000030206{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30207echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030208if test "${ac_cv_type_uint64_t+set}" = set; then
30209 echo $ECHO_N "(cached) $ECHO_C" >&6
30210else
30211 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030212/* confdefs.h. */
30213_ACEOF
30214cat confdefs.h >>conftest.$ac_ext
30215cat >>conftest.$ac_ext <<_ACEOF
30216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030217$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030218typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030219int
30220main ()
30221{
Reid Spencera773bd52006-08-04 18:18:08 +000030222if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030223 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030224if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030225 return 0;
30226 ;
30227 return 0;
30228}
30229_ACEOF
30230rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030231if { (ac_try="$ac_compile"
30232case "(($ac_try" in
30233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234 *) ac_try_echo=$ac_try;;
30235esac
30236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030238 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030239 grep -v '^ *+' conftest.er1 >conftest.err
30240 rm -f conftest.er1
30241 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30245 { (case "(($ac_try" in
30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247 *) ac_try_echo=$ac_try;;
30248esac
30249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030251 ac_status=$?
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); }; } &&
30254 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030255 { (case "(($ac_try" in
30256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257 *) ac_try_echo=$ac_try;;
30258esac
30259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030261 ac_status=$?
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; }; then
30264 ac_cv_type_uint64_t=yes
30265else
30266 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030267sed 's/^/| /' conftest.$ac_ext >&5
30268
Reid Spencera773bd52006-08-04 18:18:08 +000030269 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030270fi
Reid Spencera773bd52006-08-04 18:18:08 +000030271
30272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030273fi
Reid Spencera773bd52006-08-04 18:18:08 +000030274{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30275echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030276if test $ac_cv_type_uint64_t = yes; then
30277
30278cat >>confdefs.h <<_ACEOF
30279#define HAVE_UINT64_T 1
30280_ACEOF
30281
30282
30283else
Reid Spencera773bd52006-08-04 18:18:08 +000030284 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30285echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030286if test "${ac_cv_type_u_int64_t+set}" = set; then
30287 echo $ECHO_N "(cached) $ECHO_C" >&6
30288else
30289 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030290/* confdefs.h. */
30291_ACEOF
30292cat confdefs.h >>conftest.$ac_ext
30293cat >>conftest.$ac_ext <<_ACEOF
30294/* end confdefs.h. */
30295$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030296typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030297int
30298main ()
30299{
Reid Spencera773bd52006-08-04 18:18:08 +000030300if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030301 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030302if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030303 return 0;
30304 ;
30305 return 0;
30306}
30307_ACEOF
30308rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030309if { (ac_try="$ac_compile"
30310case "(($ac_try" in
30311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312 *) ac_try_echo=$ac_try;;
30313esac
30314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030316 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030317 grep -v '^ *+' conftest.er1 >conftest.err
30318 rm -f conftest.er1
30319 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30323 { (case "(($ac_try" in
30324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30325 *) ac_try_echo=$ac_try;;
30326esac
30327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030329 ac_status=$?
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); }; } &&
30332 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030333 { (case "(($ac_try" in
30334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335 *) ac_try_echo=$ac_try;;
30336esac
30337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000030339 ac_status=$?
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; }; then
30342 ac_cv_type_u_int64_t=yes
30343else
30344 echo "$as_me: failed program was:" >&5
30345sed 's/^/| /' conftest.$ac_ext >&5
30346
Reid Spencera773bd52006-08-04 18:18:08 +000030347 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030348fi
Reid Spencera773bd52006-08-04 18:18:08 +000030349
30350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030351fi
Reid Spencera773bd52006-08-04 18:18:08 +000030352{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30353echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030354if test $ac_cv_type_u_int64_t = yes; then
30355
30356cat >>confdefs.h <<_ACEOF
30357#define HAVE_U_INT64_T 1
30358_ACEOF
30359
30360
Misha Brukmanceca9042004-09-02 23:02:30 +000030361else
30362 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30363echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30364 { (exit 1); exit 1; }; }
30365fi
30366
John Criswell679ff312004-09-02 18:44:44 +000030367fi
30368
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030369
30370
30371
30372
30373
30374
30375
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030376
30377
Reid Spencerdf3be822006-01-23 08:15:53 +000030378for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030379do
30380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030381{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030384 echo $ECHO_N "(cached) $ECHO_C" >&6
30385else
30386 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030387/* confdefs.h. */
30388_ACEOF
30389cat confdefs.h >>conftest.$ac_ext
30390cat >>conftest.$ac_ext <<_ACEOF
30391/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30394#define $ac_func innocuous_$ac_func
30395
30396/* System header to define __stub macros and hopefully few prototypes,
30397 which can conflict with char $ac_func (); below.
30398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30399 <limits.h> exists even on freestanding compilers. */
30400
30401#ifdef __STDC__
30402# include <limits.h>
30403#else
30404# include <assert.h>
30405#endif
30406
30407#undef $ac_func
30408
Reid Spencera773bd52006-08-04 18:18:08 +000030409/* Override any GCC internal prototype to avoid an error.
30410 Use char because int might match the return type of a GCC
30411 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030412#ifdef __cplusplus
30413extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030414#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030415char $ac_func ();
30416/* The GNU C library defines this for functions which it implements
30417 to always fail with ENOSYS. Some functions are actually named
30418 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030419#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030420choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030421#endif
John Criswell7a73b802003-06-30 21:59:07 +000030422
John Criswell7a73b802003-06-30 21:59:07 +000030423int
30424main ()
30425{
Reid Spencera773bd52006-08-04 18:18:08 +000030426return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030427 ;
30428 return 0;
30429}
30430_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030431rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030432if { (ac_try="$ac_link"
30433case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30436esac
30437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030439 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030440 grep -v '^ *+' conftest.er1 >conftest.err
30441 rm -f conftest.er1
30442 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30446 { (case "(($ac_try" in
30447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30448 *) ac_try_echo=$ac_try;;
30449esac
30450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30451 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030452 ac_status=$?
30453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030455 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030456 { (case "(($ac_try" in
30457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30458 *) ac_try_echo=$ac_try;;
30459esac
30460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30461 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030462 ac_status=$?
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030465 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030466else
30467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030468sed 's/^/| /' conftest.$ac_ext >&5
30469
Reid Spencera773bd52006-08-04 18:18:08 +000030470 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030471fi
Reid Spencera773bd52006-08-04 18:18:08 +000030472
30473rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030474 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030475fi
Reid Spencera773bd52006-08-04 18:18:08 +000030476ac_res=`eval echo '${'$as_ac_var'}'`
30477 { echo "$as_me:$LINENO: result: $ac_res" >&5
30478echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030479if test `eval echo '${'$as_ac_var'}'` = yes; then
30480 cat >>confdefs.h <<_ACEOF
30481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030482_ACEOF
30483
30484fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030485done
John Criswell7a73b802003-06-30 21:59:07 +000030486
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030487
30488
30489
Reid Spencer6af3d262004-12-15 04:01:48 +000030490
Reid Spencer96cf5872007-07-13 10:05:30 +000030491for ac_func in powf fmodf strtof round
30492do
30493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30494{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30496if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30497 echo $ECHO_N "(cached) $ECHO_C" >&6
30498else
30499 cat >conftest.$ac_ext <<_ACEOF
30500/* confdefs.h. */
30501_ACEOF
30502cat confdefs.h >>conftest.$ac_ext
30503cat >>conftest.$ac_ext <<_ACEOF
30504/* end confdefs.h. */
30505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30507#define $ac_func innocuous_$ac_func
30508
30509/* System header to define __stub macros and hopefully few prototypes,
30510 which can conflict with char $ac_func (); below.
30511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30512 <limits.h> exists even on freestanding compilers. */
30513
30514#ifdef __STDC__
30515# include <limits.h>
30516#else
30517# include <assert.h>
30518#endif
30519
30520#undef $ac_func
30521
30522/* Override any GCC internal prototype to avoid an error.
30523 Use char because int might match the return type of a GCC
30524 builtin and then its argument prototype would still apply. */
30525#ifdef __cplusplus
30526extern "C"
30527#endif
30528char $ac_func ();
30529/* The GNU C library defines this for functions which it implements
30530 to always fail with ENOSYS. Some functions are actually named
30531 something starting with __ and the normal name is an alias. */
30532#if defined __stub_$ac_func || defined __stub___$ac_func
30533choke me
30534#endif
30535
30536int
30537main ()
30538{
30539return $ac_func ();
30540 ;
30541 return 0;
30542}
30543_ACEOF
30544rm -f conftest.$ac_objext conftest$ac_exeext
30545if { (ac_try="$ac_link"
30546case "(($ac_try" in
30547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30548 *) ac_try_echo=$ac_try;;
30549esac
30550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30551 (eval "$ac_link") 2>conftest.er1
30552 ac_status=$?
30553 grep -v '^ *+' conftest.er1 >conftest.err
30554 rm -f conftest.er1
30555 cat conftest.err >&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); } &&
30558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30559 { (case "(($ac_try" in
30560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561 *) ac_try_echo=$ac_try;;
30562esac
30563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564 (eval "$ac_try") 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; } &&
30568 { ac_try='test -s conftest$ac_exeext'
30569 { (case "(($ac_try" in
30570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571 *) ac_try_echo=$ac_try;;
30572esac
30573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574 (eval "$ac_try") 2>&5
30575 ac_status=$?
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); }; }; then
30578 eval "$as_ac_var=yes"
30579else
30580 echo "$as_me: failed program was:" >&5
30581sed 's/^/| /' conftest.$ac_ext >&5
30582
30583 eval "$as_ac_var=no"
30584fi
30585
30586rm -f core conftest.err conftest.$ac_objext \
30587 conftest$ac_exeext conftest.$ac_ext
30588fi
30589ac_res=`eval echo '${'$as_ac_var'}'`
30590 { echo "$as_me:$LINENO: result: $ac_res" >&5
30591echo "${ECHO_T}$ac_res" >&6; }
30592if test `eval echo '${'$as_ac_var'}'` = yes; then
30593 cat >>confdefs.h <<_ACEOF
30594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30595_ACEOF
30596
30597fi
30598done
30599
30600
30601
30602
30603
Reid Spencer6af3d262004-12-15 04:01:48 +000030604
Reid Spencerb90645c2007-02-16 19:17:20 +000030605for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30606do
30607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30611 echo $ECHO_N "(cached) $ECHO_C" >&6
30612else
30613 cat >conftest.$ac_ext <<_ACEOF
30614/* confdefs.h. */
30615_ACEOF
30616cat confdefs.h >>conftest.$ac_ext
30617cat >>conftest.$ac_ext <<_ACEOF
30618/* end confdefs.h. */
30619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30621#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030622
Reid Spencerb90645c2007-02-16 19:17:20 +000030623/* System header to define __stub macros and hopefully few prototypes,
30624 which can conflict with char $ac_func (); below.
30625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30626 <limits.h> exists even on freestanding compilers. */
30627
30628#ifdef __STDC__
30629# include <limits.h>
30630#else
30631# include <assert.h>
30632#endif
30633
30634#undef $ac_func
30635
30636/* Override any GCC internal prototype to avoid an error.
30637 Use char because int might match the return type of a GCC
30638 builtin and then its argument prototype would still apply. */
30639#ifdef __cplusplus
30640extern "C"
30641#endif
30642char $ac_func ();
30643/* The GNU C library defines this for functions which it implements
30644 to always fail with ENOSYS. Some functions are actually named
30645 something starting with __ and the normal name is an alias. */
30646#if defined __stub_$ac_func || defined __stub___$ac_func
30647choke me
30648#endif
30649
30650int
30651main ()
30652{
30653return $ac_func ();
30654 ;
30655 return 0;
30656}
30657_ACEOF
30658rm -f conftest.$ac_objext conftest$ac_exeext
30659if { (ac_try="$ac_link"
30660case "(($ac_try" in
30661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30663esac
30664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_link") 2>conftest.er1
30666 ac_status=$?
30667 grep -v '^ *+' conftest.er1 >conftest.err
30668 rm -f conftest.er1
30669 cat conftest.err >&5
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); } &&
30672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30673 { (case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30676esac
30677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_try") 2>&5
30679 ac_status=$?
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); }; } &&
30682 { ac_try='test -s conftest$ac_exeext'
30683 { (case "(($ac_try" in
30684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30685 *) ac_try_echo=$ac_try;;
30686esac
30687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30688 (eval "$ac_try") 2>&5
30689 ac_status=$?
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); }; }; then
30692 eval "$as_ac_var=yes"
30693else
30694 echo "$as_me: failed program was:" >&5
30695sed 's/^/| /' conftest.$ac_ext >&5
30696
30697 eval "$as_ac_var=no"
30698fi
30699
30700rm -f core conftest.err conftest.$ac_objext \
30701 conftest$ac_exeext conftest.$ac_ext
30702fi
30703ac_res=`eval echo '${'$as_ac_var'}'`
30704 { echo "$as_me:$LINENO: result: $ac_res" >&5
30705echo "${ECHO_T}$ac_res" >&6; }
30706if test `eval echo '${'$as_ac_var'}'` = yes; then
30707 cat >>confdefs.h <<_ACEOF
30708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30709_ACEOF
30710
30711fi
30712done
30713
30714
30715
30716
30717for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030718do
30719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030720{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30722if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030723 echo $ECHO_N "(cached) $ECHO_C" >&6
30724else
30725 cat >conftest.$ac_ext <<_ACEOF
30726/* confdefs.h. */
30727_ACEOF
30728cat confdefs.h >>conftest.$ac_ext
30729cat >>conftest.$ac_ext <<_ACEOF
30730/* end confdefs.h. */
30731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30733#define $ac_func innocuous_$ac_func
30734
30735/* System header to define __stub macros and hopefully few prototypes,
30736 which can conflict with char $ac_func (); below.
30737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30738 <limits.h> exists even on freestanding compilers. */
30739
30740#ifdef __STDC__
30741# include <limits.h>
30742#else
30743# include <assert.h>
30744#endif
30745
30746#undef $ac_func
30747
Reid Spencera773bd52006-08-04 18:18:08 +000030748/* Override any GCC internal prototype to avoid an error.
30749 Use char because int might match the return type of a GCC
30750 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030751#ifdef __cplusplus
30752extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030753#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030754char $ac_func ();
30755/* The GNU C library defines this for functions which it implements
30756 to always fail with ENOSYS. Some functions are actually named
30757 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030758#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030759choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030760#endif
30761
30762int
30763main ()
30764{
Reid Spencera773bd52006-08-04 18:18:08 +000030765return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030766 ;
30767 return 0;
30768}
30769_ACEOF
30770rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030771if { (ac_try="$ac_link"
30772case "(($ac_try" in
30773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30774 *) ac_try_echo=$ac_try;;
30775esac
30776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30777 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030778 ac_status=$?
30779 grep -v '^ *+' conftest.er1 >conftest.err
30780 rm -f conftest.er1
30781 cat conftest.err >&5
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30785 { (case "(($ac_try" in
30786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30788esac
30789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030791 ac_status=$?
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; } &&
30794 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030795 { (case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30798esac
30799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
30804 eval "$as_ac_var=yes"
30805else
30806 echo "$as_me: failed program was:" >&5
30807sed 's/^/| /' conftest.$ac_ext >&5
30808
Reid Spencera773bd52006-08-04 18:18:08 +000030809 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030810fi
Reid Spencera773bd52006-08-04 18:18:08 +000030811
30812rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030813 conftest$ac_exeext conftest.$ac_ext
30814fi
Reid Spencera773bd52006-08-04 18:18:08 +000030815ac_res=`eval echo '${'$as_ac_var'}'`
30816 { echo "$as_me:$LINENO: result: $ac_res" >&5
30817echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030818if test `eval echo '${'$as_ac_var'}'` = yes; then
30819 cat >>confdefs.h <<_ACEOF
30820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30821_ACEOF
30822
30823fi
30824done
30825
30826
30827
30828
30829
30830
30831
30832
30833for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030834do
30835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030836{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30838if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030839 echo $ECHO_N "(cached) $ECHO_C" >&6
30840else
30841 cat >conftest.$ac_ext <<_ACEOF
30842/* confdefs.h. */
30843_ACEOF
30844cat confdefs.h >>conftest.$ac_ext
30845cat >>conftest.$ac_ext <<_ACEOF
30846/* end confdefs.h. */
30847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30849#define $ac_func innocuous_$ac_func
30850
30851/* System header to define __stub macros and hopefully few prototypes,
30852 which can conflict with char $ac_func (); below.
30853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30854 <limits.h> exists even on freestanding compilers. */
30855
30856#ifdef __STDC__
30857# include <limits.h>
30858#else
30859# include <assert.h>
30860#endif
30861
30862#undef $ac_func
30863
Reid Spencera773bd52006-08-04 18:18:08 +000030864/* Override any GCC internal prototype to avoid an error.
30865 Use char because int might match the return type of a GCC
30866 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030867#ifdef __cplusplus
30868extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030869#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030870char $ac_func ();
30871/* The GNU C library defines this for functions which it implements
30872 to always fail with ENOSYS. Some functions are actually named
30873 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030874#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030875choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030876#endif
30877
30878int
30879main ()
30880{
Reid Spencera773bd52006-08-04 18:18:08 +000030881return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030882 ;
30883 return 0;
30884}
30885_ACEOF
30886rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030887if { (ac_try="$ac_link"
30888case "(($ac_try" in
30889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890 *) ac_try_echo=$ac_try;;
30891esac
30892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030894 ac_status=$?
30895 grep -v '^ *+' conftest.er1 >conftest.err
30896 rm -f conftest.er1
30897 cat conftest.err >&5
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30901 { (case "(($ac_try" in
30902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30903 *) ac_try_echo=$ac_try;;
30904esac
30905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30906 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030907 ac_status=$?
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); }; } &&
30910 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030911 { (case "(($ac_try" in
30912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913 *) ac_try_echo=$ac_try;;
30914esac
30915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030917 ac_status=$?
30918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); }; }; then
30920 eval "$as_ac_var=yes"
30921else
30922 echo "$as_me: failed program was:" >&5
30923sed 's/^/| /' conftest.$ac_ext >&5
30924
Reid Spencera773bd52006-08-04 18:18:08 +000030925 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030926fi
Reid Spencera773bd52006-08-04 18:18:08 +000030927
30928rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030929 conftest$ac_exeext conftest.$ac_ext
30930fi
Reid Spencera773bd52006-08-04 18:18:08 +000030931ac_res=`eval echo '${'$as_ac_var'}'`
30932 { echo "$as_me:$LINENO: result: $ac_res" >&5
30933echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030934if test `eval echo '${'$as_ac_var'}'` = yes; then
30935 cat >>confdefs.h <<_ACEOF
30936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30937_ACEOF
30938
30939fi
30940done
30941
30942
Reid Spencerba46ca32004-12-31 05:49:15 +000030943
30944
Chris Lattner0b142592005-11-14 06:57:34 +000030945
Chris Lattner511f11d2005-11-14 07:25:50 +000030946for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030947do
30948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030949{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30951if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030952 echo $ECHO_N "(cached) $ECHO_C" >&6
30953else
30954 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030955/* confdefs.h. */
30956_ACEOF
30957cat confdefs.h >>conftest.$ac_ext
30958cat >>conftest.$ac_ext <<_ACEOF
30959/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30962#define $ac_func innocuous_$ac_func
30963
30964/* System header to define __stub macros and hopefully few prototypes,
30965 which can conflict with char $ac_func (); below.
30966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30967 <limits.h> exists even on freestanding compilers. */
30968
30969#ifdef __STDC__
30970# include <limits.h>
30971#else
30972# include <assert.h>
30973#endif
30974
30975#undef $ac_func
30976
Reid Spencera773bd52006-08-04 18:18:08 +000030977/* Override any GCC internal prototype to avoid an error.
30978 Use char because int might match the return type of a GCC
30979 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030980#ifdef __cplusplus
30981extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030982#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030983char $ac_func ();
30984/* The GNU C library defines this for functions which it implements
30985 to always fail with ENOSYS. Some functions are actually named
30986 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030987#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030988choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030989#endif
John Criswell7a73b802003-06-30 21:59:07 +000030990
John Criswell7a73b802003-06-30 21:59:07 +000030991int
30992main ()
30993{
Reid Spencera773bd52006-08-04 18:18:08 +000030994return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030995 ;
30996 return 0;
30997}
30998_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030999rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031000if { (ac_try="$ac_link"
31001case "(($ac_try" in
31002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31003 *) ac_try_echo=$ac_try;;
31004esac
31005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31006 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031007 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031008 grep -v '^ *+' conftest.er1 >conftest.err
31009 rm -f conftest.er1
31010 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31014 { (case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31017esac
31018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031020 ac_status=$?
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031023 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031024 { (case "(($ac_try" in
31025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026 *) ac_try_echo=$ac_try;;
31027esac
31028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031030 ac_status=$?
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031033 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031034else
31035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031036sed 's/^/| /' conftest.$ac_ext >&5
31037
Reid Spencera773bd52006-08-04 18:18:08 +000031038 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031039fi
Reid Spencera773bd52006-08-04 18:18:08 +000031040
31041rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031042 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031043fi
Reid Spencera773bd52006-08-04 18:18:08 +000031044ac_res=`eval echo '${'$as_ac_var'}'`
31045 { echo "$as_me:$LINENO: result: $ac_res" >&5
31046echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031047if test `eval echo '${'$as_ac_var'}'` = yes; then
31048 cat >>confdefs.h <<_ACEOF
31049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031050_ACEOF
31051
31052fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031053done
John Criswell7a73b802003-06-30 21:59:07 +000031054
Reid Spencercdb08a32006-06-05 16:11:07 +000031055
31056
31057
31058
Reid Spencerafa22e22006-12-10 23:29:19 +000031059for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031060do
31061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031062{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31064if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031065 echo $ECHO_N "(cached) $ECHO_C" >&6
31066else
31067 cat >conftest.$ac_ext <<_ACEOF
31068/* confdefs.h. */
31069_ACEOF
31070cat confdefs.h >>conftest.$ac_ext
31071cat >>conftest.$ac_ext <<_ACEOF
31072/* end confdefs.h. */
31073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31075#define $ac_func innocuous_$ac_func
31076
31077/* System header to define __stub macros and hopefully few prototypes,
31078 which can conflict with char $ac_func (); below.
31079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31080 <limits.h> exists even on freestanding compilers. */
31081
31082#ifdef __STDC__
31083# include <limits.h>
31084#else
31085# include <assert.h>
31086#endif
31087
31088#undef $ac_func
31089
Reid Spencera773bd52006-08-04 18:18:08 +000031090/* Override any GCC internal prototype to avoid an error.
31091 Use char because int might match the return type of a GCC
31092 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031093#ifdef __cplusplus
31094extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031095#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031096char $ac_func ();
31097/* The GNU C library defines this for functions which it implements
31098 to always fail with ENOSYS. Some functions are actually named
31099 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031100#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031101choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031102#endif
31103
31104int
31105main ()
31106{
Reid Spencera773bd52006-08-04 18:18:08 +000031107return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031108 ;
31109 return 0;
31110}
31111_ACEOF
31112rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031113if { (ac_try="$ac_link"
31114case "(($ac_try" in
31115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31116 *) ac_try_echo=$ac_try;;
31117esac
31118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31119 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031120 ac_status=$?
31121 grep -v '^ *+' conftest.er1 >conftest.err
31122 rm -f conftest.er1
31123 cat conftest.err >&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31127 { (case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31130esac
31131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000031133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; } &&
31136 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031137 { (case "(($ac_try" in
31138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139 *) ac_try_echo=$ac_try;;
31140esac
31141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000031143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
31146 eval "$as_ac_var=yes"
31147else
31148 echo "$as_me: failed program was:" >&5
31149sed 's/^/| /' conftest.$ac_ext >&5
31150
Reid Spencera773bd52006-08-04 18:18:08 +000031151 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031152fi
Reid Spencera773bd52006-08-04 18:18:08 +000031153
31154rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031155 conftest$ac_exeext conftest.$ac_ext
31156fi
Reid Spencera773bd52006-08-04 18:18:08 +000031157ac_res=`eval echo '${'$as_ac_var'}'`
31158 { echo "$as_me:$LINENO: result: $ac_res" >&5
31159echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031160if test `eval echo '${'$as_ac_var'}'` = yes; then
31161 cat >>confdefs.h <<_ACEOF
31162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31163_ACEOF
31164
31165fi
31166done
31167
Reid Spencera773bd52006-08-04 18:18:08 +000031168{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31169echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031170if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031171 echo $ECHO_N "(cached) $ECHO_C" >&6
31172else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031173 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031174ac_cpp='$CPP $CPPFLAGS'
31175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31177ac_compiler_gnu=$ac_cv_c_compiler_gnu
31178
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031179 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031180 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031181else
31182 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031183
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031184 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031185_ACEOF
31186cat confdefs.h >>conftest.$ac_ext
31187cat >>conftest.$ac_ext <<_ACEOF
31188/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031189
John Criswella0137d32003-10-13 16:22:01 +000031190#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031191#include <stdlib.h>
31192
John Criswella0137d32003-10-13 16:22:01 +000031193int
31194main ()
31195{
31196
Reid Spencer2706f8c2004-09-19 23:53:36 +000031197volatile double A, B;
31198char Buffer[100];
31199A = 1;
31200A /= 10.0;
31201sprintf(Buffer, "%a", A);
31202B = atof(Buffer);
31203if (A != B)
31204 return (1);
31205if (A != 0x1.999999999999ap-4)
31206 return (1);
31207return (0);
John Criswella0137d32003-10-13 16:22:01 +000031208 ;
31209 return 0;
31210}
31211_ACEOF
31212rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031213if { (ac_try="$ac_link"
31214case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31217esac
31218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031220 ac_status=$?
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031223 { (case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31226esac
31227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031232 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031233else
31234 echo "$as_me: program exited with status $ac_status" >&5
31235echo "$as_me: failed program was:" >&5
31236sed 's/^/| /' conftest.$ac_ext >&5
31237
31238( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031239llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031240fi
Reid Spencera773bd52006-08-04 18:18:08 +000031241rm -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 +000031242fi
Reid Spencera773bd52006-08-04 18:18:08 +000031243
31244
Reid Spencer2706f8c2004-09-19 23:53:36 +000031245 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031246ac_cpp='$CPP $CPPFLAGS'
31247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31249ac_compiler_gnu=$ac_cv_c_compiler_gnu
31250
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031251fi
Reid Spencera773bd52006-08-04 18:18:08 +000031252{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31253echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031254 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031255
31256cat >>confdefs.h <<\_ACEOF
31257#define HAVE_PRINTF_A 1
31258_ACEOF
31259
Reid Spencer2706f8c2004-09-19 23:53:36 +000031260 fi
John Criswella0137d32003-10-13 16:22:01 +000031261
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031262# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31263# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031264{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31265echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031266if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031267 echo $ECHO_N "(cached) $ECHO_C" >&6
31268else
John Criswell0021c312004-02-13 21:57:29 +000031269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031270/* confdefs.h. */
31271_ACEOF
31272cat confdefs.h >>conftest.$ac_ext
31273cat >>conftest.$ac_ext <<_ACEOF
31274/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031275#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031276int
31277main ()
31278{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031279char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031280 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031281 ;
31282 return 0;
31283}
31284_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031285rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031286if { (ac_try="$ac_link"
31287case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31290esac
31291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031293 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031294 grep -v '^ *+' conftest.er1 >conftest.err
31295 rm -f conftest.er1
31296 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300 { (case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31303esac
31304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031306 ac_status=$?
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031309 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031310 { (case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31313esac
31314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031316 ac_status=$?
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031319 ac_cv_working_alloca_h=yes
31320else
31321 echo "$as_me: failed program was:" >&5
31322sed 's/^/| /' conftest.$ac_ext >&5
31323
Reid Spencera773bd52006-08-04 18:18:08 +000031324 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031325fi
Reid Spencera773bd52006-08-04 18:18:08 +000031326
31327rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031328 conftest$ac_exeext conftest.$ac_ext
31329fi
Reid Spencera773bd52006-08-04 18:18:08 +000031330{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31331echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031332if test $ac_cv_working_alloca_h = yes; then
31333
31334cat >>confdefs.h <<\_ACEOF
31335#define HAVE_ALLOCA_H 1
31336_ACEOF
31337
31338fi
31339
Reid Spencera773bd52006-08-04 18:18:08 +000031340{ echo "$as_me:$LINENO: checking for alloca" >&5
31341echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031342if test "${ac_cv_func_alloca_works+set}" = set; then
31343 echo $ECHO_N "(cached) $ECHO_C" >&6
31344else
31345 cat >conftest.$ac_ext <<_ACEOF
31346/* confdefs.h. */
31347_ACEOF
31348cat confdefs.h >>conftest.$ac_ext
31349cat >>conftest.$ac_ext <<_ACEOF
31350/* end confdefs.h. */
31351#ifdef __GNUC__
31352# define alloca __builtin_alloca
31353#else
31354# ifdef _MSC_VER
31355# include <malloc.h>
31356# define alloca _alloca
31357# else
31358# if HAVE_ALLOCA_H
31359# include <alloca.h>
31360# else
31361# ifdef _AIX
31362 #pragma alloca
31363# else
31364# ifndef alloca /* predefined by HP cc +Olibcalls */
31365char *alloca ();
31366# endif
31367# endif
31368# endif
31369# endif
31370#endif
31371
31372int
31373main ()
31374{
31375char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031376 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031377 ;
31378 return 0;
31379}
31380_ACEOF
31381rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031382if { (ac_try="$ac_link"
31383case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31386esac
31387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031389 ac_status=$?
31390 grep -v '^ *+' conftest.er1 >conftest.err
31391 rm -f conftest.er1
31392 cat conftest.err >&5
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31396 { (case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31399esac
31400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; } &&
31405 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031406 { (case "(($ac_try" in
31407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408 *) ac_try_echo=$ac_try;;
31409esac
31410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031412 ac_status=$?
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); }; }; then
31415 ac_cv_func_alloca_works=yes
31416else
31417 echo "$as_me: failed program was:" >&5
31418sed 's/^/| /' conftest.$ac_ext >&5
31419
Reid Spencera773bd52006-08-04 18:18:08 +000031420 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031421fi
Reid Spencera773bd52006-08-04 18:18:08 +000031422
31423rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031424 conftest$ac_exeext conftest.$ac_ext
31425fi
Reid Spencera773bd52006-08-04 18:18:08 +000031426{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31427echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031428
31429if test $ac_cv_func_alloca_works = yes; then
31430
31431cat >>confdefs.h <<\_ACEOF
31432#define HAVE_ALLOCA 1
31433_ACEOF
31434
31435else
31436 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31437# that cause trouble. Some versions do not even contain alloca or
31438# contain a buggy version. If you still want to use their alloca,
31439# use ar to extract alloca.o from them instead of compiling alloca.c.
31440
Reid Spencera773bd52006-08-04 18:18:08 +000031441ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031442
31443cat >>confdefs.h <<\_ACEOF
31444#define C_ALLOCA 1
31445_ACEOF
31446
31447
Reid Spencera773bd52006-08-04 18:18:08 +000031448{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31449echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031450if test "${ac_cv_os_cray+set}" = set; then
31451 echo $ECHO_N "(cached) $ECHO_C" >&6
31452else
31453 cat >conftest.$ac_ext <<_ACEOF
31454/* confdefs.h. */
31455_ACEOF
31456cat confdefs.h >>conftest.$ac_ext
31457cat >>conftest.$ac_ext <<_ACEOF
31458/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031459#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031460webecray
31461#else
31462wenotbecray
31463#endif
31464
31465_ACEOF
31466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31467 $EGREP "webecray" >/dev/null 2>&1; then
31468 ac_cv_os_cray=yes
31469else
31470 ac_cv_os_cray=no
31471fi
31472rm -f conftest*
31473
31474fi
Reid Spencera773bd52006-08-04 18:18:08 +000031475{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31476echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031477if test $ac_cv_os_cray = yes; then
31478 for ac_func in _getb67 GETB67 getb67; do
31479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031480{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31482if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031483 echo $ECHO_N "(cached) $ECHO_C" >&6
31484else
31485 cat >conftest.$ac_ext <<_ACEOF
31486/* confdefs.h. */
31487_ACEOF
31488cat confdefs.h >>conftest.$ac_ext
31489cat >>conftest.$ac_ext <<_ACEOF
31490/* end confdefs.h. */
31491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31493#define $ac_func innocuous_$ac_func
31494
31495/* System header to define __stub macros and hopefully few prototypes,
31496 which can conflict with char $ac_func (); below.
31497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31498 <limits.h> exists even on freestanding compilers. */
31499
31500#ifdef __STDC__
31501# include <limits.h>
31502#else
31503# include <assert.h>
31504#endif
31505
31506#undef $ac_func
31507
Reid Spencera773bd52006-08-04 18:18:08 +000031508/* Override any GCC internal prototype to avoid an error.
31509 Use char because int might match the return type of a GCC
31510 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031511#ifdef __cplusplus
31512extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031513#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031514char $ac_func ();
31515/* The GNU C library defines this for functions which it implements
31516 to always fail with ENOSYS. Some functions are actually named
31517 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031518#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031519choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031520#endif
31521
31522int
31523main ()
31524{
Reid Spencera773bd52006-08-04 18:18:08 +000031525return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031526 ;
31527 return 0;
31528}
31529_ACEOF
31530rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031531if { (ac_try="$ac_link"
31532case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31535esac
31536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031538 ac_status=$?
31539 grep -v '^ *+' conftest.er1 >conftest.err
31540 rm -f conftest.er1
31541 cat conftest.err >&5
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31545 { (case "(($ac_try" in
31546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31547 *) ac_try_echo=$ac_try;;
31548esac
31549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31550 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031551 ac_status=$?
31552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553 (exit $ac_status); }; } &&
31554 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031555 { (case "(($ac_try" in
31556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557 *) ac_try_echo=$ac_try;;
31558esac
31559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031561 ac_status=$?
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); }; }; then
31564 eval "$as_ac_var=yes"
31565else
31566 echo "$as_me: failed program was:" >&5
31567sed 's/^/| /' conftest.$ac_ext >&5
31568
Reid Spencera773bd52006-08-04 18:18:08 +000031569 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031570fi
Reid Spencera773bd52006-08-04 18:18:08 +000031571
31572rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031573 conftest$ac_exeext conftest.$ac_ext
31574fi
Reid Spencera773bd52006-08-04 18:18:08 +000031575ac_res=`eval echo '${'$as_ac_var'}'`
31576 { echo "$as_me:$LINENO: result: $ac_res" >&5
31577echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031578if test `eval echo '${'$as_ac_var'}'` = yes; then
31579
31580cat >>confdefs.h <<_ACEOF
31581#define CRAY_STACKSEG_END $ac_func
31582_ACEOF
31583
31584 break
31585fi
31586
31587 done
31588fi
31589
Reid Spencera773bd52006-08-04 18:18:08 +000031590{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31591echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031592if test "${ac_cv_c_stack_direction+set}" = set; then
31593 echo $ECHO_N "(cached) $ECHO_C" >&6
31594else
31595 if test "$cross_compiling" = yes; then
31596 ac_cv_c_stack_direction=0
31597else
31598 cat >conftest.$ac_ext <<_ACEOF
31599/* confdefs.h. */
31600_ACEOF
31601cat confdefs.h >>conftest.$ac_ext
31602cat >>conftest.$ac_ext <<_ACEOF
31603/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031604$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031605int
31606find_stack_direction ()
31607{
31608 static char *addr = 0;
31609 auto char dummy;
31610 if (addr == 0)
31611 {
31612 addr = &dummy;
31613 return find_stack_direction ();
31614 }
John Criswell0021c312004-02-13 21:57:29 +000031615 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031616 return (&dummy > addr) ? 1 : -1;
31617}
John Criswell0021c312004-02-13 21:57:29 +000031618
John Criswell0021c312004-02-13 21:57:29 +000031619int
31620main ()
31621{
Reid Spencera773bd52006-08-04 18:18:08 +000031622 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031623}
31624_ACEOF
31625rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031626if { (ac_try="$ac_link"
31627case "(($ac_try" in
31628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629 *) ac_try_echo=$ac_try;;
31630esac
31631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031636 { (case "(($ac_try" in
31637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638 *) ac_try_echo=$ac_try;;
31639esac
31640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31641 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031642 ac_status=$?
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031645 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031646else
31647 echo "$as_me: program exited with status $ac_status" >&5
31648echo "$as_me: failed program was:" >&5
31649sed 's/^/| /' conftest.$ac_ext >&5
31650
31651( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031652ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031653fi
Reid Spencera773bd52006-08-04 18:18:08 +000031654rm -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 +000031655fi
Reid Spencera773bd52006-08-04 18:18:08 +000031656
31657
John Criswell0021c312004-02-13 21:57:29 +000031658fi
Reid Spencera773bd52006-08-04 18:18:08 +000031659{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31660echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031661
31662cat >>confdefs.h <<_ACEOF
31663#define STACK_DIRECTION $ac_cv_c_stack_direction
31664_ACEOF
31665
31666
John Criswell0021c312004-02-13 21:57:29 +000031667fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031668
31669
Reid Spencera773bd52006-08-04 18:18:08 +000031670{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31671echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031672if test "${ac_cv_func_rand48+set}" = set; then
31673 echo $ECHO_N "(cached) $ECHO_C" >&6
31674else
Reid Spencera773bd52006-08-04 18:18:08 +000031675 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031676ac_cpp='$CXXCPP $CPPFLAGS'
31677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31680
31681 cat >conftest.$ac_ext <<_ACEOF
31682/* confdefs.h. */
31683_ACEOF
31684cat confdefs.h >>conftest.$ac_ext
31685cat >>conftest.$ac_ext <<_ACEOF
31686/* end confdefs.h. */
31687#include <stdlib.h>
31688int
31689main ()
31690{
31691srand48(0);lrand48();drand48();
31692 ;
31693 return 0;
31694}
31695_ACEOF
31696rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031697if { (ac_try="$ac_compile"
31698case "(($ac_try" in
31699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31700 *) ac_try_echo=$ac_try;;
31701esac
31702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031704 ac_status=$?
31705 grep -v '^ *+' conftest.er1 >conftest.err
31706 rm -f conftest.er1
31707 cat conftest.err >&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31711 { (case "(($ac_try" in
31712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713 *) ac_try_echo=$ac_try;;
31714esac
31715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031717 ac_status=$?
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); }; } &&
31720 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031721 { (case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31724esac
31725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031727 ac_status=$?
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; }; then
31730 ac_cv_func_rand48=yes
31731else
31732 echo "$as_me: failed program was:" >&5
31733sed 's/^/| /' conftest.$ac_ext >&5
31734
Reid Spencera773bd52006-08-04 18:18:08 +000031735 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031736fi
Reid Spencera773bd52006-08-04 18:18:08 +000031737
31738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031739 ac_ext=c
31740ac_cpp='$CPP $CPPFLAGS'
31741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31743ac_compiler_gnu=$ac_cv_c_compiler_gnu
31744
31745fi
Reid Spencera773bd52006-08-04 18:18:08 +000031746{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31747echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031748
31749if test "$ac_cv_func_rand48" = "yes" ; then
31750
31751cat >>confdefs.h <<\_ACEOF
31752#define HAVE_RAND48 1
31753_ACEOF
31754
31755fi
John Criswell0021c312004-02-13 21:57:29 +000031756
31757
Reid Spencera773bd52006-08-04 18:18:08 +000031758{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31759echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031760if test "${ac_cv_cxx_namespaces+set}" = set; then
31761 echo $ECHO_N "(cached) $ECHO_C" >&6
31762else
Reid Spencera773bd52006-08-04 18:18:08 +000031763 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031764ac_cpp='$CXXCPP $CPPFLAGS'
31765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31768
31769 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031770/* confdefs.h. */
31771_ACEOF
31772cat confdefs.h >>conftest.$ac_ext
31773cat >>conftest.$ac_ext <<_ACEOF
31774/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031775namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031776int
31777main ()
31778{
31779using namespace Outer::Inner; return i;
31780 ;
31781 return 0;
31782}
31783_ACEOF
31784rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031785if { (ac_try="$ac_compile"
31786case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31789esac
31790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031792 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031793 grep -v '^ *+' conftest.er1 >conftest.err
31794 rm -f conftest.er1
31795 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31799 { (case "(($ac_try" in
31800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31801 *) ac_try_echo=$ac_try;;
31802esac
31803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31804 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031805 ac_status=$?
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); }; } &&
31808 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031809 { (case "(($ac_try" in
31810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811 *) ac_try_echo=$ac_try;;
31812esac
31813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031815 ac_status=$?
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; }; then
31818 ac_cv_cxx_namespaces=yes
31819else
31820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031821sed 's/^/| /' conftest.$ac_ext >&5
31822
Reid Spencera773bd52006-08-04 18:18:08 +000031823 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031824fi
Reid Spencera773bd52006-08-04 18:18:08 +000031825
31826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031827 ac_ext=c
31828ac_cpp='$CPP $CPPFLAGS'
31829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31831ac_compiler_gnu=$ac_cv_c_compiler_gnu
31832
31833
31834fi
Reid Spencera773bd52006-08-04 18:18:08 +000031835{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31836echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031837if test "$ac_cv_cxx_namespaces" = yes; then
31838
31839cat >>confdefs.h <<\_ACEOF
31840#define HAVE_NAMESPACES
31841_ACEOF
31842
31843fi
31844
Reid Spencera773bd52006-08-04 18:18:08 +000031845{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31846echo $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 +000031847if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031848 echo $ECHO_N "(cached) $ECHO_C" >&6
31849else
31850
Reid Spencera773bd52006-08-04 18:18:08 +000031851 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031852ac_cpp='$CXXCPP $CPPFLAGS'
31853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31856
31857 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031858/* confdefs.h. */
31859_ACEOF
31860cat confdefs.h >>conftest.$ac_ext
31861cat >>conftest.$ac_ext <<_ACEOF
31862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031863#include <ext/hash_map>
31864#ifdef HAVE_NAMESPACES
31865using namespace std;
31866#endif
John Criswell7a73b802003-06-30 21:59:07 +000031867int
31868main ()
31869{
Brian Gaeke90583492003-11-10 03:06:28 +000031870hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031871 ;
31872 return 0;
31873}
31874_ACEOF
31875rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031876if { (ac_try="$ac_compile"
31877case "(($ac_try" in
31878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31879 *) ac_try_echo=$ac_try;;
31880esac
31881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31882 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031883 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031884 grep -v '^ *+' conftest.er1 >conftest.err
31885 rm -f conftest.er1
31886 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31890 { (case "(($ac_try" in
31891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892 *) ac_try_echo=$ac_try;;
31893esac
31894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031896 ac_status=$?
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); }; } &&
31899 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031900 { (case "(($ac_try" in
31901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31902 *) ac_try_echo=$ac_try;;
31903esac
31904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31905 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031906 ac_status=$?
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031909 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031910else
31911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031912sed 's/^/| /' conftest.$ac_ext >&5
31913
Reid Spencera773bd52006-08-04 18:18:08 +000031914 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031915fi
Reid Spencera773bd52006-08-04 18:18:08 +000031916
31917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031918 ac_ext=c
31919ac_cpp='$CPP $CPPFLAGS'
31920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31922ac_compiler_gnu=$ac_cv_c_compiler_gnu
31923
John Criswell7a73b802003-06-30 21:59:07 +000031924fi
Reid Spencera773bd52006-08-04 18:18:08 +000031925{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31926echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031927 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31928 then
John Criswell9f011862004-09-24 18:28:00 +000031929
31930cat >>confdefs.h <<\_ACEOF
31931#define HAVE_STD_EXT_HASH_MAP 1
31932_ACEOF
31933
31934 else
31935
31936cat >>confdefs.h <<\_ACEOF
31937#define HAVE_STD_EXT_HASH_MAP 0
31938_ACEOF
31939
Brian Gaeke90583492003-11-10 03:06:28 +000031940 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031941
Reid Spencera773bd52006-08-04 18:18:08 +000031942 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31943echo $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 +000031944if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31945 echo $ECHO_N "(cached) $ECHO_C" >&6
31946else
31947
Reid Spencera773bd52006-08-04 18:18:08 +000031948 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031949ac_cpp='$CXXCPP $CPPFLAGS'
31950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31953
31954 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031955/* confdefs.h. */
31956_ACEOF
31957cat confdefs.h >>conftest.$ac_ext
31958cat >>conftest.$ac_ext <<_ACEOF
31959/* end confdefs.h. */
31960#include <ext/hash_map>
31961#ifdef HAVE_NAMESPACES
31962using namespace __gnu_cxx;
31963#endif
31964int
31965main ()
31966{
31967hash_map<int,int> t;
31968 ;
31969 return 0;
31970}
31971_ACEOF
31972rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031973if { (ac_try="$ac_compile"
31974case "(($ac_try" in
31975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976 *) ac_try_echo=$ac_try;;
31977esac
31978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031980 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031981 grep -v '^ *+' conftest.er1 >conftest.err
31982 rm -f conftest.er1
31983 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31987 { (case "(($ac_try" in
31988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989 *) ac_try_echo=$ac_try;;
31990esac
31991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031993 ac_status=$?
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); }; } &&
31996 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031997 { (case "(($ac_try" in
31998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999 *) ac_try_echo=$ac_try;;
32000esac
32001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032003 ac_status=$?
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; }; then
32006 ac_cv_cxx_have_gnu_ext_hash_map=yes
32007else
32008 echo "$as_me: failed program was:" >&5
32009sed 's/^/| /' conftest.$ac_ext >&5
32010
Reid Spencera773bd52006-08-04 18:18:08 +000032011 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032012fi
Reid Spencera773bd52006-08-04 18:18:08 +000032013
32014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032015 ac_ext=c
32016ac_cpp='$CPP $CPPFLAGS'
32017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32019ac_compiler_gnu=$ac_cv_c_compiler_gnu
32020
32021fi
Reid Spencera773bd52006-08-04 18:18:08 +000032022{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32023echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032024 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32025 then
John Criswell9f011862004-09-24 18:28:00 +000032026
32027cat >>confdefs.h <<\_ACEOF
32028#define HAVE_GNU_EXT_HASH_MAP 1
32029_ACEOF
32030
32031 else
32032
32033cat >>confdefs.h <<\_ACEOF
32034#define HAVE_GNU_EXT_HASH_MAP 0
32035_ACEOF
32036
Brian Gaeke90583492003-11-10 03:06:28 +000032037 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032038
Reid Spencera773bd52006-08-04 18:18:08 +000032039 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32040echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032041if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32042 echo $ECHO_N "(cached) $ECHO_C" >&6
32043else
John Criswell7a73b802003-06-30 21:59:07 +000032044
Reid Spencera773bd52006-08-04 18:18:08 +000032045 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032046ac_cpp='$CXXCPP $CPPFLAGS'
32047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32050
32051 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032052/* confdefs.h. */
32053_ACEOF
32054cat confdefs.h >>conftest.$ac_ext
32055cat >>conftest.$ac_ext <<_ACEOF
32056/* end confdefs.h. */
32057#include <hash_map>
32058int
32059main ()
32060{
32061hash_map<int,int> t;
32062 ;
32063 return 0;
32064}
32065_ACEOF
32066rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032067if { (ac_try="$ac_compile"
32068case "(($ac_try" in
32069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32071esac
32072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032075 grep -v '^ *+' conftest.er1 >conftest.err
32076 rm -f conftest.er1
32077 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32081 { (case "(($ac_try" in
32082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32083 *) ac_try_echo=$ac_try;;
32084esac
32085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32086 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032087 ac_status=$?
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); }; } &&
32090 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032091 { (case "(($ac_try" in
32092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093 *) ac_try_echo=$ac_try;;
32094esac
32095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032097 ac_status=$?
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); }; }; then
32100 ac_cv_cxx_have_global_hash_map=yes
32101else
32102 echo "$as_me: failed program was:" >&5
32103sed 's/^/| /' conftest.$ac_ext >&5
32104
Reid Spencera773bd52006-08-04 18:18:08 +000032105 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032106fi
Reid Spencera773bd52006-08-04 18:18:08 +000032107
32108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032109 ac_ext=c
32110ac_cpp='$CPP $CPPFLAGS'
32111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32113ac_compiler_gnu=$ac_cv_c_compiler_gnu
32114
32115fi
Reid Spencera773bd52006-08-04 18:18:08 +000032116{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32117echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032118 if test "$ac_cv_cxx_have_global_hash_map" = yes
32119 then
John Criswell9f011862004-09-24 18:28:00 +000032120
32121cat >>confdefs.h <<\_ACEOF
32122#define HAVE_GLOBAL_HASH_MAP 1
32123_ACEOF
32124
32125 else
32126
32127cat >>confdefs.h <<\_ACEOF
32128#define HAVE_GLOBAL_HASH_MAP 0
32129_ACEOF
32130
Brian Gaeke90583492003-11-10 03:06:28 +000032131 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032132
Reid Spencera773bd52006-08-04 18:18:08 +000032133{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32134echo $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 +000032135if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032136 echo $ECHO_N "(cached) $ECHO_C" >&6
32137else
32138
Reid Spencera773bd52006-08-04 18:18:08 +000032139 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032140ac_cpp='$CXXCPP $CPPFLAGS'
32141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32144
32145 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032146/* confdefs.h. */
32147_ACEOF
32148cat confdefs.h >>conftest.$ac_ext
32149cat >>conftest.$ac_ext <<_ACEOF
32150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032151#include <ext/hash_set>
32152#ifdef HAVE_NAMESPACES
32153using namespace std;
32154#endif
John Criswell7a73b802003-06-30 21:59:07 +000032155int
32156main ()
32157{
Brian Gaeke90583492003-11-10 03:06:28 +000032158hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032159 ;
32160 return 0;
32161}
32162_ACEOF
32163rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032164if { (ac_try="$ac_compile"
32165case "(($ac_try" in
32166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32167 *) ac_try_echo=$ac_try;;
32168esac
32169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32170 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032171 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032172 grep -v '^ *+' conftest.er1 >conftest.err
32173 rm -f conftest.er1
32174 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32178 { (case "(($ac_try" in
32179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32180 *) ac_try_echo=$ac_try;;
32181esac
32182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32183 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032184 ac_status=$?
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); }; } &&
32187 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032188 { (case "(($ac_try" in
32189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190 *) ac_try_echo=$ac_try;;
32191esac
32192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32193 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032194 ac_status=$?
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032197 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032198else
32199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032200sed 's/^/| /' conftest.$ac_ext >&5
32201
Reid Spencera773bd52006-08-04 18:18:08 +000032202 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032203fi
Reid Spencera773bd52006-08-04 18:18:08 +000032204
32205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032206 ac_ext=c
32207ac_cpp='$CPP $CPPFLAGS'
32208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32210ac_compiler_gnu=$ac_cv_c_compiler_gnu
32211
32212fi
Reid Spencera773bd52006-08-04 18:18:08 +000032213{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32214echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032215 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32216 then
John Criswell9f011862004-09-24 18:28:00 +000032217
32218cat >>confdefs.h <<\_ACEOF
32219#define HAVE_STD_EXT_HASH_SET 1
32220_ACEOF
32221
32222 else
32223
32224cat >>confdefs.h <<\_ACEOF
32225#define HAVE_STD_EXT_HASH_SET 0
32226_ACEOF
32227
Brian Gaeke90583492003-11-10 03:06:28 +000032228 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032229
Reid Spencera773bd52006-08-04 18:18:08 +000032230 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32231echo $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 +000032232if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32233 echo $ECHO_N "(cached) $ECHO_C" >&6
32234else
32235
Reid Spencera773bd52006-08-04 18:18:08 +000032236 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032237ac_cpp='$CXXCPP $CPPFLAGS'
32238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32241
John Criswell7a73b802003-06-30 21:59:07 +000032242 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032243/* confdefs.h. */
32244_ACEOF
32245cat confdefs.h >>conftest.$ac_ext
32246cat >>conftest.$ac_ext <<_ACEOF
32247/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032248#include <ext/hash_set>
32249#ifdef HAVE_NAMESPACES
32250using namespace __gnu_cxx;
32251#endif
John Criswell7a73b802003-06-30 21:59:07 +000032252int
32253main ()
32254{
Brian Gaeke90583492003-11-10 03:06:28 +000032255hash_set<int> t;
32256 ;
32257 return 0;
32258}
32259_ACEOF
32260rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032261if { (ac_try="$ac_compile"
32262case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32265esac
32266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032268 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032269 grep -v '^ *+' conftest.er1 >conftest.err
32270 rm -f conftest.er1
32271 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32275 { (case "(($ac_try" in
32276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277 *) ac_try_echo=$ac_try;;
32278esac
32279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032281 ac_status=$?
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); }; } &&
32284 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032285 { (case "(($ac_try" in
32286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32287 *) ac_try_echo=$ac_try;;
32288esac
32289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32290 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000032291 ac_status=$?
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; }; then
32294 ac_cv_cxx_have_gnu_ext_hash_set=yes
32295else
32296 echo "$as_me: failed program was:" >&5
32297sed 's/^/| /' conftest.$ac_ext >&5
32298
Reid Spencera773bd52006-08-04 18:18:08 +000032299 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032300fi
Reid Spencera773bd52006-08-04 18:18:08 +000032301
32302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032303 ac_ext=c
32304ac_cpp='$CPP $CPPFLAGS'
32305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32307ac_compiler_gnu=$ac_cv_c_compiler_gnu
32308
32309fi
Reid Spencera773bd52006-08-04 18:18:08 +000032310{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32311echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032312 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32313 then
John Criswell9f011862004-09-24 18:28:00 +000032314
32315cat >>confdefs.h <<\_ACEOF
32316#define HAVE_GNU_EXT_HASH_SET 1
32317_ACEOF
32318
32319 else
32320
32321cat >>confdefs.h <<\_ACEOF
32322#define HAVE_GNU_EXT_HASH_SET 0
32323_ACEOF
32324
Brian Gaeke90583492003-11-10 03:06:28 +000032325 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032326
Reid Spencera773bd52006-08-04 18:18:08 +000032327 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32328echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032329if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32331else
32332
Reid Spencera773bd52006-08-04 18:18:08 +000032333 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032334ac_cpp='$CXXCPP $CPPFLAGS'
32335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32338
32339 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032340/* confdefs.h. */
32341_ACEOF
32342cat confdefs.h >>conftest.$ac_ext
32343cat >>conftest.$ac_ext <<_ACEOF
32344/* end confdefs.h. */
32345#include <hash_set>
32346int
32347main ()
32348{
John Criswell7a73b802003-06-30 21:59:07 +000032349hash_set<int> t; return 0;
32350 ;
32351 return 0;
32352}
32353_ACEOF
32354rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032355if { (ac_try="$ac_compile"
32356case "(($ac_try" in
32357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358 *) ac_try_echo=$ac_try;;
32359esac
32360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032362 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032363 grep -v '^ *+' conftest.er1 >conftest.err
32364 rm -f conftest.er1
32365 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32369 { (case "(($ac_try" in
32370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371 *) ac_try_echo=$ac_try;;
32372esac
32373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32374 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032375 ac_status=$?
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); }; } &&
32378 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032379 { (case "(($ac_try" in
32380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32381 *) ac_try_echo=$ac_try;;
32382esac
32383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32384 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032385 ac_status=$?
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032388 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032389else
32390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032391sed 's/^/| /' conftest.$ac_ext >&5
32392
Reid Spencera773bd52006-08-04 18:18:08 +000032393 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032394fi
Reid Spencera773bd52006-08-04 18:18:08 +000032395
32396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032397 ac_ext=c
32398ac_cpp='$CPP $CPPFLAGS'
32399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32401ac_compiler_gnu=$ac_cv_c_compiler_gnu
32402
John Criswell7a73b802003-06-30 21:59:07 +000032403fi
Reid Spencera773bd52006-08-04 18:18:08 +000032404{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32405echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032406 if test "$ac_cv_cxx_have_global_hash_set" = yes
32407 then
John Criswell9f011862004-09-24 18:28:00 +000032408
32409cat >>confdefs.h <<\_ACEOF
32410#define HAVE_GLOBAL_HASH_SET 1
32411_ACEOF
32412
32413 else
32414
32415cat >>confdefs.h <<\_ACEOF
32416#define HAVE_GLOBAL_HASH_SET 0
32417_ACEOF
32418
Brian Gaeke90583492003-11-10 03:06:28 +000032419 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032420
Reid Spencera773bd52006-08-04 18:18:08 +000032421{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32422echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032423if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32424 echo $ECHO_N "(cached) $ECHO_C" >&6
32425else
32426
Reid Spencera773bd52006-08-04 18:18:08 +000032427 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032428ac_cpp='$CXXCPP $CPPFLAGS'
32429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32432
32433 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032434/* confdefs.h. */
32435_ACEOF
32436cat confdefs.h >>conftest.$ac_ext
32437cat >>conftest.$ac_ext <<_ACEOF
32438/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032439#include <iterator>
32440#ifdef HAVE_NAMESPACES
32441using namespace std;
32442#endif
John Criswell7a73b802003-06-30 21:59:07 +000032443int
32444main ()
32445{
32446iterator<int,int,int> t; return 0;
32447 ;
32448 return 0;
32449}
32450_ACEOF
32451rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032452if { (ac_try="$ac_compile"
32453case "(($ac_try" in
32454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32456esac
32457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032460 grep -v '^ *+' conftest.er1 >conftest.err
32461 rm -f conftest.er1
32462 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32466 { (case "(($ac_try" in
32467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32468 *) ac_try_echo=$ac_try;;
32469esac
32470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32471 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032472 ac_status=$?
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); }; } &&
32475 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032476 { (case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32479esac
32480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032482 ac_status=$?
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); }; }; then
32485 ac_cv_cxx_have_std_iterator=yes
32486else
32487 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032488sed 's/^/| /' conftest.$ac_ext >&5
32489
Reid Spencera773bd52006-08-04 18:18:08 +000032490 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032491fi
Reid Spencera773bd52006-08-04 18:18:08 +000032492
32493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032494 ac_ext=c
32495ac_cpp='$CPP $CPPFLAGS'
32496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32498ac_compiler_gnu=$ac_cv_c_compiler_gnu
32499
32500
32501fi
Reid Spencera773bd52006-08-04 18:18:08 +000032502{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32503echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032504if test "$ac_cv_cxx_have_std_iterator" = yes
32505then
John Criswell40468462004-09-24 21:19:06 +000032506
32507cat >>confdefs.h <<\_ACEOF
32508#define HAVE_STD_ITERATOR 1
32509_ACEOF
32510
32511else
32512
32513cat >>confdefs.h <<\_ACEOF
32514#define HAVE_STD_ITERATOR 0
32515_ACEOF
32516
John Criswell7a73b802003-06-30 21:59:07 +000032517fi
32518
Reid Spencera773bd52006-08-04 18:18:08 +000032519{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32520echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032521if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32522 echo $ECHO_N "(cached) $ECHO_C" >&6
32523else
32524
Reid Spencera773bd52006-08-04 18:18:08 +000032525 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032526ac_cpp='$CXXCPP $CPPFLAGS'
32527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32530
32531 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032532/* confdefs.h. */
32533_ACEOF
32534cat confdefs.h >>conftest.$ac_ext
32535cat >>conftest.$ac_ext <<_ACEOF
32536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032537#include <iterator>
32538#ifdef HAVE_NAMESPACES
32539using namespace std;
32540#endif
John Criswell7a73b802003-06-30 21:59:07 +000032541int
32542main ()
32543{
John Criswellc78022e2003-07-29 19:11:58 +000032544bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032545 ;
32546 return 0;
32547}
32548_ACEOF
32549rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032550if { (ac_try="$ac_compile"
32551case "(($ac_try" in
32552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32553 *) ac_try_echo=$ac_try;;
32554esac
32555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32556 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032557 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032558 grep -v '^ *+' conftest.er1 >conftest.err
32559 rm -f conftest.er1
32560 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32564 { (case "(($ac_try" in
32565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566 *) ac_try_echo=$ac_try;;
32567esac
32568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32569 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032570 ac_status=$?
32571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32572 (exit $ac_status); }; } &&
32573 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032574 { (case "(($ac_try" in
32575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576 *) ac_try_echo=$ac_try;;
32577esac
32578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032580 ac_status=$?
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); }; }; then
32583 ac_cv_cxx_have_bi_iterator=yes
32584else
32585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032586sed 's/^/| /' conftest.$ac_ext >&5
32587
Reid Spencera773bd52006-08-04 18:18:08 +000032588 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032589fi
Reid Spencera773bd52006-08-04 18:18:08 +000032590
32591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032592 ac_ext=c
32593ac_cpp='$CPP $CPPFLAGS'
32594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32596ac_compiler_gnu=$ac_cv_c_compiler_gnu
32597
32598
32599fi
Reid Spencera773bd52006-08-04 18:18:08 +000032600{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32601echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032602if test "$ac_cv_cxx_have_bi_iterator" = yes
32603then
John Criswell40468462004-09-24 21:19:06 +000032604
32605cat >>confdefs.h <<\_ACEOF
32606#define HAVE_BI_ITERATOR 1
32607_ACEOF
32608
32609else
32610
32611cat >>confdefs.h <<\_ACEOF
32612#define HAVE_BI_ITERATOR 0
32613_ACEOF
32614
John Criswell7a73b802003-06-30 21:59:07 +000032615fi
32616
Reid Spencera773bd52006-08-04 18:18:08 +000032617{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32618echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032619if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32620 echo $ECHO_N "(cached) $ECHO_C" >&6
32621else
32622
Reid Spencera773bd52006-08-04 18:18:08 +000032623 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032624ac_cpp='$CXXCPP $CPPFLAGS'
32625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32628
32629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032630/* confdefs.h. */
32631_ACEOF
32632cat confdefs.h >>conftest.$ac_ext
32633cat >>conftest.$ac_ext <<_ACEOF
32634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032635#include <iterator>
32636#ifdef HAVE_NAMESPACES
32637using namespace std;
32638#endif
John Criswell7a73b802003-06-30 21:59:07 +000032639int
32640main ()
32641{
John Criswellc78022e2003-07-29 19:11:58 +000032642forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032643 ;
32644 return 0;
32645}
32646_ACEOF
32647rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032648if { (ac_try="$ac_compile"
32649case "(($ac_try" in
32650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651 *) ac_try_echo=$ac_try;;
32652esac
32653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032656 grep -v '^ *+' conftest.er1 >conftest.err
32657 rm -f conftest.er1
32658 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32662 { (case "(($ac_try" in
32663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32664 *) ac_try_echo=$ac_try;;
32665esac
32666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32667 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032668 ac_status=$?
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); }; } &&
32671 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032672 { (case "(($ac_try" in
32673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674 *) ac_try_echo=$ac_try;;
32675esac
32676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032678 ac_status=$?
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; }; then
32681 ac_cv_cxx_have_fwd_iterator=yes
32682else
32683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032684sed 's/^/| /' conftest.$ac_ext >&5
32685
Reid Spencera773bd52006-08-04 18:18:08 +000032686 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032687fi
Reid Spencera773bd52006-08-04 18:18:08 +000032688
32689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032690 ac_ext=c
32691ac_cpp='$CPP $CPPFLAGS'
32692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32694ac_compiler_gnu=$ac_cv_c_compiler_gnu
32695
32696
32697fi
Reid Spencera773bd52006-08-04 18:18:08 +000032698{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32699echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032700if test "$ac_cv_cxx_have_fwd_iterator" = yes
32701then
John Criswell40468462004-09-24 21:19:06 +000032702
32703cat >>confdefs.h <<\_ACEOF
32704#define HAVE_FWD_ITERATOR 1
32705_ACEOF
32706
32707else
32708
32709cat >>confdefs.h <<\_ACEOF
32710#define HAVE_FWD_ITERATOR 0
32711_ACEOF
32712
John Criswell7a73b802003-06-30 21:59:07 +000032713fi
32714
32715
Reid Spencera773bd52006-08-04 18:18:08 +000032716{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32717echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032718if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32719 echo $ECHO_N "(cached) $ECHO_C" >&6
32720else
Reid Spencera773bd52006-08-04 18:18:08 +000032721 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032722ac_cpp='$CXXCPP $CPPFLAGS'
32723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32726
Reid Spencerabec8f92004-10-27 23:03:44 +000032727 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032728/* confdefs.h. */
32729_ACEOF
32730cat confdefs.h >>conftest.$ac_ext
32731cat >>conftest.$ac_ext <<_ACEOF
32732/* end confdefs.h. */
32733#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032734int
32735main ()
32736{
32737float f; isnan(f);
32738 ;
32739 return 0;
32740}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032741_ACEOF
32742rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032743if { (ac_try="$ac_compile"
32744case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32747esac
32748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032750 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032751 grep -v '^ *+' conftest.er1 >conftest.err
32752 rm -f conftest.er1
32753 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32757 { (case "(($ac_try" in
32758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759 *) ac_try_echo=$ac_try;;
32760esac
32761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032763 ac_status=$?
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; } &&
32766 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032767 { (case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32770esac
32771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
32776 ac_cv_func_isnan_in_math_h=yes
32777else
32778 echo "$as_me: failed program was:" >&5
32779sed 's/^/| /' conftest.$ac_ext >&5
32780
Reid Spencera773bd52006-08-04 18:18:08 +000032781 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032782fi
Reid Spencera773bd52006-08-04 18:18:08 +000032783
32784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032785 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032786ac_cpp='$CPP $CPPFLAGS'
32787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32789ac_compiler_gnu=$ac_cv_c_compiler_gnu
32790
32791fi
Reid Spencera773bd52006-08-04 18:18:08 +000032792{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32793echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032794
32795
32796if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032797
32798cat >>confdefs.h <<\_ACEOF
32799#define HAVE_ISNAN_IN_MATH_H 1
32800_ACEOF
32801
Reid Spencerabec8f92004-10-27 23:03:44 +000032802fi
32803
Reid Spencera773bd52006-08-04 18:18:08 +000032804{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32805echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032806if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32807 echo $ECHO_N "(cached) $ECHO_C" >&6
32808else
Reid Spencera773bd52006-08-04 18:18:08 +000032809 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032810ac_cpp='$CXXCPP $CPPFLAGS'
32811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32814
Reid Spencerabec8f92004-10-27 23:03:44 +000032815 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032816/* confdefs.h. */
32817_ACEOF
32818cat confdefs.h >>conftest.$ac_ext
32819cat >>conftest.$ac_ext <<_ACEOF
32820/* end confdefs.h. */
32821#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032822int
32823main ()
32824{
32825float f; isnan(f);
32826 ;
32827 return 0;
32828}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032829_ACEOF
32830rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032831if { (ac_try="$ac_compile"
32832case "(($ac_try" in
32833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32834 *) ac_try_echo=$ac_try;;
32835esac
32836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32837 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032838 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032839 grep -v '^ *+' conftest.er1 >conftest.err
32840 rm -f conftest.er1
32841 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32845 { (case "(($ac_try" in
32846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32847 *) ac_try_echo=$ac_try;;
32848esac
32849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32850 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032851 ac_status=$?
32852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32853 (exit $ac_status); }; } &&
32854 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032855 { (case "(($ac_try" in
32856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32857 *) ac_try_echo=$ac_try;;
32858esac
32859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32860 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032861 ac_status=$?
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; }; then
32864 ac_cv_func_isnan_in_cmath=yes
32865else
32866 echo "$as_me: failed program was:" >&5
32867sed 's/^/| /' conftest.$ac_ext >&5
32868
Reid Spencera773bd52006-08-04 18:18:08 +000032869 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032870fi
Reid Spencera773bd52006-08-04 18:18:08 +000032871
32872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032873 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032874ac_cpp='$CPP $CPPFLAGS'
32875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32877ac_compiler_gnu=$ac_cv_c_compiler_gnu
32878
32879fi
Reid Spencera773bd52006-08-04 18:18:08 +000032880{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32881echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032882
32883if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032884
32885cat >>confdefs.h <<\_ACEOF
32886#define HAVE_ISNAN_IN_CMATH 1
32887_ACEOF
32888
Reid Spencerabec8f92004-10-27 23:03:44 +000032889fi
32890
Reid Spencera773bd52006-08-04 18:18:08 +000032891{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32892echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032893if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32894 echo $ECHO_N "(cached) $ECHO_C" >&6
32895else
Reid Spencera773bd52006-08-04 18:18:08 +000032896 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032897ac_cpp='$CXXCPP $CPPFLAGS'
32898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32901
Reid Spencerabec8f92004-10-27 23:03:44 +000032902 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032903/* confdefs.h. */
32904_ACEOF
32905cat confdefs.h >>conftest.$ac_ext
32906cat >>conftest.$ac_ext <<_ACEOF
32907/* end confdefs.h. */
32908#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032909int
32910main ()
32911{
32912float f; std::isnan(f);
32913 ;
32914 return 0;
32915}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032916_ACEOF
32917rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032918if { (ac_try="$ac_compile"
32919case "(($ac_try" in
32920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32921 *) ac_try_echo=$ac_try;;
32922esac
32923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32924 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032925 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032926 grep -v '^ *+' conftest.er1 >conftest.err
32927 rm -f conftest.er1
32928 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32932 { (case "(($ac_try" in
32933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32934 *) ac_try_echo=$ac_try;;
32935esac
32936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32937 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032938 ac_status=$?
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); }; } &&
32941 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032942 { (case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32945esac
32946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; }; then
32951 ac_cv_func_std_isnan_in_cmath=yes
32952else
32953 echo "$as_me: failed program was:" >&5
32954sed 's/^/| /' conftest.$ac_ext >&5
32955
Reid Spencera773bd52006-08-04 18:18:08 +000032956 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032957fi
Reid Spencera773bd52006-08-04 18:18:08 +000032958
32959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032960 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032961ac_cpp='$CPP $CPPFLAGS'
32962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32964ac_compiler_gnu=$ac_cv_c_compiler_gnu
32965
32966fi
Reid Spencera773bd52006-08-04 18:18:08 +000032967{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32968echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032969
32970if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032971
32972cat >>confdefs.h <<\_ACEOF
32973#define HAVE_STD_ISNAN_IN_CMATH 1
32974_ACEOF
32975
Reid Spencerabec8f92004-10-27 23:03:44 +000032976fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032977
32978
Reid Spencera773bd52006-08-04 18:18:08 +000032979{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32980echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032981if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32983else
Reid Spencera773bd52006-08-04 18:18:08 +000032984 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032985ac_cpp='$CXXCPP $CPPFLAGS'
32986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32989
Reid Spencerabec8f92004-10-27 23:03:44 +000032990 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032991/* confdefs.h. */
32992_ACEOF
32993cat confdefs.h >>conftest.$ac_ext
32994cat >>conftest.$ac_ext <<_ACEOF
32995/* end confdefs.h. */
32996#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032997int
32998main ()
32999{
33000float f; isinf(f);
33001 ;
33002 return 0;
33003}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033004_ACEOF
33005rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033006if { (ac_try="$ac_compile"
33007case "(($ac_try" in
33008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33009 *) ac_try_echo=$ac_try;;
33010esac
33011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33012 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033014 grep -v '^ *+' conftest.er1 >conftest.err
33015 rm -f conftest.er1
33016 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33020 { (case "(($ac_try" in
33021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33022 *) ac_try_echo=$ac_try;;
33023esac
33024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33025 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033026 ac_status=$?
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); }; } &&
33029 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033030 { (case "(($ac_try" in
33031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032 *) ac_try_echo=$ac_try;;
33033esac
33034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33035 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033036 ac_status=$?
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); }; }; then
33039 ac_cv_func_isinf_in_math_h=yes
33040else
33041 echo "$as_me: failed program was:" >&5
33042sed 's/^/| /' conftest.$ac_ext >&5
33043
Reid Spencera773bd52006-08-04 18:18:08 +000033044 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033045fi
Reid Spencera773bd52006-08-04 18:18:08 +000033046
33047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033048 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033049ac_cpp='$CPP $CPPFLAGS'
33050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33052ac_compiler_gnu=$ac_cv_c_compiler_gnu
33053
33054fi
Reid Spencera773bd52006-08-04 18:18:08 +000033055{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33056echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033057
33058if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033059
33060cat >>confdefs.h <<\_ACEOF
33061#define HAVE_ISINF_IN_MATH_H 1
33062_ACEOF
33063
Reid Spencerabec8f92004-10-27 23:03:44 +000033064fi
33065
Reid Spencera773bd52006-08-04 18:18:08 +000033066{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33067echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033068if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33069 echo $ECHO_N "(cached) $ECHO_C" >&6
33070else
Reid Spencera773bd52006-08-04 18:18:08 +000033071 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033072ac_cpp='$CXXCPP $CPPFLAGS'
33073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33076
Reid Spencerabec8f92004-10-27 23:03:44 +000033077 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033078/* confdefs.h. */
33079_ACEOF
33080cat confdefs.h >>conftest.$ac_ext
33081cat >>conftest.$ac_ext <<_ACEOF
33082/* end confdefs.h. */
33083#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033084int
33085main ()
33086{
33087float f; isinf(f);
33088 ;
33089 return 0;
33090}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033091_ACEOF
33092rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033093if { (ac_try="$ac_compile"
33094case "(($ac_try" in
33095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33096 *) ac_try_echo=$ac_try;;
33097esac
33098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33099 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033101 grep -v '^ *+' conftest.er1 >conftest.err
33102 rm -f conftest.er1
33103 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33107 { (case "(($ac_try" in
33108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109 *) ac_try_echo=$ac_try;;
33110esac
33111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033113 ac_status=$?
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); }; } &&
33116 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033117 { (case "(($ac_try" in
33118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33119 *) ac_try_echo=$ac_try;;
33120esac
33121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33122 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; }; then
33126 ac_cv_func_isinf_in_cmath=yes
33127else
33128 echo "$as_me: failed program was:" >&5
33129sed 's/^/| /' conftest.$ac_ext >&5
33130
Reid Spencera773bd52006-08-04 18:18:08 +000033131 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033132fi
Reid Spencera773bd52006-08-04 18:18:08 +000033133
33134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033135 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033136ac_cpp='$CPP $CPPFLAGS'
33137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33139ac_compiler_gnu=$ac_cv_c_compiler_gnu
33140
33141fi
Reid Spencera773bd52006-08-04 18:18:08 +000033142{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33143echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033144
33145if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033146
33147cat >>confdefs.h <<\_ACEOF
33148#define HAVE_ISINF_IN_CMATH 1
33149_ACEOF
33150
Reid Spencerabec8f92004-10-27 23:03:44 +000033151fi
33152
Reid Spencera773bd52006-08-04 18:18:08 +000033153{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33154echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033155if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33156 echo $ECHO_N "(cached) $ECHO_C" >&6
33157else
Reid Spencera773bd52006-08-04 18:18:08 +000033158 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033159ac_cpp='$CXXCPP $CPPFLAGS'
33160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33163
Reid Spencerabec8f92004-10-27 23:03:44 +000033164 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033165/* confdefs.h. */
33166_ACEOF
33167cat confdefs.h >>conftest.$ac_ext
33168cat >>conftest.$ac_ext <<_ACEOF
33169/* end confdefs.h. */
33170#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033171int
33172main ()
33173{
33174float f; std::isinf(f)}
33175 ;
33176 return 0;
33177}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033178_ACEOF
33179rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033180if { (ac_try="$ac_compile"
33181case "(($ac_try" in
33182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33183 *) ac_try_echo=$ac_try;;
33184esac
33185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33186 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033187 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033188 grep -v '^ *+' conftest.er1 >conftest.err
33189 rm -f conftest.er1
33190 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33194 { (case "(($ac_try" in
33195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196 *) ac_try_echo=$ac_try;;
33197esac
33198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033200 ac_status=$?
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); }; } &&
33203 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033204 { (case "(($ac_try" in
33205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33206 *) ac_try_echo=$ac_try;;
33207esac
33208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33209 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033210 ac_status=$?
33211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212 (exit $ac_status); }; }; then
33213 ac_cv_func_std_isinf_in_cmath=yes
33214else
33215 echo "$as_me: failed program was:" >&5
33216sed 's/^/| /' conftest.$ac_ext >&5
33217
Reid Spencera773bd52006-08-04 18:18:08 +000033218 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033219fi
Reid Spencera773bd52006-08-04 18:18:08 +000033220
33221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033222 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033223ac_cpp='$CPP $CPPFLAGS'
33224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33226ac_compiler_gnu=$ac_cv_c_compiler_gnu
33227
33228fi
Reid Spencera773bd52006-08-04 18:18:08 +000033229{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33230echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033231
33232if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033233
33234cat >>confdefs.h <<\_ACEOF
33235#define HAVE_STD_ISINF_IN_CMATH 1
33236_ACEOF
33237
Reid Spencerabec8f92004-10-27 23:03:44 +000033238fi
33239
Reid Spencera773bd52006-08-04 18:18:08 +000033240{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33241echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033242if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33243 echo $ECHO_N "(cached) $ECHO_C" >&6
33244else
Reid Spencera773bd52006-08-04 18:18:08 +000033245 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033246ac_cpp='$CXXCPP $CPPFLAGS'
33247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33250
Reid Spencerabec8f92004-10-27 23:03:44 +000033251 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033252/* confdefs.h. */
33253_ACEOF
33254cat confdefs.h >>conftest.$ac_ext
33255cat >>conftest.$ac_ext <<_ACEOF
33256/* end confdefs.h. */
33257#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033258int
33259main ()
33260{
33261float f; finite(f);
33262 ;
33263 return 0;
33264}
Brian Gaeked59a6472004-07-21 03:33:58 +000033265_ACEOF
33266rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033267if { (ac_try="$ac_compile"
33268case "(($ac_try" in
33269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33270 *) ac_try_echo=$ac_try;;
33271esac
33272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33273 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033274 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033275 grep -v '^ *+' conftest.er1 >conftest.err
33276 rm -f conftest.er1
33277 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33281 { (case "(($ac_try" in
33282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283 *) ac_try_echo=$ac_try;;
33284esac
33285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033287 ac_status=$?
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); }; } &&
33290 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033291 { (case "(($ac_try" in
33292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293 *) ac_try_echo=$ac_try;;
33294esac
33295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033297 ac_status=$?
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; }; then
33300 ac_cv_func_finite_in_ieeefp_h=yes
33301else
33302 echo "$as_me: failed program was:" >&5
33303sed 's/^/| /' conftest.$ac_ext >&5
33304
Reid Spencera773bd52006-08-04 18:18:08 +000033305 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033306fi
Reid Spencera773bd52006-08-04 18:18:08 +000033307
33308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033309 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033310ac_cpp='$CPP $CPPFLAGS'
33311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33313ac_compiler_gnu=$ac_cv_c_compiler_gnu
33314
33315fi
Reid Spencera773bd52006-08-04 18:18:08 +000033316{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33317echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033318
Brian Gaeke6802b552004-10-28 05:06:45 +000033319if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033320
33321cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033322#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033323_ACEOF
33324
Reid Spencerabec8f92004-10-27 23:03:44 +000033325fi
33326
33327
33328
Reid Spencer30fe5262007-01-20 07:48:49 +000033329if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033330
33331
33332for ac_header in stdlib.h unistd.h
33333do
33334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033339 echo $ECHO_N "(cached) $ECHO_C" >&6
33340fi
Reid Spencera773bd52006-08-04 18:18:08 +000033341ac_res=`eval echo '${'$as_ac_Header'}'`
33342 { echo "$as_me:$LINENO: result: $ac_res" >&5
33343echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033344else
33345 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033346{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033348cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033349/* confdefs.h. */
33350_ACEOF
33351cat confdefs.h >>conftest.$ac_ext
33352cat >>conftest.$ac_ext <<_ACEOF
33353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033354$ac_includes_default
33355#include <$ac_header>
33356_ACEOF
33357rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033358if { (ac_try="$ac_compile"
33359case "(($ac_try" in
33360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361 *) ac_try_echo=$ac_try;;
33362esac
33363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033366 grep -v '^ *+' conftest.er1 >conftest.err
33367 rm -f conftest.er1
33368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33372 { (case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33375esac
33376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033378 ac_status=$?
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); }; } &&
33381 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000033382 { (case "(($ac_try" in
33383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33384 *) ac_try_echo=$ac_try;;
33385esac
33386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33387 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033388 ac_status=$?
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 (exit $ac_status); }; }; then
33391 ac_header_compiler=yes
33392else
33393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033394sed 's/^/| /' conftest.$ac_ext >&5
33395
Reid Spencera773bd52006-08-04 18:18:08 +000033396 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033397fi
Reid Spencera773bd52006-08-04 18:18:08 +000033398
33399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33400{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33401echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033402
33403# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033404{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033406cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033407/* confdefs.h. */
33408_ACEOF
33409cat confdefs.h >>conftest.$ac_ext
33410cat >>conftest.$ac_ext <<_ACEOF
33411/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033412#include <$ac_header>
33413_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033414if { (ac_try="$ac_cpp conftest.$ac_ext"
33415case "(($ac_try" in
33416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417 *) ac_try_echo=$ac_try;;
33418esac
33419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033421 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033422 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033423 rm -f conftest.er1
33424 cat conftest.err >&5
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); } >/dev/null; then
33427 if test -s conftest.err; then
33428 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000033429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000033430 else
33431 ac_cpp_err=
33432 fi
33433else
33434 ac_cpp_err=yes
33435fi
33436if test -z "$ac_cpp_err"; then
33437 ac_header_preproc=yes
33438else
33439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033440sed 's/^/| /' conftest.$ac_ext >&5
33441
John Criswell7a73b802003-06-30 21:59:07 +000033442 ac_header_preproc=no
33443fi
Reid Spencera773bd52006-08-04 18:18:08 +000033444
John Criswell7a73b802003-06-30 21:59:07 +000033445rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033446{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33447echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033448
33449# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33451 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33456 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033457 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033458 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033471 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033472## ----------------------------------- ##
33473## Report this to llvmbugs@cs.uiuc.edu ##
33474## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033475_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033476 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033477 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033478esac
Reid Spencera773bd52006-08-04 18:18:08 +000033479{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033482 echo $ECHO_N "(cached) $ECHO_C" >&6
33483else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033484 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033485fi
Reid Spencera773bd52006-08-04 18:18:08 +000033486ac_res=`eval echo '${'$as_ac_Header'}'`
33487 { echo "$as_me:$LINENO: result: $ac_res" >&5
33488echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033489
33490fi
33491if test `eval echo '${'$as_ac_Header'}'` = yes; then
33492 cat >>confdefs.h <<_ACEOF
33493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33494_ACEOF
33495
33496fi
33497
33498done
33499
33500
33501for ac_func in getpagesize
33502do
33503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033504{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33506if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033507 echo $ECHO_N "(cached) $ECHO_C" >&6
33508else
33509 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033510/* confdefs.h. */
33511_ACEOF
33512cat confdefs.h >>conftest.$ac_ext
33513cat >>conftest.$ac_ext <<_ACEOF
33514/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33517#define $ac_func innocuous_$ac_func
33518
John Criswell7a73b802003-06-30 21:59:07 +000033519/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033520 which can conflict with char $ac_func (); below.
33521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33522 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033523
John Criswell0c38eaf2003-09-10 15:17:25 +000033524#ifdef __STDC__
33525# include <limits.h>
33526#else
33527# include <assert.h>
33528#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033529
33530#undef $ac_func
33531
Reid Spencera773bd52006-08-04 18:18:08 +000033532/* Override any GCC internal prototype to avoid an error.
33533 Use char because int might match the return type of a GCC
33534 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033535#ifdef __cplusplus
33536extern "C"
33537#endif
John Criswell7a73b802003-06-30 21:59:07 +000033538char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033539/* The GNU C library defines this for functions which it implements
33540 to always fail with ENOSYS. Some functions are actually named
33541 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033542#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033543choke me
John Criswell7a73b802003-06-30 21:59:07 +000033544#endif
33545
John Criswell0c38eaf2003-09-10 15:17:25 +000033546int
33547main ()
33548{
Reid Spencera773bd52006-08-04 18:18:08 +000033549return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033550 ;
33551 return 0;
33552}
33553_ACEOF
33554rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033555if { (ac_try="$ac_link"
33556case "(($ac_try" in
33557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558 *) ac_try_echo=$ac_try;;
33559esac
33560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033562 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033563 grep -v '^ *+' conftest.er1 >conftest.err
33564 rm -f conftest.er1
33565 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33569 { (case "(($ac_try" in
33570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571 *) ac_try_echo=$ac_try;;
33572esac
33573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033575 ac_status=$?
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; } &&
33578 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033579 { (case "(($ac_try" in
33580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33581 *) ac_try_echo=$ac_try;;
33582esac
33583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33584 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033585 ac_status=$?
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); }; }; then
33588 eval "$as_ac_var=yes"
33589else
33590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033591sed 's/^/| /' conftest.$ac_ext >&5
33592
Reid Spencera773bd52006-08-04 18:18:08 +000033593 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033594fi
Reid Spencera773bd52006-08-04 18:18:08 +000033595
33596rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033597 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033598fi
Reid Spencera773bd52006-08-04 18:18:08 +000033599ac_res=`eval echo '${'$as_ac_var'}'`
33600 { echo "$as_me:$LINENO: result: $ac_res" >&5
33601echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033602if test `eval echo '${'$as_ac_var'}'` = yes; then
33603 cat >>confdefs.h <<_ACEOF
33604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33605_ACEOF
33606
33607fi
33608done
33609
Reid Spencera773bd52006-08-04 18:18:08 +000033610{ echo "$as_me:$LINENO: checking for working mmap" >&5
33611echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033612if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33614else
33615 if test "$cross_compiling" = yes; then
33616 ac_cv_func_mmap_fixed_mapped=no
33617else
33618 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033619/* confdefs.h. */
33620_ACEOF
33621cat confdefs.h >>conftest.$ac_ext
33622cat >>conftest.$ac_ext <<_ACEOF
33623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033624$ac_includes_default
33625/* malloc might have been renamed as rpl_malloc. */
33626#undef malloc
33627
33628/* Thanks to Mike Haertel and Jim Avera for this test.
33629 Here is a matrix of mmap possibilities:
33630 mmap private not fixed
33631 mmap private fixed at somewhere currently unmapped
33632 mmap private fixed at somewhere already mapped
33633 mmap shared not fixed
33634 mmap shared fixed at somewhere currently unmapped
33635 mmap shared fixed at somewhere already mapped
33636 For private mappings, we should verify that changes cannot be read()
33637 back from the file, nor mmap's back from the file at a different
33638 address. (There have been systems where private was not correctly
33639 implemented like the infamous i386 svr4.0, and systems where the
33640 VM page cache was not coherent with the file system buffer cache
33641 like early versions of FreeBSD and possibly contemporary NetBSD.)
33642 For shared mappings, we should conversely verify that changes get
33643 propagated back to all the places they're supposed to be.
33644
33645 Grep wants private fixed already mapped.
33646 The main things grep needs to know about mmap are:
33647 * does it exist and is it safe to write into the mmap'd area
33648 * how to use it (BSD variants) */
33649
33650#include <fcntl.h>
33651#include <sys/mman.h>
33652
33653#if !STDC_HEADERS && !HAVE_STDLIB_H
33654char *malloc ();
33655#endif
33656
33657/* This mess was copied from the GNU getpagesize.h. */
33658#if !HAVE_GETPAGESIZE
33659/* Assume that all systems that can run configure have sys/param.h. */
33660# if !HAVE_SYS_PARAM_H
33661# define HAVE_SYS_PARAM_H 1
33662# endif
33663
33664# ifdef _SC_PAGESIZE
33665# define getpagesize() sysconf(_SC_PAGESIZE)
33666# else /* no _SC_PAGESIZE */
33667# if HAVE_SYS_PARAM_H
33668# include <sys/param.h>
33669# ifdef EXEC_PAGESIZE
33670# define getpagesize() EXEC_PAGESIZE
33671# else /* no EXEC_PAGESIZE */
33672# ifdef NBPG
33673# define getpagesize() NBPG * CLSIZE
33674# ifndef CLSIZE
33675# define CLSIZE 1
33676# endif /* no CLSIZE */
33677# else /* no NBPG */
33678# ifdef NBPC
33679# define getpagesize() NBPC
33680# else /* no NBPC */
33681# ifdef PAGESIZE
33682# define getpagesize() PAGESIZE
33683# endif /* PAGESIZE */
33684# endif /* no NBPC */
33685# endif /* no NBPG */
33686# endif /* no EXEC_PAGESIZE */
33687# else /* no HAVE_SYS_PARAM_H */
33688# define getpagesize() 8192 /* punt totally */
33689# endif /* no HAVE_SYS_PARAM_H */
33690# endif /* no _SC_PAGESIZE */
33691
33692#endif /* no HAVE_GETPAGESIZE */
33693
33694int
33695main ()
33696{
33697 char *data, *data2, *data3;
33698 int i, pagesize;
33699 int fd;
33700
33701 pagesize = getpagesize ();
33702
33703 /* First, make a file with some known garbage in it. */
33704 data = (char *) malloc (pagesize);
33705 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033706 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033707 for (i = 0; i < pagesize; ++i)
33708 *(data + i) = rand ();
33709 umask (0);
33710 fd = creat ("conftest.mmap", 0600);
33711 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033712 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033713 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033714 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033715 close (fd);
33716
33717 /* Next, try to mmap the file at a fixed address which already has
33718 something else allocated at it. If we can, also make sure that
33719 we see the same garbage. */
33720 fd = open ("conftest.mmap", O_RDWR);
33721 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033722 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033723 data2 = (char *) malloc (2 * pagesize);
33724 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033725 return 1;
33726 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033727 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033728 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033729 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033730 for (i = 0; i < pagesize; ++i)
33731 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033732 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033733
33734 /* Finally, make sure that changes to the mapped area do not
33735 percolate back to the file as seen by read(). (This is a bug on
33736 some variants of i386 svr4.0.) */
33737 for (i = 0; i < pagesize; ++i)
33738 *(data2 + i) = *(data2 + i) + 1;
33739 data3 = (char *) malloc (pagesize);
33740 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033741 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033742 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033743 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033744 for (i = 0; i < pagesize; ++i)
33745 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033746 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033747 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033748 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033749}
33750_ACEOF
33751rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033752if { (ac_try="$ac_link"
33753case "(($ac_try" in
33754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755 *) ac_try_echo=$ac_try;;
33756esac
33757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033759 ac_status=$?
33760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033762 { (case "(($ac_try" in
33763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33764 *) ac_try_echo=$ac_try;;
33765esac
33766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33767 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033768 ac_status=$?
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); }; }; then
33771 ac_cv_func_mmap_fixed_mapped=yes
33772else
33773 echo "$as_me: program exited with status $ac_status" >&5
33774echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033775sed 's/^/| /' conftest.$ac_ext >&5
33776
John Criswell7a73b802003-06-30 21:59:07 +000033777( exit $ac_status )
33778ac_cv_func_mmap_fixed_mapped=no
33779fi
Reid Spencera773bd52006-08-04 18:18:08 +000033780rm -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 +000033781fi
Reid Spencera773bd52006-08-04 18:18:08 +000033782
33783
John Criswell7a73b802003-06-30 21:59:07 +000033784fi
Reid Spencera773bd52006-08-04 18:18:08 +000033785{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33786echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033787if test $ac_cv_func_mmap_fixed_mapped = yes; then
33788
33789cat >>confdefs.h <<\_ACEOF
33790#define HAVE_MMAP 1
33791_ACEOF
33792
33793fi
33794rm -f conftest.mmap
33795
Reid Spencer30fe5262007-01-20 07:48:49 +000033796 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033797echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033798if test "${ac_cv_func_mmap_file+set}" = set; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33800else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033801 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033802ac_cpp='$CPP $CPPFLAGS'
33803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33805ac_compiler_gnu=$ac_cv_c_compiler_gnu
33806
33807 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033808 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033809else
33810 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033811
Reid Spencer777ce172004-09-20 04:09:56 +000033812 /* confdefs.h. */
33813_ACEOF
33814cat confdefs.h >>conftest.$ac_ext
33815cat >>conftest.$ac_ext <<_ACEOF
33816/* end confdefs.h. */
33817
John Criswell7a73b802003-06-30 21:59:07 +000033818#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033819#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033820#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033821
33822int
33823main ()
33824{
John Criswell7a73b802003-06-30 21:59:07 +000033825
33826 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033827 fd = creat ("foo",0777);
33828 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33829 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033830 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033831 ;
33832 return 0;
33833}
John Criswell7a73b802003-06-30 21:59:07 +000033834_ACEOF
33835rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033836if { (ac_try="$ac_link"
33837case "(($ac_try" in
33838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33839 *) ac_try_echo=$ac_try;;
33840esac
33841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033846 { (case "(($ac_try" in
33847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33848 *) ac_try_echo=$ac_try;;
33849esac
33850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33851 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033852 ac_status=$?
33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); }; }; then
33855 ac_cv_func_mmap_file=yes
33856else
33857 echo "$as_me: program exited with status $ac_status" >&5
33858echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033859sed 's/^/| /' conftest.$ac_ext >&5
33860
John Criswell7a73b802003-06-30 21:59:07 +000033861( exit $ac_status )
33862ac_cv_func_mmap_file=no
33863fi
Reid Spencera773bd52006-08-04 18:18:08 +000033864rm -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 +000033865fi
Reid Spencera773bd52006-08-04 18:18:08 +000033866
33867
John Criswell7a73b802003-06-30 21:59:07 +000033868 ac_ext=c
33869ac_cpp='$CPP $CPPFLAGS'
33870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33872ac_compiler_gnu=$ac_cv_c_compiler_gnu
33873
33874
33875fi
Reid Spencera773bd52006-08-04 18:18:08 +000033876{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33877echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033878if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033879
33880cat >>confdefs.h <<\_ACEOF
33881#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033882_ACEOF
33883
33884 MMAP_FILE=yes
33885
33886fi
33887
Reid Spencer30fe5262007-01-20 07:48:49 +000033888 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033889echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033890if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33891 echo $ECHO_N "(cached) $ECHO_C" >&6
33892else
Reid Spencer582a23c2004-12-29 07:07:57 +000033893 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033894 ac_cv_need_dev_zero_for_mmap=yes
33895 else
33896 ac_cv_need_dev_zero_for_mmap=no
33897 fi
33898
33899fi
Reid Spencera773bd52006-08-04 18:18:08 +000033900{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33901echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033902if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33903
33904cat >>confdefs.h <<\_ACEOF
33905#define NEED_DEV_ZERO_FOR_MMAP 1
33906_ACEOF
33907
33908fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033909
Reid Spencer30fe5262007-01-20 07:48:49 +000033910 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33911 then
33912 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033913echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033914 fi
33915 if test "$ac_cv_func_mmap_file" = "no"
33916 then
33917 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033918echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033919 fi
John Criswellb13092b2003-07-22 21:00:24 +000033920fi
John Criswell7a73b802003-06-30 21:59:07 +000033921
33922
Reid Spencer9372f152007-07-30 20:13:24 +000033923
33924for ac_func in __dso_handle
33925do
33926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33927{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33929if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33930 echo $ECHO_N "(cached) $ECHO_C" >&6
33931else
33932 cat >conftest.$ac_ext <<_ACEOF
33933/* confdefs.h. */
33934_ACEOF
33935cat confdefs.h >>conftest.$ac_ext
33936cat >>conftest.$ac_ext <<_ACEOF
33937/* end confdefs.h. */
33938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33940#define $ac_func innocuous_$ac_func
33941
33942/* System header to define __stub macros and hopefully few prototypes,
33943 which can conflict with char $ac_func (); below.
33944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33945 <limits.h> exists even on freestanding compilers. */
33946
33947#ifdef __STDC__
33948# include <limits.h>
33949#else
33950# include <assert.h>
33951#endif
33952
33953#undef $ac_func
33954
33955/* Override any GCC internal prototype to avoid an error.
33956 Use char because int might match the return type of a GCC
33957 builtin and then its argument prototype would still apply. */
33958#ifdef __cplusplus
33959extern "C"
33960#endif
33961char $ac_func ();
33962/* The GNU C library defines this for functions which it implements
33963 to always fail with ENOSYS. Some functions are actually named
33964 something starting with __ and the normal name is an alias. */
33965#if defined __stub_$ac_func || defined __stub___$ac_func
33966choke me
33967#endif
33968
33969int
33970main ()
33971{
33972return $ac_func ();
33973 ;
33974 return 0;
33975}
33976_ACEOF
33977rm -f conftest.$ac_objext conftest$ac_exeext
33978if { (ac_try="$ac_link"
33979case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33982esac
33983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_link") 2>conftest.er1
33985 ac_status=$?
33986 grep -v '^ *+' conftest.er1 >conftest.err
33987 rm -f conftest.er1
33988 cat conftest.err >&5
33989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990 (exit $ac_status); } &&
33991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33992 { (case "(($ac_try" in
33993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994 *) ac_try_echo=$ac_try;;
33995esac
33996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997 (eval "$ac_try") 2>&5
33998 ac_status=$?
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); }; } &&
34001 { ac_try='test -s conftest$ac_exeext'
34002 { (case "(($ac_try" in
34003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34004 *) ac_try_echo=$ac_try;;
34005esac
34006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34007 (eval "$ac_try") 2>&5
34008 ac_status=$?
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); }; }; then
34011 eval "$as_ac_var=yes"
34012else
34013 echo "$as_me: failed program was:" >&5
34014sed 's/^/| /' conftest.$ac_ext >&5
34015
34016 eval "$as_ac_var=no"
34017fi
34018
34019rm -f core conftest.err conftest.$ac_objext \
34020 conftest$ac_exeext conftest.$ac_ext
34021fi
34022ac_res=`eval echo '${'$as_ac_var'}'`
34023 { echo "$as_me:$LINENO: result: $ac_res" >&5
34024echo "${ECHO_T}$ac_res" >&6; }
34025if test `eval echo '${'$as_ac_var'}'` = yes; then
34026 cat >>confdefs.h <<_ACEOF
34027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34028_ACEOF
34029
34030fi
34031done
34032
34033
Reid Spencera773bd52006-08-04 18:18:08 +000034034{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34035echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034036if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34038else
34039 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034040if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034041 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034042 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34043 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034044 if test $? -eq 0 ; then
34045 llvm_cv_llvmgcc_sanity="yes"
34046 fi
34047 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034048fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034049fi
Reid Spencera773bd52006-08-04 18:18:08 +000034050{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34051echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034052
34053if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034054 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34055echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034056 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034057 LLVMCC1=$llvmcc1path
34058
Reid Spencer502935f2004-12-22 05:56:56 +000034059 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034060 LLVMCC1PLUS=$llvmcc1pluspath
34061
Reid Spencer502935f2004-12-22 05:56:56 +000034062 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34063 LLVMGCCDIR=$llvmgccdir
34064
Reid Spencer282d8c12006-12-21 22:55:41 +000034065 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34066 LLVMGCCLIBEXEC=$llvmgcclibexec
34067
Reid Spencerb5d75b82006-05-09 00:31:01 +000034068 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034069 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34070 LLVMGCC_VERSION=$llvmgccversion
34071
34072 LLVMGCC_MAJVERS=$llvmgccmajvers
34073
Reid Spencer0d238182007-04-21 21:28:52 +000034074 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34075 LLVMGCC_LANGS=$llvmgcclangs
34076
34077 { echo "$as_me:$LINENO: result: ok" >&5
34078echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034079fi
34080
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034081SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034082
34083
Reid Spencere9de0912004-08-20 09:03:57 +000034084# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034085# information into substitutions that will end up in Makefile.config.in
34086# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034087if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034088 prefix="/usr/local"
34089fi
Reid Spencere9de0912004-08-20 09:03:57 +000034090eval LLVM_PREFIX="${prefix}";
34091eval LLVM_BINDIR="${prefix}/bin";
34092eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034093eval LLVM_DATADIR="${prefix}/share/llvm";
34094eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34095eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034096eval LLVM_INCLUDEDIR="${prefix}/include";
34097eval LLVM_INFODIR="${prefix}/info";
34098eval LLVM_MANDIR="${prefix}/man";
34099LLVM_CONFIGTIME=`date`
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034111# Place the various directores into the config.h file as #defines so that we
34112# can know about the installation paths within LLVM.
34113
Reid Spencere9de0912004-08-20 09:03:57 +000034114cat >>confdefs.h <<_ACEOF
34115#define LLVM_PREFIX "$LLVM_PREFIX"
34116_ACEOF
34117
34118
34119cat >>confdefs.h <<_ACEOF
34120#define LLVM_BINDIR "$LLVM_BINDIR"
34121_ACEOF
34122
34123
34124cat >>confdefs.h <<_ACEOF
34125#define LLVM_LIBDIR "$LLVM_LIBDIR"
34126_ACEOF
34127
34128
34129cat >>confdefs.h <<_ACEOF
34130#define LLVM_DATADIR "$LLVM_DATADIR"
34131_ACEOF
34132
34133
34134cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034135#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034136_ACEOF
34137
34138
34139cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034140#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034141_ACEOF
34142
34143
34144cat >>confdefs.h <<_ACEOF
34145#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34146_ACEOF
34147
34148
34149cat >>confdefs.h <<_ACEOF
34150#define LLVM_INFODIR "$LLVM_INFODIR"
34151_ACEOF
34152
34153
34154cat >>confdefs.h <<_ACEOF
34155#define LLVM_MANDIR "$LLVM_MANDIR"
34156_ACEOF
34157
34158
34159cat >>confdefs.h <<_ACEOF
34160#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34161_ACEOF
34162
34163
Eric Christopher790e11c2007-12-01 00:34:39 +000034164cat >>confdefs.h <<_ACEOF
34165#define LLVM_HOSTTRIPLE "$host"
34166_ACEOF
34167
34168
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034169# Determine which bindings to build.
34170if test "$BINDINGS_TO_BUILD" = auto ; then
34171 BINDINGS_TO_BUILD=""
34172 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34173 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34174 fi
34175fi
34176BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34177
34178
34179# This isn't really configurey, but it avoids having to repeat the list in
34180# other files.
34181ALL_BINDINGS=ocaml
34182
34183
Gordon Henriksenf0915682007-10-02 16:42:22 +000034184# Do any work necessary to ensure that bindings have what they need.
34185binding_prereqs_failed=0
34186for a_binding in $BINDINGS_TO_BUILD ; do
34187 case "$a_binding" in
34188 ocaml)
34189 if test "x$OCAMLC" = x ; then
34190 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34191echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34192 binding_prereqs_failed=1
34193 fi
34194 if test "x$OCAMLDEP" = x ; then
34195 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34196echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34197 binding_prereqs_failed=1
34198 fi
34199 if test "x$OCAMLOPT" = x ; then
34200 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34201echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34202 fi
34203 if test "x$with_ocaml_libdir" != xauto ; then
34204 OCAML_LIBDIR=$with_ocaml_libdir
34205
34206 else
34207 ocaml_stdlib="`"$OCAMLC" -where`"
34208 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34209 then
34210 # ocaml stdlib is beneath our prefix; use stdlib
34211 OCAML_LIBDIR=$ocaml_stdlib
34212
34213 else
34214 # ocaml stdlib is outside our prefix; use libdir/ocaml
34215 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34216
34217 fi
34218 fi
34219 ;;
34220 esac
34221done
34222if test "$binding_prereqs_failed" = 1 ; then
34223 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34224echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34225 { (exit 1); exit 1; }; }
34226fi
34227
34228
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034229
Reid Spencera773bd52006-08-04 18:18:08 +000034230ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034231
Reid Spencera773bd52006-08-04 18:18:08 +000034232ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034233
Reid Spencera773bd52006-08-04 18:18:08 +000034234ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034235
Reid Spencera773bd52006-08-04 18:18:08 +000034236ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034237
Reid Spencera773bd52006-08-04 18:18:08 +000034238ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034239
34240
Reid Spencera773bd52006-08-04 18:18:08 +000034241ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034242
34243
Reid Spencerea949cf2006-08-16 00:45:38 +000034244ac_config_files="$ac_config_files llvm.spec"
34245
34246
Reid Spencera773bd52006-08-04 18:18:08 +000034247ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034248
34249
Reid Spencera773bd52006-08-04 18:18:08 +000034250ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034251
34252
Reid Spencera773bd52006-08-04 18:18:08 +000034253ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034254
Reid Spencera773bd52006-08-04 18:18:08 +000034255ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034256
34257
Reid Spencera773bd52006-08-04 18:18:08 +000034258ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034259
34260
Reid Spencera773bd52006-08-04 18:18:08 +000034261ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034262
34263
Reid Spencera773bd52006-08-04 18:18:08 +000034264ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034265
34266
Reid Spencer8b2e1412006-11-17 03:32:33 +000034267ac_config_commands="$ac_config_commands runtime/Makefile"
34268
34269
Reid Spencera773bd52006-08-04 18:18:08 +000034270ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034271
34272
Reid Spencera773bd52006-08-04 18:18:08 +000034273ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034274
34275
Reid Spencera773bd52006-08-04 18:18:08 +000034276ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034277
34278
Reid Spencera773bd52006-08-04 18:18:08 +000034279ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034280
34281
Reid Spencera773bd52006-08-04 18:18:08 +000034282ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034283
34284
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034285ac_config_commands="$ac_config_commands bindings/Makefile"
34286
34287
34288ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34289
34290
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034291
John Criswell7a73b802003-06-30 21:59:07 +000034292cat >confcache <<\_ACEOF
34293# This file is a shell script that caches the results of configure
34294# tests run on this system so they can be shared between configure
34295# scripts and configure runs, see configure's option --config-cache.
34296# It is not useful on other systems. If it contains results you don't
34297# want to keep, you may remove or edit it.
34298#
34299# config.status only pays attention to the cache file if you give it
34300# the --recheck option to rerun configure.
34301#
John Criswell0c38eaf2003-09-10 15:17:25 +000034302# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034303# loading this file, other *unset* `ac_cv_foo' will be assigned the
34304# following values.
34305
34306_ACEOF
34307
34308# The following way of writing the cache mishandles newlines in values,
34309# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034310# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034311# Ultrix sh set writes to stderr and can't be redirected directly,
34312# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034313(
34314 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34315 eval ac_val=\$$ac_var
34316 case $ac_val in #(
34317 *${as_nl}*)
34318 case $ac_var in #(
34319 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34320echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34321 esac
34322 case $ac_var in #(
34323 _ | IFS | as_nl) ;; #(
34324 *) $as_unset $ac_var ;;
34325 esac ;;
34326 esac
34327 done
34328
John Criswell7a73b802003-06-30 21:59:07 +000034329 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034330 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34331 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034332 # `set' does not quote correctly, so add quotes (double-quote
34333 # substitution turns \\\\ into \\, and sed turns \\ into \).
34334 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034335 "s/'/'\\\\''/g;
34336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034337 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034338 *)
34339 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034341 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034342 esac |
34343 sort
34344) |
John Criswell7a73b802003-06-30 21:59:07 +000034345 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034346 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034347 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034348 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34350 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034351 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34352 :end' >>confcache
34353if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34354 if test -w "$cache_file"; then
34355 test "x$cache_file" != "x/dev/null" &&
34356 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34357echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034358 cat confcache >$cache_file
34359 else
Reid Spencera773bd52006-08-04 18:18:08 +000034360 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34361echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034362 fi
34363fi
34364rm -f confcache
34365
34366test "x$prefix" = xNONE && prefix=$ac_default_prefix
34367# Let make expand exec_prefix.
34368test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34369
John Criswell7a73b802003-06-30 21:59:07 +000034370DEFS=-DHAVE_CONFIG_H
34371
John Criswell0c38eaf2003-09-10 15:17:25 +000034372ac_libobjs=
34373ac_ltlibobjs=
34374for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34375 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034376 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34377 ac_i=`echo "$ac_i" | sed "$ac_script"`
34378 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34379 # will be set to the directory where LIBOBJS objects are built.
34380 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34381 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034382done
34383LIBOBJS=$ac_libobjs
34384
34385LTLIBOBJS=$ac_ltlibobjs
34386
34387
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034388if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34389 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34390Usually this means the macro was only invoked conditionally." >&5
34391echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34392Usually this means the macro was only invoked conditionally." >&2;}
34393 { (exit 1); exit 1; }; }
34394fi
34395if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34396 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34397Usually this means the macro was only invoked conditionally." >&5
34398echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34399Usually this means the macro was only invoked conditionally." >&2;}
34400 { (exit 1); exit 1; }; }
34401fi
John Criswell7a73b802003-06-30 21:59:07 +000034402
34403: ${CONFIG_STATUS=./config.status}
34404ac_clean_files_save=$ac_clean_files
34405ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34406{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34407echo "$as_me: creating $CONFIG_STATUS" >&6;}
34408cat >$CONFIG_STATUS <<_ACEOF
34409#! $SHELL
34410# Generated by $as_me.
34411# Run this file to recreate the current configuration.
34412# Compiler output produced by configure, useful for debugging
34413# configure, is in config.log if it exists.
34414
34415debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034416ac_cs_recheck=false
34417ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034418SHELL=\${CONFIG_SHELL-$SHELL}
34419_ACEOF
34420
34421cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034422## --------------------- ##
34423## M4sh Initialization. ##
34424## --------------------- ##
34425
34426# Be Bourne compatible
34427if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34428 emulate sh
34429 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034430 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34431 # is contrary to our usage. Disable this feature.
34432 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034433 setopt NO_GLOB_SUBST
34434else
34435 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034436fi
Reid Spencera773bd52006-08-04 18:18:08 +000034437BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000034438DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034439
John Criswell7a73b802003-06-30 21:59:07 +000034440
Reid Spencera773bd52006-08-04 18:18:08 +000034441# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034442# Avoid depending upon Character Ranges.
34443as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34444as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34445as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34446as_cr_digits='0123456789'
34447as_cr_alnum=$as_cr_Letters$as_cr_digits
34448
34449# The user is always right.
34450if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034451 echo "#! /bin/sh" >conf$$.sh
34452 echo "exit 0" >>conf$$.sh
34453 chmod +x conf$$.sh
34454 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034455 PATH_SEPARATOR=';'
34456 else
34457 PATH_SEPARATOR=:
34458 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034459 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034460fi
34461
Reid Spencera773bd52006-08-04 18:18:08 +000034462# Support unset when possible.
34463if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34464 as_unset=unset
34465else
34466 as_unset=false
34467fi
John Criswell7a73b802003-06-30 21:59:07 +000034468
Reid Spencera773bd52006-08-04 18:18:08 +000034469
34470# IFS
34471# We need space, tab and new line, in precisely that order. Quoting is
34472# there to prevent editors from complaining about space-tab.
34473# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34474# splitting by setting IFS to empty value.)
34475as_nl='
34476'
34477IFS=" "" $as_nl"
34478
34479# Find who we are. Look in the path if we contain no directory separator.
34480case $0 in
34481 *[\\/]* ) as_myself=$0 ;;
34482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034483for as_dir in $PATH
34484do
34485 IFS=$as_save_IFS
34486 test -z "$as_dir" && as_dir=.
34487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34488done
Reid Spencera773bd52006-08-04 18:18:08 +000034489IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034490
Reid Spencera773bd52006-08-04 18:18:08 +000034491 ;;
34492esac
34493# We did not find ourselves, most probably we were run as `sh COMMAND'
34494# in which case we are not to be found in the path.
34495if test "x$as_myself" = x; then
34496 as_myself=$0
34497fi
34498if test ! -f "$as_myself"; then
34499 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34500 { (exit 1); exit 1; }
34501fi
34502
34503# Work around bugs in pre-3.0 UWIN ksh.
34504for as_var in ENV MAIL MAILPATH
34505do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34506done
34507PS1='$ '
34508PS2='> '
34509PS4='+ '
34510
34511# NLS nuisances.
34512for as_var in \
34513 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34514 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34515 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034516do
Reid Spencera773bd52006-08-04 18:18:08 +000034517 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34518 eval $as_var=C; export $as_var
34519 else
34520 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34521 fi
34522done
34523
34524# Required to use basename.
34525if expr a : '\(a\)' >/dev/null 2>&1 &&
34526 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34527 as_expr=expr
34528else
34529 as_expr=false
34530fi
34531
34532if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34533 as_basename=basename
34534else
34535 as_basename=false
34536fi
34537
34538
34539# Name of the executable.
34540as_me=`$as_basename -- "$0" ||
34541$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34542 X"$0" : 'X\(//\)$' \| \
34543 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34544echo X/"$0" |
34545 sed '/^.*\/\([^/][^/]*\)\/*$/{
34546 s//\1/
34547 q
34548 }
34549 /^X\/\(\/\/\)$/{
34550 s//\1/
34551 q
34552 }
34553 /^X\/\(\/\).*/{
34554 s//\1/
34555 q
34556 }
34557 s/.*/./; q'`
34558
34559# CDPATH.
34560$as_unset CDPATH
34561
34562
34563
John Criswell7a73b802003-06-30 21:59:07 +000034564 as_lineno_1=$LINENO
34565 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034566 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034567 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034568
34569 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34570 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034571 # line-number line after each line using $LINENO; the second 'sed'
34572 # does the real work. The second script uses 'N' to pair each
34573 # line-number line with the line containing $LINENO, and appends
34574 # trailing '-' during substitution so that $LINENO is not a special
34575 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034576 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034577 # scripts with optimization help from Paolo Bonzini. Blame Lee
34578 # E. McMahon (1931-1989) for sed's syntax. :-)
34579 sed -n '
34580 p
34581 /[$]LINENO/=
34582 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034583 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034584 s/[$]LINENO.*/&-/
34585 t lineno
34586 b
34587 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034588 N
Reid Spencera773bd52006-08-04 18:18:08 +000034589 :loop
34590 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034591 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034592 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034593 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034594 chmod +x "$as_me.lineno" ||
34595 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034596 { (exit 1); exit 1; }; }
34597
34598 # Don't try to exec as it changes $[0], causing all sort of problems
34599 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034600 # original and so on. Autoconf is especially sensitive to this).
34601 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034602 # Exit status is that of the last command.
34603 exit
34604}
34605
34606
Reid Spencera773bd52006-08-04 18:18:08 +000034607if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34608 as_dirname=dirname
34609else
34610 as_dirname=false
34611fi
34612
34613ECHO_C= ECHO_N= ECHO_T=
34614case `echo -n x` in
34615-n*)
34616 case `echo 'x\c'` in
34617 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34618 *) ECHO_C='\c';;
34619 esac;;
34620*)
34621 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034622esac
34623
Reid Spencera773bd52006-08-04 18:18:08 +000034624if expr a : '\(a\)' >/dev/null 2>&1 &&
34625 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034626 as_expr=expr
34627else
34628 as_expr=false
34629fi
34630
34631rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034632if test -d conf$$.dir; then
34633 rm -f conf$$.dir/conf$$.file
34634else
34635 rm -f conf$$.dir
34636 mkdir conf$$.dir
34637fi
John Criswell7a73b802003-06-30 21:59:07 +000034638echo >conf$$.file
34639if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034640 as_ln_s='ln -s'
34641 # ... but there are two gotchas:
34642 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34643 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34644 # In both cases, we have to default to `cp -p'.
34645 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034646 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034647elif ln conf$$.file conf$$ 2>/dev/null; then
34648 as_ln_s=ln
34649else
34650 as_ln_s='cp -p'
34651fi
Reid Spencera773bd52006-08-04 18:18:08 +000034652rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34653rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034654
John Criswell0c38eaf2003-09-10 15:17:25 +000034655if mkdir -p . 2>/dev/null; then
34656 as_mkdir_p=:
34657else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034658 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034659 as_mkdir_p=false
34660fi
34661
Reid Spencera773bd52006-08-04 18:18:08 +000034662# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34663# systems may use methods other than mode bits to determine executability.
34664cat >conf$$.file <<_ASEOF
34665#! /bin/sh
34666exit 0
34667_ASEOF
34668chmod +x conf$$.file
34669if test -x conf$$.file >/dev/null 2>&1; then
34670 as_executable_p="test -x"
34671else
34672 as_executable_p=:
34673fi
34674rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034675
34676# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034677as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034678
34679# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034680as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034681
34682
John Criswell7a73b802003-06-30 21:59:07 +000034683exec 6>&1
34684
Reid Spencera773bd52006-08-04 18:18:08 +000034685# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034686# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034687# values after options handling.
34688ac_log="
Tanya Lattner5c709542007-09-14 01:24:13 +000034689This file was extended by llvm $as_me 2.2svn, which was
Reid Spencera773bd52006-08-04 18:18:08 +000034690generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034691
34692 CONFIG_FILES = $CONFIG_FILES
34693 CONFIG_HEADERS = $CONFIG_HEADERS
34694 CONFIG_LINKS = $CONFIG_LINKS
34695 CONFIG_COMMANDS = $CONFIG_COMMANDS
34696 $ $0 $@
34697
Reid Spencera773bd52006-08-04 18:18:08 +000034698on `(hostname || uname -n) 2>/dev/null | sed 1q`
34699"
34700
John Criswell7a73b802003-06-30 21:59:07 +000034701_ACEOF
34702
Reid Spencera773bd52006-08-04 18:18:08 +000034703cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034704# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034705config_files="$ac_config_files"
34706config_headers="$ac_config_headers"
34707config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034708
Reid Spencera773bd52006-08-04 18:18:08 +000034709_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034710
34711cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034712ac_cs_usage="\
34713\`$as_me' instantiates files from templates according to the
34714current configuration.
34715
34716Usage: $0 [OPTIONS] [FILE]...
34717
34718 -h, --help print this help, then exit
34719 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034720 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034721 -d, --debug don't remove temporary files
34722 --recheck update $as_me by reconfiguring in the same conditions
34723 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034724 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034725 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034726 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034727
34728Configuration files:
34729$config_files
34730
34731Configuration headers:
34732$config_headers
34733
John Criswellc764fbc2003-09-06 15:17:13 +000034734Configuration commands:
34735$config_commands
34736
John Criswell7a73b802003-06-30 21:59:07 +000034737Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034738
Reid Spencera773bd52006-08-04 18:18:08 +000034739_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034740cat >>$CONFIG_STATUS <<_ACEOF
34741ac_cs_version="\\
Tanya Lattner5c709542007-09-14 01:24:13 +000034742llvm config.status 2.2svn
Reid Spencera773bd52006-08-04 18:18:08 +000034743configured by $0, generated by GNU Autoconf 2.60,
34744 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034745
Reid Spencera773bd52006-08-04 18:18:08 +000034746Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034747This config.status script is free software; the Free Software Foundation
34748gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034749
34750ac_pwd='$ac_pwd'
34751srcdir='$srcdir'
34752INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034753_ACEOF
34754
34755cat >>$CONFIG_STATUS <<\_ACEOF
34756# If no file are specified by the user, then we need to provide default
34757# value. By we need to know if files were specified by the user.
34758ac_need_defaults=:
34759while test $# != 0
34760do
34761 case $1 in
34762 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34764 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034765 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034767 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034768 ac_option=$1
34769 ac_optarg=$2
34770 ac_shift=shift
34771 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034772 esac
34773
John Criswell0c38eaf2003-09-10 15:17:25 +000034774 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034775 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34777 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034778 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34779 echo "$ac_cs_version"; exit ;;
34780 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034781 debug=: ;;
34782 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034783 $ac_shift
34784 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034785 ac_need_defaults=false;;
34786 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034787 $ac_shift
34788 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034789 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034790 --he | --h)
34791 # Conflict between --help and --header
34792 { echo "$as_me: error: ambiguous option: $1
34793Try \`$0 --help' for more information." >&2
34794 { (exit 1); exit 1; }; };;
34795 --help | --hel | -h )
34796 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34798 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34799 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034800
34801 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034802 -*) { echo "$as_me: error: unrecognized option: $1
34803Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034804 { (exit 1); exit 1; }; } ;;
34805
Reid Spencera773bd52006-08-04 18:18:08 +000034806 *) ac_config_targets="$ac_config_targets $1"
34807 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034808
34809 esac
34810 shift
34811done
34812
John Criswell0c38eaf2003-09-10 15:17:25 +000034813ac_configure_extra_args=
34814
34815if $ac_cs_silent; then
34816 exec 6>/dev/null
34817 ac_configure_extra_args="$ac_configure_extra_args --silent"
34818fi
34819
34820_ACEOF
34821cat >>$CONFIG_STATUS <<_ACEOF
34822if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034823 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34824 CONFIG_SHELL=$SHELL
34825 export CONFIG_SHELL
34826 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034827fi
34828
John Criswell7a73b802003-06-30 21:59:07 +000034829_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034830cat >>$CONFIG_STATUS <<\_ACEOF
34831exec 5>>config.log
34832{
34833 echo
34834 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34835## Running $as_me. ##
34836_ASBOX
34837 echo "$ac_log"
34838} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034839
Reid Spencera773bd52006-08-04 18:18:08 +000034840_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034841cat >>$CONFIG_STATUS <<_ACEOF
34842#
Reid Spencera773bd52006-08-04 18:18:08 +000034843# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034844#
Reid Spencerc0682832005-02-24 19:05:19 +000034845llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034846
34847_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034848
John Criswell7a73b802003-06-30 21:59:07 +000034849cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034850
34851# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034852for ac_config_target in $ac_config_targets
34853do
Reid Spencera773bd52006-08-04 18:18:08 +000034854 case $ac_config_target in
34855 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34856 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34857 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34858 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34859 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34860 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034861 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034862 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34863 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34864 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34865 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34866 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34867 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34868 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034869 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034870 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34871 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34872 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34873 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34874 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034875 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34876 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034877
John Criswell7a73b802003-06-30 21:59:07 +000034878 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34879echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34880 { (exit 1); exit 1; }; };;
34881 esac
34882done
34883
Reid Spencera773bd52006-08-04 18:18:08 +000034884
John Criswell7a73b802003-06-30 21:59:07 +000034885# If the user did not use the arguments to specify the items to instantiate,
34886# then the envvar interface is used. Set only those that are not.
34887# We use the long form for the default assignment because of an extremely
34888# bizarre bug on SunOS 4.1.3.
34889if $ac_need_defaults; then
34890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034892 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034893fi
34894
John Criswell0c38eaf2003-09-10 15:17:25 +000034895# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034896# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034897# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034898# Hook for its removal unless debugging.
34899# Note that there is a small window in which the directory will not be cleaned:
34900# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034901$debug ||
34902{
Reid Spencera773bd52006-08-04 18:18:08 +000034903 tmp=
34904 trap 'exit_status=$?
34905 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34906' 0
John Criswell7a73b802003-06-30 21:59:07 +000034907 trap '{ (exit 1); exit 1; }' 1 2 13 15
34908}
John Criswell7a73b802003-06-30 21:59:07 +000034909# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034910
John Criswell7a73b802003-06-30 21:59:07 +000034911{
Reid Spencera773bd52006-08-04 18:18:08 +000034912 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034913 test -n "$tmp" && test -d "$tmp"
34914} ||
34915{
Reid Spencera773bd52006-08-04 18:18:08 +000034916 tmp=./conf$$-$RANDOM
34917 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034918} ||
34919{
John Criswell0c38eaf2003-09-10 15:17:25 +000034920 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034921 { (exit 1); exit 1; }
34922}
34923
John Criswell7a73b802003-06-30 21:59:07 +000034924#
Reid Spencera773bd52006-08-04 18:18:08 +000034925# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034926#
34927
34928# No need to generate the scripts if there are no CONFIG_FILES.
34929# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034930if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034931
34932_ACEOF
34933
Reid Spencera773bd52006-08-04 18:18:08 +000034934
34935
34936ac_delim='%!_!# '
34937for ac_last_try in false false false false false :; do
34938 cat >conf$$subs.sed <<_ACEOF
34939SHELL!$SHELL$ac_delim
34940PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34941PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34942PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34943PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34944PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34945PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34946exec_prefix!$exec_prefix$ac_delim
34947prefix!$prefix$ac_delim
34948program_transform_name!$program_transform_name$ac_delim
34949bindir!$bindir$ac_delim
34950sbindir!$sbindir$ac_delim
34951libexecdir!$libexecdir$ac_delim
34952datarootdir!$datarootdir$ac_delim
34953datadir!$datadir$ac_delim
34954sysconfdir!$sysconfdir$ac_delim
34955sharedstatedir!$sharedstatedir$ac_delim
34956localstatedir!$localstatedir$ac_delim
34957includedir!$includedir$ac_delim
34958oldincludedir!$oldincludedir$ac_delim
34959docdir!$docdir$ac_delim
34960infodir!$infodir$ac_delim
34961htmldir!$htmldir$ac_delim
34962dvidir!$dvidir$ac_delim
34963pdfdir!$pdfdir$ac_delim
34964psdir!$psdir$ac_delim
34965libdir!$libdir$ac_delim
34966localedir!$localedir$ac_delim
34967mandir!$mandir$ac_delim
34968DEFS!$DEFS$ac_delim
34969ECHO_C!$ECHO_C$ac_delim
34970ECHO_N!$ECHO_N$ac_delim
34971ECHO_T!$ECHO_T$ac_delim
34972LIBS!$LIBS$ac_delim
34973build_alias!$build_alias$ac_delim
34974host_alias!$host_alias$ac_delim
34975target_alias!$target_alias$ac_delim
34976LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34977subdirs!$subdirs$ac_delim
34978build!$build$ac_delim
34979build_cpu!$build_cpu$ac_delim
34980build_vendor!$build_vendor$ac_delim
34981build_os!$build_os$ac_delim
34982host!$host$ac_delim
34983host_cpu!$host_cpu$ac_delim
34984host_vendor!$host_vendor$ac_delim
34985host_os!$host_os$ac_delim
34986target!$target$ac_delim
34987target_cpu!$target_cpu$ac_delim
34988target_vendor!$target_vendor$ac_delim
34989target_os!$target_os$ac_delim
34990OS!$OS$ac_delim
34991LINKALL!$LINKALL$ac_delim
34992NOLINKALL!$NOLINKALL$ac_delim
34993LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34994LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34995ARCH!$ARCH$ac_delim
34996ENDIAN!$ENDIAN$ac_delim
34997CC!$CC$ac_delim
34998CFLAGS!$CFLAGS$ac_delim
34999LDFLAGS!$LDFLAGS$ac_delim
35000CPPFLAGS!$CPPFLAGS$ac_delim
35001ac_ct_CC!$ac_ct_CC$ac_delim
35002EXEEXT!$EXEEXT$ac_delim
35003OBJEXT!$OBJEXT$ac_delim
35004CPP!$CPP$ac_delim
35005GREP!$GREP$ac_delim
35006EGREP!$EGREP$ac_delim
35007LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35008BUILD_CC!$BUILD_CC$ac_delim
35009BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35010CVSBUILD!$CVSBUILD$ac_delim
35011ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35012DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035013ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35014EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035015DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035016JIT!$JIT$ac_delim
35017TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35018ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35019ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035020ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035021TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035022ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035023EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35024CXX!$CXX$ac_delim
35025CXXFLAGS!$CXXFLAGS$ac_delim
35026ac_ct_CXX!$ac_ct_CXX$ac_delim
35027LEX!$LEX$ac_delim
35028LEXLIB!$LEXLIB$ac_delim
35029LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35030FLEX!$FLEX$ac_delim
35031YACC!$YACC$ac_delim
35032YFLAGS!$YFLAGS$ac_delim
35033BISON!$BISON$ac_delim
35034NM!$NM$ac_delim
35035ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035036_ACEOF
35037
35038 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35039 break
35040 elif $ac_last_try; then
35041 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35042echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35043 { (exit 1); exit 1; }; }
35044 else
35045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035046 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035047done
35048
35049ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35050if test -n "$ac_eof"; then
35051 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35052 ac_eof=`expr $ac_eof + 1`
35053fi
35054
35055cat >>$CONFIG_STATUS <<_ACEOF
35056cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35057/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35058_ACEOF
35059sed '
35060s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35061s/^/s,@/; s/!/@,|#_!!_#|/
35062:n
35063t n
35064s/'"$ac_delim"'$/,g/; t
35065s/$/\\/; p
35066N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35067' >>$CONFIG_STATUS <conf$$subs.sed
35068rm -f conf$$subs.sed
35069cat >>$CONFIG_STATUS <<_ACEOF
35070CEOF$ac_eof
35071_ACEOF
35072
35073
35074ac_delim='%!_!# '
35075for ac_last_try in false false false false false :; do
35076 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000035077LN_S!$LN_S$ac_delim
35078CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035079CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035080DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035081FIND!$FIND$ac_delim
35082MKDIR!$MKDIR$ac_delim
35083MV!$MV$ac_delim
35084RANLIB!$RANLIB$ac_delim
35085RM!$RM$ac_delim
35086SED!$SED$ac_delim
35087TAR!$TAR$ac_delim
35088BINPWD!$BINPWD$ac_delim
35089GRAPHVIZ!$GRAPHVIZ$ac_delim
35090DOT!$DOT$ac_delim
35091GV!$GV$ac_delim
35092DOTTY!$DOTTY$ac_delim
35093PERL!$PERL$ac_delim
35094HAVE_PERL!$HAVE_PERL$ac_delim
35095INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35096INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35097INSTALL_DATA!$INSTALL_DATA$ac_delim
35098BZIP2!$BZIP2$ac_delim
35099DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035100GROFF!$GROFF$ac_delim
35101GZIP!$GZIP$ac_delim
35102POD2HTML!$POD2HTML$ac_delim
35103POD2MAN!$POD2MAN$ac_delim
35104RUNTEST!$RUNTEST$ac_delim
35105TCLSH!$TCLSH$ac_delim
35106ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035107OCAMLC!$OCAMLC$ac_delim
35108OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035109OCAMLDEP!$OCAMLDEP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035110INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35111INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35112CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35113CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35114LIBADD_DL!$LIBADD_DL$ac_delim
35115ECHO!$ECHO$ac_delim
35116AR!$AR$ac_delim
35117STRIP!$STRIP$ac_delim
35118CXXCPP!$CXXCPP$ac_delim
35119F77!$F77$ac_delim
35120FFLAGS!$FFLAGS$ac_delim
35121ac_ct_F77!$ac_ct_F77$ac_delim
35122LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035123LLVMGCC!$LLVMGCC$ac_delim
35124LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035125USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035126HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035127HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035128ALLOCA!$ALLOCA$ac_delim
35129MMAP_FILE!$MMAP_FILE$ac_delim
35130LLVMCC1!$LLVMCC1$ac_delim
35131LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35132LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035133LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035134LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35135LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035136LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035137SHLIBEXT!$SHLIBEXT$ac_delim
35138LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35139LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35140LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35141LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35142LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35143LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35144LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35145LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35146LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35147LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035148BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35149ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035150OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035151LIBOBJS!$LIBOBJS$ac_delim
35152LTLIBOBJS!$LTLIBOBJS$ac_delim
35153_ACEOF
35154
Gordon Henriksenf0915682007-10-02 16:42:22 +000035155 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Reid Spencera773bd52006-08-04 18:18:08 +000035156 break
35157 elif $ac_last_try; then
35158 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35159echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35160 { (exit 1); exit 1; }; }
35161 else
35162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35163 fi
35164done
35165
35166ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35167if test -n "$ac_eof"; then
35168 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35169 ac_eof=`expr $ac_eof + 1`
35170fi
35171
35172cat >>$CONFIG_STATUS <<_ACEOF
35173cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35174/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35175_ACEOF
35176sed '
35177s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35178s/^/s,@/; s/!/@,|#_!!_#|/
35179:n
35180t n
35181s/'"$ac_delim"'$/,g/; t
35182s/$/\\/; p
35183N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35184' >>$CONFIG_STATUS <conf$$subs.sed
35185rm -f conf$$subs.sed
35186cat >>$CONFIG_STATUS <<_ACEOF
35187:end
35188s/|#_!!_#|//g
35189CEOF$ac_eof
35190_ACEOF
35191
35192
35193# VPATH may cause trouble with some makes, so we remove $(srcdir),
35194# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35195# trailing colons and then remove the whole line if VPATH becomes empty
35196# (actually we leave an empty line to preserve line numbers).
35197if test "x$srcdir" = x.; then
35198 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35199s/:*\$(srcdir):*/:/
35200s/:*\${srcdir}:*/:/
35201s/:*@srcdir@:*/:/
35202s/^\([^=]*=[ ]*\):*/\1/
35203s/:*$//
35204s/^[^=]*=[ ]*$//
35205}'
35206fi
35207
35208cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035209fi # test -n "$CONFIG_FILES"
35210
Reid Spencera773bd52006-08-04 18:18:08 +000035211
35212for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35213do
35214 case $ac_tag in
35215 :[FHLC]) ac_mode=$ac_tag; continue;;
35216 esac
35217 case $ac_mode$ac_tag in
35218 :[FHL]*:*);;
35219 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35220echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35221 { (exit 1); exit 1; }; };;
35222 :[FH]-) ac_tag=-:-;;
35223 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35224 esac
35225 ac_save_IFS=$IFS
35226 IFS=:
35227 set x $ac_tag
35228 IFS=$ac_save_IFS
35229 shift
35230 ac_file=$1
35231 shift
35232
35233 case $ac_mode in
35234 :L) ac_source=$1;;
35235 :[FH])
35236 ac_file_inputs=
35237 for ac_f
35238 do
35239 case $ac_f in
35240 -) ac_f="$tmp/stdin";;
35241 *) # Look for the file first in the build tree, then in the source tree
35242 # (if the path is not absolute). The absolute path cannot be DOS-style,
35243 # because $ac_f cannot contain `:'.
35244 test -f "$ac_f" ||
35245 case $ac_f in
35246 [\\/$]*) false;;
35247 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35248 esac ||
35249 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35250echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35251 { (exit 1); exit 1; }; };;
35252 esac
35253 ac_file_inputs="$ac_file_inputs $ac_f"
35254 done
35255
35256 # Let's still pretend it is `configure' which instantiates (i.e., don't
35257 # use $as_me), people would be surprised to read:
35258 # /* config.h. Generated by config.status. */
35259 configure_input="Generated from "`IFS=:
35260 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35261 if test x"$ac_file" != x-; then
35262 configure_input="$ac_file. $configure_input"
35263 { echo "$as_me:$LINENO: creating $ac_file" >&5
35264echo "$as_me: creating $ac_file" >&6;}
35265 fi
35266
35267 case $ac_tag in
35268 *:-:* | *:-) cat >"$tmp/stdin";;
35269 esac
35270 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035271 esac
35272
Reid Spencera773bd52006-08-04 18:18:08 +000035273 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035274$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035275 X"$ac_file" : 'X\(//\)[^/]' \| \
35276 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035277 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035278echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35280 s//\1/
35281 q
35282 }
35283 /^X\(\/\/\)[^/].*/{
35284 s//\1/
35285 q
35286 }
35287 /^X\(\/\/\)$/{
35288 s//\1/
35289 q
35290 }
35291 /^X\(\/\).*/{
35292 s//\1/
35293 q
35294 }
35295 s/.*/./; q'`
35296 { as_dir="$ac_dir"
35297 case $as_dir in #(
35298 -*) as_dir=./$as_dir;;
35299 esac
35300 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035301 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035302 while :; do
35303 case $as_dir in #(
35304 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35305 *) as_qdir=$as_dir;;
35306 esac
35307 as_dirs="'$as_qdir' $as_dirs"
35308 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035309$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035310 X"$as_dir" : 'X\(//\)[^/]' \| \
35311 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035312 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035313echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35315 s//\1/
35316 q
35317 }
35318 /^X\(\/\/\)[^/].*/{
35319 s//\1/
35320 q
35321 }
35322 /^X\(\/\/\)$/{
35323 s//\1/
35324 q
35325 }
35326 /^X\(\/\).*/{
35327 s//\1/
35328 q
35329 }
35330 s/.*/./; q'`
35331 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035332 done
Reid Spencera773bd52006-08-04 18:18:08 +000035333 test -z "$as_dirs" || eval "mkdir $as_dirs"
35334 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35335echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035336 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035337 ac_builddir=.
35338
Reid Spencera773bd52006-08-04 18:18:08 +000035339case "$ac_dir" in
35340.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35341*)
John Criswell7a73b802003-06-30 21:59:07 +000035342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035343 # A ".." for each directory in $ac_dir_suffix.
35344 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35345 case $ac_top_builddir_sub in
35346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35348 esac ;;
35349esac
35350ac_abs_top_builddir=$ac_pwd
35351ac_abs_builddir=$ac_pwd$ac_dir_suffix
35352# for backward compatibility:
35353ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035354
35355case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035356 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035357 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035358 ac_top_srcdir=$ac_top_builddir_sub
35359 ac_abs_top_srcdir=$ac_pwd ;;
35360 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035361 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035362 ac_top_srcdir=$srcdir
35363 ac_abs_top_srcdir=$srcdir ;;
35364 *) # Relative name.
35365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35366 ac_top_srcdir=$ac_top_build_prefix$srcdir
35367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035368esac
Reid Spencera773bd52006-08-04 18:18:08 +000035369ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035370
John Criswell7a73b802003-06-30 21:59:07 +000035371
Reid Spencera773bd52006-08-04 18:18:08 +000035372 case $ac_mode in
35373 :F)
35374 #
35375 # CONFIG_FILE
35376 #
John Criswell7a73b802003-06-30 21:59:07 +000035377
35378 case $INSTALL in
35379 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035380 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035381 esac
John Criswell7a73b802003-06-30 21:59:07 +000035382_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035383
35384cat >>$CONFIG_STATUS <<\_ACEOF
35385# If the template does not know about datarootdir, expand it.
35386# FIXME: This hack should be removed a few years after 2.60.
35387ac_datarootdir_hack=; ac_datarootdir_seen=
35388
35389case `sed -n '/datarootdir/ {
35390 p
35391 q
35392}
35393/@datadir@/p
35394/@docdir@/p
35395/@infodir@/p
35396/@localedir@/p
35397/@mandir@/p
35398' $ac_file_inputs` in
35399*datarootdir*) ac_datarootdir_seen=yes;;
35400*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35401 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35402echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35403_ACEOF
35404cat >>$CONFIG_STATUS <<_ACEOF
35405 ac_datarootdir_hack='
35406 s&@datadir@&$datadir&g
35407 s&@docdir@&$docdir&g
35408 s&@infodir@&$infodir&g
35409 s&@localedir@&$localedir&g
35410 s&@mandir@&$mandir&g
35411 s&\\\${datarootdir}&$datarootdir&g' ;;
35412esac
35413_ACEOF
35414
35415# Neutralize VPATH when `$srcdir' = `.'.
35416# Shell code in configure.ac might set extrasub.
35417# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035418cat >>$CONFIG_STATUS <<_ACEOF
35419 sed "$ac_vpsub
35420$extrasub
35421_ACEOF
35422cat >>$CONFIG_STATUS <<\_ACEOF
35423:t
35424/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035425s&@configure_input@&$configure_input&;t t
35426s&@top_builddir@&$ac_top_builddir_sub&;t t
35427s&@srcdir@&$ac_srcdir&;t t
35428s&@abs_srcdir@&$ac_abs_srcdir&;t t
35429s&@top_srcdir@&$ac_top_srcdir&;t t
35430s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35431s&@builddir@&$ac_builddir&;t t
35432s&@abs_builddir@&$ac_abs_builddir&;t t
35433s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35434s&@INSTALL@&$ac_INSTALL&;t t
35435$ac_datarootdir_hack
35436" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035437
Reid Spencera773bd52006-08-04 18:18:08 +000035438test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35439 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35440 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35441 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35442which seems to be undefined. Please make sure it is defined." >&5
35443echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35444which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035445
Reid Spencera773bd52006-08-04 18:18:08 +000035446 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035447 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035448 -) cat "$tmp/out"; rm -f "$tmp/out";;
35449 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035450 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035451 ;;
35452 :H)
35453 #
35454 # CONFIG_HEADER
35455 #
John Criswell7a73b802003-06-30 21:59:07 +000035456_ACEOF
35457
Reid Spencera773bd52006-08-04 18:18:08 +000035458# Transform confdefs.h into a sed script `conftest.defines', that
35459# substitutes the proper values into config.h.in to produce config.h.
35460rm -f conftest.defines conftest.tail
35461# First, append a space to every undef/define line, to ease matching.
35462echo 's/$/ /' >conftest.defines
35463# Then, protect against being on the right side of a sed subst, or in
35464# an unquoted here document, in config.status. If some macros were
35465# called several times there might be several #defines for the same
35466# symbol, which is useless. But do not sort them, since the last
35467# AC_DEFINE must be honored.
35468ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35469# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35470# NAME is the cpp macro being defined, VALUE is the value it is being given.
35471# PARAMS is the parameter list in the macro definition--in most cases, it's
35472# just an empty string.
35473ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35474ac_dB='\\)[ (].*,\\1define\\2'
35475ac_dC=' '
35476ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035477
Reid Spencera773bd52006-08-04 18:18:08 +000035478uniq confdefs.h |
35479 sed -n '
35480 t rset
35481 :rset
35482 s/^[ ]*#[ ]*define[ ][ ]*//
35483 t ok
35484 d
35485 :ok
35486 s/[\\&,]/\\&/g
35487 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35488 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35489 ' >>conftest.defines
35490
35491# Remove the space that was appended to ease matching.
35492# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035493# example, in the case of _POSIX_SOURCE, which is predefined and required
35494# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035495# (The regexp can be short, since the line contains either #define or #undef.)
35496echo 's/ $//
35497s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035498
Reid Spencera773bd52006-08-04 18:18:08 +000035499# Break up conftest.defines:
35500ac_max_sed_lines=50
35501
35502# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35503# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35504# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35505# et cetera.
35506ac_in='$ac_file_inputs'
35507ac_out='"$tmp/out1"'
35508ac_nxt='"$tmp/out2"'
35509
35510while :
John Criswell7a73b802003-06-30 21:59:07 +000035511do
Reid Spencera773bd52006-08-04 18:18:08 +000035512 # Write a here document:
35513 cat >>$CONFIG_STATUS <<_ACEOF
35514 # First, check the format of the line:
35515 cat >"\$tmp/defines.sed" <<\\CEOF
35516/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35517/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35518b
35519:def
35520_ACEOF
35521 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035522 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035523 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35524 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35525 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35526 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035527 rm -f conftest.defines
35528 mv conftest.tail conftest.defines
35529done
Reid Spencera773bd52006-08-04 18:18:08 +000035530rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035531
Reid Spencera773bd52006-08-04 18:18:08 +000035532echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035533cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035534 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035535 echo "/* $configure_input */" >"$tmp/config.h"
35536 cat "$ac_result" >>"$tmp/config.h"
35537 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035538 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35539echo "$as_me: $ac_file is unchanged" >&6;}
35540 else
John Criswell7a73b802003-06-30 21:59:07 +000035541 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035542 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035543 fi
35544 else
Reid Spencera773bd52006-08-04 18:18:08 +000035545 echo "/* $configure_input */"
35546 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035547 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035548 rm -f "$tmp/out12"
35549 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035550
Reid Spencera773bd52006-08-04 18:18:08 +000035551 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35552echo "$as_me: executing $ac_file commands" >&6;}
35553 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035554 esac
John Criswell7a73b802003-06-30 21:59:07 +000035555
Reid Spencera773bd52006-08-04 18:18:08 +000035556
35557 case $ac_file$ac_mode in
35558 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35559 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35560 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35561 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35562 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35563 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35564 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35565 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035566 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35567 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035568 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35569 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35570 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35571 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35572 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35573 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35574 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35575 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35576 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35577 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035578 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35579 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35580 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35581 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035582
35583 esac
35584done # for ac_tag
35585
John Criswell7a73b802003-06-30 21:59:07 +000035586
35587{ (exit 0); exit 0; }
35588_ACEOF
35589chmod +x $CONFIG_STATUS
35590ac_clean_files=$ac_clean_files_save
35591
35592
35593# configure is writing to config.log, and then calls config.status.
35594# config.status does its own redirection, appending to config.log.
35595# Unfortunately, on DOS this fails, as config.log is still kept open
35596# by configure, so config.status won't be able to write to it; its
35597# output is simply discarded. So we exec the FD to /dev/null,
35598# effectively closing config.log, so it can be properly (re)opened and
35599# appended to by config.status. When coming back to configure, we
35600# need to make the FD available again.
35601if test "$no_create" != yes; then
35602 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035603 ac_config_status_args=
35604 test "$silent" = yes &&
35605 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035606 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035608 exec 5>>config.log
35609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35610 # would make configure fail if this is the last instruction.
35611 $ac_cs_success || { (exit 1); exit 1; }
35612fi
35613
John Criswell12399a12003-09-30 15:55:44 +000035614#
35615# CONFIG_SUBDIRS section.
35616#
35617if test "$no_recursion" != yes; then
35618
35619 # Remove --cache-file and --srcdir arguments so they do not pile up.
35620 ac_sub_configure_args=
35621 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035622 eval "set x $ac_configure_args"
35623 shift
35624 for ac_arg
35625 do
John Criswell12399a12003-09-30 15:55:44 +000035626 if test -n "$ac_prev"; then
35627 ac_prev=
35628 continue
35629 fi
35630 case $ac_arg in
35631 -cache-file | --cache-file | --cache-fil | --cache-fi \
35632 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35633 ac_prev=cache_file ;;
35634 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35635 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35636 | --c=*)
35637 ;;
35638 --config-cache | -C)
35639 ;;
35640 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35641 ac_prev=srcdir ;;
35642 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35643 ;;
35644 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35645 ac_prev=prefix ;;
35646 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35647 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035648 *)
35649 case $ac_arg in
35650 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35651 esac
35652 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035653 esac
35654 done
35655
35656 # Always prepend --prefix to ensure using the same prefix
35657 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035658 ac_arg="--prefix=$prefix"
35659 case $ac_arg in
35660 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35661 esac
35662 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035663
35664 ac_popdir=`pwd`
35665 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35666
35667 # Do not complain, so a configure script can configure whichever
35668 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035669 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035670
Reid Spencera773bd52006-08-04 18:18:08 +000035671 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35672 echo "$as_me:$LINENO: $ac_msg" >&5
35673 echo "$ac_msg" >&6
35674 { as_dir="$ac_dir"
35675 case $as_dir in #(
35676 -*) as_dir=./$as_dir;;
35677 esac
35678 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035679 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035680 while :; do
35681 case $as_dir in #(
35682 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35683 *) as_qdir=$as_dir;;
35684 esac
35685 as_dirs="'$as_qdir' $as_dirs"
35686 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035687$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035688 X"$as_dir" : 'X\(//\)[^/]' \| \
35689 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035690 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035691echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35693 s//\1/
35694 q
35695 }
35696 /^X\(\/\/\)[^/].*/{
35697 s//\1/
35698 q
35699 }
35700 /^X\(\/\/\)$/{
35701 s//\1/
35702 q
35703 }
35704 /^X\(\/\).*/{
35705 s//\1/
35706 q
35707 }
35708 s/.*/./; q'`
35709 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035710 done
Reid Spencera773bd52006-08-04 18:18:08 +000035711 test -z "$as_dirs" || eval "mkdir $as_dirs"
35712 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35713echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035714 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035715 ac_builddir=.
35716
Reid Spencera773bd52006-08-04 18:18:08 +000035717case "$ac_dir" in
35718.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35719*)
John Criswell12399a12003-09-30 15:55:44 +000035720 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035721 # A ".." for each directory in $ac_dir_suffix.
35722 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35723 case $ac_top_builddir_sub in
35724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35726 esac ;;
35727esac
35728ac_abs_top_builddir=$ac_pwd
35729ac_abs_builddir=$ac_pwd$ac_dir_suffix
35730# for backward compatibility:
35731ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035732
35733case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035734 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035735 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035736 ac_top_srcdir=$ac_top_builddir_sub
35737 ac_abs_top_srcdir=$ac_pwd ;;
35738 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035739 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035740 ac_top_srcdir=$srcdir
35741 ac_abs_top_srcdir=$srcdir ;;
35742 *) # Relative name.
35743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35744 ac_top_srcdir=$ac_top_build_prefix$srcdir
35745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035746esac
Reid Spencera773bd52006-08-04 18:18:08 +000035747ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035748
35749
Reid Spencera773bd52006-08-04 18:18:08 +000035750 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035751
35752 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035753 if test -f "$ac_srcdir/configure.gnu"; then
35754 ac_sub_configure=$ac_srcdir/configure.gnu
35755 elif test -f "$ac_srcdir/configure"; then
35756 ac_sub_configure=$ac_srcdir/configure
35757 elif test -f "$ac_srcdir/configure.in"; then
35758 # This should be Cygnus configure.
35759 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035760 else
35761 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35762echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35763 ac_sub_configure=
35764 fi
35765
35766 # The recursion is here.
35767 if test -n "$ac_sub_configure"; then
35768 # Make the cache file name correct relative to the subdirectory.
35769 case $cache_file in
35770 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035771 *) # Relative name.
35772 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035773 esac
35774
Reid Spencera773bd52006-08-04 18:18:08 +000035775 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35776echo "$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 +000035777 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035778 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35779 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035780 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035781echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35782 { (exit 1); exit 1; }; }
35783 fi
35784
Reid Spencera773bd52006-08-04 18:18:08 +000035785 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035786 done
35787fi
35788