blob: 5e76a35a1162859b1c6ff7b825b1f1ef184e63bd [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Scott Michel96dcd2b2007-12-05 21:24:02 +00003# Generated by GNU Autoconf 2.61 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
Scott Michel96dcd2b2007-12-05 21:24:02 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000025 setopt NO_GLOB_SUBST
26else
Scott Michel96dcd2b2007-12-05 21:24:02 +000027 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29esac
30
John Criswell0c38eaf2003-09-10 15:17:25 +000031fi
Scott Michel96dcd2b2007-12-05 21:24:02 +000032
33
John Criswell0c38eaf2003-09-10 15:17:25 +000034
John Criswell0c38eaf2003-09-10 15:17:25 +000035
Reid Spencera773bd52006-08-04 18:18:08 +000036# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000037# Avoid depending upon Character Ranges.
38as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41as_cr_digits='0123456789'
42as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44# The user is always right.
45if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
48 chmod +x conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 PATH_SEPARATOR=';'
51 else
52 PATH_SEPARATOR=:
53 fi
54 rm -f conf$$.sh
55fi
56
Reid Spencera773bd52006-08-04 18:18:08 +000057# Support unset when possible.
58if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 as_unset=unset
60else
61 as_unset=false
62fi
John Criswell0c38eaf2003-09-10 15:17:25 +000063
Reid Spencera773bd52006-08-04 18:18:08 +000064
65# IFS
66# We need space, tab and new line, in precisely that order. Quoting is
67# there to prevent editors from complaining about space-tab.
68# (If _AS_PATH_WALK were called with IFS unset, it would disable word
69# splitting by setting IFS to empty value.)
70as_nl='
71'
72IFS=" "" $as_nl"
73
74# Find who we are. Look in the path if we contain no directory separator.
75case $0 in
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000078for as_dir in $PATH
79do
80 IFS=$as_save_IFS
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83done
Reid Spencera773bd52006-08-04 18:18:08 +000084IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000085
Reid Spencera773bd52006-08-04 18:18:08 +000086 ;;
87esac
88# We did not find ourselves, most probably we were run as `sh COMMAND'
89# in which case we are not to be found in the path.
90if test "x$as_myself" = x; then
91 as_myself=$0
92fi
93if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 { (exit 1); exit 1; }
96fi
97
98# Work around bugs in pre-3.0 UWIN ksh.
99for as_var in ENV MAIL MAILPATH
100do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101done
102PS1='$ '
103PS2='> '
104PS4='+ '
105
106# NLS nuisances.
107for as_var in \
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 LC_TELEPHONE LC_TIME
111do
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
114 else
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000116 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000117done
118
119# Required to use basename.
120if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 as_expr=expr
123else
124 as_expr=false
125fi
126
127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 as_basename=basename
129else
130 as_basename=false
131fi
132
133
134# Name of the executable.
135as_me=`$as_basename -- "$0" ||
136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139echo X/"$0" |
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\/\)$/{
145 s//\1/
146 q
147 }
148 /^X\/\(\/\).*/{
149 s//\1/
150 q
151 }
152 s/.*/./; q'`
153
154# CDPATH.
155$as_unset CDPATH
156
157
158if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
160 as_have_required=yes
161else
162 as_have_required=no
163fi
164
165 if test $as_have_required = yes && (eval ":
166(as_func_return () {
167 (exit \$1)
168}
169as_func_success () {
170 as_func_return 0
171}
172as_func_failure () {
173 as_func_return 1
174}
175as_func_ret_success () {
176 return 0
177}
178as_func_ret_failure () {
179 return 1
180}
181
182exitcode=0
183if as_func_success; then
184 :
185else
186 exitcode=1
187 echo as_func_success failed.
188fi
189
190if as_func_failure; then
191 exitcode=1
192 echo as_func_failure succeeded.
193fi
194
195if as_func_ret_success; then
196 :
197else
198 exitcode=1
199 echo as_func_ret_success failed.
200fi
201
202if as_func_ret_failure; then
203 exitcode=1
204 echo as_func_ret_failure succeeded.
205fi
206
207if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 :
209else
210 exitcode=1
211 echo positional parameters were not saved.
212fi
213
214test \$exitcode = 0) || { (exit 1); exit 1; }
215
216(
217 as_lineno_1=\$LINENO
218 as_lineno_2=\$LINENO
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221") 2> /dev/null; then
222 :
223else
224 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Scott Michel96dcd2b2007-12-05 21:24:02 +0000226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000227do
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000230 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000231 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 done;;
235 esac
236done
237IFS=$as_save_IFS
238
239
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
Reid Spencera773bd52006-08-04 18:18:08 +0000244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 emulate sh
246 NULLCMD=:
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
250 setopt NO_GLOB_SUBST
251else
Scott Michel96dcd2b2007-12-05 21:24:02 +0000252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254esac
255
Reid Spencera773bd52006-08-04 18:18:08 +0000256fi
Scott Michel96dcd2b2007-12-05 21:24:02 +0000257
Reid Spencera773bd52006-08-04 18:18:08 +0000258
259:
260_ASEOF
261}; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
Reid Spencera773bd52006-08-04 18:18:08 +0000265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 emulate sh
267 NULLCMD=:
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272else
Scott Michel96dcd2b2007-12-05 21:24:02 +0000273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275esac
276
Reid Spencera773bd52006-08-04 18:18:08 +0000277fi
Scott Michel96dcd2b2007-12-05 21:24:02 +0000278
Reid Spencera773bd52006-08-04 18:18:08 +0000279
280:
281(as_func_return () {
282 (exit $1)
283}
284as_func_success () {
285 as_func_return 0
286}
287as_func_failure () {
288 as_func_return 1
289}
290as_func_ret_success () {
291 return 0
292}
293as_func_ret_failure () {
294 return 1
295}
296
297exitcode=0
298if as_func_success; then
299 :
300else
301 exitcode=1
302 echo as_func_success failed.
303fi
304
305if as_func_failure; then
306 exitcode=1
307 echo as_func_failure succeeded.
308fi
309
310if as_func_ret_success; then
311 :
312else
313 exitcode=1
314 echo as_func_ret_success failed.
315fi
316
317if as_func_ret_failure; then
318 exitcode=1
319 echo as_func_ret_failure succeeded.
320fi
321
322if ( set x; as_func_ret_success y && test x = "$1" ); then
323 :
324else
325 exitcode=1
326 echo positional parameters were not saved.
327fi
328
329test $exitcode = 0) || { (exit 1); exit 1; }
330
331(
John Criswell0c38eaf2003-09-10 15:17:25 +0000332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000334 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337_ASEOF
338}; then
339 break
340fi
341
342fi
343
344 done
345
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 done
350 export CONFIG_SHELL
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352fi
353
354
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
361fi
362
363
364fi
365
366fi
367
368
369
370(eval "as_func_return () {
371 (exit \$1)
372}
373as_func_success () {
374 as_func_return 0
375}
376as_func_failure () {
377 as_func_return 1
378}
379as_func_ret_success () {
380 return 0
381}
382as_func_ret_failure () {
383 return 1
384}
385
386exitcode=0
387if as_func_success; then
388 :
389else
390 exitcode=1
391 echo as_func_success failed.
392fi
393
394if as_func_failure; then
395 exitcode=1
396 echo as_func_failure succeeded.
397fi
398
399if as_func_ret_success; then
400 :
401else
402 exitcode=1
403 echo as_func_ret_success failed.
404fi
405
406if as_func_ret_failure; then
407 exitcode=1
408 echo as_func_ret_failure succeeded.
409fi
410
411if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 :
413else
414 exitcode=1
415 echo positional parameters were not saved.
416fi
417
418test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
422 echo message
423}
424
425
426
427 as_lineno_1=$LINENO
428 as_lineno_2=$LINENO
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000431
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
438 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000446 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000451 N
Reid Spencera773bd52006-08-04 18:18:08 +0000452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000454 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000455 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000456 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000457 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
460
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000465 # Exit status is that of the last command.
466 exit
467}
468
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472else
473 as_dirname=false
474fi
475
476ECHO_C= ECHO_N= ECHO_T=
477case `echo -n x` in
478-n*)
479 case `echo 'x\c'` in
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 *) ECHO_C='\c';;
482 esac;;
483*)
484 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000485esac
486
Reid Spencera773bd52006-08-04 18:18:08 +0000487if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000489 as_expr=expr
490else
491 as_expr=false
492fi
493
494rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000495if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
500fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000501echo >conf$$.file
502if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000503 as_ln_s='ln -s'
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000509 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000510elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512else
513 as_ln_s='cp -p'
514fi
Reid Spencera773bd52006-08-04 18:18:08 +0000515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000517
518if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000521 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000522 as_mkdir_p=false
523fi
524
Scott Michel96dcd2b2007-12-05 21:24:02 +0000525if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +0000527else
Scott Michel96dcd2b2007-12-05 21:24:02 +0000528 if ls -dL / >/dev/null 2>&1; then
529 as_ls_L_option=L
530 else
531 as_ls_L_option=
532 fi
533 as_test_x='
534 eval sh -c '\''
535 if test -d "$1"; then
536 test -d "$1/.";
537 else
538 case $1 in
539 -*)set "./$1";;
540 esac;
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
543 '\'' sh
544 '
Reid Spencera773bd52006-08-04 18:18:08 +0000545fi
Scott Michel96dcd2b2007-12-05 21:24:02 +0000546as_executable_p=$as_test_x
John Criswell0c38eaf2003-09-10 15:17:25 +0000547
548# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000550
551# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000553
554
John Criswell7a73b802003-06-30 21:59:07 +0000555
John Criswell7a73b802003-06-30 21:59:07 +0000556
557# Check that we are running under the correct shell.
558SHELL=${CONFIG_SHELL-/bin/sh}
559
560case X$ECHO in
561X*--fallback-echo)
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 ;;
565esac
566
567echo=${ECHO-echo}
568if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
570 shift
571elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
573 :
John Criswell47fdd832003-07-14 16:52:07 +0000574elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000575 # Yippee, $echo works!
576 :
577else
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
580fi
581
582if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
584 shift
585 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000586$*
John Criswell7a73b802003-06-30 21:59:07 +0000587EOF
588 exit 0
589fi
590
591# The HP-UX ksh and POSIX shell print the target directory to stdout
592# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000594
595if test -z "$ECHO"; then
596if test "X${echo_test_string+set}" != Xset; then
597# find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603 then
604 break
605 fi
606 done
607fi
608
609if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
619
John Criswell47fdd832003-07-14 16:52:07 +0000620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000621 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000622 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 echo="$dir/echo"
628 break
629 fi
630 done
John Criswell47fdd832003-07-14 16:52:07 +0000631 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000632
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 echo='print -r'
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 echo='printf %s\n'
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
673
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 echo=echo
689 fi
690 fi
691 fi
692 fi
693fi
694fi
695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
698ECHO=$echo
699if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701fi
702
703
704
John Criswell47fdd832003-07-14 16:52:07 +0000705
Reid Spencer2706f8c2004-09-19 23:53:36 +0000706tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000707
Reid Spencer2706f8c2004-09-19 23:53:36 +0000708tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000709
Reid Spencera773bd52006-08-04 18:18:08 +0000710exec 7<&0 </dev/null 6>&1
711
John Criswell7a73b802003-06-30 21:59:07 +0000712# Name of the host.
713# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714# so uname gets run too.
715ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
John Criswell7a73b802003-06-30 21:59:07 +0000717#
718# Initializations.
719#
720ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000721ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000722ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000723LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000724cross_compiling=no
725subdirs=
726MFLAGS=
727MAKEFLAGS=
728SHELL=${CONFIG_SHELL-/bin/sh}
729
John Criswell7a73b802003-06-30 21:59:07 +0000730# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000731PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000732PACKAGE_TARNAME='-llvm-'
Tanya Lattner5c709542007-09-14 01:24:13 +0000733PACKAGE_VERSION='2.2svn'
734PACKAGE_STRING='llvm 2.2svn'
John Criswell7a73b802003-06-30 21:59:07 +0000735PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
736
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000737ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000738# Factoring default headers for most tests.
739ac_includes_default="\
740#include <stdio.h>
Scott Michel96dcd2b2007-12-05 21:24:02 +0000741#ifdef HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <sys/types.h>
743#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000744#ifdef HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000745# include <sys/stat.h>
746#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000747#ifdef STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000748# include <stdlib.h>
749# include <stddef.h>
750#else
Scott Michel96dcd2b2007-12-05 21:24:02 +0000751# ifdef HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000752# include <stdlib.h>
753# endif
754#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000755#ifdef HAVE_STRING_H
756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000757# include <memory.h>
758# endif
759# include <string.h>
760#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000761#ifdef HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000762# include <strings.h>
763#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000764#ifdef HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000765# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000766#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000767#ifdef HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000768# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000769#endif
Scott Michel96dcd2b2007-12-05 21:24:02 +0000770#ifdef HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000771# include <unistd.h>
772#endif"
773
Reid Spencera773bd52006-08-04 18:18:08 +0000774ac_subst_vars='SHELL
775PATH_SEPARATOR
776PACKAGE_NAME
777PACKAGE_TARNAME
778PACKAGE_VERSION
779PACKAGE_STRING
780PACKAGE_BUGREPORT
781exec_prefix
782prefix
783program_transform_name
784bindir
785sbindir
786libexecdir
787datarootdir
788datadir
789sysconfdir
790sharedstatedir
791localstatedir
792includedir
793oldincludedir
794docdir
795infodir
796htmldir
797dvidir
798pdfdir
799psdir
800libdir
801localedir
802mandir
803DEFS
804ECHO_C
805ECHO_N
806ECHO_T
807LIBS
808build_alias
809host_alias
810target_alias
811LLVM_COPYRIGHT
812subdirs
813build
814build_cpu
815build_vendor
816build_os
817host
818host_cpu
819host_vendor
820host_os
821target
822target_cpu
823target_vendor
824target_os
825OS
826LINKALL
827NOLINKALL
828LLVM_ON_UNIX
829LLVM_ON_WIN32
830ARCH
Duncan Sands67f1c492007-12-12 23:03:45 +0000831ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839CPP
840GREP
841EGREP
842LLVM_CROSS_COMPILING
843BUILD_CC
844BUILD_EXEEXT
845CVSBUILD
846ENABLE_OPTIMIZED
847DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000848ENABLE_EXPENSIVE_CHECKS
849EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000850DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000851JIT
852TARGET_HAS_JIT
853ENABLE_DOXYGEN
854ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000855ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000856TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000857ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000858EXTRA_OPTIONS
859CXX
860CXXFLAGS
861ac_ct_CXX
862LEX
Reid Spencera773bd52006-08-04 18:18:08 +0000863LEX_OUTPUT_ROOT
Scott Michel96dcd2b2007-12-05 21:24:02 +0000864LEXLIB
Reid Spencera773bd52006-08-04 18:18:08 +0000865FLEX
866YACC
867YFLAGS
868BISON
869NM
870ifGNUmake
871LN_S
872CMP
873CP
874DATE
875FIND
876MKDIR
877MV
878RANLIB
879RM
880SED
881TAR
882BINPWD
883GRAPHVIZ
884DOT
885GV
886DOTTY
887PERL
888HAVE_PERL
889INSTALL_PROGRAM
890INSTALL_SCRIPT
891INSTALL_DATA
892BZIP2
893DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000894GROFF
895GZIP
896POD2HTML
897POD2MAN
898RUNTEST
899TCLSH
900ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000901OCAMLC
902OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000903OCAMLDEP
Reid Spencera773bd52006-08-04 18:18:08 +0000904INSTALL_LTDL_TRUE
905INSTALL_LTDL_FALSE
906CONVENIENCE_LTDL_TRUE
907CONVENIENCE_LTDL_FALSE
908LIBADD_DL
909ECHO
910AR
911STRIP
912CXXCPP
913F77
914FFLAGS
915ac_ct_F77
916LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000917LLVMGCC
918LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000919USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000920HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000921HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000922ALLOCA
923MMAP_FILE
924LLVMCC1
925LLVMCC1PLUS
926LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000927LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000928LLVMGCC_VERSION
929LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000930LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000931SHLIBEXT
932LLVM_PREFIX
933LLVM_BINDIR
934LLVM_LIBDIR
935LLVM_DATADIR
936LLVM_DOCSDIR
937LLVM_ETCDIR
938LLVM_INCLUDEDIR
939LLVM_INFODIR
940LLVM_MANDIR
941LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000942BINDINGS_TO_BUILD
943ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000944OCAML_LIBDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000945LIBOBJS
946LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000947ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000948 ac_precious_vars='build_alias
949host_alias
950target_alias
951CC
952CFLAGS
953LDFLAGS
Scott Michel96dcd2b2007-12-05 21:24:02 +0000954LIBS
Reid Spencera773bd52006-08-04 18:18:08 +0000955CPPFLAGS
956CPP
957CXX
958CXXFLAGS
959CCC
960YACC
961YFLAGS
962CXXCPP
963F77
964FFLAGS'
965ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000966projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000967projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000968projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000969projects/llvm-reopt
970projects/llvm-gcc
971projects/llvm-java
972projects/llvm-tv
973projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000974projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000975projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000976
977# Initialize some variables set by options.
978ac_init_help=
979ac_init_version=false
980# The variables have the same names as the options, with
981# dashes changed to underlines.
982cache_file=/dev/null
983exec_prefix=NONE
984no_create=
985no_recursion=
986prefix=NONE
987program_prefix=NONE
988program_suffix=NONE
989program_transform_name=s,x,x,
990silent=
991site=
992srcdir=
993verbose=
994x_includes=NONE
995x_libraries=NONE
996
997# Installation directory options.
998# These are left unexpanded so users can "make install exec_prefix=/foo"
999# and all the variables that are supposed to be based on exec_prefix
1000# by default will actually change.
1001# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001002# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001003bindir='${exec_prefix}/bin'
1004sbindir='${exec_prefix}/sbin'
1005libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001006datarootdir='${prefix}/share'
1007datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001008sysconfdir='${prefix}/etc'
1009sharedstatedir='${prefix}/com'
1010localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001011includedir='${prefix}/include'
1012oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001013docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1014infodir='${datarootdir}/info'
1015htmldir='${docdir}'
1016dvidir='${docdir}'
1017pdfdir='${docdir}'
1018psdir='${docdir}'
1019libdir='${exec_prefix}/lib'
1020localedir='${datarootdir}/locale'
1021mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001022
1023ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001024ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001025for ac_option
1026do
1027 # If the previous option needs an argument, assign it.
1028 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001029 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001030 ac_prev=
1031 continue
1032 fi
1033
Reid Spencera773bd52006-08-04 18:18:08 +00001034 case $ac_option in
1035 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036 *) ac_optarg=yes ;;
1037 esac
John Criswell7a73b802003-06-30 21:59:07 +00001038
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1040
Reid Spencera773bd52006-08-04 18:18:08 +00001041 case $ac_dashdash$ac_option in
1042 --)
1043 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001044
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 ac_prev=bindir ;;
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1049
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1054
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1061
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1064
Reid Spencera773bd52006-08-04 18:18:08 +00001065 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001066 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001068 datadir=$ac_optarg ;;
1069
Reid Spencera773bd52006-08-04 18:18:08 +00001070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1076
John Criswell7a73b802003-06-30 21:59:07 +00001077 -disable-* | --disable-*)
1078 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
Scott Michel96dcd2b2007-12-05 21:24:02 +00001080 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001081 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082 { (exit 1); exit 1; }; }
Scott Michel96dcd2b2007-12-05 21:24:02 +00001083 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001084 eval enable_$ac_feature=no ;;
1085
1086 -docdir | --docdir | --docdi | --doc | --do)
1087 ac_prev=docdir ;;
1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 docdir=$ac_optarg ;;
1090
1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 ac_prev=dvidir ;;
1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001095
1096 -enable-* | --enable-*)
1097 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
Scott Michel96dcd2b2007-12-05 21:24:02 +00001099 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001100 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101 { (exit 1); exit 1; }; }
Scott Michel96dcd2b2007-12-05 21:24:02 +00001102 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001103 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001104
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1113
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1117
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1124
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1129
Reid Spencera773bd52006-08-04 18:18:08 +00001130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1135
John Criswell7a73b802003-06-30 21:59:07 +00001136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1142
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1147
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1152
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1159
Reid Spencera773bd52006-08-04 18:18:08 +00001160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1164
John Criswell7a73b802003-06-30 21:59:07 +00001165 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001166 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001170 localstatedir=$ac_optarg ;;
1171
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1176
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1180
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1184
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1188
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1197
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1202
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1209
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1216
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1233
Reid Spencera773bd52006-08-04 18:18:08 +00001234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1238
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1243
John Criswell7a73b802003-06-30 21:59:07 +00001244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1247
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1253
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1264
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1269
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1274
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1281
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1286
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1289
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1292
1293 -with-* | --with-*)
1294 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
Scott Michel96dcd2b2007-12-05 21:24:02 +00001296 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001297 { echo "$as_me: error: invalid package name: $ac_package" >&2
1298 { (exit 1); exit 1; }; }
Scott Michel96dcd2b2007-12-05 21:24:02 +00001299 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001300 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001301
1302 -without-* | --without-*)
1303 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
Scott Michel96dcd2b2007-12-05 21:24:02 +00001305 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001306 { echo "$as_me: error: invalid package name: $ac_package" >&2
1307 { (exit 1); exit 1; }; }
Scott Michel96dcd2b2007-12-05 21:24:02 +00001308 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001309 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001310
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1314
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1321
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1328
1329 -*) { echo "$as_me: error: unrecognized option: $ac_option
1330Try \`$0 --help' for more information." >&2
1331 { (exit 1); exit 1; }; }
1332 ;;
1333
1334 *=*)
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1338 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1339 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001340 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001341 export $ac_envvar ;;
1342
1343 *)
1344 # FIXME: should be removed in autoconf 3.0.
1345 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 ;;
1350
1351 esac
1352done
1353
1354if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 { echo "$as_me: error: missing argument to $ac_option" >&2
1357 { (exit 1); exit 1; }; }
1358fi
1359
Reid Spencera773bd52006-08-04 18:18:08 +00001360# Be sure to have absolute directory names.
1361for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001365do
Reid Spencera773bd52006-08-04 18:18:08 +00001366 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001367 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001370 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001371 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001373done
1374
1375# There might be people who depend on the old broken behavior: `$host'
1376# used to hold the argument of --host etc.
1377# FIXME: To remove some day.
1378build=$build_alias
1379host=$host_alias
1380target=$target_alias
1381
1382# FIXME: To remove some day.
1383if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1389 cross_compiling=yes
1390 fi
1391fi
1392
1393ac_tool_prefix=
1394test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396test "$silent" = yes && exec 6>/dev/null
1397
1398
Reid Spencera773bd52006-08-04 18:18:08 +00001399ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400ac_ls_di=`ls -di .` &&
1401ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 { echo "$as_me: error: Working directory cannot be determined" >&2
1403 { (exit 1); exit 1; }; }
1404test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 { echo "$as_me: error: pwd does not report name of working directory" >&2
1406 { (exit 1); exit 1; }; }
1407
1408
John Criswell7a73b802003-06-30 21:59:07 +00001409# Find the source files, if location was not specified.
1410if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001414$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001415 X"$0" : 'X\(//\)[^/]' \| \
1416 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001418echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\).*/{
1432 s//\1/
1433 q
1434 }
1435 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001436 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001437 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001438 srcdir=..
1439 fi
1440else
1441 ac_srcdir_defaulted=no
1442fi
Reid Spencera773bd52006-08-04 18:18:08 +00001443if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001446 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001447fi
Reid Spencera773bd52006-08-04 18:18:08 +00001448ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449ac_abs_confdir=`(
1450 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001451 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001452 pwd)`
1453# When building in place, set srcdir=.
1454if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 srcdir=.
1456fi
1457# Remove unnecessary trailing slashes from srcdir.
1458# Double slashes in file names in object file debugging info
1459# mess up M-x gdb in Emacs.
1460case $srcdir in
1461*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462esac
1463for ac_var in $ac_precious_vars; do
1464 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_${ac_var}_value=\$${ac_var}
1466 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468done
John Criswell7a73b802003-06-30 21:59:07 +00001469
1470#
1471# Report the --help message.
1472#
1473if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1476 cat <<_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001477\`configure' configures llvm 2.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001478
1479Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482VAR=VALUE. See below for descriptions of some of the useful variables.
1483
1484Defaults for the options are specified in brackets.
1485
1486Configuration:
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496
John Criswell7a73b802003-06-30 21:59:07 +00001497Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001499 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001501 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001502
1503By default, \`make install' will install all the files in
1504\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506for instance \`--prefix=\$HOME'.
1507
1508For better control, use the options below.
1509
1510Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001530_ACEOF
1531
1532 cat <<\_ACEOF
1533
1534System types:
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 --target=TARGET configure for building compilers for TARGET [HOST]
1538_ACEOF
1539fi
1540
1541if test -n "$ac_init_help"; then
1542 case $ac_init_help in
Tanya Lattner5c709542007-09-14 01:24:13 +00001543 short | recursive ) echo "Configuration of llvm 2.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001544 esac
1545 cat <<\_ACEOF
1546
1547Optional Features:
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001550 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001551 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001552 --enable-expensive-checks
1553
Reid Spencer8b2e1412006-11-17 03:32:33 +00001554 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001555 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001556 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001557 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001558 --enable-pic Build LLVM with Position Independent Code (default
1559 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001560 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001561 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001562 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1563 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001564 --enable-bindings Build specific language bindings:
1565 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001566 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001567 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001568 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001569 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001570 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001571 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001572 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001573 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001574 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001575
1576Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001579 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1580 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001581 --with-llvmgcc Specify location of llvm-gcc driver (default
1582 searches PATH)
1583 --with-llvmgxx Specify location of llvm-g++ driver (default
1584 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001585 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001586 --with-ocaml-libdir Specify install location for ocaml bindings (default
1587 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001588 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001589 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1590 --with-pic try to use only PIC/non-PIC objects [default=use
1591 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001592 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001593 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001594
1595Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001596 CC C compiler command
1597 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
Scott Michel96dcd2b2007-12-05 21:24:02 +00001600 LIBS libraries to pass to the linker, e.g. -l<library>
Reid Spencera773bd52006-08-04 18:18:08 +00001601 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001603 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001604 CXX C++ compiler command
1605 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001606 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1607 the first program found out of: `bison -y', `byacc', `yacc'.
1608 YFLAGS The list of arguments that will be passed by default to $YACC.
1609 This script will default YFLAGS to the empty string to avoid a
1610 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001611 CXXCPP C++ preprocessor
1612 F77 Fortran 77 compiler command
1613 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001614
1615Use these variables to override the choices made by `configure' or to help
1616it to find libraries and programs with nonstandard names/locations.
1617
1618Report bugs to <llvmbugs@cs.uiuc.edu>.
1619_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001620ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001621fi
1622
1623if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001626 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001627 ac_builddir=.
1628
Reid Spencera773bd52006-08-04 18:18:08 +00001629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
John Criswell7a73b802003-06-30 21:59:07 +00001632 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001644
1645case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001646 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001647 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001651 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001658esac
Reid Spencera773bd52006-08-04 18:18:08 +00001659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001660
Reid Spencera773bd52006-08-04 18:18:08 +00001661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001669 else
1670 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001673 done
1674fi
1675
Reid Spencera773bd52006-08-04 18:18:08 +00001676test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001677if $ac_init_version; then
1678 cat <<\_ACEOF
Tanya Lattner5c709542007-09-14 01:24:13 +00001679llvm configure 2.2svn
Scott Michel96dcd2b2007-12-05 21:24:02 +00001680generated by GNU Autoconf 2.61
John Criswell7a73b802003-06-30 21:59:07 +00001681
Reid Spencera773bd52006-08-04 18:18:08 +00001682Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001684This configure script is free software; the Free Software Foundation
1685gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001686
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001687Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001688_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001689 exit
John Criswell7a73b802003-06-30 21:59:07 +00001690fi
Reid Spencera773bd52006-08-04 18:18:08 +00001691cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001692This file contains any messages produced by compilers while
1693running configure, to aid debugging if configure makes a mistake.
1694
Tanya Lattner5c709542007-09-14 01:24:13 +00001695It was created by llvm $as_me 2.2svn, which was
Scott Michel96dcd2b2007-12-05 21:24:02 +00001696generated by GNU Autoconf 2.61. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001697
1698 $ $0 $@
1699
1700_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001701exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001702{
1703cat <<_ASUNAME
1704## --------- ##
1705## Platform. ##
1706## --------- ##
1707
1708hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1716
1717/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1718/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1719/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001720/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001721/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1722/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1723/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1724
1725_ASUNAME
1726
1727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730 IFS=$as_save_IFS
1731 test -z "$as_dir" && as_dir=.
1732 echo "PATH: $as_dir"
1733done
Reid Spencera773bd52006-08-04 18:18:08 +00001734IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001735
1736} >&5
1737
1738cat >&5 <<_ACEOF
1739
1740
1741## ----------- ##
1742## Core tests. ##
1743## ----------- ##
1744
1745_ACEOF
1746
1747
1748# Keep a trace of the command line.
1749# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001750# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001751# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001752# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001753ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001754ac_configure_args0=
1755ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001756ac_must_keep_next=false
1757for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001758do
John Criswell0c38eaf2003-09-10 15:17:25 +00001759 for ac_arg
1760 do
1761 case $ac_arg in
1762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764 | -silent | --silent | --silen | --sile | --sil)
1765 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001766 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1768 esac
1769 case $ac_pass in
1770 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771 2)
1772 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001774 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001776 case $ac_arg in
1777 *=* | --config-cache | -C | -disable-* | --disable-* \
1778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780 | -with-* | --with-* | -without-* | --without-* | --x)
1781 case "$ac_configure_args0 " in
1782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783 esac
1784 ;;
1785 -* ) ac_must_keep_next=true ;;
1786 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001787 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001788 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001789 ;;
1790 esac
1791 done
John Criswell7a73b802003-06-30 21:59:07 +00001792done
John Criswell0c38eaf2003-09-10 15:17:25 +00001793$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794$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 +00001795
1796# When interrupted or exit'd, cleanup temporary files, and complete
1797# config.log. We remove comments because anyway the quotes in there
1798# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001799# WARNING: Use '\'' to represent an apostrophe within the trap.
1800# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001801trap 'exit_status=$?
1802 # Save into config.log some information that might help in debugging.
1803 {
1804 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001805
John Criswell7a73b802003-06-30 21:59:07 +00001806 cat <<\_ASBOX
1807## ---------------- ##
1808## Cache variables. ##
1809## ---------------- ##
1810_ASBOX
1811 echo
1812 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001813(
1814 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815 eval ac_val=\$$ac_var
1816 case $ac_val in #(
1817 *${as_nl}*)
1818 case $ac_var in #(
1819 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1821 esac
1822 case $ac_var in #(
1823 _ | IFS | as_nl) ;; #(
1824 *) $as_unset $ac_var ;;
1825 esac ;;
1826 esac
1827 done
John Criswell7a73b802003-06-30 21:59:07 +00001828 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001829 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001831 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001832 "s/'\''/'\''\\\\'\'''\''/g;
1833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001835 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001837 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001838 esac |
1839 sort
1840)
John Criswell7a73b802003-06-30 21:59:07 +00001841 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001842
1843 cat <<\_ASBOX
1844## ----------------- ##
1845## Output variables. ##
1846## ----------------- ##
1847_ASBOX
1848 echo
1849 for ac_var in $ac_subst_vars
1850 do
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001856 done | sort
1857 echo
1858
1859 if test -n "$ac_subst_files"; then
1860 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001861## ------------------- ##
1862## File substitutions. ##
1863## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001864_ASBOX
1865 echo
1866 for ac_var in $ac_subst_files
1867 do
Reid Spencera773bd52006-08-04 18:18:08 +00001868 eval ac_val=\$$ac_var
1869 case $ac_val in
1870 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871 esac
1872 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001873 done | sort
1874 echo
1875 fi
1876
John Criswell7a73b802003-06-30 21:59:07 +00001877 if test -s confdefs.h; then
1878 cat <<\_ASBOX
1879## ----------- ##
1880## confdefs.h. ##
1881## ----------- ##
1882_ASBOX
1883 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001884 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001885 echo
1886 fi
1887 test "$ac_signal" != 0 &&
1888 echo "$as_me: caught signal $ac_signal"
1889 echo "$as_me: exit $exit_status"
1890 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001891 rm -f core *.core core.conftest.* &&
1892 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001893 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001894' 0
John Criswell7a73b802003-06-30 21:59:07 +00001895for ac_signal in 1 2 13 15; do
1896 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897done
1898ac_signal=0
1899
1900# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001901rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001902
1903# Predefined preprocessor variables.
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_NAME "$PACKAGE_NAME"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_VERSION "$PACKAGE_VERSION"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_STRING "$PACKAGE_STRING"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927_ACEOF
1928
1929
1930# Let the site file select an alternate cache file if it wants to.
1931# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001932if test -n "$CONFIG_SITE"; then
1933 set x "$CONFIG_SITE"
1934elif test "x$prefix" != xNONE; then
1935 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1936else
1937 set x "$ac_default_prefix/share/config.site" \
1938 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001939fi
Reid Spencera773bd52006-08-04 18:18:08 +00001940shift
1941for ac_site_file
1942do
John Criswell7a73b802003-06-30 21:59:07 +00001943 if test -r "$ac_site_file"; then
1944 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945echo "$as_me: loading site script $ac_site_file" >&6;}
1946 sed 's/^/| /' "$ac_site_file" >&5
1947 . "$ac_site_file"
1948 fi
1949done
1950
1951if test -r "$cache_file"; then
1952 # Some versions of bash will fail to source /dev/null (special
1953 # files actually), so we avoid doing that.
1954 if test -f "$cache_file"; then
1955 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956echo "$as_me: loading cache $cache_file" >&6;}
1957 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001958 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001960 esac
1961 fi
1962else
1963 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964echo "$as_me: creating cache $cache_file" >&6;}
1965 >$cache_file
1966fi
1967
1968# Check that the precious variables saved in the cache have kept the same
1969# value.
1970ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001971for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001976 case $ac_old_set,$ac_new_set in
1977 set,)
1978 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1981 ,set)
1982 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1985 ,);;
1986 *)
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001988 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001989echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001990 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001991echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001992 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001993echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001994 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001995 fi;;
1996 esac
1997 # Pass precious variables to config.status.
1998 if test "$ac_new_set" = set; then
1999 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002000 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002001 *) ac_arg=$ac_var=$ac_new_val ;;
2002 esac
2003 case " $ac_configure_args " in
2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006 esac
2007 fi
2008done
2009if $ac_cache_corrupted; then
2010 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014 { (exit 1); exit 1; }; }
2015fi
2016
Reid Spencera773bd52006-08-04 18:18:08 +00002017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
John Criswell7a73b802003-06-30 21:59:07 +00002041ac_ext=c
2042ac_cpp='$CPP $CPPFLAGS'
2043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046
2047
2048
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002049LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002050
2051
2052
2053
2054
2055
2056
John Criswell7a73b802003-06-30 21:59:07 +00002057ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002058for ac_dir in autoconf "$srcdir"/autoconf; do
2059 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002060 ac_aux_dir=$ac_dir
2061 ac_install_sh="$ac_aux_dir/install-sh -c"
2062 break
Reid Spencera773bd52006-08-04 18:18:08 +00002063 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install.sh -c"
2066 break
Reid Spencera773bd52006-08-04 18:18:08 +00002067 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/shtool install -c"
2070 break
2071 fi
2072done
2073if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002074 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2075echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002076 { (exit 1); exit 1; }; }
2077fi
Reid Spencera773bd52006-08-04 18:18:08 +00002078
2079# These three variables are undocumented and unsupported,
2080# and are intended to be withdrawn in a future Autoconf release.
2081# They can cause serious problems if a builder's source tree is in a directory
2082# whose full name contains unusual characters.
2083ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2086
John Criswell7a73b802003-06-30 21:59:07 +00002087
John Criswell392aaa32003-07-22 19:18:09 +00002088
Reid Spencer2706f8c2004-09-19 23:53:36 +00002089if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002090 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2091 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002092echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2093 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002094 fi
John Criswell93e1c722003-09-15 17:04:06 +00002095fi
2096
John Criswell33a911a2003-11-25 20:36:46 +00002097for i in `ls ${srcdir}/projects`
2098do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002099 if test -d ${srcdir}/projects/${i} ; then
2100 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 CVS) ;;
2102 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002103 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002104 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002108 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 ;;
2110 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002112 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002113 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002114 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002115 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002116 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002117 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002118 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002119 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002120 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002121 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002123 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002124 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002125 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2126echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002127 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002128 esac
John Criswell33a911a2003-11-25 20:36:46 +00002129 fi
2130done
John Criswell559a6c12003-09-30 16:31:48 +00002131
John Criswell7a73b802003-06-30 21:59:07 +00002132
2133# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002134$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2135 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2136echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002137 { (exit 1); exit 1; }; }
2138
Reid Spencera773bd52006-08-04 18:18:08 +00002139{ echo "$as_me:$LINENO: checking build system type" >&5
2140echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002141if test "${ac_cv_build+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
Reid Spencera773bd52006-08-04 18:18:08 +00002144 ac_build_alias=$build_alias
2145test "x$ac_build_alias" = x &&
2146 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2147test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002148 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2149echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2150 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002151ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2153echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002154 { (exit 1); exit 1; }; }
2155
2156fi
Reid Spencera773bd52006-08-04 18:18:08 +00002157{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2158echo "${ECHO_T}$ac_cv_build" >&6; }
2159case $ac_cv_build in
2160*-*-*) ;;
2161*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2162echo "$as_me: error: invalid value of canonical build" >&2;}
2163 { (exit 1); exit 1; }; };;
2164esac
John Criswell7a73b802003-06-30 21:59:07 +00002165build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002166ac_save_IFS=$IFS; IFS='-'
2167set x $ac_cv_build
2168shift
2169build_cpu=$1
2170build_vendor=$2
2171shift; shift
2172# Remember, the first character of IFS is used to create $*,
2173# except with old shells:
2174build_os=$*
2175IFS=$ac_save_IFS
2176case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002177
2178
Reid Spencera773bd52006-08-04 18:18:08 +00002179{ echo "$as_me:$LINENO: checking host system type" >&5
2180echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002181if test "${ac_cv_host+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
Reid Spencera773bd52006-08-04 18:18:08 +00002184 if test "x$host_alias" = x; then
2185 ac_cv_host=$ac_cv_build
2186else
2187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2188 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2189echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002190 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002191fi
John Criswell7a73b802003-06-30 21:59:07 +00002192
2193fi
Reid Spencera773bd52006-08-04 18:18:08 +00002194{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2195echo "${ECHO_T}$ac_cv_host" >&6; }
2196case $ac_cv_host in
2197*-*-*) ;;
2198*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2199echo "$as_me: error: invalid value of canonical host" >&2;}
2200 { (exit 1); exit 1; }; };;
2201esac
John Criswell7a73b802003-06-30 21:59:07 +00002202host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002203ac_save_IFS=$IFS; IFS='-'
2204set x $ac_cv_host
2205shift
2206host_cpu=$1
2207host_vendor=$2
2208shift; shift
2209# Remember, the first character of IFS is used to create $*,
2210# except with old shells:
2211host_os=$*
2212IFS=$ac_save_IFS
2213case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002214
2215
Reid Spencera773bd52006-08-04 18:18:08 +00002216{ echo "$as_me:$LINENO: checking target system type" >&5
2217echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002218if test "${ac_cv_target+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
Reid Spencera773bd52006-08-04 18:18:08 +00002221 if test "x$target_alias" = x; then
2222 ac_cv_target=$ac_cv_host
2223else
2224 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2225 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2226echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002227 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002228fi
John Criswell7a73b802003-06-30 21:59:07 +00002229
2230fi
Reid Spencera773bd52006-08-04 18:18:08 +00002231{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2232echo "${ECHO_T}$ac_cv_target" >&6; }
2233case $ac_cv_target in
2234*-*-*) ;;
2235*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2236echo "$as_me: error: invalid value of canonical target" >&2;}
2237 { (exit 1); exit 1; }; };;
2238esac
John Criswell7a73b802003-06-30 21:59:07 +00002239target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002240ac_save_IFS=$IFS; IFS='-'
2241set x $ac_cv_target
2242shift
2243target_cpu=$1
2244target_vendor=$2
2245shift; shift
2246# Remember, the first character of IFS is used to create $*,
2247# except with old shells:
2248target_os=$*
2249IFS=$ac_save_IFS
2250case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002251
2252
2253# The aliases save the names the user supplied, while $host etc.
2254# will get canonicalized.
2255test -n "$target_alias" &&
2256 test "$program_prefix$program_suffix$program_transform_name" = \
2257 NONENONEs,x,x, &&
2258 program_prefix=${target_alias}-
2259
Reid Spencera773bd52006-08-04 18:18:08 +00002260{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2261echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002265 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 llvm_cv_os_type="AIX"
2270 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002271 *-*-irix*)
2272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274 llvm_cv_os_type="IRIX"
2275 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279 llvm_cv_os_type="Cygwin"
2280 llvm_cv_platform_type="Unix" ;;
2281 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option="-Wl,-all_load"
2283 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="Darwin"
2285 llvm_cv_platform_type="Unix" ;;
2286 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289 llvm_cv_os_type="FreeBSD"
2290 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002291 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002294 llvm_cv_os_type="OpenBSD"
2295 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002296 *-*-netbsd*)
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="NetBSD"
2300 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002301 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002304 llvm_cv_os_type="HP-UX"
2305 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309 llvm_cv_os_type="Interix"
2310 llvm_cv_platform_type="Unix" ;;
2311 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314 llvm_cv_os_type="Linux"
2315 llvm_cv_platform_type="Unix" ;;
2316 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002317 llvm_cv_link_all_option="-Wl,-z,allextract"
2318 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002319 llvm_cv_os_type="SunOS"
2320 llvm_cv_platform_type="Unix" ;;
2321 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324 llvm_cv_os_type="Win32"
2325 llvm_cv_platform_type="Win32" ;;
2326 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329 llvm_cv_os_type="MingW"
2330 llvm_cv_platform_type="Win32" ;;
2331 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002332 llvm_cv_link_all_option=""
2333 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334 llvm_cv_os_type="Unknown"
2335 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002336esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002337fi
Reid Spencera773bd52006-08-04 18:18:08 +00002338{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2339echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002340
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341if test "$llvm_cv_os_type" = "Unknown" ; then
2342 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2343echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002344 { (exit 1); exit 1; }; }
2345fi
2346
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002348
2349
Reid Spencera773bd52006-08-04 18:18:08 +00002350LINKALL=$llvm_cv_link_all_option
2351
2352NOLINKALL=$llvm_cv_no_link_all_option
2353
2354
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355case $llvm_cv_platform_type in
2356 Unix)
2357
2358cat >>confdefs.h <<\_ACEOF
2359#define LLVM_ON_UNIX 1
2360_ACEOF
2361
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002362 LLVM_ON_UNIX=1
2363
2364 LLVM_ON_WIN32=0
2365
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366 ;;
2367 Win32)
2368
2369cat >>confdefs.h <<\_ACEOF
2370#define LLVM_ON_WIN32 1
2371_ACEOF
2372
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002373 LLVM_ON_UNIX=0
2374
2375 LLVM_ON_WIN32=1
2376
Reid Spencer7b3e8512004-12-24 06:29:05 +00002377 ;;
2378esac
2379
Reid Spencera773bd52006-08-04 18:18:08 +00002380{ echo "$as_me:$LINENO: checking target architecture" >&5
2381echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002382if test "${llvm_cv_target_arch+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384else
2385 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002386 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002387 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002388 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2389 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002390 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002391 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002392 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002393 mips-*) llvm_cv_target_arch="Mips" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002394 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002395esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396fi
Reid Spencera773bd52006-08-04 18:18:08 +00002397{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2398echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002399
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400if test "$llvm_cv_target_arch" = "Unknown" ; then
2401 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2402echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2403fi
John Criswell76595452003-07-01 22:07:39 +00002404
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002406
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408ac_ext=c
2409ac_cpp='$CPP $CPPFLAGS'
2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002413if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2415set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423else
2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435done
2436done
Reid Spencera773bd52006-08-04 18:18:08 +00002437IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438
2439fi
2440fi
2441CC=$ac_cv_prog_CC
2442if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002443 { echo "$as_me:$LINENO: result: $CC" >&5
2444echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002445else
Reid Spencera773bd52006-08-04 18:18:08 +00002446 { echo "$as_me:$LINENO: result: no" >&5
2447echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448fi
2449
Reid Spencera773bd52006-08-04 18:18:08 +00002450
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451fi
2452if test -z "$ac_cv_prog_CC"; then
2453 ac_ct_CC=$CC
2454 # Extract the first word of "gcc", so it can be a program name with args.
2455set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002458if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460else
2461 if test -n "$ac_ct_CC"; then
2462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471 ac_cv_prog_ac_ct_CC="gcc"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475done
2476done
Reid Spencera773bd52006-08-04 18:18:08 +00002477IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478
2479fi
2480fi
2481ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002483 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2484echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002485else
Reid Spencera773bd52006-08-04 18:18:08 +00002486 { echo "$as_me:$LINENO: result: no" >&5
2487echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488fi
2489
Reid Spencera773bd52006-08-04 18:18:08 +00002490 if test "x$ac_ct_CC" = x; then
2491 CC=""
2492 else
2493 case $cross_compiling:$ac_tool_warned in
2494yes:)
2495{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2496whose name does not start with the host triplet. If you think this
2497configuration is useful to you, please write to autoconf@gnu.org." >&5
2498echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2499whose name does not start with the host triplet. If you think this
2500configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2501ac_tool_warned=yes ;;
2502esac
2503 CC=$ac_ct_CC
2504 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505else
2506 CC="$ac_cv_prog_CC"
2507fi
2508
2509if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002510 if test -n "$ac_tool_prefix"; then
2511 # 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 +00002512set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002515if test "${ac_cv_prog_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528 ac_cv_prog_CC="${ac_tool_prefix}cc"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532done
2533done
Reid Spencera773bd52006-08-04 18:18:08 +00002534IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535
2536fi
2537fi
2538CC=$ac_cv_prog_CC
2539if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002540 { echo "$as_me:$LINENO: result: $CC" >&5
2541echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002542else
Reid Spencera773bd52006-08-04 18:18:08 +00002543 { echo "$as_me:$LINENO: result: no" >&5
2544echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545fi
2546
Reid Spencera773bd52006-08-04 18:18:08 +00002547
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002548 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002549fi
2550if test -z "$CC"; then
2551 # Extract the first word of "cc", so it can be a program name with args.
2552set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002555if test "${ac_cv_prog_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560else
2561 ac_prog_rejected=no
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2570 ac_prog_rejected=yes
2571 continue
2572 fi
2573 ac_cv_prog_CC="cc"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577done
2578done
Reid Spencera773bd52006-08-04 18:18:08 +00002579IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580
2581if test $ac_prog_rejected = yes; then
2582 # We found a bogon in the path, so make sure we never use it.
2583 set dummy $ac_cv_prog_CC
2584 shift
2585 if test $# != 0; then
2586 # We chose a different compiler from the bogus one.
2587 # However, it has the same basename, so the bogon will be chosen
2588 # first if we set CC to just the basename; use the full file name.
2589 shift
2590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2591 fi
2592fi
2593fi
2594fi
2595CC=$ac_cv_prog_CC
2596if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002597 { echo "$as_me:$LINENO: result: $CC" >&5
2598echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599else
Reid Spencera773bd52006-08-04 18:18:08 +00002600 { echo "$as_me:$LINENO: result: no" >&5
2601echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602fi
2603
Reid Spencera773bd52006-08-04 18:18:08 +00002604
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605fi
2606if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002608 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002609 do
2610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2611set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002619else
2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631done
2632done
Reid Spencera773bd52006-08-04 18:18:08 +00002633IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002634
2635fi
2636fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637CC=$ac_cv_prog_CC
2638if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002639 { echo "$as_me:$LINENO: result: $CC" >&5
2640echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002641else
Reid Spencera773bd52006-08-04 18:18:08 +00002642 { echo "$as_me:$LINENO: result: no" >&5
2643echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002644fi
2645
Reid Spencera773bd52006-08-04 18:18:08 +00002646
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002648 done
2649fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650if test -z "$CC"; then
2651 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002652 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002653do
2654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2655set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00002670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675done
2676done
Reid Spencera773bd52006-08-04 18:18:08 +00002677IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002678
2679fi
2680fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002683 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002685else
Reid Spencera773bd52006-08-04 18:18:08 +00002686 { echo "$as_me:$LINENO: result: no" >&5
2687echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002688fi
2689
Reid Spencera773bd52006-08-04 18:18:08 +00002690
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002691 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002692done
John Criswell7a73b802003-06-30 21:59:07 +00002693
Reid Spencera773bd52006-08-04 18:18:08 +00002694 if test "x$ac_ct_CC" = x; then
2695 CC=""
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698yes:)
2699{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2700whose name does not start with the host triplet. If you think this
2701configuration is useful to you, please write to autoconf@gnu.org." >&5
2702echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2703whose name does not start with the host triplet. If you think this
2704configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2705ac_tool_warned=yes ;;
2706esac
2707 CC=$ac_ct_CC
2708 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709fi
2710
John Criswell7a73b802003-06-30 21:59:07 +00002711fi
2712
2713
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002714test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2715See \`config.log' for more details." >&5
2716echo "$as_me: error: no acceptable C compiler found in \$PATH
2717See \`config.log' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2719
John Criswell7a73b802003-06-30 21:59:07 +00002720# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002721echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002722ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002723{ (ac_try="$ac_compiler --version >&5"
2724case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002733{ (ac_try="$ac_compiler -v >&5"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002743{ (ac_try="$ac_compiler -V >&5"
2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
2748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }
2753
2754cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002755/* confdefs.h. */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
2759/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002760
John Criswell7a73b802003-06-30 21:59:07 +00002761int
2762main ()
2763{
2764
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002770ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002771# Try to create an executable without -o first, disregard a.out.
2772# It will help us diagnose broken compilers, and finding out an intuition
2773# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002774{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2775echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002776ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002777#
2778# List of possible output files, starting from the most likely.
2779# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2780# only as a last resort. b.out is created by i960 compilers.
2781ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2782#
2783# The IRIX 6 linker writes into existing files which may not be
2784# executable, retaining their permissions. Remove them first so a
2785# subsequent execution test works.
2786ac_rmfiles=
2787for ac_file in $ac_files
2788do
2789 case $ac_file in
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2791 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2792 esac
2793done
2794rm -f $ac_rmfiles
2795
2796if { (ac_try="$ac_link_default"
2797case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800esac
2801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2807# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2808# in a Makefile. We should not override ac_cv_exeext if it was cached,
2809# so that the user can short-circuit this test for compilers unknown to
2810# Autoconf.
Scott Michel96dcd2b2007-12-05 21:24:02 +00002811for ac_file in $ac_files ''
John Criswell0c38eaf2003-09-10 15:17:25 +00002812do
2813 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002814 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002816 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002817 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002818 # We found the default executable, but exeext='' is most
2819 # certainly right.
2820 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002821 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2823 then :; else
2824 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2825 fi
2826 # We set ac_cv_exeext here because the later test for it is not
2827 # safe: cross compilers may not add the suffix if given an `-o'
2828 # argument, so we may need to know it at that point already.
2829 # Even if this section looks crufty: it has the advantage of
2830 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002831 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002832 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002833 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002834 esac
2835done
Reid Spencera773bd52006-08-04 18:18:08 +00002836test "$ac_cv_exeext" = no && ac_cv_exeext=
2837
John Criswell7a73b802003-06-30 21:59:07 +00002838else
Scott Michel96dcd2b2007-12-05 21:24:02 +00002839 ac_file=''
2840fi
2841
2842{ echo "$as_me:$LINENO: result: $ac_file" >&5
2843echo "${ECHO_T}$ac_file" >&6; }
2844if test -z "$ac_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00002845 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002846sed 's/^/| /' conftest.$ac_ext >&5
2847
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002848{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002849See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002850echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002851See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002852 { (exit 77); exit 77; }; }
2853fi
2854
2855ac_exeext=$ac_cv_exeext
John Criswell7a73b802003-06-30 21:59:07 +00002856
Reid Spencera773bd52006-08-04 18:18:08 +00002857# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002858# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002859{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2860echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002861# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2862# If not cross compiling, check that we can run a simple program.
2863if test "$cross_compiling" != yes; then
2864 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002865 { (case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868esac
2869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 cross_compiling=no
2875 else
2876 if test "$cross_compiling" = maybe; then
2877 cross_compiling=yes
2878 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002879 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002880If you meant to cross compile, use \`--host'.
2881See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002882echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002883If you meant to cross compile, use \`--host'.
2884See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002885 { (exit 1); exit 1; }; }
2886 fi
2887 fi
2888fi
Reid Spencera773bd52006-08-04 18:18:08 +00002889{ echo "$as_me:$LINENO: result: yes" >&5
2890echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002891
John Criswell0c38eaf2003-09-10 15:17:25 +00002892rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002893ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002894# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002895# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002896{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2897echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2898{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2899echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002900
Reid Spencera773bd52006-08-04 18:18:08 +00002901{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2902echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2903if { (ac_try="$ac_link"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; then
2913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2914# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2915# work properly (i.e., refer to `conftest.exe'), while it won't with
2916# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002917for ac_file in conftest.exe conftest conftest.*; do
2918 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002919 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002922 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002923 * ) break;;
2924 esac
2925done
2926else
John Criswell0c38eaf2003-09-10 15:17:25 +00002927 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2928See \`config.log' for more details." >&5
2929echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2930See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002931 { (exit 1); exit 1; }; }
2932fi
2933
2934rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002935{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2936echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002937
2938rm -f conftest.$ac_ext
2939EXEEXT=$ac_cv_exeext
2940ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002941{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2942echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002943if test "${ac_cv_objext+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945else
2946 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002952
John Criswell7a73b802003-06-30 21:59:07 +00002953int
2954main ()
2955{
2956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002962if { (ac_try="$ac_compile"
2963case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002972 for ac_file in conftest.o conftest.obj conftest.*; do
2973 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002974 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2977 break;;
2978 esac
2979done
2980else
2981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2985See \`config.log' for more details." >&5
2986echo "$as_me: error: cannot compute suffix of object files: cannot compile
2987See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002988 { (exit 1); exit 1; }; }
2989fi
2990
2991rm -f conftest.$ac_cv_objext conftest.$ac_ext
2992fi
Reid Spencera773bd52006-08-04 18:18:08 +00002993{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2994echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002995OBJEXT=$ac_cv_objext
2996ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002997{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2998echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002999if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003008
John Criswell7a73b802003-06-30 21:59:07 +00003009int
3010main ()
3011{
3012#ifndef __GNUC__
3013 choke me
3014#endif
3015
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003021if { (ac_try="$ac_compile"
3022case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003033 (exit $ac_status); } && {
3034 test -z "$ac_c_werror_flag" ||
3035 test ! -s conftest.err
3036 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +00003037 ac_compiler_gnu=yes
3038else
3039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003040sed 's/^/| /' conftest.$ac_ext >&5
3041
Reid Spencera773bd52006-08-04 18:18:08 +00003042 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003043fi
Reid Spencera773bd52006-08-04 18:18:08 +00003044
3045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003046ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003047
3048fi
Reid Spencera773bd52006-08-04 18:18:08 +00003049{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3050echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003051GCC=`test $ac_compiler_gnu = yes && echo yes`
3052ac_test_CFLAGS=${CFLAGS+set}
3053ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003054{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3055echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003056if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
Reid Spencera773bd52006-08-04 18:18:08 +00003059 ac_save_c_werror_flag=$ac_c_werror_flag
3060 ac_c_werror_flag=yes
3061 ac_cv_prog_cc_g=no
3062 CFLAGS="-g"
3063 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003064/* confdefs.h. */
3065_ACEOF
3066cat confdefs.h >>conftest.$ac_ext
3067cat >>conftest.$ac_ext <<_ACEOF
3068/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003069
John Criswell7a73b802003-06-30 21:59:07 +00003070int
3071main ()
3072{
3073
3074 ;
3075 return 0;
3076}
3077_ACEOF
3078rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003079if { (ac_try="$ac_compile"
3080case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003087 grep -v '^ *+' conftest.er1 >conftest.err
3088 rm -f conftest.er1
3089 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003095 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003096else
3097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003098sed 's/^/| /' conftest.$ac_ext >&5
3099
Reid Spencera773bd52006-08-04 18:18:08 +00003100 CFLAGS=""
3101 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107
3108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext
3117if { (ac_try="$ac_compile"
3118case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003129 (exit $ac_status); } && {
3130 test -z "$ac_c_werror_flag" ||
3131 test ! -s conftest.err
3132 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003133 :
3134else
3135 echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3139 CFLAGS="-g"
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
3146
3147int
3148main ()
3149{
3150
3151 ;
3152 return 0;
3153}
3154_ACEOF
3155rm -f conftest.$ac_objext
3156if { (ac_try="$ac_compile"
3157case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003168 (exit $ac_status); } && {
3169 test -z "$ac_c_werror_flag" ||
3170 test ! -s conftest.err
3171 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003172 ac_cv_prog_cc_g=yes
3173else
3174 echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
John Criswell7a73b802003-06-30 21:59:07 +00003178fi
Reid Spencera773bd52006-08-04 18:18:08 +00003179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003181fi
Reid Spencera773bd52006-08-04 18:18:08 +00003182
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184fi
3185
3186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3188fi
3189{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3190echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003191if test "$ac_test_CFLAGS" = set; then
3192 CFLAGS=$ac_save_CFLAGS
3193elif test $ac_cv_prog_cc_g = yes; then
3194 if test "$GCC" = yes; then
3195 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003196 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003198 fi
3199else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003200 if test "$GCC" = yes; then
3201 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003202 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003203 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003204 fi
3205fi
Reid Spencera773bd52006-08-04 18:18:08 +00003206{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3207echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3208if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
Reid Spencera773bd52006-08-04 18:18:08 +00003211 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212ac_save_CC=$CC
3213cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
3219#include <stdarg.h>
3220#include <stdio.h>
3221#include <sys/types.h>
3222#include <sys/stat.h>
3223/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224struct buf { int x; };
3225FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226static char *e (p, i)
3227 char **p;
3228 int i;
3229{
3230 return p[i];
3231}
3232static char *f (char * (*g) (char **, int), char **p, ...)
3233{
3234 char *s;
3235 va_list v;
3236 va_start (v,p);
3237 s = g (p, va_arg (v,int));
3238 va_end (v);
3239 return s;
3240}
3241
3242/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003245 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003248 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003249int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3250
Reid Spencera773bd52006-08-04 18:18:08 +00003251/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3253#define FOO(x) 'x'
3254int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3255
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256int test (int i, double x);
3257struct s1 {int (*f) (int a);};
3258struct s2 {int (*f) (double a);};
3259int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3260int argc;
3261char **argv;
3262int
3263main ()
3264{
3265return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3266 ;
3267 return 0;
3268}
3269_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003270for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272do
3273 CC="$ac_save_CC $ac_arg"
3274 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003275if { (ac_try="$ac_compile"
3276case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279esac
3280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282 ac_status=$?
3283 grep -v '^ *+' conftest.er1 >conftest.err
3284 rm -f conftest.er1
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003287 (exit $ac_status); } && {
3288 test -z "$ac_c_werror_flag" ||
3289 test ! -s conftest.err
3290 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003291 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292else
3293 echo "$as_me: failed program was:" >&5
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
Reid Spencera773bd52006-08-04 18:18:08 +00003296
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297fi
Reid Spencera773bd52006-08-04 18:18:08 +00003298
3299rm -f core conftest.err conftest.$ac_objext
3300 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003301done
Reid Spencera773bd52006-08-04 18:18:08 +00003302rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303CC=$ac_save_CC
3304
3305fi
Reid Spencera773bd52006-08-04 18:18:08 +00003306# AC_CACHE_VAL
3307case "x$ac_cv_prog_cc_c89" in
3308 x)
3309 { echo "$as_me:$LINENO: result: none needed" >&5
3310echo "${ECHO_T}none needed" >&6; } ;;
3311 xno)
3312 { echo "$as_me:$LINENO: result: unsupported" >&5
3313echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003315 CC="$CC $ac_cv_prog_cc_c89"
3316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3317echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318esac
3319
John Criswell0c38eaf2003-09-10 15:17:25 +00003320
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321ac_ext=c
3322ac_cpp='$CPP $CPPFLAGS'
3323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326
3327
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328ac_ext=c
3329ac_cpp='$CPP $CPPFLAGS'
3330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003333{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3334echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335# On Suns, sometimes $CPP names a directory.
3336if test -n "$CPP" && test -d "$CPP"; then
3337 CPP=
3338fi
3339if test -z "$CPP"; then
3340 if test "${ac_cv_prog_CPP+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343 # Double quotes because CPP needs to be expanded
3344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3345 do
3346 ac_preproc_ok=false
3347for ac_c_preproc_warn_flag in '' yes
3348do
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361#ifdef __STDC__
3362# include <limits.h>
3363#else
3364# include <assert.h>
3365#endif
3366 Syntax error
3367_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003368if { (ac_try="$ac_cpp conftest.$ac_ext"
3369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
3373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003380 (exit $ac_status); } >/dev/null && {
3381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3382 test ! -s conftest.err
3383 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384 :
3385else
3386 echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 # Broken: fails on valid input.
3390continue
3391fi
Reid Spencera773bd52006-08-04 18:18:08 +00003392
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393rm -f conftest.err conftest.$ac_ext
3394
Reid Spencera773bd52006-08-04 18:18:08 +00003395 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h. */
3403#include <ac_nonexistent.h>
3404_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003405if { (ac_try="$ac_cpp conftest.$ac_ext"
3406case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409esac
3410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003417 (exit $ac_status); } >/dev/null && {
3418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421 # Broken: success on invalid input.
3422continue
3423else
3424 echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
3427 # Passes both tests.
3428ac_preproc_ok=:
3429break
3430fi
Reid Spencera773bd52006-08-04 18:18:08 +00003431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432rm -f conftest.err conftest.$ac_ext
3433
3434done
3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436rm -f conftest.err conftest.$ac_ext
3437if $ac_preproc_ok; then
3438 break
3439fi
3440
3441 done
3442 ac_cv_prog_CPP=$CPP
3443
3444fi
3445 CPP=$ac_cv_prog_CPP
3446else
3447 ac_cv_prog_CPP=$CPP
3448fi
Reid Spencera773bd52006-08-04 18:18:08 +00003449{ echo "$as_me:$LINENO: result: $CPP" >&5
3450echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451ac_preproc_ok=false
3452for ac_c_preproc_warn_flag in '' yes
3453do
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
3460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466#ifdef __STDC__
3467# include <limits.h>
3468#else
3469# include <assert.h>
3470#endif
3471 Syntax error
3472_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003473if { (ac_try="$ac_cpp conftest.$ac_ext"
3474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
3478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003485 (exit $ac_status); } >/dev/null && {
3486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489 :
3490else
3491 echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 # Broken: fails on valid input.
3495continue
3496fi
Reid Spencera773bd52006-08-04 18:18:08 +00003497
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498rm -f conftest.err conftest.$ac_ext
3499
Reid Spencera773bd52006-08-04 18:18:08 +00003500 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501 # can be detected and how.
3502 cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h. */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h. */
3508#include <ac_nonexistent.h>
3509_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003510if { (ac_try="$ac_cpp conftest.$ac_ext"
3511case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514esac
3515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003522 (exit $ac_status); } >/dev/null && {
3523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3524 test ! -s conftest.err
3525 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003526 # Broken: success on invalid input.
3527continue
3528else
3529 echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 # Passes both tests.
3533ac_preproc_ok=:
3534break
3535fi
Reid Spencera773bd52006-08-04 18:18:08 +00003536
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537rm -f conftest.err conftest.$ac_ext
3538
3539done
3540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541rm -f conftest.err conftest.$ac_ext
3542if $ac_preproc_ok; then
3543 :
3544else
3545 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3546See \`config.log' for more details." >&5
3547echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3548See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3550fi
3551
John Criswell7a73b802003-06-30 21:59:07 +00003552ac_ext=c
3553ac_cpp='$CPP $CPPFLAGS'
3554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557
John Criswell7a73b802003-06-30 21:59:07 +00003558
Reid Spencera773bd52006-08-04 18:18:08 +00003559{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3560echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003561if test "${ac_cv_path_GREP+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
Reid Spencera773bd52006-08-04 18:18:08 +00003564 # Extract the first word of "grep ggrep" to use in msg output
3565if test -z "$GREP"; then
3566set dummy grep ggrep; ac_prog_name=$2
3567if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569else
Reid Spencera773bd52006-08-04 18:18:08 +00003570 ac_path_GREP_found=false
3571# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003573for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003574do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003577 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003578 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003579 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Scott Michel96dcd2b2007-12-05 21:24:02 +00003580 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003581 # Check for GNU ac_path_GREP and select it if it is found.
3582 # Check for GNU $ac_path_GREP
3583case `"$ac_path_GREP" --version 2>&1` in
3584*GNU*)
3585 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3586*)
3587 ac_count=0
3588 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3589 while :
3590 do
3591 cat "conftest.in" "conftest.in" >"conftest.tmp"
3592 mv "conftest.tmp" "conftest.in"
3593 cp "conftest.in" "conftest.nl"
3594 echo 'GREP' >> "conftest.nl"
3595 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3597 ac_count=`expr $ac_count + 1`
3598 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3599 # Best one so far, save it but keep looking for a better one
3600 ac_cv_path_GREP="$ac_path_GREP"
3601 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003602 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003603 # 10*(2^10) chars as input seems more than enough
3604 test $ac_count -gt 10 && break
3605 done
3606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3607esac
3608
3609
3610 $ac_path_GREP_found && break 3
3611 done
3612done
3613
3614done
3615IFS=$as_save_IFS
3616
3617
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003618fi
Reid Spencera773bd52006-08-04 18:18:08 +00003619
3620GREP="$ac_cv_path_GREP"
3621if test -z "$GREP"; then
3622 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3623echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3624 { (exit 1); exit 1; }; }
3625fi
3626
3627else
3628 ac_cv_path_GREP=$GREP
3629fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003630
John Criswell7a73b802003-06-30 21:59:07 +00003631
Reid Spencera773bd52006-08-04 18:18:08 +00003632fi
3633{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3634echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3635 GREP="$ac_cv_path_GREP"
3636
3637
3638{ echo "$as_me:$LINENO: checking for egrep" >&5
3639echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3640if test "${ac_cv_path_EGREP+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3644 then ac_cv_path_EGREP="$GREP -E"
3645 else
3646 # Extract the first word of "egrep" to use in msg output
3647if test -z "$EGREP"; then
3648set dummy egrep; ac_prog_name=$2
3649if test "${ac_cv_path_EGREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
3652 ac_path_EGREP_found=false
3653# Loop through the user's path and test for each of PROGNAME-LIST
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3656do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_prog in egrep; do
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Scott Michel96dcd2b2007-12-05 21:24:02 +00003662 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003663 # Check for GNU ac_path_EGREP and select it if it is found.
3664 # Check for GNU $ac_path_EGREP
3665case `"$ac_path_EGREP" --version 2>&1` in
3666*GNU*)
3667 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3668*)
3669 ac_count=0
3670 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3671 while :
3672 do
3673 cat "conftest.in" "conftest.in" >"conftest.tmp"
3674 mv "conftest.tmp" "conftest.in"
3675 cp "conftest.in" "conftest.nl"
3676 echo 'EGREP' >> "conftest.nl"
3677 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679 ac_count=`expr $ac_count + 1`
3680 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3681 # Best one so far, save it but keep looking for a better one
3682 ac_cv_path_EGREP="$ac_path_EGREP"
3683 ac_path_EGREP_max=$ac_count
3684 fi
3685 # 10*(2^10) chars as input seems more than enough
3686 test $ac_count -gt 10 && break
3687 done
3688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3689esac
3690
3691
3692 $ac_path_EGREP_found && break 3
3693 done
3694done
3695
3696done
3697IFS=$as_save_IFS
3698
3699
3700fi
3701
3702EGREP="$ac_cv_path_EGREP"
3703if test -z "$EGREP"; then
3704 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3705echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3706 { (exit 1); exit 1; }; }
3707fi
3708
3709else
3710 ac_cv_path_EGREP=$EGREP
3711fi
3712
3713
3714 fi
3715fi
3716{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3717echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3718 EGREP="$ac_cv_path_EGREP"
3719
3720
3721{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3722echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003723if test "${ac_cv_header_stdc+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725else
3726 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003727/* confdefs.h. */
3728_ACEOF
3729cat confdefs.h >>conftest.$ac_ext
3730cat >>conftest.$ac_ext <<_ACEOF
3731/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003732#include <stdlib.h>
3733#include <stdarg.h>
3734#include <string.h>
3735#include <float.h>
3736
John Criswell0c38eaf2003-09-10 15:17:25 +00003737int
3738main ()
3739{
3740
3741 ;
3742 return 0;
3743}
John Criswell7a73b802003-06-30 21:59:07 +00003744_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003745rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003746if { (ac_try="$ac_compile"
3747case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750esac
3751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003753 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003754 grep -v '^ *+' conftest.er1 >conftest.err
3755 rm -f conftest.er1
3756 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003758 (exit $ac_status); } && {
3759 test -z "$ac_c_werror_flag" ||
3760 test ! -s conftest.err
3761 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +00003762 ac_cv_header_stdc=yes
3763else
3764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003765sed 's/^/| /' conftest.$ac_ext >&5
3766
Reid Spencera773bd52006-08-04 18:18:08 +00003767 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003768fi
Reid Spencera773bd52006-08-04 18:18:08 +00003769
3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003771
3772if test $ac_cv_header_stdc = yes; then
3773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3774 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003775/* confdefs.h. */
3776_ACEOF
3777cat confdefs.h >>conftest.$ac_ext
3778cat >>conftest.$ac_ext <<_ACEOF
3779/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003780#include <string.h>
3781
3782_ACEOF
3783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003784 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003785 :
3786else
3787 ac_cv_header_stdc=no
3788fi
3789rm -f conftest*
3790
3791fi
3792
3793if test $ac_cv_header_stdc = yes; then
3794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3795 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003801#include <stdlib.h>
3802
3803_ACEOF
3804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003805 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003806 :
3807else
3808 ac_cv_header_stdc=no
3809fi
3810rm -f conftest*
3811
3812fi
3813
3814if test $ac_cv_header_stdc = yes; then
3815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816 if test "$cross_compiling" = yes; then
3817 :
3818else
3819 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003820/* confdefs.h. */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003825#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003826#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003827#if ((' ' & 0x0FF) == 0x020)
3828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3830#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003831# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003832 (('a' <= (c) && (c) <= 'i') \
3833 || ('j' <= (c) && (c) <= 'r') \
3834 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3836#endif
3837
3838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3839int
3840main ()
3841{
3842 int i;
3843 for (i = 0; i < 256; i++)
3844 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003845 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003846 return 2;
3847 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003848}
3849_ACEOF
3850rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003851if { (ac_try="$ac_link"
3852case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003861 { (case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864esac
3865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 :
3871else
3872 echo "$as_me: program exited with status $ac_status" >&5
3873echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003874sed 's/^/| /' conftest.$ac_ext >&5
3875
John Criswell7a73b802003-06-30 21:59:07 +00003876( exit $ac_status )
3877ac_cv_header_stdc=no
3878fi
Reid Spencera773bd52006-08-04 18:18:08 +00003879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3880fi
3881
3882
John Criswell7a73b802003-06-30 21:59:07 +00003883fi
3884fi
Reid Spencera773bd52006-08-04 18:18:08 +00003885{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3886echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003887if test $ac_cv_header_stdc = yes; then
3888
3889cat >>confdefs.h <<\_ACEOF
3890#define STDC_HEADERS 1
3891_ACEOF
3892
3893fi
3894
Reid Spencera773bd52006-08-04 18:18:08 +00003895# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3906 inttypes.h stdint.h unistd.h
3907do
3908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3909{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 cat >conftest.$ac_ext <<_ACEOF
3915/* confdefs.h. */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h. */
3920$ac_includes_default
3921
3922#include <$ac_header>
3923_ACEOF
3924rm -f conftest.$ac_objext
3925if { (ac_try="$ac_compile"
3926case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929esac
3930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_compile") 2>conftest.er1
3932 ac_status=$?
3933 grep -v '^ *+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00003937 (exit $ac_status); } && {
3938 test -z "$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3940 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003941 eval "$as_ac_Header=yes"
3942else
3943 echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
3945
3946 eval "$as_ac_Header=no"
3947fi
3948
3949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950fi
3951ac_res=`eval echo '${'$as_ac_Header'}'`
3952 { echo "$as_me:$LINENO: result: $ac_res" >&5
3953echo "${ECHO_T}$ac_res" >&6; }
3954if test `eval echo '${'$as_ac_Header'}'` = yes; then
3955 cat >>confdefs.h <<_ACEOF
3956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957_ACEOF
3958
3959fi
3960
3961done
3962
3963
3964{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3965echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3966if test "${ac_cv_c_bigendian+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969 # See if sys/param.h defines the BYTE_ORDER macro.
3970cat >conftest.$ac_ext <<_ACEOF
3971/* confdefs.h. */
3972_ACEOF
3973cat confdefs.h >>conftest.$ac_ext
3974cat >>conftest.$ac_ext <<_ACEOF
3975/* end confdefs.h. */
3976#include <sys/types.h>
3977#include <sys/param.h>
3978
3979int
3980main ()
3981{
Scott Michel96dcd2b2007-12-05 21:24:02 +00003982#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3983 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Reid Spencera773bd52006-08-04 18:18:08 +00003984 bogus endian macros
3985#endif
3986
3987 ;
3988 return 0;
3989}
3990_ACEOF
3991rm -f conftest.$ac_objext
3992if { (ac_try="$ac_compile"
3993case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996esac
3997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004008 # It does; now see whether it defined to BIG_ENDIAN or not.
4009cat >conftest.$ac_ext <<_ACEOF
4010/* confdefs.h. */
4011_ACEOF
4012cat confdefs.h >>conftest.$ac_ext
4013cat >>conftest.$ac_ext <<_ACEOF
4014/* end confdefs.h. */
4015#include <sys/types.h>
4016#include <sys/param.h>
4017
4018int
4019main ()
4020{
4021#if BYTE_ORDER != BIG_ENDIAN
4022 not big endian
4023#endif
4024
4025 ;
4026 return 0;
4027}
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
Scott Michel96dcd2b2007-12-05 21:24:02 +00004042 (exit $ac_status); } && {
4043 test -z "$ac_c_werror_flag" ||
4044 test ! -s conftest.err
4045 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004046 ac_cv_c_bigendian=yes
4047else
4048 echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 ac_cv_c_bigendian=no
4052fi
4053
4054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055else
4056 echo "$as_me: failed program was:" >&5
4057sed 's/^/| /' conftest.$ac_ext >&5
4058
4059 # It does not; compile a test program.
4060if test "$cross_compiling" = yes; then
4061 # try to guess the endianness by grepping values into an object file
4062 ac_cv_c_bigendian=unknown
4063 cat >conftest.$ac_ext <<_ACEOF
4064/* confdefs.h. */
4065_ACEOF
4066cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */
4069short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4070short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4071void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4072short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4073short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4074void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4075int
4076main ()
4077{
4078 _ascii (); _ebcdic ();
4079 ;
4080 return 0;
4081}
4082_ACEOF
4083rm -f conftest.$ac_objext
4084if { (ac_try="$ac_compile"
4085case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088esac
4089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compile") 2>conftest.er1
4091 ac_status=$?
4092 grep -v '^ *+' conftest.er1 >conftest.err
4093 rm -f conftest.er1
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004096 (exit $ac_status); } && {
4097 test -z "$ac_c_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004100 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4101 ac_cv_c_bigendian=yes
4102fi
4103if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4104 if test "$ac_cv_c_bigendian" = unknown; then
4105 ac_cv_c_bigendian=no
4106 else
4107 # finding both strings is unlikely to happen, but who knows?
4108 ac_cv_c_bigendian=unknown
4109 fi
4110fi
4111else
4112 echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
4115
4116fi
4117
4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119else
4120 cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h. */
4126$ac_includes_default
4127int
4128main ()
4129{
4130
4131 /* Are we little or big endian? From Harbison&Steele. */
4132 union
4133 {
4134 long int l;
4135 char c[sizeof (long int)];
4136 } u;
4137 u.l = 1;
4138 return u.c[sizeof (long int) - 1] == 1;
4139
4140 ;
4141 return 0;
4142}
4143_ACEOF
4144rm -f conftest$ac_exeext
4145if { (ac_try="$ac_link"
4146case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 ac_cv_c_bigendian=no
4165else
4166 echo "$as_me: program exited with status $ac_status" >&5
4167echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170( exit $ac_status )
4171ac_cv_c_bigendian=yes
4172fi
4173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4174fi
4175
4176
4177fi
4178
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180fi
4181{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4182echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4183case $ac_cv_c_bigendian in
4184 yes)
4185 ENDIAN=big
4186 ;;
4187 no)
4188 ENDIAN=little
4189 ;;
4190 *)
4191 { { echo "$as_me:$LINENO: error: unknown endianness
4192presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4193echo "$as_me: error: unknown endianness
4194presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4195 { (exit 1); exit 1; }; } ;;
4196esac
4197
4198
4199if test "$cross_compiling" = yes; then
4200 LLVM_CROSS_COMPILING=1
4201
4202
4203{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4204echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4205if test "${ac_cv_build_exeext+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4209 ac_cv_build_exeext=.exe
4210else
4211 ac_build_prefix=${build_alias}-
4212
4213 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4214set dummy ${ac_build_prefix}gcc; ac_word=$2
4215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4217if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220 if test -n "$BUILD_CC"; then
4221 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4222else
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004230 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234done
4235done
4236IFS=$as_save_IFS
4237
4238fi
4239fi
4240BUILD_CC=$ac_cv_prog_BUILD_CC
4241if test -n "$BUILD_CC"; then
4242 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4243echo "${ECHO_T}$BUILD_CC" >&6; }
4244else
4245 { echo "$as_me:$LINENO: result: no" >&5
4246echo "${ECHO_T}no" >&6; }
4247fi
4248
4249
4250 if test -z "$BUILD_CC"; then
4251 # Extract the first word of "gcc", so it can be a program name with args.
4252set dummy gcc; ac_word=$2
4253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
4258 if test -n "$BUILD_CC"; then
4259 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4260else
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004268 ac_cv_prog_BUILD_CC="gcc"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272done
4273done
4274IFS=$as_save_IFS
4275
4276fi
4277fi
4278BUILD_CC=$ac_cv_prog_BUILD_CC
4279if test -n "$BUILD_CC"; then
4280 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4281echo "${ECHO_T}$BUILD_CC" >&6; }
4282else
4283 { echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6; }
4285fi
4286
4287
4288 if test -z "$BUILD_CC"; then
4289 # Extract the first word of "cc", so it can be a program name with args.
4290set dummy cc; ac_word=$2
4291{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296 if test -n "$BUILD_CC"; then
4297 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4298else
4299 ac_prog_rejected=no
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4308 ac_prog_rejected=yes
4309 continue
4310 fi
4311 ac_cv_prog_BUILD_CC="cc"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315done
4316done
4317IFS=$as_save_IFS
4318
4319if test $ac_prog_rejected = yes; then
4320 # We found a bogon in the path, so make sure we never use it.
4321 set dummy $ac_cv_prog_BUILD_CC
4322 shift
4323 if test $# != 0; then
4324 # We chose a different compiler from the bogus one.
4325 # However, it has the same basename, so the bogon will be chosen
4326 # first if we set BUILD_CC to just the basename; use the full file name.
4327 shift
4328 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4329 fi
4330fi
4331fi
4332fi
4333BUILD_CC=$ac_cv_prog_BUILD_CC
4334if test -n "$BUILD_CC"; then
4335 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4336echo "${ECHO_T}$BUILD_CC" >&6; }
4337else
4338 { echo "$as_me:$LINENO: result: no" >&5
4339echo "${ECHO_T}no" >&6; }
4340fi
4341
4342
4343 fi
4344 fi
4345 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4346echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4347 { (exit 1); exit 1; }; }
4348 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4349 rm -f conftest*
4350 echo 'int main () { return 0; }' > conftest.$ac_ext
4351 ac_cv_build_exeext=
4352 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4353 (eval $ac_build_link) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; then
4357 for file in conftest.*; do
4358 case $file in
4359 *.c | *.o | *.obj) ;;
4360 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4361 esac
4362 done
4363 else
4364 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4365echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4366 { (exit 1); exit 1; }; }
4367 fi
4368 rm -f conftest*
4369 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4370fi
4371fi
4372
4373BUILD_EXEEXT=""
4374test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4375{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4376echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4377ac_build_exeext=$BUILD_EXEEXT
4378
4379else
4380 LLVM_CROSS_COMPILING=0
4381
4382fi
4383
Reid Spencer0b1e4662007-04-02 15:41:39 +00004384if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004385 cvsbuild="yes"
4386 optimize="no"
4387 CVSBUILD=CVSBUILD=1
4388
4389else
4390 cvsbuild="no"
4391 optimize="yes"
4392fi
4393
4394
4395# Check whether --enable-optimized was given.
4396if test "${enable_optimized+set}" = set; then
4397 enableval=$enable_optimized;
4398else
4399 enableval=$optimize
4400fi
4401
4402if test ${enableval} = "no" ; then
4403 ENABLE_OPTIMIZED=
4404
4405else
4406 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4407
4408fi
4409
4410# Check whether --enable-assertions was given.
4411if test "${enable_assertions+set}" = set; then
4412 enableval=$enable_assertions;
4413else
4414 enableval="yes"
4415fi
4416
4417if test ${enableval} = "yes" ; then
4418 DISABLE_ASSERTIONS=
4419
4420else
4421 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4422
4423fi
4424
David Greenea696d242007-06-28 19:36:08 +00004425# Check whether --enable-expensive-checks was given.
4426if test "${enable_expensive_checks+set}" = set; then
4427 enableval=$enable_expensive_checks;
4428else
4429 enableval="no"
4430fi
4431
4432if test ${enableval} = "yes" ; then
4433 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4434
4435 EXPENSIVE_CHECKS=yes
4436
4437else
4438 ENABLE_EXPENSIVE_CHECKS=
4439
4440 EXPENSIVE_CHECKS=no
4441
4442fi
4443
Reid Spencer8b2e1412006-11-17 03:32:33 +00004444# Check whether --enable-debug-runtime was given.
4445if test "${enable_debug_runtime+set}" = set; then
4446 enableval=$enable_debug_runtime;
4447else
4448 enableval=no
4449fi
4450
4451if test ${enableval} = "no" ; then
4452 DEBUG_RUNTIME=
4453
4454else
4455 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4456
4457fi
4458
Reid Spencera773bd52006-08-04 18:18:08 +00004459# Check whether --enable-jit was given.
4460if test "${enable_jit+set}" = set; then
4461 enableval=$enable_jit;
4462else
4463 enableval=default
4464fi
4465
4466if test ${enableval} = "no"
4467then
4468 JIT=
4469
4470else
4471 case "$llvm_cv_target_arch" in
4472 x86) TARGET_HAS_JIT=1
4473 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004474 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004475 ;;
4476 PowerPC) TARGET_HAS_JIT=1
4477 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004478 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004479 ;;
4480 Alpha) TARGET_HAS_JIT=1
4481 ;;
4482 IA64) TARGET_HAS_JIT=0
4483 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004484 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004485 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004486 Mips) TARGET_HAS_JIT=0
4487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004488 *) TARGET_HAS_JIT=0
4489 ;;
4490 esac
4491fi
4492
4493# Check whether --enable-doxygen was given.
4494if test "${enable_doxygen+set}" = set; then
4495 enableval=$enable_doxygen;
4496else
4497 enableval=default
4498fi
4499
4500case "$enableval" in
4501 yes) ENABLE_DOXYGEN=1
4502 ;;
4503 no) ENABLE_DOXYGEN=0
4504 ;;
4505 default) ENABLE_DOXYGEN=0
4506 ;;
4507 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4508echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4509 { (exit 1); exit 1; }; } ;;
4510esac
4511
4512# Check whether --enable-threads was given.
4513if test "${enable_threads+set}" = set; then
4514 enableval=$enable_threads;
4515else
Reid Spencer65c5d752006-11-05 17:08:18 +00004516 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004517fi
4518
4519case "$enableval" in
4520 yes) ENABLE_THREADS=1
4521 ;;
4522 no) ENABLE_THREADS=0
4523 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004524 default) ENABLE_THREADS=1
4525 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004526 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4527echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4528 { (exit 1); exit 1; }; } ;;
4529esac
4530
4531cat >>confdefs.h <<_ACEOF
4532#define ENABLE_THREADS $ENABLE_THREADS
4533_ACEOF
4534
4535
Reid Spencer89b0d992006-12-16 22:07:52 +00004536# Check whether --enable-pic was given.
4537if test "${enable_pic+set}" = set; then
4538 enableval=$enable_pic;
4539else
4540 enableval=default
4541fi
4542
4543case "$enableval" in
4544 yes) ENABLE_PIC=1
4545 ;;
4546 no) ENABLE_PIC=0
4547 ;;
4548 default) ENABLE_PIC=0
4549 ;;
4550 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4551echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4552 { (exit 1); exit 1; }; } ;;
4553esac
4554
4555cat >>confdefs.h <<_ACEOF
4556#define ENABLE_PIC $ENABLE_PIC
4557_ACEOF
4558
4559
Reid Spencera773bd52006-08-04 18:18:08 +00004560TARGETS_TO_BUILD=""
4561# Check whether --enable-targets was given.
4562if test "${enable_targets+set}" = set; then
4563 enableval=$enable_targets;
4564else
4565 enableval=all
4566fi
4567
4568case "$enableval" in
Scott Michel96dcd2b2007-12-05 21:24:02 +00004569 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004570 host-only)
4571 case "$llvm_cv_target_arch" in
4572 x86) TARGETS_TO_BUILD="X86" ;;
4573 x86_64) TARGETS_TO_BUILD="X86" ;;
4574 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4575 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4576 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4577 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004578 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004579 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004580 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004581 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4582echo "$as_me: error: Can not set target to build" >&2;}
4583 { (exit 1); exit 1; }; } ;;
4584 esac
4585 ;;
4586 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4587 case "$a_target" in
4588 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4589 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4590 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4591 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4592 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4593 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004594 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004595 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004596 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004597 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4598echo "$as_me: error: Unrecognized target $a_target" >&2;}
4599 { (exit 1); exit 1; }; } ;;
4600 esac
4601 done
4602 ;;
4603esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004604TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004605TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4606
4607
Reid Spencer65c5d752006-11-05 17:08:18 +00004608# Check whether --enable-cbe-printf-a was given.
4609if test "${enable_cbe_printf_a+set}" = set; then
4610 enableval=$enable_cbe_printf_a;
4611else
4612 enableval=default
4613fi
4614
4615case "$enableval" in
4616 yes) ENABLE_CBE_PRINTF_A=1
4617 ;;
4618 no) ENABLE_CBE_PRINTF_A=0
4619 ;;
4620 default) ENABLE_CBE_PRINTF_A=1
4621 ;;
4622 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4623echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4624 { (exit 1); exit 1; }; } ;;
4625esac
4626
4627cat >>confdefs.h <<_ACEOF
4628#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4629_ACEOF
4630
4631
Reid Spencera773bd52006-08-04 18:18:08 +00004632
4633# Check whether --with-llvmgccdir was given.
4634if test "${with_llvmgccdir+set}" = set; then
4635 withval=$with_llvmgccdir;
4636else
4637 withval=default
4638fi
4639
4640case "$withval" in
4641 default) WITH_LLVMGCCDIR=default ;;
4642 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4643 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4644echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4645 { (exit 1); exit 1; }; } ;;
4646esac
4647
4648
Devang Patel5d28b882007-12-04 22:54:47 +00004649# Check whether --with-llvmgcc was given.
4650if test "${with_llvmgcc+set}" = set; then
4651 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4652 WITH_LLVMGCCDIR=""
4653fi
4654
4655
4656
4657# Check whether --with-llvmgxx was given.
4658if test "${with_llvmgxx+set}" = set; then
4659 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4660 WITH_LLVMGCCDIR=""
4661fi
4662
4663
4664if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4665 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4666echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4667 { (exit 1); exit 1; }; };
4668fi
4669
4670if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4671 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4672echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4673 { (exit 1); exit 1; }; };
4674fi
4675
4676
Reid Spencera773bd52006-08-04 18:18:08 +00004677# Check whether --with-extra-options was given.
4678if test "${with_extra_options+set}" = set; then
4679 withval=$with_extra_options;
4680else
4681 withval=default
4682fi
4683
4684case "$withval" in
4685 default) EXTRA_OPTIONS= ;;
4686 *) EXTRA_OPTIONS=$withval ;;
4687esac
4688EXTRA_OPTIONS=$EXTRA_OPTIONS
4689
4690
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004691# Check whether --enable-bindings was given.
4692if test "${enable_bindings+set}" = set; then
4693 enableval=$enable_bindings;
4694else
4695 enableval=default
4696fi
4697
4698BINDINGS_TO_BUILD=""
4699case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004700 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004701 all ) BINDINGS_TO_BUILD="ocaml" ;;
4702 none | no) BINDINGS_TO_BUILD="" ;;
4703 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4704 case "$a_binding" in
4705 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4706 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4707echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4708 { (exit 1); exit 1; }; } ;;
4709 esac
4710 done
4711 ;;
4712esac
4713
Reid Spencera773bd52006-08-04 18:18:08 +00004714
Gordon Henriksenf0915682007-10-02 16:42:22 +00004715# Check whether --with-ocaml-libdir was given.
4716if test "${with_ocaml_libdir+set}" = set; then
4717 withval=$with_ocaml_libdir;
4718else
4719 withval=auto
4720fi
4721
4722case "$withval" in
4723 auto) with_ocaml_libdir="$withval" ;;
4724 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4725 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4726echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4727 { (exit 1); exit 1; }; } ;;
4728esac
4729
4730
Reid Spencera773bd52006-08-04 18:18:08 +00004731ac_ext=c
4732ac_cpp='$CPP $CPPFLAGS'
4733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4737echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4738# On Suns, sometimes $CPP names a directory.
4739if test -n "$CPP" && test -d "$CPP"; then
4740 CPP=
4741fi
4742if test -z "$CPP"; then
4743 if test "${ac_cv_prog_CPP+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 # Double quotes because CPP needs to be expanded
4747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4748 do
4749 ac_preproc_ok=false
4750for ac_c_preproc_warn_flag in '' yes
4751do
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
4754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 # <limits.h> exists even on freestanding compilers.
4756 # On the NeXT, cc -E runs the code through the compiler's parser,
4757 # not just through cpp. "Syntax error" is here to catch this case.
4758 cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764#ifdef __STDC__
4765# include <limits.h>
4766#else
4767# include <assert.h>
4768#endif
4769 Syntax error
4770_ACEOF
4771if { (ac_try="$ac_cpp conftest.$ac_ext"
4772case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775esac
4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004783 (exit $ac_status); } >/dev/null && {
4784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4785 test ! -s conftest.err
4786 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004787 :
4788else
4789 echo "$as_me: failed program was:" >&5
4790sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 # Broken: fails on valid input.
4793continue
4794fi
4795
4796rm -f conftest.err conftest.$ac_ext
4797
4798 # OK, works on sane cases. Now check whether nonexistent headers
4799 # can be detected and how.
4800 cat >conftest.$ac_ext <<_ACEOF
4801/* confdefs.h. */
4802_ACEOF
4803cat confdefs.h >>conftest.$ac_ext
4804cat >>conftest.$ac_ext <<_ACEOF
4805/* end confdefs.h. */
4806#include <ac_nonexistent.h>
4807_ACEOF
4808if { (ac_try="$ac_cpp conftest.$ac_ext"
4809case "(($ac_try" in
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4812esac
4813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4815 ac_status=$?
4816 grep -v '^ *+' conftest.er1 >conftest.err
4817 rm -f conftest.er1
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004820 (exit $ac_status); } >/dev/null && {
4821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4822 test ! -s conftest.err
4823 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004824 # Broken: success on invalid input.
4825continue
4826else
4827 echo "$as_me: failed program was:" >&5
4828sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 # Passes both tests.
4831ac_preproc_ok=:
4832break
4833fi
4834
4835rm -f conftest.err conftest.$ac_ext
4836
4837done
4838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839rm -f conftest.err conftest.$ac_ext
4840if $ac_preproc_ok; then
4841 break
4842fi
4843
4844 done
4845 ac_cv_prog_CPP=$CPP
4846
4847fi
4848 CPP=$ac_cv_prog_CPP
4849else
4850 ac_cv_prog_CPP=$CPP
4851fi
4852{ echo "$as_me:$LINENO: result: $CPP" >&5
4853echo "${ECHO_T}$CPP" >&6; }
4854ac_preproc_ok=false
4855for ac_c_preproc_warn_flag in '' yes
4856do
4857 # Use a header file that comes with gcc, so configuring glibc
4858 # with a fresh cross-compiler works.
4859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4860 # <limits.h> exists even on freestanding compilers.
4861 # On the NeXT, cc -E runs the code through the compiler's parser,
4862 # not just through cpp. "Syntax error" is here to catch this case.
4863 cat >conftest.$ac_ext <<_ACEOF
4864/* confdefs.h. */
4865_ACEOF
4866cat confdefs.h >>conftest.$ac_ext
4867cat >>conftest.$ac_ext <<_ACEOF
4868/* end confdefs.h. */
4869#ifdef __STDC__
4870# include <limits.h>
4871#else
4872# include <assert.h>
4873#endif
4874 Syntax error
4875_ACEOF
4876if { (ac_try="$ac_cpp conftest.$ac_ext"
4877case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880esac
4881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004888 (exit $ac_status); } >/dev/null && {
4889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004892 :
4893else
4894 echo "$as_me: failed program was:" >&5
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
4897 # Broken: fails on valid input.
4898continue
4899fi
4900
4901rm -f conftest.err conftest.$ac_ext
4902
4903 # OK, works on sane cases. Now check whether nonexistent headers
4904 # can be detected and how.
4905 cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h. */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h. */
4911#include <ac_nonexistent.h>
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
Scott Michel96dcd2b2007-12-05 21:24:02 +00004925 (exit $ac_status); } >/dev/null && {
4926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4927 test ! -s conftest.err
4928 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004929 # Broken: success on invalid input.
4930continue
4931else
4932 echo "$as_me: failed program was:" >&5
4933sed 's/^/| /' conftest.$ac_ext >&5
4934
4935 # Passes both tests.
4936ac_preproc_ok=:
4937break
4938fi
4939
4940rm -f conftest.err conftest.$ac_ext
4941
4942done
4943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944rm -f conftest.err conftest.$ac_ext
4945if $ac_preproc_ok; then
4946 :
4947else
4948 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4949See \`config.log' for more details." >&5
4950echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4951See \`config.log' for more details." >&2;}
4952 { (exit 1); exit 1; }; }
4953fi
4954
4955ac_ext=c
4956ac_cpp='$CPP $CPPFLAGS'
4957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960
4961ac_ext=c
4962ac_cpp='$CPP $CPPFLAGS'
4963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966if test -n "$ac_tool_prefix"; then
4967 for ac_prog in gcc
4968 do
4969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4973if test "${ac_cv_prog_CC+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975else
4976 if test -n "$CC"; then
4977 ac_cv_prog_CC="$CC" # Let the user override the test.
4978else
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4989 fi
4990done
4991done
4992IFS=$as_save_IFS
4993
4994fi
4995fi
4996CC=$ac_cv_prog_CC
4997if test -n "$CC"; then
4998 { echo "$as_me:$LINENO: result: $CC" >&5
4999echo "${ECHO_T}$CC" >&6; }
5000else
5001 { echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6; }
5003fi
5004
5005
5006 test -n "$CC" && break
5007 done
5008fi
5009if test -z "$CC"; then
5010 ac_ct_CC=$CC
5011 for ac_prog in gcc
5012do
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014set dummy $ac_prog; ac_word=$2
5015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5017if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020 if test -n "$ac_ct_CC"; then
5021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005030 ac_cv_prog_ac_ct_CC="$ac_prog"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
5035done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040ac_ct_CC=$ac_cv_prog_ac_ct_CC
5041if test -n "$ac_ct_CC"; then
5042 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5043echo "${ECHO_T}$ac_ct_CC" >&6; }
5044else
5045 { echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6; }
5047fi
5048
5049
5050 test -n "$ac_ct_CC" && break
5051done
5052
5053 if test "x$ac_ct_CC" = x; then
5054 CC=""
5055 else
5056 case $cross_compiling:$ac_tool_warned in
5057yes:)
5058{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5059whose name does not start with the host triplet. If you think this
5060configuration is useful to you, please write to autoconf@gnu.org." >&5
5061echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5062whose name does not start with the host triplet. If you think this
5063configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5064ac_tool_warned=yes ;;
5065esac
5066 CC=$ac_ct_CC
5067 fi
5068fi
5069
5070
5071test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5072See \`config.log' for more details." >&5
5073echo "$as_me: error: no acceptable C compiler found in \$PATH
5074See \`config.log' for more details." >&2;}
5075 { (exit 1); exit 1; }; }
5076
5077# Provide some information about the compiler.
5078echo "$as_me:$LINENO: checking for C compiler version" >&5
5079ac_compiler=`set X $ac_compile; echo $2`
5080{ (ac_try="$ac_compiler --version >&5"
5081case "(($ac_try" in
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5084esac
5085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086 (eval "$ac_compiler --version >&5") 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }
5090{ (ac_try="$ac_compiler -v >&5"
5091case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094esac
5095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_compiler -v >&5") 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }
5100{ (ac_try="$ac_compiler -V >&5"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_compiler -V >&5") 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }
5110
5111{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5112echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5113if test "${ac_cv_c_compiler_gnu+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116 cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h. */
5122
5123int
5124main ()
5125{
5126#ifndef __GNUC__
5127 choke me
5128#endif
5129
5130 ;
5131 return 0;
5132}
5133_ACEOF
5134rm -f conftest.$ac_objext
5135if { (ac_try="$ac_compile"
5136case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139esac
5140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_compile") 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005147 (exit $ac_status); } && {
5148 test -z "$ac_c_werror_flag" ||
5149 test ! -s conftest.err
5150 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005151 ac_compiler_gnu=yes
5152else
5153 echo "$as_me: failed program was:" >&5
5154sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 ac_compiler_gnu=no
5157fi
5158
5159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160ac_cv_c_compiler_gnu=$ac_compiler_gnu
5161
5162fi
5163{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5164echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5165GCC=`test $ac_compiler_gnu = yes && echo yes`
5166ac_test_CFLAGS=${CFLAGS+set}
5167ac_save_CFLAGS=$CFLAGS
5168{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5169echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5170if test "${ac_cv_prog_cc_g+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173 ac_save_c_werror_flag=$ac_c_werror_flag
5174 ac_c_werror_flag=yes
5175 ac_cv_prog_cc_g=no
5176 CFLAGS="-g"
5177 cat >conftest.$ac_ext <<_ACEOF
5178/* confdefs.h. */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h. */
5183
5184int
5185main ()
5186{
5187
5188 ;
5189 return 0;
5190}
5191_ACEOF
5192rm -f conftest.$ac_objext
5193if { (ac_try="$ac_compile"
5194case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197esac
5198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005209 ac_cv_prog_cc_g=yes
5210else
5211 echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 CFLAGS=""
5215 cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h. */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h. */
5221
5222int
5223main ()
5224{
5225
5226 ;
5227 return 0;
5228}
5229_ACEOF
5230rm -f conftest.$ac_objext
5231if { (ac_try="$ac_compile"
5232case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235esac
5236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_compile") 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005243 (exit $ac_status); } && {
5244 test -z "$ac_c_werror_flag" ||
5245 test ! -s conftest.err
5246 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005247 :
5248else
5249 echo "$as_me: failed program was:" >&5
5250sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 ac_c_werror_flag=$ac_save_c_werror_flag
5253 CFLAGS="-g"
5254 cat >conftest.$ac_ext <<_ACEOF
5255/* confdefs.h. */
5256_ACEOF
5257cat confdefs.h >>conftest.$ac_ext
5258cat >>conftest.$ac_ext <<_ACEOF
5259/* end confdefs.h. */
5260
5261int
5262main ()
5263{
5264
5265 ;
5266 return 0;
5267}
5268_ACEOF
5269rm -f conftest.$ac_objext
5270if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5277 ac_status=$?
5278 grep -v '^ *+' conftest.er1 >conftest.err
5279 rm -f conftest.er1
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005282 (exit $ac_status); } && {
5283 test -z "$ac_c_werror_flag" ||
5284 test ! -s conftest.err
5285 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005286 ac_cv_prog_cc_g=yes
5287else
5288 echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291
5292fi
5293
5294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295fi
5296
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298fi
5299
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 ac_c_werror_flag=$ac_save_c_werror_flag
5302fi
5303{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5304echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5305if test "$ac_test_CFLAGS" = set; then
5306 CFLAGS=$ac_save_CFLAGS
5307elif test $ac_cv_prog_cc_g = yes; then
5308 if test "$GCC" = yes; then
5309 CFLAGS="-g -O2"
5310 else
5311 CFLAGS="-g"
5312 fi
5313else
5314 if test "$GCC" = yes; then
5315 CFLAGS="-O2"
5316 else
5317 CFLAGS=
5318 fi
5319fi
5320{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5321echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5322if test "${ac_cv_prog_cc_c89+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325 ac_cv_prog_cc_c89=no
5326ac_save_CC=$CC
5327cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h. */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h. */
5333#include <stdarg.h>
5334#include <stdio.h>
5335#include <sys/types.h>
5336#include <sys/stat.h>
5337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5338struct buf { int x; };
5339FILE * (*rcsopen) (struct buf *, struct stat *, int);
5340static char *e (p, i)
5341 char **p;
5342 int i;
5343{
5344 return p[i];
5345}
5346static char *f (char * (*g) (char **, int), char **p, ...)
5347{
5348 char *s;
5349 va_list v;
5350 va_start (v,p);
5351 s = g (p, va_arg (v,int));
5352 va_end (v);
5353 return s;
5354}
5355
5356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5357 function prototypes and stuff, but not '\xHH' hex character constants.
5358 These don't provoke an error unfortunately, instead are silently treated
5359 as 'x'. The following induces an error, until -std is added to get
5360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5361 array size at least. It's necessary to write '\x00'==0 to get something
5362 that's true only with -std. */
5363int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5364
5365/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5366 inside strings and character constants. */
5367#define FOO(x) 'x'
5368int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5369
5370int test (int i, double x);
5371struct s1 {int (*f) (int a);};
5372struct s2 {int (*f) (double a);};
5373int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5374int argc;
5375char **argv;
5376int
5377main ()
5378{
5379return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5380 ;
5381 return 0;
5382}
5383_ACEOF
5384for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5386do
5387 CC="$ac_save_CC $ac_arg"
5388 rm -f conftest.$ac_objext
5389if { (ac_try="$ac_compile"
5390case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393esac
5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005405 ac_cv_prog_cc_c89=$ac_arg
5406else
5407 echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410
5411fi
5412
5413rm -f core conftest.err conftest.$ac_objext
5414 test "x$ac_cv_prog_cc_c89" != "xno" && break
5415done
5416rm -f conftest.$ac_ext
5417CC=$ac_save_CC
5418
5419fi
5420# AC_CACHE_VAL
5421case "x$ac_cv_prog_cc_c89" in
5422 x)
5423 { echo "$as_me:$LINENO: result: none needed" >&5
5424echo "${ECHO_T}none needed" >&6; } ;;
5425 xno)
5426 { echo "$as_me:$LINENO: result: unsupported" >&5
5427echo "${ECHO_T}unsupported" >&6; } ;;
5428 *)
5429 CC="$CC $ac_cv_prog_cc_c89"
5430 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5431echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5432esac
5433
5434
5435ac_ext=c
5436ac_cpp='$CPP $CPPFLAGS'
5437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441ac_ext=cpp
5442ac_cpp='$CXXCPP $CPPFLAGS'
5443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5446if test -z "$CXX"; then
5447 if test -n "$CCC"; then
5448 CXX=$CCC
5449 else
5450 if test -n "$ac_tool_prefix"; then
5451 for ac_prog in g++
5452 do
5453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5457if test "${ac_cv_prog_CXX+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459else
5460 if test -n "$CXX"; then
5461 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5462else
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005470 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474done
5475done
5476IFS=$as_save_IFS
5477
5478fi
5479fi
5480CXX=$ac_cv_prog_CXX
5481if test -n "$CXX"; then
5482 { echo "$as_me:$LINENO: result: $CXX" >&5
5483echo "${ECHO_T}$CXX" >&6; }
5484else
5485 { echo "$as_me:$LINENO: result: no" >&5
5486echo "${ECHO_T}no" >&6; }
5487fi
5488
5489
5490 test -n "$CXX" && break
5491 done
5492fi
5493if test -z "$CXX"; then
5494 ac_ct_CXX=$CXX
5495 for ac_prog in g++
5496do
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498set dummy $ac_prog; ac_word=$2
5499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5501if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504 if test -n "$ac_ct_CXX"; then
5505 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005514 ac_cv_prog_ac_ct_CXX="$ac_prog"
5515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518done
5519done
5520IFS=$as_save_IFS
5521
5522fi
5523fi
5524ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5525if test -n "$ac_ct_CXX"; then
5526 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5527echo "${ECHO_T}$ac_ct_CXX" >&6; }
5528else
5529 { echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6; }
5531fi
5532
5533
5534 test -n "$ac_ct_CXX" && break
5535done
5536
5537 if test "x$ac_ct_CXX" = x; then
5538 CXX="g++"
5539 else
5540 case $cross_compiling:$ac_tool_warned in
5541yes:)
5542{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5543whose name does not start with the host triplet. If you think this
5544configuration is useful to you, please write to autoconf@gnu.org." >&5
5545echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5546whose name does not start with the host triplet. If you think this
5547configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5548ac_tool_warned=yes ;;
5549esac
5550 CXX=$ac_ct_CXX
5551 fi
5552fi
5553
5554 fi
5555fi
5556# Provide some information about the compiler.
5557echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5558ac_compiler=`set X $ac_compile; echo $2`
5559{ (ac_try="$ac_compiler --version >&5"
5560case "(($ac_try" in
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5563esac
5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_compiler --version >&5") 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }
5569{ (ac_try="$ac_compiler -v >&5"
5570case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573esac
5574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compiler -v >&5") 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }
5579{ (ac_try="$ac_compiler -V >&5"
5580case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compiler -V >&5") 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }
5589
5590{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5591echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5592if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595 cat >conftest.$ac_ext <<_ACEOF
5596/* confdefs.h. */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h. */
5601
5602int
5603main ()
5604{
5605#ifndef __GNUC__
5606 choke me
5607#endif
5608
5609 ;
5610 return 0;
5611}
5612_ACEOF
5613rm -f conftest.$ac_objext
5614if { (ac_try="$ac_compile"
5615case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618esac
5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005626 (exit $ac_status); } && {
5627 test -z "$ac_cxx_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005630 ac_compiler_gnu=yes
5631else
5632 echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
5634
5635 ac_compiler_gnu=no
5636fi
5637
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5640
5641fi
5642{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5643echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5644GXX=`test $ac_compiler_gnu = yes && echo yes`
5645ac_test_CXXFLAGS=${CXXFLAGS+set}
5646ac_save_CXXFLAGS=$CXXFLAGS
5647{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5648echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5649if test "${ac_cv_prog_cxx_g+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651else
5652 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5653 ac_cxx_werror_flag=yes
5654 ac_cv_prog_cxx_g=no
5655 CXXFLAGS="-g"
5656 cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h. */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h. */
5662
5663int
5664main ()
5665{
5666
5667 ;
5668 return 0;
5669}
5670_ACEOF
5671rm -f conftest.$ac_objext
5672if { (ac_try="$ac_compile"
5673case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676esac
5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005684 (exit $ac_status); } && {
5685 test -z "$ac_cxx_werror_flag" ||
5686 test ! -s conftest.err
5687 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005688 ac_cv_prog_cxx_g=yes
5689else
5690 echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 CXXFLAGS=""
5694 cat >conftest.$ac_ext <<_ACEOF
5695/* confdefs.h. */
5696_ACEOF
5697cat confdefs.h >>conftest.$ac_ext
5698cat >>conftest.$ac_ext <<_ACEOF
5699/* end confdefs.h. */
5700
5701int
5702main ()
5703{
5704
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext
5710if { (ac_try="$ac_compile"
5711case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714esac
5715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005722 (exit $ac_status); } && {
5723 test -z "$ac_cxx_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005726 :
5727else
5728 echo "$as_me: failed program was:" >&5
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5732 CXXFLAGS="-g"
5733 cat >conftest.$ac_ext <<_ACEOF
5734/* confdefs.h. */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
5738/* end confdefs.h. */
5739
5740int
5741main ()
5742{
5743
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext
5749if { (ac_try="$ac_compile"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005761 (exit $ac_status); } && {
5762 test -z "$ac_cxx_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005765 ac_cv_prog_cxx_g=yes
5766else
5767 echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
5770
5771fi
5772
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774fi
5775
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777fi
5778
5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5781fi
5782{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5783echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5784if test "$ac_test_CXXFLAGS" = set; then
5785 CXXFLAGS=$ac_save_CXXFLAGS
5786elif test $ac_cv_prog_cxx_g = yes; then
5787 if test "$GXX" = yes; then
5788 CXXFLAGS="-g -O2"
5789 else
5790 CXXFLAGS="-g"
5791 fi
5792else
5793 if test "$GXX" = yes; then
5794 CXXFLAGS="-O2"
5795 else
5796 CXXFLAGS=
5797 fi
5798fi
5799ac_ext=c
5800ac_cpp='$CPP $CPPFLAGS'
5801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804
5805{ echo "$as_me:$LINENO: checking " >&5
5806echo $ECHO_N "checking ... $ECHO_C" >&6; }
5807if test "${ac_cv_has_flex+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810 for ac_prog in flex lex
5811do
5812 # Extract the first word of "$ac_prog", so it can be a program name with args.
5813set dummy $ac_prog; ac_word=$2
5814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5816if test "${ac_cv_prog_LEX+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819 if test -n "$LEX"; then
5820 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5821else
5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823for as_dir in $PATH
5824do
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005829 ac_cv_prog_LEX="$ac_prog"
5830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5832 fi
5833done
5834done
5835IFS=$as_save_IFS
5836
5837fi
5838fi
5839LEX=$ac_cv_prog_LEX
5840if test -n "$LEX"; then
5841 { echo "$as_me:$LINENO: result: $LEX" >&5
5842echo "${ECHO_T}$LEX" >&6; }
5843else
5844 { echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6; }
5846fi
5847
5848
5849 test -n "$LEX" && break
5850done
5851test -n "$LEX" || LEX=":"
5852
Reid Spencera773bd52006-08-04 18:18:08 +00005853if test "x$LEX" != "x:"; then
Scott Michel96dcd2b2007-12-05 21:24:02 +00005854 cat >conftest.l <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005855%%
Scott Michel96dcd2b2007-12-05 21:24:02 +00005856a { ECHO; }
5857b { REJECT; }
5858c { yymore (); }
5859d { yyless (1); }
5860e { yyless (input () != 0); }
5861f { unput (yytext[0]); }
5862. { BEGIN INITIAL; }
Reid Spencera773bd52006-08-04 18:18:08 +00005863%%
Scott Michel96dcd2b2007-12-05 21:24:02 +00005864#ifdef YYTEXT_POINTER
5865extern char *yytext;
5866#endif
5867int
5868main (void)
5869{
5870 return ! yylex () + ! yywrap ();
5871}
Reid Spencera773bd52006-08-04 18:18:08 +00005872_ACEOF
5873{ (ac_try="$LEX conftest.l"
5874case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$LEX conftest.l") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }
Scott Michel96dcd2b2007-12-05 21:24:02 +00005883{ echo "$as_me:$LINENO: checking lex output file root" >&5
5884echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5885if test "${ac_cv_prog_lex_root+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888
Reid Spencera773bd52006-08-04 18:18:08 +00005889if test -f lex.yy.c; then
5890 ac_cv_prog_lex_root=lex.yy
5891elif test -f lexyy.c; then
5892 ac_cv_prog_lex_root=lexyy
5893else
5894 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5895echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5896 { (exit 1); exit 1; }; }
5897fi
5898fi
5899{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5900echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005901LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5902
Scott Michel96dcd2b2007-12-05 21:24:02 +00005903if test -z "${LEXLIB+set}"; then
5904 { echo "$as_me:$LINENO: checking lex library" >&5
5905echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5906if test "${ac_cv_lib_lex+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
Scott Michel96dcd2b2007-12-05 21:24:02 +00005909
5910 ac_save_LIBS=$LIBS
5911 ac_cv_lib_lex='none needed'
5912 for ac_lib in '' -lfl -ll; do
5913 LIBS="$ac_lib $ac_save_LIBS"
5914 cat >conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005915`cat $LEX_OUTPUT_ROOT.c`
5916_ACEOF
5917rm -f conftest.$ac_objext conftest$ac_exeext
5918if { (ac_try="$ac_link"
5919case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_link") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest$ac_exeext &&
5934 $as_test_x conftest$ac_exeext; then
5935 ac_cv_lib_lex=$ac_lib
5936else
5937 echo "$as_me: failed program was:" >&5
5938sed 's/^/| /' conftest.$ac_ext >&5
5939
5940
5941fi
5942
5943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5944 conftest$ac_exeext conftest.$ac_ext
5945 test "$ac_cv_lib_lex" != 'none needed' && break
5946 done
5947 LIBS=$ac_save_LIBS
5948
5949fi
5950{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5951echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5952 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5953fi
5954
5955
5956{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5957echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5958if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960else
5961 # POSIX says lex can declare yytext either as a pointer or an array; the
5962# default is implementation-dependent. Figure out which it is, since
5963# not all implementations provide the %pointer and %array declarations.
5964ac_cv_prog_lex_yytext_pointer=no
5965ac_save_LIBS=$LIBS
5966LIBS="$LEXLIB $ac_save_LIBS"
5967cat >conftest.$ac_ext <<_ACEOF
5968#define YYTEXT_POINTER 1
5969`cat $LEX_OUTPUT_ROOT.c`
5970_ACEOF
5971rm -f conftest.$ac_objext conftest$ac_exeext
5972if { (ac_try="$ac_link"
5973case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00005974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976esac
5977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005978 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00005979 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00005980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest$ac_exeext &&
5988 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005989 ac_cv_prog_lex_yytext_pointer=yes
5990else
5991 echo "$as_me: failed program was:" >&5
5992sed 's/^/| /' conftest.$ac_ext >&5
5993
5994
5995fi
5996
Scott Michel96dcd2b2007-12-05 21:24:02 +00005997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00005998 conftest$ac_exeext conftest.$ac_ext
5999LIBS=$ac_save_LIBS
Reid Spencera773bd52006-08-04 18:18:08 +00006000
6001fi
6002{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6003echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6004if test $ac_cv_prog_lex_yytext_pointer = yes; then
6005
6006cat >>confdefs.h <<\_ACEOF
6007#define YYTEXT_POINTER 1
6008_ACEOF
6009
6010fi
Scott Michel96dcd2b2007-12-05 21:24:02 +00006011rm -f conftest.l $LEX_OUTPUT_ROOT.c
Reid Spencera773bd52006-08-04 18:18:08 +00006012
6013fi
6014
6015fi
6016{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6017echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6018if test "$LEX" != "flex"; then
6019 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6020echo "$as_me: error: flex not found but required" >&2;}
6021 { (exit 1); exit 1; }; }
6022else
6023 FLEX=flex
6024
6025fi
6026
6027{ echo "$as_me:$LINENO: checking " >&5
6028echo $ECHO_N "checking ... $ECHO_C" >&6; }
6029if test "${llvm_cv_has_bison+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032 for ac_prog in 'bison -y' byacc
6033do
6034 # Extract the first word of "$ac_prog", so it can be a program name with args.
6035set dummy $ac_prog; ac_word=$2
6036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6038if test "${ac_cv_prog_YACC+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041 if test -n "$YACC"; then
6042 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6043else
6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006051 ac_cv_prog_YACC="$ac_prog"
6052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055done
6056done
6057IFS=$as_save_IFS
6058
6059fi
6060fi
6061YACC=$ac_cv_prog_YACC
6062if test -n "$YACC"; then
6063 { echo "$as_me:$LINENO: result: $YACC" >&5
6064echo "${ECHO_T}$YACC" >&6; }
6065else
6066 { echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6; }
6068fi
6069
6070
6071 test -n "$YACC" && break
6072done
6073test -n "$YACC" || YACC="yacc"
6074
6075fi
6076{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6077echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6078if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006079
6080 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6081echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006082else
6083 BISON=bison
6084
6085fi
6086
6087{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6088echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6089if test "${lt_cv_path_NM+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092 if test -n "$NM"; then
6093 # Let the user override the test.
6094 lt_cv_path_NM="$NM"
6095else
6096 lt_nm_to_check="${ac_tool_prefix}nm"
6097 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6098 lt_nm_to_check="$lt_nm_to_check nm"
6099 fi
6100 for lt_tmp_nm in $lt_nm_to_check; do
6101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6102 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6103 IFS="$lt_save_ifs"
6104 test -z "$ac_dir" && ac_dir=.
6105 tmp_nm="$ac_dir/$lt_tmp_nm"
6106 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6107 # Check to see if the nm accepts a BSD-compat flag.
6108 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6109 # nm: unknown option "B" ignored
6110 # Tru64's nm complains that /dev/null is an invalid object file
6111 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6112 */dev/null* | *'Invalid file or object type'*)
6113 lt_cv_path_NM="$tmp_nm -B"
6114 break
6115 ;;
6116 *)
6117 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6118 */dev/null*)
6119 lt_cv_path_NM="$tmp_nm -p"
6120 break
6121 ;;
6122 *)
6123 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6124 continue # so that we can try to find one that supports BSD flags
6125 ;;
6126 esac
6127 ;;
6128 esac
6129 fi
6130 done
6131 IFS="$lt_save_ifs"
6132 done
6133 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6134fi
6135fi
6136{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6137echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6138NM="$lt_cv_path_NM"
6139
6140
6141
6142{ echo "$as_me:$LINENO: checking for GNU make" >&5
6143echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6144if test "${llvm_cv_gnu_make_command+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147 llvm_cv_gnu_make_command=''
6148 for a in "$MAKE" make gmake gnumake ; do
6149 if test -z "$a" ; then continue ; fi ;
6150 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6151 then
6152 llvm_cv_gnu_make_command=$a ;
6153 break;
6154 fi
6155 done
6156fi
6157{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6158echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6159 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6160 ifGNUmake='' ;
6161 else
6162 ifGNUmake='#' ;
6163 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6164echo "${ECHO_T}\"Not found\"" >&6; };
6165 fi
6166
6167
6168{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6169echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6170LN_S=$as_ln_s
6171if test "$LN_S" = "ln -s"; then
6172 { echo "$as_me:$LINENO: result: yes" >&5
6173echo "${ECHO_T}yes" >&6; }
6174else
6175 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6176echo "${ECHO_T}no, using $LN_S" >&6; }
6177fi
6178
6179# Extract the first word of "cmp", so it can be a program name with args.
6180set dummy cmp; ac_word=$2
6181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183if test "${ac_cv_path_CMP+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186 case $CMP in
6187 [\\/]* | ?:[\\/]*)
6188 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6189 ;;
6190 *)
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192for as_dir in $PATH
6193do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006198 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202done
6203done
6204IFS=$as_save_IFS
6205
6206 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6207 ;;
6208esac
6209fi
6210CMP=$ac_cv_path_CMP
6211if test -n "$CMP"; then
6212 { echo "$as_me:$LINENO: result: $CMP" >&5
6213echo "${ECHO_T}$CMP" >&6; }
6214else
6215 { echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6; }
6217fi
6218
6219
6220# Extract the first word of "cp", so it can be a program name with args.
6221set dummy cp; ac_word=$2
6222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224if test "${ac_cv_path_CP+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
6227 case $CP in
6228 [\\/]* | ?:[\\/]*)
6229 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6230 ;;
6231 *)
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006239 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243done
6244done
6245IFS=$as_save_IFS
6246
6247 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6248 ;;
6249esac
6250fi
6251CP=$ac_cv_path_CP
6252if test -n "$CP"; then
6253 { echo "$as_me:$LINENO: result: $CP" >&5
6254echo "${ECHO_T}$CP" >&6; }
6255else
6256 { echo "$as_me:$LINENO: result: no" >&5
6257echo "${ECHO_T}no" >&6; }
6258fi
6259
6260
6261# Extract the first word of "date", so it can be a program name with args.
6262set dummy date; ac_word=$2
6263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265if test "${ac_cv_path_DATE+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268 case $DATE in
6269 [\\/]* | ?:[\\/]*)
6270 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6271 ;;
6272 *)
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006280 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284done
6285done
6286IFS=$as_save_IFS
6287
6288 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6289 ;;
6290esac
6291fi
6292DATE=$ac_cv_path_DATE
6293if test -n "$DATE"; then
6294 { echo "$as_me:$LINENO: result: $DATE" >&5
6295echo "${ECHO_T}$DATE" >&6; }
6296else
6297 { echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6; }
6299fi
6300
6301
6302# Extract the first word of "find", so it can be a program name with args.
6303set dummy find; ac_word=$2
6304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306if test "${ac_cv_path_FIND+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309 case $FIND in
6310 [\\/]* | ?:[\\/]*)
6311 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6312 ;;
6313 *)
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006321 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6324 fi
6325done
6326done
6327IFS=$as_save_IFS
6328
6329 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6330 ;;
6331esac
6332fi
6333FIND=$ac_cv_path_FIND
6334if test -n "$FIND"; then
6335 { echo "$as_me:$LINENO: result: $FIND" >&5
6336echo "${ECHO_T}$FIND" >&6; }
6337else
6338 { echo "$as_me:$LINENO: result: no" >&5
6339echo "${ECHO_T}no" >&6; }
6340fi
6341
6342
6343# Extract the first word of "grep", so it can be a program name with args.
6344set dummy grep; ac_word=$2
6345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347if test "${ac_cv_path_GREP+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350 case $GREP in
6351 [\\/]* | ?:[\\/]*)
6352 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6353 ;;
6354 *)
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006362 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366done
6367done
6368IFS=$as_save_IFS
6369
6370 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6371 ;;
6372esac
6373fi
6374GREP=$ac_cv_path_GREP
6375if test -n "$GREP"; then
6376 { echo "$as_me:$LINENO: result: $GREP" >&5
6377echo "${ECHO_T}$GREP" >&6; }
6378else
6379 { echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6; }
6381fi
6382
6383
6384# Extract the first word of "mkdir", so it can be a program name with args.
6385set dummy mkdir; ac_word=$2
6386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388if test "${ac_cv_path_MKDIR+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 case $MKDIR in
6392 [\\/]* | ?:[\\/]*)
6393 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6394 ;;
6395 *)
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006403 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407done
6408done
6409IFS=$as_save_IFS
6410
6411 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6412 ;;
6413esac
6414fi
6415MKDIR=$ac_cv_path_MKDIR
6416if test -n "$MKDIR"; then
6417 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6418echo "${ECHO_T}$MKDIR" >&6; }
6419else
6420 { echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6; }
6422fi
6423
6424
6425# Extract the first word of "mv", so it can be a program name with args.
6426set dummy mv; ac_word=$2
6427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6429if test "${ac_cv_path_MV+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431else
6432 case $MV in
6433 [\\/]* | ?:[\\/]*)
6434 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6435 ;;
6436 *)
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006444 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448done
6449done
6450IFS=$as_save_IFS
6451
6452 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6453 ;;
6454esac
6455fi
6456MV=$ac_cv_path_MV
6457if test -n "$MV"; then
6458 { echo "$as_me:$LINENO: result: $MV" >&5
6459echo "${ECHO_T}$MV" >&6; }
6460else
6461 { echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6; }
6463fi
6464
6465
6466if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471if test "${ac_cv_prog_RANLIB+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473else
6474 if test -n "$RANLIB"; then
6475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488done
6489done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494RANLIB=$ac_cv_prog_RANLIB
6495if test -n "$RANLIB"; then
6496 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6497echo "${ECHO_T}$RANLIB" >&6; }
6498else
6499 { echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6; }
6501fi
6502
6503
6504fi
6505if test -z "$ac_cv_prog_RANLIB"; then
6506 ac_ct_RANLIB=$RANLIB
6507 # Extract the first word of "ranlib", so it can be a program name with args.
6508set dummy ranlib; ac_word=$2
6509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514 if test -n "$ac_ct_RANLIB"; then
6515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006524 ac_cv_prog_ac_ct_RANLIB="ranlib"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528done
6529done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535if test -n "$ac_ct_RANLIB"; then
6536 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6537echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6538else
6539 { echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6; }
6541fi
6542
6543 if test "x$ac_ct_RANLIB" = x; then
6544 RANLIB=":"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6549whose name does not start with the host triplet. If you think this
6550configuration is useful to you, please write to autoconf@gnu.org." >&5
6551echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6552whose name does not start with the host triplet. If you think this
6553configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6554ac_tool_warned=yes ;;
6555esac
6556 RANLIB=$ac_ct_RANLIB
6557 fi
6558else
6559 RANLIB="$ac_cv_prog_RANLIB"
6560fi
6561
6562# Extract the first word of "rm", so it can be a program name with args.
6563set dummy rm; ac_word=$2
6564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566if test "${ac_cv_path_RM+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569 case $RM in
6570 [\\/]* | ?:[\\/]*)
6571 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6572 ;;
6573 *)
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006581 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585done
6586done
6587IFS=$as_save_IFS
6588
6589 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6590 ;;
6591esac
6592fi
6593RM=$ac_cv_path_RM
6594if test -n "$RM"; then
6595 { echo "$as_me:$LINENO: result: $RM" >&5
6596echo "${ECHO_T}$RM" >&6; }
6597else
6598 { echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6; }
6600fi
6601
6602
6603# Extract the first word of "sed", so it can be a program name with args.
6604set dummy sed; ac_word=$2
6605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607if test "${ac_cv_path_SED+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610 case $SED in
6611 [\\/]* | ?:[\\/]*)
6612 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6613 ;;
6614 *)
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006622 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626done
6627done
6628IFS=$as_save_IFS
6629
6630 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6631 ;;
6632esac
6633fi
6634SED=$ac_cv_path_SED
6635if test -n "$SED"; then
6636 { echo "$as_me:$LINENO: result: $SED" >&5
6637echo "${ECHO_T}$SED" >&6; }
6638else
6639 { echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6; }
6641fi
6642
6643
6644# Extract the first word of "tar", so it can be a program name with args.
6645set dummy tar; ac_word=$2
6646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648if test "${ac_cv_path_TAR+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651 case $TAR in
6652 [\\/]* | ?:[\\/]*)
6653 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6654 ;;
6655 *)
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657for as_dir in $PATH
6658do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006663 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6666 fi
6667done
6668done
6669IFS=$as_save_IFS
6670
6671 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6672 ;;
6673esac
6674fi
6675TAR=$ac_cv_path_TAR
6676if test -n "$TAR"; then
6677 { echo "$as_me:$LINENO: result: $TAR" >&5
6678echo "${ECHO_T}$TAR" >&6; }
6679else
6680 { echo "$as_me:$LINENO: result: no" >&5
6681echo "${ECHO_T}no" >&6; }
6682fi
6683
6684
6685# Extract the first word of "pwd", so it can be a program name with args.
6686set dummy pwd; ac_word=$2
6687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689if test "${ac_cv_path_BINPWD+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691else
6692 case $BINPWD in
6693 [\\/]* | ?:[\\/]*)
6694 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6695 ;;
6696 *)
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006704 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709done
6710IFS=$as_save_IFS
6711
6712 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6713 ;;
6714esac
6715fi
6716BINPWD=$ac_cv_path_BINPWD
6717if test -n "$BINPWD"; then
6718 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6719echo "${ECHO_T}$BINPWD" >&6; }
6720else
6721 { echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6; }
6723fi
6724
6725
6726
6727# Extract the first word of "Graphviz", so it can be a program name with args.
6728set dummy Graphviz; ac_word=$2
6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734 case $GRAPHVIZ in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6737 ;;
6738 *)
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006746 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750done
6751done
6752IFS=$as_save_IFS
6753
6754 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6755 ;;
6756esac
6757fi
6758GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6759if test -n "$GRAPHVIZ"; then
6760 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6761echo "${ECHO_T}$GRAPHVIZ" >&6; }
6762else
6763 { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
6765fi
6766
6767
6768if test "$GRAPHVIZ" != "echo Graphviz" ; then
6769
6770cat >>confdefs.h <<\_ACEOF
6771#define HAVE_GRAPHVIZ 1
6772_ACEOF
6773
Jeff Cohen28783c32007-01-12 18:22:38 +00006774 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006775 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6776 fi
6777
6778cat >>confdefs.h <<_ACEOF
6779#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6780_ACEOF
6781
6782fi
6783# Extract the first word of "dot", so it can be a program name with args.
6784set dummy dot; 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_DOT+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790 case $DOT in
6791 [\\/]* | ?:[\\/]*)
6792 ac_cv_path_DOT="$DOT" # 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
Scott Michel96dcd2b2007-12-05 21:24:02 +00006801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006802 ac_cv_path_DOT="$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_DOT" && ac_cv_path_DOT="echo dot"
6811 ;;
6812esac
6813fi
6814DOT=$ac_cv_path_DOT
6815if test -n "$DOT"; then
6816 { echo "$as_me:$LINENO: result: $DOT" >&5
6817echo "${ECHO_T}$DOT" >&6; }
6818else
6819 { echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6; }
6821fi
6822
6823
6824if test "$DOT" != "echo dot" ; then
6825
6826cat >>confdefs.h <<\_ACEOF
6827#define HAVE_DOT 1
6828_ACEOF
6829
Jeff Cohen28783c32007-01-12 18:22:38 +00006830 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006831 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6832 fi
6833
6834cat >>confdefs.h <<_ACEOF
6835#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6836_ACEOF
6837
6838fi
6839for ac_prog in gv gsview32
6840do
6841 # Extract the first word of "$ac_prog", so it can be a program name with args.
6842set dummy $ac_prog; ac_word=$2
6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_path_GV+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 case $GV in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6851 ;;
6852 *)
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006860 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
6866IFS=$as_save_IFS
6867
6868 ;;
6869esac
6870fi
6871GV=$ac_cv_path_GV
6872if test -n "$GV"; then
6873 { echo "$as_me:$LINENO: result: $GV" >&5
6874echo "${ECHO_T}$GV" >&6; }
6875else
6876 { echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6; }
6878fi
6879
6880
6881 test -n "$GV" && break
6882done
6883test -n "$GV" || GV="echo gv"
6884
6885if test "$GV" != "echo gv" ; then
6886
6887cat >>confdefs.h <<\_ACEOF
6888#define HAVE_GV 1
6889_ACEOF
6890
Jeff Cohen28783c32007-01-12 18:22:38 +00006891 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006892 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6893 fi
6894
6895cat >>confdefs.h <<_ACEOF
6896#define LLVM_PATH_GV "$GV${EXEEXT}"
6897_ACEOF
6898
6899fi
6900# Extract the first word of "dotty", so it can be a program name with args.
6901set dummy dotty; ac_word=$2
6902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_path_DOTTY+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 case $DOTTY in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006919 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923done
6924done
6925IFS=$as_save_IFS
6926
6927 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6928 ;;
6929esac
6930fi
6931DOTTY=$ac_cv_path_DOTTY
6932if test -n "$DOTTY"; then
6933 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6934echo "${ECHO_T}$DOTTY" >&6; }
6935else
6936 { echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6; }
6938fi
6939
6940
6941if test "$DOTTY" != "echo dotty" ; then
6942
6943cat >>confdefs.h <<\_ACEOF
6944#define HAVE_DOTTY 1
6945_ACEOF
6946
Jeff Cohen28783c32007-01-12 18:22:38 +00006947 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006948 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6949 fi
6950
6951cat >>confdefs.h <<_ACEOF
6952#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6953_ACEOF
6954
6955fi
6956
6957
6958# Extract the first word of "perl", so it can be a program name with args.
6959set dummy perl; ac_word=$2
6960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962if test "${ac_cv_path_PERL+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964else
6965 case $PERL in
6966 [\\/]* | ?:[\\/]*)
6967 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6968 ;;
6969 *)
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006977 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6980 fi
6981done
6982done
6983IFS=$as_save_IFS
6984
6985 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6986 ;;
6987esac
6988fi
6989PERL=$ac_cv_path_PERL
6990if test -n "$PERL"; then
6991 { echo "$as_me:$LINENO: result: $PERL" >&5
6992echo "${ECHO_T}$PERL" >&6; }
6993else
6994 { echo "$as_me:$LINENO: result: no" >&5
6995echo "${ECHO_T}no" >&6; }
6996fi
6997
6998
6999if test "$PERL" != "none"; then
7000 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7001echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7002 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7003 { echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6; }
7005 else
7006 PERL=none
7007 { echo "$as_me:$LINENO: result: not found" >&5
7008echo "${ECHO_T}not found" >&6; }
7009 fi
7010fi
7011
7012
7013if test x"$PERL" = xnone; then
7014 HAVE_PERL=0
7015
Reid Spencer59807fa2007-05-17 18:11:03 +00007016 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7017echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7018 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007019else
7020 HAVE_PERL=1
7021
7022fi
7023
7024# Find a good install program. We prefer a C program (faster),
7025# so one script is as good as another. But avoid the broken or
7026# incompatible versions:
7027# SysV /etc/install, /usr/sbin/install
7028# SunOS /usr/etc/install
7029# IRIX /sbin/install
7030# AIX /bin/install
7031# AmigaOS /C/install, which installs bootblocks on floppy discs
7032# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7033# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7034# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7035# OS/2's system install, which has a completely different semantic
7036# ./install, which can be erroneously created by make from ./install.sh.
7037{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7038echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7039if test -z "$INSTALL"; then
7040if test "${ac_cv_path_install+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 # Account for people who put trailing slashes in PATH elements.
7049case $as_dir/ in
7050 ./ | .// | /cC/* | \
7051 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7052 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7053 /usr/ucb/* ) ;;
7054 *)
7055 # OSF1 and SCO ODT 3.0 have their own names for install.
7056 # Don't use installbsd from OSF since it installs stuff as root
7057 # by default.
7058 for ac_prog in ginstall scoinst install; do
7059 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007060 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007061 if test $ac_prog = install &&
7062 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7063 # AIX install. It has an incompatible calling convention.
7064 :
7065 elif test $ac_prog = install &&
7066 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7067 # program-specific install script used by HP pwplus--don't use.
7068 :
7069 else
7070 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7071 break 3
7072 fi
7073 fi
7074 done
7075 done
7076 ;;
7077esac
7078done
7079IFS=$as_save_IFS
7080
7081
7082fi
7083 if test "${ac_cv_path_install+set}" = set; then
7084 INSTALL=$ac_cv_path_install
7085 else
7086 # As a last resort, use the slow shell script. Don't cache a
7087 # value for INSTALL within a source directory, because that will
7088 # break other packages using the cache if that directory is
7089 # removed, or if the value is a relative name.
7090 INSTALL=$ac_install_sh
7091 fi
7092fi
7093{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7094echo "${ECHO_T}$INSTALL" >&6; }
7095
7096# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7097# It thinks the first close brace ends the variable substitution.
7098test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7099
7100test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7101
7102test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7103
7104
7105# Extract the first word of "bzip2", so it can be a program name with args.
7106set dummy bzip2; ac_word=$2
7107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109if test "${ac_cv_path_BZIP2+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111else
7112 case $BZIP2 in
7113 [\\/]* | ?:[\\/]*)
7114 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7115 ;;
7116 *)
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007124 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128done
7129done
7130IFS=$as_save_IFS
7131
7132 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7133 ;;
7134esac
7135fi
7136BZIP2=$ac_cv_path_BZIP2
7137if test -n "$BZIP2"; then
7138 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7139echo "${ECHO_T}$BZIP2" >&6; }
7140else
7141 { echo "$as_me:$LINENO: result: no" >&5
7142echo "${ECHO_T}no" >&6; }
7143fi
7144
7145
7146# Extract the first word of "doxygen", so it can be a program name with args.
7147set dummy doxygen; ac_word=$2
7148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150if test "${ac_cv_path_DOXYGEN+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153 case $DOXYGEN in
7154 [\\/]* | ?:[\\/]*)
7155 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7156 ;;
7157 *)
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007165 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169done
7170done
7171IFS=$as_save_IFS
7172
7173 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7174 ;;
7175esac
7176fi
7177DOXYGEN=$ac_cv_path_DOXYGEN
7178if test -n "$DOXYGEN"; then
7179 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7180echo "${ECHO_T}$DOXYGEN" >&6; }
7181else
7182 { echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6; }
7184fi
7185
7186
Reid Spencera773bd52006-08-04 18:18:08 +00007187# Extract the first word of "groff", so it can be a program name with args.
7188set dummy groff; ac_word=$2
7189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7191if test "${ac_cv_path_GROFF+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194 case $GROFF in
7195 [\\/]* | ?:[\\/]*)
7196 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7197 ;;
7198 *)
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007206 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210done
7211done
7212IFS=$as_save_IFS
7213
7214 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7215 ;;
7216esac
7217fi
7218GROFF=$ac_cv_path_GROFF
7219if test -n "$GROFF"; then
7220 { echo "$as_me:$LINENO: result: $GROFF" >&5
7221echo "${ECHO_T}$GROFF" >&6; }
7222else
7223 { echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6; }
7225fi
7226
7227
7228# Extract the first word of "gzip", so it can be a program name with args.
7229set dummy gzip; ac_word=$2
7230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232if test "${ac_cv_path_GZIP+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
7235 case $GZIP in
7236 [\\/]* | ?:[\\/]*)
7237 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7238 ;;
7239 *)
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007247 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251done
7252done
7253IFS=$as_save_IFS
7254
7255 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7256 ;;
7257esac
7258fi
7259GZIP=$ac_cv_path_GZIP
7260if test -n "$GZIP"; then
7261 { echo "$as_me:$LINENO: result: $GZIP" >&5
7262echo "${ECHO_T}$GZIP" >&6; }
7263else
7264 { echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6; }
7266fi
7267
7268
7269# Extract the first word of "pod2html", so it can be a program name with args.
7270set dummy pod2html; ac_word=$2
7271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273if test "${ac_cv_path_POD2HTML+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276 case $POD2HTML in
7277 [\\/]* | ?:[\\/]*)
7278 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7279 ;;
7280 *)
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007288 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292done
7293done
7294IFS=$as_save_IFS
7295
7296 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7297 ;;
7298esac
7299fi
7300POD2HTML=$ac_cv_path_POD2HTML
7301if test -n "$POD2HTML"; then
7302 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7303echo "${ECHO_T}$POD2HTML" >&6; }
7304else
7305 { echo "$as_me:$LINENO: result: no" >&5
7306echo "${ECHO_T}no" >&6; }
7307fi
7308
7309
7310# Extract the first word of "pod2man", so it can be a program name with args.
7311set dummy pod2man; ac_word=$2
7312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314if test "${ac_cv_path_POD2MAN+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7316else
7317 case $POD2MAN in
7318 [\\/]* | ?:[\\/]*)
7319 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7320 ;;
7321 *)
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007329 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333done
7334done
7335IFS=$as_save_IFS
7336
7337 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7338 ;;
7339esac
7340fi
7341POD2MAN=$ac_cv_path_POD2MAN
7342if test -n "$POD2MAN"; then
7343 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7344echo "${ECHO_T}$POD2MAN" >&6; }
7345else
7346 { echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6; }
7348fi
7349
7350
7351# Extract the first word of "runtest", so it can be a program name with args.
7352set dummy runtest; ac_word=$2
7353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355if test "${ac_cv_path_RUNTEST+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358 case $RUNTEST in
7359 [\\/]* | ?:[\\/]*)
7360 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7361 ;;
7362 *)
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007370 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374done
7375done
7376IFS=$as_save_IFS
7377
7378 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7379 ;;
7380esac
7381fi
7382RUNTEST=$ac_cv_path_RUNTEST
7383if test -n "$RUNTEST"; then
7384 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7385echo "${ECHO_T}$RUNTEST" >&6; }
7386else
7387 { echo "$as_me:$LINENO: result: no" >&5
7388echo "${ECHO_T}no" >&6; }
7389fi
7390
7391
7392
7393no_itcl=true
7394{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7395echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7396
7397# Check whether --with-tclinclude was given.
7398if test "${with_tclinclude+set}" = set; then
7399 withval=$with_tclinclude; with_tclinclude=${withval}
7400else
7401 with_tclinclude=''
7402fi
7403
7404if test "${ac_cv_path_tclsh+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407
7408if test x"${with_tclinclude}" != x ; then
7409 if test -f ${with_tclinclude}/tclsh ; then
7410 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7411 elif test -f ${with_tclinclude}/src/tclsh ; then
7412 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7413 else
7414 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7415echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7416 { (exit 1); exit 1; }; }
7417 fi
7418fi
7419
7420if test x"${ac_cv_path_tclsh}" = x ; then
7421 { echo "$as_me:$LINENO: result: none" >&5
7422echo "${ECHO_T}none" >&6; }
7423 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
7424do
7425 # Extract the first word of "$ac_prog", so it can be a program name with args.
7426set dummy $ac_prog; ac_word=$2
7427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7429if test "${ac_cv_path_TCLSH+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432 case $TCLSH in
7433 [\\/]* | ?:[\\/]*)
7434 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7435 ;;
7436 *)
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007444 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448done
7449done
7450IFS=$as_save_IFS
7451
7452 ;;
7453esac
7454fi
7455TCLSH=$ac_cv_path_TCLSH
7456if test -n "$TCLSH"; then
7457 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7458echo "${ECHO_T}$TCLSH" >&6; }
7459else
7460 { echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6; }
7462fi
7463
7464
7465 test -n "$TCLSH" && break
7466done
7467
7468 if test x"${TCLSH}" = x ; then
7469 ac_cv_path_tclsh='';
7470 else
7471 ac_cv_path_tclsh="${TCLSH}";
7472 fi
7473else
7474 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7475echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7476 TCLSH="${ac_cv_path_tclsh}"
7477
7478fi
7479
7480fi
7481
7482# Extract the first word of "zip", so it can be a program name with args.
7483set dummy zip; ac_word=$2
7484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486if test "${ac_cv_path_ZIP+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
7489 case $ZIP in
7490 [\\/]* | ?:[\\/]*)
7491 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7492 ;;
7493 *)
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007501 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505done
7506done
7507IFS=$as_save_IFS
7508
7509 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7510 ;;
7511esac
7512fi
7513ZIP=$ac_cv_path_ZIP
7514if test -n "$ZIP"; then
7515 { echo "$as_me:$LINENO: result: $ZIP" >&5
7516echo "${ECHO_T}$ZIP" >&6; }
7517else
7518 { echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6; }
7520fi
7521
7522
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007523# Extract the first word of "ocamlc", so it can be a program name with args.
7524set dummy ocamlc; ac_word=$2
7525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527if test "${ac_cv_path_OCAMLC+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530 case $OCAMLC in
7531 [\\/]* | ?:[\\/]*)
7532 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7533 ;;
7534 *)
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007542 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547done
7548IFS=$as_save_IFS
7549
7550 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7551 ;;
7552esac
7553fi
7554OCAMLC=$ac_cv_path_OCAMLC
7555if test -n "$OCAMLC"; then
7556 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7557echo "${ECHO_T}$OCAMLC" >&6; }
7558else
7559 { echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6; }
7561fi
7562
7563
7564# Extract the first word of "ocamlopt", so it can be a program name with args.
7565set dummy ocamlopt; ac_word=$2
7566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570else
7571 case $OCAMLOPT in
7572 [\\/]* | ?:[\\/]*)
7573 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7574 ;;
7575 *)
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007583 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587done
7588done
7589IFS=$as_save_IFS
7590
7591 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7592 ;;
7593esac
7594fi
7595OCAMLOPT=$ac_cv_path_OCAMLOPT
7596if test -n "$OCAMLOPT"; then
7597 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7598echo "${ECHO_T}$OCAMLOPT" >&6; }
7599else
7600 { echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6; }
7602fi
7603
7604
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007605# Extract the first word of "ocamldep", so it can be a program name with args.
7606set dummy ocamldep; ac_word=$2
7607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7611else
7612 case $OCAMLDEP in
7613 [\\/]* | ?:[\\/]*)
7614 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7615 ;;
7616 *)
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007624 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628done
7629done
7630IFS=$as_save_IFS
7631
7632 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
7633 ;;
7634esac
7635fi
7636OCAMLDEP=$ac_cv_path_OCAMLDEP
7637if test -n "$OCAMLDEP"; then
7638 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7639echo "${ECHO_T}$OCAMLDEP" >&6; }
7640else
7641 { echo "$as_me:$LINENO: result: no" >&5
7642echo "${ECHO_T}no" >&6; }
7643fi
7644
7645
Reid Spencera773bd52006-08-04 18:18:08 +00007646
7647{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7648echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7649if test "${llvm_cv_link_use_r+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652 ac_ext=c
7653ac_cpp='$CPP $CPPFLAGS'
7654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
7658 oldcflags="$CFLAGS"
7659 CFLAGS="$CFLAGS -Wl,-R."
7660 cat >conftest.$ac_ext <<_ACEOF
7661/* confdefs.h. */
7662_ACEOF
7663cat confdefs.h >>conftest.$ac_ext
7664cat >>conftest.$ac_ext <<_ACEOF
7665/* end confdefs.h. */
7666
7667int
7668main ()
7669{
7670int main() { return 0; }
7671 ;
7672 return 0;
7673}
7674_ACEOF
7675rm -f conftest.$ac_objext conftest$ac_exeext
7676if { (ac_try="$ac_link"
7677case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680esac
7681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_link") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest$ac_exeext &&
7692 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007693 llvm_cv_link_use_r=yes
7694else
7695 echo "$as_me: failed program was:" >&5
7696sed 's/^/| /' conftest.$ac_ext >&5
7697
7698 llvm_cv_link_use_r=no
7699fi
7700
Scott Michel96dcd2b2007-12-05 21:24:02 +00007701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00007702 conftest$ac_exeext conftest.$ac_ext
7703 CFLAGS="$oldcflags"
7704 ac_ext=c
7705ac_cpp='$CPP $CPPFLAGS'
7706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710
7711fi
7712{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7713echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7714if test "$llvm_cv_link_use_r" = yes ; then
7715
7716cat >>confdefs.h <<\_ACEOF
7717#define HAVE_LINK_R 1
7718_ACEOF
7719
7720 fi
7721
7722
7723
7724
7725{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7726echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7727if test "${ac_cv_c_const+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
7736
7737int
7738main ()
7739{
7740/* FIXME: Include the comments suggested by Paul. */
7741#ifndef __cplusplus
7742 /* Ultrix mips cc rejects this. */
7743 typedef int charset[2];
Scott Michel96dcd2b2007-12-05 21:24:02 +00007744 const charset cs;
Reid Spencera773bd52006-08-04 18:18:08 +00007745 /* SunOS 4.1.1 cc rejects this. */
Scott Michel96dcd2b2007-12-05 21:24:02 +00007746 char const *const *pcpcc;
7747 char **ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00007748 /* NEC SVR4.0.2 mips cc rejects this. */
7749 struct point {int x, y;};
7750 static struct point const zero = {0,0};
7751 /* AIX XL C 1.02.0.0 rejects this.
7752 It does not let you subtract one const X* pointer from another in
7753 an arm of an if-expression whose if-part is not a constant
7754 expression */
7755 const char *g = "string";
Scott Michel96dcd2b2007-12-05 21:24:02 +00007756 pcpcc = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007757 /* HPUX 7.0 cc rejects these. */
Scott Michel96dcd2b2007-12-05 21:24:02 +00007758 ++pcpcc;
7759 ppc = (char**) pcpcc;
7760 pcpcc = (char const *const *) ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00007761 { /* SCO 3.2v4 cc rejects this. */
7762 char *t;
7763 char const *s = 0 ? (char *) 0 : (char const *) 0;
7764
7765 *t++ = 0;
7766 if (s) return 0;
7767 }
7768 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7769 int x[] = {25, 17};
7770 const int *foo = &x[0];
7771 ++foo;
7772 }
7773 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7774 typedef const int *iptr;
7775 iptr p = 0;
7776 ++p;
7777 }
7778 { /* AIX XL C 1.02.0.0 rejects this saying
7779 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7780 struct s { int j; const int *ap[3]; };
7781 struct s *b; b->j = 5;
7782 }
7783 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7784 const int foo = 10;
7785 if (!foo) return 0;
7786 }
Scott Michel96dcd2b2007-12-05 21:24:02 +00007787 return !cs[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007788#endif
7789
7790 ;
7791 return 0;
7792}
7793_ACEOF
7794rm -f conftest.$ac_objext
7795if { (ac_try="$ac_compile"
7796case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799esac
7800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_compile") 2>conftest.er1
7802 ac_status=$?
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007811 ac_cv_c_const=yes
7812else
7813 echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816 ac_cv_c_const=no
7817fi
7818
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820fi
7821{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7822echo "${ECHO_T}$ac_cv_c_const" >&6; }
7823if test $ac_cv_c_const = no; then
7824
7825cat >>confdefs.h <<\_ACEOF
7826#define const
7827_ACEOF
7828
7829fi
7830
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007831
7832
7833
7834
7835
7836ac_header_dirent=no
7837for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7838 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00007839{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7840echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843else
7844 cat >conftest.$ac_ext <<_ACEOF
7845/* confdefs.h. */
7846_ACEOF
7847cat confdefs.h >>conftest.$ac_ext
7848cat >>conftest.$ac_ext <<_ACEOF
7849/* end confdefs.h. */
7850#include <sys/types.h>
7851#include <$ac_hdr>
7852
7853int
7854main ()
7855{
7856if ((DIR *) 0)
7857return 0;
7858 ;
7859 return 0;
7860}
7861_ACEOF
7862rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00007863if { (ac_try="$ac_compile"
7864case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007879 eval "$as_ac_Header=yes"
7880else
7881 echo "$as_me: failed program was:" >&5
7882sed 's/^/| /' conftest.$ac_ext >&5
7883
Reid Spencera773bd52006-08-04 18:18:08 +00007884 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007885fi
Reid Spencera773bd52006-08-04 18:18:08 +00007886
7887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007888fi
Reid Spencera773bd52006-08-04 18:18:08 +00007889ac_res=`eval echo '${'$as_ac_Header'}'`
7890 { echo "$as_me:$LINENO: result: $ac_res" >&5
7891echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007892if test `eval echo '${'$as_ac_Header'}'` = yes; then
7893 cat >>confdefs.h <<_ACEOF
7894#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7895_ACEOF
7896
7897ac_header_dirent=$ac_hdr; break
7898fi
7899
7900done
7901# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7902if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00007903 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7904echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007905if test "${ac_cv_search_opendir+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907else
7908 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007909cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
7915
Reid Spencera773bd52006-08-04 18:18:08 +00007916/* Override any GCC internal prototype to avoid an error.
7917 Use char because int might match the return type of a GCC
7918 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007919#ifdef __cplusplus
7920extern "C"
7921#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007922char opendir ();
7923int
7924main ()
7925{
Reid Spencera773bd52006-08-04 18:18:08 +00007926return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007927 ;
7928 return 0;
7929}
7930_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007931for ac_lib in '' dir; do
7932 if test -z "$ac_lib"; then
7933 ac_res="none required"
7934 else
7935 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00007937 fi
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939if { (ac_try="$ac_link"
7940case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943esac
7944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest$ac_exeext &&
7955 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007956 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007957else
7958 echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007961
7962fi
7963
Scott Michel96dcd2b2007-12-05 21:24:02 +00007964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00007965 conftest$ac_exeext
7966 if test "${ac_cv_search_opendir+set}" = set; then
7967 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007968fi
John Criswell7a73b802003-06-30 21:59:07 +00007969done
Reid Spencera773bd52006-08-04 18:18:08 +00007970if test "${ac_cv_search_opendir+set}" = set; then
7971 :
7972else
7973 ac_cv_search_opendir=no
7974fi
7975rm conftest.$ac_ext
7976LIBS=$ac_func_search_save_LIBS
7977fi
7978{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7979echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7980ac_res=$ac_cv_search_opendir
7981if test "$ac_res" != no; then
7982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00007983
Reid Spencera773bd52006-08-04 18:18:08 +00007984fi
7985
7986else
7987 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7988echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7989if test "${ac_cv_search_opendir+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992 ac_func_search_save_LIBS=$LIBS
7993cat >conftest.$ac_ext <<_ACEOF
7994/* confdefs.h. */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h. */
7999
8000/* Override any GCC internal prototype to avoid an error.
8001 Use char because int might match the return type of a GCC
8002 builtin and then its argument prototype would still apply. */
8003#ifdef __cplusplus
8004extern "C"
8005#endif
8006char opendir ();
8007int
8008main ()
8009{
8010return opendir ();
8011 ;
8012 return 0;
8013}
8014_ACEOF
8015for ac_lib in '' x; do
8016 if test -z "$ac_lib"; then
8017 ac_res="none required"
8018 else
8019 ac_res=-l$ac_lib
8020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8021 fi
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023if { (ac_try="$ac_link"
8024case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8027esac
8028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_link") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest$ac_exeext &&
8039 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00008040 ac_cv_search_opendir=$ac_res
8041else
8042 echo "$as_me: failed program was:" >&5
8043sed 's/^/| /' conftest.$ac_ext >&5
8044
8045
8046fi
8047
Scott Michel96dcd2b2007-12-05 21:24:02 +00008048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00008049 conftest$ac_exeext
8050 if test "${ac_cv_search_opendir+set}" = set; then
8051 break
8052fi
8053done
8054if test "${ac_cv_search_opendir+set}" = set; then
8055 :
8056else
8057 ac_cv_search_opendir=no
8058fi
8059rm conftest.$ac_ext
8060LIBS=$ac_func_search_save_LIBS
8061fi
8062{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8063echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8064ac_res=$ac_cv_search_opendir
8065if test "$ac_res" != no; then
8066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8067
8068fi
8069
8070fi
John Criswell7a73b802003-06-30 21:59:07 +00008071
8072
8073for ac_header in dlfcn.h
8074do
8075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008080 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008081fi
Reid Spencera773bd52006-08-04 18:18:08 +00008082ac_res=`eval echo '${'$as_ac_Header'}'`
8083 { echo "$as_me:$LINENO: result: $ac_res" >&5
8084echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008085else
Brian Gaeke0a621332004-09-08 20:38:05 +00008086 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008087{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008089cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008090/* confdefs.h. */
8091_ACEOF
8092cat confdefs.h >>conftest.$ac_ext
8093cat >>conftest.$ac_ext <<_ACEOF
8094/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008095$ac_includes_default
8096#include <$ac_header>
8097_ACEOF
8098rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008099if { (ac_try="$ac_compile"
8100case "(($ac_try" in
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8103esac
8104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008106 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008107 grep -v '^ *+' conftest.er1 >conftest.err
8108 rm -f conftest.er1
8109 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008111 (exit $ac_status); } && {
8112 test -z "$ac_c_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.$ac_objext; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008115 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008116else
8117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008118sed 's/^/| /' conftest.$ac_ext >&5
8119
Reid Spencera773bd52006-08-04 18:18:08 +00008120 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008121fi
Reid Spencera773bd52006-08-04 18:18:08 +00008122
8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8125echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008126
8127# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008128{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008130cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008131/* confdefs.h. */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h. */
8136#include <$ac_header>
8137_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008138if { (ac_try="$ac_cpp conftest.$ac_ext"
8139case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142esac
8143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008145 ac_status=$?
8146 grep -v '^ *+' conftest.er1 >conftest.err
8147 rm -f conftest.er1
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008150 (exit $ac_status); } >/dev/null && {
8151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8152 test ! -s conftest.err
8153 }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008154 ac_header_preproc=yes
8155else
8156 echo "$as_me: failed program was:" >&5
8157sed 's/^/| /' conftest.$ac_ext >&5
8158
8159 ac_header_preproc=no
8160fi
Reid Spencera773bd52006-08-04 18:18:08 +00008161
Brian Gaeke0a621332004-09-08 20:38:05 +00008162rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008163{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8164echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008165
8166# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8168 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8173 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008174 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008175 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008188 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008189## ----------------------------------- ##
8190## Report this to llvmbugs@cs.uiuc.edu ##
8191## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008192_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008193 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008194 ;;
8195esac
Reid Spencera773bd52006-08-04 18:18:08 +00008196{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008201 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008202fi
Reid Spencera773bd52006-08-04 18:18:08 +00008203ac_res=`eval echo '${'$as_ac_Header'}'`
8204 { echo "$as_me:$LINENO: result: $ac_res" >&5
8205echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008206
8207fi
John Criswell7a73b802003-06-30 21:59:07 +00008208if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209 cat >>confdefs.h <<_ACEOF
8210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8211_ACEOF
8212
8213fi
8214
8215done
8216
Reid Spencera773bd52006-08-04 18:18:08 +00008217# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008218if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008219 enableval=$enable_ltdl_install;
8220fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008221
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008222
Duncan Sands1eff7042007-12-10 17:43:13 +00008223
8224
8225if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008226 INSTALL_LTDL_TRUE=
8227 INSTALL_LTDL_FALSE='#'
8228else
8229 INSTALL_LTDL_TRUE='#'
8230 INSTALL_LTDL_FALSE=
8231fi
8232
Duncan Sands1eff7042007-12-10 17:43:13 +00008233
8234
8235if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008236 CONVENIENCE_LTDL_TRUE=
8237 CONVENIENCE_LTDL_FALSE='#'
8238else
8239 CONVENIENCE_LTDL_TRUE='#'
8240 CONVENIENCE_LTDL_FALSE=
8241fi
8242
8243
Reid Spencera773bd52006-08-04 18:18:08 +00008244{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8245echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008246library_names_spec=
8247libname_spec='lib$name'
8248soname_spec=
8249shrext_cmds=".so"
8250postinstall_cmds=
8251postuninstall_cmds=
8252finish_cmds=
8253finish_eval=
8254shlibpath_var=
8255shlibpath_overrides_runpath=unknown
8256version_type=none
8257dynamic_linker="$host_os ld.so"
8258sys_lib_dlsearch_path_spec="/lib /usr/lib"
8259if test "$GCC" = yes; then
8260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8262 # if the path contains ";" then we assume it to be the separator
8263 # otherwise default to the standard path separator (i.e. ":") - it is
8264 # assumed that no part of a normal pathname contains ";" but that should
8265 # okay in the real world where ";" in dirpaths is itself problematic.
8266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8267 else
8268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8269 fi
8270else
8271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8272fi
8273need_lib_prefix=unknown
8274hardcode_into_libs=no
8275
8276# when you set need_version to no, make sure it does not cause -set_version
8277# flags to be left without arguments
8278need_version=unknown
8279
8280case $host_os in
8281aix3*)
8282 version_type=linux
8283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8284 shlibpath_var=LIBPATH
8285
8286 # AIX 3 has no versioning support, so we append a major version to the name.
8287 soname_spec='${libname}${release}${shared_ext}$major'
8288 ;;
8289
8290aix4* | aix5*)
8291 version_type=linux
8292 need_lib_prefix=no
8293 need_version=no
8294 hardcode_into_libs=yes
8295 if test "$host_cpu" = ia64; then
8296 # AIX 5 supports IA64
8297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8298 shlibpath_var=LD_LIBRARY_PATH
8299 else
8300 # With GCC up to 2.95.x, collect2 would create an import file
8301 # for dependence libraries. The import file would start with
8302 # the line `#! .'. This would cause the generated library to
8303 # depend on `.', always an invalid library. This was fixed in
8304 # development snapshots of GCC prior to 3.0.
8305 case $host_os in
8306 aix4 | aix4.[01] | aix4.[01].*)
8307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8308 echo ' yes '
8309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8310 :
8311 else
8312 can_build_shared=no
8313 fi
8314 ;;
8315 esac
8316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8317 # soname into executable. Probably we can add versioning support to
8318 # collect2, so additional links can be useful in future.
8319 if test "$aix_use_runtimelinking" = yes; then
8320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8321 # instead of lib<name>.a to let people know that these are not
8322 # typical AIX shared libraries.
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324 else
8325 # We preserve .a as extension for shared libraries through AIX4.2
8326 # and later when we are not doing run time linking.
8327 library_names_spec='${libname}${release}.a $libname.a'
8328 soname_spec='${libname}${release}${shared_ext}$major'
8329 fi
8330 shlibpath_var=LIBPATH
8331 fi
8332 ;;
8333
8334amigaos*)
8335 library_names_spec='$libname.ixlibrary $libname.a'
8336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8337 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'
8338 ;;
8339
8340beos*)
8341 library_names_spec='${libname}${shared_ext}'
8342 dynamic_linker="$host_os ld.so"
8343 shlibpath_var=LIBRARY_PATH
8344 ;;
8345
8346bsdi[45]*)
8347 version_type=linux
8348 need_version=no
8349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8350 soname_spec='${libname}${release}${shared_ext}$major'
8351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8352 shlibpath_var=LD_LIBRARY_PATH
8353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8355 # the default ld.so.conf also contains /usr/contrib/lib and
8356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8357 # libtool to hard-code these into programs
8358 ;;
8359
8360cygwin* | mingw* | pw32*)
8361 version_type=windows
8362 shrext_cmds=".dll"
8363 need_version=no
8364 need_lib_prefix=no
8365
8366 case $GCC,$host_os in
8367 yes,cygwin* | yes,mingw* | yes,pw32*)
8368 library_names_spec='$libname.dll.a'
8369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8370 postinstall_cmds='base_file=`basename \${file}`~
8371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8372 dldir=$destdir/`dirname \$dlpath`~
8373 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008374 $install_prog $dir/$dlname \$dldir/$dlname~
8375 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8377 dlpath=$dir/\$dldll~
8378 $rm \$dlpath'
8379 shlibpath_overrides_runpath=yes
8380
8381 case $host_os in
8382 cygwin*)
8383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8384 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8386 ;;
8387 mingw*)
8388 # MinGW DLLs use traditional 'lib' prefix
8389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8392 # It is most probably a Windows format PATH printed by
8393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8394 # path with ; separators, and with drive letters. We can handle the
8395 # drive letters (cygwin fileutils understands them), so leave them,
8396 # especially as we might pass files found there to a mingw objdump,
8397 # which wouldn't understand a cygwinified path. Ahh.
8398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8399 else
8400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8401 fi
8402 ;;
8403 pw32*)
8404 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008405 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 +00008406 ;;
8407 esac
8408 ;;
8409
8410 *)
8411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8412 ;;
8413 esac
8414 dynamic_linker='Win32 ld.exe'
8415 # FIXME: first we should search . and the directory the executable is in
8416 shlibpath_var=PATH
8417 ;;
8418
8419darwin* | rhapsody*)
8420 dynamic_linker="$host_os dyld"
8421 version_type=darwin
8422 need_lib_prefix=no
8423 need_version=no
8424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8425 soname_spec='${libname}${release}${major}$shared_ext'
8426 shlibpath_overrides_runpath=yes
8427 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008428 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8430 if test "$GCC" = yes; then
8431 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"`
8432 else
8433 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8434 fi
8435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8436 ;;
8437
8438dgux*)
8439 version_type=linux
8440 need_lib_prefix=no
8441 need_version=no
8442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8443 soname_spec='${libname}${release}${shared_ext}$major'
8444 shlibpath_var=LD_LIBRARY_PATH
8445 ;;
8446
8447freebsd1*)
8448 dynamic_linker=no
8449 ;;
8450
8451kfreebsd*-gnu)
8452 version_type=linux
8453 need_lib_prefix=no
8454 need_version=no
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8456 soname_spec='${libname}${release}${shared_ext}$major'
8457 shlibpath_var=LD_LIBRARY_PATH
8458 shlibpath_overrides_runpath=no
8459 hardcode_into_libs=yes
8460 dynamic_linker='GNU ld.so'
8461 ;;
8462
Reid Spencera773bd52006-08-04 18:18:08 +00008463freebsd* | dragonfly*)
8464 # DragonFly does not have aout. When/if they implement a new
8465 # versioning mechanism, adjust this.
8466 if test -x /usr/bin/objformat; then
8467 objformat=`/usr/bin/objformat`
8468 else
8469 case $host_os in
8470 freebsd[123]*) objformat=aout ;;
8471 *) objformat=elf ;;
8472 esac
8473 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008474 version_type=freebsd-$objformat
8475 case $version_type in
8476 freebsd-elf*)
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8478 need_version=no
8479 need_lib_prefix=no
8480 ;;
8481 freebsd-*)
8482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8483 need_version=yes
8484 ;;
8485 esac
8486 shlibpath_var=LD_LIBRARY_PATH
8487 case $host_os in
8488 freebsd2*)
8489 shlibpath_overrides_runpath=yes
8490 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008491 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008492 shlibpath_overrides_runpath=yes
8493 hardcode_into_libs=yes
8494 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008497 shlibpath_overrides_runpath=no
8498 hardcode_into_libs=yes
8499 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008500 freebsd*) # from 4.6 on
8501 shlibpath_overrides_runpath=yes
8502 hardcode_into_libs=yes
8503 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008504 esac
8505 ;;
8506
8507gnu*)
8508 version_type=linux
8509 need_lib_prefix=no
8510 need_version=no
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8512 soname_spec='${libname}${release}${shared_ext}$major'
8513 shlibpath_var=LD_LIBRARY_PATH
8514 hardcode_into_libs=yes
8515 ;;
8516
8517hpux9* | hpux10* | hpux11*)
8518 # Give a soname corresponding to the major version so that dld.sl refuses to
8519 # link against other versions.
8520 version_type=sunos
8521 need_lib_prefix=no
8522 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008523 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008524 ia64*)
8525 shrext_cmds='.so'
8526 hardcode_into_libs=yes
8527 dynamic_linker="$host_os dld.so"
8528 shlibpath_var=LD_LIBRARY_PATH
8529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8531 soname_spec='${libname}${release}${shared_ext}$major'
8532 if test "X$HPUX_IA64_MODE" = X32; then
8533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8534 else
8535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8536 fi
8537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8538 ;;
8539 hppa*64*)
8540 shrext_cmds='.sl'
8541 hardcode_into_libs=yes
8542 dynamic_linker="$host_os dld.sl"
8543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8546 soname_spec='${libname}${release}${shared_ext}$major'
8547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8549 ;;
8550 *)
8551 shrext_cmds='.sl'
8552 dynamic_linker="$host_os dld.sl"
8553 shlibpath_var=SHLIB_PATH
8554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556 soname_spec='${libname}${release}${shared_ext}$major'
8557 ;;
8558 esac
8559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8560 postinstall_cmds='chmod 555 $lib'
8561 ;;
8562
Reid Spencera773bd52006-08-04 18:18:08 +00008563interix3*)
8564 version_type=linux
8565 need_lib_prefix=no
8566 need_version=no
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8568 soname_spec='${libname}${release}${shared_ext}$major'
8569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8570 shlibpath_var=LD_LIBRARY_PATH
8571 shlibpath_overrides_runpath=no
8572 hardcode_into_libs=yes
8573 ;;
8574
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008575irix5* | irix6* | nonstopux*)
8576 case $host_os in
8577 nonstopux*) version_type=nonstopux ;;
8578 *)
8579 if test "$lt_cv_prog_gnu_ld" = yes; then
8580 version_type=linux
8581 else
8582 version_type=irix
8583 fi ;;
8584 esac
8585 need_lib_prefix=no
8586 need_version=no
8587 soname_spec='${libname}${release}${shared_ext}$major'
8588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8589 case $host_os in
8590 irix5* | nonstopux*)
8591 libsuff= shlibsuff=
8592 ;;
8593 *)
8594 case $LD in # libtool.m4 will add one of these switches to LD
8595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8596 libsuff= shlibsuff= libmagic=32-bit;;
8597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8598 libsuff=32 shlibsuff=N32 libmagic=N32;;
8599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8601 *) libsuff= shlibsuff= libmagic=never-match;;
8602 esac
8603 ;;
8604 esac
8605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8606 shlibpath_overrides_runpath=no
8607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8609 hardcode_into_libs=yes
8610 ;;
8611
8612# No shared lib support for Linux oldld, aout, or coff.
8613linux*oldld* | linux*aout* | linux*coff*)
8614 dynamic_linker=no
8615 ;;
8616
8617# This must be Linux ELF.
8618linux*)
8619 version_type=linux
8620 need_lib_prefix=no
8621 need_version=no
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 soname_spec='${libname}${release}${shared_ext}$major'
8624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 shlibpath_overrides_runpath=no
8627 # This implies no fast_install, which is unacceptable.
8628 # Some rework will be needed to allow for fast_install
8629 # before this can be enabled.
8630 hardcode_into_libs=yes
8631
8632 # Append ld.so.conf contents to the search path
8633 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008634 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 +00008635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8636 fi
8637
8638 # We used to test for /lib/ld.so.1 and disable shared libraries on
8639 # powerpc, because MkLinux only supported shared libraries with the
8640 # GNU dynamic linker. Since this was broken with cross compilers,
8641 # most powerpc-linux boxes support dynamic linking these days and
8642 # people can always --disable-shared, the test was removed, and we
8643 # assume the GNU/Linux dynamic linker is in use.
8644 dynamic_linker='GNU/Linux ld.so'
8645 ;;
8646
8647knetbsd*-gnu)
8648 version_type=linux
8649 need_lib_prefix=no
8650 need_version=no
8651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8652 soname_spec='${libname}${release}${shared_ext}$major'
8653 shlibpath_var=LD_LIBRARY_PATH
8654 shlibpath_overrides_runpath=no
8655 hardcode_into_libs=yes
8656 dynamic_linker='GNU ld.so'
8657 ;;
8658
8659netbsd*)
8660 version_type=sunos
8661 need_lib_prefix=no
8662 need_version=no
8663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8666 dynamic_linker='NetBSD (a.out) ld.so'
8667 else
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8669 soname_spec='${libname}${release}${shared_ext}$major'
8670 dynamic_linker='NetBSD ld.elf_so'
8671 fi
8672 shlibpath_var=LD_LIBRARY_PATH
8673 shlibpath_overrides_runpath=yes
8674 hardcode_into_libs=yes
8675 ;;
8676
8677newsos6)
8678 version_type=linux
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8680 shlibpath_var=LD_LIBRARY_PATH
8681 shlibpath_overrides_runpath=yes
8682 ;;
8683
8684nto-qnx*)
8685 version_type=linux
8686 need_lib_prefix=no
8687 need_version=no
8688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8689 soname_spec='${libname}${release}${shared_ext}$major'
8690 shlibpath_var=LD_LIBRARY_PATH
8691 shlibpath_overrides_runpath=yes
8692 ;;
8693
8694openbsd*)
8695 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008696 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008697 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8699 case $host_os in
8700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8701 *) need_version=no ;;
8702 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8705 shlibpath_var=LD_LIBRARY_PATH
8706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8707 case $host_os in
8708 openbsd2.[89] | openbsd2.[89].*)
8709 shlibpath_overrides_runpath=no
8710 ;;
8711 *)
8712 shlibpath_overrides_runpath=yes
8713 ;;
8714 esac
8715 else
8716 shlibpath_overrides_runpath=yes
8717 fi
8718 ;;
8719
8720os2*)
8721 libname_spec='$name'
8722 shrext_cmds=".dll"
8723 need_lib_prefix=no
8724 library_names_spec='$libname${shared_ext} $libname.a'
8725 dynamic_linker='OS/2 ld.exe'
8726 shlibpath_var=LIBPATH
8727 ;;
8728
8729osf3* | osf4* | osf5*)
8730 version_type=osf
8731 need_lib_prefix=no
8732 need_version=no
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735 shlibpath_var=LD_LIBRARY_PATH
8736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8738 ;;
8739
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008740solaris*)
8741 version_type=linux
8742 need_lib_prefix=no
8743 need_version=no
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8745 soname_spec='${libname}${release}${shared_ext}$major'
8746 shlibpath_var=LD_LIBRARY_PATH
8747 shlibpath_overrides_runpath=yes
8748 hardcode_into_libs=yes
8749 # ldd complains unless libraries are executable
8750 postinstall_cmds='chmod +x $lib'
8751 ;;
8752
8753sunos4*)
8754 version_type=sunos
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=yes
8759 if test "$with_gnu_ld" = yes; then
8760 need_lib_prefix=no
8761 fi
8762 need_version=yes
8763 ;;
8764
Reid Spencera773bd52006-08-04 18:18:08 +00008765sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008766 version_type=linux
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 shlibpath_var=LD_LIBRARY_PATH
8770 case $host_vendor in
8771 sni)
8772 shlibpath_overrides_runpath=no
8773 need_lib_prefix=no
8774 export_dynamic_flag_spec='${wl}-Blargedynsym'
8775 runpath_var=LD_RUN_PATH
8776 ;;
8777 siemens)
8778 need_lib_prefix=no
8779 ;;
8780 motorola)
8781 need_lib_prefix=no
8782 need_version=no
8783 shlibpath_overrides_runpath=no
8784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8785 ;;
8786 esac
8787 ;;
8788
8789sysv4*MP*)
8790 if test -d /usr/nec ;then
8791 version_type=linux
8792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8793 soname_spec='$libname${shared_ext}.$major'
8794 shlibpath_var=LD_LIBRARY_PATH
8795 fi
8796 ;;
8797
Reid Spencera773bd52006-08-04 18:18:08 +00008798sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8799 version_type=freebsd-elf
8800 need_lib_prefix=no
8801 need_version=no
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 shlibpath_var=LD_LIBRARY_PATH
8805 hardcode_into_libs=yes
8806 if test "$with_gnu_ld" = yes; then
8807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8808 shlibpath_overrides_runpath=no
8809 else
8810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8811 shlibpath_overrides_runpath=yes
8812 case $host_os in
8813 sco3.2v5*)
8814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8815 ;;
8816 esac
8817 fi
8818 sys_lib_dlsearch_path_spec='/usr/lib'
8819 ;;
8820
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008821uts4*)
8822 version_type=linux
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 ;;
8827
8828*)
8829 dynamic_linker=no
8830 ;;
8831esac
Reid Spencera773bd52006-08-04 18:18:08 +00008832{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8833echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008834test "$dynamic_linker" = no && can_build_shared=no
8835
Reid Spencera773bd52006-08-04 18:18:08 +00008836variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8837if test "$GCC" = yes; then
8838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8839fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008840
Reid Spencera773bd52006-08-04 18:18:08 +00008841
8842{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8843echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008844if test "${libltdl_cv_shlibext+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846else
8847
8848module=yes
8849eval libltdl_cv_shlibext=$shrext_cmds
8850
8851fi
Reid Spencera773bd52006-08-04 18:18:08 +00008852{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8853echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008854if test -n "$libltdl_cv_shlibext"; then
8855
8856cat >>confdefs.h <<_ACEOF
8857#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8858_ACEOF
8859
8860fi
8861
8862
Reid Spencera773bd52006-08-04 18:18:08 +00008863{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8864echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008865if test "${libltdl_cv_shlibpath_var+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8867else
8868 libltdl_cv_shlibpath_var="$shlibpath_var"
8869fi
Reid Spencera773bd52006-08-04 18:18:08 +00008870{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8871echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008872if test -n "$libltdl_cv_shlibpath_var"; then
8873
8874cat >>confdefs.h <<_ACEOF
8875#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8876_ACEOF
8877
8878fi
8879
8880
Reid Spencera773bd52006-08-04 18:18:08 +00008881{ echo "$as_me:$LINENO: checking for the default library search path" >&5
8882echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008883if test "${libltdl_cv_sys_search_path+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8885else
8886 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8887fi
Reid Spencera773bd52006-08-04 18:18:08 +00008888{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8889echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008890if test -n "$libltdl_cv_sys_search_path"; then
8891 sys_search_path=
8892 for dir in $libltdl_cv_sys_search_path; do
8893 if test -z "$sys_search_path"; then
8894 sys_search_path="$dir"
8895 else
8896 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8897 fi
8898 done
8899
8900cat >>confdefs.h <<_ACEOF
8901#define LTDL_SYSSEARCHPATH "$sys_search_path"
8902_ACEOF
8903
8904fi
8905
Reid Spencera773bd52006-08-04 18:18:08 +00008906{ echo "$as_me:$LINENO: checking for objdir" >&5
8907echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008908if test "${libltdl_cv_objdir+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910else
8911 libltdl_cv_objdir="$objdir"
8912 if test -n "$objdir"; then
8913 :
8914 else
8915 rm -f .libs 2>/dev/null
8916 mkdir .libs 2>/dev/null
8917 if test -d .libs; then
8918 libltdl_cv_objdir=.libs
8919 else
8920 # MS-DOS does not allow filenames that begin with a dot.
8921 libltdl_cv_objdir=_libs
8922 fi
8923 rmdir .libs 2>/dev/null
8924 fi
8925
8926fi
Reid Spencera773bd52006-08-04 18:18:08 +00008927{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8928echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008929
8930cat >>confdefs.h <<_ACEOF
8931#define LTDL_OBJDIR "$libltdl_cv_objdir/"
8932_ACEOF
8933
8934
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008935
8936
8937
8938
8939# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00008940{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8941echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008942if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944else
8945
8946# These are sane defaults that work on at least a few old systems.
8947# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8948
8949# Character class describing NM global symbol codes.
8950symcode='[BCDEGRST]'
8951
8952# Regexp to match symbols that can be accessed directly from C.
8953sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8954
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008955# Transform an extracted symbol line into a proper C declaration
8956lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8957
8958# Transform an extracted symbol line into symbol name and symbol address
8959lt_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'"
8960
8961# Define system-specific variables.
8962case $host_os in
8963aix*)
8964 symcode='[BCDT]'
8965 ;;
8966cygwin* | mingw* | pw32*)
8967 symcode='[ABCDGISTW]'
8968 ;;
8969hpux*) # Its linker distinguishes data from code symbols
8970 if test "$host_cpu" = ia64; then
8971 symcode='[ABCDEGRST]'
8972 fi
8973 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8974 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'"
8975 ;;
8976linux*)
8977 if test "$host_cpu" = ia64; then
8978 symcode='[ABCDGIRSTW]'
8979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8980 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'"
8981 fi
8982 ;;
8983irix* | nonstopux*)
8984 symcode='[BCDEGRST]'
8985 ;;
8986osf*)
8987 symcode='[BCDEGQRST]'
8988 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008989solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008990 symcode='[BDRT]'
8991 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008992sco3.2v5*)
8993 symcode='[DT]'
8994 ;;
8995sysv4.2uw2*)
8996 symcode='[DT]'
8997 ;;
8998sysv5* | sco5v6* | unixware* | OpenUNIX*)
8999 symcode='[ABDT]'
9000 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009001sysv4)
9002 symcode='[DFNSTU]'
9003 ;;
9004esac
9005
9006# Handle CRLF in mingw tool chain
9007opt_cr=
9008case $build_os in
9009mingw*)
9010 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9011 ;;
9012esac
9013
9014# If we're using GNU nm, then use its standard symbol codes.
9015case `$NM -V 2>&1` in
9016*GNU* | *'with BFD'*)
9017 symcode='[ABCDGIRSTW]' ;;
9018esac
9019
9020# Try without a prefix undercore, then with it.
9021for ac_symprfx in "" "_"; do
9022
Reid Spencera773bd52006-08-04 18:18:08 +00009023 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9024 symxfrm="\\1 $ac_symprfx\\2 \\2"
9025
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009026 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009027 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 +00009028
9029 # Check to see that the pipe works correctly.
9030 pipe_works=no
9031
9032 rm -f conftest*
9033 cat > conftest.$ac_ext <<EOF
9034#ifdef __cplusplus
9035extern "C" {
9036#endif
9037char nm_test_var;
9038void nm_test_func(){}
9039#ifdef __cplusplus
9040}
9041#endif
9042int main(){nm_test_var='a';nm_test_func();return(0);}
9043EOF
9044
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; then
9050 # Now try to grab the symbols.
9051 nlist=conftest.nm
9052 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9053 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && test -s "$nlist"; then
9057 # Try sorting and uniquifying the output.
9058 if sort "$nlist" | uniq > "$nlist"T; then
9059 mv -f "$nlist"T "$nlist"
9060 else
9061 rm -f "$nlist"T
9062 fi
9063
9064 # Make sure that we snagged all the symbols we need.
9065 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9066 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9067 cat <<EOF > conftest.$ac_ext
9068#ifdef __cplusplus
9069extern "C" {
9070#endif
9071
9072EOF
9073 # Now generate the symbol file.
9074 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9075
9076 cat <<EOF >> conftest.$ac_ext
9077#if defined (__STDC__) && __STDC__
9078# define lt_ptr_t void *
9079#else
9080# define lt_ptr_t char *
9081# define const
9082#endif
9083
9084/* The mapping between symbol names and symbols. */
9085const struct {
9086 const char *name;
9087 lt_ptr_t address;
9088}
9089lt_preloaded_symbols[] =
9090{
9091EOF
9092 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9093 cat <<\EOF >> conftest.$ac_ext
9094 {0, (lt_ptr_t) 0}
9095};
9096
9097#ifdef __cplusplus
9098}
9099#endif
9100EOF
9101 # Now try linking the two files.
9102 mv conftest.$ac_objext conftstm.$ac_objext
9103 lt_save_LIBS="$LIBS"
9104 lt_save_CFLAGS="$CFLAGS"
9105 LIBS="conftstm.$ac_objext"
9106 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108 (eval $ac_link) 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9112 pipe_works=yes
9113 fi
9114 LIBS="$lt_save_LIBS"
9115 CFLAGS="$lt_save_CFLAGS"
9116 else
9117 echo "cannot find nm_test_func in $nlist" >&5
9118 fi
9119 else
9120 echo "cannot find nm_test_var in $nlist" >&5
9121 fi
9122 else
9123 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9124 fi
9125 else
9126 echo "$progname: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9128 fi
9129 rm -f conftest* conftst*
9130
9131 # Do not use the global_symbol_pipe unless it works.
9132 if test "$pipe_works" = yes; then
9133 break
9134 else
9135 lt_cv_sys_global_symbol_pipe=
9136 fi
9137done
9138
9139fi
9140
9141if test -z "$lt_cv_sys_global_symbol_pipe"; then
9142 lt_cv_sys_global_symbol_to_cdecl=
9143fi
9144if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009145 { echo "$as_me:$LINENO: result: failed" >&5
9146echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009147else
Reid Spencera773bd52006-08-04 18:18:08 +00009148 { echo "$as_me:$LINENO: result: ok" >&5
9149echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009150fi
9151
9152
Reid Spencera773bd52006-08-04 18:18:08 +00009153{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9154echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009155if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157else
9158 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9159 libltdl_cv_preloaded_symbols=yes
9160 else
9161 libltdl_cv_preloaded_symbols=no
9162 fi
9163
9164fi
Reid Spencera773bd52006-08-04 18:18:08 +00009165{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9166echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009167if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9168
9169cat >>confdefs.h <<\_ACEOF
9170#define HAVE_PRELOADED_SYMBOLS 1
9171_ACEOF
9172
9173fi
9174
9175LIBADD_DL=
9176
9177ac_ext=c
9178ac_cpp='$CPP $CPPFLAGS'
9179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9181ac_compiler_gnu=$ac_cv_c_compiler_gnu
9182
9183
Reid Spencera773bd52006-08-04 18:18:08 +00009184{ echo "$as_me:$LINENO: checking for shl_load" >&5
9185echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009186if test "${ac_cv_func_shl_load+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188else
9189 cat >conftest.$ac_ext <<_ACEOF
9190/* confdefs.h. */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
9193cat >>conftest.$ac_ext <<_ACEOF
9194/* end confdefs.h. */
9195/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9197#define shl_load innocuous_shl_load
9198
9199/* System header to define __stub macros and hopefully few prototypes,
9200 which can conflict with char shl_load (); below.
9201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9202 <limits.h> exists even on freestanding compilers. */
9203
9204#ifdef __STDC__
9205# include <limits.h>
9206#else
9207# include <assert.h>
9208#endif
9209
9210#undef shl_load
9211
Reid Spencera773bd52006-08-04 18:18:08 +00009212/* Override any GCC internal prototype to avoid an error.
9213 Use char because int might match the return type of a GCC
9214 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009215#ifdef __cplusplus
9216extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009218char shl_load ();
9219/* The GNU C library defines this for functions which it implements
9220 to always fail with ENOSYS. Some functions are actually named
9221 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009222#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009223choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224#endif
9225
9226int
9227main ()
9228{
Reid Spencera773bd52006-08-04 18:18:08 +00009229return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009230 ;
9231 return 0;
9232}
9233_ACEOF
9234rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009235if { (ac_try="$ac_link"
9236case "(($ac_try" in
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9239esac
9240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009247 (exit $ac_status); } && {
9248 test -z "$ac_c_werror_flag" ||
9249 test ! -s conftest.err
9250 } && test -s conftest$ac_exeext &&
9251 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009252 ac_cv_func_shl_load=yes
9253else
9254 echo "$as_me: failed program was:" >&5
9255sed 's/^/| /' conftest.$ac_ext >&5
9256
Reid Spencera773bd52006-08-04 18:18:08 +00009257 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258fi
Reid Spencera773bd52006-08-04 18:18:08 +00009259
Scott Michel96dcd2b2007-12-05 21:24:02 +00009260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261 conftest$ac_exeext conftest.$ac_ext
9262fi
Reid Spencera773bd52006-08-04 18:18:08 +00009263{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9264echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009265if test $ac_cv_func_shl_load = yes; then
9266
9267cat >>confdefs.h <<\_ACEOF
9268#define HAVE_SHL_LOAD 1
9269_ACEOF
9270
9271else
Reid Spencera773bd52006-08-04 18:18:08 +00009272 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9273echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009274if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276else
9277 ac_check_lib_save_LIBS=$LIBS
9278LIBS="-ldld $LIBS"
9279cat >conftest.$ac_ext <<_ACEOF
9280/* confdefs.h. */
9281_ACEOF
9282cat confdefs.h >>conftest.$ac_ext
9283cat >>conftest.$ac_ext <<_ACEOF
9284/* end confdefs.h. */
9285
Reid Spencera773bd52006-08-04 18:18:08 +00009286/* Override any GCC internal prototype to avoid an error.
9287 Use char because int might match the return type of a GCC
9288 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009289#ifdef __cplusplus
9290extern "C"
9291#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009292char shl_load ();
9293int
9294main ()
9295{
Reid Spencera773bd52006-08-04 18:18:08 +00009296return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009297 ;
9298 return 0;
9299}
9300_ACEOF
9301rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009302if { (ac_try="$ac_link"
9303case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306esac
9307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009314 (exit $ac_status); } && {
9315 test -z "$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9317 } && test -s conftest$ac_exeext &&
9318 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319 ac_cv_lib_dld_shl_load=yes
9320else
9321 echo "$as_me: failed program was:" >&5
9322sed 's/^/| /' conftest.$ac_ext >&5
9323
Reid Spencera773bd52006-08-04 18:18:08 +00009324 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325fi
Reid Spencera773bd52006-08-04 18:18:08 +00009326
Scott Michel96dcd2b2007-12-05 21:24:02 +00009327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009328 conftest$ac_exeext conftest.$ac_ext
9329LIBS=$ac_check_lib_save_LIBS
9330fi
Reid Spencera773bd52006-08-04 18:18:08 +00009331{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9332echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009333if test $ac_cv_lib_dld_shl_load = yes; then
9334
9335cat >>confdefs.h <<\_ACEOF
9336#define HAVE_SHL_LOAD 1
9337_ACEOF
9338
9339 LIBADD_DL="$LIBADD_DL -ldld"
9340else
Reid Spencera773bd52006-08-04 18:18:08 +00009341 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9342echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345else
9346 ac_check_lib_save_LIBS=$LIBS
9347LIBS="-ldl $LIBS"
9348cat >conftest.$ac_ext <<_ACEOF
9349/* confdefs.h. */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h. */
9354
Reid Spencera773bd52006-08-04 18:18:08 +00009355/* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009358#ifdef __cplusplus
9359extern "C"
9360#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009361char dlopen ();
9362int
9363main ()
9364{
Reid Spencera773bd52006-08-04 18:18:08 +00009365return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009366 ;
9367 return 0;
9368}
9369_ACEOF
9370rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009371if { (ac_try="$ac_link"
9372case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375esac
9376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest$ac_exeext &&
9387 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009388 ac_cv_lib_dl_dlopen=yes
9389else
9390 echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
Reid Spencera773bd52006-08-04 18:18:08 +00009393 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009394fi
Reid Spencera773bd52006-08-04 18:18:08 +00009395
Scott Michel96dcd2b2007-12-05 21:24:02 +00009396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009397 conftest$ac_exeext conftest.$ac_ext
9398LIBS=$ac_check_lib_save_LIBS
9399fi
Reid Spencera773bd52006-08-04 18:18:08 +00009400{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9401echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009402if test $ac_cv_lib_dl_dlopen = yes; then
9403
9404cat >>confdefs.h <<\_ACEOF
9405#define HAVE_LIBDL 1
9406_ACEOF
9407
9408 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9409else
9410 cat >conftest.$ac_ext <<_ACEOF
9411/* confdefs.h. */
9412_ACEOF
9413cat confdefs.h >>conftest.$ac_ext
9414cat >>conftest.$ac_ext <<_ACEOF
9415/* end confdefs.h. */
9416#if HAVE_DLFCN_H
9417# include <dlfcn.h>
9418#endif
9419
9420int
9421main ()
9422{
9423dlopen(0, 0);
9424 ;
9425 return 0;
9426}
9427_ACEOF
9428rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009429if { (ac_try="$ac_link"
9430case "(($ac_try" in
9431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432 *) ac_try_echo=$ac_try;;
9433esac
9434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009436 ac_status=$?
9437 grep -v '^ *+' conftest.er1 >conftest.err
9438 rm -f conftest.er1
9439 cat conftest.err >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009441 (exit $ac_status); } && {
9442 test -z "$ac_c_werror_flag" ||
9443 test ! -s conftest.err
9444 } && test -s conftest$ac_exeext &&
9445 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009446
9447cat >>confdefs.h <<\_ACEOF
9448#define HAVE_LIBDL 1
9449_ACEOF
9450 libltdl_cv_func_dlopen="yes"
9451else
9452 echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
Reid Spencera773bd52006-08-04 18:18:08 +00009455 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9456echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009457if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9459else
9460 ac_check_lib_save_LIBS=$LIBS
9461LIBS="-lsvld $LIBS"
9462cat >conftest.$ac_ext <<_ACEOF
9463/* confdefs.h. */
9464_ACEOF
9465cat confdefs.h >>conftest.$ac_ext
9466cat >>conftest.$ac_ext <<_ACEOF
9467/* end confdefs.h. */
9468
Reid Spencera773bd52006-08-04 18:18:08 +00009469/* Override any GCC internal prototype to avoid an error.
9470 Use char because int might match the return type of a GCC
9471 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009472#ifdef __cplusplus
9473extern "C"
9474#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009475char dlopen ();
9476int
9477main ()
9478{
Reid Spencera773bd52006-08-04 18:18:08 +00009479return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009480 ;
9481 return 0;
9482}
9483_ACEOF
9484rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009485if { (ac_try="$ac_link"
9486case "(($ac_try" in
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9489esac
9490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009492 ac_status=$?
9493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009497 (exit $ac_status); } && {
9498 test -z "$ac_c_werror_flag" ||
9499 test ! -s conftest.err
9500 } && test -s conftest$ac_exeext &&
9501 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502 ac_cv_lib_svld_dlopen=yes
9503else
9504 echo "$as_me: failed program was:" >&5
9505sed 's/^/| /' conftest.$ac_ext >&5
9506
Reid Spencera773bd52006-08-04 18:18:08 +00009507 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009508fi
Reid Spencera773bd52006-08-04 18:18:08 +00009509
Scott Michel96dcd2b2007-12-05 21:24:02 +00009510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511 conftest$ac_exeext conftest.$ac_ext
9512LIBS=$ac_check_lib_save_LIBS
9513fi
Reid Spencera773bd52006-08-04 18:18:08 +00009514{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9515echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009516if test $ac_cv_lib_svld_dlopen = yes; then
9517
9518cat >>confdefs.h <<\_ACEOF
9519#define HAVE_LIBDL 1
9520_ACEOF
9521
9522 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9523else
Reid Spencera773bd52006-08-04 18:18:08 +00009524 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9525echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009526if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528else
9529 ac_check_lib_save_LIBS=$LIBS
9530LIBS="-ldld $LIBS"
9531cat >conftest.$ac_ext <<_ACEOF
9532/* confdefs.h. */
9533_ACEOF
9534cat confdefs.h >>conftest.$ac_ext
9535cat >>conftest.$ac_ext <<_ACEOF
9536/* end confdefs.h. */
9537
Reid Spencera773bd52006-08-04 18:18:08 +00009538/* Override any GCC internal prototype to avoid an error.
9539 Use char because int might match the return type of a GCC
9540 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009541#ifdef __cplusplus
9542extern "C"
9543#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009544char dld_link ();
9545int
9546main ()
9547{
Reid Spencera773bd52006-08-04 18:18:08 +00009548return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009549 ;
9550 return 0;
9551}
9552_ACEOF
9553rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009554if { (ac_try="$ac_link"
9555case "(($ac_try" in
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9558esac
9559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009561 ac_status=$?
9562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009566 (exit $ac_status); } && {
9567 test -z "$ac_c_werror_flag" ||
9568 test ! -s conftest.err
9569 } && test -s conftest$ac_exeext &&
9570 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009571 ac_cv_lib_dld_dld_link=yes
9572else
9573 echo "$as_me: failed program was:" >&5
9574sed 's/^/| /' conftest.$ac_ext >&5
9575
Reid Spencera773bd52006-08-04 18:18:08 +00009576 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577fi
Reid Spencera773bd52006-08-04 18:18:08 +00009578
Scott Michel96dcd2b2007-12-05 21:24:02 +00009579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009580 conftest$ac_exeext conftest.$ac_ext
9581LIBS=$ac_check_lib_save_LIBS
9582fi
Reid Spencera773bd52006-08-04 18:18:08 +00009583{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9584echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009585if test $ac_cv_lib_dld_dld_link = yes; then
9586
9587cat >>confdefs.h <<\_ACEOF
9588#define HAVE_DLD 1
9589_ACEOF
9590
9591 LIBADD_DL="$LIBADD_DL -ldld"
9592else
Reid Spencera773bd52006-08-04 18:18:08 +00009593 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9594echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009595if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9597else
9598 cat >conftest.$ac_ext <<_ACEOF
9599/* confdefs.h. */
9600_ACEOF
9601cat confdefs.h >>conftest.$ac_ext
9602cat >>conftest.$ac_ext <<_ACEOF
9603/* end confdefs.h. */
9604/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9606#define _dyld_func_lookup innocuous__dyld_func_lookup
9607
9608/* System header to define __stub macros and hopefully few prototypes,
9609 which can conflict with char _dyld_func_lookup (); below.
9610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9611 <limits.h> exists even on freestanding compilers. */
9612
9613#ifdef __STDC__
9614# include <limits.h>
9615#else
9616# include <assert.h>
9617#endif
9618
9619#undef _dyld_func_lookup
9620
Reid Spencera773bd52006-08-04 18:18:08 +00009621/* Override any GCC internal prototype to avoid an error.
9622 Use char because int might match the return type of a GCC
9623 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009624#ifdef __cplusplus
9625extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009626#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009627char _dyld_func_lookup ();
9628/* The GNU C library defines this for functions which it implements
9629 to always fail with ENOSYS. Some functions are actually named
9630 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009631#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009632choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009633#endif
9634
9635int
9636main ()
9637{
Reid Spencera773bd52006-08-04 18:18:08 +00009638return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009639 ;
9640 return 0;
9641}
9642_ACEOF
9643rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009644if { (ac_try="$ac_link"
9645case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9648esac
9649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009651 ac_status=$?
9652 grep -v '^ *+' conftest.er1 >conftest.err
9653 rm -f conftest.er1
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009656 (exit $ac_status); } && {
9657 test -z "$ac_c_werror_flag" ||
9658 test ! -s conftest.err
9659 } && test -s conftest$ac_exeext &&
9660 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009661 ac_cv_func__dyld_func_lookup=yes
9662else
9663 echo "$as_me: failed program was:" >&5
9664sed 's/^/| /' conftest.$ac_ext >&5
9665
Reid Spencera773bd52006-08-04 18:18:08 +00009666 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009667fi
Reid Spencera773bd52006-08-04 18:18:08 +00009668
Scott Michel96dcd2b2007-12-05 21:24:02 +00009669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670 conftest$ac_exeext conftest.$ac_ext
9671fi
Reid Spencera773bd52006-08-04 18:18:08 +00009672{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9673echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674if test $ac_cv_func__dyld_func_lookup = yes; then
9675
9676cat >>confdefs.h <<\_ACEOF
9677#define HAVE_DYLD 1
9678_ACEOF
9679
9680fi
9681
9682
9683fi
9684
9685
9686fi
9687
9688
9689fi
Reid Spencera773bd52006-08-04 18:18:08 +00009690
Scott Michel96dcd2b2007-12-05 21:24:02 +00009691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692 conftest$ac_exeext conftest.$ac_ext
9693
9694fi
9695
9696
9697fi
9698
9699
9700fi
9701
9702
9703if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9704then
9705 lt_save_LIBS="$LIBS"
9706 LIBS="$LIBS $LIBADD_DL"
9707
9708for ac_func in dlerror
9709do
9710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009711{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9713if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715else
9716 cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
9722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724#define $ac_func innocuous_$ac_func
9725
9726/* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char $ac_func (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9730
9731#ifdef __STDC__
9732# include <limits.h>
9733#else
9734# include <assert.h>
9735#endif
9736
9737#undef $ac_func
9738
Reid Spencera773bd52006-08-04 18:18:08 +00009739/* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742#ifdef __cplusplus
9743extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009744#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745char $ac_func ();
9746/* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009749#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751#endif
9752
9753int
9754main ()
9755{
Reid Spencera773bd52006-08-04 18:18:08 +00009756return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757 ;
9758 return 0;
9759}
9760_ACEOF
9761rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009762if { (ac_try="$ac_link"
9763case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766esac
9767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest$ac_exeext &&
9778 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779 eval "$as_ac_var=yes"
9780else
9781 echo "$as_me: failed program was:" >&5
9782sed 's/^/| /' conftest.$ac_ext >&5
9783
Reid Spencera773bd52006-08-04 18:18:08 +00009784 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785fi
Reid Spencera773bd52006-08-04 18:18:08 +00009786
Scott Michel96dcd2b2007-12-05 21:24:02 +00009787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788 conftest$ac_exeext conftest.$ac_ext
9789fi
Reid Spencera773bd52006-08-04 18:18:08 +00009790ac_res=`eval echo '${'$as_ac_var'}'`
9791 { echo "$as_me:$LINENO: result: $ac_res" >&5
9792echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793if test `eval echo '${'$as_ac_var'}'` = yes; then
9794 cat >>confdefs.h <<_ACEOF
9795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9796_ACEOF
9797
9798fi
9799done
9800
9801 LIBS="$lt_save_LIBS"
9802fi
9803ac_ext=c
9804ac_cpp='$CPP $CPPFLAGS'
9805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9807ac_compiler_gnu=$ac_cv_c_compiler_gnu
9808
9809
9810
Reid Spencera773bd52006-08-04 18:18:08 +00009811{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9812echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816 ac_cv_sys_symbol_underscore=no
9817 cat > conftest.$ac_ext <<EOF
9818void nm_test_func(){}
9819int main(){nm_test_func;return 0;}
9820EOF
9821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9822 (eval $ac_compile) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; then
9826 # Now try to grab the symbols.
9827 ac_nlist=conftest.nm
9828 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9829 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } && test -s "$ac_nlist"; then
9833 # See whether the symbols have a leading underscore.
9834 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9835 ac_cv_sys_symbol_underscore=yes
9836 else
9837 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9838 :
9839 else
9840 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9841 fi
9842 fi
9843 else
9844 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9845 fi
9846 else
9847 echo "configure: failed program was:" >&5
9848 cat conftest.c >&5
9849 fi
9850 rm -rf conftest*
9851
9852fi
Reid Spencera773bd52006-08-04 18:18:08 +00009853{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9854echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855
9856
9857if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9858 if test x"$libltdl_cv_func_dlopen" = xyes ||
9859 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +00009860 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9861echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862if test "${libltdl_cv_need_uscore+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864else
9865 libltdl_cv_need_uscore=unknown
9866 save_LIBS="$LIBS"
9867 LIBS="$LIBS $LIBADD_DL"
9868 if test "$cross_compiling" = yes; then :
9869 libltdl_cv_need_uscore=cross
9870else
9871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9872 lt_status=$lt_dlunknown
9873 cat > conftest.$ac_ext <<EOF
Duncan Sands67f1c492007-12-12 23:03:45 +00009874#line 9874 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875#include "confdefs.h"
9876
9877#if HAVE_DLFCN_H
9878#include <dlfcn.h>
9879#endif
9880
9881#include <stdio.h>
9882
9883#ifdef RTLD_GLOBAL
9884# define LT_DLGLOBAL RTLD_GLOBAL
9885#else
9886# ifdef DL_GLOBAL
9887# define LT_DLGLOBAL DL_GLOBAL
9888# else
9889# define LT_DLGLOBAL 0
9890# endif
9891#endif
9892
9893/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9894 find out it does not work in some platform. */
9895#ifndef LT_DLLAZY_OR_NOW
9896# ifdef RTLD_LAZY
9897# define LT_DLLAZY_OR_NOW RTLD_LAZY
9898# else
9899# ifdef DL_LAZY
9900# define LT_DLLAZY_OR_NOW DL_LAZY
9901# else
9902# ifdef RTLD_NOW
9903# define LT_DLLAZY_OR_NOW RTLD_NOW
9904# else
9905# ifdef DL_NOW
9906# define LT_DLLAZY_OR_NOW DL_NOW
9907# else
9908# define LT_DLLAZY_OR_NOW 0
9909# endif
9910# endif
9911# endif
9912# endif
9913#endif
9914
9915#ifdef __cplusplus
9916extern "C" void exit (int);
9917#endif
9918
9919void fnord() { int i=42;}
9920int main ()
9921{
9922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9923 int status = $lt_dlunknown;
9924
9925 if (self)
9926 {
9927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9928 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9929 /* dlclose (self); */
9930 }
Reid Spencera773bd52006-08-04 18:18:08 +00009931 else
9932 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933
9934 exit (status);
9935}
9936EOF
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +00009942 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943 lt_status=$?
9944 case x$lt_status in
9945 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9946 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009947 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009948 esac
9949 else :
9950 # compilation failed
9951
9952 fi
9953fi
9954rm -fr conftest*
9955
9956 LIBS="$save_LIBS"
9957
9958fi
Reid Spencera773bd52006-08-04 18:18:08 +00009959{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9960echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961 fi
9962fi
9963
9964if test x"$libltdl_cv_need_uscore" = xyes; then
9965
9966cat >>confdefs.h <<\_ACEOF
9967#define NEED_USCORE 1
9968_ACEOF
9969
9970fi
9971
9972
Reid Spencera773bd52006-08-04 18:18:08 +00009973{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9974echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977else
9978 # PORTME does your system automatically load deplibs for dlopen?
9979 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9980 # For now, we just catch OSes we know something about -- in the
9981 # future, we'll try test this programmatically.
9982 libltdl_cv_sys_dlopen_deplibs=unknown
9983 case "$host_os" in
9984 aix3*|aix4.1.*|aix4.2.*)
9985 # Unknown whether this is true for these versions of AIX, but
9986 # we want this `case' here to explicitly catch those versions.
9987 libltdl_cv_sys_dlopen_deplibs=unknown
9988 ;;
9989 aix[45]*)
9990 libltdl_cv_sys_dlopen_deplibs=yes
9991 ;;
9992 darwin*)
9993 # Assuming the user has installed a libdl from somewhere, this is true
9994 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9995 libltdl_cv_sys_dlopen_deplibs=yes
9996 ;;
9997 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9998 # GNU and its variants, using gnu ld.so (Glibc)
9999 libltdl_cv_sys_dlopen_deplibs=yes
10000 ;;
10001 hpux10*|hpux11*)
10002 libltdl_cv_sys_dlopen_deplibs=yes
10003 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010004 interix*)
10005 libltdl_cv_sys_dlopen_deplibs=yes
10006 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010007 irix[12345]*|irix6.[01]*)
10008 # Catch all versions of IRIX before 6.2, and indicate that we don't
10009 # know how it worked for any of those versions.
10010 libltdl_cv_sys_dlopen_deplibs=unknown
10011 ;;
10012 irix*)
10013 # The case above catches anything before 6.2, and it's known that
10014 # at 6.2 and later dlopen does load deplibs.
10015 libltdl_cv_sys_dlopen_deplibs=yes
10016 ;;
10017 netbsd*)
10018 libltdl_cv_sys_dlopen_deplibs=yes
10019 ;;
10020 openbsd*)
10021 libltdl_cv_sys_dlopen_deplibs=yes
10022 ;;
10023 osf[1234]*)
10024 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10025 # it did *not* use an RPATH in a shared library to find objects the
10026 # library depends on, so we explictly say `no'.
10027 libltdl_cv_sys_dlopen_deplibs=no
10028 ;;
10029 osf5.0|osf5.0a|osf5.1)
10030 # dlopen *does* load deplibs and with the right loader patch applied
10031 # it even uses RPATH in a shared library to search for shared objects
10032 # that the library depends on, but there's no easy way to know if that
10033 # patch is installed. Since this is the case, all we can really
10034 # say is unknown -- it depends on the patch being installed. If
10035 # it is, this changes to `yes'. Without it, it would be `no'.
10036 libltdl_cv_sys_dlopen_deplibs=unknown
10037 ;;
10038 osf*)
10039 # the two cases above should catch all versions of osf <= 5.1. Read
10040 # the comments above for what we know about them.
10041 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10042 # is used to find them so we can finally say `yes'.
10043 libltdl_cv_sys_dlopen_deplibs=yes
10044 ;;
10045 solaris*)
10046 libltdl_cv_sys_dlopen_deplibs=yes
10047 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10049 libltdl_cv_sys_dlopen_deplibs=yes
10050 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010051 esac
10052
10053fi
Reid Spencera773bd52006-08-04 18:18:08 +000010054{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10055echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010056if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10057
10058cat >>confdefs.h <<\_ACEOF
10059#define LTDL_DLOPEN_DEPLIBS 1
10060_ACEOF
10061
10062fi
10063
10064
10065for ac_header in argz.h
10066do
10067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073fi
Reid Spencera773bd52006-08-04 18:18:08 +000010074ac_res=`eval echo '${'$as_ac_Header'}'`
10075 { echo "$as_me:$LINENO: result: $ac_res" >&5
10076echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077else
10078 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010079{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081cat >conftest.$ac_ext <<_ACEOF
10082/* confdefs.h. */
10083_ACEOF
10084cat confdefs.h >>conftest.$ac_ext
10085cat >>conftest.$ac_ext <<_ACEOF
10086/* end confdefs.h. */
10087$ac_includes_default
10088#include <$ac_header>
10089_ACEOF
10090rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010091if { (ac_try="$ac_compile"
10092case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095esac
10096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098 ac_status=$?
10099 grep -v '^ *+' conftest.er1 >conftest.err
10100 rm -f conftest.er1
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010103 (exit $ac_status); } && {
10104 test -z "$ac_c_werror_flag" ||
10105 test ! -s conftest.err
10106 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107 ac_header_compiler=yes
10108else
10109 echo "$as_me: failed program was:" >&5
10110sed 's/^/| /' conftest.$ac_ext >&5
10111
Reid Spencera773bd52006-08-04 18:18:08 +000010112 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010113fi
Reid Spencera773bd52006-08-04 18:18:08 +000010114
10115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10116{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10117echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118
10119# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010120{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122cat >conftest.$ac_ext <<_ACEOF
10123/* confdefs.h. */
10124_ACEOF
10125cat confdefs.h >>conftest.$ac_ext
10126cat >>conftest.$ac_ext <<_ACEOF
10127/* end confdefs.h. */
10128#include <$ac_header>
10129_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010130if { (ac_try="$ac_cpp conftest.$ac_ext"
10131case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010142 (exit $ac_status); } >/dev/null && {
10143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010146 ac_header_preproc=yes
10147else
10148 echo "$as_me: failed program was:" >&5
10149sed 's/^/| /' conftest.$ac_ext >&5
10150
10151 ac_header_preproc=no
10152fi
Reid Spencera773bd52006-08-04 18:18:08 +000010153
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010155{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10156echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157
10158# So? What about this header?
10159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10160 yes:no: )
10161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10165 ac_header_preproc=yes
10166 ;;
10167 no:yes:* )
10168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010180 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181## ----------------------------------- ##
10182## Report this to llvmbugs@cs.uiuc.edu ##
10183## ----------------------------------- ##
10184_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010185 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186 ;;
10187esac
Reid Spencera773bd52006-08-04 18:18:08 +000010188{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192else
10193 eval "$as_ac_Header=\$ac_header_preproc"
10194fi
Reid Spencera773bd52006-08-04 18:18:08 +000010195ac_res=`eval echo '${'$as_ac_Header'}'`
10196 { echo "$as_me:$LINENO: result: $ac_res" >&5
10197echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198
10199fi
10200if test `eval echo '${'$as_ac_Header'}'` = yes; then
10201 cat >>confdefs.h <<_ACEOF
10202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10203_ACEOF
10204
10205fi
10206
10207done
10208
10209
Reid Spencera773bd52006-08-04 18:18:08 +000010210{ echo "$as_me:$LINENO: checking for error_t" >&5
10211echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212if test "${ac_cv_type_error_t+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10214else
10215 cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h. */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h. */
10221#if HAVE_ARGZ_H
10222# include <argz.h>
10223#endif
10224
Reid Spencera773bd52006-08-04 18:18:08 +000010225typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226int
10227main ()
10228{
Reid Spencera773bd52006-08-04 18:18:08 +000010229if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010231if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232 return 0;
10233 ;
10234 return 0;
10235}
10236_ACEOF
10237rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010238if { (ac_try="$ac_compile"
10239case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10242esac
10243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010245 ac_status=$?
10246 grep -v '^ *+' conftest.er1 >conftest.err
10247 rm -f conftest.er1
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010250 (exit $ac_status); } && {
10251 test -z "$ac_c_werror_flag" ||
10252 test ! -s conftest.err
10253 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254 ac_cv_type_error_t=yes
10255else
10256 echo "$as_me: failed program was:" >&5
10257sed 's/^/| /' conftest.$ac_ext >&5
10258
Reid Spencera773bd52006-08-04 18:18:08 +000010259 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260fi
Reid Spencera773bd52006-08-04 18:18:08 +000010261
10262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263fi
Reid Spencera773bd52006-08-04 18:18:08 +000010264{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10265echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266if test $ac_cv_type_error_t = yes; then
10267
10268cat >>confdefs.h <<_ACEOF
10269#define HAVE_ERROR_T 1
10270_ACEOF
10271
10272
10273else
10274
10275cat >>confdefs.h <<\_ACEOF
10276#define error_t int
10277_ACEOF
10278
10279fi
10280
10281
10282
10283
10284
10285
10286
10287for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10288do
10289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010290{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10292if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295 cat >conftest.$ac_ext <<_ACEOF
10296/* confdefs.h. */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h. */
10301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10303#define $ac_func innocuous_$ac_func
10304
10305/* System header to define __stub macros and hopefully few prototypes,
10306 which can conflict with char $ac_func (); below.
10307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308 <limits.h> exists even on freestanding compilers. */
10309
10310#ifdef __STDC__
10311# include <limits.h>
10312#else
10313# include <assert.h>
10314#endif
10315
10316#undef $ac_func
10317
Reid Spencera773bd52006-08-04 18:18:08 +000010318/* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321#ifdef __cplusplus
10322extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324char $ac_func ();
10325/* The GNU C library defines this for functions which it implements
10326 to always fail with ENOSYS. Some functions are actually named
10327 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010328#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010329choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330#endif
10331
10332int
10333main ()
10334{
Reid Spencera773bd52006-08-04 18:18:08 +000010335return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336 ;
10337 return 0;
10338}
10339_ACEOF
10340rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010341if { (ac_try="$ac_link"
10342case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345esac
10346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010353 (exit $ac_status); } && {
10354 test -z "$ac_c_werror_flag" ||
10355 test ! -s conftest.err
10356 } && test -s conftest$ac_exeext &&
10357 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358 eval "$as_ac_var=yes"
10359else
10360 echo "$as_me: failed program was:" >&5
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
Reid Spencera773bd52006-08-04 18:18:08 +000010363 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364fi
Reid Spencera773bd52006-08-04 18:18:08 +000010365
Scott Michel96dcd2b2007-12-05 21:24:02 +000010366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367 conftest$ac_exeext conftest.$ac_ext
10368fi
Reid Spencera773bd52006-08-04 18:18:08 +000010369ac_res=`eval echo '${'$as_ac_var'}'`
10370 { echo "$as_me:$LINENO: result: $ac_res" >&5
10371echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010372if test `eval echo '${'$as_ac_var'}'` = yes; then
10373 cat >>confdefs.h <<_ACEOF
10374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10375_ACEOF
10376
10377fi
10378done
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10408 stdio.h unistd.h
10409do
10410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416fi
Reid Spencera773bd52006-08-04 18:18:08 +000010417ac_res=`eval echo '${'$as_ac_Header'}'`
10418 { echo "$as_me:$LINENO: result: $ac_res" >&5
10419echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420else
10421 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010422{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10423echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424cat >conftest.$ac_ext <<_ACEOF
10425/* confdefs.h. */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h. */
10430$ac_includes_default
10431#include <$ac_header>
10432_ACEOF
10433rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010434if { (ac_try="$ac_compile"
10435case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10438esac
10439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441 ac_status=$?
10442 grep -v '^ *+' conftest.er1 >conftest.err
10443 rm -f conftest.er1
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010450 ac_header_compiler=yes
10451else
10452 echo "$as_me: failed program was:" >&5
10453sed 's/^/| /' conftest.$ac_ext >&5
10454
Reid Spencera773bd52006-08-04 18:18:08 +000010455 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456fi
Reid Spencera773bd52006-08-04 18:18:08 +000010457
10458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10460echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010461
10462# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010463{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010465cat >conftest.$ac_ext <<_ACEOF
10466/* confdefs.h. */
10467_ACEOF
10468cat confdefs.h >>conftest.$ac_ext
10469cat >>conftest.$ac_ext <<_ACEOF
10470/* end confdefs.h. */
10471#include <$ac_header>
10472_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010473if { (ac_try="$ac_cpp conftest.$ac_ext"
10474case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477esac
10478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010480 ac_status=$?
10481 grep -v '^ *+' conftest.er1 >conftest.err
10482 rm -f conftest.er1
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010485 (exit $ac_status); } >/dev/null && {
10486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010489 ac_header_preproc=yes
10490else
10491 echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
10494 ac_header_preproc=no
10495fi
Reid Spencera773bd52006-08-04 18:18:08 +000010496
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010498{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10499echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500
10501# So? What about this header?
10502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10503 yes:no: )
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10508 ac_header_preproc=yes
10509 ;;
10510 no:yes:* )
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010523 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010524## ----------------------------------- ##
10525## Report this to llvmbugs@cs.uiuc.edu ##
10526## ----------------------------------- ##
10527_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010528 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529 ;;
10530esac
Reid Spencera773bd52006-08-04 18:18:08 +000010531{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536 eval "$as_ac_Header=\$ac_header_preproc"
10537fi
Reid Spencera773bd52006-08-04 18:18:08 +000010538ac_res=`eval echo '${'$as_ac_Header'}'`
10539 { echo "$as_me:$LINENO: result: $ac_res" >&5
10540echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541
10542fi
10543if test `eval echo '${'$as_ac_Header'}'` = yes; then
10544 cat >>confdefs.h <<_ACEOF
10545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10546_ACEOF
10547
10548fi
10549
10550done
10551
10552
10553
10554
10555
10556for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10557do
10558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564fi
Reid Spencera773bd52006-08-04 18:18:08 +000010565ac_res=`eval echo '${'$as_ac_Header'}'`
10566 { echo "$as_me:$LINENO: result: $ac_res" >&5
10567echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568else
10569 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010570{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10571echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010572cat >conftest.$ac_ext <<_ACEOF
10573/* confdefs.h. */
10574_ACEOF
10575cat confdefs.h >>conftest.$ac_ext
10576cat >>conftest.$ac_ext <<_ACEOF
10577/* end confdefs.h. */
10578$ac_includes_default
10579#include <$ac_header>
10580_ACEOF
10581rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010582if { (ac_try="$ac_compile"
10583case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586esac
10587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598 ac_header_compiler=yes
10599else
10600 echo "$as_me: failed program was:" >&5
10601sed 's/^/| /' conftest.$ac_ext >&5
10602
Reid Spencera773bd52006-08-04 18:18:08 +000010603 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010604fi
Reid Spencera773bd52006-08-04 18:18:08 +000010605
10606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609
10610# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010611{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010613cat >conftest.$ac_ext <<_ACEOF
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
10619#include <$ac_header>
10620_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010621if { (ac_try="$ac_cpp conftest.$ac_ext"
10622case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625esac
10626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010628 ac_status=$?
10629 grep -v '^ *+' conftest.er1 >conftest.err
10630 rm -f conftest.er1
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010633 (exit $ac_status); } >/dev/null && {
10634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10635 test ! -s conftest.err
10636 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637 ac_header_preproc=yes
10638else
10639 echo "$as_me: failed program was:" >&5
10640sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 ac_header_preproc=no
10643fi
Reid Spencera773bd52006-08-04 18:18:08 +000010644
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010645rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010646{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10647echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010648
10649# So? What about this header?
10650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10651 yes:no: )
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10655echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10656 ac_header_preproc=yes
10657 ;;
10658 no:yes:* )
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10660echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10662echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10664echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10666echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10670echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010671 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010672## ----------------------------------- ##
10673## Report this to llvmbugs@cs.uiuc.edu ##
10674## ----------------------------------- ##
10675_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010676 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677 ;;
10678esac
Reid Spencera773bd52006-08-04 18:18:08 +000010679{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683else
10684 eval "$as_ac_Header=\$ac_header_preproc"
10685fi
Reid Spencera773bd52006-08-04 18:18:08 +000010686ac_res=`eval echo '${'$as_ac_Header'}'`
10687 { echo "$as_me:$LINENO: result: $ac_res" >&5
10688echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010689
10690fi
10691if test `eval echo '${'$as_ac_Header'}'` = yes; then
10692 cat >>confdefs.h <<_ACEOF
10693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10694_ACEOF
10695
10696fi
10697
10698done
10699
10700
10701
10702for ac_header in string.h strings.h
10703do
10704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710fi
Reid Spencera773bd52006-08-04 18:18:08 +000010711ac_res=`eval echo '${'$as_ac_Header'}'`
10712 { echo "$as_me:$LINENO: result: $ac_res" >&5
10713echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010714else
10715 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010716{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718cat >conftest.$ac_ext <<_ACEOF
10719/* confdefs.h. */
10720_ACEOF
10721cat confdefs.h >>conftest.$ac_ext
10722cat >>conftest.$ac_ext <<_ACEOF
10723/* end confdefs.h. */
10724$ac_includes_default
10725#include <$ac_header>
10726_ACEOF
10727rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010728if { (ac_try="$ac_compile"
10729case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732esac
10733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735 ac_status=$?
10736 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010740 (exit $ac_status); } && {
10741 test -z "$ac_c_werror_flag" ||
10742 test ! -s conftest.err
10743 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744 ac_header_compiler=yes
10745else
10746 echo "$as_me: failed program was:" >&5
10747sed 's/^/| /' conftest.$ac_ext >&5
10748
Reid Spencera773bd52006-08-04 18:18:08 +000010749 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750fi
Reid Spencera773bd52006-08-04 18:18:08 +000010751
10752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10754echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010755
10756# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010757{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10758echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765#include <$ac_header>
10766_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010767if { (ac_try="$ac_cpp conftest.$ac_ext"
10768case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10771esac
10772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010774 ac_status=$?
10775 grep -v '^ *+' conftest.er1 >conftest.err
10776 rm -f conftest.er1
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010779 (exit $ac_status); } >/dev/null && {
10780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10781 test ! -s conftest.err
10782 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010783 ac_header_preproc=yes
10784else
10785 echo "$as_me: failed program was:" >&5
10786sed 's/^/| /' conftest.$ac_ext >&5
10787
10788 ac_header_preproc=no
10789fi
Reid Spencera773bd52006-08-04 18:18:08 +000010790
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010791rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010792{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10793echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010794
10795# So? What about this header?
10796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10797 yes:no: )
10798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10801echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10802 ac_header_preproc=yes
10803 ;;
10804 no:yes:* )
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10810echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10812echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10816echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010817 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010818## ----------------------------------- ##
10819## Report this to llvmbugs@cs.uiuc.edu ##
10820## ----------------------------------- ##
10821_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010822 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010823 ;;
10824esac
Reid Spencera773bd52006-08-04 18:18:08 +000010825{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829else
10830 eval "$as_ac_Header=\$ac_header_preproc"
10831fi
Reid Spencera773bd52006-08-04 18:18:08 +000010832ac_res=`eval echo '${'$as_ac_Header'}'`
10833 { echo "$as_me:$LINENO: result: $ac_res" >&5
10834echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010835
10836fi
10837if test `eval echo '${'$as_ac_Header'}'` = yes; then
10838 cat >>confdefs.h <<_ACEOF
10839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10840_ACEOF
10841 break
10842fi
10843
10844done
10845
10846
10847
10848
10849for ac_func in strchr index
10850do
10851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010852{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10854if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010855 echo $ECHO_N "(cached) $ECHO_C" >&6
10856else
10857 cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h. */
10863/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10865#define $ac_func innocuous_$ac_func
10866
10867/* System header to define __stub macros and hopefully few prototypes,
10868 which can conflict with char $ac_func (); below.
10869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10870 <limits.h> exists even on freestanding compilers. */
10871
10872#ifdef __STDC__
10873# include <limits.h>
10874#else
10875# include <assert.h>
10876#endif
10877
10878#undef $ac_func
10879
Reid Spencera773bd52006-08-04 18:18:08 +000010880/* Override any GCC internal prototype to avoid an error.
10881 Use char because int might match the return type of a GCC
10882 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883#ifdef __cplusplus
10884extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010885#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010886char $ac_func ();
10887/* The GNU C library defines this for functions which it implements
10888 to always fail with ENOSYS. Some functions are actually named
10889 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010890#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010891choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892#endif
10893
10894int
10895main ()
10896{
Reid Spencera773bd52006-08-04 18:18:08 +000010897return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898 ;
10899 return 0;
10900}
10901_ACEOF
10902rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010903if { (ac_try="$ac_link"
10904case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext &&
10919 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010920 eval "$as_ac_var=yes"
10921else
10922 echo "$as_me: failed program was:" >&5
10923sed 's/^/| /' conftest.$ac_ext >&5
10924
Reid Spencera773bd52006-08-04 18:18:08 +000010925 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010926fi
Reid Spencera773bd52006-08-04 18:18:08 +000010927
Scott Michel96dcd2b2007-12-05 21:24:02 +000010928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010929 conftest$ac_exeext conftest.$ac_ext
10930fi
Reid Spencera773bd52006-08-04 18:18:08 +000010931ac_res=`eval echo '${'$as_ac_var'}'`
10932 { echo "$as_me:$LINENO: result: $ac_res" >&5
10933echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010934if test `eval echo '${'$as_ac_var'}'` = yes; then
10935 cat >>confdefs.h <<_ACEOF
10936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10937_ACEOF
10938 break
10939fi
10940done
10941
10942
10943
10944for ac_func in strrchr rindex
10945do
10946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010947{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952 cat >conftest.$ac_ext <<_ACEOF
10953/* confdefs.h. */
10954_ACEOF
10955cat confdefs.h >>conftest.$ac_ext
10956cat >>conftest.$ac_ext <<_ACEOF
10957/* end confdefs.h. */
10958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10960#define $ac_func innocuous_$ac_func
10961
10962/* System header to define __stub macros and hopefully few prototypes,
10963 which can conflict with char $ac_func (); below.
10964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965 <limits.h> exists even on freestanding compilers. */
10966
10967#ifdef __STDC__
10968# include <limits.h>
10969#else
10970# include <assert.h>
10971#endif
10972
10973#undef $ac_func
10974
Reid Spencera773bd52006-08-04 18:18:08 +000010975/* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978#ifdef __cplusplus
10979extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010981char $ac_func ();
10982/* The GNU C library defines this for functions which it implements
10983 to always fail with ENOSYS. Some functions are actually named
10984 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010985#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010986choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987#endif
10988
10989int
10990main ()
10991{
Reid Spencera773bd52006-08-04 18:18:08 +000010992return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993 ;
10994 return 0;
10995}
10996_ACEOF
10997rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010998if { (ac_try="$ac_link"
10999case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011010 (exit $ac_status); } && {
11011 test -z "$ac_c_werror_flag" ||
11012 test ! -s conftest.err
11013 } && test -s conftest$ac_exeext &&
11014 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011015 eval "$as_ac_var=yes"
11016else
11017 echo "$as_me: failed program was:" >&5
11018sed 's/^/| /' conftest.$ac_ext >&5
11019
Reid Spencera773bd52006-08-04 18:18:08 +000011020 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011021fi
Reid Spencera773bd52006-08-04 18:18:08 +000011022
Scott Michel96dcd2b2007-12-05 21:24:02 +000011023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011024 conftest$ac_exeext conftest.$ac_ext
11025fi
Reid Spencera773bd52006-08-04 18:18:08 +000011026ac_res=`eval echo '${'$as_ac_var'}'`
11027 { echo "$as_me:$LINENO: result: $ac_res" >&5
11028echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011029if test `eval echo '${'$as_ac_var'}'` = yes; then
11030 cat >>confdefs.h <<_ACEOF
11031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11032_ACEOF
11033 break
11034fi
11035done
11036
11037
11038
11039for ac_func in memcpy bcopy
11040do
11041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011042{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11044if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046else
11047 cat >conftest.$ac_ext <<_ACEOF
11048/* confdefs.h. */
11049_ACEOF
11050cat confdefs.h >>conftest.$ac_ext
11051cat >>conftest.$ac_ext <<_ACEOF
11052/* end confdefs.h. */
11053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11055#define $ac_func innocuous_$ac_func
11056
11057/* System header to define __stub macros and hopefully few prototypes,
11058 which can conflict with char $ac_func (); below.
11059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060 <limits.h> exists even on freestanding compilers. */
11061
11062#ifdef __STDC__
11063# include <limits.h>
11064#else
11065# include <assert.h>
11066#endif
11067
11068#undef $ac_func
11069
Reid Spencera773bd52006-08-04 18:18:08 +000011070/* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011073#ifdef __cplusplus
11074extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011075#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076char $ac_func ();
11077/* The GNU C library defines this for functions which it implements
11078 to always fail with ENOSYS. Some functions are actually named
11079 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011080#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082#endif
11083
11084int
11085main ()
11086{
Reid Spencera773bd52006-08-04 18:18:08 +000011087return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088 ;
11089 return 0;
11090}
11091_ACEOF
11092rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011093if { (ac_try="$ac_link"
11094case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097esac
11098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest$ac_exeext &&
11109 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011110 eval "$as_ac_var=yes"
11111else
11112 echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
11114
Reid Spencera773bd52006-08-04 18:18:08 +000011115 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011116fi
Reid Spencera773bd52006-08-04 18:18:08 +000011117
Scott Michel96dcd2b2007-12-05 21:24:02 +000011118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011119 conftest$ac_exeext conftest.$ac_ext
11120fi
Reid Spencera773bd52006-08-04 18:18:08 +000011121ac_res=`eval echo '${'$as_ac_var'}'`
11122 { echo "$as_me:$LINENO: result: $ac_res" >&5
11123echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124if test `eval echo '${'$as_ac_var'}'` = yes; then
11125 cat >>confdefs.h <<_ACEOF
11126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11127_ACEOF
11128 break
11129fi
11130done
11131
11132
11133
11134for ac_func in memmove strcmp
11135do
11136as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011137{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11139if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141else
11142 cat >conftest.$ac_ext <<_ACEOF
11143/* confdefs.h. */
11144_ACEOF
11145cat confdefs.h >>conftest.$ac_ext
11146cat >>conftest.$ac_ext <<_ACEOF
11147/* end confdefs.h. */
11148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11150#define $ac_func innocuous_$ac_func
11151
11152/* System header to define __stub macros and hopefully few prototypes,
11153 which can conflict with char $ac_func (); below.
11154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11155 <limits.h> exists even on freestanding compilers. */
11156
11157#ifdef __STDC__
11158# include <limits.h>
11159#else
11160# include <assert.h>
11161#endif
11162
11163#undef $ac_func
11164
Reid Spencera773bd52006-08-04 18:18:08 +000011165/* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011168#ifdef __cplusplus
11169extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171char $ac_func ();
11172/* The GNU C library defines this for functions which it implements
11173 to always fail with ENOSYS. Some functions are actually named
11174 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011175#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011177#endif
11178
11179int
11180main ()
11181{
Reid Spencera773bd52006-08-04 18:18:08 +000011182return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183 ;
11184 return 0;
11185}
11186_ACEOF
11187rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011188if { (ac_try="$ac_link"
11189case "(($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_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195 ac_status=$?
11196 grep -v '^ *+' conftest.er1 >conftest.err
11197 rm -f conftest.er1
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011200 (exit $ac_status); } && {
11201 test -z "$ac_c_werror_flag" ||
11202 test ! -s conftest.err
11203 } && test -s conftest$ac_exeext &&
11204 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205 eval "$as_ac_var=yes"
11206else
11207 echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
Reid Spencera773bd52006-08-04 18:18:08 +000011210 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211fi
Reid Spencera773bd52006-08-04 18:18:08 +000011212
Scott Michel96dcd2b2007-12-05 21:24:02 +000011213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011214 conftest$ac_exeext conftest.$ac_ext
11215fi
Reid Spencera773bd52006-08-04 18:18:08 +000011216ac_res=`eval echo '${'$as_ac_var'}'`
11217 { echo "$as_me:$LINENO: result: $ac_res" >&5
11218echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011219if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222_ACEOF
11223
11224fi
11225done
11226
11227
11228
11229
11230for ac_func in closedir opendir readdir
11231do
11232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011233{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11235if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237else
11238 cat >conftest.$ac_ext <<_ACEOF
11239/* confdefs.h. */
11240_ACEOF
11241cat confdefs.h >>conftest.$ac_ext
11242cat >>conftest.$ac_ext <<_ACEOF
11243/* end confdefs.h. */
11244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11246#define $ac_func innocuous_$ac_func
11247
11248/* System header to define __stub macros and hopefully few prototypes,
11249 which can conflict with char $ac_func (); below.
11250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11251 <limits.h> exists even on freestanding compilers. */
11252
11253#ifdef __STDC__
11254# include <limits.h>
11255#else
11256# include <assert.h>
11257#endif
11258
11259#undef $ac_func
11260
Reid Spencera773bd52006-08-04 18:18:08 +000011261/* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011264#ifdef __cplusplus
11265extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011266#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011267char $ac_func ();
11268/* The GNU C library defines this for functions which it implements
11269 to always fail with ENOSYS. Some functions are actually named
11270 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011271#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011272choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273#endif
11274
11275int
11276main ()
11277{
Reid Spencera773bd52006-08-04 18:18:08 +000011278return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011279 ;
11280 return 0;
11281}
11282_ACEOF
11283rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011284if { (ac_try="$ac_link"
11285case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11288esac
11289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011291 ac_status=$?
11292 grep -v '^ *+' conftest.er1 >conftest.err
11293 rm -f conftest.er1
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011296 (exit $ac_status); } && {
11297 test -z "$ac_c_werror_flag" ||
11298 test ! -s conftest.err
11299 } && test -s conftest$ac_exeext &&
11300 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011301 eval "$as_ac_var=yes"
11302else
11303 echo "$as_me: failed program was:" >&5
11304sed 's/^/| /' conftest.$ac_ext >&5
11305
Reid Spencera773bd52006-08-04 18:18:08 +000011306 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011307fi
Reid Spencera773bd52006-08-04 18:18:08 +000011308
Scott Michel96dcd2b2007-12-05 21:24:02 +000011309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011310 conftest$ac_exeext conftest.$ac_ext
11311fi
Reid Spencera773bd52006-08-04 18:18:08 +000011312ac_res=`eval echo '${'$as_ac_var'}'`
11313 { echo "$as_me:$LINENO: result: $ac_res" >&5
11314echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011315if test `eval echo '${'$as_ac_var'}'` = yes; then
11316 cat >>confdefs.h <<_ACEOF
11317#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11318_ACEOF
11319
11320fi
11321done
11322
11323
Reid Spencera773bd52006-08-04 18:18:08 +000011324# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011325if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011326 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327 case $enableval in
11328 yes) enable_shared=yes ;;
11329 no) enable_shared=no ;;
11330 *)
11331 enable_shared=no
11332 # Look at the argument we got. We use all the common list separators.
11333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11334 for pkg in $enableval; do
11335 IFS="$lt_save_ifs"
11336 if test "X$pkg" = "X$p"; then
11337 enable_shared=yes
11338 fi
11339 done
11340 IFS="$lt_save_ifs"
11341 ;;
11342 esac
11343else
11344 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011345fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011346
Reid Spencera773bd52006-08-04 18:18:08 +000011347
11348# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011349if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011350 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351 case $enableval in
11352 yes) enable_static=yes ;;
11353 no) enable_static=no ;;
11354 *)
11355 enable_static=no
11356 # Look at the argument we got. We use all the common list separators.
11357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11358 for pkg in $enableval; do
11359 IFS="$lt_save_ifs"
11360 if test "X$pkg" = "X$p"; then
11361 enable_static=yes
11362 fi
11363 done
11364 IFS="$lt_save_ifs"
11365 ;;
11366 esac
11367else
11368 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011369fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011370
Reid Spencera773bd52006-08-04 18:18:08 +000011371
11372# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011374 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375 case $enableval in
11376 yes) enable_fast_install=yes ;;
11377 no) enable_fast_install=no ;;
11378 *)
11379 enable_fast_install=no
11380 # Look at the argument we got. We use all the common list separators.
11381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11382 for pkg in $enableval; do
11383 IFS="$lt_save_ifs"
11384 if test "X$pkg" = "X$p"; then
11385 enable_fast_install=yes
11386 fi
11387 done
11388 IFS="$lt_save_ifs"
11389 ;;
11390 esac
11391else
11392 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011393fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011394
Reid Spencera773bd52006-08-04 18:18:08 +000011395
11396{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11397echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011398if test "${lt_cv_path_SED+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400else
11401 # Loop through the user's path and test for sed and gsed.
11402# Then use that list of sed's as ones to test for truncation.
11403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404for as_dir in $PATH
11405do
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
11408 for lt_ac_prog in sed gsed; do
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11411 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11412 fi
11413 done
11414 done
11415done
11416lt_ac_max=0
11417lt_ac_count=0
11418# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11419# along with /bin/sed that truncates output.
11420for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000011421 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422 cat /dev/null > conftest.in
11423 lt_ac_count=0
11424 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11425 # Check for GNU sed and select it if it is found.
11426 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11427 lt_cv_path_SED=$lt_ac_sed
11428 break
11429 fi
11430 while true; do
11431 cat conftest.in conftest.in >conftest.tmp
11432 mv conftest.tmp conftest.in
11433 cp conftest.in conftest.nl
11434 echo >>conftest.nl
11435 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11436 cmp -s conftest.out conftest.nl || break
11437 # 10000 chars as input seems more than enough
11438 test $lt_ac_count -gt 10 && break
11439 lt_ac_count=`expr $lt_ac_count + 1`
11440 if test $lt_ac_count -gt $lt_ac_max; then
11441 lt_ac_max=$lt_ac_count
11442 lt_cv_path_SED=$lt_ac_sed
11443 fi
11444 done
11445done
11446
11447fi
11448
11449SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000011450{ echo "$as_me:$LINENO: result: $SED" >&5
11451echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452
11453
Reid Spencera773bd52006-08-04 18:18:08 +000011454# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011456 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011457else
11458 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000011459fi
11460
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011461ac_prog=ld
11462if test "$GCC" = yes; then
11463 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000011464 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11465echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466 case $host in
11467 *-*-mingw*)
11468 # gcc leaves a trailing carriage return which upsets mingw
11469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11470 *)
11471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11472 esac
11473 case $ac_prog in
11474 # Accept absolute paths.
11475 [\\/]* | ?:[\\/]*)
11476 re_direlt='/[^/][^/]*/\.\./'
11477 # Canonicalize the pathname of ld
11478 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11479 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11480 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11481 done
11482 test -z "$LD" && LD="$ac_prog"
11483 ;;
11484 "")
11485 # If it fails, then pretend we aren't using GCC.
11486 ac_prog=ld
11487 ;;
11488 *)
11489 # If it is relative, then search for the first ld in PATH.
11490 with_gnu_ld=unknown
11491 ;;
11492 esac
11493elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000011494 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11495echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011496else
Reid Spencera773bd52006-08-04 18:18:08 +000011497 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11498echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011499fi
11500if test "${lt_cv_path_LD+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502else
11503 if test -z "$LD"; then
11504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11505 for ac_dir in $PATH; do
11506 IFS="$lt_save_ifs"
11507 test -z "$ac_dir" && ac_dir=.
11508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11509 lt_cv_path_LD="$ac_dir/$ac_prog"
11510 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000011511 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512 # Break only if it was the GNU/non-GNU ld that we prefer.
11513 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11514 *GNU* | *'with BFD'*)
11515 test "$with_gnu_ld" != no && break
11516 ;;
11517 *)
11518 test "$with_gnu_ld" != yes && break
11519 ;;
11520 esac
11521 fi
11522 done
11523 IFS="$lt_save_ifs"
11524else
11525 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11526fi
11527fi
11528
11529LD="$lt_cv_path_LD"
11530if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000011531 { echo "$as_me:$LINENO: result: $LD" >&5
11532echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011533else
Reid Spencera773bd52006-08-04 18:18:08 +000011534 { echo "$as_me:$LINENO: result: no" >&5
11535echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011536fi
11537test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11538echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11539 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000011540{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11541echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542if test "${lt_cv_prog_gnu_ld+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11544else
Reid Spencera773bd52006-08-04 18:18:08 +000011545 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011546case `$LD -v 2>&1 </dev/null` in
11547*GNU* | *'with BFD'*)
11548 lt_cv_prog_gnu_ld=yes
11549 ;;
11550*)
11551 lt_cv_prog_gnu_ld=no
11552 ;;
11553esac
11554fi
Reid Spencera773bd52006-08-04 18:18:08 +000011555{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11556echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011557with_gnu_ld=$lt_cv_prog_gnu_ld
11558
11559
Reid Spencera773bd52006-08-04 18:18:08 +000011560{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11561echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011562if test "${lt_cv_ld_reload_flag+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564else
11565 lt_cv_ld_reload_flag='-r'
11566fi
Reid Spencera773bd52006-08-04 18:18:08 +000011567{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11568echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569reload_flag=$lt_cv_ld_reload_flag
11570case $reload_flag in
11571"" | " "*) ;;
11572*) reload_flag=" $reload_flag" ;;
11573esac
11574reload_cmds='$LD$reload_flag -o $output$reload_objs'
11575case $host_os in
11576 darwin*)
11577 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000011578 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011579 else
11580 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11581 fi
11582 ;;
11583esac
11584
Reid Spencera773bd52006-08-04 18:18:08 +000011585{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11586echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011587if test "${lt_cv_deplibs_check_method+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11589else
11590 lt_cv_file_magic_cmd='$MAGIC_CMD'
11591lt_cv_file_magic_test_file=
11592lt_cv_deplibs_check_method='unknown'
11593# Need to set the preceding variable on all platforms that support
11594# interlibrary dependencies.
11595# 'none' -- dependencies not supported.
11596# `unknown' -- same as none, but documents that we really don't know.
11597# 'pass_all' -- all dependencies passed with no checks.
11598# 'test_compile' -- check by making test program.
11599# 'file_magic [[regex]]' -- check by looking for files in library path
11600# which responds to the $file_magic_cmd with a given extended regex.
11601# If you have `file' or equivalent on your system and you're not sure
11602# whether `pass_all' will *always* work, you probably want this one.
11603
11604case $host_os in
11605aix4* | aix5*)
11606 lt_cv_deplibs_check_method=pass_all
11607 ;;
11608
11609beos*)
11610 lt_cv_deplibs_check_method=pass_all
11611 ;;
11612
11613bsdi[45]*)
11614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11615 lt_cv_file_magic_cmd='/usr/bin/file -L'
11616 lt_cv_file_magic_test_file=/shlib/libc.so
11617 ;;
11618
11619cygwin*)
11620 # func_win32_libid is a shell function defined in ltmain.sh
11621 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11622 lt_cv_file_magic_cmd='func_win32_libid'
11623 ;;
11624
11625mingw* | pw32*)
11626 # Base MSYS/MinGW do not provide the 'file' command needed by
11627 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11628 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11629 lt_cv_file_magic_cmd='$OBJDUMP -f'
11630 ;;
11631
11632darwin* | rhapsody*)
11633 lt_cv_deplibs_check_method=pass_all
11634 ;;
11635
Reid Spencera773bd52006-08-04 18:18:08 +000011636freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011637 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11638 case $host_cpu in
11639 i*86 )
11640 # Not sure whether the presence of OpenBSD here was a mistake.
11641 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000011642 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 +000011643 lt_cv_file_magic_cmd=/usr/bin/file
11644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11645 ;;
11646 esac
11647 else
11648 lt_cv_deplibs_check_method=pass_all
11649 fi
11650 ;;
11651
11652gnu*)
11653 lt_cv_deplibs_check_method=pass_all
11654 ;;
11655
11656hpux10.20* | hpux11*)
11657 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000011658 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011659 ia64*)
11660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11661 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11662 ;;
11663 hppa*64*)
11664 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]'
11665 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11666 ;;
11667 *)
11668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11669 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11670 ;;
11671 esac
11672 ;;
11673
Reid Spencera773bd52006-08-04 18:18:08 +000011674interix3*)
11675 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11677 ;;
11678
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011679irix5* | irix6* | nonstopux*)
11680 case $LD in
11681 *-32|*"-32 ") libmagic=32-bit;;
11682 *-n32|*"-n32 ") libmagic=N32;;
11683 *-64|*"-64 ") libmagic=64-bit;;
11684 *) libmagic=never-match;;
11685 esac
11686 lt_cv_deplibs_check_method=pass_all
11687 ;;
11688
11689# This must be Linux ELF.
11690linux*)
11691 lt_cv_deplibs_check_method=pass_all
11692 ;;
11693
11694netbsd*)
11695 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11697 else
11698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11699 fi
11700 ;;
11701
11702newos6*)
11703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11704 lt_cv_file_magic_cmd=/usr/bin/file
11705 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11706 ;;
11707
11708nto-qnx*)
11709 lt_cv_deplibs_check_method=unknown
11710 ;;
11711
11712openbsd*)
11713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11715 else
11716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11717 fi
11718 ;;
11719
11720osf3* | osf4* | osf5*)
11721 lt_cv_deplibs_check_method=pass_all
11722 ;;
11723
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724solaris*)
11725 lt_cv_deplibs_check_method=pass_all
11726 ;;
11727
Reid Spencera773bd52006-08-04 18:18:08 +000011728sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729 case $host_vendor in
11730 motorola)
11731 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]'
11732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11733 ;;
11734 ncr)
11735 lt_cv_deplibs_check_method=pass_all
11736 ;;
11737 sequent)
11738 lt_cv_file_magic_cmd='/bin/file'
11739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11740 ;;
11741 sni)
11742 lt_cv_file_magic_cmd='/bin/file'
11743 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11744 lt_cv_file_magic_test_file=/lib/libc.so
11745 ;;
11746 siemens)
11747 lt_cv_deplibs_check_method=pass_all
11748 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011749 pc)
11750 lt_cv_deplibs_check_method=pass_all
11751 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 esac
11753 ;;
11754
Reid Spencera773bd52006-08-04 18:18:08 +000011755sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011756 lt_cv_deplibs_check_method=pass_all
11757 ;;
11758esac
11759
11760fi
Reid Spencera773bd52006-08-04 18:18:08 +000011761{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11762echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011763file_magic_cmd=$lt_cv_file_magic_cmd
11764deplibs_check_method=$lt_cv_deplibs_check_method
11765test -z "$deplibs_check_method" && deplibs_check_method=unknown
11766
11767
11768
11769# If no C compiler was specified, use CC.
11770LTCC=${LTCC-"$CC"}
11771
Reid Spencera773bd52006-08-04 18:18:08 +000011772# If no C compiler flags were specified, use CFLAGS.
11773LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11774
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775# Allow CC to be a program name with arguments.
11776compiler=$CC
11777
Reid Spencera773bd52006-08-04 18:18:08 +000011778# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011780 enableval=$enable_libtool_lock;
11781fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11784
11785# Some flags need to be propagated to the compiler or linker for good
11786# libtool support.
11787case $host in
11788ia64-*-hpux*)
11789 # Find out which ABI we are using.
11790 echo 'int i;' > conftest.$ac_ext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792 (eval $ac_compile) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; then
11796 case `/usr/bin/file conftest.$ac_objext` in
11797 *ELF-32*)
11798 HPUX_IA64_MODE="32"
11799 ;;
11800 *ELF-64*)
11801 HPUX_IA64_MODE="64"
11802 ;;
11803 esac
11804 fi
11805 rm -rf conftest*
11806 ;;
11807*-*-irix6*)
11808 # Find out which ABI we are using.
Duncan Sands67f1c492007-12-12 23:03:45 +000011809 echo '#line 11809 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; then
11815 if test "$lt_cv_prog_gnu_ld" = yes; then
11816 case `/usr/bin/file conftest.$ac_objext` in
11817 *32-bit*)
11818 LD="${LD-ld} -melf32bsmip"
11819 ;;
11820 *N32*)
11821 LD="${LD-ld} -melf32bmipn32"
11822 ;;
11823 *64-bit*)
11824 LD="${LD-ld} -melf64bmip"
11825 ;;
11826 esac
11827 else
11828 case `/usr/bin/file conftest.$ac_objext` in
11829 *32-bit*)
11830 LD="${LD-ld} -32"
11831 ;;
11832 *N32*)
11833 LD="${LD-ld} -n32"
11834 ;;
11835 *64-bit*)
11836 LD="${LD-ld} -64"
11837 ;;
11838 esac
11839 fi
11840 fi
11841 rm -rf conftest*
11842 ;;
11843
11844x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11845 # Find out which ABI we are using.
11846 echo 'int i;' > conftest.$ac_ext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000011852 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011853 *32-bit*)
11854 case $host in
11855 x86_64-*linux*)
11856 LD="${LD-ld} -m elf_i386"
11857 ;;
11858 ppc64-*linux*|powerpc64-*linux*)
11859 LD="${LD-ld} -m elf32ppclinux"
11860 ;;
11861 s390x-*linux*)
11862 LD="${LD-ld} -m elf_s390"
11863 ;;
11864 sparc64-*linux*)
11865 LD="${LD-ld} -m elf32_sparc"
11866 ;;
11867 esac
11868 ;;
11869 *64-bit*)
11870 case $host in
11871 x86_64-*linux*)
11872 LD="${LD-ld} -m elf_x86_64"
11873 ;;
11874 ppc*-*linux*|powerpc*-*linux*)
11875 LD="${LD-ld} -m elf64ppc"
11876 ;;
11877 s390*-*linux*)
11878 LD="${LD-ld} -m elf64_s390"
11879 ;;
11880 sparc*-*linux*)
11881 LD="${LD-ld} -m elf64_sparc"
11882 ;;
11883 esac
11884 ;;
11885 esac
11886 fi
11887 rm -rf conftest*
11888 ;;
11889
11890*-*-sco3.2v5*)
11891 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11892 SAVE_CFLAGS="$CFLAGS"
11893 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000011894 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11895echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011896if test "${lt_cv_cc_needs_belf+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 ac_ext=c
11900ac_cpp='$CPP $CPPFLAGS'
11901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11903ac_compiler_gnu=$ac_cv_c_compiler_gnu
11904
11905 cat >conftest.$ac_ext <<_ACEOF
11906/* confdefs.h. */
11907_ACEOF
11908cat confdefs.h >>conftest.$ac_ext
11909cat >>conftest.$ac_ext <<_ACEOF
11910/* end confdefs.h. */
11911
Reid Spencera773bd52006-08-04 18:18:08 +000011912int
11913main ()
11914{
11915
11916 ;
11917 return 0;
11918}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011919_ACEOF
11920rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011921if { (ac_try="$ac_link"
11922case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925esac
11926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011933 (exit $ac_status); } && {
11934 test -z "$ac_c_werror_flag" ||
11935 test ! -s conftest.err
11936 } && test -s conftest$ac_exeext &&
11937 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938 lt_cv_cc_needs_belf=yes
11939else
11940 echo "$as_me: failed program was:" >&5
11941sed 's/^/| /' conftest.$ac_ext >&5
11942
Reid Spencera773bd52006-08-04 18:18:08 +000011943 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944fi
Reid Spencera773bd52006-08-04 18:18:08 +000011945
Scott Michel96dcd2b2007-12-05 21:24:02 +000011946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947 conftest$ac_exeext conftest.$ac_ext
11948 ac_ext=c
11949ac_cpp='$CPP $CPPFLAGS'
11950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11952ac_compiler_gnu=$ac_cv_c_compiler_gnu
11953
11954fi
Reid Spencera773bd52006-08-04 18:18:08 +000011955{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11956echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11959 CFLAGS="$SAVE_CFLAGS"
11960 fi
11961 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011962sparc*-*solaris*)
11963 # Find out which ABI we are using.
11964 echo 'int i;' > conftest.$ac_ext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; then
11970 case `/usr/bin/file conftest.o` in
11971 *64-bit*)
11972 case $lt_cv_prog_gnu_ld in
11973 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11974 *) LD="${LD-ld} -64" ;;
11975 esac
11976 ;;
11977 esac
11978 fi
11979 rm -rf conftest*
11980 ;;
11981
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982
11983esac
11984
11985need_locks="$enable_libtool_lock"
11986
11987
Reid Spencer2706f8c2004-09-19 23:53:36 +000011988
11989
11990if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11991 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11992 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000011993 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000011994ac_cpp='$CXXCPP $CPPFLAGS'
11995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000011998{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11999echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012000if test -z "$CXXCPP"; then
12001 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003else
John Criswell47fdd832003-07-14 16:52:07 +000012004 # Double quotes because CXXCPP needs to be expanded
12005 for CXXCPP in "$CXX -E" "/lib/cpp"
12006 do
12007 ac_preproc_ok=false
12008for ac_cxx_preproc_warn_flag in '' yes
12009do
12010 # Use a header file that comes with gcc, so configuring glibc
12011 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12013 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012014 # On the NeXT, cc -E runs the code through the compiler's parser,
12015 # not just through cpp. "Syntax error" is here to catch this case.
12016 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
12022#ifdef __STDC__
12023# include <limits.h>
12024#else
12025# include <assert.h>
12026#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012027 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012028_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012029if { (ac_try="$ac_cpp conftest.$ac_ext"
12030case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033esac
12034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012036 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012037 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012041 (exit $ac_status); } >/dev/null && {
12042 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12043 test ! -s conftest.err
12044 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012045 :
12046else
12047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012048sed 's/^/| /' conftest.$ac_ext >&5
12049
John Criswell47fdd832003-07-14 16:52:07 +000012050 # Broken: fails on valid input.
12051continue
12052fi
Reid Spencera773bd52006-08-04 18:18:08 +000012053
John Criswell47fdd832003-07-14 16:52:07 +000012054rm -f conftest.err conftest.$ac_ext
12055
Reid Spencera773bd52006-08-04 18:18:08 +000012056 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012057 # can be detected and how.
12058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012059/* confdefs.h. */
12060_ACEOF
12061cat confdefs.h >>conftest.$ac_ext
12062cat >>conftest.$ac_ext <<_ACEOF
12063/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012064#include <ac_nonexistent.h>
12065_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012066if { (ac_try="$ac_cpp conftest.$ac_ext"
12067case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070esac
12071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012073 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012074 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012075 rm -f conftest.er1
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012078 (exit $ac_status); } >/dev/null && {
12079 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12080 test ! -s conftest.err
12081 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012082 # Broken: success on invalid input.
12083continue
12084else
12085 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012086sed 's/^/| /' conftest.$ac_ext >&5
12087
John Criswell47fdd832003-07-14 16:52:07 +000012088 # Passes both tests.
12089ac_preproc_ok=:
12090break
12091fi
Reid Spencera773bd52006-08-04 18:18:08 +000012092
John Criswell47fdd832003-07-14 16:52:07 +000012093rm -f conftest.err conftest.$ac_ext
12094
12095done
12096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12097rm -f conftest.err conftest.$ac_ext
12098if $ac_preproc_ok; then
12099 break
John Criswell7a73b802003-06-30 21:59:07 +000012100fi
12101
John Criswell47fdd832003-07-14 16:52:07 +000012102 done
12103 ac_cv_prog_CXXCPP=$CXXCPP
12104
12105fi
12106 CXXCPP=$ac_cv_prog_CXXCPP
12107else
12108 ac_cv_prog_CXXCPP=$CXXCPP
12109fi
Reid Spencera773bd52006-08-04 18:18:08 +000012110{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12111echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012112ac_preproc_ok=false
12113for ac_cxx_preproc_warn_flag in '' yes
12114do
12115 # Use a header file that comes with gcc, so configuring glibc
12116 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012119 # On the NeXT, cc -E runs the code through the compiler's parser,
12120 # not just through cpp. "Syntax error" is here to catch this case.
12121 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012122/* confdefs.h. */
12123_ACEOF
12124cat confdefs.h >>conftest.$ac_ext
12125cat >>conftest.$ac_ext <<_ACEOF
12126/* end confdefs.h. */
12127#ifdef __STDC__
12128# include <limits.h>
12129#else
12130# include <assert.h>
12131#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012132 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012133_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012134if { (ac_try="$ac_cpp conftest.$ac_ext"
12135case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12138esac
12139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012141 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012142 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012143 rm -f conftest.er1
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012146 (exit $ac_status); } >/dev/null && {
12147 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12148 test ! -s conftest.err
12149 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012150 :
12151else
12152 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012153sed 's/^/| /' conftest.$ac_ext >&5
12154
John Criswell47fdd832003-07-14 16:52:07 +000012155 # Broken: fails on valid input.
12156continue
12157fi
Reid Spencera773bd52006-08-04 18:18:08 +000012158
John Criswell47fdd832003-07-14 16:52:07 +000012159rm -f conftest.err conftest.$ac_ext
12160
Reid Spencera773bd52006-08-04 18:18:08 +000012161 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012162 # can be detected and how.
12163 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012164/* confdefs.h. */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012169#include <ac_nonexistent.h>
12170_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012171if { (ac_try="$ac_cpp conftest.$ac_ext"
12172case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175esac
12176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012178 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012179 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012183 (exit $ac_status); } >/dev/null && {
12184 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12185 test ! -s conftest.err
12186 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012187 # Broken: success on invalid input.
12188continue
12189else
12190 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012191sed 's/^/| /' conftest.$ac_ext >&5
12192
John Criswell47fdd832003-07-14 16:52:07 +000012193 # Passes both tests.
12194ac_preproc_ok=:
12195break
12196fi
Reid Spencera773bd52006-08-04 18:18:08 +000012197
John Criswell47fdd832003-07-14 16:52:07 +000012198rm -f conftest.err conftest.$ac_ext
12199
12200done
12201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12202rm -f conftest.err conftest.$ac_ext
12203if $ac_preproc_ok; then
12204 :
12205else
John Criswell0c38eaf2003-09-10 15:17:25 +000012206 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12207See \`config.log' for more details." >&5
12208echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12209See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012210 { (exit 1); exit 1; }; }
12211fi
12212
Reid Spencera773bd52006-08-04 18:18:08 +000012213ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012214ac_cpp='$CXXCPP $CPPFLAGS'
12215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12218
Reid Spencer2706f8c2004-09-19 23:53:36 +000012219fi
12220
John Criswell47fdd832003-07-14 16:52:07 +000012221
12222ac_ext=f
12223ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12224ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12225ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12226if test -n "$ac_tool_prefix"; then
Scott Michel96dcd2b2007-12-05 21:24:02 +000012227 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
John Criswell47fdd832003-07-14 16:52:07 +000012228 do
12229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12230set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012233if test "${ac_cv_prog_F77+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235else
12236 if test -n "$F77"; then
12237 ac_cv_prog_F77="$F77" # Let the user override the test.
12238else
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000012246 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 break 2
12249 fi
12250done
12251done
Reid Spencera773bd52006-08-04 18:18:08 +000012252IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012253
12254fi
12255fi
12256F77=$ac_cv_prog_F77
12257if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012258 { echo "$as_me:$LINENO: result: $F77" >&5
12259echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012260else
Reid Spencera773bd52006-08-04 18:18:08 +000012261 { echo "$as_me:$LINENO: result: no" >&5
12262echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012263fi
12264
Reid Spencera773bd52006-08-04 18:18:08 +000012265
John Criswell47fdd832003-07-14 16:52:07 +000012266 test -n "$F77" && break
12267 done
12268fi
12269if test -z "$F77"; then
12270 ac_ct_F77=$F77
Scott Michel96dcd2b2007-12-05 21:24:02 +000012271 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
John Criswell47fdd832003-07-14 16:52:07 +000012272do
12273 # Extract the first word of "$ac_prog", so it can be a program name with args.
12274set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012277if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279else
12280 if test -n "$ac_ct_F77"; then
12281 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
12288 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000012290 ac_cv_prog_ac_ct_F77="$ac_prog"
12291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 break 2
12293 fi
12294done
12295done
Reid Spencera773bd52006-08-04 18:18:08 +000012296IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012297
12298fi
12299fi
12300ac_ct_F77=$ac_cv_prog_ac_ct_F77
12301if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012302 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12303echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012304else
Reid Spencera773bd52006-08-04 18:18:08 +000012305 { echo "$as_me:$LINENO: result: no" >&5
12306echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012307fi
12308
Reid Spencera773bd52006-08-04 18:18:08 +000012309
John Criswell47fdd832003-07-14 16:52:07 +000012310 test -n "$ac_ct_F77" && break
12311done
12312
Reid Spencera773bd52006-08-04 18:18:08 +000012313 if test "x$ac_ct_F77" = x; then
12314 F77=""
12315 else
12316 case $cross_compiling:$ac_tool_warned in
12317yes:)
12318{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12319whose name does not start with the host triplet. If you think this
12320configuration is useful to you, please write to autoconf@gnu.org." >&5
12321echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12322whose name does not start with the host triplet. If you think this
12323configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12324ac_tool_warned=yes ;;
12325esac
12326 F77=$ac_ct_F77
12327 fi
John Criswell47fdd832003-07-14 16:52:07 +000012328fi
12329
12330
12331# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000012332echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012333ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000012334{ (ac_try="$ac_compiler --version >&5"
12335case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338esac
12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012344{ (ac_try="$ac_compiler -v >&5"
12345case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12348esac
12349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012354{ (ac_try="$ac_compiler -V >&5"
12355case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358esac
12359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000012364rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000012365
12366# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000012367# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000012368ac_save_ext=$ac_ext
12369ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000012370{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12371echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012372if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374else
12375 cat >conftest.$ac_ext <<_ACEOF
12376 program main
12377#ifndef __GNUC__
12378 choke me
12379#endif
12380
12381 end
12382_ACEOF
12383rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012384if { (ac_try="$ac_compile"
12385case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388esac
12389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012391 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012396 (exit $ac_status); } && {
12397 test -z "$ac_f77_werror_flag" ||
12398 test ! -s conftest.err
12399 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012400 ac_compiler_gnu=yes
12401else
12402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012403sed 's/^/| /' conftest.$ac_ext >&5
12404
Reid Spencera773bd52006-08-04 18:18:08 +000012405 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000012406fi
Reid Spencera773bd52006-08-04 18:18:08 +000012407
12408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012409ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12410
12411fi
Reid Spencera773bd52006-08-04 18:18:08 +000012412{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12413echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012414ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000012415ac_test_FFLAGS=${FFLAGS+set}
12416ac_save_FFLAGS=$FFLAGS
12417FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000012418{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12419echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012420if test "${ac_cv_prog_f77_g+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422else
12423 FFLAGS=-g
12424cat >conftest.$ac_ext <<_ACEOF
12425 program main
12426
12427 end
12428_ACEOF
12429rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012430if { (ac_try="$ac_compile"
12431case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12434esac
12435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012437 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012442 (exit $ac_status); } && {
12443 test -z "$ac_f77_werror_flag" ||
12444 test ! -s conftest.err
12445 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012446 ac_cv_prog_f77_g=yes
12447else
12448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012449sed 's/^/| /' conftest.$ac_ext >&5
12450
Reid Spencera773bd52006-08-04 18:18:08 +000012451 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000012452fi
Reid Spencera773bd52006-08-04 18:18:08 +000012453
12454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012455
12456fi
Reid Spencera773bd52006-08-04 18:18:08 +000012457{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12458echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012459if test "$ac_test_FFLAGS" = set; then
12460 FFLAGS=$ac_save_FFLAGS
12461elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012462 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012463 FFLAGS="-g -O2"
12464 else
12465 FFLAGS="-g"
12466 fi
12467else
Reid Spencer2706f8c2004-09-19 23:53:36 +000012468 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012469 FFLAGS="-O2"
12470 else
12471 FFLAGS=
12472 fi
12473fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012474
12475G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000012476ac_ext=c
12477ac_cpp='$CPP $CPPFLAGS'
12478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12480ac_compiler_gnu=$ac_cv_c_compiler_gnu
12481
12482
12483
12484# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12485
12486# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000012487{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12488echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012489if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491else
12492 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000012493 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000012494
12495 case $build_os in
12496 msdosdjgpp*)
12497 # On DJGPP, this test can blow up pretty badly due to problems in libc
12498 # (any single argument exceeding 2000 bytes causes a buffer overrun
12499 # during glob expansion). Even if it were fixed, the result of this
12500 # check would be larger than it should be.
12501 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12502 ;;
12503
12504 gnu*)
12505 # Under GNU Hurd, this test is not required because there is
12506 # no limit to the length of command line arguments.
12507 # Libtool will interpret -1 as no limit whatsoever
12508 lt_cv_sys_max_cmd_len=-1;
12509 ;;
12510
12511 cygwin* | mingw*)
12512 # On Win9x/ME, this test blows up -- it succeeds, but takes
12513 # about 5 minutes as the teststring grows exponentially.
12514 # Worse, since 9x/ME are not pre-emptively multitasking,
12515 # you end up with a "frozen" computer, even though with patience
12516 # the test eventually succeeds (with a max line length of 256k).
12517 # Instead, let's just punt: use the minimum linelength reported by
12518 # all of the supported platforms: 8192 (on NT/2K/XP).
12519 lt_cv_sys_max_cmd_len=8192;
12520 ;;
12521
Reid Spencer2706f8c2004-09-19 23:53:36 +000012522 amigaos*)
12523 # On AmigaOS with pdksh, this test takes hours, literally.
12524 # So we just punt and use a minimum line length of 8192.
12525 lt_cv_sys_max_cmd_len=8192;
12526 ;;
12527
Reid Spencera773bd52006-08-04 18:18:08 +000012528 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012529 # This has been around since 386BSD, at least. Likely further.
12530 if test -x /sbin/sysctl; then
12531 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12532 elif test -x /usr/sbin/sysctl; then
12533 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12534 else
Reid Spencera773bd52006-08-04 18:18:08 +000012535 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000012536 fi
12537 # And add a safety zone
12538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000012539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012540 ;;
12541
Reid Spencera773bd52006-08-04 18:18:08 +000012542 interix*)
12543 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12544 lt_cv_sys_max_cmd_len=196608
12545 ;;
12546
12547 osf*)
12548 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12549 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12550 # nice to cause kernel panics so lets avoid the loop below.
12551 # First set a reasonable default.
12552 lt_cv_sys_max_cmd_len=16384
12553 #
12554 if test -x /sbin/sysconfig; then
12555 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12556 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12557 esac
12558 fi
12559 ;;
12560 sco3.2v5*)
12561 lt_cv_sys_max_cmd_len=102400
12562 ;;
12563 sysv5* | sco5v6* | sysv4.2uw2*)
12564 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12565 if test -n "$kargmax"; then
12566 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12567 else
12568 lt_cv_sys_max_cmd_len=32768
12569 fi
12570 ;;
12571 *)
John Criswell47fdd832003-07-14 16:52:07 +000012572 # If test is not a shell built-in, we'll probably end up computing a
12573 # maximum length that is only half of the actual maximum length, but
12574 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12576 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12577 = "XX$teststring") >/dev/null 2>&1 &&
12578 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000012579 lt_cv_sys_max_cmd_len=$new_result &&
12580 test $i != 17 # 1/2 MB should be enough
12581 do
12582 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012583 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000012584 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000012585 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000012586 # Add a significant safety factor because C++ compilers can tack on massive
12587 # amounts of additional arguments before passing them to the linker.
12588 # It appears as though 1/2 is a usable value.
12589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12590 ;;
12591 esac
12592
12593fi
12594
12595if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012596 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12597echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012598else
Reid Spencera773bd52006-08-04 18:18:08 +000012599 { echo "$as_me:$LINENO: result: none" >&5
12600echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012601fi
12602
12603
12604
12605
12606# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000012607{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12608echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012609if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12611else
12612
12613# These are sane defaults that work on at least a few old systems.
12614# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12615
12616# Character class describing NM global symbol codes.
12617symcode='[BCDEGRST]'
12618
12619# Regexp to match symbols that can be accessed directly from C.
12620sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12621
John Criswell47fdd832003-07-14 16:52:07 +000012622# Transform an extracted symbol line into a proper C declaration
12623lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12624
12625# Transform an extracted symbol line into symbol name and symbol address
12626lt_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'"
12627
12628# Define system-specific variables.
12629case $host_os in
12630aix*)
12631 symcode='[BCDT]'
12632 ;;
12633cygwin* | mingw* | pw32*)
12634 symcode='[ABCDGISTW]'
12635 ;;
12636hpux*) # Its linker distinguishes data from code symbols
12637 if test "$host_cpu" = ia64; then
12638 symcode='[ABCDEGRST]'
12639 fi
12640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12641 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'"
12642 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012643linux*)
12644 if test "$host_cpu" = ia64; then
12645 symcode='[ABCDGIRSTW]'
12646 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12647 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'"
12648 fi
12649 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012650irix* | nonstopux*)
12651 symcode='[BCDEGRST]'
12652 ;;
12653osf*)
12654 symcode='[BCDEGQRST]'
12655 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012656solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012657 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000012658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012659sco3.2v5*)
12660 symcode='[DT]'
12661 ;;
12662sysv4.2uw2*)
12663 symcode='[DT]'
12664 ;;
12665sysv5* | sco5v6* | unixware* | OpenUNIX*)
12666 symcode='[ABDT]'
12667 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012668sysv4)
12669 symcode='[DFNSTU]'
12670 ;;
12671esac
12672
12673# Handle CRLF in mingw tool chain
12674opt_cr=
12675case $build_os in
12676mingw*)
12677 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12678 ;;
12679esac
12680
12681# If we're using GNU nm, then use its standard symbol codes.
12682case `$NM -V 2>&1` in
12683*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012684 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000012685esac
12686
12687# Try without a prefix undercore, then with it.
12688for ac_symprfx in "" "_"; do
12689
Reid Spencera773bd52006-08-04 18:18:08 +000012690 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12691 symxfrm="\\1 $ac_symprfx\\2 \\2"
12692
John Criswell47fdd832003-07-14 16:52:07 +000012693 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000012694 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 +000012695
12696 # Check to see that the pipe works correctly.
12697 pipe_works=no
12698
12699 rm -f conftest*
12700 cat > conftest.$ac_ext <<EOF
12701#ifdef __cplusplus
12702extern "C" {
12703#endif
12704char nm_test_var;
12705void nm_test_func(){}
12706#ifdef __cplusplus
12707}
12708#endif
12709int main(){nm_test_var='a';nm_test_func();return(0);}
12710EOF
12711
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; then
12717 # Now try to grab the symbols.
12718 nlist=conftest.nm
12719 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12720 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && test -s "$nlist"; then
12724 # Try sorting and uniquifying the output.
12725 if sort "$nlist" | uniq > "$nlist"T; then
12726 mv -f "$nlist"T "$nlist"
12727 else
12728 rm -f "$nlist"T
12729 fi
12730
12731 # Make sure that we snagged all the symbols we need.
12732 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12733 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12734 cat <<EOF > conftest.$ac_ext
12735#ifdef __cplusplus
12736extern "C" {
12737#endif
12738
12739EOF
12740 # Now generate the symbol file.
12741 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12742
12743 cat <<EOF >> conftest.$ac_ext
12744#if defined (__STDC__) && __STDC__
12745# define lt_ptr_t void *
12746#else
12747# define lt_ptr_t char *
12748# define const
12749#endif
12750
12751/* The mapping between symbol names and symbols. */
12752const struct {
12753 const char *name;
12754 lt_ptr_t address;
12755}
12756lt_preloaded_symbols[] =
12757{
12758EOF
12759 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12760 cat <<\EOF >> conftest.$ac_ext
12761 {0, (lt_ptr_t) 0}
12762};
12763
12764#ifdef __cplusplus
12765}
12766#endif
12767EOF
12768 # Now try linking the two files.
12769 mv conftest.$ac_objext conftstm.$ac_objext
12770 lt_save_LIBS="$LIBS"
12771 lt_save_CFLAGS="$CFLAGS"
12772 LIBS="conftstm.$ac_objext"
12773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775 (eval $ac_link) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12779 pipe_works=yes
12780 fi
12781 LIBS="$lt_save_LIBS"
12782 CFLAGS="$lt_save_CFLAGS"
12783 else
12784 echo "cannot find nm_test_func in $nlist" >&5
12785 fi
12786 else
12787 echo "cannot find nm_test_var in $nlist" >&5
12788 fi
12789 else
12790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12791 fi
12792 else
12793 echo "$progname: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12795 fi
12796 rm -f conftest* conftst*
12797
12798 # Do not use the global_symbol_pipe unless it works.
12799 if test "$pipe_works" = yes; then
12800 break
12801 else
12802 lt_cv_sys_global_symbol_pipe=
12803 fi
12804done
12805
12806fi
12807
12808if test -z "$lt_cv_sys_global_symbol_pipe"; then
12809 lt_cv_sys_global_symbol_to_cdecl=
12810fi
12811if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012812 { echo "$as_me:$LINENO: result: failed" >&5
12813echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012814else
Reid Spencera773bd52006-08-04 18:18:08 +000012815 { echo "$as_me:$LINENO: result: ok" >&5
12816echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012817fi
12818
Reid Spencera773bd52006-08-04 18:18:08 +000012819{ echo "$as_me:$LINENO: checking for objdir" >&5
12820echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012821if test "${lt_cv_objdir+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12823else
12824 rm -f .libs 2>/dev/null
12825mkdir .libs 2>/dev/null
12826if test -d .libs; then
12827 lt_cv_objdir=.libs
12828else
12829 # MS-DOS does not allow filenames that begin with a dot.
12830 lt_cv_objdir=_libs
12831fi
12832rmdir .libs 2>/dev/null
12833fi
Reid Spencera773bd52006-08-04 18:18:08 +000012834{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12835echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012836objdir=$lt_cv_objdir
12837
12838
12839
12840
12841
12842case $host_os in
12843aix3*)
12844 # AIX sometimes has problems with the GCC collect2 program. For some
12845 # reason, if we set the COLLECT_NAMES environment variable, the problems
12846 # vanish in a puff of smoke.
12847 if test "X${COLLECT_NAMES+set}" != Xset; then
12848 COLLECT_NAMES=
12849 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000012850 fi
12851 ;;
12852esac
12853
John Criswell47fdd832003-07-14 16:52:07 +000012854# Sed substitution that helps us do robust quoting. It backslashifies
12855# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000012856Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000012857sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12858
12859# Same as above, but do not quote variable references.
12860double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12861
12862# Sed substitution to delay expansion of an escaped shell variable in a
12863# double_quote_subst'ed string.
12864delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12865
12866# Sed substitution to avoid accidental globbing in evaled expressions
12867no_glob_subst='s/\*/\\\*/g'
12868
12869# Constants:
12870rm="rm -f"
12871
12872# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000012873default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000012874can_build_shared=yes
12875
Reid Spencera773bd52006-08-04 18:18:08 +000012876# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000012877# which needs '.lib').
12878libext=a
12879ltmain="$ac_aux_dir/ltmain.sh"
12880ofile="$default_ofile"
12881with_gnu_ld="$lt_cv_prog_gnu_ld"
12882
12883if test -n "$ac_tool_prefix"; then
12884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12885set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012888if test "${ac_cv_prog_AR+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
12891 if test -n "$AR"; then
12892 ac_cv_prog_AR="$AR" # Let the user override the test.
12893else
12894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895for as_dir in $PATH
12896do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000012901 ac_cv_prog_AR="${ac_tool_prefix}ar"
12902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905done
12906done
Reid Spencera773bd52006-08-04 18:18:08 +000012907IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012908
12909fi
12910fi
12911AR=$ac_cv_prog_AR
12912if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012913 { echo "$as_me:$LINENO: result: $AR" >&5
12914echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012915else
Reid Spencera773bd52006-08-04 18:18:08 +000012916 { echo "$as_me:$LINENO: result: no" >&5
12917echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012918fi
12919
Reid Spencera773bd52006-08-04 18:18:08 +000012920
John Criswell47fdd832003-07-14 16:52:07 +000012921fi
12922if test -z "$ac_cv_prog_AR"; then
12923 ac_ct_AR=$AR
12924 # Extract the first word of "ar", so it can be a program name with args.
12925set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012928if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930else
12931 if test -n "$ac_ct_AR"; then
12932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12933else
12934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935for as_dir in $PATH
12936do
12937 IFS=$as_save_IFS
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000012941 ac_cv_prog_ac_ct_AR="ar"
12942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12943 break 2
12944 fi
12945done
12946done
Reid Spencera773bd52006-08-04 18:18:08 +000012947IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012948
John Criswell47fdd832003-07-14 16:52:07 +000012949fi
12950fi
12951ac_ct_AR=$ac_cv_prog_ac_ct_AR
12952if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012953 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12954echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012955else
Reid Spencera773bd52006-08-04 18:18:08 +000012956 { echo "$as_me:$LINENO: result: no" >&5
12957echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012958fi
12959
Reid Spencera773bd52006-08-04 18:18:08 +000012960 if test "x$ac_ct_AR" = x; then
12961 AR="false"
12962 else
12963 case $cross_compiling:$ac_tool_warned in
12964yes:)
12965{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12966whose name does not start with the host triplet. If you think this
12967configuration is useful to you, please write to autoconf@gnu.org." >&5
12968echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12969whose name does not start with the host triplet. If you think this
12970configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12971ac_tool_warned=yes ;;
12972esac
12973 AR=$ac_ct_AR
12974 fi
John Criswell47fdd832003-07-14 16:52:07 +000012975else
12976 AR="$ac_cv_prog_AR"
12977fi
12978
John Criswell7a73b802003-06-30 21:59:07 +000012979if test -n "$ac_tool_prefix"; then
12980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12981set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000012984if test "${ac_cv_prog_RANLIB+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
12987 if test -n "$RANLIB"; then
12988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12989else
12990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991for as_dir in $PATH
12992do
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13000 fi
13001done
13002done
Reid Spencera773bd52006-08-04 18:18:08 +000013003IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013004
13005fi
13006fi
13007RANLIB=$ac_cv_prog_RANLIB
13008if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013009 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13010echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013011else
Reid Spencera773bd52006-08-04 18:18:08 +000013012 { echo "$as_me:$LINENO: result: no" >&5
13013echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013014fi
13015
Reid Spencera773bd52006-08-04 18:18:08 +000013016
John Criswell7a73b802003-06-30 21:59:07 +000013017fi
13018if test -z "$ac_cv_prog_RANLIB"; then
13019 ac_ct_RANLIB=$RANLIB
13020 # Extract the first word of "ranlib", so it can be a program name with args.
13021set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013024if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026else
13027 if test -n "$ac_ct_RANLIB"; then
13028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13029else
13030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031for as_dir in $PATH
13032do
13033 IFS=$as_save_IFS
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013037 ac_cv_prog_ac_ct_RANLIB="ranlib"
13038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 break 2
13040 fi
13041done
13042done
Reid Spencera773bd52006-08-04 18:18:08 +000013043IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013044
John Criswell7a73b802003-06-30 21:59:07 +000013045fi
13046fi
13047ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13048if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013049 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13050echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013051else
Reid Spencera773bd52006-08-04 18:18:08 +000013052 { echo "$as_me:$LINENO: result: no" >&5
13053echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013054fi
13055
Reid Spencera773bd52006-08-04 18:18:08 +000013056 if test "x$ac_ct_RANLIB" = x; then
13057 RANLIB=":"
13058 else
13059 case $cross_compiling:$ac_tool_warned in
13060yes:)
13061{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13062whose name does not start with the host triplet. If you think this
13063configuration is useful to you, please write to autoconf@gnu.org." >&5
13064echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13065whose name does not start with the host triplet. If you think this
13066configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13067ac_tool_warned=yes ;;
13068esac
13069 RANLIB=$ac_ct_RANLIB
13070 fi
John Criswell7a73b802003-06-30 21:59:07 +000013071else
13072 RANLIB="$ac_cv_prog_RANLIB"
13073fi
13074
13075if test -n "$ac_tool_prefix"; then
13076 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13077set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013078{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013080if test "${ac_cv_prog_STRIP+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082else
13083 if test -n "$STRIP"; then
13084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13085else
13086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087for as_dir in $PATH
13088do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013093 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 break 2
13096 fi
13097done
13098done
Reid Spencera773bd52006-08-04 18:18:08 +000013099IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013100
13101fi
13102fi
13103STRIP=$ac_cv_prog_STRIP
13104if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013105 { echo "$as_me:$LINENO: result: $STRIP" >&5
13106echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013107else
Reid Spencera773bd52006-08-04 18:18:08 +000013108 { echo "$as_me:$LINENO: result: no" >&5
13109echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013110fi
13111
Reid Spencera773bd52006-08-04 18:18:08 +000013112
John Criswell7a73b802003-06-30 21:59:07 +000013113fi
13114if test -z "$ac_cv_prog_STRIP"; then
13115 ac_ct_STRIP=$STRIP
13116 # Extract the first word of "strip", so it can be a program name with args.
13117set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013120if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13122else
13123 if test -n "$ac_ct_STRIP"; then
13124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13125else
13126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127for as_dir in $PATH
13128do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013133 ac_cv_prog_ac_ct_STRIP="strip"
13134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13136 fi
13137done
13138done
Reid Spencera773bd52006-08-04 18:18:08 +000013139IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013140
John Criswell7a73b802003-06-30 21:59:07 +000013141fi
13142fi
13143ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13144if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013145 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13146echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013147else
Reid Spencera773bd52006-08-04 18:18:08 +000013148 { echo "$as_me:$LINENO: result: no" >&5
13149echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013150fi
13151
Reid Spencera773bd52006-08-04 18:18:08 +000013152 if test "x$ac_ct_STRIP" = x; then
13153 STRIP=":"
13154 else
13155 case $cross_compiling:$ac_tool_warned in
13156yes:)
13157{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13158whose name does not start with the host triplet. If you think this
13159configuration is useful to you, please write to autoconf@gnu.org." >&5
13160echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13161whose name does not start with the host triplet. If you think this
13162configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13163ac_tool_warned=yes ;;
13164esac
13165 STRIP=$ac_ct_STRIP
13166 fi
John Criswell7a73b802003-06-30 21:59:07 +000013167else
13168 STRIP="$ac_cv_prog_STRIP"
13169fi
13170
13171
John Criswell7a73b802003-06-30 21:59:07 +000013172old_CC="$CC"
13173old_CFLAGS="$CFLAGS"
13174
13175# Set sane defaults for various variables
13176test -z "$AR" && AR=ar
13177test -z "$AR_FLAGS" && AR_FLAGS=cru
13178test -z "$AS" && AS=as
13179test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013180test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013181test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013182test -z "$DLLTOOL" && DLLTOOL=dlltool
13183test -z "$LD" && LD=ld
13184test -z "$LN_S" && LN_S="ln -s"
13185test -z "$MAGIC_CMD" && MAGIC_CMD=file
13186test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013187test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013188test -z "$OBJDUMP" && OBJDUMP=objdump
13189test -z "$RANLIB" && RANLIB=:
13190test -z "$STRIP" && STRIP=:
13191test -z "$ac_objext" && ac_objext=o
13192
John Criswell7a73b802003-06-30 21:59:07 +000013193# Determine commands to create old-style static archives.
13194old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13195old_postinstall_cmds='chmod 644 $oldlib'
13196old_postuninstall_cmds=
13197
13198if test -n "$RANLIB"; then
13199 case $host_os in
13200 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013201 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013202 ;;
13203 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013205 ;;
13206 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013207 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013208fi
13209
Reid Spencera773bd52006-08-04 18:18:08 +000013210for cc_temp in $compiler""; do
13211 case $cc_temp in
13212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13214 \-*) ;;
13215 *) break;;
13216 esac
13217done
13218cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13219
Reid Spencer2706f8c2004-09-19 23:53:36 +000013220
John Criswell47fdd832003-07-14 16:52:07 +000013221# Only perform the check for file, if the check method requires it
13222case $deplibs_check_method in
13223file_magic*)
13224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013225 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13226echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013227if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013229else
John Criswell47fdd832003-07-14 16:52:07 +000013230 case $MAGIC_CMD in
13231[\\/*] | ?:[\\/]*)
13232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13233 ;;
13234*)
13235 lt_save_MAGIC_CMD="$MAGIC_CMD"
13236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13238 for ac_dir in $ac_dummy; do
13239 IFS="$lt_save_ifs"
13240 test -z "$ac_dir" && ac_dir=.
13241 if test -f $ac_dir/${ac_tool_prefix}file; then
13242 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13243 if test -n "$file_magic_test_file"; then
13244 case $deplibs_check_method in
13245 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13249 $EGREP "$file_magic_regex" > /dev/null; then
13250 :
13251 else
13252 cat <<EOF 1>&2
13253
13254*** Warning: the command libtool uses to detect shared libraries,
13255*** $file_magic_cmd, produces output that libtool cannot recognize.
13256*** The result is that libtool may fail to recognize shared libraries
13257*** as such. This will affect the creation of libtool libraries that
13258*** depend on shared libraries, but programs linked with such libtool
13259*** libraries will work regardless of this problem. Nevertheless, you
13260*** may want to report the problem to your system manager and/or to
13261*** bug-libtool@gnu.org
13262
13263EOF
13264 fi ;;
13265 esac
13266 fi
13267 break
13268 fi
13269 done
13270 IFS="$lt_save_ifs"
13271 MAGIC_CMD="$lt_save_MAGIC_CMD"
13272 ;;
13273esac
John Criswell7a73b802003-06-30 21:59:07 +000013274fi
John Criswell7a73b802003-06-30 21:59:07 +000013275
John Criswell47fdd832003-07-14 16:52:07 +000013276MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13277if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013278 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13279echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013280else
Reid Spencera773bd52006-08-04 18:18:08 +000013281 { echo "$as_me:$LINENO: result: no" >&5
13282echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013283fi
John Criswell7a73b802003-06-30 21:59:07 +000013284
John Criswell47fdd832003-07-14 16:52:07 +000013285if test -z "$lt_cv_path_MAGIC_CMD"; then
13286 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013287 { echo "$as_me:$LINENO: checking for file" >&5
13288echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013289if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291else
13292 case $MAGIC_CMD in
13293[\\/*] | ?:[\\/]*)
13294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13295 ;;
13296*)
13297 lt_save_MAGIC_CMD="$MAGIC_CMD"
13298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13300 for ac_dir in $ac_dummy; do
13301 IFS="$lt_save_ifs"
13302 test -z "$ac_dir" && ac_dir=.
13303 if test -f $ac_dir/file; then
13304 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13305 if test -n "$file_magic_test_file"; then
13306 case $deplibs_check_method in
13307 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13311 $EGREP "$file_magic_regex" > /dev/null; then
13312 :
13313 else
13314 cat <<EOF 1>&2
13315
13316*** Warning: the command libtool uses to detect shared libraries,
13317*** $file_magic_cmd, produces output that libtool cannot recognize.
13318*** The result is that libtool may fail to recognize shared libraries
13319*** as such. This will affect the creation of libtool libraries that
13320*** depend on shared libraries, but programs linked with such libtool
13321*** libraries will work regardless of this problem. Nevertheless, you
13322*** may want to report the problem to your system manager and/or to
13323*** bug-libtool@gnu.org
13324
13325EOF
13326 fi ;;
13327 esac
13328 fi
13329 break
13330 fi
13331 done
13332 IFS="$lt_save_ifs"
13333 MAGIC_CMD="$lt_save_MAGIC_CMD"
13334 ;;
13335esac
13336fi
13337
13338MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13339if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013340 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13341echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013342else
Reid Spencera773bd52006-08-04 18:18:08 +000013343 { echo "$as_me:$LINENO: result: no" >&5
13344echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013345fi
13346
13347 else
13348 MAGIC_CMD=:
13349 fi
13350fi
13351
13352 fi
13353 ;;
13354esac
13355
Reid Spencer17795972004-11-18 09:47:37 +000013356enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000013357enable_win32_dll=no
13358
Reid Spencera773bd52006-08-04 18:18:08 +000013359# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000013360if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013361 enableval=$enable_libtool_lock;
13362fi
John Criswell47fdd832003-07-14 16:52:07 +000013363
John Criswell47fdd832003-07-14 16:52:07 +000013364test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13365
John Criswell7a73b802003-06-30 21:59:07 +000013366
Reid Spencera773bd52006-08-04 18:18:08 +000013367# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000013368if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013369 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000013370else
13371 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000013372fi
13373
John Criswell7a73b802003-06-30 21:59:07 +000013374test -z "$pic_mode" && pic_mode=default
13375
John Criswell47fdd832003-07-14 16:52:07 +000013376# Use C for the default configuration in the libtool script
13377tagname=
13378lt_save_CC="$CC"
13379ac_ext=c
13380ac_cpp='$CPP $CPPFLAGS'
13381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13383ac_compiler_gnu=$ac_cv_c_compiler_gnu
13384
13385
13386# Source file extension for C test sources.
13387ac_ext=c
13388
13389# Object file extension for compiled C test sources.
13390objext=o
13391objext=$objext
13392
13393# Code to be used in simple compile tests
13394lt_simple_compile_test_code="int some_variable = 0;\n"
13395
13396# Code to be used in simple link tests
13397lt_simple_link_test_code='int main(){return(0);}\n'
13398
13399
13400# If no C compiler was specified, use CC.
13401LTCC=${LTCC-"$CC"}
13402
Reid Spencera773bd52006-08-04 18:18:08 +000013403# If no C compiler flags were specified, use CFLAGS.
13404LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13405
John Criswell47fdd832003-07-14 16:52:07 +000013406# Allow CC to be a program name with arguments.
13407compiler=$CC
13408
13409
Reid Spencera773bd52006-08-04 18:18:08 +000013410# save warnings/boilerplate of simple test code
13411ac_outfile=conftest.$ac_objext
13412printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13413eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13414_lt_compiler_boilerplate=`cat conftest.err`
13415$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013416
Reid Spencera773bd52006-08-04 18:18:08 +000013417ac_outfile=conftest.$ac_objext
13418printf "$lt_simple_link_test_code" >conftest.$ac_ext
13419eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13420_lt_linker_boilerplate=`cat conftest.err`
13421$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013422
13423
John Criswell47fdd832003-07-14 16:52:07 +000013424
13425lt_prog_compiler_no_builtin_flag=
13426
13427if test "$GCC" = yes; then
13428 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13429
Reid Spencer2706f8c2004-09-19 23:53:36 +000013430
Reid Spencera773bd52006-08-04 18:18:08 +000013431{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13432echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013433if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13435else
13436 lt_cv_prog_compiler_rtti_exceptions=no
13437 ac_outfile=conftest.$ac_objext
13438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13439 lt_compiler_flag="-fno-rtti -fno-exceptions"
13440 # Insert the option either (1) after the last *FLAGS variable, or
13441 # (2) before a word containing "conftest.", or (3) at the end.
13442 # Note that $ac_compile itself does not contain backslashes and begins
13443 # with a dollar sign (not a hyphen), so the echo should work correctly.
13444 # The option is referenced via a variable to avoid confusing sed.
13445 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13448 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000013449 (eval echo "\"\$as_me:13449: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013450 (eval "$lt_compile" 2>conftest.err)
13451 ac_status=$?
13452 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000013453 echo "$as_me:13453: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013454 if (exit $ac_status) && test -s "$ac_outfile"; then
13455 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013456 # So say no if there are warnings other than the usual output.
13457 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013460 lt_cv_prog_compiler_rtti_exceptions=yes
13461 fi
13462 fi
13463 $rm conftest*
13464
13465fi
Reid Spencera773bd52006-08-04 18:18:08 +000013466{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13467echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013468
13469if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13470 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13471else
13472 :
13473fi
13474
13475fi
13476
13477lt_prog_compiler_wl=
13478lt_prog_compiler_pic=
13479lt_prog_compiler_static=
13480
Reid Spencera773bd52006-08-04 18:18:08 +000013481{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13482echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013483
13484 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000013485 lt_prog_compiler_wl='-Wl,'
13486 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000013487
13488 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013489 aix*)
13490 # All AIX code is PIC.
13491 if test "$host_cpu" = ia64; then
13492 # AIX 5 now supports IA64 processor
13493 lt_prog_compiler_static='-Bstatic'
13494 fi
John Criswell7a73b802003-06-30 21:59:07 +000013495 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013496
John Criswell7a73b802003-06-30 21:59:07 +000013497 amigaos*)
13498 # FIXME: we need at least 68020 code to build shared libraries, but
13499 # adding the `-m68020' flag to GCC prevents building anything better,
13500 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000013501 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000013502 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013503
13504 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000013505 # PIC is the default for these OSes.
13506 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013507
13508 mingw* | pw32* | os2*)
13509 # This hack is so that the source file can tell whether it is being
13510 # built for inclusion in a dll (and should export symbols for example).
13511 lt_prog_compiler_pic='-DDLL_EXPORT'
13512 ;;
13513
John Criswell7a73b802003-06-30 21:59:07 +000013514 darwin* | rhapsody*)
13515 # PIC is the default on this platform
13516 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000013517 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000013518 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013519
Reid Spencera773bd52006-08-04 18:18:08 +000013520 interix3*)
13521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13522 # Instead, we relocate shared libraries at runtime.
13523 ;;
13524
John Criswell47fdd832003-07-14 16:52:07 +000013525 msdosdjgpp*)
13526 # Just because we use GCC doesn't mean we suddenly get shared libraries
13527 # on systems that don't support them.
13528 lt_prog_compiler_can_build_shared=no
13529 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013530 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013531
John Criswell7a73b802003-06-30 21:59:07 +000013532 sysv4*MP*)
13533 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000013534 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000013535 fi
13536 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013537
13538 hpux*)
13539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13540 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013541 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013542 hppa*64*|ia64*)
13543 # +Z the default
13544 ;;
13545 *)
13546 lt_prog_compiler_pic='-fPIC'
13547 ;;
13548 esac
13549 ;;
13550
John Criswell7a73b802003-06-30 21:59:07 +000013551 *)
John Criswell47fdd832003-07-14 16:52:07 +000013552 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000013553 ;;
13554 esac
13555 else
John Criswell47fdd832003-07-14 16:52:07 +000013556 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000013557 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013558 aix*)
13559 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013560 if test "$host_cpu" = ia64; then
13561 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000013562 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013563 else
John Criswell47fdd832003-07-14 16:52:07 +000013564 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000013565 fi
13566 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013567 darwin*)
13568 # PIC is the default on this platform
13569 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000013570 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013571 xlc*)
13572 lt_prog_compiler_pic='-qnocommon'
13573 lt_prog_compiler_wl='-Wl,'
13574 ;;
13575 esac
13576 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013577
John Criswell47fdd832003-07-14 16:52:07 +000013578 mingw* | pw32* | os2*)
13579 # This hack is so that the source file can tell whether it is being
13580 # built for inclusion in a dll (and should export symbols for example).
13581 lt_prog_compiler_pic='-DDLL_EXPORT'
13582 ;;
13583
John Criswell7a73b802003-06-30 21:59:07 +000013584 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000013585 lt_prog_compiler_wl='-Wl,'
13586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13587 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013588 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013589 hppa*64*|ia64*)
13590 # +Z the default
13591 ;;
13592 *)
13593 lt_prog_compiler_pic='+Z'
13594 ;;
13595 esac
13596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13597 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000013598 ;;
13599
John Criswell47fdd832003-07-14 16:52:07 +000013600 irix5* | irix6* | nonstopux*)
13601 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013602 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000013603 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013604 ;;
13605
13606 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000013607 lt_prog_compiler_pic='-KPIC'
13608 lt_prog_compiler_static='-Bstatic'
13609 ;;
13610
13611 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000013612 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013613 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013614 lt_prog_compiler_wl='-Wl,'
13615 lt_prog_compiler_pic='-KPIC'
13616 lt_prog_compiler_static='-static'
13617 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013618 pgcc* | pgf77* | pgf90* | pgf95*)
13619 # Portland Group compilers (*not* the Pentium gcc compiler,
13620 # which looks to be a dead project)
13621 lt_prog_compiler_wl='-Wl,'
13622 lt_prog_compiler_pic='-fpic'
13623 lt_prog_compiler_static='-Bstatic'
13624 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013625 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013626 lt_prog_compiler_wl='-Wl,'
13627 # All Alpha code is PIC.
13628 lt_prog_compiler_static='-non_shared'
13629 ;;
13630 esac
John Criswell7a73b802003-06-30 21:59:07 +000013631 ;;
13632
13633 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000013634 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013635 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000013636 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013637 ;;
13638
John Criswell7a73b802003-06-30 21:59:07 +000013639 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000013640 lt_prog_compiler_pic='-KPIC'
13641 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000013642 case $cc_basename in
13643 f77* | f90* | f95*)
13644 lt_prog_compiler_wl='-Qoption ld ';;
13645 *)
13646 lt_prog_compiler_wl='-Wl,';;
13647 esac
John Criswell7a73b802003-06-30 21:59:07 +000013648 ;;
13649
13650 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000013651 lt_prog_compiler_wl='-Qoption ld '
13652 lt_prog_compiler_pic='-PIC'
13653 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013654 ;;
13655
Reid Spencera773bd52006-08-04 18:18:08 +000013656 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000013657 lt_prog_compiler_wl='-Wl,'
13658 lt_prog_compiler_pic='-KPIC'
13659 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013660 ;;
13661
13662 sysv4*MP*)
13663 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000013664 lt_prog_compiler_pic='-Kconform_pic'
13665 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013666 fi
13667 ;;
13668
Reid Spencera773bd52006-08-04 18:18:08 +000013669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13670 lt_prog_compiler_wl='-Wl,'
13671 lt_prog_compiler_pic='-KPIC'
13672 lt_prog_compiler_static='-Bstatic'
13673 ;;
13674
13675 unicos*)
13676 lt_prog_compiler_wl='-Wl,'
13677 lt_prog_compiler_can_build_shared=no
13678 ;;
13679
John Criswell47fdd832003-07-14 16:52:07 +000013680 uts4*)
13681 lt_prog_compiler_pic='-pic'
13682 lt_prog_compiler_static='-Bstatic'
13683 ;;
13684
John Criswell7a73b802003-06-30 21:59:07 +000013685 *)
John Criswell47fdd832003-07-14 16:52:07 +000013686 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013687 ;;
13688 esac
13689 fi
13690
Reid Spencera773bd52006-08-04 18:18:08 +000013691{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13692echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013693
John Criswell47fdd832003-07-14 16:52:07 +000013694#
13695# Check to make sure the PIC flag actually works.
13696#
13697if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013698
Reid Spencera773bd52006-08-04 18:18:08 +000013699{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13700echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013701if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013702 echo $ECHO_N "(cached) $ECHO_C" >&6
13703else
John Criswell47fdd832003-07-14 16:52:07 +000013704 lt_prog_compiler_pic_works=no
13705 ac_outfile=conftest.$ac_objext
13706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13707 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13708 # Insert the option either (1) after the last *FLAGS variable, or
13709 # (2) before a word containing "conftest.", or (3) at the end.
13710 # Note that $ac_compile itself does not contain backslashes and begins
13711 # with a dollar sign (not a hyphen), so the echo should work correctly.
13712 # The option is referenced via a variable to avoid confusing sed.
13713 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13716 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000013717 (eval echo "\"\$as_me:13717: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013718 (eval "$lt_compile" 2>conftest.err)
13719 ac_status=$?
13720 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000013721 echo "$as_me:13721: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013722 if (exit $ac_status) && test -s "$ac_outfile"; then
13723 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013724 # So say no if there are warnings other than the usual output.
13725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013728 lt_prog_compiler_pic_works=yes
13729 fi
13730 fi
13731 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000013732
John Criswell47fdd832003-07-14 16:52:07 +000013733fi
Reid Spencera773bd52006-08-04 18:18:08 +000013734{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13735echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013736
John Criswell47fdd832003-07-14 16:52:07 +000013737if test x"$lt_prog_compiler_pic_works" = xyes; then
13738 case $lt_prog_compiler_pic in
13739 "" | " "*) ;;
13740 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13741 esac
John Criswell7a73b802003-06-30 21:59:07 +000013742else
John Criswell47fdd832003-07-14 16:52:07 +000013743 lt_prog_compiler_pic=
13744 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013745fi
13746
John Criswell7a73b802003-06-30 21:59:07 +000013747fi
Reid Spencera773bd52006-08-04 18:18:08 +000013748case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013749 # For platforms which do not support PIC, -DPIC is meaningless:
13750 *djgpp*)
13751 lt_prog_compiler_pic=
13752 ;;
13753 *)
13754 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13755 ;;
13756esac
John Criswell7a73b802003-06-30 21:59:07 +000013757
Reid Spencera773bd52006-08-04 18:18:08 +000013758#
13759# Check to make sure the static flag actually works.
13760#
13761wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13762{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13763echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13764if test "${lt_prog_compiler_static_works+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766else
13767 lt_prog_compiler_static_works=no
13768 save_LDFLAGS="$LDFLAGS"
13769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13770 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13772 # The linker can only warn and ignore the option if not recognized
13773 # So say no if there are warnings
13774 if test -s conftest.err; then
13775 # Append any errors to the config.log.
13776 cat conftest.err 1>&5
13777 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13779 if diff conftest.exp conftest.er2 >/dev/null; then
13780 lt_prog_compiler_static_works=yes
13781 fi
13782 else
13783 lt_prog_compiler_static_works=yes
13784 fi
13785 fi
13786 $rm conftest*
13787 LDFLAGS="$save_LDFLAGS"
13788
13789fi
13790{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13791echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13792
13793if test x"$lt_prog_compiler_static_works" = xyes; then
13794 :
13795else
13796 lt_prog_compiler_static=
13797fi
13798
13799
13800{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13801echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013802if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804else
John Criswell47fdd832003-07-14 16:52:07 +000013805 lt_cv_prog_compiler_c_o=no
13806 $rm -r conftest 2>/dev/null
13807 mkdir conftest
13808 cd conftest
13809 mkdir out
13810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013811
John Criswell47fdd832003-07-14 16:52:07 +000013812 lt_compiler_flag="-o out/conftest2.$ac_objext"
13813 # Insert the option either (1) after the last *FLAGS variable, or
13814 # (2) before a word containing "conftest.", or (3) at the end.
13815 # Note that $ac_compile itself does not contain backslashes and begins
13816 # with a dollar sign (not a hyphen), so the echo should work correctly.
13817 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000013821 (eval echo "\"\$as_me:13821: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013822 (eval "$lt_compile" 2>out/conftest.err)
13823 ac_status=$?
13824 cat out/conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000013825 echo "$as_me:13825: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13827 then
13828 # The compiler can only warn and ignore the option if not recognized
13829 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000013830 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013833 lt_cv_prog_compiler_c_o=yes
13834 fi
13835 fi
Reid Spencera773bd52006-08-04 18:18:08 +000013836 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013837 $rm conftest*
13838 # SGI C++ compiler will create directory out/ii_files/ for
13839 # template instantiation
13840 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13841 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013842 cd ..
13843 rmdir conftest
13844 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000013845
13846fi
Reid Spencera773bd52006-08-04 18:18:08 +000013847{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13848echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013849
John Criswell7a73b802003-06-30 21:59:07 +000013850
John Criswell7a73b802003-06-30 21:59:07 +000013851hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000013852if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000013853 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000013854 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13855echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013856 hard_links=yes
13857 $rm conftest*
13858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13859 touch conftest.a
13860 ln conftest.a conftest.b 2>&5 || hard_links=no
13861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000013862 { echo "$as_me:$LINENO: result: $hard_links" >&5
13863echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013864 if test "$hard_links" = no; then
13865 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13866echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13867 need_locks=warn
13868 fi
13869else
13870 need_locks=no
13871fi
John Criswell7a73b802003-06-30 21:59:07 +000013872
Reid Spencera773bd52006-08-04 18:18:08 +000013873{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13874echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013875
13876 runpath_var=
13877 allow_undefined_flag=
13878 enable_shared_with_static_runtimes=no
13879 archive_cmds=
13880 archive_expsym_cmds=
13881 old_archive_From_new_cmds=
13882 old_archive_from_expsyms_cmds=
13883 export_dynamic_flag_spec=
13884 whole_archive_flag_spec=
13885 thread_safe_flag_spec=
13886 hardcode_libdir_flag_spec=
13887 hardcode_libdir_flag_spec_ld=
13888 hardcode_libdir_separator=
13889 hardcode_direct=no
13890 hardcode_minus_L=no
13891 hardcode_shlibpath_var=unsupported
13892 link_all_deplibs=unknown
13893 hardcode_automatic=no
13894 module_cmds=
13895 module_expsym_cmds=
13896 always_export_symbols=no
13897 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13898 # include_expsyms should be a list of space-separated symbols to be *always*
13899 # included in the symbol list
13900 include_expsyms=
13901 # exclude_expsyms can be an extended regexp of symbols to exclude
13902 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13903 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13904 # as well as any symbol that contains `d'.
13905 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13906 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13907 # platforms (ab)use it in PIC code, but their linkers get confused if
13908 # the symbol is explicitly referenced. Since portable code cannot
13909 # rely on this symbol name, it's probably fine to never include it in
13910 # preloaded symbol tables.
13911 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000013912 # Just being paranoid about ensuring that cc_basename is set.
13913 for cc_temp in $compiler""; do
13914 case $cc_temp in
13915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13917 \-*) ;;
13918 *) break;;
13919 esac
13920done
13921cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000013922
13923 case $host_os in
13924 cygwin* | mingw* | pw32*)
13925 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13926 # When not using gcc, we currently assume that we are using
13927 # Microsoft Visual C++.
13928 if test "$GCC" != yes; then
13929 with_gnu_ld=no
13930 fi
13931 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013932 interix*)
13933 # we just hope/assume this is gcc and not c89 (= MSVC++)
13934 with_gnu_ld=yes
13935 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013936 openbsd*)
13937 with_gnu_ld=no
13938 ;;
13939 esac
13940
13941 ld_shlibs=yes
13942 if test "$with_gnu_ld" = yes; then
13943 # If archive_cmds runs LD, not CC, wlarc should be empty
13944 wlarc='${wl}'
13945
Reid Spencera773bd52006-08-04 18:18:08 +000013946 # Set some defaults for GNU ld with shared library support. These
13947 # are reset later if shared libraries are not supported. Putting them
13948 # here allows them to be overridden if necessary.
13949 runpath_var=LD_RUN_PATH
13950 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13951 export_dynamic_flag_spec='${wl}--export-dynamic'
13952 # ancient GNU ld didn't support --whole-archive et. al.
13953 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13954 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13955 else
13956 whole_archive_flag_spec=
13957 fi
13958 supports_anon_versioning=no
13959 case `$LD -v 2>/dev/null` in
13960 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13963 *\ 2.11.*) ;; # other 2.11 versions
13964 *) supports_anon_versioning=yes ;;
13965 esac
13966
John Criswell47fdd832003-07-14 16:52:07 +000013967 # See if GNU ld supports shared libraries.
13968 case $host_os in
13969 aix3* | aix4* | aix5*)
13970 # On AIX/PPC, the GNU linker is very broken
13971 if test "$host_cpu" != ia64; then
13972 ld_shlibs=no
13973 cat <<EOF 1>&2
13974
13975*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13976*** to be unable to reliably create shared libraries on AIX.
13977*** Therefore, libtool is disabling shared libraries support. If you
13978*** really care for shared libraries, you may want to modify your PATH
13979*** so that a non-GNU linker is found, and then restart.
13980
13981EOF
13982 fi
13983 ;;
13984
13985 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013986 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 +000013987 hardcode_libdir_flag_spec='-L$libdir'
13988 hardcode_minus_L=yes
13989
13990 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13991 # that the semantics of dynamic libraries on AmigaOS, at least up
13992 # to version 4, is to share data among multiple programs linked
13993 # with the same dynamic library. Since this doesn't match the
13994 # behavior of shared libraries on other platforms, we can't use
13995 # them.
13996 ld_shlibs=no
13997 ;;
13998
13999 beos*)
14000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14001 allow_undefined_flag=unsupported
14002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14003 # support --undefined. This deserves some investigation. FIXME
14004 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14005 else
14006 ld_shlibs=no
14007 fi
14008 ;;
14009
14010 cygwin* | mingw* | pw32*)
14011 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14012 # as there is no search path for DLLs.
14013 hardcode_libdir_flag_spec='-L$libdir'
14014 allow_undefined_flag=unsupported
14015 always_export_symbols=no
14016 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014017 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 +000014018
14019 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014020 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 +000014021 # If the export-symbols file already is a .def file (1st line
14022 # is EXPORTS), use it as is; otherwise, prepend...
14023 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14024 cp $export_symbols $output_objdir/$soname.def;
14025 else
14026 echo EXPORTS > $output_objdir/$soname.def;
14027 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014028 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014029 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14030 else
14031 ld_shlibs=no
14032 fi
14033 ;;
14034
14035 interix3*)
14036 hardcode_direct=no
14037 hardcode_shlibpath_var=no
14038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14039 export_dynamic_flag_spec='${wl}-E'
14040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14041 # Instead, shared libraries are loaded at an image base (0x10000000 by
14042 # default) and relocated if they conflict, which is a slow very memory
14043 # consuming and fragmenting process. To avoid this, we pick a random,
14044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14047 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'
14048 ;;
14049
14050 linux*)
14051 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14052 tmp_addflag=
14053 case $cc_basename,$host_cpu in
14054 pgcc*) # Portland Group C compiler
14055 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'
14056 tmp_addflag=' $pic_flag'
14057 ;;
14058 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14059 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'
14060 tmp_addflag=' $pic_flag -Mnomain' ;;
14061 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14062 tmp_addflag=' -i_dynamic' ;;
14063 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14064 tmp_addflag=' -i_dynamic -nofor_main' ;;
14065 ifc* | ifort*) # Intel Fortran compiler
14066 tmp_addflag=' -nofor_main' ;;
14067 esac
14068 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14069
14070 if test $supports_anon_versioning = yes; then
14071 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14073 $echo "local: *; };" >> $output_objdir/$libname.ver~
14074 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14075 fi
John Criswell47fdd832003-07-14 16:52:07 +000014076 else
14077 ld_shlibs=no
14078 fi
14079 ;;
14080
14081 netbsd*)
14082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14083 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14084 wlarc=
14085 else
14086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14088 fi
14089 ;;
14090
Reid Spencera773bd52006-08-04 18:18:08 +000014091 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014092 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14093 ld_shlibs=no
14094 cat <<EOF 1>&2
14095
14096*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14097*** create shared libraries on Solaris systems. Therefore, libtool
14098*** is disabling shared libraries support. We urge you to upgrade GNU
14099*** binutils to release 2.9.1 or newer. Another option is to modify
14100*** your PATH or compiler configuration so that the native linker is
14101*** used, and then restart.
14102
14103EOF
14104 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14107 else
14108 ld_shlibs=no
14109 fi
14110 ;;
14111
Reid Spencera773bd52006-08-04 18:18:08 +000014112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14113 case `$LD -v 2>&1` in
14114 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14115 ld_shlibs=no
14116 cat <<_LT_EOF 1>&2
14117
14118*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14119*** reliably create shared libraries on SCO systems. Therefore, libtool
14120*** is disabling shared libraries support. We urge you to upgrade GNU
14121*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14122*** your PATH or compiler configuration so that the native linker is
14123*** used, and then restart.
14124
14125_LT_EOF
14126 ;;
14127 *)
14128 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14129 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14132 else
14133 ld_shlibs=no
14134 fi
14135 ;;
14136 esac
14137 ;;
14138
John Criswell47fdd832003-07-14 16:52:07 +000014139 sunos4*)
14140 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14141 wlarc=
14142 hardcode_direct=yes
14143 hardcode_shlibpath_var=no
14144 ;;
14145
14146 *)
14147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14150 else
14151 ld_shlibs=no
14152 fi
14153 ;;
14154 esac
14155
Reid Spencera773bd52006-08-04 18:18:08 +000014156 if test "$ld_shlibs" = no; then
14157 runpath_var=
14158 hardcode_libdir_flag_spec=
14159 export_dynamic_flag_spec=
14160 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014161 fi
14162 else
14163 # PORTME fill in a description of your system's linker (not GNU ld)
14164 case $host_os in
14165 aix3*)
14166 allow_undefined_flag=unsupported
14167 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014168 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 +000014169 # Note: this linker hardcodes the directories in LIBPATH if there
14170 # are no directories specified by -L.
14171 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014172 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014173 # Neither direct hardcoding nor static linking is supported with a
14174 # broken collect2.
14175 hardcode_direct=unsupported
14176 fi
14177 ;;
14178
14179 aix4* | aix5*)
14180 if test "$host_cpu" = ia64; then
14181 # On IA64, the linker does run time linking by default, so we don't
14182 # have to do anything special.
14183 aix_use_runtimelinking=no
14184 exp_sym_flag='-Bexport'
14185 no_entry_flag=""
14186 else
14187 # If we're using GNU nm, then we don't want the "-C" option.
14188 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14189 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14190 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'
14191 else
14192 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'
14193 fi
14194 aix_use_runtimelinking=no
14195
14196 # Test if we are trying to use run time linking or normal
14197 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14198 # need to do runtime linking.
14199 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14200 for ld_flag in $LDFLAGS; do
14201 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14202 aix_use_runtimelinking=yes
14203 break
14204 fi
14205 done
Reid Spencera773bd52006-08-04 18:18:08 +000014206 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014207 esac
14208
14209 exp_sym_flag='-bexport'
14210 no_entry_flag='-bnoentry'
14211 fi
14212
14213 # When large executables or shared objects are built, AIX ld can
14214 # have problems creating the table of contents. If linking a library
14215 # or program results in "error TOC overflow" add -mminimal-toc to
14216 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14217 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14218
14219 archive_cmds=''
14220 hardcode_direct=yes
14221 hardcode_libdir_separator=':'
14222 link_all_deplibs=yes
14223
14224 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014225 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014226 # We only want to do this on AIX 4.2 and lower, the check
14227 # below for broken collect2 doesn't work under 4.3+
14228 collect2name=`${CC} -print-prog-name=collect2`
14229 if test -f "$collect2name" && \
14230 strings "$collect2name" | grep resolve_lib_name >/dev/null
14231 then
14232 # We have reworked collect2
14233 hardcode_direct=yes
14234 else
14235 # We have old collect2
14236 hardcode_direct=unsupported
14237 # It fails to find uninstalled libraries when the uninstalled
14238 # path is not listed in the libpath. Setting hardcode_minus_L
14239 # to unsupported forces relinking
14240 hardcode_minus_L=yes
14241 hardcode_libdir_flag_spec='-L$libdir'
14242 hardcode_libdir_separator=
14243 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014244 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014245 esac
14246 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014247 if test "$aix_use_runtimelinking" = yes; then
14248 shared_flag="$shared_flag "'${wl}-G'
14249 fi
John Criswell47fdd832003-07-14 16:52:07 +000014250 else
14251 # not using gcc
14252 if test "$host_cpu" = ia64; then
14253 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14254 # chokes on -Wl,-G. The following line is correct:
14255 shared_flag='-G'
14256 else
Reid Spencera773bd52006-08-04 18:18:08 +000014257 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014258 shared_flag='${wl}-G'
14259 else
14260 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014261 fi
John Criswell47fdd832003-07-14 16:52:07 +000014262 fi
14263 fi
14264
14265 # It seems that -bexpall does not export symbols beginning with
14266 # underscore (_), so it is better to generate a list of symbols to export.
14267 always_export_symbols=yes
14268 if test "$aix_use_runtimelinking" = yes; then
14269 # Warning - without using the other runtime loading flags (-brtl),
14270 # -berok will link without error, but may produce a broken library.
14271 allow_undefined_flag='-berok'
14272 # Determine the default libpath from the value encoded in an empty executable.
14273 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014274/* confdefs.h. */
14275_ACEOF
14276cat confdefs.h >>conftest.$ac_ext
14277cat >>conftest.$ac_ext <<_ACEOF
14278/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014279
John Criswell7a73b802003-06-30 21:59:07 +000014280int
14281main ()
14282{
John Criswell47fdd832003-07-14 16:52:07 +000014283
John Criswell7a73b802003-06-30 21:59:07 +000014284 ;
14285 return 0;
14286}
14287_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000014288rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014289if { (ac_try="$ac_link"
14290case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293esac
14294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000014301 (exit $ac_status); } && {
14302 test -z "$ac_c_werror_flag" ||
14303 test ! -s conftest.err
14304 } && test -s conftest$ac_exeext &&
14305 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014306
John Criswell47fdd832003-07-14 16:52:07 +000014307aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14308}'`
14309# Check for a 64-bit object if we didn't find anything.
14310if 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; }
14311}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014312else
14313 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014314sed 's/^/| /' conftest.$ac_ext >&5
14315
Reid Spencera773bd52006-08-04 18:18:08 +000014316
John Criswell7a73b802003-06-30 21:59:07 +000014317fi
Reid Spencera773bd52006-08-04 18:18:08 +000014318
Scott Michel96dcd2b2007-12-05 21:24:02 +000014319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014320 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014321if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014322
John Criswell47fdd832003-07-14 16:52:07 +000014323 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000014324 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 +000014325 else
14326 if test "$host_cpu" = ia64; then
14327 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14328 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000014329 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 +000014330 else
14331 # Determine the default libpath from the value encoded in an empty executable.
14332 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014333/* confdefs.h. */
14334_ACEOF
14335cat confdefs.h >>conftest.$ac_ext
14336cat >>conftest.$ac_ext <<_ACEOF
14337/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014338
John Criswell47fdd832003-07-14 16:52:07 +000014339int
14340main ()
14341{
John Criswell7a73b802003-06-30 21:59:07 +000014342
John Criswell47fdd832003-07-14 16:52:07 +000014343 ;
14344 return 0;
14345}
14346_ACEOF
14347rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014348if { (ac_try="$ac_link"
14349case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14352esac
14353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014355 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014356 grep -v '^ *+' conftest.er1 >conftest.err
14357 rm -f conftest.er1
14358 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000014360 (exit $ac_status); } && {
14361 test -z "$ac_c_werror_flag" ||
14362 test ! -s conftest.err
14363 } && test -s conftest$ac_exeext &&
14364 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014365
John Criswell47fdd832003-07-14 16:52:07 +000014366aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14367}'`
14368# Check for a 64-bit object if we didn't find anything.
14369if 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; }
14370}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014371else
John Criswell47fdd832003-07-14 16:52:07 +000014372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014373sed 's/^/| /' conftest.$ac_ext >&5
14374
Reid Spencera773bd52006-08-04 18:18:08 +000014375
John Criswell47fdd832003-07-14 16:52:07 +000014376fi
Reid Spencera773bd52006-08-04 18:18:08 +000014377
Scott Michel96dcd2b2007-12-05 21:24:02 +000014378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014379 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014380if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014381
John Criswell47fdd832003-07-14 16:52:07 +000014382 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14383 # Warning - without using the other run time loading flags,
14384 # -berok will link without error, but may produce a broken library.
14385 no_undefined_flag=' ${wl}-bernotok'
14386 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000014387 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000014388 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000014389 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014390 # This is similar to how AIX traditionally builds its shared libraries.
14391 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 +000014392 fi
14393 fi
John Criswell7a73b802003-06-30 21:59:07 +000014394 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014395
14396 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014397 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 +000014398 hardcode_libdir_flag_spec='-L$libdir'
14399 hardcode_minus_L=yes
14400 # see comment about different semantics on the GNU ld section
14401 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000014402 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014403
Reid Spencer2706f8c2004-09-19 23:53:36 +000014404 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014405 export_dynamic_flag_spec=-rdynamic
14406 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014407
John Criswell47fdd832003-07-14 16:52:07 +000014408 cygwin* | mingw* | pw32*)
14409 # When not using gcc, we currently assume that we are using
14410 # Microsoft Visual C++.
14411 # hardcode_libdir_flag_spec is actually meaningless, as there is
14412 # no search path for DLLs.
14413 hardcode_libdir_flag_spec=' '
14414 allow_undefined_flag=unsupported
14415 # Tell ltmain to make .lib files, not .a files.
14416 libext=lib
14417 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014418 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014419 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000014420 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000014421 # The linker will automatically build a .lib file if we build a DLL.
14422 old_archive_From_new_cmds='true'
14423 # FIXME: Should let the user specify the lib program.
14424 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14425 fix_srcfile_path='`cygpath -w "$srcfile"`'
14426 enable_shared_with_static_runtimes=yes
14427 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014428
John Criswell47fdd832003-07-14 16:52:07 +000014429 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000014430 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014431 rhapsody* | darwin1.[012])
14432 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14433 ;;
14434 *) # Darwin 1.3 on
14435 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14436 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14437 else
14438 case ${MACOSX_DEPLOYMENT_TARGET} in
14439 10.[012])
14440 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14441 ;;
14442 10.*)
14443 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14444 ;;
14445 esac
14446 fi
14447 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014448 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000014449 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014450 hardcode_direct=no
14451 hardcode_automatic=yes
14452 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014453 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000014454 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000014455 if test "$GCC" = yes ; then
14456 output_verbose_link_cmd='echo'
14457 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14458 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014459 # 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 +000014460 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}'
14461 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 +000014462 else
Reid Spencera773bd52006-08-04 18:18:08 +000014463 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014464 xlc*)
14465 output_verbose_link_cmd='echo'
14466 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14467 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014468 # 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 +000014469 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}'
14470 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 +000014471 ;;
14472 *)
14473 ld_shlibs=no
14474 ;;
14475 esac
John Criswell7a73b802003-06-30 21:59:07 +000014476 fi
John Criswell47fdd832003-07-14 16:52:07 +000014477 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014478
John Criswell47fdd832003-07-14 16:52:07 +000014479 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000014480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014481 hardcode_libdir_flag_spec='-L$libdir'
14482 hardcode_shlibpath_var=no
14483 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014484
John Criswell47fdd832003-07-14 16:52:07 +000014485 freebsd1*)
14486 ld_shlibs=no
14487 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014488
John Criswell47fdd832003-07-14 16:52:07 +000014489 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14490 # support. Future versions do this automatically, but an explicit c++rt0.o
14491 # does not break anything, and helps significantly (at the cost of a little
14492 # extra space).
14493 freebsd2.2*)
14494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14495 hardcode_libdir_flag_spec='-R$libdir'
14496 hardcode_direct=yes
14497 hardcode_shlibpath_var=no
14498 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014499
John Criswell47fdd832003-07-14 16:52:07 +000014500 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14501 freebsd2*)
14502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14503 hardcode_direct=yes
14504 hardcode_minus_L=yes
14505 hardcode_shlibpath_var=no
14506 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014507
John Criswell47fdd832003-07-14 16:52:07 +000014508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000014509 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000014510 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14511 hardcode_libdir_flag_spec='-R$libdir'
14512 hardcode_direct=yes
14513 hardcode_shlibpath_var=no
14514 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014515
John Criswell47fdd832003-07-14 16:52:07 +000014516 hpux9*)
14517 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014518 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 +000014519 else
Reid Spencer177dbe22004-10-13 01:01:03 +000014520 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 +000014521 fi
14522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14523 hardcode_libdir_separator=:
14524 hardcode_direct=yes
14525
14526 # hardcode_minus_L: Not really in the search PATH,
14527 # but as the default location of the library.
14528 hardcode_minus_L=yes
14529 export_dynamic_flag_spec='${wl}-E'
14530 ;;
14531
Reid Spencera773bd52006-08-04 18:18:08 +000014532 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000014533 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14535 else
14536 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14537 fi
14538 if test "$with_gnu_ld" = no; then
14539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14540 hardcode_libdir_separator=:
14541
14542 hardcode_direct=yes
14543 export_dynamic_flag_spec='${wl}-E'
14544
14545 # hardcode_minus_L: Not really in the search PATH,
14546 # but as the default location of the library.
14547 hardcode_minus_L=yes
14548 fi
14549 ;;
14550
14551 hpux11*)
14552 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14553 case $host_cpu in
14554 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000014555 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14556 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014557 ia64*)
14558 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14559 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014560 *)
14561 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14562 ;;
14563 esac
14564 else
Reid Spencera773bd52006-08-04 18:18:08 +000014565 case $host_cpu in
14566 hppa*64*)
14567 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 ;;
14569 ia64*)
14570 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014571 ;;
14572 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014573 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 +000014574 ;;
14575 esac
14576 fi
14577 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014578 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14579 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000014580
Reid Spencera773bd52006-08-04 18:18:08 +000014581 case $host_cpu in
14582 hppa*64*|ia64*)
14583 hardcode_libdir_flag_spec_ld='+b $libdir'
14584 hardcode_direct=no
14585 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000014586 ;;
14587 *)
John Criswell47fdd832003-07-14 16:52:07 +000014588 hardcode_direct=yes
14589 export_dynamic_flag_spec='${wl}-E'
14590
14591 # hardcode_minus_L: Not really in the search PATH,
14592 # but as the default location of the library.
14593 hardcode_minus_L=yes
14594 ;;
14595 esac
14596 fi
14597 ;;
14598
14599 irix5* | irix6* | nonstopux*)
14600 if test "$GCC" = yes; then
14601 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'
14602 else
14603 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'
14604 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14605 fi
14606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14607 hardcode_libdir_separator=:
14608 link_all_deplibs=yes
14609 ;;
14610
14611 netbsd*)
14612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14614 else
14615 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14616 fi
14617 hardcode_libdir_flag_spec='-R$libdir'
14618 hardcode_direct=yes
14619 hardcode_shlibpath_var=no
14620 ;;
14621
14622 newsos6)
14623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14624 hardcode_direct=yes
14625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14626 hardcode_libdir_separator=:
14627 hardcode_shlibpath_var=no
14628 ;;
14629
14630 openbsd*)
14631 hardcode_direct=yes
14632 hardcode_shlibpath_var=no
14633 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014635 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 +000014636 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14637 export_dynamic_flag_spec='${wl}-E'
14638 else
14639 case $host_os in
14640 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14642 hardcode_libdir_flag_spec='-R$libdir'
14643 ;;
14644 *)
14645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14647 ;;
14648 esac
14649 fi
14650 ;;
14651
14652 os2*)
14653 hardcode_libdir_flag_spec='-L$libdir'
14654 hardcode_minus_L=yes
14655 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014656 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 +000014657 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14658 ;;
14659
14660 osf3*)
14661 if test "$GCC" = yes; then
14662 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14663 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'
14664 else
14665 allow_undefined_flag=' -expect_unresolved \*'
14666 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'
14667 fi
14668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14669 hardcode_libdir_separator=:
14670 ;;
14671
14672 osf4* | osf5*) # as osf3* with the addition of -msym flag
14673 if test "$GCC" = yes; then
14674 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14675 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'
14676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14677 else
14678 allow_undefined_flag=' -expect_unresolved \*'
14679 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 +000014680 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 +000014681 $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 +000014682
John Criswell47fdd832003-07-14 16:52:07 +000014683 # Both c and cxx compiler support -rpath directly
14684 hardcode_libdir_flag_spec='-rpath $libdir'
14685 fi
14686 hardcode_libdir_separator=:
14687 ;;
14688
John Criswell47fdd832003-07-14 16:52:07 +000014689 solaris*)
14690 no_undefined_flag=' -z text'
14691 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014692 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000014693 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014694 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14695 $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 +000014696 else
Reid Spencera773bd52006-08-04 18:18:08 +000014697 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000014698 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014699 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14700 $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 +000014701 fi
14702 hardcode_libdir_flag_spec='-R$libdir'
14703 hardcode_shlibpath_var=no
14704 case $host_os in
14705 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014706 *)
14707 # The compiler driver will combine linker options so we
14708 # cannot just pass the convience library names through
14709 # without $wl, iff we do not link with $LD.
14710 # Luckily, gcc supports the same syntax we need for Sun Studio.
14711 # Supported since Solaris 2.6 (maybe 2.5.1?)
14712 case $wlarc in
14713 '')
14714 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14715 *)
14716 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' ;;
14717 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000014718 esac
14719 link_all_deplibs=yes
14720 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014721
John Criswell47fdd832003-07-14 16:52:07 +000014722 sunos4*)
14723 if test "x$host_vendor" = xsequent; then
14724 # Use $CC to link under sequent, because it throws in some extra .o
14725 # files that make .init and .fini sections work.
14726 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14727 else
14728 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14729 fi
14730 hardcode_libdir_flag_spec='-L$libdir'
14731 hardcode_direct=yes
14732 hardcode_minus_L=yes
14733 hardcode_shlibpath_var=no
14734 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014735
John Criswell47fdd832003-07-14 16:52:07 +000014736 sysv4)
14737 case $host_vendor in
14738 sni)
14739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14740 hardcode_direct=yes # is this really true???
14741 ;;
14742 siemens)
14743 ## LD is ld it makes a PLAMLIB
14744 ## CC just makes a GrossModule.
14745 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14746 reload_cmds='$CC -r -o $output$reload_objs'
14747 hardcode_direct=no
14748 ;;
14749 motorola)
14750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14751 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14752 ;;
14753 esac
14754 runpath_var='LD_RUN_PATH'
14755 hardcode_shlibpath_var=no
14756 ;;
14757
14758 sysv4.3*)
14759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760 hardcode_shlibpath_var=no
14761 export_dynamic_flag_spec='-Bexport'
14762 ;;
14763
14764 sysv4*MP*)
14765 if test -d /usr/nec; then
14766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14767 hardcode_shlibpath_var=no
14768 runpath_var=LD_RUN_PATH
14769 hardcode_runpath_var=yes
14770 ld_shlibs=yes
14771 fi
14772 ;;
14773
Reid Spencera773bd52006-08-04 18:18:08 +000014774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14775 no_undefined_flag='${wl}-z,text'
14776 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014777 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000014778 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000014779
John Criswell47fdd832003-07-14 16:52:07 +000014780 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014781 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14782 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 +000014783 else
Reid Spencera773bd52006-08-04 18:18:08 +000014784 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14785 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 +000014786 fi
John Criswell47fdd832003-07-14 16:52:07 +000014787 ;;
14788
Reid Spencera773bd52006-08-04 18:18:08 +000014789 sysv5* | sco3.2v5* | sco5v6*)
14790 # Note: We can NOT use -z defs as we might desire, because we do not
14791 # link with -lc, and that would cause any symbols used from libc to
14792 # always be unresolved, which means just about no library would
14793 # ever link correctly. If we're not using GNU ld we use -z text
14794 # though, which does catch some bad symbols but isn't as heavy-handed
14795 # as -z defs.
14796 no_undefined_flag='${wl}-z,text'
14797 allow_undefined_flag='${wl}-z,nodefs'
14798 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014799 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000014800 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14801 hardcode_libdir_separator=':'
14802 link_all_deplibs=yes
14803 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000014804 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000014805
14806 if test "$GCC" = yes; then
14807 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14808 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14809 else
14810 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14811 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14812 fi
John Criswell47fdd832003-07-14 16:52:07 +000014813 ;;
14814
14815 uts4*)
14816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14817 hardcode_libdir_flag_spec='-L$libdir'
14818 hardcode_shlibpath_var=no
14819 ;;
14820
14821 *)
14822 ld_shlibs=no
14823 ;;
14824 esac
14825 fi
14826
Reid Spencera773bd52006-08-04 18:18:08 +000014827{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14828echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014829test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014830
John Criswell47fdd832003-07-14 16:52:07 +000014831#
14832# Do we need to explicitly link libc?
14833#
14834case "x$archive_cmds_need_lc" in
14835x|xyes)
14836 # Assume -lc should be added
14837 archive_cmds_need_lc=yes
14838
14839 if test "$enable_shared" = yes && test "$GCC" = yes; then
14840 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014841 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000014842 # FIXME: we may have to deal with multi-command sequences.
14843 ;;
14844 '$CC '*)
14845 # Test whether the compiler implicitly links with -lc since on some
14846 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14847 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000014848 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14849echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014850 $rm conftest*
14851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14852
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>&5
14855 ac_status=$?
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } 2>conftest.err; then
14858 soname=conftest
14859 lib=conftest
14860 libobjs=conftest.$ac_objext
14861 deplibs=
14862 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000014863 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000014864 compiler_flags=-v
14865 linker_flags=-v
14866 verstring=
14867 output_objdir=.
14868 libname=conftest
14869 lt_save_allow_undefined_flag=$allow_undefined_flag
14870 allow_undefined_flag=
14871 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14872 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }
14876 then
14877 archive_cmds_need_lc=no
14878 else
14879 archive_cmds_need_lc=yes
14880 fi
14881 allow_undefined_flag=$lt_save_allow_undefined_flag
14882 else
14883 cat conftest.err 1>&5
14884 fi
14885 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000014886 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14887echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014888 ;;
14889 esac
14890 fi
14891 ;;
14892esac
14893
Reid Spencera773bd52006-08-04 18:18:08 +000014894{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14895echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014896library_names_spec=
14897libname_spec='lib$name'
14898soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000014899shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000014900postinstall_cmds=
14901postuninstall_cmds=
14902finish_cmds=
14903finish_eval=
14904shlibpath_var=
14905shlibpath_overrides_runpath=unknown
14906version_type=none
14907dynamic_linker="$host_os ld.so"
14908sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014909if test "$GCC" = yes; then
14910 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14911 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14912 # if the path contains ";" then we assume it to be the separator
14913 # otherwise default to the standard path separator (i.e. ":") - it is
14914 # assumed that no part of a normal pathname contains ";" but that should
14915 # okay in the real world where ";" in dirpaths is itself problematic.
14916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14917 else
14918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14919 fi
14920else
14921 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14922fi
14923need_lib_prefix=unknown
14924hardcode_into_libs=no
14925
14926# when you set need_version to no, make sure it does not cause -set_version
14927# flags to be left without arguments
14928need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000014929
14930case $host_os in
14931aix3*)
14932 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000014934 shlibpath_var=LIBPATH
14935
John Criswell47fdd832003-07-14 16:52:07 +000014936 # AIX 3 has no versioning support, so we append a major version to the name.
14937 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014938 ;;
14939
14940aix4* | aix5*)
14941 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014942 need_lib_prefix=no
14943 need_version=no
14944 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000014945 if test "$host_cpu" = ia64; then
14946 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000014947 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014948 shlibpath_var=LD_LIBRARY_PATH
14949 else
14950 # With GCC up to 2.95.x, collect2 would create an import file
14951 # for dependence libraries. The import file would start with
14952 # the line `#! .'. This would cause the generated library to
14953 # depend on `.', always an invalid library. This was fixed in
14954 # development snapshots of GCC prior to 3.0.
14955 case $host_os in
14956 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000014957 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14958 echo ' yes '
14959 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14960 :
14961 else
14962 can_build_shared=no
14963 fi
14964 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014965 esac
John Criswell47fdd832003-07-14 16:52:07 +000014966 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14967 # soname into executable. Probably we can add versioning support to
14968 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000014969 if test "$aix_use_runtimelinking" = yes; then
14970 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14971 # instead of lib<name>.a to let people know that these are not
14972 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014974 else
14975 # We preserve .a as extension for shared libraries through AIX4.2
14976 # and later when we are not doing run time linking.
14977 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000014978 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014979 fi
14980 shlibpath_var=LIBPATH
14981 fi
14982 ;;
14983
14984amigaos*)
14985 library_names_spec='$libname.ixlibrary $libname.a'
14986 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014987 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 +000014988 ;;
14989
14990beos*)
John Criswell47fdd832003-07-14 16:52:07 +000014991 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014992 dynamic_linker="$host_os ld.so"
14993 shlibpath_var=LIBRARY_PATH
14994 ;;
14995
Reid Spencer2706f8c2004-09-19 23:53:36 +000014996bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000014997 version_type=linux
14998 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15002 shlibpath_var=LD_LIBRARY_PATH
15003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015005 # the default ld.so.conf also contains /usr/contrib/lib and
15006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15007 # libtool to hard-code these into programs
15008 ;;
15009
15010cygwin* | mingw* | pw32*)
15011 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015012 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015013 need_version=no
15014 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015015
John Criswell7a73b802003-06-30 21:59:07 +000015016 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015017 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015018 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015019 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015020 postinstall_cmds='base_file=`basename \${file}`~
15021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15022 dldir=$destdir/`dirname \$dlpath`~
15023 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015024 $install_prog $dir/$dlname \$dldir/$dlname~
15025 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15027 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015028 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015029 shlibpath_overrides_runpath=yes
15030
15031 case $host_os in
15032 cygwin*)
15033 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15034 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 +000015035 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015036 ;;
15037 mingw*)
15038 # MinGW DLLs use traditional 'lib' prefix
15039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15040 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15041 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15042 # It is most probably a Windows format PATH printed by
15043 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15044 # path with ; separators, and with drive letters. We can handle the
15045 # drive letters (cygwin fileutils understands them), so leave them,
15046 # especially as we might pass files found there to a mingw objdump,
15047 # which wouldn't understand a cygwinified path. Ahh.
15048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15049 else
15050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15051 fi
15052 ;;
15053 pw32*)
15054 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015055 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 +000015056 ;;
15057 esac
John Criswell7a73b802003-06-30 21:59:07 +000015058 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015059
John Criswell7a73b802003-06-30 21:59:07 +000015060 *)
John Criswell47fdd832003-07-14 16:52:07 +000015061 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015062 ;;
15063 esac
15064 dynamic_linker='Win32 ld.exe'
15065 # FIXME: first we should search . and the directory the executable is in
15066 shlibpath_var=PATH
15067 ;;
15068
15069darwin* | rhapsody*)
15070 dynamic_linker="$host_os dyld"
15071 version_type=darwin
15072 need_lib_prefix=no
15073 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015074 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015075 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015076 shlibpath_overrides_runpath=yes
15077 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015078 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015079 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015080 if test "$GCC" = yes; then
15081 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"`
15082 else
15083 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015084 fi
15085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15086 ;;
15087
15088dgux*)
15089 version_type=linux
15090 need_lib_prefix=no
15091 need_version=no
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015095 ;;
15096
15097freebsd1*)
15098 dynamic_linker=no
15099 ;;
15100
Reid Spencer2706f8c2004-09-19 23:53:36 +000015101kfreebsd*-gnu)
15102 version_type=linux
15103 need_lib_prefix=no
15104 need_version=no
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=no
15109 hardcode_into_libs=yes
15110 dynamic_linker='GNU ld.so'
15111 ;;
15112
Reid Spencera773bd52006-08-04 18:18:08 +000015113freebsd* | dragonfly*)
15114 # DragonFly does not have aout. When/if they implement a new
15115 # versioning mechanism, adjust this.
15116 if test -x /usr/bin/objformat; then
15117 objformat=`/usr/bin/objformat`
15118 else
15119 case $host_os in
15120 freebsd[123]*) objformat=aout ;;
15121 *) objformat=elf ;;
15122 esac
15123 fi
John Criswell7a73b802003-06-30 21:59:07 +000015124 version_type=freebsd-$objformat
15125 case $version_type in
15126 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015128 need_version=no
15129 need_lib_prefix=no
15130 ;;
15131 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015133 need_version=yes
15134 ;;
15135 esac
15136 shlibpath_var=LD_LIBRARY_PATH
15137 case $host_os in
15138 freebsd2*)
15139 shlibpath_overrides_runpath=yes
15140 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015141 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015142 shlibpath_overrides_runpath=yes
15143 hardcode_into_libs=yes
15144 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015145 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15146 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015147 shlibpath_overrides_runpath=no
15148 hardcode_into_libs=yes
15149 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015150 freebsd*) # from 4.6 on
15151 shlibpath_overrides_runpath=yes
15152 hardcode_into_libs=yes
15153 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015154 esac
15155 ;;
15156
15157gnu*)
15158 version_type=linux
15159 need_lib_prefix=no
15160 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15162 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015163 shlibpath_var=LD_LIBRARY_PATH
15164 hardcode_into_libs=yes
15165 ;;
15166
15167hpux9* | hpux10* | hpux11*)
15168 # Give a soname corresponding to the major version so that dld.sl refuses to
15169 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015170 version_type=sunos
15171 need_lib_prefix=no
15172 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015173 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015174 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015175 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015176 hardcode_into_libs=yes
15177 dynamic_linker="$host_os dld.so"
15178 shlibpath_var=LD_LIBRARY_PATH
15179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 if test "X$HPUX_IA64_MODE" = X32; then
15183 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15184 else
15185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15186 fi
15187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15188 ;;
15189 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015190 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015191 hardcode_into_libs=yes
15192 dynamic_linker="$host_os dld.sl"
15193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15199 ;;
15200 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015201 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015202 dynamic_linker="$host_os dld.sl"
15203 shlibpath_var=SHLIB_PATH
15204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 ;;
15208 esac
John Criswell7a73b802003-06-30 21:59:07 +000015209 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15210 postinstall_cmds='chmod 555 $lib'
15211 ;;
15212
Reid Spencera773bd52006-08-04 18:18:08 +000015213interix3*)
15214 version_type=linux
15215 need_lib_prefix=no
15216 need_version=no
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15218 soname_spec='${libname}${release}${shared_ext}$major'
15219 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=no
15222 hardcode_into_libs=yes
15223 ;;
15224
John Criswell47fdd832003-07-14 16:52:07 +000015225irix5* | irix6* | nonstopux*)
15226 case $host_os in
15227 nonstopux*) version_type=nonstopux ;;
15228 *)
15229 if test "$lt_cv_prog_gnu_ld" = yes; then
15230 version_type=linux
15231 else
15232 version_type=irix
15233 fi ;;
15234 esac
John Criswell7a73b802003-06-30 21:59:07 +000015235 need_lib_prefix=no
15236 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015237 soname_spec='${libname}${release}${shared_ext}$major'
15238 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 +000015239 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015240 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015241 libsuff= shlibsuff=
15242 ;;
15243 *)
15244 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015245 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15246 libsuff= shlibsuff= libmagic=32-bit;;
15247 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15248 libsuff=32 shlibsuff=N32 libmagic=N32;;
15249 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15250 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015251 *) libsuff= shlibsuff= libmagic=never-match;;
15252 esac
15253 ;;
15254 esac
15255 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15256 shlibpath_overrides_runpath=no
15257 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15258 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000015259 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015260 ;;
15261
15262# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000015263linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000015264 dynamic_linker=no
15265 ;;
15266
15267# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000015268linux*)
John Criswell7a73b802003-06-30 21:59:07 +000015269 version_type=linux
15270 need_lib_prefix=no
15271 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 shlibpath_overrides_runpath=no
15277 # This implies no fast_install, which is unacceptable.
15278 # Some rework will be needed to allow for fast_install
15279 # before this can be enabled.
15280 hardcode_into_libs=yes
15281
Reid Spencer2706f8c2004-09-19 23:53:36 +000015282 # Append ld.so.conf contents to the search path
15283 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000015284 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 +000015285 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15286 fi
15287
John Criswell7a73b802003-06-30 21:59:07 +000015288 # We used to test for /lib/ld.so.1 and disable shared libraries on
15289 # powerpc, because MkLinux only supported shared libraries with the
15290 # GNU dynamic linker. Since this was broken with cross compilers,
15291 # most powerpc-linux boxes support dynamic linking these days and
15292 # people can always --disable-shared, the test was removed, and we
15293 # assume the GNU/Linux dynamic linker is in use.
15294 dynamic_linker='GNU/Linux ld.so'
15295 ;;
15296
Reid Spencer2706f8c2004-09-19 23:53:36 +000015297knetbsd*-gnu)
15298 version_type=linux
15299 need_lib_prefix=no
15300 need_version=no
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15302 soname_spec='${libname}${release}${shared_ext}$major'
15303 shlibpath_var=LD_LIBRARY_PATH
15304 shlibpath_overrides_runpath=no
15305 hardcode_into_libs=yes
15306 dynamic_linker='GNU ld.so'
15307 ;;
15308
John Criswell7a73b802003-06-30 21:59:07 +000015309netbsd*)
15310 version_type=sunos
15311 need_lib_prefix=no
15312 need_version=no
15313 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15316 dynamic_linker='NetBSD (a.out) ld.so'
15317 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000015318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000015319 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015320 dynamic_linker='NetBSD ld.elf_so'
15321 fi
15322 shlibpath_var=LD_LIBRARY_PATH
15323 shlibpath_overrides_runpath=yes
15324 hardcode_into_libs=yes
15325 ;;
15326
15327newsos6)
15328 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330 shlibpath_var=LD_LIBRARY_PATH
15331 shlibpath_overrides_runpath=yes
15332 ;;
15333
Reid Spencer2706f8c2004-09-19 23:53:36 +000015334nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000015335 version_type=linux
15336 need_lib_prefix=no
15337 need_version=no
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015340 shlibpath_var=LD_LIBRARY_PATH
15341 shlibpath_overrides_runpath=yes
15342 ;;
15343
15344openbsd*)
15345 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000015346 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015347 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000015348 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15349 case $host_os in
15350 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15351 *) need_version=no ;;
15352 esac
John Criswell47fdd832003-07-14 16:52:07 +000015353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15355 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015356 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 +000015357 case $host_os in
15358 openbsd2.[89] | openbsd2.[89].*)
15359 shlibpath_overrides_runpath=no
15360 ;;
15361 *)
15362 shlibpath_overrides_runpath=yes
15363 ;;
15364 esac
John Criswell7a73b802003-06-30 21:59:07 +000015365 else
15366 shlibpath_overrides_runpath=yes
15367 fi
John Criswell7a73b802003-06-30 21:59:07 +000015368 ;;
15369
15370os2*)
15371 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015372 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015373 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015374 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015375 dynamic_linker='OS/2 ld.exe'
15376 shlibpath_var=LIBPATH
15377 ;;
15378
15379osf3* | osf4* | osf5*)
15380 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000015381 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015382 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015383 soname_spec='${libname}${release}${shared_ext}$major'
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015385 shlibpath_var=LD_LIBRARY_PATH
15386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15387 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15388 ;;
15389
John Criswell7a73b802003-06-30 21:59:07 +000015390solaris*)
15391 version_type=linux
15392 need_lib_prefix=no
15393 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15398 hardcode_into_libs=yes
15399 # ldd complains unless libraries are executable
15400 postinstall_cmds='chmod +x $lib'
15401 ;;
15402
15403sunos4*)
15404 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000015405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=yes
15409 if test "$with_gnu_ld" = yes; then
15410 need_lib_prefix=no
15411 fi
15412 need_version=yes
15413 ;;
15414
Reid Spencera773bd52006-08-04 18:18:08 +000015415sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000015416 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015419 shlibpath_var=LD_LIBRARY_PATH
15420 case $host_vendor in
15421 sni)
15422 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000015423 need_lib_prefix=no
15424 export_dynamic_flag_spec='${wl}-Blargedynsym'
15425 runpath_var=LD_RUN_PATH
15426 ;;
15427 siemens)
15428 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015429 ;;
15430 motorola)
15431 need_lib_prefix=no
15432 need_version=no
15433 shlibpath_overrides_runpath=no
15434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15435 ;;
15436 esac
15437 ;;
15438
John Criswell7a73b802003-06-30 21:59:07 +000015439sysv4*MP*)
15440 if test -d /usr/nec ;then
15441 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015442 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15443 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000015444 shlibpath_var=LD_LIBRARY_PATH
15445 fi
15446 ;;
15447
Reid Spencera773bd52006-08-04 18:18:08 +000015448sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15449 version_type=freebsd-elf
15450 need_lib_prefix=no
15451 need_version=no
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 shlibpath_var=LD_LIBRARY_PATH
15455 hardcode_into_libs=yes
15456 if test "$with_gnu_ld" = yes; then
15457 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15458 shlibpath_overrides_runpath=no
15459 else
15460 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15461 shlibpath_overrides_runpath=yes
15462 case $host_os in
15463 sco3.2v5*)
15464 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15465 ;;
15466 esac
15467 fi
15468 sys_lib_dlsearch_path_spec='/usr/lib'
15469 ;;
15470
John Criswell47fdd832003-07-14 16:52:07 +000015471uts4*)
15472 version_type=linux
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 ;;
15477
John Criswell7a73b802003-06-30 21:59:07 +000015478*)
15479 dynamic_linker=no
15480 ;;
15481esac
Reid Spencera773bd52006-08-04 18:18:08 +000015482{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15483echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015484test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015485
Reid Spencera773bd52006-08-04 18:18:08 +000015486variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15487if test "$GCC" = yes; then
15488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15489fi
15490
15491{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15492echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015493hardcode_action=
15494if test -n "$hardcode_libdir_flag_spec" || \
15495 test -n "$runpath_var" || \
15496 test "X$hardcode_automatic" = "Xyes" ; then
15497
15498 # We can hardcode non-existant directories.
15499 if test "$hardcode_direct" != no &&
15500 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15501 # have to relink, otherwise we might link with an installed library
15502 # when we should be linking with a yet-to-be-installed one
15503 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15504 test "$hardcode_minus_L" != no; then
15505 # Linking always hardcodes the temporary library directory.
15506 hardcode_action=relink
15507 else
15508 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15509 hardcode_action=immediate
15510 fi
15511else
15512 # We cannot hardcode anything, or else we can only hardcode existing
15513 # directories.
15514 hardcode_action=unsupported
15515fi
Reid Spencera773bd52006-08-04 18:18:08 +000015516{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
15517echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015518
15519if test "$hardcode_action" = relink; then
15520 # Fast installation is not supported
15521 enable_fast_install=no
15522elif test "$shlibpath_overrides_runpath" = yes ||
15523 test "$enable_shared" = no; then
15524 # Fast installation is not necessary
15525 enable_fast_install=needless
15526fi
15527
15528striplib=
15529old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000015530{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15531echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015532if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15533 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15534 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000015535 { echo "$as_me:$LINENO: result: yes" >&5
15536echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015537else
15538# FIXME - insert some real tests, host_os isn't really good enough
15539 case $host_os in
15540 darwin*)
15541 if test -n "$STRIP" ; then
15542 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000015543 { echo "$as_me:$LINENO: result: yes" >&5
15544echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015545 else
Reid Spencera773bd52006-08-04 18:18:08 +000015546 { echo "$as_me:$LINENO: result: no" >&5
15547echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015548fi
15549 ;;
15550 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015551 { echo "$as_me:$LINENO: result: no" >&5
15552echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015553 ;;
15554 esac
15555fi
15556
John Criswell7a73b802003-06-30 21:59:07 +000015557if test "x$enable_dlopen" != xyes; then
15558 enable_dlopen=unknown
15559 enable_dlopen_self=unknown
15560 enable_dlopen_self_static=unknown
15561else
15562 lt_cv_dlopen=no
15563 lt_cv_dlopen_libs=
15564
15565 case $host_os in
15566 beos*)
15567 lt_cv_dlopen="load_add_on"
15568 lt_cv_dlopen_libs=
15569 lt_cv_dlopen_self=yes
15570 ;;
15571
John Criswell47fdd832003-07-14 16:52:07 +000015572 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015573 lt_cv_dlopen="LoadLibrary"
15574 lt_cv_dlopen_libs=
15575 ;;
15576
John Criswell47fdd832003-07-14 16:52:07 +000015577 cygwin*)
15578 lt_cv_dlopen="dlopen"
15579 lt_cv_dlopen_libs=
15580 ;;
15581
15582 darwin*)
15583 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000015584 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15585echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015586if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15588else
15589 ac_check_lib_save_LIBS=$LIBS
15590LIBS="-ldl $LIBS"
15591cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015597
Reid Spencera773bd52006-08-04 18:18:08 +000015598/* Override any GCC internal prototype to avoid an error.
15599 Use char because int might match the return type of a GCC
15600 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000015601#ifdef __cplusplus
15602extern "C"
15603#endif
John Criswell47fdd832003-07-14 16:52:07 +000015604char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015605int
15606main ()
15607{
Reid Spencera773bd52006-08-04 18:18:08 +000015608return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015609 ;
15610 return 0;
15611}
15612_ACEOF
15613rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015614if { (ac_try="$ac_link"
15615case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15618esac
15619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015621 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015626 (exit $ac_status); } && {
15627 test -z "$ac_c_werror_flag" ||
15628 test ! -s conftest.err
15629 } && test -s conftest$ac_exeext &&
15630 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000015631 ac_cv_lib_dl_dlopen=yes
15632else
15633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015634sed 's/^/| /' conftest.$ac_ext >&5
15635
Reid Spencera773bd52006-08-04 18:18:08 +000015636 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000015637fi
Reid Spencera773bd52006-08-04 18:18:08 +000015638
Scott Michel96dcd2b2007-12-05 21:24:02 +000015639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015640 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015641LIBS=$ac_check_lib_save_LIBS
15642fi
Reid Spencera773bd52006-08-04 18:18:08 +000015643{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15644echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015645if test $ac_cv_lib_dl_dlopen = yes; then
15646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15647else
15648
15649 lt_cv_dlopen="dyld"
15650 lt_cv_dlopen_libs=
15651 lt_cv_dlopen_self=yes
15652
15653fi
15654
15655 ;;
15656
John Criswell7a73b802003-06-30 21:59:07 +000015657 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015658 { echo "$as_me:$LINENO: checking for shl_load" >&5
15659echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015660if test "${ac_cv_func_shl_load+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15662else
15663 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015664/* confdefs.h. */
15665_ACEOF
15666cat confdefs.h >>conftest.$ac_ext
15667cat >>conftest.$ac_ext <<_ACEOF
15668/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015669/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15671#define shl_load innocuous_shl_load
15672
John Criswell7a73b802003-06-30 21:59:07 +000015673/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000015674 which can conflict with char shl_load (); below.
15675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15676 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015677
John Criswell0c38eaf2003-09-10 15:17:25 +000015678#ifdef __STDC__
15679# include <limits.h>
15680#else
15681# include <assert.h>
15682#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000015683
15684#undef shl_load
15685
Reid Spencera773bd52006-08-04 18:18:08 +000015686/* Override any GCC internal prototype to avoid an error.
15687 Use char because int might match the return type of a GCC
15688 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015689#ifdef __cplusplus
15690extern "C"
15691#endif
John Criswell7a73b802003-06-30 21:59:07 +000015692char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015693/* The GNU C library defines this for functions which it implements
15694 to always fail with ENOSYS. Some functions are actually named
15695 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000015696#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000015697choke me
John Criswell7a73b802003-06-30 21:59:07 +000015698#endif
15699
John Criswell0c38eaf2003-09-10 15:17:25 +000015700int
15701main ()
15702{
Reid Spencera773bd52006-08-04 18:18:08 +000015703return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015704 ;
15705 return 0;
15706}
15707_ACEOF
15708rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015709if { (ac_try="$ac_link"
15710case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15713esac
15714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015716 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015717 grep -v '^ *+' conftest.er1 >conftest.err
15718 rm -f conftest.er1
15719 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015721 (exit $ac_status); } && {
15722 test -z "$ac_c_werror_flag" ||
15723 test ! -s conftest.err
15724 } && test -s conftest$ac_exeext &&
15725 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015726 ac_cv_func_shl_load=yes
15727else
15728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015729sed 's/^/| /' conftest.$ac_ext >&5
15730
Reid Spencera773bd52006-08-04 18:18:08 +000015731 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000015732fi
Reid Spencera773bd52006-08-04 18:18:08 +000015733
Scott Michel96dcd2b2007-12-05 21:24:02 +000015734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015735 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015736fi
Reid Spencera773bd52006-08-04 18:18:08 +000015737{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15738echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015739if test $ac_cv_func_shl_load = yes; then
15740 lt_cv_dlopen="shl_load"
15741else
Reid Spencera773bd52006-08-04 18:18:08 +000015742 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15743echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015744if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15746else
15747 ac_check_lib_save_LIBS=$LIBS
15748LIBS="-ldld $LIBS"
15749cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015750/* confdefs.h. */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015755
Reid Spencera773bd52006-08-04 18:18:08 +000015756/* Override any GCC internal prototype to avoid an error.
15757 Use char because int might match the return type of a GCC
15758 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015759#ifdef __cplusplus
15760extern "C"
15761#endif
John Criswell7a73b802003-06-30 21:59:07 +000015762char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015763int
15764main ()
15765{
Reid Spencera773bd52006-08-04 18:18:08 +000015766return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015767 ;
15768 return 0;
15769}
15770_ACEOF
15771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015772if { (ac_try="$ac_link"
15773case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15776esac
15777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015779 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015784 (exit $ac_status); } && {
15785 test -z "$ac_c_werror_flag" ||
15786 test ! -s conftest.err
15787 } && test -s conftest$ac_exeext &&
15788 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015789 ac_cv_lib_dld_shl_load=yes
15790else
15791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015792sed 's/^/| /' conftest.$ac_ext >&5
15793
Reid Spencera773bd52006-08-04 18:18:08 +000015794 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000015795fi
Reid Spencera773bd52006-08-04 18:18:08 +000015796
Scott Michel96dcd2b2007-12-05 21:24:02 +000015797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015798 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015799LIBS=$ac_check_lib_save_LIBS
15800fi
Reid Spencera773bd52006-08-04 18:18:08 +000015801{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15802echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015803if test $ac_cv_lib_dld_shl_load = yes; then
15804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15805else
Reid Spencera773bd52006-08-04 18:18:08 +000015806 { echo "$as_me:$LINENO: checking for dlopen" >&5
15807echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015808if test "${ac_cv_func_dlopen+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810else
15811 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015812/* confdefs.h. */
15813_ACEOF
15814cat confdefs.h >>conftest.$ac_ext
15815cat >>conftest.$ac_ext <<_ACEOF
15816/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015817/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15819#define dlopen innocuous_dlopen
15820
John Criswell7a73b802003-06-30 21:59:07 +000015821/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000015822 which can conflict with char dlopen (); below.
15823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15824 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015825
John Criswell0c38eaf2003-09-10 15:17:25 +000015826#ifdef __STDC__
15827# include <limits.h>
15828#else
15829# include <assert.h>
15830#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000015831
15832#undef dlopen
15833
Reid Spencera773bd52006-08-04 18:18:08 +000015834/* Override any GCC internal prototype to avoid an error.
15835 Use char because int might match the return type of a GCC
15836 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015837#ifdef __cplusplus
15838extern "C"
15839#endif
John Criswell7a73b802003-06-30 21:59:07 +000015840char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015841/* The GNU C library defines this for functions which it implements
15842 to always fail with ENOSYS. Some functions are actually named
15843 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000015844#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000015845choke me
John Criswell7a73b802003-06-30 21:59:07 +000015846#endif
15847
John Criswell0c38eaf2003-09-10 15:17:25 +000015848int
15849main ()
15850{
Reid Spencera773bd52006-08-04 18:18:08 +000015851return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015852 ;
15853 return 0;
15854}
15855_ACEOF
15856rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015857if { (ac_try="$ac_link"
15858case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15861esac
15862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015864 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015865 grep -v '^ *+' conftest.er1 >conftest.err
15866 rm -f conftest.er1
15867 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015869 (exit $ac_status); } && {
15870 test -z "$ac_c_werror_flag" ||
15871 test ! -s conftest.err
15872 } && test -s conftest$ac_exeext &&
15873 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015874 ac_cv_func_dlopen=yes
15875else
15876 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015877sed 's/^/| /' conftest.$ac_ext >&5
15878
Reid Spencera773bd52006-08-04 18:18:08 +000015879 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000015880fi
Reid Spencera773bd52006-08-04 18:18:08 +000015881
Scott Michel96dcd2b2007-12-05 21:24:02 +000015882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015883 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015884fi
Reid Spencera773bd52006-08-04 18:18:08 +000015885{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15886echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015887if test $ac_cv_func_dlopen = yes; then
15888 lt_cv_dlopen="dlopen"
15889else
Reid Spencera773bd52006-08-04 18:18:08 +000015890 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15891echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015892if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894else
15895 ac_check_lib_save_LIBS=$LIBS
15896LIBS="-ldl $LIBS"
15897cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015898/* confdefs.h. */
15899_ACEOF
15900cat confdefs.h >>conftest.$ac_ext
15901cat >>conftest.$ac_ext <<_ACEOF
15902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015903
Reid Spencera773bd52006-08-04 18:18:08 +000015904/* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015907#ifdef __cplusplus
15908extern "C"
15909#endif
John Criswell7a73b802003-06-30 21:59:07 +000015910char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015911int
15912main ()
15913{
Reid Spencera773bd52006-08-04 18:18:08 +000015914return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015915 ;
15916 return 0;
15917}
15918_ACEOF
15919rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015920if { (ac_try="$ac_link"
15921case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924esac
15925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015927 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest$ac_exeext &&
15936 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015937 ac_cv_lib_dl_dlopen=yes
15938else
15939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015940sed 's/^/| /' conftest.$ac_ext >&5
15941
Reid Spencera773bd52006-08-04 18:18:08 +000015942 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000015943fi
Reid Spencera773bd52006-08-04 18:18:08 +000015944
Scott Michel96dcd2b2007-12-05 21:24:02 +000015945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015946 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015947LIBS=$ac_check_lib_save_LIBS
15948fi
Reid Spencera773bd52006-08-04 18:18:08 +000015949{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15950echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015951if test $ac_cv_lib_dl_dlopen = yes; then
15952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15953else
Reid Spencera773bd52006-08-04 18:18:08 +000015954 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15955echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015956if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958else
15959 ac_check_lib_save_LIBS=$LIBS
15960LIBS="-lsvld $LIBS"
15961cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015962/* confdefs.h. */
15963_ACEOF
15964cat confdefs.h >>conftest.$ac_ext
15965cat >>conftest.$ac_ext <<_ACEOF
15966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015967
Reid Spencera773bd52006-08-04 18:18:08 +000015968/* Override any GCC internal prototype to avoid an error.
15969 Use char because int might match the return type of a GCC
15970 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015971#ifdef __cplusplus
15972extern "C"
15973#endif
John Criswell7a73b802003-06-30 21:59:07 +000015974char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015975int
15976main ()
15977{
Reid Spencera773bd52006-08-04 18:18:08 +000015978return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015979 ;
15980 return 0;
15981}
15982_ACEOF
15983rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015984if { (ac_try="$ac_link"
15985case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015992 grep -v '^ *+' conftest.er1 >conftest.err
15993 rm -f conftest.er1
15994 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015996 (exit $ac_status); } && {
15997 test -z "$ac_c_werror_flag" ||
15998 test ! -s conftest.err
15999 } && test -s conftest$ac_exeext &&
16000 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016001 ac_cv_lib_svld_dlopen=yes
16002else
16003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016004sed 's/^/| /' conftest.$ac_ext >&5
16005
Reid Spencera773bd52006-08-04 18:18:08 +000016006 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016007fi
Reid Spencera773bd52006-08-04 18:18:08 +000016008
Scott Michel96dcd2b2007-12-05 21:24:02 +000016009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016010 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016011LIBS=$ac_check_lib_save_LIBS
16012fi
Reid Spencera773bd52006-08-04 18:18:08 +000016013{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16014echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016015if test $ac_cv_lib_svld_dlopen = yes; then
16016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16017else
Reid Spencera773bd52006-08-04 18:18:08 +000016018 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16019echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016020if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16022else
16023 ac_check_lib_save_LIBS=$LIBS
16024LIBS="-ldld $LIBS"
16025cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016026/* confdefs.h. */
16027_ACEOF
16028cat confdefs.h >>conftest.$ac_ext
16029cat >>conftest.$ac_ext <<_ACEOF
16030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016031
Reid Spencera773bd52006-08-04 18:18:08 +000016032/* Override any GCC internal prototype to avoid an error.
16033 Use char because int might match the return type of a GCC
16034 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016035#ifdef __cplusplus
16036extern "C"
16037#endif
John Criswell7a73b802003-06-30 21:59:07 +000016038char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016039int
16040main ()
16041{
Reid Spencera773bd52006-08-04 18:18:08 +000016042return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016043 ;
16044 return 0;
16045}
16046_ACEOF
16047rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016048if { (ac_try="$ac_link"
16049case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16052esac
16053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016055 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016056 grep -v '^ *+' conftest.er1 >conftest.err
16057 rm -f conftest.er1
16058 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000016060 (exit $ac_status); } && {
16061 test -z "$ac_c_werror_flag" ||
16062 test ! -s conftest.err
16063 } && test -s conftest$ac_exeext &&
16064 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016065 ac_cv_lib_dld_dld_link=yes
16066else
16067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016068sed 's/^/| /' conftest.$ac_ext >&5
16069
Reid Spencera773bd52006-08-04 18:18:08 +000016070 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016071fi
Reid Spencera773bd52006-08-04 18:18:08 +000016072
Scott Michel96dcd2b2007-12-05 21:24:02 +000016073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016074 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016075LIBS=$ac_check_lib_save_LIBS
16076fi
Reid Spencera773bd52006-08-04 18:18:08 +000016077{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16078echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016079if test $ac_cv_lib_dld_dld_link = yes; then
16080 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16081fi
16082
16083
16084fi
16085
16086
16087fi
16088
16089
16090fi
16091
16092
16093fi
16094
16095
16096fi
16097
16098 ;;
16099 esac
16100
16101 if test "x$lt_cv_dlopen" != xno; then
16102 enable_dlopen=yes
16103 else
16104 enable_dlopen=no
16105 fi
16106
16107 case $lt_cv_dlopen in
16108 dlopen)
16109 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016110 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016111
16112 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016114
16115 save_LIBS="$LIBS"
16116 LIBS="$lt_cv_dlopen_libs $LIBS"
16117
Reid Spencera773bd52006-08-04 18:18:08 +000016118 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16119echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016120if test "${lt_cv_dlopen_self+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122else
16123 if test "$cross_compiling" = yes; then :
16124 lt_cv_dlopen_self=cross
16125else
John Criswell47fdd832003-07-14 16:52:07 +000016126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016127 lt_status=$lt_dlunknown
16128 cat > conftest.$ac_ext <<EOF
Duncan Sands67f1c492007-12-12 23:03:45 +000016129#line 16129 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016130#include "confdefs.h"
16131
16132#if HAVE_DLFCN_H
16133#include <dlfcn.h>
16134#endif
16135
16136#include <stdio.h>
16137
16138#ifdef RTLD_GLOBAL
16139# define LT_DLGLOBAL RTLD_GLOBAL
16140#else
16141# ifdef DL_GLOBAL
16142# define LT_DLGLOBAL DL_GLOBAL
16143# else
16144# define LT_DLGLOBAL 0
16145# endif
16146#endif
16147
16148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16149 find out it does not work in some platform. */
16150#ifndef LT_DLLAZY_OR_NOW
16151# ifdef RTLD_LAZY
16152# define LT_DLLAZY_OR_NOW RTLD_LAZY
16153# else
16154# ifdef DL_LAZY
16155# define LT_DLLAZY_OR_NOW DL_LAZY
16156# else
16157# ifdef RTLD_NOW
16158# define LT_DLLAZY_OR_NOW RTLD_NOW
16159# else
16160# ifdef DL_NOW
16161# define LT_DLLAZY_OR_NOW DL_NOW
16162# else
16163# define LT_DLLAZY_OR_NOW 0
16164# endif
16165# endif
16166# endif
16167# endif
16168#endif
16169
16170#ifdef __cplusplus
16171extern "C" void exit (int);
16172#endif
16173
16174void fnord() { int i=42;}
16175int main ()
16176{
16177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16178 int status = $lt_dlunknown;
16179
16180 if (self)
16181 {
16182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16183 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16184 /* dlclose (self); */
16185 }
Reid Spencera773bd52006-08-04 18:18:08 +000016186 else
16187 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016188
16189 exit (status);
16190}
16191EOF
16192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16193 (eval $ac_link) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016197 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016198 lt_status=$?
16199 case x$lt_status in
16200 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16201 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016202 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016203 esac
16204 else :
16205 # compilation failed
16206 lt_cv_dlopen_self=no
16207 fi
16208fi
16209rm -fr conftest*
16210
16211
16212fi
Reid Spencera773bd52006-08-04 18:18:08 +000016213{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16214echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016215
16216 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16218 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16219echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016220if test "${lt_cv_dlopen_self_static+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16222else
16223 if test "$cross_compiling" = yes; then :
16224 lt_cv_dlopen_self_static=cross
16225else
John Criswell47fdd832003-07-14 16:52:07 +000016226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016227 lt_status=$lt_dlunknown
16228 cat > conftest.$ac_ext <<EOF
Duncan Sands67f1c492007-12-12 23:03:45 +000016229#line 16229 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016230#include "confdefs.h"
16231
16232#if HAVE_DLFCN_H
16233#include <dlfcn.h>
16234#endif
16235
16236#include <stdio.h>
16237
16238#ifdef RTLD_GLOBAL
16239# define LT_DLGLOBAL RTLD_GLOBAL
16240#else
16241# ifdef DL_GLOBAL
16242# define LT_DLGLOBAL DL_GLOBAL
16243# else
16244# define LT_DLGLOBAL 0
16245# endif
16246#endif
16247
16248/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16249 find out it does not work in some platform. */
16250#ifndef LT_DLLAZY_OR_NOW
16251# ifdef RTLD_LAZY
16252# define LT_DLLAZY_OR_NOW RTLD_LAZY
16253# else
16254# ifdef DL_LAZY
16255# define LT_DLLAZY_OR_NOW DL_LAZY
16256# else
16257# ifdef RTLD_NOW
16258# define LT_DLLAZY_OR_NOW RTLD_NOW
16259# else
16260# ifdef DL_NOW
16261# define LT_DLLAZY_OR_NOW DL_NOW
16262# else
16263# define LT_DLLAZY_OR_NOW 0
16264# endif
16265# endif
16266# endif
16267# endif
16268#endif
16269
16270#ifdef __cplusplus
16271extern "C" void exit (int);
16272#endif
16273
16274void fnord() { int i=42;}
16275int main ()
16276{
16277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16278 int status = $lt_dlunknown;
16279
16280 if (self)
16281 {
16282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16284 /* dlclose (self); */
16285 }
Reid Spencera773bd52006-08-04 18:18:08 +000016286 else
16287 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016288
16289 exit (status);
16290}
16291EOF
16292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16293 (eval $ac_link) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016297 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016298 lt_status=$?
16299 case x$lt_status in
16300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016303 esac
16304 else :
16305 # compilation failed
16306 lt_cv_dlopen_self_static=no
16307 fi
16308fi
16309rm -fr conftest*
16310
16311
16312fi
Reid Spencera773bd52006-08-04 18:18:08 +000016313{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16314echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016315 fi
16316
16317 CPPFLAGS="$save_CPPFLAGS"
16318 LDFLAGS="$save_LDFLAGS"
16319 LIBS="$save_LIBS"
16320 ;;
16321 esac
16322
16323 case $lt_cv_dlopen_self in
16324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16325 *) enable_dlopen_self=unknown ;;
16326 esac
16327
16328 case $lt_cv_dlopen_self_static in
16329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16330 *) enable_dlopen_self_static=unknown ;;
16331 esac
16332fi
16333
16334
Reid Spencera773bd52006-08-04 18:18:08 +000016335# Report which library types will actually be built
16336{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16337echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16338{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16339echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016340
Reid Spencera773bd52006-08-04 18:18:08 +000016341{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16342echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016343test "$can_build_shared" = "no" && enable_shared=no
16344
16345# On AIX, shared libraries and static libraries use the same namespace, and
16346# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000016347case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016348aix3*)
16349 test "$enable_shared" = yes && enable_static=no
16350 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016351 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000016352 postinstall_cmds='$RANLIB $lib'
16353 fi
16354 ;;
16355
Reid Spencer2706f8c2004-09-19 23:53:36 +000016356aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000016357 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16358 test "$enable_shared" = yes && enable_static=no
16359 fi
John Criswell7a73b802003-06-30 21:59:07 +000016360 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016361esac
Reid Spencera773bd52006-08-04 18:18:08 +000016362{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16363echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016364
Reid Spencera773bd52006-08-04 18:18:08 +000016365{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16366echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016367# Make sure either enable_shared or enable_static is yes.
16368test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000016369{ echo "$as_me:$LINENO: result: $enable_static" >&5
16370echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016371
16372# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000016373# libtool distribution, otherwise you forgot to ship ltmain.sh
16374# with your package, and you will get complaints that there are
16375# no rules to generate ltmain.sh.
16376if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000016377 # See if we are running on zsh, and set the options which allow our commands through
16378 # without removal of \ escapes.
16379 if test -n "${ZSH_VERSION+set}" ; then
16380 setopt NO_GLOB_SUBST
16381 fi
John Criswell7a73b802003-06-30 21:59:07 +000016382 # Now quote all the things that may contain metacharacters while being
16383 # careful not to overquote the AC_SUBSTed values. We take copies of the
16384 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000016385 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 +000016386 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000016387 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16388 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16389 deplibs_check_method reload_flag reload_cmds need_locks \
16390 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16391 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000016392 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000016393 old_postinstall_cmds old_postuninstall_cmds \
16394 compiler \
16395 CC \
16396 LD \
16397 lt_prog_compiler_wl \
16398 lt_prog_compiler_pic \
16399 lt_prog_compiler_static \
16400 lt_prog_compiler_no_builtin_flag \
16401 export_dynamic_flag_spec \
16402 thread_safe_flag_spec \
16403 whole_archive_flag_spec \
16404 enable_shared_with_static_runtimes \
16405 old_archive_cmds \
16406 old_archive_from_new_cmds \
16407 predep_objects \
16408 postdep_objects \
16409 predeps \
16410 postdeps \
16411 compiler_lib_search_path \
16412 archive_cmds \
16413 archive_expsym_cmds \
16414 postinstall_cmds \
16415 postuninstall_cmds \
16416 old_archive_from_expsyms_cmds \
16417 allow_undefined_flag \
16418 no_undefined_flag \
16419 export_symbols_cmds \
16420 hardcode_libdir_flag_spec \
16421 hardcode_libdir_flag_spec_ld \
16422 hardcode_libdir_separator \
16423 hardcode_automatic \
16424 module_cmds \
16425 module_expsym_cmds \
16426 lt_cv_prog_compiler_c_o \
16427 exclude_expsyms \
16428 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000016429
16430 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000016431 old_archive_cmds | \
16432 old_archive_from_new_cmds | \
16433 archive_cmds | \
16434 archive_expsym_cmds | \
16435 module_cmds | \
16436 module_expsym_cmds | \
16437 old_archive_from_expsyms_cmds | \
16438 export_symbols_cmds | \
16439 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000016440 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000016441 old_postinstall_cmds | old_postuninstall_cmds | \
16442 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000016443 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016444 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 +000016445 ;;
16446 *)
16447 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16448 ;;
16449 esac
16450 done
16451
John Criswell47fdd832003-07-14 16:52:07 +000016452 case $lt_echo in
16453 *'\$0 --fallback-echo"')
16454 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16455 ;;
16456 esac
16457
16458cfgfile="${ofile}T"
16459 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16460 $rm -f "$cfgfile"
16461 { echo "$as_me:$LINENO: creating $ofile" >&5
16462echo "$as_me: creating $ofile" >&6;}
16463
16464 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000016465#! $SHELL
16466
John Criswell47fdd832003-07-14 16:52:07 +000016467# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000016468# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16469# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16470#
John Criswell47fdd832003-07-14 16:52:07 +000016471# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16472# Free Software Foundation, Inc.
16473#
16474# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000016475# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16476#
16477# This program is free software; you can redistribute it and/or modify
16478# it under the terms of the GNU General Public License as published by
16479# the Free Software Foundation; either version 2 of the License, or
16480# (at your option) any later version.
16481#
16482# This program is distributed in the hope that it will be useful, but
16483# WITHOUT ANY WARRANTY; without even the implied warranty of
16484# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16485# General Public License for more details.
16486#
16487# You should have received a copy of the GNU General Public License
16488# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000016489# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000016490#
16491# As a special exception to the GNU General Public License, if you
16492# distribute this file as part of a program that contains a
16493# configuration script generated by Autoconf, you may include it under
16494# the same distribution terms that you use for the rest of that program.
16495
John Criswell47fdd832003-07-14 16:52:07 +000016496# A sed program that does not truncate output.
16497SED=$lt_SED
16498
John Criswell7a73b802003-06-30 21:59:07 +000016499# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000016500Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000016501
16502# The HP-UX ksh and POSIX shell print the target directory to stdout
16503# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016504(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000016505
John Criswell47fdd832003-07-14 16:52:07 +000016506# The names of the tagged configurations supported by this script.
16507available_tags=
16508
John Criswell7a73b802003-06-30 21:59:07 +000016509# ### BEGIN LIBTOOL CONFIG
16510
16511# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16512
16513# Shell to use when invoking shell scripts.
16514SHELL=$lt_SHELL
16515
16516# Whether or not to build shared libraries.
16517build_libtool_libs=$enable_shared
16518
16519# Whether or not to build static libraries.
16520build_old_libs=$enable_static
16521
16522# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016523build_libtool_need_lc=$archive_cmds_need_lc
16524
16525# Whether or not to disallow shared libs when runtime libs are static
16526allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000016527
16528# Whether or not to optimize for fast installation.
16529fast_install=$enable_fast_install
16530
16531# The host system.
16532host_alias=$host_alias
16533host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000016534host_os=$host_os
16535
16536# The build system.
16537build_alias=$build_alias
16538build=$build
16539build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000016540
16541# An echo program that does not interpret backslashes.
16542echo=$lt_echo
16543
16544# The archiver.
16545AR=$lt_AR
16546AR_FLAGS=$lt_AR_FLAGS
16547
John Criswell47fdd832003-07-14 16:52:07 +000016548# A C compiler.
16549LTCC=$lt_LTCC
16550
Reid Spencera773bd52006-08-04 18:18:08 +000016551# LTCC compiler flags.
16552LTCFLAGS=$lt_LTCFLAGS
16553
John Criswell47fdd832003-07-14 16:52:07 +000016554# A language-specific compiler.
16555CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000016556
16557# Is the compiler the GNU C compiler?
16558with_gcc=$GCC
16559
John Criswell47fdd832003-07-14 16:52:07 +000016560# An ERE matcher.
16561EGREP=$lt_EGREP
16562
John Criswell7a73b802003-06-30 21:59:07 +000016563# The linker used to build libraries.
16564LD=$lt_LD
16565
16566# Whether we need hard or soft links.
16567LN_S=$lt_LN_S
16568
16569# A BSD-compatible nm program.
16570NM=$lt_NM
16571
16572# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000016573STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000016574
16575# Used to examine libraries when file_magic_cmd begins "file"
16576MAGIC_CMD=$MAGIC_CMD
16577
16578# Used on cygwin: DLL creation program.
16579DLLTOOL="$DLLTOOL"
16580
16581# Used on cygwin: object dumper.
16582OBJDUMP="$OBJDUMP"
16583
16584# Used on cygwin: assembler.
16585AS="$AS"
16586
16587# The name of the directory that contains temporary libtool files.
16588objdir=$objdir
16589
16590# How to create reloadable object files.
16591reload_flag=$lt_reload_flag
16592reload_cmds=$lt_reload_cmds
16593
16594# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000016595wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000016596
16597# Object file suffix (normally "o").
16598objext="$ac_objext"
16599
16600# Old archive suffix (normally "a").
16601libext="$libext"
16602
John Criswell47fdd832003-07-14 16:52:07 +000016603# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000016604shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000016605
John Criswell7a73b802003-06-30 21:59:07 +000016606# Executable file suffix (normally "").
16607exeext="$exeext"
16608
16609# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000016610pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000016611pic_mode=$pic_mode
16612
John Criswell47fdd832003-07-14 16:52:07 +000016613# What is the maximum length of a command?
16614max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000016615
John Criswell47fdd832003-07-14 16:52:07 +000016616# Does compiler simultaneously support -c and -o options?
16617compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000016618
Reid Spencera773bd52006-08-04 18:18:08 +000016619# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000016620need_locks=$lt_need_locks
16621
16622# Do we need the lib prefix for modules?
16623need_lib_prefix=$need_lib_prefix
16624
16625# Do we need a version for libraries?
16626need_version=$need_version
16627
16628# Whether dlopen is supported.
16629dlopen_support=$enable_dlopen
16630
16631# Whether dlopen of programs is supported.
16632dlopen_self=$enable_dlopen_self
16633
16634# Whether dlopen of statically linked programs is supported.
16635dlopen_self_static=$enable_dlopen_self_static
16636
16637# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000016638link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000016639
16640# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000016641no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000016642
16643# Compiler flag to allow reflexive dlopens.
16644export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16645
16646# Compiler flag to generate shared objects directly from archives.
16647whole_archive_flag_spec=$lt_whole_archive_flag_spec
16648
16649# Compiler flag to generate thread-safe objects.
16650thread_safe_flag_spec=$lt_thread_safe_flag_spec
16651
16652# Library versioning type.
16653version_type=$version_type
16654
16655# Format of library name prefix.
16656libname_spec=$lt_libname_spec
16657
16658# List of archive names. First name is the real one, the rest are links.
16659# The last name is the one that the linker finds with -lNAME.
16660library_names_spec=$lt_library_names_spec
16661
16662# The coded name of the library, if different from the real name.
16663soname_spec=$lt_soname_spec
16664
16665# Commands used to build and install an old-style archive.
16666RANLIB=$lt_RANLIB
16667old_archive_cmds=$lt_old_archive_cmds
16668old_postinstall_cmds=$lt_old_postinstall_cmds
16669old_postuninstall_cmds=$lt_old_postuninstall_cmds
16670
16671# Create an old-style archive from a shared archive.
16672old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16673
16674# Create a temporary old-style archive to link instead of a shared archive.
16675old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16676
16677# Commands used to build and install a shared archive.
16678archive_cmds=$lt_archive_cmds
16679archive_expsym_cmds=$lt_archive_expsym_cmds
16680postinstall_cmds=$lt_postinstall_cmds
16681postuninstall_cmds=$lt_postuninstall_cmds
16682
John Criswell47fdd832003-07-14 16:52:07 +000016683# Commands used to build a loadable module (assumed same as above if empty)
16684module_cmds=$lt_module_cmds
16685module_expsym_cmds=$lt_module_expsym_cmds
16686
John Criswell7a73b802003-06-30 21:59:07 +000016687# Commands to strip libraries.
16688old_striplib=$lt_old_striplib
16689striplib=$lt_striplib
16690
John Criswell47fdd832003-07-14 16:52:07 +000016691# Dependencies to place before the objects being linked to create a
16692# shared library.
16693predep_objects=$lt_predep_objects
16694
16695# Dependencies to place after the objects being linked to create a
16696# shared library.
16697postdep_objects=$lt_postdep_objects
16698
16699# Dependencies to place before the objects being linked to create a
16700# shared library.
16701predeps=$lt_predeps
16702
16703# Dependencies to place after the objects being linked to create a
16704# shared library.
16705postdeps=$lt_postdeps
16706
16707# The library search path used internally by the compiler when linking
16708# a shared library.
16709compiler_lib_search_path=$lt_compiler_lib_search_path
16710
John Criswell7a73b802003-06-30 21:59:07 +000016711# Method to check whether dependent libraries are shared objects.
16712deplibs_check_method=$lt_deplibs_check_method
16713
16714# Command to use when deplibs_check_method == file_magic.
16715file_magic_cmd=$lt_file_magic_cmd
16716
16717# Flag that allows shared libraries with undefined symbols to be built.
16718allow_undefined_flag=$lt_allow_undefined_flag
16719
16720# Flag that forces no undefined symbols.
16721no_undefined_flag=$lt_no_undefined_flag
16722
16723# Commands used to finish a libtool library installation in a directory.
16724finish_cmds=$lt_finish_cmds
16725
16726# Same as above, but a single script fragment to be evaled but not shown.
16727finish_eval=$lt_finish_eval
16728
16729# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000016730global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000016731
16732# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000016733global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000016734
16735# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000016736global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000016737
16738# This is the shared library runtime path variable.
16739runpath_var=$runpath_var
16740
16741# This is the shared library path variable.
16742shlibpath_var=$shlibpath_var
16743
16744# Is shlibpath searched before the hard-coded library search path?
16745shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16746
16747# How to hardcode a shared library path into an executable.
16748hardcode_action=$hardcode_action
16749
16750# Whether we should hardcode library paths into libraries.
16751hardcode_into_libs=$hardcode_into_libs
16752
16753# Flag to hardcode \$libdir into a binary during linking.
16754# This must work even if \$libdir does not exist.
16755hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16756
John Criswell47fdd832003-07-14 16:52:07 +000016757# If ld is used when linking, flag to hardcode \$libdir into
16758# a binary during linking. This must work even if \$libdir does
16759# not exist.
16760hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16761
John Criswell7a73b802003-06-30 21:59:07 +000016762# Whether we need a single -rpath flag with a separated argument.
16763hardcode_libdir_separator=$lt_hardcode_libdir_separator
16764
John Criswell47fdd832003-07-14 16:52:07 +000016765# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000016766# resulting binary.
16767hardcode_direct=$hardcode_direct
16768
16769# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16770# resulting binary.
16771hardcode_minus_L=$hardcode_minus_L
16772
16773# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16774# the resulting binary.
16775hardcode_shlibpath_var=$hardcode_shlibpath_var
16776
John Criswell47fdd832003-07-14 16:52:07 +000016777# Set to yes if building a shared library automatically hardcodes DIR into the library
16778# and all subsequent libraries and executables linked against it.
16779hardcode_automatic=$hardcode_automatic
16780
John Criswell7a73b802003-06-30 21:59:07 +000016781# Variables whose values should be saved in libtool wrapper scripts and
16782# restored at relink time.
16783variables_saved_for_relink="$variables_saved_for_relink"
16784
16785# Whether libtool must link a program against all its dependency libraries.
16786link_all_deplibs=$link_all_deplibs
16787
16788# Compile-time system search path for libraries
16789sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16790
16791# Run-time system search path for libraries
16792sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16793
16794# Fix the shell variable \$srcfile for the compiler.
16795fix_srcfile_path="$fix_srcfile_path"
16796
16797# Set to yes if exported symbols are required.
16798always_export_symbols=$always_export_symbols
16799
16800# The commands to list exported symbols.
16801export_symbols_cmds=$lt_export_symbols_cmds
16802
16803# The commands to extract the exported symbol list from a shared archive.
16804extract_expsyms_cmds=$lt_extract_expsyms_cmds
16805
16806# Symbols that should not be listed in the preloaded symbols.
16807exclude_expsyms=$lt_exclude_expsyms
16808
16809# Symbols that must always be exported.
16810include_expsyms=$lt_include_expsyms
16811
16812# ### END LIBTOOL CONFIG
16813
16814__EOF__
16815
John Criswell47fdd832003-07-14 16:52:07 +000016816
John Criswell7a73b802003-06-30 21:59:07 +000016817 case $host_os in
16818 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000016819 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000016820
16821# AIX sometimes has problems with the GCC collect2 program. For some
16822# reason, if we set the COLLECT_NAMES environment variable, the problems
16823# vanish in a puff of smoke.
16824if test "X${COLLECT_NAMES+set}" != Xset; then
16825 COLLECT_NAMES=
16826 export COLLECT_NAMES
16827fi
16828EOF
16829 ;;
16830 esac
16831
John Criswell7a73b802003-06-30 21:59:07 +000016832 # We use sed instead of cat because bash on DJGPP gets confused if
16833 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16834 # text mode, it properly converts lines to CR/LF. This bash problem
16835 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000016836 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000016837
John Criswell47fdd832003-07-14 16:52:07 +000016838 mv -f "$cfgfile" "$ofile" || \
16839 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000016840 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000016841
16842else
16843 # If there is no Makefile yet, we rely on a make rule to execute
16844 # `config.status --recheck' to rerun these tests and create the
16845 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016846 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16847 if test -f "$ltmain_in"; then
16848 test -f Makefile && make "$ltmain"
16849 fi
John Criswell7a73b802003-06-30 21:59:07 +000016850fi
John Criswell7a73b802003-06-30 21:59:07 +000016851
16852
John Criswell47fdd832003-07-14 16:52:07 +000016853ac_ext=c
16854ac_cpp='$CPP $CPPFLAGS'
16855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16857ac_compiler_gnu=$ac_cv_c_compiler_gnu
16858
16859CC="$lt_save_CC"
16860
16861
Reid Spencera773bd52006-08-04 18:18:08 +000016862# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000016863if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000016864 withval=$with_tags; tagnames="$withval"
16865fi
16866
John Criswell47fdd832003-07-14 16:52:07 +000016867
16868if test -f "$ltmain" && test -n "$tagnames"; then
16869 if test ! -f "${ofile}"; then
16870 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16871echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16872 fi
16873
16874 if test -z "$LTCC"; then
16875 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16876 if test -z "$LTCC"; then
16877 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16878echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16879 else
16880 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16881echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16882 fi
16883 fi
Reid Spencera773bd52006-08-04 18:18:08 +000016884 if test -z "$LTCFLAGS"; then
16885 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16886 fi
John Criswell47fdd832003-07-14 16:52:07 +000016887
16888 # Extract list of available tagged configurations in $ofile.
16889 # Note that this assumes the entire list is on one line.
16890 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16891
16892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16893 for tagname in $tagnames; do
16894 IFS="$lt_save_ifs"
16895 # Check whether tagname contains only valid characters
16896 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16897 "") ;;
16898 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16899echo "$as_me: error: invalid tag name: $tagname" >&2;}
16900 { (exit 1); exit 1; }; }
16901 ;;
16902 esac
16903
16904 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16905 then
16906 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16907echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16908 { (exit 1); exit 1; }; }
16909 fi
16910
16911 # Update the list of available tags.
16912 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000016913 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000016914
16915 case $tagname in
16916 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016917 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16918 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16919 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000016920 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000016921ac_cpp='$CXXCPP $CPPFLAGS'
16922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16925
16926
16927
16928
16929archive_cmds_need_lc_CXX=no
16930allow_undefined_flag_CXX=
16931always_export_symbols_CXX=no
16932archive_expsym_cmds_CXX=
16933export_dynamic_flag_spec_CXX=
16934hardcode_direct_CXX=no
16935hardcode_libdir_flag_spec_CXX=
16936hardcode_libdir_flag_spec_ld_CXX=
16937hardcode_libdir_separator_CXX=
16938hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000016939hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000016940hardcode_automatic_CXX=no
16941module_cmds_CXX=
16942module_expsym_cmds_CXX=
16943link_all_deplibs_CXX=unknown
16944old_archive_cmds_CXX=$old_archive_cmds
16945no_undefined_flag_CXX=
16946whole_archive_flag_spec_CXX=
16947enable_shared_with_static_runtimes_CXX=no
16948
16949# Dependencies to place before and after the object being linked:
16950predep_objects_CXX=
16951postdep_objects_CXX=
16952predeps_CXX=
16953postdeps_CXX=
16954compiler_lib_search_path_CXX=
16955
16956# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000016957ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000016958
16959# Object file extension for compiled C++ test sources.
16960objext=o
16961objext_CXX=$objext
16962
16963# Code to be used in simple compile tests
16964lt_simple_compile_test_code="int some_variable = 0;\n"
16965
16966# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000016967lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000016968
16969# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16970
16971# If no C compiler was specified, use CC.
16972LTCC=${LTCC-"$CC"}
16973
Reid Spencera773bd52006-08-04 18:18:08 +000016974# If no C compiler flags were specified, use CFLAGS.
16975LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16976
John Criswell47fdd832003-07-14 16:52:07 +000016977# Allow CC to be a program name with arguments.
16978compiler=$CC
16979
16980
Reid Spencera773bd52006-08-04 18:18:08 +000016981# save warnings/boilerplate of simple test code
16982ac_outfile=conftest.$ac_objext
16983printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16984eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16985_lt_compiler_boilerplate=`cat conftest.err`
16986$rm conftest*
16987
16988ac_outfile=conftest.$ac_objext
16989printf "$lt_simple_link_test_code" >conftest.$ac_ext
16990eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16991_lt_linker_boilerplate=`cat conftest.err`
16992$rm conftest*
16993
16994
John Criswell47fdd832003-07-14 16:52:07 +000016995# Allow CC to be a program name with arguments.
16996lt_save_CC=$CC
16997lt_save_LD=$LD
16998lt_save_GCC=$GCC
16999GCC=$GXX
17000lt_save_with_gnu_ld=$with_gnu_ld
17001lt_save_path_LD=$lt_cv_path_LD
17002if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17003 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17004else
Reid Spencera773bd52006-08-04 18:18:08 +000017005 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017006fi
17007if test -n "${lt_cv_path_LDCXX+set}"; then
17008 lt_cv_path_LD=$lt_cv_path_LDCXX
17009else
Reid Spencera773bd52006-08-04 18:18:08 +000017010 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017011fi
17012test -z "${LDCXX+set}" || LD=$LDCXX
17013CC=${CXX-"c++"}
17014compiler=$CC
17015compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017016for cc_temp in $compiler""; do
17017 case $cc_temp in
17018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17020 \-*) ;;
17021 *) break;;
17022 esac
17023done
17024cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17025
John Criswell47fdd832003-07-14 16:52:07 +000017026
17027# We don't want -fno-exception wen compiling C++ code, so set the
17028# no_builtin_flag separately
17029if test "$GXX" = yes; then
17030 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17031else
17032 lt_prog_compiler_no_builtin_flag_CXX=
17033fi
17034
17035if test "$GXX" = yes; then
17036 # Set up default GNU C++ configuration
17037
17038
Reid Spencera773bd52006-08-04 18:18:08 +000017039# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017040if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017041 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017042else
17043 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017044fi
17045
John Criswell47fdd832003-07-14 16:52:07 +000017046ac_prog=ld
17047if test "$GCC" = yes; then
17048 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017049 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17050echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017051 case $host in
17052 *-*-mingw*)
17053 # gcc leaves a trailing carriage return which upsets mingw
17054 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17055 *)
17056 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17057 esac
17058 case $ac_prog in
17059 # Accept absolute paths.
17060 [\\/]* | ?:[\\/]*)
17061 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017062 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017063 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17064 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17065 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17066 done
17067 test -z "$LD" && LD="$ac_prog"
17068 ;;
17069 "")
17070 # If it fails, then pretend we aren't using GCC.
17071 ac_prog=ld
17072 ;;
17073 *)
17074 # If it is relative, then search for the first ld in PATH.
17075 with_gnu_ld=unknown
17076 ;;
17077 esac
17078elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017079 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17080echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017081else
Reid Spencera773bd52006-08-04 18:18:08 +000017082 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17083echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017084fi
17085if test "${lt_cv_path_LD+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087else
17088 if test -z "$LD"; then
17089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17090 for ac_dir in $PATH; do
17091 IFS="$lt_save_ifs"
17092 test -z "$ac_dir" && ac_dir=.
17093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17094 lt_cv_path_LD="$ac_dir/$ac_prog"
17095 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017096 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017097 # Break only if it was the GNU/non-GNU ld that we prefer.
17098 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17099 *GNU* | *'with BFD'*)
17100 test "$with_gnu_ld" != no && break
17101 ;;
17102 *)
17103 test "$with_gnu_ld" != yes && break
17104 ;;
17105 esac
17106 fi
17107 done
17108 IFS="$lt_save_ifs"
17109else
17110 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17111fi
17112fi
17113
17114LD="$lt_cv_path_LD"
17115if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017116 { echo "$as_me:$LINENO: result: $LD" >&5
17117echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017118else
Reid Spencera773bd52006-08-04 18:18:08 +000017119 { echo "$as_me:$LINENO: result: no" >&5
17120echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017121fi
17122test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17123echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17124 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017125{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17126echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017127if test "${lt_cv_prog_gnu_ld+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17129else
Reid Spencera773bd52006-08-04 18:18:08 +000017130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017131case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017132*GNU* | *'with BFD'*)
17133 lt_cv_prog_gnu_ld=yes
17134 ;;
17135*)
17136 lt_cv_prog_gnu_ld=no
17137 ;;
17138esac
17139fi
Reid Spencera773bd52006-08-04 18:18:08 +000017140{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17141echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017142with_gnu_ld=$lt_cv_prog_gnu_ld
17143
17144
17145
17146 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17147 # archiving commands below assume that GNU ld is being used.
17148 if test "$with_gnu_ld" = yes; then
17149 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17150 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'
17151
17152 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17153 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17154
17155 # If archive_cmds runs LD, not CC, wlarc should be empty
17156 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17157 # investigate it a little bit more. (MM)
17158 wlarc='${wl}'
17159
17160 # ancient GNU ld didn't support --whole-archive et. al.
17161 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17162 grep 'no-whole-archive' > /dev/null; then
17163 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17164 else
17165 whole_archive_flag_spec_CXX=
17166 fi
17167 else
17168 with_gnu_ld=no
17169 wlarc=
17170
17171 # A generic and very simple default shared library creation
17172 # command for GNU C++ for the case where it uses the native
17173 # linker, instead of GNU ld. If possible, this setting should
17174 # overridden to take advantage of the native linker features on
17175 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017176 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000017177 fi
17178
17179 # Commands to make compiler produce verbose output that lists
17180 # what "hidden" libraries, object files and flags are used when
17181 # linking a shared library.
17182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17183
17184else
17185 GXX=no
17186 with_gnu_ld=no
17187 wlarc=
17188fi
17189
17190# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000017191{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17192echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017193ld_shlibs_CXX=yes
17194case $host_os in
17195 aix3*)
17196 # FIXME: insert proper C++ library support
17197 ld_shlibs_CXX=no
17198 ;;
17199 aix4* | aix5*)
17200 if test "$host_cpu" = ia64; then
17201 # On IA64, the linker does run time linking by default, so we don't
17202 # have to do anything special.
17203 aix_use_runtimelinking=no
17204 exp_sym_flag='-Bexport'
17205 no_entry_flag=""
17206 else
17207 aix_use_runtimelinking=no
17208
17209 # Test if we are trying to use run time linking or normal
17210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17211 # need to do runtime linking.
17212 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17213 for ld_flag in $LDFLAGS; do
17214 case $ld_flag in
17215 *-brtl*)
17216 aix_use_runtimelinking=yes
17217 break
17218 ;;
17219 esac
17220 done
Reid Spencera773bd52006-08-04 18:18:08 +000017221 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017222 esac
17223
17224 exp_sym_flag='-bexport'
17225 no_entry_flag='-bnoentry'
17226 fi
17227
17228 # When large executables or shared objects are built, AIX ld can
17229 # have problems creating the table of contents. If linking a library
17230 # or program results in "error TOC overflow" add -mminimal-toc to
17231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17233
17234 archive_cmds_CXX=''
17235 hardcode_direct_CXX=yes
17236 hardcode_libdir_separator_CXX=':'
17237 link_all_deplibs_CXX=yes
17238
17239 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017240 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000017241 # We only want to do this on AIX 4.2 and lower, the check
17242 # below for broken collect2 doesn't work under 4.3+
17243 collect2name=`${CC} -print-prog-name=collect2`
17244 if test -f "$collect2name" && \
17245 strings "$collect2name" | grep resolve_lib_name >/dev/null
17246 then
17247 # We have reworked collect2
17248 hardcode_direct_CXX=yes
17249 else
17250 # We have old collect2
17251 hardcode_direct_CXX=unsupported
17252 # It fails to find uninstalled libraries when the uninstalled
17253 # path is not listed in the libpath. Setting hardcode_minus_L
17254 # to unsupported forces relinking
17255 hardcode_minus_L_CXX=yes
17256 hardcode_libdir_flag_spec_CXX='-L$libdir'
17257 hardcode_libdir_separator_CXX=
17258 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017259 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017260 esac
17261 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000017262 if test "$aix_use_runtimelinking" = yes; then
17263 shared_flag="$shared_flag "'${wl}-G'
17264 fi
John Criswell47fdd832003-07-14 16:52:07 +000017265 else
17266 # not using gcc
17267 if test "$host_cpu" = ia64; then
17268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17269 # chokes on -Wl,-G. The following line is correct:
17270 shared_flag='-G'
17271 else
17272 if test "$aix_use_runtimelinking" = yes; then
17273 shared_flag='${wl}-G'
17274 else
17275 shared_flag='${wl}-bM:SRE'
17276 fi
17277 fi
17278 fi
17279
17280 # It seems that -bexpall does not export symbols beginning with
17281 # underscore (_), so it is better to generate a list of symbols to export.
17282 always_export_symbols_CXX=yes
17283 if test "$aix_use_runtimelinking" = yes; then
17284 # Warning - without using the other runtime loading flags (-brtl),
17285 # -berok will link without error, but may produce a broken library.
17286 allow_undefined_flag_CXX='-berok'
17287 # Determine the default libpath from the value encoded in an empty executable.
17288 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017289/* confdefs.h. */
17290_ACEOF
17291cat confdefs.h >>conftest.$ac_ext
17292cat >>conftest.$ac_ext <<_ACEOF
17293/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017294
John Criswell47fdd832003-07-14 16:52:07 +000017295int
17296main ()
17297{
17298
17299 ;
17300 return 0;
17301}
17302_ACEOF
17303rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017304if { (ac_try="$ac_link"
17305case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17308esac
17309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000017316 (exit $ac_status); } && {
17317 test -z "$ac_cxx_werror_flag" ||
17318 test ! -s conftest.err
17319 } && test -s conftest$ac_exeext &&
17320 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017321
17322aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17323}'`
17324# Check for a 64-bit object if we didn't find anything.
17325if 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; }
17326}'`; fi
17327else
17328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017329sed 's/^/| /' conftest.$ac_ext >&5
17330
Reid Spencera773bd52006-08-04 18:18:08 +000017331
John Criswell47fdd832003-07-14 16:52:07 +000017332fi
Reid Spencera773bd52006-08-04 18:18:08 +000017333
Scott Michel96dcd2b2007-12-05 21:24:02 +000017334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017335 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017336if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17337
17338 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17339
Reid Spencera773bd52006-08-04 18:18:08 +000017340 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 +000017341 else
17342 if test "$host_cpu" = ia64; then
17343 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17344 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000017345 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 +000017346 else
17347 # Determine the default libpath from the value encoded in an empty executable.
17348 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017349/* confdefs.h. */
17350_ACEOF
17351cat confdefs.h >>conftest.$ac_ext
17352cat >>conftest.$ac_ext <<_ACEOF
17353/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017354
John Criswell47fdd832003-07-14 16:52:07 +000017355int
17356main ()
17357{
17358
17359 ;
17360 return 0;
17361}
17362_ACEOF
17363rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017364if { (ac_try="$ac_link"
17365case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17368esac
17369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000017376 (exit $ac_status); } && {
17377 test -z "$ac_cxx_werror_flag" ||
17378 test ! -s conftest.err
17379 } && test -s conftest$ac_exeext &&
17380 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017381
17382aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17383}'`
17384# Check for a 64-bit object if we didn't find anything.
17385if 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; }
17386}'`; fi
17387else
17388 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017389sed 's/^/| /' conftest.$ac_ext >&5
17390
Reid Spencera773bd52006-08-04 18:18:08 +000017391
John Criswell47fdd832003-07-14 16:52:07 +000017392fi
Reid Spencera773bd52006-08-04 18:18:08 +000017393
Scott Michel96dcd2b2007-12-05 21:24:02 +000017394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017395 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017396if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17397
17398 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17399 # Warning - without using the other run time loading flags,
17400 # -berok will link without error, but may produce a broken library.
17401 no_undefined_flag_CXX=' ${wl}-bernotok'
17402 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000017403 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000017404 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000017405 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017406 # This is similar to how AIX traditionally builds its shared libraries.
17407 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 +000017408 fi
17409 fi
17410 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017411
17412 beos*)
17413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17414 allow_undefined_flag_CXX=unsupported
17415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17416 # support --undefined. This deserves some investigation. FIXME
17417 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17418 else
17419 ld_shlibs_CXX=no
17420 fi
17421 ;;
17422
John Criswell47fdd832003-07-14 16:52:07 +000017423 chorus*)
17424 case $cc_basename in
17425 *)
17426 # FIXME: insert proper C++ library support
17427 ld_shlibs_CXX=no
17428 ;;
17429 esac
17430 ;;
17431
17432 cygwin* | mingw* | pw32*)
17433 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17434 # as there is no search path for DLLs.
17435 hardcode_libdir_flag_spec_CXX='-L$libdir'
17436 allow_undefined_flag_CXX=unsupported
17437 always_export_symbols_CXX=no
17438 enable_shared_with_static_runtimes_CXX=yes
17439
17440 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017441 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 +000017442 # If the export-symbols file already is a .def file (1st line
17443 # is EXPORTS), use it as is; otherwise, prepend...
17444 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17445 cp $export_symbols $output_objdir/$soname.def;
17446 else
17447 echo EXPORTS > $output_objdir/$soname.def;
17448 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000017449 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000017450 $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 +000017451 else
17452 ld_shlibs_CXX=no
17453 fi
17454 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000017455 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000017456 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017457 rhapsody* | darwin1.[012])
17458 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17459 ;;
17460 *) # Darwin 1.3 on
17461 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17462 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17463 else
17464 case ${MACOSX_DEPLOYMENT_TARGET} in
17465 10.[012])
17466 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17467 ;;
17468 10.*)
17469 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17470 ;;
17471 esac
17472 fi
17473 ;;
17474 esac
17475 archive_cmds_need_lc_CXX=no
17476 hardcode_direct_CXX=no
17477 hardcode_automatic_CXX=yes
17478 hardcode_shlibpath_var_CXX=unsupported
17479 whole_archive_flag_spec_CXX=''
17480 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000017481
Reid Spencer2706f8c2004-09-19 23:53:36 +000017482 if test "$GXX" = yes ; then
17483 lt_int_apple_cc_single_mod=no
17484 output_verbose_link_cmd='echo'
17485 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17486 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000017487 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000017488 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000017489 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 +000017490 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017491 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 +000017492 fi
17493 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017494 # 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 +000017495 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017496 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 +000017497 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017498 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 +000017499 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000017500 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 +000017501 else
Reid Spencera773bd52006-08-04 18:18:08 +000017502 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017503 xlc*)
17504 output_verbose_link_cmd='echo'
17505 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'
17506 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017507 # 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 +000017508 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}'
17509 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 +000017510 ;;
17511 *)
17512 ld_shlibs_CXX=no
17513 ;;
17514 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000017515 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017516 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017517
17518 dgux*)
17519 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017520 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000017521 # FIXME: insert proper C++ library support
17522 ld_shlibs_CXX=no
17523 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017524 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000017525 # Green Hills C++ Compiler
17526 # FIXME: insert proper C++ library support
17527 ld_shlibs_CXX=no
17528 ;;
17529 *)
17530 # FIXME: insert proper C++ library support
17531 ld_shlibs_CXX=no
17532 ;;
17533 esac
17534 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017535 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000017536 # C++ shared libraries reported to be fairly broken before switch to ELF
17537 ld_shlibs_CXX=no
17538 ;;
17539 freebsd-elf*)
17540 archive_cmds_need_lc_CXX=no
17541 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017542 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000017543 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17544 # conventions
17545 ld_shlibs_CXX=yes
17546 ;;
17547 gnu*)
17548 ;;
17549 hpux9*)
17550 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17551 hardcode_libdir_separator_CXX=:
17552 export_dynamic_flag_spec_CXX='${wl}-E'
17553 hardcode_direct_CXX=yes
17554 hardcode_minus_L_CXX=yes # Not in the search PATH,
17555 # but as the default
17556 # location of the library.
17557
17558 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017559 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017560 # FIXME: insert proper C++ library support
17561 ld_shlibs_CXX=no
17562 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017563 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000017564 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 +000017565 # Commands to make compiler produce verbose output that lists
17566 # what "hidden" libraries, object files and flags are used when
17567 # linking a shared library.
17568 #
17569 # There doesn't appear to be a way to prevent this compiler from
17570 # explicitly linking system object files so we need to strip them
17571 # from the output so that they don't get included in the library
17572 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000017573 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 +000017574 ;;
17575 *)
17576 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017577 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 +000017578 else
17579 # FIXME: insert proper C++ library support
17580 ld_shlibs_CXX=no
17581 fi
17582 ;;
17583 esac
17584 ;;
17585 hpux10*|hpux11*)
17586 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017587 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17588 hardcode_libdir_separator_CXX=:
17589
17590 case $host_cpu in
17591 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017592 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000017593 ;;
17594 *)
John Criswell47fdd832003-07-14 16:52:07 +000017595 export_dynamic_flag_spec_CXX='${wl}-E'
17596 ;;
17597 esac
17598 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017599 case $host_cpu in
17600 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017601 hardcode_direct_CXX=no
17602 hardcode_shlibpath_var_CXX=no
17603 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017604 *)
17605 hardcode_direct_CXX=yes
17606 hardcode_minus_L_CXX=yes # Not in the search PATH,
17607 # but as the default
17608 # location of the library.
17609 ;;
17610 esac
17611
17612 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017613 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017614 # FIXME: insert proper C++ library support
17615 ld_shlibs_CXX=no
17616 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017617 aCC*)
17618 case $host_cpu in
17619 hppa*64*)
17620 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17621 ;;
17622 ia64*)
17623 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 +000017624 ;;
17625 *)
17626 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17627 ;;
17628 esac
17629 # Commands to make compiler produce verbose output that lists
17630 # what "hidden" libraries, object files and flags are used when
17631 # linking a shared library.
17632 #
17633 # There doesn't appear to be a way to prevent this compiler from
17634 # explicitly linking system object files so we need to strip them
17635 # from the output so that they don't get included in the library
17636 # dependencies.
17637 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'
17638 ;;
17639 *)
17640 if test "$GXX" = yes; then
17641 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017642 case $host_cpu in
17643 hppa*64*)
17644 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17645 ;;
17646 ia64*)
17647 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 +000017648 ;;
17649 *)
17650 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'
17651 ;;
17652 esac
17653 fi
17654 else
17655 # FIXME: insert proper C++ library support
17656 ld_shlibs_CXX=no
17657 fi
17658 ;;
17659 esac
17660 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017661 interix3*)
17662 hardcode_direct_CXX=no
17663 hardcode_shlibpath_var_CXX=no
17664 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17665 export_dynamic_flag_spec_CXX='${wl}-E'
17666 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17667 # Instead, shared libraries are loaded at an image base (0x10000000 by
17668 # default) and relocated if they conflict, which is a slow very memory
17669 # consuming and fragmenting process. To avoid this, we pick a random,
17670 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17671 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17672 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'
17673 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'
17674 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017675 irix5* | irix6*)
17676 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017677 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017678 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000017679 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 +000017680
17681 # Archives containing C++ object files must be created using
17682 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17683 # necessary to make sure instantiated templates are included
17684 # in the archive.
17685 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17686 ;;
17687 *)
17688 if test "$GXX" = yes; then
17689 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017690 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 +000017691 else
17692 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'
17693 fi
17694 fi
17695 link_all_deplibs_CXX=yes
17696 ;;
17697 esac
17698 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17699 hardcode_libdir_separator_CXX=:
17700 ;;
17701 linux*)
17702 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017703 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017704 # Kuck and Associates, Inc. (KAI) C++ Compiler
17705
17706 # KCC will only create a shared library if the output file
17707 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17708 # to its proper name (with version) after linking.
17709 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'
17710 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'
17711 # Commands to make compiler produce verbose output that lists
17712 # what "hidden" libraries, object files and flags are used when
17713 # linking a shared library.
17714 #
17715 # There doesn't appear to be a way to prevent this compiler from
17716 # explicitly linking system object files so we need to strip them
17717 # from the output so that they don't get included in the library
17718 # dependencies.
17719 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'
17720
17721 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17722 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17723
17724 # Archives containing C++ object files must be created using
17725 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17726 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17727 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017728 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000017729 # Intel C++
17730 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000017731 # version 8.0 and above of icpc choke on multiply defined symbols
17732 # if we add $predep_objects and $postdep_objects, however 7.1 and
17733 # earlier do not add the objects themselves.
17734 case `$CC -V 2>&1` in
17735 *"Version 7."*)
17736 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17737 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'
17738 ;;
17739 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000017740 tmp_idyn=
17741 case $host_cpu in
17742 ia64*) tmp_idyn=' -i_dynamic';;
17743 esac
17744 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17745 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 +000017746 ;;
17747 esac
John Criswell47fdd832003-07-14 16:52:07 +000017748 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000017749 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17750 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17751 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17752 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017753 pgCC*)
17754 # Portland Group C++ compiler
17755 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17756 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'
17757
17758 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17759 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17760 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'
17761 ;;
17762 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017763 # Compaq C++
17764 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17765 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'
17766
17767 runpath_var=LD_RUN_PATH
17768 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17769 hardcode_libdir_separator_CXX=:
17770
17771 # Commands to make compiler produce verbose output that lists
17772 # what "hidden" libraries, object files and flags are used when
17773 # linking a shared library.
17774 #
17775 # There doesn't appear to be a way to prevent this compiler from
17776 # explicitly linking system object files so we need to strip them
17777 # from the output so that they don't get included in the library
17778 # dependencies.
17779 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'
17780 ;;
17781 esac
17782 ;;
17783 lynxos*)
17784 # FIXME: insert proper C++ library support
17785 ld_shlibs_CXX=no
17786 ;;
17787 m88k*)
17788 # FIXME: insert proper C++ library support
17789 ld_shlibs_CXX=no
17790 ;;
17791 mvs*)
17792 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017793 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017794 # FIXME: insert proper C++ library support
17795 ld_shlibs_CXX=no
17796 ;;
17797 *)
17798 # FIXME: insert proper C++ library support
17799 ld_shlibs_CXX=no
17800 ;;
17801 esac
17802 ;;
17803 netbsd*)
17804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17805 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17806 wlarc=
17807 hardcode_libdir_flag_spec_CXX='-R$libdir'
17808 hardcode_direct_CXX=yes
17809 hardcode_shlibpath_var_CXX=no
17810 fi
17811 # Workaround some broken pre-1.5 toolchains
17812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17813 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000017814 openbsd2*)
17815 # C++ shared libraries are fairly broken
17816 ld_shlibs_CXX=no
17817 ;;
17818 openbsd*)
17819 hardcode_direct_CXX=yes
17820 hardcode_shlibpath_var_CXX=no
17821 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17822 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17823 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17824 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17825 export_dynamic_flag_spec_CXX='${wl}-E'
17826 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17827 fi
17828 output_verbose_link_cmd='echo'
17829 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017830 osf3*)
17831 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017832 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017833 # Kuck and Associates, Inc. (KAI) C++ Compiler
17834
17835 # KCC will only create a shared library if the output file
17836 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17837 # to its proper name (with version) after linking.
17838 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'
17839
17840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17841 hardcode_libdir_separator_CXX=:
17842
17843 # Archives containing C++ object files must be created using
17844 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17845 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17846
17847 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017848 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017849 # Rational C++ 2.4.1
17850 # FIXME: insert proper C++ library support
17851 ld_shlibs_CXX=no
17852 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017853 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017854 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017855 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 +000017856
17857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17858 hardcode_libdir_separator_CXX=:
17859
17860 # Commands to make compiler produce verbose output that lists
17861 # what "hidden" libraries, object files and flags are used when
17862 # linking a shared library.
17863 #
17864 # There doesn't appear to be a way to prevent this compiler from
17865 # explicitly linking system object files so we need to strip them
17866 # from the output so that they don't get included in the library
17867 # dependencies.
17868 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'
17869 ;;
17870 *)
17871 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17872 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017873 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 +000017874
17875 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17876 hardcode_libdir_separator_CXX=:
17877
17878 # Commands to make compiler produce verbose output that lists
17879 # what "hidden" libraries, object files and flags are used when
17880 # linking a shared library.
17881 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17882
17883 else
17884 # FIXME: insert proper C++ library support
17885 ld_shlibs_CXX=no
17886 fi
17887 ;;
17888 esac
17889 ;;
17890 osf4* | osf5*)
17891 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017892 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017893 # Kuck and Associates, Inc. (KAI) C++ Compiler
17894
17895 # KCC will only create a shared library if the output file
17896 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17897 # to its proper name (with version) after linking.
17898 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'
17899
17900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17901 hardcode_libdir_separator_CXX=:
17902
17903 # Archives containing C++ object files must be created using
17904 # the KAI C++ compiler.
17905 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17906 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017907 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017908 # Rational C++ 2.4.1
17909 # FIXME: insert proper C++ library support
17910 ld_shlibs_CXX=no
17911 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017912 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017913 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000017914 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 +000017915 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17916 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000017917 $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 +000017918 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000017919
17920 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17921 hardcode_libdir_separator_CXX=:
17922
17923 # Commands to make compiler produce verbose output that lists
17924 # what "hidden" libraries, object files and flags are used when
17925 # linking a shared library.
17926 #
17927 # There doesn't appear to be a way to prevent this compiler from
17928 # explicitly linking system object files so we need to strip them
17929 # from the output so that they don't get included in the library
17930 # dependencies.
17931 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'
17932 ;;
17933 *)
17934 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17935 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017936 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 +000017937
17938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17939 hardcode_libdir_separator_CXX=:
17940
17941 # Commands to make compiler produce verbose output that lists
17942 # what "hidden" libraries, object files and flags are used when
17943 # linking a shared library.
17944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17945
17946 else
17947 # FIXME: insert proper C++ library support
17948 ld_shlibs_CXX=no
17949 fi
17950 ;;
17951 esac
17952 ;;
17953 psos*)
17954 # FIXME: insert proper C++ library support
17955 ld_shlibs_CXX=no
17956 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017957 sunos4*)
17958 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017959 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017960 # Sun C++ 4.x
17961 # FIXME: insert proper C++ library support
17962 ld_shlibs_CXX=no
17963 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017964 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000017965 # Lucid
17966 # FIXME: insert proper C++ library support
17967 ld_shlibs_CXX=no
17968 ;;
17969 *)
17970 # FIXME: insert proper C++ library support
17971 ld_shlibs_CXX=no
17972 ;;
17973 esac
17974 ;;
17975 solaris*)
17976 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017977 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017978 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000017979 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000017980 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000017981 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 +000017982 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 +000017983 $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 +000017984
17985 hardcode_libdir_flag_spec_CXX='-R$libdir'
17986 hardcode_shlibpath_var_CXX=no
17987 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000017988 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000017989 *)
17990 # The C++ compiler is used as linker so we must use $wl
17991 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000017992 # linker. We must also pass each convience library through
17993 # to the system linker between allextract/defaultextract.
17994 # The C++ compiler will combine linker options so we
17995 # cannot just pass the convience library names through
17996 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000017997 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000017998 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 +000017999 ;;
18000 esac
18001 link_all_deplibs_CXX=yes
18002
Reid Spencera773bd52006-08-04 18:18:08 +000018003 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018004
18005 # Archives containing C++ object files must be created using
18006 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18007 # necessary to make sure instantiated templates are included
18008 # in the archive.
18009 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18010 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018011 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018012 # Green Hills C++ Compiler
18013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18014
18015 # The C++ compiler must be used to create the archive.
18016 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18017 ;;
18018 *)
18019 # GNU C++ compiler with Solaris linker
18020 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18021 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18022 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018023 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 +000018024 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18025 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18026
John Criswell47fdd832003-07-14 16:52:07 +000018027 # Commands to make compiler produce verbose output that lists
18028 # what "hidden" libraries, object files and flags are used when
18029 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018030 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018031 else
18032 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18033 # platform.
18034 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 +000018035 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18036 $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 +000018037
18038 # Commands to make compiler produce verbose output that lists
18039 # what "hidden" libraries, object files and flags are used when
18040 # linking a shared library.
18041 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18042 fi
18043
18044 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18045 fi
18046 ;;
18047 esac
18048 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18050 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018051 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018052 hardcode_shlibpath_var_CXX=no
18053 runpath_var='LD_RUN_PATH'
18054
18055 case $cc_basename in
18056 CC*)
18057 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18059 ;;
18060 *)
18061 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18062 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18063 ;;
18064 esac
18065 ;;
18066 sysv5* | sco3.2v5* | sco5v6*)
18067 # Note: We can NOT use -z defs as we might desire, because we do not
18068 # link with -lc, and that would cause any symbols used from libc to
18069 # always be unresolved, which means just about no library would
18070 # ever link correctly. If we're not using GNU ld we use -z text
18071 # though, which does catch some bad symbols but isn't as heavy-handed
18072 # as -z defs.
18073 # For security reasons, it is highly recommended that you always
18074 # use absolute paths for naming shared libraries, and exclude the
18075 # DT_RUNPATH tag from executables and libraries. But doing so
18076 # requires that you compile everything twice, which is a pain.
18077 # So that behaviour is only enabled if SCOABSPATH is set to a
18078 # non-empty value in the environment. Most likely only useful for
18079 # creating official distributions of packages.
18080 # This is a hack until libtool officially supports absolute path
18081 # names for shared libraries.
18082 no_undefined_flag_CXX='${wl}-z,text'
18083 allow_undefined_flag_CXX='${wl}-z,nodefs'
18084 archive_cmds_need_lc_CXX=no
18085 hardcode_shlibpath_var_CXX=no
18086 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18087 hardcode_libdir_separator_CXX=':'
18088 link_all_deplibs_CXX=yes
18089 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18090 runpath_var='LD_RUN_PATH'
18091
18092 case $cc_basename in
18093 CC*)
18094 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18096 ;;
18097 *)
18098 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18099 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18100 ;;
18101 esac
John Criswell47fdd832003-07-14 16:52:07 +000018102 ;;
18103 tandem*)
18104 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018105 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018106 # NonStop-UX NCC 3.20
18107 # FIXME: insert proper C++ library support
18108 ld_shlibs_CXX=no
18109 ;;
18110 *)
18111 # FIXME: insert proper C++ library support
18112 ld_shlibs_CXX=no
18113 ;;
18114 esac
18115 ;;
18116 vxworks*)
18117 # FIXME: insert proper C++ library support
18118 ld_shlibs_CXX=no
18119 ;;
18120 *)
18121 # FIXME: insert proper C++ library support
18122 ld_shlibs_CXX=no
18123 ;;
18124esac
Reid Spencera773bd52006-08-04 18:18:08 +000018125{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18126echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018127test "$ld_shlibs_CXX" = no && can_build_shared=no
18128
18129GCC_CXX="$GXX"
18130LD_CXX="$LD"
18131
John Criswell47fdd832003-07-14 16:52:07 +000018132
18133cat > conftest.$ac_ext <<EOF
18134class Foo
18135{
18136public:
18137 Foo (void) { a = 0; }
18138private:
18139 int a;
18140};
18141EOF
18142
18143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18144 (eval $ac_compile) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; then
18148 # Parse the compiler output and extract the necessary
18149 # objects, libraries and library flags.
18150
18151 # Sentinel used to keep track of whether or not we are before
18152 # the conftest object file.
18153 pre_test_object_deps_done=no
18154
18155 # The `*' in the case matches for architectures that use `case' in
18156 # $output_verbose_cmd can trigger glob expansion during the loop
18157 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000018158 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000018159
18160 for p in `eval $output_verbose_link_cmd`; do
18161 case $p in
18162
18163 -L* | -R* | -l*)
18164 # Some compilers place space between "-{L,R}" and the path.
18165 # Remove the space.
18166 if test $p = "-L" \
18167 || test $p = "-R"; then
18168 prev=$p
18169 continue
18170 else
18171 prev=
18172 fi
18173
18174 if test "$pre_test_object_deps_done" = no; then
18175 case $p in
18176 -L* | -R*)
18177 # Internal compiler library paths should come after those
18178 # provided the user. The postdeps already come after the
18179 # user supplied libs so there is no need to process them.
18180 if test -z "$compiler_lib_search_path_CXX"; then
18181 compiler_lib_search_path_CXX="${prev}${p}"
18182 else
18183 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18184 fi
18185 ;;
18186 # The "-l" case would never come before the object being
18187 # linked, so don't bother handling this case.
18188 esac
18189 else
18190 if test -z "$postdeps_CXX"; then
18191 postdeps_CXX="${prev}${p}"
18192 else
18193 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18194 fi
18195 fi
18196 ;;
18197
18198 *.$objext)
18199 # This assumes that the test object file only shows up
18200 # once in the compiler output.
18201 if test "$p" = "conftest.$objext"; then
18202 pre_test_object_deps_done=yes
18203 continue
18204 fi
18205
18206 if test "$pre_test_object_deps_done" = no; then
18207 if test -z "$predep_objects_CXX"; then
18208 predep_objects_CXX="$p"
18209 else
18210 predep_objects_CXX="$predep_objects_CXX $p"
18211 fi
18212 else
18213 if test -z "$postdep_objects_CXX"; then
18214 postdep_objects_CXX="$p"
18215 else
18216 postdep_objects_CXX="$postdep_objects_CXX $p"
18217 fi
18218 fi
18219 ;;
18220
18221 *) ;; # Ignore the rest.
18222
18223 esac
18224 done
18225
18226 # Clean up.
18227 rm -f a.out a.exe
18228else
18229 echo "libtool.m4: error: problem compiling CXX test program"
18230fi
18231
18232$rm -f confest.$objext
18233
Reid Spencera773bd52006-08-04 18:18:08 +000018234# PORTME: override above test on systems where it is broken
18235case $host_os in
18236interix3*)
18237 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18238 # hack all around it, let's just trust "g++" to DTRT.
18239 predep_objects_CXX=
18240 postdep_objects_CXX=
18241 postdeps_CXX=
18242 ;;
18243
18244solaris*)
18245 case $cc_basename in
18246 CC*)
18247 # Adding this requires a known-good setup of shared libraries for
18248 # Sun compiler versions before 5.6, else PIC objects from an old
18249 # archive will be linked into the output, leading to subtle bugs.
18250 postdeps_CXX='-lCstd -lCrun'
18251 ;;
18252 esac
18253 ;;
18254esac
18255
18256
John Criswell47fdd832003-07-14 16:52:07 +000018257case " $postdeps_CXX " in
18258*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18259esac
18260
18261lt_prog_compiler_wl_CXX=
18262lt_prog_compiler_pic_CXX=
18263lt_prog_compiler_static_CXX=
18264
Reid Spencera773bd52006-08-04 18:18:08 +000018265{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18266echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018267
18268 # C++ specific cases for pic, static, wl, etc.
18269 if test "$GXX" = yes; then
18270 lt_prog_compiler_wl_CXX='-Wl,'
18271 lt_prog_compiler_static_CXX='-static'
18272
18273 case $host_os in
18274 aix*)
18275 # All AIX code is PIC.
18276 if test "$host_cpu" = ia64; then
18277 # AIX 5 now supports IA64 processor
18278 lt_prog_compiler_static_CXX='-Bstatic'
18279 fi
18280 ;;
18281 amigaos*)
18282 # FIXME: we need at least 68020 code to build shared libraries, but
18283 # adding the `-m68020' flag to GCC prevents building anything better,
18284 # like `-m68040'.
18285 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18286 ;;
18287 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18288 # PIC is the default for these OSes.
18289 ;;
18290 mingw* | os2* | pw32*)
18291 # This hack is so that the source file can tell whether it is being
18292 # built for inclusion in a dll (and should export symbols for example).
18293 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18294 ;;
18295 darwin* | rhapsody*)
18296 # PIC is the default on this platform
18297 # Common symbols not allowed in MH_DYLIB files
18298 lt_prog_compiler_pic_CXX='-fno-common'
18299 ;;
18300 *djgpp*)
18301 # DJGPP does not support shared libraries at all
18302 lt_prog_compiler_pic_CXX=
18303 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018304 interix3*)
18305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18306 # Instead, we relocate shared libraries at runtime.
18307 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018308 sysv4*MP*)
18309 if test -d /usr/nec; then
18310 lt_prog_compiler_pic_CXX=-Kconform_pic
18311 fi
18312 ;;
18313 hpux*)
18314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18315 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000018316 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018317 hppa*64*|ia64*)
18318 ;;
18319 *)
18320 lt_prog_compiler_pic_CXX='-fPIC'
18321 ;;
18322 esac
18323 ;;
18324 *)
18325 lt_prog_compiler_pic_CXX='-fPIC'
18326 ;;
18327 esac
18328 else
18329 case $host_os in
18330 aix4* | aix5*)
18331 # All AIX code is PIC.
18332 if test "$host_cpu" = ia64; then
18333 # AIX 5 now supports IA64 processor
18334 lt_prog_compiler_static_CXX='-Bstatic'
18335 else
18336 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18337 fi
18338 ;;
18339 chorus*)
18340 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018341 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000018342 # Green Hills C++ Compiler
18343 # _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"
18344 ;;
18345 esac
18346 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018347 darwin*)
18348 # PIC is the default on this platform
18349 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000018350 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018351 xlc*)
18352 lt_prog_compiler_pic_CXX='-qnocommon'
18353 lt_prog_compiler_wl_CXX='-Wl,'
18354 ;;
18355 esac
18356 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018357 dgux*)
18358 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018359 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018360 lt_prog_compiler_pic_CXX='-KPIC'
18361 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018362 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018363 # Green Hills C++ Compiler
18364 lt_prog_compiler_pic_CXX='-pic'
18365 ;;
18366 *)
18367 ;;
18368 esac
18369 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018370 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018371 # FreeBSD uses GNU C++
18372 ;;
18373 hpux9* | hpux10* | hpux11*)
18374 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018375 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018376 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018377 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000018378 if test "$host_cpu" != ia64; then
18379 lt_prog_compiler_pic_CXX='+Z'
18380 fi
18381 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018382 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018383 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018384 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18385 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018386 hppa*64*|ia64*)
18387 # +Z the default
18388 ;;
18389 *)
18390 lt_prog_compiler_pic_CXX='+Z'
18391 ;;
18392 esac
18393 ;;
18394 *)
18395 ;;
18396 esac
18397 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018398 interix*)
18399 # This is c89, which is MS Visual C++ (no shared libs)
18400 # Anyone wants to do a port?
18401 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018402 irix5* | irix6* | nonstopux*)
18403 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018404 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018405 lt_prog_compiler_wl_CXX='-Wl,'
18406 lt_prog_compiler_static_CXX='-non_shared'
18407 # CC pic flag -KPIC is the default.
18408 ;;
18409 *)
18410 ;;
18411 esac
18412 ;;
18413 linux*)
18414 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018415 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018416 # KAI C++ Compiler
18417 lt_prog_compiler_wl_CXX='--backend -Wl,'
18418 lt_prog_compiler_pic_CXX='-fPIC'
18419 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018420 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018421 # Intel C++
18422 lt_prog_compiler_wl_CXX='-Wl,'
18423 lt_prog_compiler_pic_CXX='-KPIC'
18424 lt_prog_compiler_static_CXX='-static'
18425 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018426 pgCC*)
18427 # Portland Group C++ compiler.
18428 lt_prog_compiler_wl_CXX='-Wl,'
18429 lt_prog_compiler_pic_CXX='-fpic'
18430 lt_prog_compiler_static_CXX='-Bstatic'
18431 ;;
18432 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018433 # Compaq C++
18434 # Make sure the PIC flag is empty. It appears that all Alpha
18435 # Linux and Compaq Tru64 Unix objects are PIC.
18436 lt_prog_compiler_pic_CXX=
18437 lt_prog_compiler_static_CXX='-non_shared'
18438 ;;
18439 *)
18440 ;;
18441 esac
18442 ;;
18443 lynxos*)
18444 ;;
18445 m88k*)
18446 ;;
18447 mvs*)
18448 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018449 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018450 lt_prog_compiler_pic_CXX='-W c,exportall'
18451 ;;
18452 *)
18453 ;;
18454 esac
18455 ;;
18456 netbsd*)
18457 ;;
18458 osf3* | osf4* | osf5*)
18459 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018460 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018461 lt_prog_compiler_wl_CXX='--backend -Wl,'
18462 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018463 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018464 # Rational C++ 2.4.1
18465 lt_prog_compiler_pic_CXX='-pic'
18466 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018467 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018468 # Digital/Compaq C++
18469 lt_prog_compiler_wl_CXX='-Wl,'
18470 # Make sure the PIC flag is empty. It appears that all Alpha
18471 # Linux and Compaq Tru64 Unix objects are PIC.
18472 lt_prog_compiler_pic_CXX=
18473 lt_prog_compiler_static_CXX='-non_shared'
18474 ;;
18475 *)
18476 ;;
18477 esac
18478 ;;
18479 psos*)
18480 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018481 solaris*)
18482 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018483 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018484 # Sun C++ 4.2, 5.x and Centerline C++
18485 lt_prog_compiler_pic_CXX='-KPIC'
18486 lt_prog_compiler_static_CXX='-Bstatic'
18487 lt_prog_compiler_wl_CXX='-Qoption ld '
18488 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018489 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018490 # Green Hills C++ Compiler
18491 lt_prog_compiler_pic_CXX='-PIC'
18492 ;;
18493 *)
18494 ;;
18495 esac
18496 ;;
18497 sunos4*)
18498 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018499 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018500 # Sun C++ 4.x
18501 lt_prog_compiler_pic_CXX='-pic'
18502 lt_prog_compiler_static_CXX='-Bstatic'
18503 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018504 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018505 # Lucid
18506 lt_prog_compiler_pic_CXX='-pic'
18507 ;;
18508 *)
18509 ;;
18510 esac
18511 ;;
18512 tandem*)
18513 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018514 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018515 # NonStop-UX NCC 3.20
18516 lt_prog_compiler_pic_CXX='-KPIC'
18517 ;;
18518 *)
18519 ;;
18520 esac
18521 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18523 case $cc_basename in
18524 CC*)
18525 lt_prog_compiler_wl_CXX='-Wl,'
18526 lt_prog_compiler_pic_CXX='-KPIC'
18527 lt_prog_compiler_static_CXX='-Bstatic'
18528 ;;
18529 esac
John Criswell47fdd832003-07-14 16:52:07 +000018530 ;;
18531 vxworks*)
18532 ;;
18533 *)
18534 lt_prog_compiler_can_build_shared_CXX=no
18535 ;;
18536 esac
18537 fi
18538
Reid Spencera773bd52006-08-04 18:18:08 +000018539{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18540echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018541
18542#
18543# Check to make sure the PIC flag actually works.
18544#
18545if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018546
Reid Spencera773bd52006-08-04 18:18:08 +000018547{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18548echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018549if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18551else
18552 lt_prog_compiler_pic_works_CXX=no
18553 ac_outfile=conftest.$ac_objext
18554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18555 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18556 # Insert the option either (1) after the last *FLAGS variable, or
18557 # (2) before a word containing "conftest.", or (3) at the end.
18558 # Note that $ac_compile itself does not contain backslashes and begins
18559 # with a dollar sign (not a hyphen), so the echo should work correctly.
18560 # The option is referenced via a variable to avoid confusing sed.
18561 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18564 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000018565 (eval echo "\"\$as_me:18565: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018566 (eval "$lt_compile" 2>conftest.err)
18567 ac_status=$?
18568 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000018569 echo "$as_me:18569: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018570 if (exit $ac_status) && test -s "$ac_outfile"; then
18571 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000018572 # So say no if there are warnings other than the usual output.
18573 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18575 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018576 lt_prog_compiler_pic_works_CXX=yes
18577 fi
18578 fi
18579 $rm conftest*
18580
18581fi
Reid Spencera773bd52006-08-04 18:18:08 +000018582{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18583echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018584
18585if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18586 case $lt_prog_compiler_pic_CXX in
18587 "" | " "*) ;;
18588 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18589 esac
18590else
18591 lt_prog_compiler_pic_CXX=
18592 lt_prog_compiler_can_build_shared_CXX=no
18593fi
18594
18595fi
Reid Spencera773bd52006-08-04 18:18:08 +000018596case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000018597 # For platforms which do not support PIC, -DPIC is meaningless:
18598 *djgpp*)
18599 lt_prog_compiler_pic_CXX=
18600 ;;
18601 *)
18602 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18603 ;;
18604esac
18605
Reid Spencera773bd52006-08-04 18:18:08 +000018606#
18607# Check to make sure the static flag actually works.
18608#
18609wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18610{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18611echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18612if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18614else
18615 lt_prog_compiler_static_works_CXX=no
18616 save_LDFLAGS="$LDFLAGS"
18617 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18618 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18619 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18620 # The linker can only warn and ignore the option if not recognized
18621 # So say no if there are warnings
18622 if test -s conftest.err; then
18623 # Append any errors to the config.log.
18624 cat conftest.err 1>&5
18625 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18627 if diff conftest.exp conftest.er2 >/dev/null; then
18628 lt_prog_compiler_static_works_CXX=yes
18629 fi
18630 else
18631 lt_prog_compiler_static_works_CXX=yes
18632 fi
18633 fi
18634 $rm conftest*
18635 LDFLAGS="$save_LDFLAGS"
18636
18637fi
18638{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18639echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18640
18641if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18642 :
18643else
18644 lt_prog_compiler_static_CXX=
18645fi
18646
18647
18648{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18649echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018650if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18652else
18653 lt_cv_prog_compiler_c_o_CXX=no
18654 $rm -r conftest 2>/dev/null
18655 mkdir conftest
18656 cd conftest
18657 mkdir out
18658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18659
John Criswell47fdd832003-07-14 16:52:07 +000018660 lt_compiler_flag="-o out/conftest2.$ac_objext"
18661 # Insert the option either (1) after the last *FLAGS variable, or
18662 # (2) before a word containing "conftest.", or (3) at the end.
18663 # Note that $ac_compile itself does not contain backslashes and begins
18664 # with a dollar sign (not a hyphen), so the echo should work correctly.
18665 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18668 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000018669 (eval echo "\"\$as_me:18669: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018670 (eval "$lt_compile" 2>out/conftest.err)
18671 ac_status=$?
18672 cat out/conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000018673 echo "$as_me:18673: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018674 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18675 then
18676 # The compiler can only warn and ignore the option if not recognized
18677 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000018678 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18679 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18680 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018681 lt_cv_prog_compiler_c_o_CXX=yes
18682 fi
18683 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018684 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018685 $rm conftest*
18686 # SGI C++ compiler will create directory out/ii_files/ for
18687 # template instantiation
18688 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18689 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018690 cd ..
18691 rmdir conftest
18692 $rm conftest*
18693
18694fi
Reid Spencera773bd52006-08-04 18:18:08 +000018695{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18696echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018697
18698
18699hard_links="nottested"
18700if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18701 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000018702 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18703echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018704 hard_links=yes
18705 $rm conftest*
18706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18707 touch conftest.a
18708 ln conftest.a conftest.b 2>&5 || hard_links=no
18709 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000018710 { echo "$as_me:$LINENO: result: $hard_links" >&5
18711echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018712 if test "$hard_links" = no; then
18713 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18714echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18715 need_locks=warn
18716 fi
18717else
18718 need_locks=no
18719fi
18720
Reid Spencera773bd52006-08-04 18:18:08 +000018721{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18722echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018723
18724 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18725 case $host_os in
18726 aix4* | aix5*)
18727 # If we're using GNU nm, then we don't want the "-C" option.
18728 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18729 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18730 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'
18731 else
18732 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'
18733 fi
18734 ;;
18735 pw32*)
18736 export_symbols_cmds_CXX="$ltdll_cmds"
18737 ;;
18738 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000018739 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 +000018740 ;;
18741 *)
18742 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18743 ;;
18744 esac
18745
Reid Spencera773bd52006-08-04 18:18:08 +000018746{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18747echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018748test "$ld_shlibs_CXX" = no && can_build_shared=no
18749
John Criswell47fdd832003-07-14 16:52:07 +000018750#
18751# Do we need to explicitly link libc?
18752#
18753case "x$archive_cmds_need_lc_CXX" in
18754x|xyes)
18755 # Assume -lc should be added
18756 archive_cmds_need_lc_CXX=yes
18757
18758 if test "$enable_shared" = yes && test "$GCC" = yes; then
18759 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018760 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000018761 # FIXME: we may have to deal with multi-command sequences.
18762 ;;
18763 '$CC '*)
18764 # Test whether the compiler implicitly links with -lc since on some
18765 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18766 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000018767 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18768echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018769 $rm conftest*
18770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18771
18772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18773 (eval $ac_compile) 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } 2>conftest.err; then
18777 soname=conftest
18778 lib=conftest
18779 libobjs=conftest.$ac_objext
18780 deplibs=
18781 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000018782 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000018783 compiler_flags=-v
18784 linker_flags=-v
18785 verstring=
18786 output_objdir=.
18787 libname=conftest
18788 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18789 allow_undefined_flag_CXX=
18790 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18791 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }
18795 then
18796 archive_cmds_need_lc_CXX=no
18797 else
18798 archive_cmds_need_lc_CXX=yes
18799 fi
18800 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18801 else
18802 cat conftest.err 1>&5
18803 fi
18804 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000018805 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18806echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018807 ;;
18808 esac
18809 fi
18810 ;;
18811esac
18812
Reid Spencera773bd52006-08-04 18:18:08 +000018813{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18814echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018815library_names_spec=
18816libname_spec='lib$name'
18817soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000018818shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000018819postinstall_cmds=
18820postuninstall_cmds=
18821finish_cmds=
18822finish_eval=
18823shlibpath_var=
18824shlibpath_overrides_runpath=unknown
18825version_type=none
18826dynamic_linker="$host_os ld.so"
18827sys_lib_dlsearch_path_spec="/lib /usr/lib"
18828if test "$GCC" = yes; then
18829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18830 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18831 # if the path contains ";" then we assume it to be the separator
18832 # otherwise default to the standard path separator (i.e. ":") - it is
18833 # assumed that no part of a normal pathname contains ";" but that should
18834 # okay in the real world where ";" in dirpaths is itself problematic.
18835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18836 else
18837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18838 fi
18839else
18840 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18841fi
18842need_lib_prefix=unknown
18843hardcode_into_libs=no
18844
18845# when you set need_version to no, make sure it does not cause -set_version
18846# flags to be left without arguments
18847need_version=unknown
18848
18849case $host_os in
18850aix3*)
18851 version_type=linux
18852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18853 shlibpath_var=LIBPATH
18854
18855 # AIX 3 has no versioning support, so we append a major version to the name.
18856 soname_spec='${libname}${release}${shared_ext}$major'
18857 ;;
18858
18859aix4* | aix5*)
18860 version_type=linux
18861 need_lib_prefix=no
18862 need_version=no
18863 hardcode_into_libs=yes
18864 if test "$host_cpu" = ia64; then
18865 # AIX 5 supports IA64
18866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18867 shlibpath_var=LD_LIBRARY_PATH
18868 else
18869 # With GCC up to 2.95.x, collect2 would create an import file
18870 # for dependence libraries. The import file would start with
18871 # the line `#! .'. This would cause the generated library to
18872 # depend on `.', always an invalid library. This was fixed in
18873 # development snapshots of GCC prior to 3.0.
18874 case $host_os in
18875 aix4 | aix4.[01] | aix4.[01].*)
18876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18877 echo ' yes '
18878 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18879 :
18880 else
18881 can_build_shared=no
18882 fi
18883 ;;
18884 esac
18885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18886 # soname into executable. Probably we can add versioning support to
18887 # collect2, so additional links can be useful in future.
18888 if test "$aix_use_runtimelinking" = yes; then
18889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18890 # instead of lib<name>.a to let people know that these are not
18891 # typical AIX shared libraries.
18892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18893 else
18894 # We preserve .a as extension for shared libraries through AIX4.2
18895 # and later when we are not doing run time linking.
18896 library_names_spec='${libname}${release}.a $libname.a'
18897 soname_spec='${libname}${release}${shared_ext}$major'
18898 fi
18899 shlibpath_var=LIBPATH
18900 fi
18901 ;;
18902
18903amigaos*)
18904 library_names_spec='$libname.ixlibrary $libname.a'
18905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018906 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 +000018907 ;;
18908
18909beos*)
18910 library_names_spec='${libname}${shared_ext}'
18911 dynamic_linker="$host_os ld.so"
18912 shlibpath_var=LIBRARY_PATH
18913 ;;
18914
Reid Spencer2706f8c2004-09-19 23:53:36 +000018915bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000018916 version_type=linux
18917 need_version=no
18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18919 soname_spec='${libname}${release}${shared_ext}$major'
18920 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18921 shlibpath_var=LD_LIBRARY_PATH
18922 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18923 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18924 # the default ld.so.conf also contains /usr/contrib/lib and
18925 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18926 # libtool to hard-code these into programs
18927 ;;
18928
18929cygwin* | mingw* | pw32*)
18930 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000018931 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000018932 need_version=no
18933 need_lib_prefix=no
18934
18935 case $GCC,$host_os in
18936 yes,cygwin* | yes,mingw* | yes,pw32*)
18937 library_names_spec='$libname.dll.a'
18938 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000018939 postinstall_cmds='base_file=`basename \${file}`~
18940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18941 dldir=$destdir/`dirname \$dlpath`~
18942 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000018943 $install_prog $dir/$dlname \$dldir/$dlname~
18944 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000018945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18946 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000018947 $rm \$dlpath'
18948 shlibpath_overrides_runpath=yes
18949
18950 case $host_os in
18951 cygwin*)
18952 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18953 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 +000018954 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000018955 ;;
18956 mingw*)
18957 # MinGW DLLs use traditional 'lib' prefix
18958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18959 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18960 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18961 # It is most probably a Windows format PATH printed by
18962 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18963 # path with ; separators, and with drive letters. We can handle the
18964 # drive letters (cygwin fileutils understands them), so leave them,
18965 # especially as we might pass files found there to a mingw objdump,
18966 # which wouldn't understand a cygwinified path. Ahh.
18967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18968 else
18969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18970 fi
18971 ;;
18972 pw32*)
18973 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000018974 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 +000018975 ;;
18976 esac
18977 ;;
18978
18979 *)
18980 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18981 ;;
18982 esac
18983 dynamic_linker='Win32 ld.exe'
18984 # FIXME: first we should search . and the directory the executable is in
18985 shlibpath_var=PATH
18986 ;;
18987
18988darwin* | rhapsody*)
18989 dynamic_linker="$host_os dyld"
18990 version_type=darwin
18991 need_lib_prefix=no
18992 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000018993 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000018994 soname_spec='${libname}${release}${major}$shared_ext'
18995 shlibpath_overrides_runpath=yes
18996 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000018997 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000018998 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018999 if test "$GCC" = yes; then
19000 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"`
19001 else
19002 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019003 fi
19004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19005 ;;
19006
19007dgux*)
19008 version_type=linux
19009 need_lib_prefix=no
19010 need_version=no
19011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19012 soname_spec='${libname}${release}${shared_ext}$major'
19013 shlibpath_var=LD_LIBRARY_PATH
19014 ;;
19015
19016freebsd1*)
19017 dynamic_linker=no
19018 ;;
19019
Reid Spencer2706f8c2004-09-19 23:53:36 +000019020kfreebsd*-gnu)
19021 version_type=linux
19022 need_lib_prefix=no
19023 need_version=no
19024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19025 soname_spec='${libname}${release}${shared_ext}$major'
19026 shlibpath_var=LD_LIBRARY_PATH
19027 shlibpath_overrides_runpath=no
19028 hardcode_into_libs=yes
19029 dynamic_linker='GNU ld.so'
19030 ;;
19031
Reid Spencera773bd52006-08-04 18:18:08 +000019032freebsd* | dragonfly*)
19033 # DragonFly does not have aout. When/if they implement a new
19034 # versioning mechanism, adjust this.
19035 if test -x /usr/bin/objformat; then
19036 objformat=`/usr/bin/objformat`
19037 else
19038 case $host_os in
19039 freebsd[123]*) objformat=aout ;;
19040 *) objformat=elf ;;
19041 esac
19042 fi
John Criswell47fdd832003-07-14 16:52:07 +000019043 version_type=freebsd-$objformat
19044 case $version_type in
19045 freebsd-elf*)
19046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19047 need_version=no
19048 need_lib_prefix=no
19049 ;;
19050 freebsd-*)
19051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19052 need_version=yes
19053 ;;
19054 esac
19055 shlibpath_var=LD_LIBRARY_PATH
19056 case $host_os in
19057 freebsd2*)
19058 shlibpath_overrides_runpath=yes
19059 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019060 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019061 shlibpath_overrides_runpath=yes
19062 hardcode_into_libs=yes
19063 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019066 shlibpath_overrides_runpath=no
19067 hardcode_into_libs=yes
19068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019069 freebsd*) # from 4.6 on
19070 shlibpath_overrides_runpath=yes
19071 hardcode_into_libs=yes
19072 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019073 esac
19074 ;;
19075
19076gnu*)
19077 version_type=linux
19078 need_lib_prefix=no
19079 need_version=no
19080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19081 soname_spec='${libname}${release}${shared_ext}$major'
19082 shlibpath_var=LD_LIBRARY_PATH
19083 hardcode_into_libs=yes
19084 ;;
19085
19086hpux9* | hpux10* | hpux11*)
19087 # Give a soname corresponding to the major version so that dld.sl refuses to
19088 # link against other versions.
19089 version_type=sunos
19090 need_lib_prefix=no
19091 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019092 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019093 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019094 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019095 hardcode_into_libs=yes
19096 dynamic_linker="$host_os dld.so"
19097 shlibpath_var=LD_LIBRARY_PATH
19098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19100 soname_spec='${libname}${release}${shared_ext}$major'
19101 if test "X$HPUX_IA64_MODE" = X32; then
19102 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19103 else
19104 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19105 fi
19106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19107 ;;
19108 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019109 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019110 hardcode_into_libs=yes
19111 dynamic_linker="$host_os dld.sl"
19112 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19115 soname_spec='${libname}${release}${shared_ext}$major'
19116 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19118 ;;
19119 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019120 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019121 dynamic_linker="$host_os dld.sl"
19122 shlibpath_var=SHLIB_PATH
19123 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125 soname_spec='${libname}${release}${shared_ext}$major'
19126 ;;
19127 esac
19128 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19129 postinstall_cmds='chmod 555 $lib'
19130 ;;
19131
Reid Spencera773bd52006-08-04 18:18:08 +000019132interix3*)
19133 version_type=linux
19134 need_lib_prefix=no
19135 need_version=no
19136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19137 soname_spec='${libname}${release}${shared_ext}$major'
19138 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19139 shlibpath_var=LD_LIBRARY_PATH
19140 shlibpath_overrides_runpath=no
19141 hardcode_into_libs=yes
19142 ;;
19143
John Criswell47fdd832003-07-14 16:52:07 +000019144irix5* | irix6* | nonstopux*)
19145 case $host_os in
19146 nonstopux*) version_type=nonstopux ;;
19147 *)
19148 if test "$lt_cv_prog_gnu_ld" = yes; then
19149 version_type=linux
19150 else
19151 version_type=irix
19152 fi ;;
19153 esac
19154 need_lib_prefix=no
19155 need_version=no
19156 soname_spec='${libname}${release}${shared_ext}$major'
19157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19158 case $host_os in
19159 irix5* | nonstopux*)
19160 libsuff= shlibsuff=
19161 ;;
19162 *)
19163 case $LD in # libtool.m4 will add one of these switches to LD
19164 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19165 libsuff= shlibsuff= libmagic=32-bit;;
19166 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19167 libsuff=32 shlibsuff=N32 libmagic=N32;;
19168 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19169 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19170 *) libsuff= shlibsuff= libmagic=never-match;;
19171 esac
19172 ;;
19173 esac
19174 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19175 shlibpath_overrides_runpath=no
19176 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19177 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19178 hardcode_into_libs=yes
19179 ;;
19180
19181# No shared lib support for Linux oldld, aout, or coff.
19182linux*oldld* | linux*aout* | linux*coff*)
19183 dynamic_linker=no
19184 ;;
19185
19186# This must be Linux ELF.
19187linux*)
19188 version_type=linux
19189 need_lib_prefix=no
19190 need_version=no
19191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19192 soname_spec='${libname}${release}${shared_ext}$major'
19193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19194 shlibpath_var=LD_LIBRARY_PATH
19195 shlibpath_overrides_runpath=no
19196 # This implies no fast_install, which is unacceptable.
19197 # Some rework will be needed to allow for fast_install
19198 # before this can be enabled.
19199 hardcode_into_libs=yes
19200
Reid Spencer2706f8c2004-09-19 23:53:36 +000019201 # Append ld.so.conf contents to the search path
19202 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000019203 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 +000019204 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19205 fi
19206
John Criswell47fdd832003-07-14 16:52:07 +000019207 # We used to test for /lib/ld.so.1 and disable shared libraries on
19208 # powerpc, because MkLinux only supported shared libraries with the
19209 # GNU dynamic linker. Since this was broken with cross compilers,
19210 # most powerpc-linux boxes support dynamic linking these days and
19211 # people can always --disable-shared, the test was removed, and we
19212 # assume the GNU/Linux dynamic linker is in use.
19213 dynamic_linker='GNU/Linux ld.so'
19214 ;;
19215
Reid Spencer2706f8c2004-09-19 23:53:36 +000019216knetbsd*-gnu)
19217 version_type=linux
19218 need_lib_prefix=no
19219 need_version=no
19220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19221 soname_spec='${libname}${release}${shared_ext}$major'
19222 shlibpath_var=LD_LIBRARY_PATH
19223 shlibpath_overrides_runpath=no
19224 hardcode_into_libs=yes
19225 dynamic_linker='GNU ld.so'
19226 ;;
19227
John Criswell47fdd832003-07-14 16:52:07 +000019228netbsd*)
19229 version_type=sunos
19230 need_lib_prefix=no
19231 need_version=no
19232 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19235 dynamic_linker='NetBSD (a.out) ld.so'
19236 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000019238 soname_spec='${libname}${release}${shared_ext}$major'
19239 dynamic_linker='NetBSD ld.elf_so'
19240 fi
19241 shlibpath_var=LD_LIBRARY_PATH
19242 shlibpath_overrides_runpath=yes
19243 hardcode_into_libs=yes
19244 ;;
19245
19246newsos6)
19247 version_type=linux
19248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19249 shlibpath_var=LD_LIBRARY_PATH
19250 shlibpath_overrides_runpath=yes
19251 ;;
19252
Reid Spencer2706f8c2004-09-19 23:53:36 +000019253nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000019254 version_type=linux
19255 need_lib_prefix=no
19256 need_version=no
19257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19258 soname_spec='${libname}${release}${shared_ext}$major'
19259 shlibpath_var=LD_LIBRARY_PATH
19260 shlibpath_overrides_runpath=yes
19261 ;;
19262
19263openbsd*)
19264 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000019265 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019266 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000019267 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19268 case $host_os in
19269 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19270 *) need_version=no ;;
19271 esac
John Criswell47fdd832003-07-14 16:52:07 +000019272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19274 shlibpath_var=LD_LIBRARY_PATH
19275 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19276 case $host_os in
19277 openbsd2.[89] | openbsd2.[89].*)
19278 shlibpath_overrides_runpath=no
19279 ;;
19280 *)
19281 shlibpath_overrides_runpath=yes
19282 ;;
19283 esac
19284 else
19285 shlibpath_overrides_runpath=yes
19286 fi
19287 ;;
19288
19289os2*)
19290 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019291 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019292 need_lib_prefix=no
19293 library_names_spec='$libname${shared_ext} $libname.a'
19294 dynamic_linker='OS/2 ld.exe'
19295 shlibpath_var=LIBPATH
19296 ;;
19297
19298osf3* | osf4* | osf5*)
19299 version_type=osf
19300 need_lib_prefix=no
19301 need_version=no
19302 soname_spec='${libname}${release}${shared_ext}$major'
19303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19304 shlibpath_var=LD_LIBRARY_PATH
19305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19306 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19307 ;;
19308
John Criswell47fdd832003-07-14 16:52:07 +000019309solaris*)
19310 version_type=linux
19311 need_lib_prefix=no
19312 need_version=no
19313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19314 soname_spec='${libname}${release}${shared_ext}$major'
19315 shlibpath_var=LD_LIBRARY_PATH
19316 shlibpath_overrides_runpath=yes
19317 hardcode_into_libs=yes
19318 # ldd complains unless libraries are executable
19319 postinstall_cmds='chmod +x $lib'
19320 ;;
19321
19322sunos4*)
19323 version_type=sunos
19324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19326 shlibpath_var=LD_LIBRARY_PATH
19327 shlibpath_overrides_runpath=yes
19328 if test "$with_gnu_ld" = yes; then
19329 need_lib_prefix=no
19330 fi
19331 need_version=yes
19332 ;;
19333
Reid Spencera773bd52006-08-04 18:18:08 +000019334sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000019335 version_type=linux
19336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19337 soname_spec='${libname}${release}${shared_ext}$major'
19338 shlibpath_var=LD_LIBRARY_PATH
19339 case $host_vendor in
19340 sni)
19341 shlibpath_overrides_runpath=no
19342 need_lib_prefix=no
19343 export_dynamic_flag_spec='${wl}-Blargedynsym'
19344 runpath_var=LD_RUN_PATH
19345 ;;
19346 siemens)
19347 need_lib_prefix=no
19348 ;;
19349 motorola)
19350 need_lib_prefix=no
19351 need_version=no
19352 shlibpath_overrides_runpath=no
19353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19354 ;;
19355 esac
19356 ;;
19357
19358sysv4*MP*)
19359 if test -d /usr/nec ;then
19360 version_type=linux
19361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19362 soname_spec='$libname${shared_ext}.$major'
19363 shlibpath_var=LD_LIBRARY_PATH
19364 fi
19365 ;;
19366
Reid Spencera773bd52006-08-04 18:18:08 +000019367sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19368 version_type=freebsd-elf
19369 need_lib_prefix=no
19370 need_version=no
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19372 soname_spec='${libname}${release}${shared_ext}$major'
19373 shlibpath_var=LD_LIBRARY_PATH
19374 hardcode_into_libs=yes
19375 if test "$with_gnu_ld" = yes; then
19376 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19377 shlibpath_overrides_runpath=no
19378 else
19379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19380 shlibpath_overrides_runpath=yes
19381 case $host_os in
19382 sco3.2v5*)
19383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19384 ;;
19385 esac
19386 fi
19387 sys_lib_dlsearch_path_spec='/usr/lib'
19388 ;;
19389
John Criswell47fdd832003-07-14 16:52:07 +000019390uts4*)
19391 version_type=linux
19392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19393 soname_spec='${libname}${release}${shared_ext}$major'
19394 shlibpath_var=LD_LIBRARY_PATH
19395 ;;
19396
19397*)
19398 dynamic_linker=no
19399 ;;
19400esac
Reid Spencera773bd52006-08-04 18:18:08 +000019401{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19402echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019403test "$dynamic_linker" = no && can_build_shared=no
19404
Reid Spencera773bd52006-08-04 18:18:08 +000019405variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19406if test "$GCC" = yes; then
19407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19408fi
19409
19410{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19411echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019412hardcode_action_CXX=
19413if test -n "$hardcode_libdir_flag_spec_CXX" || \
19414 test -n "$runpath_var_CXX" || \
19415 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19416
19417 # We can hardcode non-existant directories.
19418 if test "$hardcode_direct_CXX" != no &&
19419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19420 # have to relink, otherwise we might link with an installed library
19421 # when we should be linking with a yet-to-be-installed one
19422 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19423 test "$hardcode_minus_L_CXX" != no; then
19424 # Linking always hardcodes the temporary library directory.
19425 hardcode_action_CXX=relink
19426 else
19427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19428 hardcode_action_CXX=immediate
19429 fi
19430else
19431 # We cannot hardcode anything, or else we can only hardcode existing
19432 # directories.
19433 hardcode_action_CXX=unsupported
19434fi
Reid Spencera773bd52006-08-04 18:18:08 +000019435{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19436echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019437
19438if test "$hardcode_action_CXX" = relink; then
19439 # Fast installation is not supported
19440 enable_fast_install=no
19441elif test "$shlibpath_overrides_runpath" = yes ||
19442 test "$enable_shared" = no; then
19443 # Fast installation is not necessary
19444 enable_fast_install=needless
19445fi
19446
John Criswell47fdd832003-07-14 16:52:07 +000019447
19448# The else clause should only fire when bootstrapping the
19449# libtool distribution, otherwise you forgot to ship ltmain.sh
19450# with your package, and you will get complaints that there are
19451# no rules to generate ltmain.sh.
19452if test -f "$ltmain"; then
19453 # See if we are running on zsh, and set the options which allow our commands through
19454 # without removal of \ escapes.
19455 if test -n "${ZSH_VERSION+set}" ; then
19456 setopt NO_GLOB_SUBST
19457 fi
19458 # Now quote all the things that may contain metacharacters while being
19459 # careful not to overquote the AC_SUBSTed values. We take copies of the
19460 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000019461 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 +000019462 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000019463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19465 deplibs_check_method reload_flag reload_cmds need_locks \
19466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19467 lt_cv_sys_global_symbol_to_c_name_address \
19468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19469 old_postinstall_cmds old_postuninstall_cmds \
19470 compiler_CXX \
19471 CC_CXX \
19472 LD_CXX \
19473 lt_prog_compiler_wl_CXX \
19474 lt_prog_compiler_pic_CXX \
19475 lt_prog_compiler_static_CXX \
19476 lt_prog_compiler_no_builtin_flag_CXX \
19477 export_dynamic_flag_spec_CXX \
19478 thread_safe_flag_spec_CXX \
19479 whole_archive_flag_spec_CXX \
19480 enable_shared_with_static_runtimes_CXX \
19481 old_archive_cmds_CXX \
19482 old_archive_from_new_cmds_CXX \
19483 predep_objects_CXX \
19484 postdep_objects_CXX \
19485 predeps_CXX \
19486 postdeps_CXX \
19487 compiler_lib_search_path_CXX \
19488 archive_cmds_CXX \
19489 archive_expsym_cmds_CXX \
19490 postinstall_cmds_CXX \
19491 postuninstall_cmds_CXX \
19492 old_archive_from_expsyms_cmds_CXX \
19493 allow_undefined_flag_CXX \
19494 no_undefined_flag_CXX \
19495 export_symbols_cmds_CXX \
19496 hardcode_libdir_flag_spec_CXX \
19497 hardcode_libdir_flag_spec_ld_CXX \
19498 hardcode_libdir_separator_CXX \
19499 hardcode_automatic_CXX \
19500 module_cmds_CXX \
19501 module_expsym_cmds_CXX \
19502 lt_cv_prog_compiler_c_o_CXX \
19503 exclude_expsyms_CXX \
19504 include_expsyms_CXX; do
19505
19506 case $var in
19507 old_archive_cmds_CXX | \
19508 old_archive_from_new_cmds_CXX | \
19509 archive_cmds_CXX | \
19510 archive_expsym_cmds_CXX | \
19511 module_cmds_CXX | \
19512 module_expsym_cmds_CXX | \
19513 old_archive_from_expsyms_cmds_CXX | \
19514 export_symbols_cmds_CXX | \
19515 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19516 postinstall_cmds | postuninstall_cmds | \
19517 old_postinstall_cmds | old_postuninstall_cmds | \
19518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19519 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019520 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 +000019521 ;;
19522 *)
19523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19524 ;;
19525 esac
19526 done
19527
19528 case $lt_echo in
19529 *'\$0 --fallback-echo"')
19530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19531 ;;
19532 esac
19533
19534cfgfile="$ofile"
19535
19536 cat <<__EOF__ >> "$cfgfile"
19537# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19538
19539# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19540
19541# Shell to use when invoking shell scripts.
19542SHELL=$lt_SHELL
19543
19544# Whether or not to build shared libraries.
19545build_libtool_libs=$enable_shared
19546
19547# Whether or not to build static libraries.
19548build_old_libs=$enable_static
19549
19550# Whether or not to add -lc for building shared libraries.
19551build_libtool_need_lc=$archive_cmds_need_lc_CXX
19552
19553# Whether or not to disallow shared libs when runtime libs are static
19554allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19555
19556# Whether or not to optimize for fast installation.
19557fast_install=$enable_fast_install
19558
19559# The host system.
19560host_alias=$host_alias
19561host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000019562host_os=$host_os
19563
19564# The build system.
19565build_alias=$build_alias
19566build=$build
19567build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000019568
19569# An echo program that does not interpret backslashes.
19570echo=$lt_echo
19571
19572# The archiver.
19573AR=$lt_AR
19574AR_FLAGS=$lt_AR_FLAGS
19575
19576# A C compiler.
19577LTCC=$lt_LTCC
19578
Reid Spencera773bd52006-08-04 18:18:08 +000019579# LTCC compiler flags.
19580LTCFLAGS=$lt_LTCFLAGS
19581
John Criswell47fdd832003-07-14 16:52:07 +000019582# A language-specific compiler.
19583CC=$lt_compiler_CXX
19584
19585# Is the compiler the GNU C compiler?
19586with_gcc=$GCC_CXX
19587
19588# An ERE matcher.
19589EGREP=$lt_EGREP
19590
19591# The linker used to build libraries.
19592LD=$lt_LD_CXX
19593
19594# Whether we need hard or soft links.
19595LN_S=$lt_LN_S
19596
19597# A BSD-compatible nm program.
19598NM=$lt_NM
19599
19600# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000019601STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000019602
19603# Used to examine libraries when file_magic_cmd begins "file"
19604MAGIC_CMD=$MAGIC_CMD
19605
19606# Used on cygwin: DLL creation program.
19607DLLTOOL="$DLLTOOL"
19608
19609# Used on cygwin: object dumper.
19610OBJDUMP="$OBJDUMP"
19611
19612# Used on cygwin: assembler.
19613AS="$AS"
19614
19615# The name of the directory that contains temporary libtool files.
19616objdir=$objdir
19617
19618# How to create reloadable object files.
19619reload_flag=$lt_reload_flag
19620reload_cmds=$lt_reload_cmds
19621
19622# How to pass a linker flag through the compiler.
19623wl=$lt_lt_prog_compiler_wl_CXX
19624
19625# Object file suffix (normally "o").
19626objext="$ac_objext"
19627
19628# Old archive suffix (normally "a").
19629libext="$libext"
19630
19631# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000019632shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000019633
19634# Executable file suffix (normally "").
19635exeext="$exeext"
19636
19637# Additional compiler flags for building library objects.
19638pic_flag=$lt_lt_prog_compiler_pic_CXX
19639pic_mode=$pic_mode
19640
19641# What is the maximum length of a command?
19642max_cmd_len=$lt_cv_sys_max_cmd_len
19643
19644# Does compiler simultaneously support -c and -o options?
19645compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19646
Reid Spencera773bd52006-08-04 18:18:08 +000019647# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000019648need_locks=$lt_need_locks
19649
19650# Do we need the lib prefix for modules?
19651need_lib_prefix=$need_lib_prefix
19652
19653# Do we need a version for libraries?
19654need_version=$need_version
19655
19656# Whether dlopen is supported.
19657dlopen_support=$enable_dlopen
19658
19659# Whether dlopen of programs is supported.
19660dlopen_self=$enable_dlopen_self
19661
19662# Whether dlopen of statically linked programs is supported.
19663dlopen_self_static=$enable_dlopen_self_static
19664
19665# Compiler flag to prevent dynamic linking.
19666link_static_flag=$lt_lt_prog_compiler_static_CXX
19667
19668# Compiler flag to turn off builtin functions.
19669no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19670
19671# Compiler flag to allow reflexive dlopens.
19672export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19673
19674# Compiler flag to generate shared objects directly from archives.
19675whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19676
19677# Compiler flag to generate thread-safe objects.
19678thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19679
19680# Library versioning type.
19681version_type=$version_type
19682
19683# Format of library name prefix.
19684libname_spec=$lt_libname_spec
19685
19686# List of archive names. First name is the real one, the rest are links.
19687# The last name is the one that the linker finds with -lNAME.
19688library_names_spec=$lt_library_names_spec
19689
19690# The coded name of the library, if different from the real name.
19691soname_spec=$lt_soname_spec
19692
19693# Commands used to build and install an old-style archive.
19694RANLIB=$lt_RANLIB
19695old_archive_cmds=$lt_old_archive_cmds_CXX
19696old_postinstall_cmds=$lt_old_postinstall_cmds
19697old_postuninstall_cmds=$lt_old_postuninstall_cmds
19698
19699# Create an old-style archive from a shared archive.
19700old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19701
19702# Create a temporary old-style archive to link instead of a shared archive.
19703old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19704
19705# Commands used to build and install a shared archive.
19706archive_cmds=$lt_archive_cmds_CXX
19707archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19708postinstall_cmds=$lt_postinstall_cmds
19709postuninstall_cmds=$lt_postuninstall_cmds
19710
19711# Commands used to build a loadable module (assumed same as above if empty)
19712module_cmds=$lt_module_cmds_CXX
19713module_expsym_cmds=$lt_module_expsym_cmds_CXX
19714
19715# Commands to strip libraries.
19716old_striplib=$lt_old_striplib
19717striplib=$lt_striplib
19718
19719# Dependencies to place before the objects being linked to create a
19720# shared library.
19721predep_objects=$lt_predep_objects_CXX
19722
19723# Dependencies to place after the objects being linked to create a
19724# shared library.
19725postdep_objects=$lt_postdep_objects_CXX
19726
19727# Dependencies to place before the objects being linked to create a
19728# shared library.
19729predeps=$lt_predeps_CXX
19730
19731# Dependencies to place after the objects being linked to create a
19732# shared library.
19733postdeps=$lt_postdeps_CXX
19734
19735# The library search path used internally by the compiler when linking
19736# a shared library.
19737compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19738
19739# Method to check whether dependent libraries are shared objects.
19740deplibs_check_method=$lt_deplibs_check_method
19741
19742# Command to use when deplibs_check_method == file_magic.
19743file_magic_cmd=$lt_file_magic_cmd
19744
19745# Flag that allows shared libraries with undefined symbols to be built.
19746allow_undefined_flag=$lt_allow_undefined_flag_CXX
19747
19748# Flag that forces no undefined symbols.
19749no_undefined_flag=$lt_no_undefined_flag_CXX
19750
19751# Commands used to finish a libtool library installation in a directory.
19752finish_cmds=$lt_finish_cmds
19753
19754# Same as above, but a single script fragment to be evaled but not shown.
19755finish_eval=$lt_finish_eval
19756
19757# Take the output of nm and produce a listing of raw symbols and C names.
19758global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19759
19760# Transform the output of nm in a proper C declaration
19761global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19762
19763# Transform the output of nm in a C name address pair
19764global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19765
19766# This is the shared library runtime path variable.
19767runpath_var=$runpath_var
19768
19769# This is the shared library path variable.
19770shlibpath_var=$shlibpath_var
19771
19772# Is shlibpath searched before the hard-coded library search path?
19773shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19774
19775# How to hardcode a shared library path into an executable.
19776hardcode_action=$hardcode_action_CXX
19777
19778# Whether we should hardcode library paths into libraries.
19779hardcode_into_libs=$hardcode_into_libs
19780
19781# Flag to hardcode \$libdir into a binary during linking.
19782# This must work even if \$libdir does not exist.
19783hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19784
19785# If ld is used when linking, flag to hardcode \$libdir into
19786# a binary during linking. This must work even if \$libdir does
19787# not exist.
19788hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19789
19790# Whether we need a single -rpath flag with a separated argument.
19791hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19792
19793# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19794# resulting binary.
19795hardcode_direct=$hardcode_direct_CXX
19796
19797# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19798# resulting binary.
19799hardcode_minus_L=$hardcode_minus_L_CXX
19800
19801# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19802# the resulting binary.
19803hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19804
19805# Set to yes if building a shared library automatically hardcodes DIR into the library
19806# and all subsequent libraries and executables linked against it.
19807hardcode_automatic=$hardcode_automatic_CXX
19808
19809# Variables whose values should be saved in libtool wrapper scripts and
19810# restored at relink time.
19811variables_saved_for_relink="$variables_saved_for_relink"
19812
19813# Whether libtool must link a program against all its dependency libraries.
19814link_all_deplibs=$link_all_deplibs_CXX
19815
19816# Compile-time system search path for libraries
19817sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19818
19819# Run-time system search path for libraries
19820sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19821
19822# Fix the shell variable \$srcfile for the compiler.
19823fix_srcfile_path="$fix_srcfile_path_CXX"
19824
19825# Set to yes if exported symbols are required.
19826always_export_symbols=$always_export_symbols_CXX
19827
19828# The commands to list exported symbols.
19829export_symbols_cmds=$lt_export_symbols_cmds_CXX
19830
19831# The commands to extract the exported symbol list from a shared archive.
19832extract_expsyms_cmds=$lt_extract_expsyms_cmds
19833
19834# Symbols that should not be listed in the preloaded symbols.
19835exclude_expsyms=$lt_exclude_expsyms_CXX
19836
19837# Symbols that must always be exported.
19838include_expsyms=$lt_include_expsyms_CXX
19839
19840# ### END LIBTOOL TAG CONFIG: $tagname
19841
19842__EOF__
19843
19844
19845else
19846 # If there is no Makefile yet, we rely on a make rule to execute
19847 # `config.status --recheck' to rerun these tests and create the
19848 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019849 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19850 if test -f "$ltmain_in"; then
19851 test -f Makefile && make "$ltmain"
19852 fi
John Criswell47fdd832003-07-14 16:52:07 +000019853fi
19854
19855
19856ac_ext=c
19857ac_cpp='$CPP $CPPFLAGS'
19858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19860ac_compiler_gnu=$ac_cv_c_compiler_gnu
19861
19862CC=$lt_save_CC
19863LDCXX=$LD
19864LD=$lt_save_LD
19865GCC=$lt_save_GCC
19866with_gnu_ldcxx=$with_gnu_ld
19867with_gnu_ld=$lt_save_with_gnu_ld
19868lt_cv_path_LDCXX=$lt_cv_path_LD
19869lt_cv_path_LD=$lt_save_path_LD
19870lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19871lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19872
19873 else
19874 tagname=""
19875 fi
19876 ;;
19877
19878 F77)
19879 if test -n "$F77" && test "X$F77" != "Xno"; then
19880
19881ac_ext=f
19882ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19883ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19884ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19885
19886
19887archive_cmds_need_lc_F77=no
19888allow_undefined_flag_F77=
19889always_export_symbols_F77=no
19890archive_expsym_cmds_F77=
19891export_dynamic_flag_spec_F77=
19892hardcode_direct_F77=no
19893hardcode_libdir_flag_spec_F77=
19894hardcode_libdir_flag_spec_ld_F77=
19895hardcode_libdir_separator_F77=
19896hardcode_minus_L_F77=no
19897hardcode_automatic_F77=no
19898module_cmds_F77=
19899module_expsym_cmds_F77=
19900link_all_deplibs_F77=unknown
19901old_archive_cmds_F77=$old_archive_cmds
19902no_undefined_flag_F77=
19903whole_archive_flag_spec_F77=
19904enable_shared_with_static_runtimes_F77=no
19905
19906# Source file extension for f77 test sources.
19907ac_ext=f
19908
19909# Object file extension for compiled f77 test sources.
19910objext=o
19911objext_F77=$objext
19912
19913# Code to be used in simple compile tests
19914lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19915
19916# Code to be used in simple link tests
19917lt_simple_link_test_code=" program t\n end\n"
19918
19919# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19920
19921# If no C compiler was specified, use CC.
19922LTCC=${LTCC-"$CC"}
19923
Reid Spencera773bd52006-08-04 18:18:08 +000019924# If no C compiler flags were specified, use CFLAGS.
19925LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19926
John Criswell47fdd832003-07-14 16:52:07 +000019927# Allow CC to be a program name with arguments.
19928compiler=$CC
19929
19930
Reid Spencera773bd52006-08-04 18:18:08 +000019931# save warnings/boilerplate of simple test code
19932ac_outfile=conftest.$ac_objext
19933printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19934eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19935_lt_compiler_boilerplate=`cat conftest.err`
19936$rm conftest*
19937
19938ac_outfile=conftest.$ac_objext
19939printf "$lt_simple_link_test_code" >conftest.$ac_ext
19940eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19941_lt_linker_boilerplate=`cat conftest.err`
19942$rm conftest*
19943
19944
John Criswell47fdd832003-07-14 16:52:07 +000019945# Allow CC to be a program name with arguments.
19946lt_save_CC="$CC"
19947CC=${F77-"f77"}
19948compiler=$CC
19949compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000019950for cc_temp in $compiler""; do
19951 case $cc_temp in
19952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19954 \-*) ;;
19955 *) break;;
19956 esac
19957done
19958cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000019959
John Criswell47fdd832003-07-14 16:52:07 +000019960
Reid Spencera773bd52006-08-04 18:18:08 +000019961{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19962echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19963{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
19964echo "${ECHO_T}$can_build_shared" >&6; }
19965
19966{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19967echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019968test "$can_build_shared" = "no" && enable_shared=no
19969
19970# On AIX, shared libraries and static libraries use the same namespace, and
19971# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000019972case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019973aix3*)
19974 test "$enable_shared" = yes && enable_static=no
19975 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019976 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000019977 postinstall_cmds='$RANLIB $lib'
19978 fi
19979 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019980aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000019981 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19982 test "$enable_shared" = yes && enable_static=no
19983 fi
John Criswell47fdd832003-07-14 16:52:07 +000019984 ;;
19985esac
Reid Spencera773bd52006-08-04 18:18:08 +000019986{ echo "$as_me:$LINENO: result: $enable_shared" >&5
19987echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019988
Reid Spencera773bd52006-08-04 18:18:08 +000019989{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19990echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019991# Make sure either enable_shared or enable_static is yes.
19992test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000019993{ echo "$as_me:$LINENO: result: $enable_static" >&5
19994echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019995
19996GCC_F77="$G77"
19997LD_F77="$LD"
19998
19999lt_prog_compiler_wl_F77=
20000lt_prog_compiler_pic_F77=
20001lt_prog_compiler_static_F77=
20002
Reid Spencera773bd52006-08-04 18:18:08 +000020003{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20004echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020005
20006 if test "$GCC" = yes; then
20007 lt_prog_compiler_wl_F77='-Wl,'
20008 lt_prog_compiler_static_F77='-static'
20009
20010 case $host_os in
20011 aix*)
20012 # All AIX code is PIC.
20013 if test "$host_cpu" = ia64; then
20014 # AIX 5 now supports IA64 processor
20015 lt_prog_compiler_static_F77='-Bstatic'
20016 fi
20017 ;;
20018
20019 amigaos*)
20020 # FIXME: we need at least 68020 code to build shared libraries, but
20021 # adding the `-m68020' flag to GCC prevents building anything better,
20022 # like `-m68040'.
20023 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20024 ;;
20025
20026 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20027 # PIC is the default for these OSes.
20028 ;;
20029
20030 mingw* | pw32* | os2*)
20031 # This hack is so that the source file can tell whether it is being
20032 # built for inclusion in a dll (and should export symbols for example).
20033 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20034 ;;
20035
20036 darwin* | rhapsody*)
20037 # PIC is the default on this platform
20038 # Common symbols not allowed in MH_DYLIB files
20039 lt_prog_compiler_pic_F77='-fno-common'
20040 ;;
20041
Reid Spencera773bd52006-08-04 18:18:08 +000020042 interix3*)
20043 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20044 # Instead, we relocate shared libraries at runtime.
20045 ;;
20046
John Criswell47fdd832003-07-14 16:52:07 +000020047 msdosdjgpp*)
20048 # Just because we use GCC doesn't mean we suddenly get shared libraries
20049 # on systems that don't support them.
20050 lt_prog_compiler_can_build_shared_F77=no
20051 enable_shared=no
20052 ;;
20053
20054 sysv4*MP*)
20055 if test -d /usr/nec; then
20056 lt_prog_compiler_pic_F77=-Kconform_pic
20057 fi
20058 ;;
20059
20060 hpux*)
20061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20062 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020063 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020064 hppa*64*|ia64*)
20065 # +Z the default
20066 ;;
20067 *)
20068 lt_prog_compiler_pic_F77='-fPIC'
20069 ;;
20070 esac
20071 ;;
20072
20073 *)
20074 lt_prog_compiler_pic_F77='-fPIC'
20075 ;;
20076 esac
20077 else
20078 # PORTME Check for flag to pass linker flags through the system compiler.
20079 case $host_os in
20080 aix*)
20081 lt_prog_compiler_wl_F77='-Wl,'
20082 if test "$host_cpu" = ia64; then
20083 # AIX 5 now supports IA64 processor
20084 lt_prog_compiler_static_F77='-Bstatic'
20085 else
20086 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20087 fi
20088 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020089 darwin*)
20090 # PIC is the default on this platform
20091 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020092 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020093 xlc*)
20094 lt_prog_compiler_pic_F77='-qnocommon'
20095 lt_prog_compiler_wl_F77='-Wl,'
20096 ;;
20097 esac
20098 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020099
20100 mingw* | pw32* | os2*)
20101 # This hack is so that the source file can tell whether it is being
20102 # built for inclusion in a dll (and should export symbols for example).
20103 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20104 ;;
20105
20106 hpux9* | hpux10* | hpux11*)
20107 lt_prog_compiler_wl_F77='-Wl,'
20108 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20109 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020110 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020111 hppa*64*|ia64*)
20112 # +Z the default
20113 ;;
20114 *)
20115 lt_prog_compiler_pic_F77='+Z'
20116 ;;
20117 esac
20118 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20119 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20120 ;;
20121
20122 irix5* | irix6* | nonstopux*)
20123 lt_prog_compiler_wl_F77='-Wl,'
20124 # PIC (with -KPIC) is the default.
20125 lt_prog_compiler_static_F77='-non_shared'
20126 ;;
20127
20128 newsos6)
20129 lt_prog_compiler_pic_F77='-KPIC'
20130 lt_prog_compiler_static_F77='-Bstatic'
20131 ;;
20132
20133 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000020134 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020135 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000020136 lt_prog_compiler_wl_F77='-Wl,'
20137 lt_prog_compiler_pic_F77='-KPIC'
20138 lt_prog_compiler_static_F77='-static'
20139 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020140 pgcc* | pgf77* | pgf90* | pgf95*)
20141 # Portland Group compilers (*not* the Pentium gcc compiler,
20142 # which looks to be a dead project)
20143 lt_prog_compiler_wl_F77='-Wl,'
20144 lt_prog_compiler_pic_F77='-fpic'
20145 lt_prog_compiler_static_F77='-Bstatic'
20146 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020147 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000020148 lt_prog_compiler_wl_F77='-Wl,'
20149 # All Alpha code is PIC.
20150 lt_prog_compiler_static_F77='-non_shared'
20151 ;;
20152 esac
20153 ;;
20154
20155 osf3* | osf4* | osf5*)
20156 lt_prog_compiler_wl_F77='-Wl,'
20157 # All OSF/1 code is PIC.
20158 lt_prog_compiler_static_F77='-non_shared'
20159 ;;
20160
John Criswell47fdd832003-07-14 16:52:07 +000020161 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020162 lt_prog_compiler_pic_F77='-KPIC'
20163 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000020164 case $cc_basename in
20165 f77* | f90* | f95*)
20166 lt_prog_compiler_wl_F77='-Qoption ld ';;
20167 *)
20168 lt_prog_compiler_wl_F77='-Wl,';;
20169 esac
John Criswell47fdd832003-07-14 16:52:07 +000020170 ;;
20171
20172 sunos4*)
20173 lt_prog_compiler_wl_F77='-Qoption ld '
20174 lt_prog_compiler_pic_F77='-PIC'
20175 lt_prog_compiler_static_F77='-Bstatic'
20176 ;;
20177
Reid Spencera773bd52006-08-04 18:18:08 +000020178 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020179 lt_prog_compiler_wl_F77='-Wl,'
20180 lt_prog_compiler_pic_F77='-KPIC'
20181 lt_prog_compiler_static_F77='-Bstatic'
20182 ;;
20183
20184 sysv4*MP*)
20185 if test -d /usr/nec ;then
20186 lt_prog_compiler_pic_F77='-Kconform_pic'
20187 lt_prog_compiler_static_F77='-Bstatic'
20188 fi
20189 ;;
20190
Reid Spencera773bd52006-08-04 18:18:08 +000020191 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20192 lt_prog_compiler_wl_F77='-Wl,'
20193 lt_prog_compiler_pic_F77='-KPIC'
20194 lt_prog_compiler_static_F77='-Bstatic'
20195 ;;
20196
20197 unicos*)
20198 lt_prog_compiler_wl_F77='-Wl,'
20199 lt_prog_compiler_can_build_shared_F77=no
20200 ;;
20201
John Criswell47fdd832003-07-14 16:52:07 +000020202 uts4*)
20203 lt_prog_compiler_pic_F77='-pic'
20204 lt_prog_compiler_static_F77='-Bstatic'
20205 ;;
20206
20207 *)
20208 lt_prog_compiler_can_build_shared_F77=no
20209 ;;
20210 esac
20211 fi
20212
Reid Spencera773bd52006-08-04 18:18:08 +000020213{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20214echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020215
20216#
20217# Check to make sure the PIC flag actually works.
20218#
20219if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020220
Reid Spencera773bd52006-08-04 18:18:08 +000020221{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20222echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020223if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225else
20226 lt_prog_compiler_pic_works_F77=no
20227 ac_outfile=conftest.$ac_objext
20228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20229 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20230 # Insert the option either (1) after the last *FLAGS variable, or
20231 # (2) before a word containing "conftest.", or (3) at the end.
20232 # Note that $ac_compile itself does not contain backslashes and begins
20233 # with a dollar sign (not a hyphen), so the echo should work correctly.
20234 # The option is referenced via a variable to avoid confusing sed.
20235 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20238 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000020239 (eval echo "\"\$as_me:20239: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020240 (eval "$lt_compile" 2>conftest.err)
20241 ac_status=$?
20242 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000020243 echo "$as_me:20243: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020244 if (exit $ac_status) && test -s "$ac_outfile"; then
20245 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020246 # So say no if there are warnings other than the usual output.
20247 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020250 lt_prog_compiler_pic_works_F77=yes
20251 fi
20252 fi
20253 $rm conftest*
20254
20255fi
Reid Spencera773bd52006-08-04 18:18:08 +000020256{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20257echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020258
20259if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20260 case $lt_prog_compiler_pic_F77 in
20261 "" | " "*) ;;
20262 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20263 esac
20264else
20265 lt_prog_compiler_pic_F77=
20266 lt_prog_compiler_can_build_shared_F77=no
20267fi
20268
20269fi
Reid Spencera773bd52006-08-04 18:18:08 +000020270case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020271 # For platforms which do not support PIC, -DPIC is meaningless:
20272 *djgpp*)
20273 lt_prog_compiler_pic_F77=
20274 ;;
20275 *)
20276 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20277 ;;
20278esac
20279
Reid Spencera773bd52006-08-04 18:18:08 +000020280#
20281# Check to make sure the static flag actually works.
20282#
20283wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20284{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20285echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20286if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20288else
20289 lt_prog_compiler_static_works_F77=no
20290 save_LDFLAGS="$LDFLAGS"
20291 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20292 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20294 # The linker can only warn and ignore the option if not recognized
20295 # So say no if there are warnings
20296 if test -s conftest.err; then
20297 # Append any errors to the config.log.
20298 cat conftest.err 1>&5
20299 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20301 if diff conftest.exp conftest.er2 >/dev/null; then
20302 lt_prog_compiler_static_works_F77=yes
20303 fi
20304 else
20305 lt_prog_compiler_static_works_F77=yes
20306 fi
20307 fi
20308 $rm conftest*
20309 LDFLAGS="$save_LDFLAGS"
20310
20311fi
20312{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20313echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20314
20315if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20316 :
20317else
20318 lt_prog_compiler_static_F77=
20319fi
20320
20321
20322{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20323echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020324if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20326else
20327 lt_cv_prog_compiler_c_o_F77=no
20328 $rm -r conftest 2>/dev/null
20329 mkdir conftest
20330 cd conftest
20331 mkdir out
20332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20333
John Criswell47fdd832003-07-14 16:52:07 +000020334 lt_compiler_flag="-o out/conftest2.$ac_objext"
20335 # Insert the option either (1) after the last *FLAGS variable, or
20336 # (2) before a word containing "conftest.", or (3) at the end.
20337 # Note that $ac_compile itself does not contain backslashes and begins
20338 # with a dollar sign (not a hyphen), so the echo should work correctly.
20339 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20342 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000020343 (eval echo "\"\$as_me:20343: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020344 (eval "$lt_compile" 2>out/conftest.err)
20345 ac_status=$?
20346 cat out/conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000020347 echo "$as_me:20347: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20349 then
20350 # The compiler can only warn and ignore the option if not recognized
20351 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020352 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020355 lt_cv_prog_compiler_c_o_F77=yes
20356 fi
20357 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020358 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020359 $rm conftest*
20360 # SGI C++ compiler will create directory out/ii_files/ for
20361 # template instantiation
20362 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20363 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020364 cd ..
20365 rmdir conftest
20366 $rm conftest*
20367
20368fi
Reid Spencera773bd52006-08-04 18:18:08 +000020369{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20370echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020371
20372
20373hard_links="nottested"
20374if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20375 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020376 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20377echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020378 hard_links=yes
20379 $rm conftest*
20380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20381 touch conftest.a
20382 ln conftest.a conftest.b 2>&5 || hard_links=no
20383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020384 { echo "$as_me:$LINENO: result: $hard_links" >&5
20385echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020386 if test "$hard_links" = no; then
20387 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20388echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20389 need_locks=warn
20390 fi
20391else
20392 need_locks=no
20393fi
20394
Reid Spencera773bd52006-08-04 18:18:08 +000020395{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20396echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020397
20398 runpath_var=
20399 allow_undefined_flag_F77=
20400 enable_shared_with_static_runtimes_F77=no
20401 archive_cmds_F77=
20402 archive_expsym_cmds_F77=
20403 old_archive_From_new_cmds_F77=
20404 old_archive_from_expsyms_cmds_F77=
20405 export_dynamic_flag_spec_F77=
20406 whole_archive_flag_spec_F77=
20407 thread_safe_flag_spec_F77=
20408 hardcode_libdir_flag_spec_F77=
20409 hardcode_libdir_flag_spec_ld_F77=
20410 hardcode_libdir_separator_F77=
20411 hardcode_direct_F77=no
20412 hardcode_minus_L_F77=no
20413 hardcode_shlibpath_var_F77=unsupported
20414 link_all_deplibs_F77=unknown
20415 hardcode_automatic_F77=no
20416 module_cmds_F77=
20417 module_expsym_cmds_F77=
20418 always_export_symbols_F77=no
20419 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20420 # include_expsyms should be a list of space-separated symbols to be *always*
20421 # included in the symbol list
20422 include_expsyms_F77=
20423 # exclude_expsyms can be an extended regexp of symbols to exclude
20424 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20425 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20426 # as well as any symbol that contains `d'.
20427 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20428 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20429 # platforms (ab)use it in PIC code, but their linkers get confused if
20430 # the symbol is explicitly referenced. Since portable code cannot
20431 # rely on this symbol name, it's probably fine to never include it in
20432 # preloaded symbol tables.
20433 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000020434 # Just being paranoid about ensuring that cc_basename is set.
20435 for cc_temp in $compiler""; do
20436 case $cc_temp in
20437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20439 \-*) ;;
20440 *) break;;
20441 esac
20442done
20443cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020444
20445 case $host_os in
20446 cygwin* | mingw* | pw32*)
20447 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20448 # When not using gcc, we currently assume that we are using
20449 # Microsoft Visual C++.
20450 if test "$GCC" != yes; then
20451 with_gnu_ld=no
20452 fi
20453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020454 interix*)
20455 # we just hope/assume this is gcc and not c89 (= MSVC++)
20456 with_gnu_ld=yes
20457 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020458 openbsd*)
20459 with_gnu_ld=no
20460 ;;
20461 esac
20462
20463 ld_shlibs_F77=yes
20464 if test "$with_gnu_ld" = yes; then
20465 # If archive_cmds runs LD, not CC, wlarc should be empty
20466 wlarc='${wl}'
20467
Reid Spencera773bd52006-08-04 18:18:08 +000020468 # Set some defaults for GNU ld with shared library support. These
20469 # are reset later if shared libraries are not supported. Putting them
20470 # here allows them to be overridden if necessary.
20471 runpath_var=LD_RUN_PATH
20472 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20473 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20474 # ancient GNU ld didn't support --whole-archive et. al.
20475 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20476 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20477 else
20478 whole_archive_flag_spec_F77=
20479 fi
20480 supports_anon_versioning=no
20481 case `$LD -v 2>/dev/null` in
20482 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20483 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20484 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20485 *\ 2.11.*) ;; # other 2.11 versions
20486 *) supports_anon_versioning=yes ;;
20487 esac
20488
John Criswell47fdd832003-07-14 16:52:07 +000020489 # See if GNU ld supports shared libraries.
20490 case $host_os in
20491 aix3* | aix4* | aix5*)
20492 # On AIX/PPC, the GNU linker is very broken
20493 if test "$host_cpu" != ia64; then
20494 ld_shlibs_F77=no
20495 cat <<EOF 1>&2
20496
20497*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20498*** to be unable to reliably create shared libraries on AIX.
20499*** Therefore, libtool is disabling shared libraries support. If you
20500*** really care for shared libraries, you may want to modify your PATH
20501*** so that a non-GNU linker is found, and then restart.
20502
20503EOF
20504 fi
20505 ;;
20506
20507 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000020508 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 +000020509 hardcode_libdir_flag_spec_F77='-L$libdir'
20510 hardcode_minus_L_F77=yes
20511
20512 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20513 # that the semantics of dynamic libraries on AmigaOS, at least up
20514 # to version 4, is to share data among multiple programs linked
20515 # with the same dynamic library. Since this doesn't match the
20516 # behavior of shared libraries on other platforms, we can't use
20517 # them.
20518 ld_shlibs_F77=no
20519 ;;
20520
20521 beos*)
20522 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20523 allow_undefined_flag_F77=unsupported
20524 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20525 # support --undefined. This deserves some investigation. FIXME
20526 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20527 else
20528 ld_shlibs_F77=no
20529 fi
20530 ;;
20531
20532 cygwin* | mingw* | pw32*)
20533 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20534 # as there is no search path for DLLs.
20535 hardcode_libdir_flag_spec_F77='-L$libdir'
20536 allow_undefined_flag_F77=unsupported
20537 always_export_symbols_F77=no
20538 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020539 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 +000020540
20541 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000020542 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 +000020543 # If the export-symbols file already is a .def file (1st line
20544 # is EXPORTS), use it as is; otherwise, prepend...
20545 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20546 cp $export_symbols $output_objdir/$soname.def;
20547 else
20548 echo EXPORTS > $output_objdir/$soname.def;
20549 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000020550 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000020551 $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 +000020552 else
Reid Spencera773bd52006-08-04 18:18:08 +000020553 ld_shlibs_F77=no
20554 fi
20555 ;;
20556
20557 interix3*)
20558 hardcode_direct_F77=no
20559 hardcode_shlibpath_var_F77=no
20560 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20561 export_dynamic_flag_spec_F77='${wl}-E'
20562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20563 # Instead, shared libraries are loaded at an image base (0x10000000 by
20564 # default) and relocated if they conflict, which is a slow very memory
20565 # consuming and fragmenting process. To avoid this, we pick a random,
20566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20567 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20568 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'
20569 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'
20570 ;;
20571
20572 linux*)
20573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20574 tmp_addflag=
20575 case $cc_basename,$host_cpu in
20576 pgcc*) # Portland Group C compiler
20577 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'
20578 tmp_addflag=' $pic_flag'
20579 ;;
20580 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20581 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'
20582 tmp_addflag=' $pic_flag -Mnomain' ;;
20583 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20584 tmp_addflag=' -i_dynamic' ;;
20585 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20586 tmp_addflag=' -i_dynamic -nofor_main' ;;
20587 ifc* | ifort*) # Intel Fortran compiler
20588 tmp_addflag=' -nofor_main' ;;
20589 esac
20590 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20591
20592 if test $supports_anon_versioning = yes; then
20593 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20594 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20595 $echo "local: *; };" >> $output_objdir/$libname.ver~
20596 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20597 fi
20598 else
20599 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020600 fi
20601 ;;
20602
20603 netbsd*)
20604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20605 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20606 wlarc=
20607 else
20608 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20609 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20610 fi
20611 ;;
20612
Reid Spencera773bd52006-08-04 18:18:08 +000020613 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020614 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20615 ld_shlibs_F77=no
20616 cat <<EOF 1>&2
20617
20618*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20619*** create shared libraries on Solaris systems. Therefore, libtool
20620*** is disabling shared libraries support. We urge you to upgrade GNU
20621*** binutils to release 2.9.1 or newer. Another option is to modify
20622*** your PATH or compiler configuration so that the native linker is
20623*** used, and then restart.
20624
20625EOF
20626 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20627 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20628 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20629 else
20630 ld_shlibs_F77=no
20631 fi
20632 ;;
20633
Reid Spencera773bd52006-08-04 18:18:08 +000020634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20635 case `$LD -v 2>&1` in
20636 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20637 ld_shlibs_F77=no
20638 cat <<_LT_EOF 1>&2
20639
20640*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20641*** reliably create shared libraries on SCO systems. Therefore, libtool
20642*** is disabling shared libraries support. We urge you to upgrade GNU
20643*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20644*** your PATH or compiler configuration so that the native linker is
20645*** used, and then restart.
20646
20647_LT_EOF
20648 ;;
20649 *)
20650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20651 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20652 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20653 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20654 else
20655 ld_shlibs_F77=no
20656 fi
20657 ;;
20658 esac
20659 ;;
20660
John Criswell47fdd832003-07-14 16:52:07 +000020661 sunos4*)
20662 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20663 wlarc=
20664 hardcode_direct_F77=yes
20665 hardcode_shlibpath_var_F77=no
20666 ;;
20667
20668 *)
20669 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20670 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20671 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20672 else
20673 ld_shlibs_F77=no
20674 fi
20675 ;;
20676 esac
20677
Reid Spencera773bd52006-08-04 18:18:08 +000020678 if test "$ld_shlibs_F77" = no; then
20679 runpath_var=
20680 hardcode_libdir_flag_spec_F77=
20681 export_dynamic_flag_spec_F77=
20682 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000020683 fi
20684 else
20685 # PORTME fill in a description of your system's linker (not GNU ld)
20686 case $host_os in
20687 aix3*)
20688 allow_undefined_flag_F77=unsupported
20689 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000020690 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 +000020691 # Note: this linker hardcodes the directories in LIBPATH if there
20692 # are no directories specified by -L.
20693 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020694 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000020695 # Neither direct hardcoding nor static linking is supported with a
20696 # broken collect2.
20697 hardcode_direct_F77=unsupported
20698 fi
20699 ;;
20700
20701 aix4* | aix5*)
20702 if test "$host_cpu" = ia64; then
20703 # On IA64, the linker does run time linking by default, so we don't
20704 # have to do anything special.
20705 aix_use_runtimelinking=no
20706 exp_sym_flag='-Bexport'
20707 no_entry_flag=""
20708 else
20709 # If we're using GNU nm, then we don't want the "-C" option.
20710 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20711 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20712 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'
20713 else
20714 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'
20715 fi
20716 aix_use_runtimelinking=no
20717
20718 # Test if we are trying to use run time linking or normal
20719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20720 # need to do runtime linking.
20721 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20722 for ld_flag in $LDFLAGS; do
20723 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20724 aix_use_runtimelinking=yes
20725 break
20726 fi
20727 done
Reid Spencera773bd52006-08-04 18:18:08 +000020728 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020729 esac
20730
20731 exp_sym_flag='-bexport'
20732 no_entry_flag='-bnoentry'
20733 fi
20734
20735 # When large executables or shared objects are built, AIX ld can
20736 # have problems creating the table of contents. If linking a library
20737 # or program results in "error TOC overflow" add -mminimal-toc to
20738 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20739 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20740
20741 archive_cmds_F77=''
20742 hardcode_direct_F77=yes
20743 hardcode_libdir_separator_F77=':'
20744 link_all_deplibs_F77=yes
20745
20746 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000020747 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000020748 # We only want to do this on AIX 4.2 and lower, the check
20749 # below for broken collect2 doesn't work under 4.3+
20750 collect2name=`${CC} -print-prog-name=collect2`
20751 if test -f "$collect2name" && \
20752 strings "$collect2name" | grep resolve_lib_name >/dev/null
20753 then
20754 # We have reworked collect2
20755 hardcode_direct_F77=yes
20756 else
20757 # We have old collect2
20758 hardcode_direct_F77=unsupported
20759 # It fails to find uninstalled libraries when the uninstalled
20760 # path is not listed in the libpath. Setting hardcode_minus_L
20761 # to unsupported forces relinking
20762 hardcode_minus_L_F77=yes
20763 hardcode_libdir_flag_spec_F77='-L$libdir'
20764 hardcode_libdir_separator_F77=
20765 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020766 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020767 esac
20768 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000020769 if test "$aix_use_runtimelinking" = yes; then
20770 shared_flag="$shared_flag "'${wl}-G'
20771 fi
John Criswell47fdd832003-07-14 16:52:07 +000020772 else
20773 # not using gcc
20774 if test "$host_cpu" = ia64; then
20775 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20776 # chokes on -Wl,-G. The following line is correct:
20777 shared_flag='-G'
20778 else
Reid Spencera773bd52006-08-04 18:18:08 +000020779 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000020780 shared_flag='${wl}-G'
20781 else
20782 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000020783 fi
John Criswell47fdd832003-07-14 16:52:07 +000020784 fi
20785 fi
20786
20787 # It seems that -bexpall does not export symbols beginning with
20788 # underscore (_), so it is better to generate a list of symbols to export.
20789 always_export_symbols_F77=yes
20790 if test "$aix_use_runtimelinking" = yes; then
20791 # Warning - without using the other runtime loading flags (-brtl),
20792 # -berok will link without error, but may produce a broken library.
20793 allow_undefined_flag_F77='-berok'
20794 # Determine the default libpath from the value encoded in an empty executable.
20795 cat >conftest.$ac_ext <<_ACEOF
20796 program main
20797
20798 end
20799_ACEOF
20800rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000020801if { (ac_try="$ac_link"
20802case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20805esac
20806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000020808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000020812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000020813 (exit $ac_status); } && {
20814 test -z "$ac_f77_werror_flag" ||
20815 test ! -s conftest.err
20816 } && test -s conftest$ac_exeext &&
20817 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000020818
20819aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20820}'`
20821# Check for a 64-bit object if we didn't find anything.
20822if 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; }
20823}'`; fi
20824else
20825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020826sed 's/^/| /' conftest.$ac_ext >&5
20827
Reid Spencera773bd52006-08-04 18:18:08 +000020828
John Criswell47fdd832003-07-14 16:52:07 +000020829fi
Reid Spencera773bd52006-08-04 18:18:08 +000020830
Scott Michel96dcd2b2007-12-05 21:24:02 +000020831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020832 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000020833if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20834
20835 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000020836 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 +000020837 else
20838 if test "$host_cpu" = ia64; then
20839 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20840 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000020841 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 +000020842 else
20843 # Determine the default libpath from the value encoded in an empty executable.
20844 cat >conftest.$ac_ext <<_ACEOF
20845 program main
20846
20847 end
20848_ACEOF
20849rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000020850if { (ac_try="$ac_link"
20851case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20854esac
20855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000020857 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000020861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000020862 (exit $ac_status); } && {
20863 test -z "$ac_f77_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest$ac_exeext &&
20866 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000020867
20868aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20869}'`
20870# Check for a 64-bit object if we didn't find anything.
20871if 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; }
20872}'`; fi
20873else
20874 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020875sed 's/^/| /' conftest.$ac_ext >&5
20876
Reid Spencera773bd52006-08-04 18:18:08 +000020877
John Criswell47fdd832003-07-14 16:52:07 +000020878fi
Reid Spencera773bd52006-08-04 18:18:08 +000020879
Scott Michel96dcd2b2007-12-05 21:24:02 +000020880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020881 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000020882if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20883
20884 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20885 # Warning - without using the other run time loading flags,
20886 # -berok will link without error, but may produce a broken library.
20887 no_undefined_flag_F77=' ${wl}-bernotok'
20888 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000020889 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000020890 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000020891 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020892 # This is similar to how AIX traditionally builds its shared libraries.
20893 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 +000020894 fi
20895 fi
20896 ;;
20897
20898 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000020899 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 +000020900 hardcode_libdir_flag_spec_F77='-L$libdir'
20901 hardcode_minus_L_F77=yes
20902 # see comment about different semantics on the GNU ld section
20903 ld_shlibs_F77=no
20904 ;;
20905
Reid Spencer2706f8c2004-09-19 23:53:36 +000020906 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020907 export_dynamic_flag_spec_F77=-rdynamic
20908 ;;
20909
20910 cygwin* | mingw* | pw32*)
20911 # When not using gcc, we currently assume that we are using
20912 # Microsoft Visual C++.
20913 # hardcode_libdir_flag_spec is actually meaningless, as there is
20914 # no search path for DLLs.
20915 hardcode_libdir_flag_spec_F77=' '
20916 allow_undefined_flag_F77=unsupported
20917 # Tell ltmain to make .lib files, not .a files.
20918 libext=lib
20919 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020920 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020921 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000020922 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 +000020923 # The linker will automatically build a .lib file if we build a DLL.
20924 old_archive_From_new_cmds_F77='true'
20925 # FIXME: Should let the user specify the lib program.
20926 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000020927 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000020928 enable_shared_with_static_runtimes_F77=yes
20929 ;;
20930
20931 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000020932 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020933 rhapsody* | darwin1.[012])
20934 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20935 ;;
20936 *) # Darwin 1.3 on
20937 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20938 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20939 else
20940 case ${MACOSX_DEPLOYMENT_TARGET} in
20941 10.[012])
20942 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20943 ;;
20944 10.*)
20945 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20946 ;;
20947 esac
20948 fi
20949 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020950 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000020951 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020952 hardcode_direct_F77=no
20953 hardcode_automatic_F77=yes
20954 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000020955 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000020956 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000020957 if test "$GCC" = yes ; then
20958 output_verbose_link_cmd='echo'
20959 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20960 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000020961 # 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 +000020962 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}'
20963 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 +000020964 else
Reid Spencera773bd52006-08-04 18:18:08 +000020965 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020966 xlc*)
20967 output_verbose_link_cmd='echo'
20968 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20969 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000020970 # 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 +000020971 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}'
20972 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 +000020973 ;;
20974 *)
20975 ld_shlibs_F77=no
20976 ;;
20977 esac
John Criswell47fdd832003-07-14 16:52:07 +000020978 fi
20979 ;;
20980
20981 dgux*)
20982 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20983 hardcode_libdir_flag_spec_F77='-L$libdir'
20984 hardcode_shlibpath_var_F77=no
20985 ;;
20986
20987 freebsd1*)
20988 ld_shlibs_F77=no
20989 ;;
20990
20991 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20992 # support. Future versions do this automatically, but an explicit c++rt0.o
20993 # does not break anything, and helps significantly (at the cost of a little
20994 # extra space).
20995 freebsd2.2*)
20996 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20997 hardcode_libdir_flag_spec_F77='-R$libdir'
20998 hardcode_direct_F77=yes
20999 hardcode_shlibpath_var_F77=no
21000 ;;
21001
21002 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21003 freebsd2*)
21004 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21005 hardcode_direct_F77=yes
21006 hardcode_minus_L_F77=yes
21007 hardcode_shlibpath_var_F77=no
21008 ;;
21009
21010 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021011 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021012 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21013 hardcode_libdir_flag_spec_F77='-R$libdir'
21014 hardcode_direct_F77=yes
21015 hardcode_shlibpath_var_F77=no
21016 ;;
21017
21018 hpux9*)
21019 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021020 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 +000021021 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021022 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 +000021023 fi
21024 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21025 hardcode_libdir_separator_F77=:
21026 hardcode_direct_F77=yes
21027
21028 # hardcode_minus_L: Not really in the search PATH,
21029 # but as the default location of the library.
21030 hardcode_minus_L_F77=yes
21031 export_dynamic_flag_spec_F77='${wl}-E'
21032 ;;
21033
Reid Spencera773bd52006-08-04 18:18:08 +000021034 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021035 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021036 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21037 else
21038 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21039 fi
21040 if test "$with_gnu_ld" = no; then
21041 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21042 hardcode_libdir_separator_F77=:
21043
21044 hardcode_direct_F77=yes
21045 export_dynamic_flag_spec_F77='${wl}-E'
21046
21047 # hardcode_minus_L: Not really in the search PATH,
21048 # but as the default location of the library.
21049 hardcode_minus_L_F77=yes
21050 fi
21051 ;;
21052
21053 hpux11*)
21054 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21055 case $host_cpu in
21056 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021057 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21058 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021059 ia64*)
21060 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21061 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021062 *)
21063 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21064 ;;
21065 esac
21066 else
Reid Spencera773bd52006-08-04 18:18:08 +000021067 case $host_cpu in
21068 hppa*64*)
21069 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21070 ;;
21071 ia64*)
21072 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021073 ;;
21074 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021075 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 +000021076 ;;
21077 esac
21078 fi
21079 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021080 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21081 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000021082
Reid Spencera773bd52006-08-04 18:18:08 +000021083 case $host_cpu in
21084 hppa*64*|ia64*)
21085 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21086 hardcode_direct_F77=no
21087 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021088 ;;
21089 *)
John Criswell47fdd832003-07-14 16:52:07 +000021090 hardcode_direct_F77=yes
21091 export_dynamic_flag_spec_F77='${wl}-E'
21092
21093 # hardcode_minus_L: Not really in the search PATH,
21094 # but as the default location of the library.
21095 hardcode_minus_L_F77=yes
21096 ;;
21097 esac
21098 fi
21099 ;;
21100
21101 irix5* | irix6* | nonstopux*)
21102 if test "$GCC" = yes; then
21103 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'
21104 else
21105 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'
21106 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21107 fi
21108 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21109 hardcode_libdir_separator_F77=:
21110 link_all_deplibs_F77=yes
21111 ;;
21112
21113 netbsd*)
21114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21115 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21116 else
21117 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21118 fi
21119 hardcode_libdir_flag_spec_F77='-R$libdir'
21120 hardcode_direct_F77=yes
21121 hardcode_shlibpath_var_F77=no
21122 ;;
21123
21124 newsos6)
21125 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21126 hardcode_direct_F77=yes
21127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21128 hardcode_libdir_separator_F77=:
21129 hardcode_shlibpath_var_F77=no
21130 ;;
21131
21132 openbsd*)
21133 hardcode_direct_F77=yes
21134 hardcode_shlibpath_var_F77=no
21135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21136 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021137 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 +000021138 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21139 export_dynamic_flag_spec_F77='${wl}-E'
21140 else
21141 case $host_os in
21142 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21143 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21144 hardcode_libdir_flag_spec_F77='-R$libdir'
21145 ;;
21146 *)
21147 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21148 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21149 ;;
21150 esac
21151 fi
21152 ;;
21153
21154 os2*)
21155 hardcode_libdir_flag_spec_F77='-L$libdir'
21156 hardcode_minus_L_F77=yes
21157 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000021158 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 +000021159 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21160 ;;
21161
21162 osf3*)
21163 if test "$GCC" = yes; then
21164 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21165 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'
21166 else
21167 allow_undefined_flag_F77=' -expect_unresolved \*'
21168 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'
21169 fi
21170 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21171 hardcode_libdir_separator_F77=:
21172 ;;
21173
21174 osf4* | osf5*) # as osf3* with the addition of -msym flag
21175 if test "$GCC" = yes; then
21176 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21177 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'
21178 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21179 else
21180 allow_undefined_flag_F77=' -expect_unresolved \*'
21181 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 +000021182 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 +000021183 $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 +000021184
John Criswell47fdd832003-07-14 16:52:07 +000021185 # Both c and cxx compiler support -rpath directly
21186 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21187 fi
21188 hardcode_libdir_separator_F77=:
21189 ;;
21190
John Criswell47fdd832003-07-14 16:52:07 +000021191 solaris*)
21192 no_undefined_flag_F77=' -z text'
21193 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021194 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000021195 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021196 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21197 $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 +000021198 else
Reid Spencera773bd52006-08-04 18:18:08 +000021199 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000021200 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021201 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21202 $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 +000021203 fi
21204 hardcode_libdir_flag_spec_F77='-R$libdir'
21205 hardcode_shlibpath_var_F77=no
21206 case $host_os in
21207 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021208 *)
21209 # The compiler driver will combine linker options so we
21210 # cannot just pass the convience library names through
21211 # without $wl, iff we do not link with $LD.
21212 # Luckily, gcc supports the same syntax we need for Sun Studio.
21213 # Supported since Solaris 2.6 (maybe 2.5.1?)
21214 case $wlarc in
21215 '')
21216 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21217 *)
21218 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' ;;
21219 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000021220 esac
21221 link_all_deplibs_F77=yes
21222 ;;
21223
21224 sunos4*)
21225 if test "x$host_vendor" = xsequent; then
21226 # Use $CC to link under sequent, because it throws in some extra .o
21227 # files that make .init and .fini sections work.
21228 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21229 else
21230 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21231 fi
21232 hardcode_libdir_flag_spec_F77='-L$libdir'
21233 hardcode_direct_F77=yes
21234 hardcode_minus_L_F77=yes
21235 hardcode_shlibpath_var_F77=no
21236 ;;
21237
21238 sysv4)
21239 case $host_vendor in
21240 sni)
21241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21242 hardcode_direct_F77=yes # is this really true???
21243 ;;
21244 siemens)
21245 ## LD is ld it makes a PLAMLIB
21246 ## CC just makes a GrossModule.
21247 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21248 reload_cmds_F77='$CC -r -o $output$reload_objs'
21249 hardcode_direct_F77=no
21250 ;;
21251 motorola)
21252 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21253 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21254 ;;
21255 esac
21256 runpath_var='LD_RUN_PATH'
21257 hardcode_shlibpath_var_F77=no
21258 ;;
21259
21260 sysv4.3*)
21261 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21262 hardcode_shlibpath_var_F77=no
21263 export_dynamic_flag_spec_F77='-Bexport'
21264 ;;
21265
21266 sysv4*MP*)
21267 if test -d /usr/nec; then
21268 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21269 hardcode_shlibpath_var_F77=no
21270 runpath_var=LD_RUN_PATH
21271 hardcode_runpath_var=yes
21272 ld_shlibs_F77=yes
21273 fi
21274 ;;
21275
Reid Spencera773bd52006-08-04 18:18:08 +000021276 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21277 no_undefined_flag_F77='${wl}-z,text'
21278 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021279 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021280 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000021281
John Criswell47fdd832003-07-14 16:52:07 +000021282 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021283 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21284 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 +000021285 else
Reid Spencera773bd52006-08-04 18:18:08 +000021286 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21287 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 +000021288 fi
John Criswell47fdd832003-07-14 16:52:07 +000021289 ;;
21290
Reid Spencera773bd52006-08-04 18:18:08 +000021291 sysv5* | sco3.2v5* | sco5v6*)
21292 # Note: We can NOT use -z defs as we might desire, because we do not
21293 # link with -lc, and that would cause any symbols used from libc to
21294 # always be unresolved, which means just about no library would
21295 # ever link correctly. If we're not using GNU ld we use -z text
21296 # though, which does catch some bad symbols but isn't as heavy-handed
21297 # as -z defs.
21298 no_undefined_flag_F77='${wl}-z,text'
21299 allow_undefined_flag_F77='${wl}-z,nodefs'
21300 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021301 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021302 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21303 hardcode_libdir_separator_F77=':'
21304 link_all_deplibs_F77=yes
21305 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000021306 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000021307
21308 if test "$GCC" = yes; then
21309 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21310 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21311 else
21312 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21313 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21314 fi
John Criswell47fdd832003-07-14 16:52:07 +000021315 ;;
21316
21317 uts4*)
21318 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21319 hardcode_libdir_flag_spec_F77='-L$libdir'
21320 hardcode_shlibpath_var_F77=no
21321 ;;
21322
21323 *)
21324 ld_shlibs_F77=no
21325 ;;
21326 esac
21327 fi
21328
Reid Spencera773bd52006-08-04 18:18:08 +000021329{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21330echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021331test "$ld_shlibs_F77" = no && can_build_shared=no
21332
John Criswell47fdd832003-07-14 16:52:07 +000021333#
21334# Do we need to explicitly link libc?
21335#
21336case "x$archive_cmds_need_lc_F77" in
21337x|xyes)
21338 # Assume -lc should be added
21339 archive_cmds_need_lc_F77=yes
21340
21341 if test "$enable_shared" = yes && test "$GCC" = yes; then
21342 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021343 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000021344 # FIXME: we may have to deal with multi-command sequences.
21345 ;;
21346 '$CC '*)
21347 # Test whether the compiler implicitly links with -lc since on some
21348 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21349 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000021350 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21351echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021352 $rm conftest*
21353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21354
21355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21356 (eval $ac_compile) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } 2>conftest.err; then
21360 soname=conftest
21361 lib=conftest
21362 libobjs=conftest.$ac_objext
21363 deplibs=
21364 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000021365 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000021366 compiler_flags=-v
21367 linker_flags=-v
21368 verstring=
21369 output_objdir=.
21370 libname=conftest
21371 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21372 allow_undefined_flag_F77=
21373 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21374 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }
21378 then
21379 archive_cmds_need_lc_F77=no
21380 else
21381 archive_cmds_need_lc_F77=yes
21382 fi
21383 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21384 else
21385 cat conftest.err 1>&5
21386 fi
21387 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000021388 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21389echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021390 ;;
21391 esac
21392 fi
21393 ;;
21394esac
21395
Reid Spencera773bd52006-08-04 18:18:08 +000021396{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21397echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021398library_names_spec=
21399libname_spec='lib$name'
21400soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000021401shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000021402postinstall_cmds=
21403postuninstall_cmds=
21404finish_cmds=
21405finish_eval=
21406shlibpath_var=
21407shlibpath_overrides_runpath=unknown
21408version_type=none
21409dynamic_linker="$host_os ld.so"
21410sys_lib_dlsearch_path_spec="/lib /usr/lib"
21411if test "$GCC" = yes; then
21412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21413 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21414 # if the path contains ";" then we assume it to be the separator
21415 # otherwise default to the standard path separator (i.e. ":") - it is
21416 # assumed that no part of a normal pathname contains ";" but that should
21417 # okay in the real world where ";" in dirpaths is itself problematic.
21418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21419 else
21420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21421 fi
21422else
21423 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21424fi
21425need_lib_prefix=unknown
21426hardcode_into_libs=no
21427
21428# when you set need_version to no, make sure it does not cause -set_version
21429# flags to be left without arguments
21430need_version=unknown
21431
21432case $host_os in
21433aix3*)
21434 version_type=linux
21435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21436 shlibpath_var=LIBPATH
21437
21438 # AIX 3 has no versioning support, so we append a major version to the name.
21439 soname_spec='${libname}${release}${shared_ext}$major'
21440 ;;
21441
21442aix4* | aix5*)
21443 version_type=linux
21444 need_lib_prefix=no
21445 need_version=no
21446 hardcode_into_libs=yes
21447 if test "$host_cpu" = ia64; then
21448 # AIX 5 supports IA64
21449 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21450 shlibpath_var=LD_LIBRARY_PATH
21451 else
21452 # With GCC up to 2.95.x, collect2 would create an import file
21453 # for dependence libraries. The import file would start with
21454 # the line `#! .'. This would cause the generated library to
21455 # depend on `.', always an invalid library. This was fixed in
21456 # development snapshots of GCC prior to 3.0.
21457 case $host_os in
21458 aix4 | aix4.[01] | aix4.[01].*)
21459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21460 echo ' yes '
21461 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21462 :
21463 else
21464 can_build_shared=no
21465 fi
21466 ;;
21467 esac
21468 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21469 # soname into executable. Probably we can add versioning support to
21470 # collect2, so additional links can be useful in future.
21471 if test "$aix_use_runtimelinking" = yes; then
21472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21473 # instead of lib<name>.a to let people know that these are not
21474 # typical AIX shared libraries.
21475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21476 else
21477 # We preserve .a as extension for shared libraries through AIX4.2
21478 # and later when we are not doing run time linking.
21479 library_names_spec='${libname}${release}.a $libname.a'
21480 soname_spec='${libname}${release}${shared_ext}$major'
21481 fi
21482 shlibpath_var=LIBPATH
21483 fi
21484 ;;
21485
21486amigaos*)
21487 library_names_spec='$libname.ixlibrary $libname.a'
21488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021489 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 +000021490 ;;
21491
21492beos*)
21493 library_names_spec='${libname}${shared_ext}'
21494 dynamic_linker="$host_os ld.so"
21495 shlibpath_var=LIBRARY_PATH
21496 ;;
21497
Reid Spencer2706f8c2004-09-19 23:53:36 +000021498bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021499 version_type=linux
21500 need_version=no
21501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21502 soname_spec='${libname}${release}${shared_ext}$major'
21503 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21504 shlibpath_var=LD_LIBRARY_PATH
21505 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21506 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21507 # the default ld.so.conf also contains /usr/contrib/lib and
21508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21509 # libtool to hard-code these into programs
21510 ;;
21511
21512cygwin* | mingw* | pw32*)
21513 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000021514 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021515 need_version=no
21516 need_lib_prefix=no
21517
21518 case $GCC,$host_os in
21519 yes,cygwin* | yes,mingw* | yes,pw32*)
21520 library_names_spec='$libname.dll.a'
21521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000021522 postinstall_cmds='base_file=`basename \${file}`~
21523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21524 dldir=$destdir/`dirname \$dlpath`~
21525 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000021526 $install_prog $dir/$dlname \$dldir/$dlname~
21527 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000021528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21529 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000021530 $rm \$dlpath'
21531 shlibpath_overrides_runpath=yes
21532
21533 case $host_os in
21534 cygwin*)
21535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21536 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 +000021537 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000021538 ;;
21539 mingw*)
21540 # MinGW DLLs use traditional 'lib' prefix
21541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21543 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21544 # It is most probably a Windows format PATH printed by
21545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21546 # path with ; separators, and with drive letters. We can handle the
21547 # drive letters (cygwin fileutils understands them), so leave them,
21548 # especially as we might pass files found there to a mingw objdump,
21549 # which wouldn't understand a cygwinified path. Ahh.
21550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21551 else
21552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21553 fi
21554 ;;
21555 pw32*)
21556 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000021557 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 +000021558 ;;
21559 esac
21560 ;;
21561
21562 *)
21563 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21564 ;;
21565 esac
21566 dynamic_linker='Win32 ld.exe'
21567 # FIXME: first we should search . and the directory the executable is in
21568 shlibpath_var=PATH
21569 ;;
21570
21571darwin* | rhapsody*)
21572 dynamic_linker="$host_os dyld"
21573 version_type=darwin
21574 need_lib_prefix=no
21575 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000021576 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000021577 soname_spec='${libname}${release}${major}$shared_ext'
21578 shlibpath_overrides_runpath=yes
21579 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000021580 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000021581 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021582 if test "$GCC" = yes; then
21583 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"`
21584 else
21585 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000021586 fi
21587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21588 ;;
21589
21590dgux*)
21591 version_type=linux
21592 need_lib_prefix=no
21593 need_version=no
21594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21595 soname_spec='${libname}${release}${shared_ext}$major'
21596 shlibpath_var=LD_LIBRARY_PATH
21597 ;;
21598
21599freebsd1*)
21600 dynamic_linker=no
21601 ;;
21602
Reid Spencer2706f8c2004-09-19 23:53:36 +000021603kfreebsd*-gnu)
21604 version_type=linux
21605 need_lib_prefix=no
21606 need_version=no
21607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21608 soname_spec='${libname}${release}${shared_ext}$major'
21609 shlibpath_var=LD_LIBRARY_PATH
21610 shlibpath_overrides_runpath=no
21611 hardcode_into_libs=yes
21612 dynamic_linker='GNU ld.so'
21613 ;;
21614
Reid Spencera773bd52006-08-04 18:18:08 +000021615freebsd* | dragonfly*)
21616 # DragonFly does not have aout. When/if they implement a new
21617 # versioning mechanism, adjust this.
21618 if test -x /usr/bin/objformat; then
21619 objformat=`/usr/bin/objformat`
21620 else
21621 case $host_os in
21622 freebsd[123]*) objformat=aout ;;
21623 *) objformat=elf ;;
21624 esac
21625 fi
John Criswell47fdd832003-07-14 16:52:07 +000021626 version_type=freebsd-$objformat
21627 case $version_type in
21628 freebsd-elf*)
21629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21630 need_version=no
21631 need_lib_prefix=no
21632 ;;
21633 freebsd-*)
21634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21635 need_version=yes
21636 ;;
21637 esac
21638 shlibpath_var=LD_LIBRARY_PATH
21639 case $host_os in
21640 freebsd2*)
21641 shlibpath_overrides_runpath=yes
21642 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021643 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000021644 shlibpath_overrides_runpath=yes
21645 hardcode_into_libs=yes
21646 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021647 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21648 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000021649 shlibpath_overrides_runpath=no
21650 hardcode_into_libs=yes
21651 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021652 freebsd*) # from 4.6 on
21653 shlibpath_overrides_runpath=yes
21654 hardcode_into_libs=yes
21655 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021656 esac
21657 ;;
21658
21659gnu*)
21660 version_type=linux
21661 need_lib_prefix=no
21662 need_version=no
21663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21664 soname_spec='${libname}${release}${shared_ext}$major'
21665 shlibpath_var=LD_LIBRARY_PATH
21666 hardcode_into_libs=yes
21667 ;;
21668
21669hpux9* | hpux10* | hpux11*)
21670 # Give a soname corresponding to the major version so that dld.sl refuses to
21671 # link against other versions.
21672 version_type=sunos
21673 need_lib_prefix=no
21674 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000021675 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021676 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021677 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000021678 hardcode_into_libs=yes
21679 dynamic_linker="$host_os dld.so"
21680 shlibpath_var=LD_LIBRARY_PATH
21681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21683 soname_spec='${libname}${release}${shared_ext}$major'
21684 if test "X$HPUX_IA64_MODE" = X32; then
21685 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21686 else
21687 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21688 fi
21689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21690 ;;
21691 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021692 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021693 hardcode_into_libs=yes
21694 dynamic_linker="$host_os dld.sl"
21695 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21698 soname_spec='${libname}${release}${shared_ext}$major'
21699 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21701 ;;
21702 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021703 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021704 dynamic_linker="$host_os dld.sl"
21705 shlibpath_var=SHLIB_PATH
21706 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21708 soname_spec='${libname}${release}${shared_ext}$major'
21709 ;;
21710 esac
21711 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21712 postinstall_cmds='chmod 555 $lib'
21713 ;;
21714
Reid Spencera773bd52006-08-04 18:18:08 +000021715interix3*)
21716 version_type=linux
21717 need_lib_prefix=no
21718 need_version=no
21719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21720 soname_spec='${libname}${release}${shared_ext}$major'
21721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21722 shlibpath_var=LD_LIBRARY_PATH
21723 shlibpath_overrides_runpath=no
21724 hardcode_into_libs=yes
21725 ;;
21726
John Criswell47fdd832003-07-14 16:52:07 +000021727irix5* | irix6* | nonstopux*)
21728 case $host_os in
21729 nonstopux*) version_type=nonstopux ;;
21730 *)
21731 if test "$lt_cv_prog_gnu_ld" = yes; then
21732 version_type=linux
21733 else
21734 version_type=irix
21735 fi ;;
21736 esac
21737 need_lib_prefix=no
21738 need_version=no
21739 soname_spec='${libname}${release}${shared_ext}$major'
21740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21741 case $host_os in
21742 irix5* | nonstopux*)
21743 libsuff= shlibsuff=
21744 ;;
21745 *)
21746 case $LD in # libtool.m4 will add one of these switches to LD
21747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21748 libsuff= shlibsuff= libmagic=32-bit;;
21749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21750 libsuff=32 shlibsuff=N32 libmagic=N32;;
21751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21753 *) libsuff= shlibsuff= libmagic=never-match;;
21754 esac
21755 ;;
21756 esac
21757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21758 shlibpath_overrides_runpath=no
21759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21761 hardcode_into_libs=yes
21762 ;;
21763
21764# No shared lib support for Linux oldld, aout, or coff.
21765linux*oldld* | linux*aout* | linux*coff*)
21766 dynamic_linker=no
21767 ;;
21768
21769# This must be Linux ELF.
21770linux*)
21771 version_type=linux
21772 need_lib_prefix=no
21773 need_version=no
21774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21775 soname_spec='${libname}${release}${shared_ext}$major'
21776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21777 shlibpath_var=LD_LIBRARY_PATH
21778 shlibpath_overrides_runpath=no
21779 # This implies no fast_install, which is unacceptable.
21780 # Some rework will be needed to allow for fast_install
21781 # before this can be enabled.
21782 hardcode_into_libs=yes
21783
Reid Spencer2706f8c2004-09-19 23:53:36 +000021784 # Append ld.so.conf contents to the search path
21785 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000021786 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 +000021787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21788 fi
21789
John Criswell47fdd832003-07-14 16:52:07 +000021790 # We used to test for /lib/ld.so.1 and disable shared libraries on
21791 # powerpc, because MkLinux only supported shared libraries with the
21792 # GNU dynamic linker. Since this was broken with cross compilers,
21793 # most powerpc-linux boxes support dynamic linking these days and
21794 # people can always --disable-shared, the test was removed, and we
21795 # assume the GNU/Linux dynamic linker is in use.
21796 dynamic_linker='GNU/Linux ld.so'
21797 ;;
21798
Reid Spencer2706f8c2004-09-19 23:53:36 +000021799knetbsd*-gnu)
21800 version_type=linux
21801 need_lib_prefix=no
21802 need_version=no
21803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21804 soname_spec='${libname}${release}${shared_ext}$major'
21805 shlibpath_var=LD_LIBRARY_PATH
21806 shlibpath_overrides_runpath=no
21807 hardcode_into_libs=yes
21808 dynamic_linker='GNU ld.so'
21809 ;;
21810
John Criswell47fdd832003-07-14 16:52:07 +000021811netbsd*)
21812 version_type=sunos
21813 need_lib_prefix=no
21814 need_version=no
21815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21818 dynamic_linker='NetBSD (a.out) ld.so'
21819 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000021821 soname_spec='${libname}${release}${shared_ext}$major'
21822 dynamic_linker='NetBSD ld.elf_so'
21823 fi
21824 shlibpath_var=LD_LIBRARY_PATH
21825 shlibpath_overrides_runpath=yes
21826 hardcode_into_libs=yes
21827 ;;
21828
21829newsos6)
21830 version_type=linux
21831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21832 shlibpath_var=LD_LIBRARY_PATH
21833 shlibpath_overrides_runpath=yes
21834 ;;
21835
Reid Spencer2706f8c2004-09-19 23:53:36 +000021836nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000021837 version_type=linux
21838 need_lib_prefix=no
21839 need_version=no
21840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21841 soname_spec='${libname}${release}${shared_ext}$major'
21842 shlibpath_var=LD_LIBRARY_PATH
21843 shlibpath_overrides_runpath=yes
21844 ;;
21845
21846openbsd*)
21847 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000021848 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000021849 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000021850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21851 case $host_os in
21852 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21853 *) need_version=no ;;
21854 esac
John Criswell47fdd832003-07-14 16:52:07 +000021855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21857 shlibpath_var=LD_LIBRARY_PATH
21858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21859 case $host_os in
21860 openbsd2.[89] | openbsd2.[89].*)
21861 shlibpath_overrides_runpath=no
21862 ;;
21863 *)
21864 shlibpath_overrides_runpath=yes
21865 ;;
21866 esac
21867 else
21868 shlibpath_overrides_runpath=yes
21869 fi
21870 ;;
21871
21872os2*)
21873 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021874 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021875 need_lib_prefix=no
21876 library_names_spec='$libname${shared_ext} $libname.a'
21877 dynamic_linker='OS/2 ld.exe'
21878 shlibpath_var=LIBPATH
21879 ;;
21880
21881osf3* | osf4* | osf5*)
21882 version_type=osf
21883 need_lib_prefix=no
21884 need_version=no
21885 soname_spec='${libname}${release}${shared_ext}$major'
21886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21887 shlibpath_var=LD_LIBRARY_PATH
21888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21889 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21890 ;;
21891
John Criswell47fdd832003-07-14 16:52:07 +000021892solaris*)
21893 version_type=linux
21894 need_lib_prefix=no
21895 need_version=no
21896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21897 soname_spec='${libname}${release}${shared_ext}$major'
21898 shlibpath_var=LD_LIBRARY_PATH
21899 shlibpath_overrides_runpath=yes
21900 hardcode_into_libs=yes
21901 # ldd complains unless libraries are executable
21902 postinstall_cmds='chmod +x $lib'
21903 ;;
21904
21905sunos4*)
21906 version_type=sunos
21907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21909 shlibpath_var=LD_LIBRARY_PATH
21910 shlibpath_overrides_runpath=yes
21911 if test "$with_gnu_ld" = yes; then
21912 need_lib_prefix=no
21913 fi
21914 need_version=yes
21915 ;;
21916
Reid Spencera773bd52006-08-04 18:18:08 +000021917sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021918 version_type=linux
21919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21920 soname_spec='${libname}${release}${shared_ext}$major'
21921 shlibpath_var=LD_LIBRARY_PATH
21922 case $host_vendor in
21923 sni)
21924 shlibpath_overrides_runpath=no
21925 need_lib_prefix=no
21926 export_dynamic_flag_spec='${wl}-Blargedynsym'
21927 runpath_var=LD_RUN_PATH
21928 ;;
21929 siemens)
21930 need_lib_prefix=no
21931 ;;
21932 motorola)
21933 need_lib_prefix=no
21934 need_version=no
21935 shlibpath_overrides_runpath=no
21936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21937 ;;
21938 esac
21939 ;;
21940
21941sysv4*MP*)
21942 if test -d /usr/nec ;then
21943 version_type=linux
21944 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21945 soname_spec='$libname${shared_ext}.$major'
21946 shlibpath_var=LD_LIBRARY_PATH
21947 fi
21948 ;;
21949
Reid Spencera773bd52006-08-04 18:18:08 +000021950sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21951 version_type=freebsd-elf
21952 need_lib_prefix=no
21953 need_version=no
21954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21955 soname_spec='${libname}${release}${shared_ext}$major'
21956 shlibpath_var=LD_LIBRARY_PATH
21957 hardcode_into_libs=yes
21958 if test "$with_gnu_ld" = yes; then
21959 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21960 shlibpath_overrides_runpath=no
21961 else
21962 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21963 shlibpath_overrides_runpath=yes
21964 case $host_os in
21965 sco3.2v5*)
21966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21967 ;;
21968 esac
21969 fi
21970 sys_lib_dlsearch_path_spec='/usr/lib'
21971 ;;
21972
John Criswell47fdd832003-07-14 16:52:07 +000021973uts4*)
21974 version_type=linux
21975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21976 soname_spec='${libname}${release}${shared_ext}$major'
21977 shlibpath_var=LD_LIBRARY_PATH
21978 ;;
21979
21980*)
21981 dynamic_linker=no
21982 ;;
21983esac
Reid Spencera773bd52006-08-04 18:18:08 +000021984{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21985echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021986test "$dynamic_linker" = no && can_build_shared=no
21987
Reid Spencera773bd52006-08-04 18:18:08 +000021988variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21989if test "$GCC" = yes; then
21990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21991fi
21992
21993{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21994echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021995hardcode_action_F77=
21996if test -n "$hardcode_libdir_flag_spec_F77" || \
21997 test -n "$runpath_var_F77" || \
21998 test "X$hardcode_automatic_F77" = "Xyes" ; then
21999
22000 # We can hardcode non-existant directories.
22001 if test "$hardcode_direct_F77" != no &&
22002 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22003 # have to relink, otherwise we might link with an installed library
22004 # when we should be linking with a yet-to-be-installed one
22005 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22006 test "$hardcode_minus_L_F77" != no; then
22007 # Linking always hardcodes the temporary library directory.
22008 hardcode_action_F77=relink
22009 else
22010 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22011 hardcode_action_F77=immediate
22012 fi
22013else
22014 # We cannot hardcode anything, or else we can only hardcode existing
22015 # directories.
22016 hardcode_action_F77=unsupported
22017fi
Reid Spencera773bd52006-08-04 18:18:08 +000022018{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22019echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022020
22021if test "$hardcode_action_F77" = relink; then
22022 # Fast installation is not supported
22023 enable_fast_install=no
22024elif test "$shlibpath_overrides_runpath" = yes ||
22025 test "$enable_shared" = no; then
22026 # Fast installation is not necessary
22027 enable_fast_install=needless
22028fi
22029
John Criswell47fdd832003-07-14 16:52:07 +000022030
22031# The else clause should only fire when bootstrapping the
22032# libtool distribution, otherwise you forgot to ship ltmain.sh
22033# with your package, and you will get complaints that there are
22034# no rules to generate ltmain.sh.
22035if test -f "$ltmain"; then
22036 # See if we are running on zsh, and set the options which allow our commands through
22037 # without removal of \ escapes.
22038 if test -n "${ZSH_VERSION+set}" ; then
22039 setopt NO_GLOB_SUBST
22040 fi
22041 # Now quote all the things that may contain metacharacters while being
22042 # careful not to overquote the AC_SUBSTed values. We take copies of the
22043 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022044 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 +000022045 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022046 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22047 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22048 deplibs_check_method reload_flag reload_cmds need_locks \
22049 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22050 lt_cv_sys_global_symbol_to_c_name_address \
22051 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22052 old_postinstall_cmds old_postuninstall_cmds \
22053 compiler_F77 \
22054 CC_F77 \
22055 LD_F77 \
22056 lt_prog_compiler_wl_F77 \
22057 lt_prog_compiler_pic_F77 \
22058 lt_prog_compiler_static_F77 \
22059 lt_prog_compiler_no_builtin_flag_F77 \
22060 export_dynamic_flag_spec_F77 \
22061 thread_safe_flag_spec_F77 \
22062 whole_archive_flag_spec_F77 \
22063 enable_shared_with_static_runtimes_F77 \
22064 old_archive_cmds_F77 \
22065 old_archive_from_new_cmds_F77 \
22066 predep_objects_F77 \
22067 postdep_objects_F77 \
22068 predeps_F77 \
22069 postdeps_F77 \
22070 compiler_lib_search_path_F77 \
22071 archive_cmds_F77 \
22072 archive_expsym_cmds_F77 \
22073 postinstall_cmds_F77 \
22074 postuninstall_cmds_F77 \
22075 old_archive_from_expsyms_cmds_F77 \
22076 allow_undefined_flag_F77 \
22077 no_undefined_flag_F77 \
22078 export_symbols_cmds_F77 \
22079 hardcode_libdir_flag_spec_F77 \
22080 hardcode_libdir_flag_spec_ld_F77 \
22081 hardcode_libdir_separator_F77 \
22082 hardcode_automatic_F77 \
22083 module_cmds_F77 \
22084 module_expsym_cmds_F77 \
22085 lt_cv_prog_compiler_c_o_F77 \
22086 exclude_expsyms_F77 \
22087 include_expsyms_F77; do
22088
22089 case $var in
22090 old_archive_cmds_F77 | \
22091 old_archive_from_new_cmds_F77 | \
22092 archive_cmds_F77 | \
22093 archive_expsym_cmds_F77 | \
22094 module_cmds_F77 | \
22095 module_expsym_cmds_F77 | \
22096 old_archive_from_expsyms_cmds_F77 | \
22097 export_symbols_cmds_F77 | \
22098 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22099 postinstall_cmds | postuninstall_cmds | \
22100 old_postinstall_cmds | old_postuninstall_cmds | \
22101 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22102 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022103 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 +000022104 ;;
22105 *)
22106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22107 ;;
22108 esac
22109 done
22110
22111 case $lt_echo in
22112 *'\$0 --fallback-echo"')
22113 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22114 ;;
22115 esac
22116
22117cfgfile="$ofile"
22118
22119 cat <<__EOF__ >> "$cfgfile"
22120# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22121
22122# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22123
22124# Shell to use when invoking shell scripts.
22125SHELL=$lt_SHELL
22126
22127# Whether or not to build shared libraries.
22128build_libtool_libs=$enable_shared
22129
22130# Whether or not to build static libraries.
22131build_old_libs=$enable_static
22132
22133# Whether or not to add -lc for building shared libraries.
22134build_libtool_need_lc=$archive_cmds_need_lc_F77
22135
22136# Whether or not to disallow shared libs when runtime libs are static
22137allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22138
22139# Whether or not to optimize for fast installation.
22140fast_install=$enable_fast_install
22141
22142# The host system.
22143host_alias=$host_alias
22144host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000022145host_os=$host_os
22146
22147# The build system.
22148build_alias=$build_alias
22149build=$build
22150build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000022151
22152# An echo program that does not interpret backslashes.
22153echo=$lt_echo
22154
22155# The archiver.
22156AR=$lt_AR
22157AR_FLAGS=$lt_AR_FLAGS
22158
22159# A C compiler.
22160LTCC=$lt_LTCC
22161
Reid Spencera773bd52006-08-04 18:18:08 +000022162# LTCC compiler flags.
22163LTCFLAGS=$lt_LTCFLAGS
22164
John Criswell47fdd832003-07-14 16:52:07 +000022165# A language-specific compiler.
22166CC=$lt_compiler_F77
22167
22168# Is the compiler the GNU C compiler?
22169with_gcc=$GCC_F77
22170
22171# An ERE matcher.
22172EGREP=$lt_EGREP
22173
22174# The linker used to build libraries.
22175LD=$lt_LD_F77
22176
22177# Whether we need hard or soft links.
22178LN_S=$lt_LN_S
22179
22180# A BSD-compatible nm program.
22181NM=$lt_NM
22182
22183# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000022184STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000022185
22186# Used to examine libraries when file_magic_cmd begins "file"
22187MAGIC_CMD=$MAGIC_CMD
22188
22189# Used on cygwin: DLL creation program.
22190DLLTOOL="$DLLTOOL"
22191
22192# Used on cygwin: object dumper.
22193OBJDUMP="$OBJDUMP"
22194
22195# Used on cygwin: assembler.
22196AS="$AS"
22197
22198# The name of the directory that contains temporary libtool files.
22199objdir=$objdir
22200
22201# How to create reloadable object files.
22202reload_flag=$lt_reload_flag
22203reload_cmds=$lt_reload_cmds
22204
22205# How to pass a linker flag through the compiler.
22206wl=$lt_lt_prog_compiler_wl_F77
22207
22208# Object file suffix (normally "o").
22209objext="$ac_objext"
22210
22211# Old archive suffix (normally "a").
22212libext="$libext"
22213
22214# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000022215shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000022216
22217# Executable file suffix (normally "").
22218exeext="$exeext"
22219
22220# Additional compiler flags for building library objects.
22221pic_flag=$lt_lt_prog_compiler_pic_F77
22222pic_mode=$pic_mode
22223
22224# What is the maximum length of a command?
22225max_cmd_len=$lt_cv_sys_max_cmd_len
22226
22227# Does compiler simultaneously support -c and -o options?
22228compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22229
Reid Spencera773bd52006-08-04 18:18:08 +000022230# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000022231need_locks=$lt_need_locks
22232
22233# Do we need the lib prefix for modules?
22234need_lib_prefix=$need_lib_prefix
22235
22236# Do we need a version for libraries?
22237need_version=$need_version
22238
22239# Whether dlopen is supported.
22240dlopen_support=$enable_dlopen
22241
22242# Whether dlopen of programs is supported.
22243dlopen_self=$enable_dlopen_self
22244
22245# Whether dlopen of statically linked programs is supported.
22246dlopen_self_static=$enable_dlopen_self_static
22247
22248# Compiler flag to prevent dynamic linking.
22249link_static_flag=$lt_lt_prog_compiler_static_F77
22250
22251# Compiler flag to turn off builtin functions.
22252no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22253
22254# Compiler flag to allow reflexive dlopens.
22255export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22256
22257# Compiler flag to generate shared objects directly from archives.
22258whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22259
22260# Compiler flag to generate thread-safe objects.
22261thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22262
22263# Library versioning type.
22264version_type=$version_type
22265
22266# Format of library name prefix.
22267libname_spec=$lt_libname_spec
22268
22269# List of archive names. First name is the real one, the rest are links.
22270# The last name is the one that the linker finds with -lNAME.
22271library_names_spec=$lt_library_names_spec
22272
22273# The coded name of the library, if different from the real name.
22274soname_spec=$lt_soname_spec
22275
22276# Commands used to build and install an old-style archive.
22277RANLIB=$lt_RANLIB
22278old_archive_cmds=$lt_old_archive_cmds_F77
22279old_postinstall_cmds=$lt_old_postinstall_cmds
22280old_postuninstall_cmds=$lt_old_postuninstall_cmds
22281
22282# Create an old-style archive from a shared archive.
22283old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22284
22285# Create a temporary old-style archive to link instead of a shared archive.
22286old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22287
22288# Commands used to build and install a shared archive.
22289archive_cmds=$lt_archive_cmds_F77
22290archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22291postinstall_cmds=$lt_postinstall_cmds
22292postuninstall_cmds=$lt_postuninstall_cmds
22293
22294# Commands used to build a loadable module (assumed same as above if empty)
22295module_cmds=$lt_module_cmds_F77
22296module_expsym_cmds=$lt_module_expsym_cmds_F77
22297
22298# Commands to strip libraries.
22299old_striplib=$lt_old_striplib
22300striplib=$lt_striplib
22301
22302# Dependencies to place before the objects being linked to create a
22303# shared library.
22304predep_objects=$lt_predep_objects_F77
22305
22306# Dependencies to place after the objects being linked to create a
22307# shared library.
22308postdep_objects=$lt_postdep_objects_F77
22309
22310# Dependencies to place before the objects being linked to create a
22311# shared library.
22312predeps=$lt_predeps_F77
22313
22314# Dependencies to place after the objects being linked to create a
22315# shared library.
22316postdeps=$lt_postdeps_F77
22317
22318# The library search path used internally by the compiler when linking
22319# a shared library.
22320compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22321
22322# Method to check whether dependent libraries are shared objects.
22323deplibs_check_method=$lt_deplibs_check_method
22324
22325# Command to use when deplibs_check_method == file_magic.
22326file_magic_cmd=$lt_file_magic_cmd
22327
22328# Flag that allows shared libraries with undefined symbols to be built.
22329allow_undefined_flag=$lt_allow_undefined_flag_F77
22330
22331# Flag that forces no undefined symbols.
22332no_undefined_flag=$lt_no_undefined_flag_F77
22333
22334# Commands used to finish a libtool library installation in a directory.
22335finish_cmds=$lt_finish_cmds
22336
22337# Same as above, but a single script fragment to be evaled but not shown.
22338finish_eval=$lt_finish_eval
22339
22340# Take the output of nm and produce a listing of raw symbols and C names.
22341global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22342
22343# Transform the output of nm in a proper C declaration
22344global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22345
22346# Transform the output of nm in a C name address pair
22347global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22348
22349# This is the shared library runtime path variable.
22350runpath_var=$runpath_var
22351
22352# This is the shared library path variable.
22353shlibpath_var=$shlibpath_var
22354
22355# Is shlibpath searched before the hard-coded library search path?
22356shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22357
22358# How to hardcode a shared library path into an executable.
22359hardcode_action=$hardcode_action_F77
22360
22361# Whether we should hardcode library paths into libraries.
22362hardcode_into_libs=$hardcode_into_libs
22363
22364# Flag to hardcode \$libdir into a binary during linking.
22365# This must work even if \$libdir does not exist.
22366hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22367
22368# If ld is used when linking, flag to hardcode \$libdir into
22369# a binary during linking. This must work even if \$libdir does
22370# not exist.
22371hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22372
22373# Whether we need a single -rpath flag with a separated argument.
22374hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22375
22376# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22377# resulting binary.
22378hardcode_direct=$hardcode_direct_F77
22379
22380# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22381# resulting binary.
22382hardcode_minus_L=$hardcode_minus_L_F77
22383
22384# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22385# the resulting binary.
22386hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22387
22388# Set to yes if building a shared library automatically hardcodes DIR into the library
22389# and all subsequent libraries and executables linked against it.
22390hardcode_automatic=$hardcode_automatic_F77
22391
22392# Variables whose values should be saved in libtool wrapper scripts and
22393# restored at relink time.
22394variables_saved_for_relink="$variables_saved_for_relink"
22395
22396# Whether libtool must link a program against all its dependency libraries.
22397link_all_deplibs=$link_all_deplibs_F77
22398
22399# Compile-time system search path for libraries
22400sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22401
22402# Run-time system search path for libraries
22403sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22404
22405# Fix the shell variable \$srcfile for the compiler.
22406fix_srcfile_path="$fix_srcfile_path_F77"
22407
22408# Set to yes if exported symbols are required.
22409always_export_symbols=$always_export_symbols_F77
22410
22411# The commands to list exported symbols.
22412export_symbols_cmds=$lt_export_symbols_cmds_F77
22413
22414# The commands to extract the exported symbol list from a shared archive.
22415extract_expsyms_cmds=$lt_extract_expsyms_cmds
22416
22417# Symbols that should not be listed in the preloaded symbols.
22418exclude_expsyms=$lt_exclude_expsyms_F77
22419
22420# Symbols that must always be exported.
22421include_expsyms=$lt_include_expsyms_F77
22422
22423# ### END LIBTOOL TAG CONFIG: $tagname
22424
22425__EOF__
22426
22427
22428else
22429 # If there is no Makefile yet, we rely on a make rule to execute
22430 # `config.status --recheck' to rerun these tests and create the
22431 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022432 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22433 if test -f "$ltmain_in"; then
22434 test -f Makefile && make "$ltmain"
22435 fi
John Criswell47fdd832003-07-14 16:52:07 +000022436fi
22437
22438
22439ac_ext=c
22440ac_cpp='$CPP $CPPFLAGS'
22441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22443ac_compiler_gnu=$ac_cv_c_compiler_gnu
22444
22445CC="$lt_save_CC"
22446
22447 else
22448 tagname=""
22449 fi
22450 ;;
22451
22452 GCJ)
22453 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000022454 ac_ext=c
22455ac_cpp='$CPP $CPPFLAGS'
22456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22458ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000022459
22460
22461# Source file extension for Java test sources.
22462ac_ext=java
22463
22464# Object file extension for compiled Java test sources.
22465objext=o
22466objext_GCJ=$objext
22467
22468# Code to be used in simple compile tests
22469lt_simple_compile_test_code="class foo {}\n"
22470
22471# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000022472lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000022473
22474# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22475
22476# If no C compiler was specified, use CC.
22477LTCC=${LTCC-"$CC"}
22478
Reid Spencera773bd52006-08-04 18:18:08 +000022479# If no C compiler flags were specified, use CFLAGS.
22480LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22481
John Criswell47fdd832003-07-14 16:52:07 +000022482# Allow CC to be a program name with arguments.
22483compiler=$CC
22484
22485
Reid Spencera773bd52006-08-04 18:18:08 +000022486# save warnings/boilerplate of simple test code
22487ac_outfile=conftest.$ac_objext
22488printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22489eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22490_lt_compiler_boilerplate=`cat conftest.err`
22491$rm conftest*
22492
22493ac_outfile=conftest.$ac_objext
22494printf "$lt_simple_link_test_code" >conftest.$ac_ext
22495eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22496_lt_linker_boilerplate=`cat conftest.err`
22497$rm conftest*
22498
22499
John Criswell47fdd832003-07-14 16:52:07 +000022500# Allow CC to be a program name with arguments.
22501lt_save_CC="$CC"
22502CC=${GCJ-"gcj"}
22503compiler=$CC
22504compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000022505for cc_temp in $compiler""; do
22506 case $cc_temp in
22507 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22508 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22509 \-*) ;;
22510 *) break;;
22511 esac
22512done
22513cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22514
John Criswell47fdd832003-07-14 16:52:07 +000022515
22516# GCJ did not exist at the time GCC didn't implicitly link libc in.
22517archive_cmds_need_lc_GCJ=no
22518
Reid Spencera773bd52006-08-04 18:18:08 +000022519old_archive_cmds_GCJ=$old_archive_cmds
22520
John Criswell47fdd832003-07-14 16:52:07 +000022521
22522lt_prog_compiler_no_builtin_flag_GCJ=
22523
22524if test "$GCC" = yes; then
22525 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22526
Reid Spencer2706f8c2004-09-19 23:53:36 +000022527
Reid Spencera773bd52006-08-04 18:18:08 +000022528{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22529echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022530if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532else
22533 lt_cv_prog_compiler_rtti_exceptions=no
22534 ac_outfile=conftest.$ac_objext
22535 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22536 lt_compiler_flag="-fno-rtti -fno-exceptions"
22537 # Insert the option either (1) after the last *FLAGS variable, or
22538 # (2) before a word containing "conftest.", or (3) at the end.
22539 # Note that $ac_compile itself does not contain backslashes and begins
22540 # with a dollar sign (not a hyphen), so the echo should work correctly.
22541 # The option is referenced via a variable to avoid confusing sed.
22542 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22545 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000022546 (eval echo "\"\$as_me:22546: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022547 (eval "$lt_compile" 2>conftest.err)
22548 ac_status=$?
22549 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000022550 echo "$as_me:22550: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022551 if (exit $ac_status) && test -s "$ac_outfile"; then
22552 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000022553 # So say no if there are warnings other than the usual output.
22554 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022557 lt_cv_prog_compiler_rtti_exceptions=yes
22558 fi
22559 fi
22560 $rm conftest*
22561
22562fi
Reid Spencera773bd52006-08-04 18:18:08 +000022563{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22564echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022565
22566if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22567 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22568else
22569 :
22570fi
22571
22572fi
22573
22574lt_prog_compiler_wl_GCJ=
22575lt_prog_compiler_pic_GCJ=
22576lt_prog_compiler_static_GCJ=
22577
Reid Spencera773bd52006-08-04 18:18:08 +000022578{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22579echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022580
22581 if test "$GCC" = yes; then
22582 lt_prog_compiler_wl_GCJ='-Wl,'
22583 lt_prog_compiler_static_GCJ='-static'
22584
22585 case $host_os in
22586 aix*)
22587 # All AIX code is PIC.
22588 if test "$host_cpu" = ia64; then
22589 # AIX 5 now supports IA64 processor
22590 lt_prog_compiler_static_GCJ='-Bstatic'
22591 fi
22592 ;;
22593
22594 amigaos*)
22595 # FIXME: we need at least 68020 code to build shared libraries, but
22596 # adding the `-m68020' flag to GCC prevents building anything better,
22597 # like `-m68040'.
22598 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22599 ;;
22600
22601 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22602 # PIC is the default for these OSes.
22603 ;;
22604
22605 mingw* | pw32* | os2*)
22606 # This hack is so that the source file can tell whether it is being
22607 # built for inclusion in a dll (and should export symbols for example).
22608 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22609 ;;
22610
22611 darwin* | rhapsody*)
22612 # PIC is the default on this platform
22613 # Common symbols not allowed in MH_DYLIB files
22614 lt_prog_compiler_pic_GCJ='-fno-common'
22615 ;;
22616
Reid Spencera773bd52006-08-04 18:18:08 +000022617 interix3*)
22618 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22619 # Instead, we relocate shared libraries at runtime.
22620 ;;
22621
John Criswell47fdd832003-07-14 16:52:07 +000022622 msdosdjgpp*)
22623 # Just because we use GCC doesn't mean we suddenly get shared libraries
22624 # on systems that don't support them.
22625 lt_prog_compiler_can_build_shared_GCJ=no
22626 enable_shared=no
22627 ;;
22628
22629 sysv4*MP*)
22630 if test -d /usr/nec; then
22631 lt_prog_compiler_pic_GCJ=-Kconform_pic
22632 fi
22633 ;;
22634
22635 hpux*)
22636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22637 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022638 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022639 hppa*64*|ia64*)
22640 # +Z the default
22641 ;;
22642 *)
22643 lt_prog_compiler_pic_GCJ='-fPIC'
22644 ;;
22645 esac
22646 ;;
22647
22648 *)
22649 lt_prog_compiler_pic_GCJ='-fPIC'
22650 ;;
22651 esac
22652 else
22653 # PORTME Check for flag to pass linker flags through the system compiler.
22654 case $host_os in
22655 aix*)
22656 lt_prog_compiler_wl_GCJ='-Wl,'
22657 if test "$host_cpu" = ia64; then
22658 # AIX 5 now supports IA64 processor
22659 lt_prog_compiler_static_GCJ='-Bstatic'
22660 else
22661 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22662 fi
22663 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022664 darwin*)
22665 # PIC is the default on this platform
22666 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000022667 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022668 xlc*)
22669 lt_prog_compiler_pic_GCJ='-qnocommon'
22670 lt_prog_compiler_wl_GCJ='-Wl,'
22671 ;;
22672 esac
22673 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022674
22675 mingw* | pw32* | os2*)
22676 # This hack is so that the source file can tell whether it is being
22677 # built for inclusion in a dll (and should export symbols for example).
22678 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22679 ;;
22680
22681 hpux9* | hpux10* | hpux11*)
22682 lt_prog_compiler_wl_GCJ='-Wl,'
22683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22684 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022685 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022686 hppa*64*|ia64*)
22687 # +Z the default
22688 ;;
22689 *)
22690 lt_prog_compiler_pic_GCJ='+Z'
22691 ;;
22692 esac
22693 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22694 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22695 ;;
22696
22697 irix5* | irix6* | nonstopux*)
22698 lt_prog_compiler_wl_GCJ='-Wl,'
22699 # PIC (with -KPIC) is the default.
22700 lt_prog_compiler_static_GCJ='-non_shared'
22701 ;;
22702
22703 newsos6)
22704 lt_prog_compiler_pic_GCJ='-KPIC'
22705 lt_prog_compiler_static_GCJ='-Bstatic'
22706 ;;
22707
22708 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000022709 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022710 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000022711 lt_prog_compiler_wl_GCJ='-Wl,'
22712 lt_prog_compiler_pic_GCJ='-KPIC'
22713 lt_prog_compiler_static_GCJ='-static'
22714 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022715 pgcc* | pgf77* | pgf90* | pgf95*)
22716 # Portland Group compilers (*not* the Pentium gcc compiler,
22717 # which looks to be a dead project)
22718 lt_prog_compiler_wl_GCJ='-Wl,'
22719 lt_prog_compiler_pic_GCJ='-fpic'
22720 lt_prog_compiler_static_GCJ='-Bstatic'
22721 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022722 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000022723 lt_prog_compiler_wl_GCJ='-Wl,'
22724 # All Alpha code is PIC.
22725 lt_prog_compiler_static_GCJ='-non_shared'
22726 ;;
22727 esac
22728 ;;
22729
22730 osf3* | osf4* | osf5*)
22731 lt_prog_compiler_wl_GCJ='-Wl,'
22732 # All OSF/1 code is PIC.
22733 lt_prog_compiler_static_GCJ='-non_shared'
22734 ;;
22735
John Criswell47fdd832003-07-14 16:52:07 +000022736 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022737 lt_prog_compiler_pic_GCJ='-KPIC'
22738 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000022739 case $cc_basename in
22740 f77* | f90* | f95*)
22741 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22742 *)
22743 lt_prog_compiler_wl_GCJ='-Wl,';;
22744 esac
John Criswell47fdd832003-07-14 16:52:07 +000022745 ;;
22746
22747 sunos4*)
22748 lt_prog_compiler_wl_GCJ='-Qoption ld '
22749 lt_prog_compiler_pic_GCJ='-PIC'
22750 lt_prog_compiler_static_GCJ='-Bstatic'
22751 ;;
22752
Reid Spencera773bd52006-08-04 18:18:08 +000022753 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022754 lt_prog_compiler_wl_GCJ='-Wl,'
22755 lt_prog_compiler_pic_GCJ='-KPIC'
22756 lt_prog_compiler_static_GCJ='-Bstatic'
22757 ;;
22758
22759 sysv4*MP*)
22760 if test -d /usr/nec ;then
22761 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22762 lt_prog_compiler_static_GCJ='-Bstatic'
22763 fi
22764 ;;
22765
Reid Spencera773bd52006-08-04 18:18:08 +000022766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22767 lt_prog_compiler_wl_GCJ='-Wl,'
22768 lt_prog_compiler_pic_GCJ='-KPIC'
22769 lt_prog_compiler_static_GCJ='-Bstatic'
22770 ;;
22771
22772 unicos*)
22773 lt_prog_compiler_wl_GCJ='-Wl,'
22774 lt_prog_compiler_can_build_shared_GCJ=no
22775 ;;
22776
John Criswell47fdd832003-07-14 16:52:07 +000022777 uts4*)
22778 lt_prog_compiler_pic_GCJ='-pic'
22779 lt_prog_compiler_static_GCJ='-Bstatic'
22780 ;;
22781
22782 *)
22783 lt_prog_compiler_can_build_shared_GCJ=no
22784 ;;
22785 esac
22786 fi
22787
Reid Spencera773bd52006-08-04 18:18:08 +000022788{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22789echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022790
22791#
22792# Check to make sure the PIC flag actually works.
22793#
22794if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000022795
Reid Spencera773bd52006-08-04 18:18:08 +000022796{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22797echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022798if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22800else
22801 lt_prog_compiler_pic_works_GCJ=no
22802 ac_outfile=conftest.$ac_objext
22803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22804 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22805 # Insert the option either (1) after the last *FLAGS variable, or
22806 # (2) before a word containing "conftest.", or (3) at the end.
22807 # Note that $ac_compile itself does not contain backslashes and begins
22808 # with a dollar sign (not a hyphen), so the echo should work correctly.
22809 # The option is referenced via a variable to avoid confusing sed.
22810 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22813 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000022814 (eval echo "\"\$as_me:22814: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022815 (eval "$lt_compile" 2>conftest.err)
22816 ac_status=$?
22817 cat conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000022818 echo "$as_me:22818: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022819 if (exit $ac_status) && test -s "$ac_outfile"; then
22820 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000022821 # So say no if there are warnings other than the usual output.
22822 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022825 lt_prog_compiler_pic_works_GCJ=yes
22826 fi
22827 fi
22828 $rm conftest*
22829
22830fi
Reid Spencera773bd52006-08-04 18:18:08 +000022831{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22832echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022833
22834if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22835 case $lt_prog_compiler_pic_GCJ in
22836 "" | " "*) ;;
22837 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22838 esac
22839else
22840 lt_prog_compiler_pic_GCJ=
22841 lt_prog_compiler_can_build_shared_GCJ=no
22842fi
22843
22844fi
Reid Spencera773bd52006-08-04 18:18:08 +000022845case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000022846 # For platforms which do not support PIC, -DPIC is meaningless:
22847 *djgpp*)
22848 lt_prog_compiler_pic_GCJ=
22849 ;;
22850 *)
22851 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22852 ;;
22853esac
22854
Reid Spencera773bd52006-08-04 18:18:08 +000022855#
22856# Check to make sure the static flag actually works.
22857#
22858wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22859{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22860echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22861if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22863else
22864 lt_prog_compiler_static_works_GCJ=no
22865 save_LDFLAGS="$LDFLAGS"
22866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22867 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22869 # The linker can only warn and ignore the option if not recognized
22870 # So say no if there are warnings
22871 if test -s conftest.err; then
22872 # Append any errors to the config.log.
22873 cat conftest.err 1>&5
22874 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22876 if diff conftest.exp conftest.er2 >/dev/null; then
22877 lt_prog_compiler_static_works_GCJ=yes
22878 fi
22879 else
22880 lt_prog_compiler_static_works_GCJ=yes
22881 fi
22882 fi
22883 $rm conftest*
22884 LDFLAGS="$save_LDFLAGS"
22885
22886fi
22887{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22888echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22889
22890if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22891 :
22892else
22893 lt_prog_compiler_static_GCJ=
22894fi
22895
22896
22897{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22898echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022899if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22901else
22902 lt_cv_prog_compiler_c_o_GCJ=no
22903 $rm -r conftest 2>/dev/null
22904 mkdir conftest
22905 cd conftest
22906 mkdir out
22907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22908
John Criswell47fdd832003-07-14 16:52:07 +000022909 lt_compiler_flag="-o out/conftest2.$ac_objext"
22910 # Insert the option either (1) after the last *FLAGS variable, or
22911 # (2) before a word containing "conftest.", or (3) at the end.
22912 # Note that $ac_compile itself does not contain backslashes and begins
22913 # with a dollar sign (not a hyphen), so the echo should work correctly.
22914 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22917 -e 's:$: $lt_compiler_flag:'`
Duncan Sands67f1c492007-12-12 23:03:45 +000022918 (eval echo "\"\$as_me:22918: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022919 (eval "$lt_compile" 2>out/conftest.err)
22920 ac_status=$?
22921 cat out/conftest.err >&5
Duncan Sands67f1c492007-12-12 23:03:45 +000022922 echo "$as_me:22922: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22924 then
22925 # The compiler can only warn and ignore the option if not recognized
22926 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000022927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022930 lt_cv_prog_compiler_c_o_GCJ=yes
22931 fi
22932 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022933 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022934 $rm conftest*
22935 # SGI C++ compiler will create directory out/ii_files/ for
22936 # template instantiation
22937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22938 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000022939 cd ..
22940 rmdir conftest
22941 $rm conftest*
22942
22943fi
Reid Spencera773bd52006-08-04 18:18:08 +000022944{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22945echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022946
22947
22948hard_links="nottested"
22949if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22950 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000022951 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22952echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022953 hard_links=yes
22954 $rm conftest*
22955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22956 touch conftest.a
22957 ln conftest.a conftest.b 2>&5 || hard_links=no
22958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000022959 { echo "$as_me:$LINENO: result: $hard_links" >&5
22960echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022961 if test "$hard_links" = no; then
22962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22963echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22964 need_locks=warn
22965 fi
22966else
22967 need_locks=no
22968fi
22969
Reid Spencera773bd52006-08-04 18:18:08 +000022970{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22971echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022972
22973 runpath_var=
22974 allow_undefined_flag_GCJ=
22975 enable_shared_with_static_runtimes_GCJ=no
22976 archive_cmds_GCJ=
22977 archive_expsym_cmds_GCJ=
22978 old_archive_From_new_cmds_GCJ=
22979 old_archive_from_expsyms_cmds_GCJ=
22980 export_dynamic_flag_spec_GCJ=
22981 whole_archive_flag_spec_GCJ=
22982 thread_safe_flag_spec_GCJ=
22983 hardcode_libdir_flag_spec_GCJ=
22984 hardcode_libdir_flag_spec_ld_GCJ=
22985 hardcode_libdir_separator_GCJ=
22986 hardcode_direct_GCJ=no
22987 hardcode_minus_L_GCJ=no
22988 hardcode_shlibpath_var_GCJ=unsupported
22989 link_all_deplibs_GCJ=unknown
22990 hardcode_automatic_GCJ=no
22991 module_cmds_GCJ=
22992 module_expsym_cmds_GCJ=
22993 always_export_symbols_GCJ=no
22994 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22995 # include_expsyms should be a list of space-separated symbols to be *always*
22996 # included in the symbol list
22997 include_expsyms_GCJ=
22998 # exclude_expsyms can be an extended regexp of symbols to exclude
22999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23001 # as well as any symbol that contains `d'.
23002 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23004 # platforms (ab)use it in PIC code, but their linkers get confused if
23005 # the symbol is explicitly referenced. Since portable code cannot
23006 # rely on this symbol name, it's probably fine to never include it in
23007 # preloaded symbol tables.
23008 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023009 # Just being paranoid about ensuring that cc_basename is set.
23010 for cc_temp in $compiler""; do
23011 case $cc_temp in
23012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23014 \-*) ;;
23015 *) break;;
23016 esac
23017done
23018cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023019
23020 case $host_os in
23021 cygwin* | mingw* | pw32*)
23022 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23023 # When not using gcc, we currently assume that we are using
23024 # Microsoft Visual C++.
23025 if test "$GCC" != yes; then
23026 with_gnu_ld=no
23027 fi
23028 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023029 interix*)
23030 # we just hope/assume this is gcc and not c89 (= MSVC++)
23031 with_gnu_ld=yes
23032 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023033 openbsd*)
23034 with_gnu_ld=no
23035 ;;
23036 esac
23037
23038 ld_shlibs_GCJ=yes
23039 if test "$with_gnu_ld" = yes; then
23040 # If archive_cmds runs LD, not CC, wlarc should be empty
23041 wlarc='${wl}'
23042
Reid Spencera773bd52006-08-04 18:18:08 +000023043 # Set some defaults for GNU ld with shared library support. These
23044 # are reset later if shared libraries are not supported. Putting them
23045 # here allows them to be overridden if necessary.
23046 runpath_var=LD_RUN_PATH
23047 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23048 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23049 # ancient GNU ld didn't support --whole-archive et. al.
23050 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23051 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23052 else
23053 whole_archive_flag_spec_GCJ=
23054 fi
23055 supports_anon_versioning=no
23056 case `$LD -v 2>/dev/null` in
23057 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23058 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23059 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23060 *\ 2.11.*) ;; # other 2.11 versions
23061 *) supports_anon_versioning=yes ;;
23062 esac
23063
John Criswell47fdd832003-07-14 16:52:07 +000023064 # See if GNU ld supports shared libraries.
23065 case $host_os in
23066 aix3* | aix4* | aix5*)
23067 # On AIX/PPC, the GNU linker is very broken
23068 if test "$host_cpu" != ia64; then
23069 ld_shlibs_GCJ=no
23070 cat <<EOF 1>&2
23071
23072*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23073*** to be unable to reliably create shared libraries on AIX.
23074*** Therefore, libtool is disabling shared libraries support. If you
23075*** really care for shared libraries, you may want to modify your PATH
23076*** so that a non-GNU linker is found, and then restart.
23077
23078EOF
23079 fi
23080 ;;
23081
23082 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023083 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 +000023084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23085 hardcode_minus_L_GCJ=yes
23086
23087 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23088 # that the semantics of dynamic libraries on AmigaOS, at least up
23089 # to version 4, is to share data among multiple programs linked
23090 # with the same dynamic library. Since this doesn't match the
23091 # behavior of shared libraries on other platforms, we can't use
23092 # them.
23093 ld_shlibs_GCJ=no
23094 ;;
23095
23096 beos*)
23097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23098 allow_undefined_flag_GCJ=unsupported
23099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23100 # support --undefined. This deserves some investigation. FIXME
23101 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23102 else
23103 ld_shlibs_GCJ=no
23104 fi
23105 ;;
23106
23107 cygwin* | mingw* | pw32*)
23108 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23109 # as there is no search path for DLLs.
23110 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23111 allow_undefined_flag_GCJ=unsupported
23112 always_export_symbols_GCJ=no
23113 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023114 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 +000023115
23116 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000023117 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 +000023118 # If the export-symbols file already is a .def file (1st line
23119 # is EXPORTS), use it as is; otherwise, prepend...
23120 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23121 cp $export_symbols $output_objdir/$soname.def;
23122 else
23123 echo EXPORTS > $output_objdir/$soname.def;
23124 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000023125 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000023126 $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 +000023127 else
Reid Spencera773bd52006-08-04 18:18:08 +000023128 ld_shlibs_GCJ=no
23129 fi
23130 ;;
23131
23132 interix3*)
23133 hardcode_direct_GCJ=no
23134 hardcode_shlibpath_var_GCJ=no
23135 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23136 export_dynamic_flag_spec_GCJ='${wl}-E'
23137 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23138 # Instead, shared libraries are loaded at an image base (0x10000000 by
23139 # default) and relocated if they conflict, which is a slow very memory
23140 # consuming and fragmenting process. To avoid this, we pick a random,
23141 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23142 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23143 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'
23144 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'
23145 ;;
23146
23147 linux*)
23148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23149 tmp_addflag=
23150 case $cc_basename,$host_cpu in
23151 pgcc*) # Portland Group C compiler
23152 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'
23153 tmp_addflag=' $pic_flag'
23154 ;;
23155 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23156 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'
23157 tmp_addflag=' $pic_flag -Mnomain' ;;
23158 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23159 tmp_addflag=' -i_dynamic' ;;
23160 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23161 tmp_addflag=' -i_dynamic -nofor_main' ;;
23162 ifc* | ifort*) # Intel Fortran compiler
23163 tmp_addflag=' -nofor_main' ;;
23164 esac
23165 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23166
23167 if test $supports_anon_versioning = yes; then
23168 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23170 $echo "local: *; };" >> $output_objdir/$libname.ver~
23171 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23172 fi
23173 else
23174 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023175 fi
23176 ;;
23177
23178 netbsd*)
23179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23180 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23181 wlarc=
23182 else
23183 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23184 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23185 fi
23186 ;;
23187
Reid Spencera773bd52006-08-04 18:18:08 +000023188 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023189 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23190 ld_shlibs_GCJ=no
23191 cat <<EOF 1>&2
23192
23193*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23194*** create shared libraries on Solaris systems. Therefore, libtool
23195*** is disabling shared libraries support. We urge you to upgrade GNU
23196*** binutils to release 2.9.1 or newer. Another option is to modify
23197*** your PATH or compiler configuration so that the native linker is
23198*** used, and then restart.
23199
23200EOF
23201 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23202 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23203 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23204 else
23205 ld_shlibs_GCJ=no
23206 fi
23207 ;;
23208
Reid Spencera773bd52006-08-04 18:18:08 +000023209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23210 case `$LD -v 2>&1` in
23211 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23212 ld_shlibs_GCJ=no
23213 cat <<_LT_EOF 1>&2
23214
23215*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23216*** reliably create shared libraries on SCO systems. Therefore, libtool
23217*** is disabling shared libraries support. We urge you to upgrade GNU
23218*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23219*** your PATH or compiler configuration so that the native linker is
23220*** used, and then restart.
23221
23222_LT_EOF
23223 ;;
23224 *)
23225 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23226 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23227 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23228 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23229 else
23230 ld_shlibs_GCJ=no
23231 fi
23232 ;;
23233 esac
23234 ;;
23235
John Criswell47fdd832003-07-14 16:52:07 +000023236 sunos4*)
23237 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23238 wlarc=
23239 hardcode_direct_GCJ=yes
23240 hardcode_shlibpath_var_GCJ=no
23241 ;;
23242
23243 *)
23244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23245 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23246 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23247 else
23248 ld_shlibs_GCJ=no
23249 fi
23250 ;;
23251 esac
23252
Reid Spencera773bd52006-08-04 18:18:08 +000023253 if test "$ld_shlibs_GCJ" = no; then
23254 runpath_var=
23255 hardcode_libdir_flag_spec_GCJ=
23256 export_dynamic_flag_spec_GCJ=
23257 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000023258 fi
23259 else
23260 # PORTME fill in a description of your system's linker (not GNU ld)
23261 case $host_os in
23262 aix3*)
23263 allow_undefined_flag_GCJ=unsupported
23264 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000023265 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 +000023266 # Note: this linker hardcodes the directories in LIBPATH if there
23267 # are no directories specified by -L.
23268 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023269 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000023270 # Neither direct hardcoding nor static linking is supported with a
23271 # broken collect2.
23272 hardcode_direct_GCJ=unsupported
23273 fi
23274 ;;
23275
23276 aix4* | aix5*)
23277 if test "$host_cpu" = ia64; then
23278 # On IA64, the linker does run time linking by default, so we don't
23279 # have to do anything special.
23280 aix_use_runtimelinking=no
23281 exp_sym_flag='-Bexport'
23282 no_entry_flag=""
23283 else
23284 # If we're using GNU nm, then we don't want the "-C" option.
23285 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23286 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23287 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'
23288 else
23289 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'
23290 fi
23291 aix_use_runtimelinking=no
23292
23293 # Test if we are trying to use run time linking or normal
23294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23295 # need to do runtime linking.
23296 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23297 for ld_flag in $LDFLAGS; do
23298 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23299 aix_use_runtimelinking=yes
23300 break
23301 fi
23302 done
Reid Spencera773bd52006-08-04 18:18:08 +000023303 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023304 esac
23305
23306 exp_sym_flag='-bexport'
23307 no_entry_flag='-bnoentry'
23308 fi
23309
23310 # When large executables or shared objects are built, AIX ld can
23311 # have problems creating the table of contents. If linking a library
23312 # or program results in "error TOC overflow" add -mminimal-toc to
23313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23315
23316 archive_cmds_GCJ=''
23317 hardcode_direct_GCJ=yes
23318 hardcode_libdir_separator_GCJ=':'
23319 link_all_deplibs_GCJ=yes
23320
23321 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023322 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000023323 # We only want to do this on AIX 4.2 and lower, the check
23324 # below for broken collect2 doesn't work under 4.3+
23325 collect2name=`${CC} -print-prog-name=collect2`
23326 if test -f "$collect2name" && \
23327 strings "$collect2name" | grep resolve_lib_name >/dev/null
23328 then
23329 # We have reworked collect2
23330 hardcode_direct_GCJ=yes
23331 else
23332 # We have old collect2
23333 hardcode_direct_GCJ=unsupported
23334 # It fails to find uninstalled libraries when the uninstalled
23335 # path is not listed in the libpath. Setting hardcode_minus_L
23336 # to unsupported forces relinking
23337 hardcode_minus_L_GCJ=yes
23338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23339 hardcode_libdir_separator_GCJ=
23340 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023341 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023342 esac
23343 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000023344 if test "$aix_use_runtimelinking" = yes; then
23345 shared_flag="$shared_flag "'${wl}-G'
23346 fi
John Criswell47fdd832003-07-14 16:52:07 +000023347 else
23348 # not using gcc
23349 if test "$host_cpu" = ia64; then
23350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23351 # chokes on -Wl,-G. The following line is correct:
23352 shared_flag='-G'
23353 else
Reid Spencera773bd52006-08-04 18:18:08 +000023354 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000023355 shared_flag='${wl}-G'
23356 else
23357 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000023358 fi
John Criswell47fdd832003-07-14 16:52:07 +000023359 fi
23360 fi
23361
23362 # It seems that -bexpall does not export symbols beginning with
23363 # underscore (_), so it is better to generate a list of symbols to export.
23364 always_export_symbols_GCJ=yes
23365 if test "$aix_use_runtimelinking" = yes; then
23366 # Warning - without using the other runtime loading flags (-brtl),
23367 # -berok will link without error, but may produce a broken library.
23368 allow_undefined_flag_GCJ='-berok'
23369 # Determine the default libpath from the value encoded in an empty executable.
23370 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023371/* confdefs.h. */
23372_ACEOF
23373cat confdefs.h >>conftest.$ac_ext
23374cat >>conftest.$ac_ext <<_ACEOF
23375/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023376
John Criswell47fdd832003-07-14 16:52:07 +000023377int
23378main ()
23379{
23380
23381 ;
23382 return 0;
23383}
23384_ACEOF
23385rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023386if { (ac_try="$ac_link"
23387case "(($ac_try" in
23388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23390esac
23391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023393 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023394 grep -v '^ *+' conftest.er1 >conftest.err
23395 rm -f conftest.er1
23396 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000023398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest$ac_exeext &&
23402 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023403
23404aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23405}'`
23406# Check for a 64-bit object if we didn't find anything.
23407if 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; }
23408}'`; fi
23409else
23410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023411sed 's/^/| /' conftest.$ac_ext >&5
23412
Reid Spencera773bd52006-08-04 18:18:08 +000023413
John Criswell47fdd832003-07-14 16:52:07 +000023414fi
Reid Spencera773bd52006-08-04 18:18:08 +000023415
Scott Michel96dcd2b2007-12-05 21:24:02 +000023416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023417 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023418if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23419
23420 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000023421 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 +000023422 else
23423 if test "$host_cpu" = ia64; then
23424 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23425 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000023426 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 +000023427 else
23428 # Determine the default libpath from the value encoded in an empty executable.
23429 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023430/* confdefs.h. */
23431_ACEOF
23432cat confdefs.h >>conftest.$ac_ext
23433cat >>conftest.$ac_ext <<_ACEOF
23434/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023435
John Criswell47fdd832003-07-14 16:52:07 +000023436int
23437main ()
23438{
23439
23440 ;
23441 return 0;
23442}
23443_ACEOF
23444rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023445if { (ac_try="$ac_link"
23446case "(($ac_try" in
23447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448 *) ac_try_echo=$ac_try;;
23449esac
23450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023452 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023453 grep -v '^ *+' conftest.er1 >conftest.err
23454 rm -f conftest.er1
23455 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000023457 (exit $ac_status); } && {
23458 test -z "$ac_c_werror_flag" ||
23459 test ! -s conftest.err
23460 } && test -s conftest$ac_exeext &&
23461 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023462
23463aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23464}'`
23465# Check for a 64-bit object if we didn't find anything.
23466if 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; }
23467}'`; fi
23468else
23469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023470sed 's/^/| /' conftest.$ac_ext >&5
23471
Reid Spencera773bd52006-08-04 18:18:08 +000023472
John Criswell47fdd832003-07-14 16:52:07 +000023473fi
Reid Spencera773bd52006-08-04 18:18:08 +000023474
Scott Michel96dcd2b2007-12-05 21:24:02 +000023475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023476 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23478
23479 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23480 # Warning - without using the other run time loading flags,
23481 # -berok will link without error, but may produce a broken library.
23482 no_undefined_flag_GCJ=' ${wl}-bernotok'
23483 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000023484 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000023485 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000023486 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023487 # This is similar to how AIX traditionally builds its shared libraries.
23488 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 +000023489 fi
23490 fi
23491 ;;
23492
23493 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023494 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 +000023495 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23496 hardcode_minus_L_GCJ=yes
23497 # see comment about different semantics on the GNU ld section
23498 ld_shlibs_GCJ=no
23499 ;;
23500
Reid Spencer2706f8c2004-09-19 23:53:36 +000023501 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023502 export_dynamic_flag_spec_GCJ=-rdynamic
23503 ;;
23504
23505 cygwin* | mingw* | pw32*)
23506 # When not using gcc, we currently assume that we are using
23507 # Microsoft Visual C++.
23508 # hardcode_libdir_flag_spec is actually meaningless, as there is
23509 # no search path for DLLs.
23510 hardcode_libdir_flag_spec_GCJ=' '
23511 allow_undefined_flag_GCJ=unsupported
23512 # Tell ltmain to make .lib files, not .a files.
23513 libext=lib
23514 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023515 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023516 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000023517 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 +000023518 # The linker will automatically build a .lib file if we build a DLL.
23519 old_archive_From_new_cmds_GCJ='true'
23520 # FIXME: Should let the user specify the lib program.
23521 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000023522 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000023523 enable_shared_with_static_runtimes_GCJ=yes
23524 ;;
23525
23526 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000023527 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023528 rhapsody* | darwin1.[012])
23529 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23530 ;;
23531 *) # Darwin 1.3 on
23532 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23533 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23534 else
23535 case ${MACOSX_DEPLOYMENT_TARGET} in
23536 10.[012])
23537 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23538 ;;
23539 10.*)
23540 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23541 ;;
23542 esac
23543 fi
23544 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023545 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000023546 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023547 hardcode_direct_GCJ=no
23548 hardcode_automatic_GCJ=yes
23549 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000023550 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000023551 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000023552 if test "$GCC" = yes ; then
23553 output_verbose_link_cmd='echo'
23554 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23555 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023556 # 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 +000023557 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}'
23558 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 +000023559 else
Reid Spencera773bd52006-08-04 18:18:08 +000023560 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023561 xlc*)
23562 output_verbose_link_cmd='echo'
23563 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23564 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023565 # 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 +000023566 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}'
23567 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 +000023568 ;;
23569 *)
23570 ld_shlibs_GCJ=no
23571 ;;
23572 esac
John Criswell47fdd832003-07-14 16:52:07 +000023573 fi
23574 ;;
23575
23576 dgux*)
23577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23579 hardcode_shlibpath_var_GCJ=no
23580 ;;
23581
23582 freebsd1*)
23583 ld_shlibs_GCJ=no
23584 ;;
23585
23586 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23587 # support. Future versions do this automatically, but an explicit c++rt0.o
23588 # does not break anything, and helps significantly (at the cost of a little
23589 # extra space).
23590 freebsd2.2*)
23591 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23592 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23593 hardcode_direct_GCJ=yes
23594 hardcode_shlibpath_var_GCJ=no
23595 ;;
23596
23597 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23598 freebsd2*)
23599 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23600 hardcode_direct_GCJ=yes
23601 hardcode_minus_L_GCJ=yes
23602 hardcode_shlibpath_var_GCJ=no
23603 ;;
23604
23605 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000023606 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000023607 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23608 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23609 hardcode_direct_GCJ=yes
23610 hardcode_shlibpath_var_GCJ=no
23611 ;;
23612
23613 hpux9*)
23614 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000023615 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 +000023616 else
Reid Spencer177dbe22004-10-13 01:01:03 +000023617 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 +000023618 fi
23619 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23620 hardcode_libdir_separator_GCJ=:
23621 hardcode_direct_GCJ=yes
23622
23623 # hardcode_minus_L: Not really in the search PATH,
23624 # but as the default location of the library.
23625 hardcode_minus_L_GCJ=yes
23626 export_dynamic_flag_spec_GCJ='${wl}-E'
23627 ;;
23628
Reid Spencera773bd52006-08-04 18:18:08 +000023629 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000023630 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023631 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23632 else
23633 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23634 fi
23635 if test "$with_gnu_ld" = no; then
23636 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23637 hardcode_libdir_separator_GCJ=:
23638
23639 hardcode_direct_GCJ=yes
23640 export_dynamic_flag_spec_GCJ='${wl}-E'
23641
23642 # hardcode_minus_L: Not really in the search PATH,
23643 # but as the default location of the library.
23644 hardcode_minus_L_GCJ=yes
23645 fi
23646 ;;
23647
23648 hpux11*)
23649 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23650 case $host_cpu in
23651 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000023652 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23653 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023654 ia64*)
23655 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23656 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023657 *)
23658 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23659 ;;
23660 esac
23661 else
Reid Spencera773bd52006-08-04 18:18:08 +000023662 case $host_cpu in
23663 hppa*64*)
23664 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23665 ;;
23666 ia64*)
23667 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000023668 ;;
23669 *)
Reid Spencera773bd52006-08-04 18:18:08 +000023670 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 +000023671 ;;
23672 esac
23673 fi
23674 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023675 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23676 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000023677
Reid Spencera773bd52006-08-04 18:18:08 +000023678 case $host_cpu in
23679 hppa*64*|ia64*)
23680 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23681 hardcode_direct_GCJ=no
23682 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023683 ;;
23684 *)
John Criswell47fdd832003-07-14 16:52:07 +000023685 hardcode_direct_GCJ=yes
23686 export_dynamic_flag_spec_GCJ='${wl}-E'
23687
23688 # hardcode_minus_L: Not really in the search PATH,
23689 # but as the default location of the library.
23690 hardcode_minus_L_GCJ=yes
23691 ;;
23692 esac
23693 fi
23694 ;;
23695
23696 irix5* | irix6* | nonstopux*)
23697 if test "$GCC" = yes; then
23698 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'
23699 else
23700 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'
23701 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23702 fi
23703 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23704 hardcode_libdir_separator_GCJ=:
23705 link_all_deplibs_GCJ=yes
23706 ;;
23707
23708 netbsd*)
23709 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23710 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23711 else
23712 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23713 fi
23714 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23715 hardcode_direct_GCJ=yes
23716 hardcode_shlibpath_var_GCJ=no
23717 ;;
23718
23719 newsos6)
23720 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23721 hardcode_direct_GCJ=yes
23722 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23723 hardcode_libdir_separator_GCJ=:
23724 hardcode_shlibpath_var_GCJ=no
23725 ;;
23726
23727 openbsd*)
23728 hardcode_direct_GCJ=yes
23729 hardcode_shlibpath_var_GCJ=no
23730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23731 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023732 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 +000023733 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23734 export_dynamic_flag_spec_GCJ='${wl}-E'
23735 else
23736 case $host_os in
23737 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23738 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23739 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23740 ;;
23741 *)
23742 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23744 ;;
23745 esac
23746 fi
23747 ;;
23748
23749 os2*)
23750 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23751 hardcode_minus_L_GCJ=yes
23752 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000023753 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 +000023754 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23755 ;;
23756
23757 osf3*)
23758 if test "$GCC" = yes; then
23759 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23760 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'
23761 else
23762 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23763 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'
23764 fi
23765 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23766 hardcode_libdir_separator_GCJ=:
23767 ;;
23768
23769 osf4* | osf5*) # as osf3* with the addition of -msym flag
23770 if test "$GCC" = yes; then
23771 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23772 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'
23773 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23774 else
23775 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23776 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 +000023777 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 +000023778 $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 +000023779
John Criswell47fdd832003-07-14 16:52:07 +000023780 # Both c and cxx compiler support -rpath directly
23781 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23782 fi
23783 hardcode_libdir_separator_GCJ=:
23784 ;;
23785
John Criswell47fdd832003-07-14 16:52:07 +000023786 solaris*)
23787 no_undefined_flag_GCJ=' -z text'
23788 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023789 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000023790 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000023791 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23792 $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 +000023793 else
Reid Spencera773bd52006-08-04 18:18:08 +000023794 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000023795 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000023796 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23797 $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 +000023798 fi
23799 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23800 hardcode_shlibpath_var_GCJ=no
23801 case $host_os in
23802 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023803 *)
23804 # The compiler driver will combine linker options so we
23805 # cannot just pass the convience library names through
23806 # without $wl, iff we do not link with $LD.
23807 # Luckily, gcc supports the same syntax we need for Sun Studio.
23808 # Supported since Solaris 2.6 (maybe 2.5.1?)
23809 case $wlarc in
23810 '')
23811 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23812 *)
23813 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' ;;
23814 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000023815 esac
23816 link_all_deplibs_GCJ=yes
23817 ;;
23818
23819 sunos4*)
23820 if test "x$host_vendor" = xsequent; then
23821 # Use $CC to link under sequent, because it throws in some extra .o
23822 # files that make .init and .fini sections work.
23823 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23824 else
23825 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23826 fi
23827 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23828 hardcode_direct_GCJ=yes
23829 hardcode_minus_L_GCJ=yes
23830 hardcode_shlibpath_var_GCJ=no
23831 ;;
23832
23833 sysv4)
23834 case $host_vendor in
23835 sni)
23836 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23837 hardcode_direct_GCJ=yes # is this really true???
23838 ;;
23839 siemens)
23840 ## LD is ld it makes a PLAMLIB
23841 ## CC just makes a GrossModule.
23842 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23843 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23844 hardcode_direct_GCJ=no
23845 ;;
23846 motorola)
23847 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23848 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23849 ;;
23850 esac
23851 runpath_var='LD_RUN_PATH'
23852 hardcode_shlibpath_var_GCJ=no
23853 ;;
23854
23855 sysv4.3*)
23856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23857 hardcode_shlibpath_var_GCJ=no
23858 export_dynamic_flag_spec_GCJ='-Bexport'
23859 ;;
23860
23861 sysv4*MP*)
23862 if test -d /usr/nec; then
23863 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23864 hardcode_shlibpath_var_GCJ=no
23865 runpath_var=LD_RUN_PATH
23866 hardcode_runpath_var=yes
23867 ld_shlibs_GCJ=yes
23868 fi
23869 ;;
23870
Reid Spencera773bd52006-08-04 18:18:08 +000023871 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23872 no_undefined_flag_GCJ='${wl}-z,text'
23873 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023874 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000023875 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000023876
John Criswell47fdd832003-07-14 16:52:07 +000023877 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023878 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23879 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 +000023880 else
Reid Spencera773bd52006-08-04 18:18:08 +000023881 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23882 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 +000023883 fi
John Criswell47fdd832003-07-14 16:52:07 +000023884 ;;
23885
Reid Spencera773bd52006-08-04 18:18:08 +000023886 sysv5* | sco3.2v5* | sco5v6*)
23887 # Note: We can NOT use -z defs as we might desire, because we do not
23888 # link with -lc, and that would cause any symbols used from libc to
23889 # always be unresolved, which means just about no library would
23890 # ever link correctly. If we're not using GNU ld we use -z text
23891 # though, which does catch some bad symbols but isn't as heavy-handed
23892 # as -z defs.
23893 no_undefined_flag_GCJ='${wl}-z,text'
23894 allow_undefined_flag_GCJ='${wl}-z,nodefs'
23895 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023896 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000023897 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23898 hardcode_libdir_separator_GCJ=':'
23899 link_all_deplibs_GCJ=yes
23900 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000023901 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000023902
23903 if test "$GCC" = yes; then
23904 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23905 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23906 else
23907 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23908 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23909 fi
John Criswell47fdd832003-07-14 16:52:07 +000023910 ;;
23911
23912 uts4*)
23913 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23914 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23915 hardcode_shlibpath_var_GCJ=no
23916 ;;
23917
23918 *)
23919 ld_shlibs_GCJ=no
23920 ;;
23921 esac
23922 fi
23923
Reid Spencera773bd52006-08-04 18:18:08 +000023924{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23925echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023926test "$ld_shlibs_GCJ" = no && can_build_shared=no
23927
John Criswell47fdd832003-07-14 16:52:07 +000023928#
23929# Do we need to explicitly link libc?
23930#
23931case "x$archive_cmds_need_lc_GCJ" in
23932x|xyes)
23933 # Assume -lc should be added
23934 archive_cmds_need_lc_GCJ=yes
23935
23936 if test "$enable_shared" = yes && test "$GCC" = yes; then
23937 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023938 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000023939 # FIXME: we may have to deal with multi-command sequences.
23940 ;;
23941 '$CC '*)
23942 # Test whether the compiler implicitly links with -lc since on some
23943 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23944 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000023945 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23946echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023947 $rm conftest*
23948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23949
23950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23951 (eval $ac_compile) 2>&5
23952 ac_status=$?
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } 2>conftest.err; then
23955 soname=conftest
23956 lib=conftest
23957 libobjs=conftest.$ac_objext
23958 deplibs=
23959 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000023960 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000023961 compiler_flags=-v
23962 linker_flags=-v
23963 verstring=
23964 output_objdir=.
23965 libname=conftest
23966 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23967 allow_undefined_flag_GCJ=
23968 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23969 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23970 ac_status=$?
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); }
23973 then
23974 archive_cmds_need_lc_GCJ=no
23975 else
23976 archive_cmds_need_lc_GCJ=yes
23977 fi
23978 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23979 else
23980 cat conftest.err 1>&5
23981 fi
23982 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023983 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23984echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023985 ;;
23986 esac
23987 fi
23988 ;;
23989esac
23990
Reid Spencera773bd52006-08-04 18:18:08 +000023991{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23992echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023993library_names_spec=
23994libname_spec='lib$name'
23995soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023996shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023997postinstall_cmds=
23998postuninstall_cmds=
23999finish_cmds=
24000finish_eval=
24001shlibpath_var=
24002shlibpath_overrides_runpath=unknown
24003version_type=none
24004dynamic_linker="$host_os ld.so"
24005sys_lib_dlsearch_path_spec="/lib /usr/lib"
24006if test "$GCC" = yes; then
24007 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24008 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24009 # if the path contains ";" then we assume it to be the separator
24010 # otherwise default to the standard path separator (i.e. ":") - it is
24011 # assumed that no part of a normal pathname contains ";" but that should
24012 # okay in the real world where ";" in dirpaths is itself problematic.
24013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24014 else
24015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24016 fi
24017else
24018 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24019fi
24020need_lib_prefix=unknown
24021hardcode_into_libs=no
24022
24023# when you set need_version to no, make sure it does not cause -set_version
24024# flags to be left without arguments
24025need_version=unknown
24026
24027case $host_os in
24028aix3*)
24029 version_type=linux
24030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24031 shlibpath_var=LIBPATH
24032
24033 # AIX 3 has no versioning support, so we append a major version to the name.
24034 soname_spec='${libname}${release}${shared_ext}$major'
24035 ;;
24036
24037aix4* | aix5*)
24038 version_type=linux
24039 need_lib_prefix=no
24040 need_version=no
24041 hardcode_into_libs=yes
24042 if test "$host_cpu" = ia64; then
24043 # AIX 5 supports IA64
24044 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24045 shlibpath_var=LD_LIBRARY_PATH
24046 else
24047 # With GCC up to 2.95.x, collect2 would create an import file
24048 # for dependence libraries. The import file would start with
24049 # the line `#! .'. This would cause the generated library to
24050 # depend on `.', always an invalid library. This was fixed in
24051 # development snapshots of GCC prior to 3.0.
24052 case $host_os in
24053 aix4 | aix4.[01] | aix4.[01].*)
24054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24055 echo ' yes '
24056 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24057 :
24058 else
24059 can_build_shared=no
24060 fi
24061 ;;
24062 esac
24063 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24064 # soname into executable. Probably we can add versioning support to
24065 # collect2, so additional links can be useful in future.
24066 if test "$aix_use_runtimelinking" = yes; then
24067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24068 # instead of lib<name>.a to let people know that these are not
24069 # typical AIX shared libraries.
24070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24071 else
24072 # We preserve .a as extension for shared libraries through AIX4.2
24073 # and later when we are not doing run time linking.
24074 library_names_spec='${libname}${release}.a $libname.a'
24075 soname_spec='${libname}${release}${shared_ext}$major'
24076 fi
24077 shlibpath_var=LIBPATH
24078 fi
24079 ;;
24080
24081amigaos*)
24082 library_names_spec='$libname.ixlibrary $libname.a'
24083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024084 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 +000024085 ;;
24086
24087beos*)
24088 library_names_spec='${libname}${shared_ext}'
24089 dynamic_linker="$host_os ld.so"
24090 shlibpath_var=LIBRARY_PATH
24091 ;;
24092
Reid Spencer2706f8c2004-09-19 23:53:36 +000024093bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024094 version_type=linux
24095 need_version=no
24096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24097 soname_spec='${libname}${release}${shared_ext}$major'
24098 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24099 shlibpath_var=LD_LIBRARY_PATH
24100 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24101 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24102 # the default ld.so.conf also contains /usr/contrib/lib and
24103 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24104 # libtool to hard-code these into programs
24105 ;;
24106
24107cygwin* | mingw* | pw32*)
24108 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000024109 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024110 need_version=no
24111 need_lib_prefix=no
24112
24113 case $GCC,$host_os in
24114 yes,cygwin* | yes,mingw* | yes,pw32*)
24115 library_names_spec='$libname.dll.a'
24116 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000024117 postinstall_cmds='base_file=`basename \${file}`~
24118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24119 dldir=$destdir/`dirname \$dlpath`~
24120 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000024121 $install_prog $dir/$dlname \$dldir/$dlname~
24122 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000024123 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24124 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000024125 $rm \$dlpath'
24126 shlibpath_overrides_runpath=yes
24127
24128 case $host_os in
24129 cygwin*)
24130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24131 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 +000024132 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024133 ;;
24134 mingw*)
24135 # MinGW DLLs use traditional 'lib' prefix
24136 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24137 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24138 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24139 # It is most probably a Windows format PATH printed by
24140 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24141 # path with ; separators, and with drive letters. We can handle the
24142 # drive letters (cygwin fileutils understands them), so leave them,
24143 # especially as we might pass files found there to a mingw objdump,
24144 # which wouldn't understand a cygwinified path. Ahh.
24145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24146 else
24147 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24148 fi
24149 ;;
24150 pw32*)
24151 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000024152 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 +000024153 ;;
24154 esac
24155 ;;
24156
24157 *)
24158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24159 ;;
24160 esac
24161 dynamic_linker='Win32 ld.exe'
24162 # FIXME: first we should search . and the directory the executable is in
24163 shlibpath_var=PATH
24164 ;;
24165
24166darwin* | rhapsody*)
24167 dynamic_linker="$host_os dyld"
24168 version_type=darwin
24169 need_lib_prefix=no
24170 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000024171 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000024172 soname_spec='${libname}${release}${major}$shared_ext'
24173 shlibpath_overrides_runpath=yes
24174 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000024175 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000024176 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024177 if test "$GCC" = yes; then
24178 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"`
24179 else
24180 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000024181 fi
24182 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24183 ;;
24184
24185dgux*)
24186 version_type=linux
24187 need_lib_prefix=no
24188 need_version=no
24189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24190 soname_spec='${libname}${release}${shared_ext}$major'
24191 shlibpath_var=LD_LIBRARY_PATH
24192 ;;
24193
24194freebsd1*)
24195 dynamic_linker=no
24196 ;;
24197
Reid Spencer2706f8c2004-09-19 23:53:36 +000024198kfreebsd*-gnu)
24199 version_type=linux
24200 need_lib_prefix=no
24201 need_version=no
24202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24203 soname_spec='${libname}${release}${shared_ext}$major'
24204 shlibpath_var=LD_LIBRARY_PATH
24205 shlibpath_overrides_runpath=no
24206 hardcode_into_libs=yes
24207 dynamic_linker='GNU ld.so'
24208 ;;
24209
Reid Spencera773bd52006-08-04 18:18:08 +000024210freebsd* | dragonfly*)
24211 # DragonFly does not have aout. When/if they implement a new
24212 # versioning mechanism, adjust this.
24213 if test -x /usr/bin/objformat; then
24214 objformat=`/usr/bin/objformat`
24215 else
24216 case $host_os in
24217 freebsd[123]*) objformat=aout ;;
24218 *) objformat=elf ;;
24219 esac
24220 fi
John Criswell47fdd832003-07-14 16:52:07 +000024221 version_type=freebsd-$objformat
24222 case $version_type in
24223 freebsd-elf*)
24224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24225 need_version=no
24226 need_lib_prefix=no
24227 ;;
24228 freebsd-*)
24229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24230 need_version=yes
24231 ;;
24232 esac
24233 shlibpath_var=LD_LIBRARY_PATH
24234 case $host_os in
24235 freebsd2*)
24236 shlibpath_overrides_runpath=yes
24237 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024238 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000024239 shlibpath_overrides_runpath=yes
24240 hardcode_into_libs=yes
24241 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000024244 shlibpath_overrides_runpath=no
24245 hardcode_into_libs=yes
24246 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024247 freebsd*) # from 4.6 on
24248 shlibpath_overrides_runpath=yes
24249 hardcode_into_libs=yes
24250 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024251 esac
24252 ;;
24253
24254gnu*)
24255 version_type=linux
24256 need_lib_prefix=no
24257 need_version=no
24258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24259 soname_spec='${libname}${release}${shared_ext}$major'
24260 shlibpath_var=LD_LIBRARY_PATH
24261 hardcode_into_libs=yes
24262 ;;
24263
24264hpux9* | hpux10* | hpux11*)
24265 # Give a soname corresponding to the major version so that dld.sl refuses to
24266 # link against other versions.
24267 version_type=sunos
24268 need_lib_prefix=no
24269 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000024270 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024271 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024272 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000024273 hardcode_into_libs=yes
24274 dynamic_linker="$host_os dld.so"
24275 shlibpath_var=LD_LIBRARY_PATH
24276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24278 soname_spec='${libname}${release}${shared_ext}$major'
24279 if test "X$HPUX_IA64_MODE" = X32; then
24280 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24281 else
24282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24283 fi
24284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24285 ;;
24286 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024287 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024288 hardcode_into_libs=yes
24289 dynamic_linker="$host_os dld.sl"
24290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24293 soname_spec='${libname}${release}${shared_ext}$major'
24294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24296 ;;
24297 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024298 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024299 dynamic_linker="$host_os dld.sl"
24300 shlibpath_var=SHLIB_PATH
24301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24303 soname_spec='${libname}${release}${shared_ext}$major'
24304 ;;
24305 esac
24306 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24307 postinstall_cmds='chmod 555 $lib'
24308 ;;
24309
Reid Spencera773bd52006-08-04 18:18:08 +000024310interix3*)
24311 version_type=linux
24312 need_lib_prefix=no
24313 need_version=no
24314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24315 soname_spec='${libname}${release}${shared_ext}$major'
24316 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24317 shlibpath_var=LD_LIBRARY_PATH
24318 shlibpath_overrides_runpath=no
24319 hardcode_into_libs=yes
24320 ;;
24321
John Criswell47fdd832003-07-14 16:52:07 +000024322irix5* | irix6* | nonstopux*)
24323 case $host_os in
24324 nonstopux*) version_type=nonstopux ;;
24325 *)
24326 if test "$lt_cv_prog_gnu_ld" = yes; then
24327 version_type=linux
24328 else
24329 version_type=irix
24330 fi ;;
24331 esac
24332 need_lib_prefix=no
24333 need_version=no
24334 soname_spec='${libname}${release}${shared_ext}$major'
24335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24336 case $host_os in
24337 irix5* | nonstopux*)
24338 libsuff= shlibsuff=
24339 ;;
24340 *)
24341 case $LD in # libtool.m4 will add one of these switches to LD
24342 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24343 libsuff= shlibsuff= libmagic=32-bit;;
24344 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24345 libsuff=32 shlibsuff=N32 libmagic=N32;;
24346 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24347 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24348 *) libsuff= shlibsuff= libmagic=never-match;;
24349 esac
24350 ;;
24351 esac
24352 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24353 shlibpath_overrides_runpath=no
24354 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24355 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24356 hardcode_into_libs=yes
24357 ;;
24358
24359# No shared lib support for Linux oldld, aout, or coff.
24360linux*oldld* | linux*aout* | linux*coff*)
24361 dynamic_linker=no
24362 ;;
24363
24364# This must be Linux ELF.
24365linux*)
24366 version_type=linux
24367 need_lib_prefix=no
24368 need_version=no
24369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24370 soname_spec='${libname}${release}${shared_ext}$major'
24371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24372 shlibpath_var=LD_LIBRARY_PATH
24373 shlibpath_overrides_runpath=no
24374 # This implies no fast_install, which is unacceptable.
24375 # Some rework will be needed to allow for fast_install
24376 # before this can be enabled.
24377 hardcode_into_libs=yes
24378
Reid Spencer2706f8c2004-09-19 23:53:36 +000024379 # Append ld.so.conf contents to the search path
24380 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000024381 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 +000024382 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24383 fi
24384
John Criswell47fdd832003-07-14 16:52:07 +000024385 # We used to test for /lib/ld.so.1 and disable shared libraries on
24386 # powerpc, because MkLinux only supported shared libraries with the
24387 # GNU dynamic linker. Since this was broken with cross compilers,
24388 # most powerpc-linux boxes support dynamic linking these days and
24389 # people can always --disable-shared, the test was removed, and we
24390 # assume the GNU/Linux dynamic linker is in use.
24391 dynamic_linker='GNU/Linux ld.so'
24392 ;;
24393
Reid Spencer2706f8c2004-09-19 23:53:36 +000024394knetbsd*-gnu)
24395 version_type=linux
24396 need_lib_prefix=no
24397 need_version=no
24398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24399 soname_spec='${libname}${release}${shared_ext}$major'
24400 shlibpath_var=LD_LIBRARY_PATH
24401 shlibpath_overrides_runpath=no
24402 hardcode_into_libs=yes
24403 dynamic_linker='GNU ld.so'
24404 ;;
24405
John Criswell47fdd832003-07-14 16:52:07 +000024406netbsd*)
24407 version_type=sunos
24408 need_lib_prefix=no
24409 need_version=no
24410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24413 dynamic_linker='NetBSD (a.out) ld.so'
24414 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000024416 soname_spec='${libname}${release}${shared_ext}$major'
24417 dynamic_linker='NetBSD ld.elf_so'
24418 fi
24419 shlibpath_var=LD_LIBRARY_PATH
24420 shlibpath_overrides_runpath=yes
24421 hardcode_into_libs=yes
24422 ;;
24423
24424newsos6)
24425 version_type=linux
24426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24427 shlibpath_var=LD_LIBRARY_PATH
24428 shlibpath_overrides_runpath=yes
24429 ;;
24430
Reid Spencer2706f8c2004-09-19 23:53:36 +000024431nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000024432 version_type=linux
24433 need_lib_prefix=no
24434 need_version=no
24435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24436 soname_spec='${libname}${release}${shared_ext}$major'
24437 shlibpath_var=LD_LIBRARY_PATH
24438 shlibpath_overrides_runpath=yes
24439 ;;
24440
24441openbsd*)
24442 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000024443 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024444 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000024445 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24446 case $host_os in
24447 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24448 *) need_version=no ;;
24449 esac
John Criswell47fdd832003-07-14 16:52:07 +000024450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24452 shlibpath_var=LD_LIBRARY_PATH
24453 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24454 case $host_os in
24455 openbsd2.[89] | openbsd2.[89].*)
24456 shlibpath_overrides_runpath=no
24457 ;;
24458 *)
24459 shlibpath_overrides_runpath=yes
24460 ;;
24461 esac
24462 else
24463 shlibpath_overrides_runpath=yes
24464 fi
24465 ;;
24466
24467os2*)
24468 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024469 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024470 need_lib_prefix=no
24471 library_names_spec='$libname${shared_ext} $libname.a'
24472 dynamic_linker='OS/2 ld.exe'
24473 shlibpath_var=LIBPATH
24474 ;;
24475
24476osf3* | osf4* | osf5*)
24477 version_type=osf
24478 need_lib_prefix=no
24479 need_version=no
24480 soname_spec='${libname}${release}${shared_ext}$major'
24481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24482 shlibpath_var=LD_LIBRARY_PATH
24483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24484 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24485 ;;
24486
John Criswell47fdd832003-07-14 16:52:07 +000024487solaris*)
24488 version_type=linux
24489 need_lib_prefix=no
24490 need_version=no
24491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24492 soname_spec='${libname}${release}${shared_ext}$major'
24493 shlibpath_var=LD_LIBRARY_PATH
24494 shlibpath_overrides_runpath=yes
24495 hardcode_into_libs=yes
24496 # ldd complains unless libraries are executable
24497 postinstall_cmds='chmod +x $lib'
24498 ;;
24499
24500sunos4*)
24501 version_type=sunos
24502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24504 shlibpath_var=LD_LIBRARY_PATH
24505 shlibpath_overrides_runpath=yes
24506 if test "$with_gnu_ld" = yes; then
24507 need_lib_prefix=no
24508 fi
24509 need_version=yes
24510 ;;
24511
Reid Spencera773bd52006-08-04 18:18:08 +000024512sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024513 version_type=linux
24514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24515 soname_spec='${libname}${release}${shared_ext}$major'
24516 shlibpath_var=LD_LIBRARY_PATH
24517 case $host_vendor in
24518 sni)
24519 shlibpath_overrides_runpath=no
24520 need_lib_prefix=no
24521 export_dynamic_flag_spec='${wl}-Blargedynsym'
24522 runpath_var=LD_RUN_PATH
24523 ;;
24524 siemens)
24525 need_lib_prefix=no
24526 ;;
24527 motorola)
24528 need_lib_prefix=no
24529 need_version=no
24530 shlibpath_overrides_runpath=no
24531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24532 ;;
24533 esac
24534 ;;
24535
24536sysv4*MP*)
24537 if test -d /usr/nec ;then
24538 version_type=linux
24539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24540 soname_spec='$libname${shared_ext}.$major'
24541 shlibpath_var=LD_LIBRARY_PATH
24542 fi
24543 ;;
24544
Reid Spencera773bd52006-08-04 18:18:08 +000024545sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24546 version_type=freebsd-elf
24547 need_lib_prefix=no
24548 need_version=no
24549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24550 soname_spec='${libname}${release}${shared_ext}$major'
24551 shlibpath_var=LD_LIBRARY_PATH
24552 hardcode_into_libs=yes
24553 if test "$with_gnu_ld" = yes; then
24554 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24555 shlibpath_overrides_runpath=no
24556 else
24557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24558 shlibpath_overrides_runpath=yes
24559 case $host_os in
24560 sco3.2v5*)
24561 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24562 ;;
24563 esac
24564 fi
24565 sys_lib_dlsearch_path_spec='/usr/lib'
24566 ;;
24567
John Criswell47fdd832003-07-14 16:52:07 +000024568uts4*)
24569 version_type=linux
24570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24571 soname_spec='${libname}${release}${shared_ext}$major'
24572 shlibpath_var=LD_LIBRARY_PATH
24573 ;;
24574
24575*)
24576 dynamic_linker=no
24577 ;;
24578esac
Reid Spencera773bd52006-08-04 18:18:08 +000024579{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24580echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024581test "$dynamic_linker" = no && can_build_shared=no
24582
Reid Spencera773bd52006-08-04 18:18:08 +000024583variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24584if test "$GCC" = yes; then
24585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24586fi
24587
24588{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24589echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024590hardcode_action_GCJ=
24591if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24592 test -n "$runpath_var_GCJ" || \
24593 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24594
24595 # We can hardcode non-existant directories.
24596 if test "$hardcode_direct_GCJ" != no &&
24597 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24598 # have to relink, otherwise we might link with an installed library
24599 # when we should be linking with a yet-to-be-installed one
24600 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24601 test "$hardcode_minus_L_GCJ" != no; then
24602 # Linking always hardcodes the temporary library directory.
24603 hardcode_action_GCJ=relink
24604 else
24605 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24606 hardcode_action_GCJ=immediate
24607 fi
24608else
24609 # We cannot hardcode anything, or else we can only hardcode existing
24610 # directories.
24611 hardcode_action_GCJ=unsupported
24612fi
Reid Spencera773bd52006-08-04 18:18:08 +000024613{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24614echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024615
24616if test "$hardcode_action_GCJ" = relink; then
24617 # Fast installation is not supported
24618 enable_fast_install=no
24619elif test "$shlibpath_overrides_runpath" = yes ||
24620 test "$enable_shared" = no; then
24621 # Fast installation is not necessary
24622 enable_fast_install=needless
24623fi
24624
John Criswell47fdd832003-07-14 16:52:07 +000024625
24626# The else clause should only fire when bootstrapping the
24627# libtool distribution, otherwise you forgot to ship ltmain.sh
24628# with your package, and you will get complaints that there are
24629# no rules to generate ltmain.sh.
24630if test -f "$ltmain"; then
24631 # See if we are running on zsh, and set the options which allow our commands through
24632 # without removal of \ escapes.
24633 if test -n "${ZSH_VERSION+set}" ; then
24634 setopt NO_GLOB_SUBST
24635 fi
24636 # Now quote all the things that may contain metacharacters while being
24637 # careful not to overquote the AC_SUBSTed values. We take copies of the
24638 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000024639 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 +000024640 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024641 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24642 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24643 deplibs_check_method reload_flag reload_cmds need_locks \
24644 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24645 lt_cv_sys_global_symbol_to_c_name_address \
24646 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24647 old_postinstall_cmds old_postuninstall_cmds \
24648 compiler_GCJ \
24649 CC_GCJ \
24650 LD_GCJ \
24651 lt_prog_compiler_wl_GCJ \
24652 lt_prog_compiler_pic_GCJ \
24653 lt_prog_compiler_static_GCJ \
24654 lt_prog_compiler_no_builtin_flag_GCJ \
24655 export_dynamic_flag_spec_GCJ \
24656 thread_safe_flag_spec_GCJ \
24657 whole_archive_flag_spec_GCJ \
24658 enable_shared_with_static_runtimes_GCJ \
24659 old_archive_cmds_GCJ \
24660 old_archive_from_new_cmds_GCJ \
24661 predep_objects_GCJ \
24662 postdep_objects_GCJ \
24663 predeps_GCJ \
24664 postdeps_GCJ \
24665 compiler_lib_search_path_GCJ \
24666 archive_cmds_GCJ \
24667 archive_expsym_cmds_GCJ \
24668 postinstall_cmds_GCJ \
24669 postuninstall_cmds_GCJ \
24670 old_archive_from_expsyms_cmds_GCJ \
24671 allow_undefined_flag_GCJ \
24672 no_undefined_flag_GCJ \
24673 export_symbols_cmds_GCJ \
24674 hardcode_libdir_flag_spec_GCJ \
24675 hardcode_libdir_flag_spec_ld_GCJ \
24676 hardcode_libdir_separator_GCJ \
24677 hardcode_automatic_GCJ \
24678 module_cmds_GCJ \
24679 module_expsym_cmds_GCJ \
24680 lt_cv_prog_compiler_c_o_GCJ \
24681 exclude_expsyms_GCJ \
24682 include_expsyms_GCJ; do
24683
24684 case $var in
24685 old_archive_cmds_GCJ | \
24686 old_archive_from_new_cmds_GCJ | \
24687 archive_cmds_GCJ | \
24688 archive_expsym_cmds_GCJ | \
24689 module_cmds_GCJ | \
24690 module_expsym_cmds_GCJ | \
24691 old_archive_from_expsyms_cmds_GCJ | \
24692 export_symbols_cmds_GCJ | \
24693 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24694 postinstall_cmds | postuninstall_cmds | \
24695 old_postinstall_cmds | old_postuninstall_cmds | \
24696 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24697 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024698 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 +000024699 ;;
24700 *)
24701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24702 ;;
24703 esac
24704 done
24705
24706 case $lt_echo in
24707 *'\$0 --fallback-echo"')
24708 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24709 ;;
24710 esac
24711
24712cfgfile="$ofile"
24713
24714 cat <<__EOF__ >> "$cfgfile"
24715# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24716
24717# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24718
24719# Shell to use when invoking shell scripts.
24720SHELL=$lt_SHELL
24721
24722# Whether or not to build shared libraries.
24723build_libtool_libs=$enable_shared
24724
24725# Whether or not to build static libraries.
24726build_old_libs=$enable_static
24727
24728# Whether or not to add -lc for building shared libraries.
24729build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24730
24731# Whether or not to disallow shared libs when runtime libs are static
24732allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24733
24734# Whether or not to optimize for fast installation.
24735fast_install=$enable_fast_install
24736
24737# The host system.
24738host_alias=$host_alias
24739host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000024740host_os=$host_os
24741
24742# The build system.
24743build_alias=$build_alias
24744build=$build
24745build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000024746
24747# An echo program that does not interpret backslashes.
24748echo=$lt_echo
24749
24750# The archiver.
24751AR=$lt_AR
24752AR_FLAGS=$lt_AR_FLAGS
24753
24754# A C compiler.
24755LTCC=$lt_LTCC
24756
Reid Spencera773bd52006-08-04 18:18:08 +000024757# LTCC compiler flags.
24758LTCFLAGS=$lt_LTCFLAGS
24759
John Criswell47fdd832003-07-14 16:52:07 +000024760# A language-specific compiler.
24761CC=$lt_compiler_GCJ
24762
24763# Is the compiler the GNU C compiler?
24764with_gcc=$GCC_GCJ
24765
24766# An ERE matcher.
24767EGREP=$lt_EGREP
24768
24769# The linker used to build libraries.
24770LD=$lt_LD_GCJ
24771
24772# Whether we need hard or soft links.
24773LN_S=$lt_LN_S
24774
24775# A BSD-compatible nm program.
24776NM=$lt_NM
24777
24778# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024779STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024780
24781# Used to examine libraries when file_magic_cmd begins "file"
24782MAGIC_CMD=$MAGIC_CMD
24783
24784# Used on cygwin: DLL creation program.
24785DLLTOOL="$DLLTOOL"
24786
24787# Used on cygwin: object dumper.
24788OBJDUMP="$OBJDUMP"
24789
24790# Used on cygwin: assembler.
24791AS="$AS"
24792
24793# The name of the directory that contains temporary libtool files.
24794objdir=$objdir
24795
24796# How to create reloadable object files.
24797reload_flag=$lt_reload_flag
24798reload_cmds=$lt_reload_cmds
24799
24800# How to pass a linker flag through the compiler.
24801wl=$lt_lt_prog_compiler_wl_GCJ
24802
24803# Object file suffix (normally "o").
24804objext="$ac_objext"
24805
24806# Old archive suffix (normally "a").
24807libext="$libext"
24808
24809# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024810shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024811
24812# Executable file suffix (normally "").
24813exeext="$exeext"
24814
24815# Additional compiler flags for building library objects.
24816pic_flag=$lt_lt_prog_compiler_pic_GCJ
24817pic_mode=$pic_mode
24818
24819# What is the maximum length of a command?
24820max_cmd_len=$lt_cv_sys_max_cmd_len
24821
24822# Does compiler simultaneously support -c and -o options?
24823compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24824
Reid Spencera773bd52006-08-04 18:18:08 +000024825# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000024826need_locks=$lt_need_locks
24827
24828# Do we need the lib prefix for modules?
24829need_lib_prefix=$need_lib_prefix
24830
24831# Do we need a version for libraries?
24832need_version=$need_version
24833
24834# Whether dlopen is supported.
24835dlopen_support=$enable_dlopen
24836
24837# Whether dlopen of programs is supported.
24838dlopen_self=$enable_dlopen_self
24839
24840# Whether dlopen of statically linked programs is supported.
24841dlopen_self_static=$enable_dlopen_self_static
24842
24843# Compiler flag to prevent dynamic linking.
24844link_static_flag=$lt_lt_prog_compiler_static_GCJ
24845
24846# Compiler flag to turn off builtin functions.
24847no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24848
24849# Compiler flag to allow reflexive dlopens.
24850export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24851
24852# Compiler flag to generate shared objects directly from archives.
24853whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24854
24855# Compiler flag to generate thread-safe objects.
24856thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24857
24858# Library versioning type.
24859version_type=$version_type
24860
24861# Format of library name prefix.
24862libname_spec=$lt_libname_spec
24863
24864# List of archive names. First name is the real one, the rest are links.
24865# The last name is the one that the linker finds with -lNAME.
24866library_names_spec=$lt_library_names_spec
24867
24868# The coded name of the library, if different from the real name.
24869soname_spec=$lt_soname_spec
24870
24871# Commands used to build and install an old-style archive.
24872RANLIB=$lt_RANLIB
24873old_archive_cmds=$lt_old_archive_cmds_GCJ
24874old_postinstall_cmds=$lt_old_postinstall_cmds
24875old_postuninstall_cmds=$lt_old_postuninstall_cmds
24876
24877# Create an old-style archive from a shared archive.
24878old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24879
24880# Create a temporary old-style archive to link instead of a shared archive.
24881old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24882
24883# Commands used to build and install a shared archive.
24884archive_cmds=$lt_archive_cmds_GCJ
24885archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24886postinstall_cmds=$lt_postinstall_cmds
24887postuninstall_cmds=$lt_postuninstall_cmds
24888
24889# Commands used to build a loadable module (assumed same as above if empty)
24890module_cmds=$lt_module_cmds_GCJ
24891module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24892
24893# Commands to strip libraries.
24894old_striplib=$lt_old_striplib
24895striplib=$lt_striplib
24896
24897# Dependencies to place before the objects being linked to create a
24898# shared library.
24899predep_objects=$lt_predep_objects_GCJ
24900
24901# Dependencies to place after the objects being linked to create a
24902# shared library.
24903postdep_objects=$lt_postdep_objects_GCJ
24904
24905# Dependencies to place before the objects being linked to create a
24906# shared library.
24907predeps=$lt_predeps_GCJ
24908
24909# Dependencies to place after the objects being linked to create a
24910# shared library.
24911postdeps=$lt_postdeps_GCJ
24912
24913# The library search path used internally by the compiler when linking
24914# a shared library.
24915compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24916
24917# Method to check whether dependent libraries are shared objects.
24918deplibs_check_method=$lt_deplibs_check_method
24919
24920# Command to use when deplibs_check_method == file_magic.
24921file_magic_cmd=$lt_file_magic_cmd
24922
24923# Flag that allows shared libraries with undefined symbols to be built.
24924allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24925
24926# Flag that forces no undefined symbols.
24927no_undefined_flag=$lt_no_undefined_flag_GCJ
24928
24929# Commands used to finish a libtool library installation in a directory.
24930finish_cmds=$lt_finish_cmds
24931
24932# Same as above, but a single script fragment to be evaled but not shown.
24933finish_eval=$lt_finish_eval
24934
24935# Take the output of nm and produce a listing of raw symbols and C names.
24936global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24937
24938# Transform the output of nm in a proper C declaration
24939global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24940
24941# Transform the output of nm in a C name address pair
24942global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24943
24944# This is the shared library runtime path variable.
24945runpath_var=$runpath_var
24946
24947# This is the shared library path variable.
24948shlibpath_var=$shlibpath_var
24949
24950# Is shlibpath searched before the hard-coded library search path?
24951shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24952
24953# How to hardcode a shared library path into an executable.
24954hardcode_action=$hardcode_action_GCJ
24955
24956# Whether we should hardcode library paths into libraries.
24957hardcode_into_libs=$hardcode_into_libs
24958
24959# Flag to hardcode \$libdir into a binary during linking.
24960# This must work even if \$libdir does not exist.
24961hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24962
24963# If ld is used when linking, flag to hardcode \$libdir into
24964# a binary during linking. This must work even if \$libdir does
24965# not exist.
24966hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24967
24968# Whether we need a single -rpath flag with a separated argument.
24969hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24970
24971# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24972# resulting binary.
24973hardcode_direct=$hardcode_direct_GCJ
24974
24975# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24976# resulting binary.
24977hardcode_minus_L=$hardcode_minus_L_GCJ
24978
24979# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24980# the resulting binary.
24981hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24982
24983# Set to yes if building a shared library automatically hardcodes DIR into the library
24984# and all subsequent libraries and executables linked against it.
24985hardcode_automatic=$hardcode_automatic_GCJ
24986
24987# Variables whose values should be saved in libtool wrapper scripts and
24988# restored at relink time.
24989variables_saved_for_relink="$variables_saved_for_relink"
24990
24991# Whether libtool must link a program against all its dependency libraries.
24992link_all_deplibs=$link_all_deplibs_GCJ
24993
24994# Compile-time system search path for libraries
24995sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24996
24997# Run-time system search path for libraries
24998sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24999
25000# Fix the shell variable \$srcfile for the compiler.
25001fix_srcfile_path="$fix_srcfile_path_GCJ"
25002
25003# Set to yes if exported symbols are required.
25004always_export_symbols=$always_export_symbols_GCJ
25005
25006# The commands to list exported symbols.
25007export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25008
25009# The commands to extract the exported symbol list from a shared archive.
25010extract_expsyms_cmds=$lt_extract_expsyms_cmds
25011
25012# Symbols that should not be listed in the preloaded symbols.
25013exclude_expsyms=$lt_exclude_expsyms_GCJ
25014
25015# Symbols that must always be exported.
25016include_expsyms=$lt_include_expsyms_GCJ
25017
25018# ### END LIBTOOL TAG CONFIG: $tagname
25019
25020__EOF__
25021
25022
25023else
25024 # If there is no Makefile yet, we rely on a make rule to execute
25025 # `config.status --recheck' to rerun these tests and create the
25026 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025027 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25028 if test -f "$ltmain_in"; then
25029 test -f Makefile && make "$ltmain"
25030 fi
John Criswell47fdd832003-07-14 16:52:07 +000025031fi
25032
25033
25034ac_ext=c
25035ac_cpp='$CPP $CPPFLAGS'
25036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25038ac_compiler_gnu=$ac_cv_c_compiler_gnu
25039
25040CC="$lt_save_CC"
25041
25042 else
25043 tagname=""
25044 fi
25045 ;;
25046
25047 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025048 ac_ext=c
25049ac_cpp='$CPP $CPPFLAGS'
25050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25052ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000025053
25054
25055# Source file extension for RC test sources.
25056ac_ext=rc
25057
25058# Object file extension for compiled RC test sources.
25059objext=o
25060objext_RC=$objext
25061
25062# Code to be used in simple compile tests
25063lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25064
25065# Code to be used in simple link tests
25066lt_simple_link_test_code="$lt_simple_compile_test_code"
25067
25068# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25069
25070# If no C compiler was specified, use CC.
25071LTCC=${LTCC-"$CC"}
25072
Reid Spencera773bd52006-08-04 18:18:08 +000025073# If no C compiler flags were specified, use CFLAGS.
25074LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25075
John Criswell47fdd832003-07-14 16:52:07 +000025076# Allow CC to be a program name with arguments.
25077compiler=$CC
25078
25079
Reid Spencera773bd52006-08-04 18:18:08 +000025080# save warnings/boilerplate of simple test code
25081ac_outfile=conftest.$ac_objext
25082printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25083eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25084_lt_compiler_boilerplate=`cat conftest.err`
25085$rm conftest*
25086
25087ac_outfile=conftest.$ac_objext
25088printf "$lt_simple_link_test_code" >conftest.$ac_ext
25089eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25090_lt_linker_boilerplate=`cat conftest.err`
25091$rm conftest*
25092
25093
John Criswell47fdd832003-07-14 16:52:07 +000025094# Allow CC to be a program name with arguments.
25095lt_save_CC="$CC"
25096CC=${RC-"windres"}
25097compiler=$CC
25098compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000025099for cc_temp in $compiler""; do
25100 case $cc_temp in
25101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25103 \-*) ;;
25104 *) break;;
25105 esac
25106done
25107cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25108
John Criswell47fdd832003-07-14 16:52:07 +000025109lt_cv_prog_compiler_c_o_RC=yes
25110
25111# The else clause should only fire when bootstrapping the
25112# libtool distribution, otherwise you forgot to ship ltmain.sh
25113# with your package, and you will get complaints that there are
25114# no rules to generate ltmain.sh.
25115if test -f "$ltmain"; then
25116 # See if we are running on zsh, and set the options which allow our commands through
25117 # without removal of \ escapes.
25118 if test -n "${ZSH_VERSION+set}" ; then
25119 setopt NO_GLOB_SUBST
25120 fi
25121 # Now quote all the things that may contain metacharacters while being
25122 # careful not to overquote the AC_SUBSTed values. We take copies of the
25123 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025124 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 +000025125 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025126 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25127 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25128 deplibs_check_method reload_flag reload_cmds need_locks \
25129 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25130 lt_cv_sys_global_symbol_to_c_name_address \
25131 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25132 old_postinstall_cmds old_postuninstall_cmds \
25133 compiler_RC \
25134 CC_RC \
25135 LD_RC \
25136 lt_prog_compiler_wl_RC \
25137 lt_prog_compiler_pic_RC \
25138 lt_prog_compiler_static_RC \
25139 lt_prog_compiler_no_builtin_flag_RC \
25140 export_dynamic_flag_spec_RC \
25141 thread_safe_flag_spec_RC \
25142 whole_archive_flag_spec_RC \
25143 enable_shared_with_static_runtimes_RC \
25144 old_archive_cmds_RC \
25145 old_archive_from_new_cmds_RC \
25146 predep_objects_RC \
25147 postdep_objects_RC \
25148 predeps_RC \
25149 postdeps_RC \
25150 compiler_lib_search_path_RC \
25151 archive_cmds_RC \
25152 archive_expsym_cmds_RC \
25153 postinstall_cmds_RC \
25154 postuninstall_cmds_RC \
25155 old_archive_from_expsyms_cmds_RC \
25156 allow_undefined_flag_RC \
25157 no_undefined_flag_RC \
25158 export_symbols_cmds_RC \
25159 hardcode_libdir_flag_spec_RC \
25160 hardcode_libdir_flag_spec_ld_RC \
25161 hardcode_libdir_separator_RC \
25162 hardcode_automatic_RC \
25163 module_cmds_RC \
25164 module_expsym_cmds_RC \
25165 lt_cv_prog_compiler_c_o_RC \
25166 exclude_expsyms_RC \
25167 include_expsyms_RC; do
25168
25169 case $var in
25170 old_archive_cmds_RC | \
25171 old_archive_from_new_cmds_RC | \
25172 archive_cmds_RC | \
25173 archive_expsym_cmds_RC | \
25174 module_cmds_RC | \
25175 module_expsym_cmds_RC | \
25176 old_archive_from_expsyms_cmds_RC | \
25177 export_symbols_cmds_RC | \
25178 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25179 postinstall_cmds | postuninstall_cmds | \
25180 old_postinstall_cmds | old_postuninstall_cmds | \
25181 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25182 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025183 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 +000025184 ;;
25185 *)
25186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25187 ;;
25188 esac
25189 done
25190
25191 case $lt_echo in
25192 *'\$0 --fallback-echo"')
25193 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25194 ;;
25195 esac
25196
25197cfgfile="$ofile"
25198
25199 cat <<__EOF__ >> "$cfgfile"
25200# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25201
25202# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25203
25204# Shell to use when invoking shell scripts.
25205SHELL=$lt_SHELL
25206
25207# Whether or not to build shared libraries.
25208build_libtool_libs=$enable_shared
25209
25210# Whether or not to build static libraries.
25211build_old_libs=$enable_static
25212
25213# Whether or not to add -lc for building shared libraries.
25214build_libtool_need_lc=$archive_cmds_need_lc_RC
25215
25216# Whether or not to disallow shared libs when runtime libs are static
25217allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25218
25219# Whether or not to optimize for fast installation.
25220fast_install=$enable_fast_install
25221
25222# The host system.
25223host_alias=$host_alias
25224host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025225host_os=$host_os
25226
25227# The build system.
25228build_alias=$build_alias
25229build=$build
25230build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025231
25232# An echo program that does not interpret backslashes.
25233echo=$lt_echo
25234
25235# The archiver.
25236AR=$lt_AR
25237AR_FLAGS=$lt_AR_FLAGS
25238
25239# A C compiler.
25240LTCC=$lt_LTCC
25241
Reid Spencera773bd52006-08-04 18:18:08 +000025242# LTCC compiler flags.
25243LTCFLAGS=$lt_LTCFLAGS
25244
John Criswell47fdd832003-07-14 16:52:07 +000025245# A language-specific compiler.
25246CC=$lt_compiler_RC
25247
25248# Is the compiler the GNU C compiler?
25249with_gcc=$GCC_RC
25250
25251# An ERE matcher.
25252EGREP=$lt_EGREP
25253
25254# The linker used to build libraries.
25255LD=$lt_LD_RC
25256
25257# Whether we need hard or soft links.
25258LN_S=$lt_LN_S
25259
25260# A BSD-compatible nm program.
25261NM=$lt_NM
25262
25263# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025264STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025265
25266# Used to examine libraries when file_magic_cmd begins "file"
25267MAGIC_CMD=$MAGIC_CMD
25268
25269# Used on cygwin: DLL creation program.
25270DLLTOOL="$DLLTOOL"
25271
25272# Used on cygwin: object dumper.
25273OBJDUMP="$OBJDUMP"
25274
25275# Used on cygwin: assembler.
25276AS="$AS"
25277
25278# The name of the directory that contains temporary libtool files.
25279objdir=$objdir
25280
25281# How to create reloadable object files.
25282reload_flag=$lt_reload_flag
25283reload_cmds=$lt_reload_cmds
25284
25285# How to pass a linker flag through the compiler.
25286wl=$lt_lt_prog_compiler_wl_RC
25287
25288# Object file suffix (normally "o").
25289objext="$ac_objext"
25290
25291# Old archive suffix (normally "a").
25292libext="$libext"
25293
25294# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025295shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025296
25297# Executable file suffix (normally "").
25298exeext="$exeext"
25299
25300# Additional compiler flags for building library objects.
25301pic_flag=$lt_lt_prog_compiler_pic_RC
25302pic_mode=$pic_mode
25303
25304# What is the maximum length of a command?
25305max_cmd_len=$lt_cv_sys_max_cmd_len
25306
25307# Does compiler simultaneously support -c and -o options?
25308compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25309
Reid Spencera773bd52006-08-04 18:18:08 +000025310# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025311need_locks=$lt_need_locks
25312
25313# Do we need the lib prefix for modules?
25314need_lib_prefix=$need_lib_prefix
25315
25316# Do we need a version for libraries?
25317need_version=$need_version
25318
25319# Whether dlopen is supported.
25320dlopen_support=$enable_dlopen
25321
25322# Whether dlopen of programs is supported.
25323dlopen_self=$enable_dlopen_self
25324
25325# Whether dlopen of statically linked programs is supported.
25326dlopen_self_static=$enable_dlopen_self_static
25327
25328# Compiler flag to prevent dynamic linking.
25329link_static_flag=$lt_lt_prog_compiler_static_RC
25330
25331# Compiler flag to turn off builtin functions.
25332no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25333
25334# Compiler flag to allow reflexive dlopens.
25335export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25336
25337# Compiler flag to generate shared objects directly from archives.
25338whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25339
25340# Compiler flag to generate thread-safe objects.
25341thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25342
25343# Library versioning type.
25344version_type=$version_type
25345
25346# Format of library name prefix.
25347libname_spec=$lt_libname_spec
25348
25349# List of archive names. First name is the real one, the rest are links.
25350# The last name is the one that the linker finds with -lNAME.
25351library_names_spec=$lt_library_names_spec
25352
25353# The coded name of the library, if different from the real name.
25354soname_spec=$lt_soname_spec
25355
25356# Commands used to build and install an old-style archive.
25357RANLIB=$lt_RANLIB
25358old_archive_cmds=$lt_old_archive_cmds_RC
25359old_postinstall_cmds=$lt_old_postinstall_cmds
25360old_postuninstall_cmds=$lt_old_postuninstall_cmds
25361
25362# Create an old-style archive from a shared archive.
25363old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25364
25365# Create a temporary old-style archive to link instead of a shared archive.
25366old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25367
25368# Commands used to build and install a shared archive.
25369archive_cmds=$lt_archive_cmds_RC
25370archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25371postinstall_cmds=$lt_postinstall_cmds
25372postuninstall_cmds=$lt_postuninstall_cmds
25373
25374# Commands used to build a loadable module (assumed same as above if empty)
25375module_cmds=$lt_module_cmds_RC
25376module_expsym_cmds=$lt_module_expsym_cmds_RC
25377
25378# Commands to strip libraries.
25379old_striplib=$lt_old_striplib
25380striplib=$lt_striplib
25381
25382# Dependencies to place before the objects being linked to create a
25383# shared library.
25384predep_objects=$lt_predep_objects_RC
25385
25386# Dependencies to place after the objects being linked to create a
25387# shared library.
25388postdep_objects=$lt_postdep_objects_RC
25389
25390# Dependencies to place before the objects being linked to create a
25391# shared library.
25392predeps=$lt_predeps_RC
25393
25394# Dependencies to place after the objects being linked to create a
25395# shared library.
25396postdeps=$lt_postdeps_RC
25397
25398# The library search path used internally by the compiler when linking
25399# a shared library.
25400compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25401
25402# Method to check whether dependent libraries are shared objects.
25403deplibs_check_method=$lt_deplibs_check_method
25404
25405# Command to use when deplibs_check_method == file_magic.
25406file_magic_cmd=$lt_file_magic_cmd
25407
25408# Flag that allows shared libraries with undefined symbols to be built.
25409allow_undefined_flag=$lt_allow_undefined_flag_RC
25410
25411# Flag that forces no undefined symbols.
25412no_undefined_flag=$lt_no_undefined_flag_RC
25413
25414# Commands used to finish a libtool library installation in a directory.
25415finish_cmds=$lt_finish_cmds
25416
25417# Same as above, but a single script fragment to be evaled but not shown.
25418finish_eval=$lt_finish_eval
25419
25420# Take the output of nm and produce a listing of raw symbols and C names.
25421global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25422
25423# Transform the output of nm in a proper C declaration
25424global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25425
25426# Transform the output of nm in a C name address pair
25427global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25428
25429# This is the shared library runtime path variable.
25430runpath_var=$runpath_var
25431
25432# This is the shared library path variable.
25433shlibpath_var=$shlibpath_var
25434
25435# Is shlibpath searched before the hard-coded library search path?
25436shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25437
25438# How to hardcode a shared library path into an executable.
25439hardcode_action=$hardcode_action_RC
25440
25441# Whether we should hardcode library paths into libraries.
25442hardcode_into_libs=$hardcode_into_libs
25443
25444# Flag to hardcode \$libdir into a binary during linking.
25445# This must work even if \$libdir does not exist.
25446hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25447
25448# If ld is used when linking, flag to hardcode \$libdir into
25449# a binary during linking. This must work even if \$libdir does
25450# not exist.
25451hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25452
25453# Whether we need a single -rpath flag with a separated argument.
25454hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25455
25456# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25457# resulting binary.
25458hardcode_direct=$hardcode_direct_RC
25459
25460# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25461# resulting binary.
25462hardcode_minus_L=$hardcode_minus_L_RC
25463
25464# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25465# the resulting binary.
25466hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25467
25468# Set to yes if building a shared library automatically hardcodes DIR into the library
25469# and all subsequent libraries and executables linked against it.
25470hardcode_automatic=$hardcode_automatic_RC
25471
25472# Variables whose values should be saved in libtool wrapper scripts and
25473# restored at relink time.
25474variables_saved_for_relink="$variables_saved_for_relink"
25475
25476# Whether libtool must link a program against all its dependency libraries.
25477link_all_deplibs=$link_all_deplibs_RC
25478
25479# Compile-time system search path for libraries
25480sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25481
25482# Run-time system search path for libraries
25483sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25484
25485# Fix the shell variable \$srcfile for the compiler.
25486fix_srcfile_path="$fix_srcfile_path_RC"
25487
25488# Set to yes if exported symbols are required.
25489always_export_symbols=$always_export_symbols_RC
25490
25491# The commands to list exported symbols.
25492export_symbols_cmds=$lt_export_symbols_cmds_RC
25493
25494# The commands to extract the exported symbol list from a shared archive.
25495extract_expsyms_cmds=$lt_extract_expsyms_cmds
25496
25497# Symbols that should not be listed in the preloaded symbols.
25498exclude_expsyms=$lt_exclude_expsyms_RC
25499
25500# Symbols that must always be exported.
25501include_expsyms=$lt_include_expsyms_RC
25502
25503# ### END LIBTOOL TAG CONFIG: $tagname
25504
25505__EOF__
25506
25507
25508else
25509 # If there is no Makefile yet, we rely on a make rule to execute
25510 # `config.status --recheck' to rerun these tests and create the
25511 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025512 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25513 if test -f "$ltmain_in"; then
25514 test -f Makefile && make "$ltmain"
25515 fi
John Criswell47fdd832003-07-14 16:52:07 +000025516fi
25517
25518
25519ac_ext=c
25520ac_cpp='$CPP $CPPFLAGS'
25521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25523ac_compiler_gnu=$ac_cv_c_compiler_gnu
25524
25525CC="$lt_save_CC"
25526
25527 ;;
25528
25529 *)
25530 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25531echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25532 { (exit 1); exit 1; }; }
25533 ;;
25534 esac
25535
25536 # Append the new tag name to the list of available tags.
25537 if test -n "$tagname" ; then
25538 available_tags="$available_tags $tagname"
25539 fi
25540 fi
25541 done
25542 IFS="$lt_save_ifs"
25543
25544 # Now substitute the updated list of available tags.
25545 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25546 mv "${ofile}T" "$ofile"
25547 chmod +x "$ofile"
25548 else
25549 rm -f "${ofile}T"
25550 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25551echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25552 { (exit 1); exit 1; }; }
25553 fi
25554fi
John Criswell7a73b802003-06-30 21:59:07 +000025555
25556
25557
25558# This can be used to rebuild libtool when needed
25559LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25560
25561# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025562LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000025563
25564# Prevent multiple expansion
25565
25566
25567
John Criswell47fdd832003-07-14 16:52:07 +000025568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025585
Reid Spencer582a23c2004-12-29 07:07:57 +000025586if test "$lt_cv_dlopen_self" = "yes" ; then
25587
25588cat >>confdefs.h <<\_ACEOF
25589#define CAN_DLOPEN_SELF 1
25590_ACEOF
25591
25592fi
25593
Reid Spencer7931a782004-12-27 06:15:02 +000025594if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000025595 LLVMGCC="llvm-gcc${EXEEXT}"
25596 LLVMGXX="llvm-g++${EXEEXT}"
25597 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25598set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025601if test "${ac_cv_path_LLVMGCC+set}" = set; then
25602 echo $ECHO_N "(cached) $ECHO_C" >&6
25603else
25604 case $LLVMGCC in
25605 [\\/]* | ?:[\\/]*)
25606 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25607 ;;
25608 *)
25609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25610for as_dir in $PATH
25611do
25612 IFS=$as_save_IFS
25613 test -z "$as_dir" && as_dir=.
25614 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000025615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000025616 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25618 break 2
25619 fi
25620done
25621done
Reid Spencera773bd52006-08-04 18:18:08 +000025622IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025623
Reid Spencer59473af2004-12-25 07:31:29 +000025624 ;;
25625esac
25626fi
25627LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000025628if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025629 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25630echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025631else
Reid Spencera773bd52006-08-04 18:18:08 +000025632 { echo "$as_me:$LINENO: result: no" >&5
25633echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025634fi
25635
Reid Spencera773bd52006-08-04 18:18:08 +000025636
Reid Spencerc84492c2005-06-02 22:34:49 +000025637 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25638set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025641if test "${ac_cv_path_LLVMGXX+set}" = set; then
25642 echo $ECHO_N "(cached) $ECHO_C" >&6
25643else
25644 case $LLVMGXX in
25645 [\\/]* | ?:[\\/]*)
25646 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25647 ;;
25648 *)
25649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25650for as_dir in $PATH
25651do
25652 IFS=$as_save_IFS
25653 test -z "$as_dir" && as_dir=.
25654 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000025655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000025656 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25658 break 2
25659 fi
25660done
25661done
Reid Spencera773bd52006-08-04 18:18:08 +000025662IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025663
Reid Spencer59473af2004-12-25 07:31:29 +000025664 ;;
25665esac
25666fi
25667LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000025668if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025669 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25670echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025671else
Reid Spencera773bd52006-08-04 18:18:08 +000025672 { echo "$as_me:$LINENO: result: no" >&5
25673echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025674fi
25675
Reid Spencera773bd52006-08-04 18:18:08 +000025676
Reid Spencer59473af2004-12-25 07:31:29 +000025677else
Devang Patel5d28b882007-12-04 22:54:47 +000025678 if test -z "$LLVMGCC"; then
25679 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25680 fi
25681 if test -z "$LLVMGXX"; then
25682 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25683 fi
Reid Spencer59473af2004-12-25 07:31:29 +000025684 LLVMGCC=$LLVMGCC
25685
25686 LLVMGXX=$LLVMGXX
25687
25688fi
25689
Reid Spencera773bd52006-08-04 18:18:08 +000025690{ echo "$as_me:$LINENO: checking tool compatibility" >&5
25691echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025692
Reid Spencer86901802004-12-08 23:07:27 +000025693ICC=no
25694IXX=no
25695case $CC in
25696 icc*|icpc*)
25697 ICC=yes
25698 IXX=yes
25699 ;;
25700 *)
25701 ;;
25702esac
25703
Duraid Madina937c60a2006-02-15 07:57:42 +000025704if test "$GCC" != "yes" && test "$ICC" != "yes"
25705then
25706 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25707echo "$as_me: error: gcc|icc required but not found" >&2;}
25708 { (exit 1); exit 1; }; }
25709fi
25710
25711if test "$GXX" != "yes" && test "$IXX" != "yes"
25712then
25713 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25714echo "$as_me: error: g++|icc required but not found" >&2;}
25715 { (exit 1); exit 1; }; }
25716fi
25717
Reid Spencer86901802004-12-08 23:07:27 +000025718if test "$GCC" = "yes"
25719then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000025720 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000025721 if test "$gccmajor" -lt "3"
25722 then
25723 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025724echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25725 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000025726 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025727fi
25728
25729if test -z "$llvm_cv_gnu_make_command"
25730then
25731 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25732echo "$as_me: error: GNU Make required but not found" >&2;}
25733 { (exit 1); exit 1; }; }
25734fi
25735
Reid Spencera773bd52006-08-04 18:18:08 +000025736{ echo "$as_me:$LINENO: result: ok" >&5
25737echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025738
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025739
John Criswell7a73b802003-06-30 21:59:07 +000025740
Reid Spencera773bd52006-08-04 18:18:08 +000025741{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25742echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000025743if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25744 echo $ECHO_N "(cached) $ECHO_C" >&6
25745else
25746 ac_check_lib_save_LIBS=$LIBS
25747LIBS="-lelf $LIBS"
25748cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025749/* confdefs.h. */
25750_ACEOF
25751cat confdefs.h >>conftest.$ac_ext
25752cat >>conftest.$ac_ext <<_ACEOF
25753/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025754
Reid Spencera773bd52006-08-04 18:18:08 +000025755/* Override any GCC internal prototype to avoid an error.
25756 Use char because int might match the return type of a GCC
25757 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000025758#ifdef __cplusplus
25759extern "C"
25760#endif
John Criswell7a73b802003-06-30 21:59:07 +000025761char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025762int
25763main ()
25764{
Reid Spencera773bd52006-08-04 18:18:08 +000025765return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025766 ;
25767 return 0;
25768}
25769_ACEOF
25770rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025771if { (ac_try="$ac_link"
25772case "(($ac_try" in
25773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774 *) ac_try_echo=$ac_try;;
25775esac
25776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025778 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025779 grep -v '^ *+' conftest.er1 >conftest.err
25780 rm -f conftest.er1
25781 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025783 (exit $ac_status); } && {
25784 test -z "$ac_c_werror_flag" ||
25785 test ! -s conftest.err
25786 } && test -s conftest$ac_exeext &&
25787 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000025788 ac_cv_lib_elf_elf_begin=yes
25789else
25790 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025791sed 's/^/| /' conftest.$ac_ext >&5
25792
Reid Spencera773bd52006-08-04 18:18:08 +000025793 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000025794fi
Reid Spencera773bd52006-08-04 18:18:08 +000025795
Scott Michel96dcd2b2007-12-05 21:24:02 +000025796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025797 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025798LIBS=$ac_check_lib_save_LIBS
25799fi
Reid Spencera773bd52006-08-04 18:18:08 +000025800{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25801echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000025802if test $ac_cv_lib_elf_elf_begin = yes; then
25803 cat >>confdefs.h <<_ACEOF
25804#define HAVE_LIBELF 1
25805_ACEOF
25806
25807 LIBS="-lelf $LIBS"
25808
25809fi
25810
25811
Reid Spencera773bd52006-08-04 18:18:08 +000025812{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
25813echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000025814if test "${ac_cv_lib_m_sin+set}" = set; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
25816else
25817 ac_check_lib_save_LIBS=$LIBS
25818LIBS="-lm $LIBS"
25819cat >conftest.$ac_ext <<_ACEOF
25820/* confdefs.h. */
25821_ACEOF
25822cat confdefs.h >>conftest.$ac_ext
25823cat >>conftest.$ac_ext <<_ACEOF
25824/* end confdefs.h. */
25825
Reid Spencera773bd52006-08-04 18:18:08 +000025826/* Override any GCC internal prototype to avoid an error.
25827 Use char because int might match the return type of a GCC
25828 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000025829#ifdef __cplusplus
25830extern "C"
25831#endif
Reid Spencer3484a992006-01-19 08:31:08 +000025832char sin ();
25833int
25834main ()
25835{
Reid Spencera773bd52006-08-04 18:18:08 +000025836return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000025837 ;
25838 return 0;
25839}
25840_ACEOF
25841rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025842if { (ac_try="$ac_link"
25843case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25846esac
25847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000025849 ac_status=$?
25850 grep -v '^ *+' conftest.er1 >conftest.err
25851 rm -f conftest.er1
25852 cat conftest.err >&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025854 (exit $ac_status); } && {
25855 test -z "$ac_c_werror_flag" ||
25856 test ! -s conftest.err
25857 } && test -s conftest$ac_exeext &&
25858 $as_test_x conftest$ac_exeext; then
Reid Spencer3484a992006-01-19 08:31:08 +000025859 ac_cv_lib_m_sin=yes
25860else
25861 echo "$as_me: failed program was:" >&5
25862sed 's/^/| /' conftest.$ac_ext >&5
25863
Reid Spencera773bd52006-08-04 18:18:08 +000025864 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000025865fi
Reid Spencera773bd52006-08-04 18:18:08 +000025866
Scott Michel96dcd2b2007-12-05 21:24:02 +000025867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer3484a992006-01-19 08:31:08 +000025868 conftest$ac_exeext conftest.$ac_ext
25869LIBS=$ac_check_lib_save_LIBS
25870fi
Reid Spencera773bd52006-08-04 18:18:08 +000025871{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25872echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000025873if test $ac_cv_lib_m_sin = yes; then
25874 cat >>confdefs.h <<_ACEOF
25875#define HAVE_LIBM 1
25876_ACEOF
25877
25878 LIBS="-lm $LIBS"
25879
25880fi
25881
Jeff Cohen28783c32007-01-12 18:22:38 +000025882if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025883
Reid Spencera773bd52006-08-04 18:18:08 +000025884{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25885echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025886if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025887 echo $ECHO_N "(cached) $ECHO_C" >&6
25888else
25889 ac_check_lib_save_LIBS=$LIBS
25890LIBS="-limagehlp $LIBS"
25891cat >conftest.$ac_ext <<_ACEOF
25892/* confdefs.h. */
25893_ACEOF
25894cat confdefs.h >>conftest.$ac_ext
25895cat >>conftest.$ac_ext <<_ACEOF
25896/* end confdefs.h. */
25897
Reid Spencer48fdf912006-06-01 19:03:21 +000025898
Reid Spencer484fc8e2006-06-01 16:55:59 +000025899int
25900main ()
25901{
Reid Spencera773bd52006-08-04 18:18:08 +000025902return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025903 ;
25904 return 0;
25905}
25906_ACEOF
25907rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025908if { (ac_try="$ac_link"
25909case "(($ac_try" in
25910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25911 *) ac_try_echo=$ac_try;;
25912esac
25913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25914 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000025915 ac_status=$?
25916 grep -v '^ *+' conftest.er1 >conftest.err
25917 rm -f conftest.er1
25918 cat conftest.err >&5
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025920 (exit $ac_status); } && {
25921 test -z "$ac_c_werror_flag" ||
25922 test ! -s conftest.err
25923 } && test -s conftest$ac_exeext &&
25924 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025925 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025926else
25927 echo "$as_me: failed program was:" >&5
25928sed 's/^/| /' conftest.$ac_ext >&5
25929
Reid Spencera773bd52006-08-04 18:18:08 +000025930 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025931fi
Reid Spencera773bd52006-08-04 18:18:08 +000025932
Scott Michel96dcd2b2007-12-05 21:24:02 +000025933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000025934 conftest$ac_exeext conftest.$ac_ext
25935LIBS=$ac_check_lib_save_LIBS
25936fi
Reid Spencera773bd52006-08-04 18:18:08 +000025937{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25938echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025939if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025940 cat >>confdefs.h <<_ACEOF
25941#define HAVE_LIBIMAGEHLP 1
25942_ACEOF
25943
25944 LIBS="-limagehlp $LIBS"
25945
25946fi
25947
25948
Reid Spencera773bd52006-08-04 18:18:08 +000025949{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25950echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025951if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025952 echo $ECHO_N "(cached) $ECHO_C" >&6
25953else
25954 ac_check_lib_save_LIBS=$LIBS
25955LIBS="-lpsapi $LIBS"
25956cat >conftest.$ac_ext <<_ACEOF
25957/* confdefs.h. */
25958_ACEOF
25959cat confdefs.h >>conftest.$ac_ext
25960cat >>conftest.$ac_ext <<_ACEOF
25961/* end confdefs.h. */
25962
Reid Spencer48fdf912006-06-01 19:03:21 +000025963
Reid Spencer484fc8e2006-06-01 16:55:59 +000025964int
25965main ()
25966{
Reid Spencera773bd52006-08-04 18:18:08 +000025967return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025968 ;
25969 return 0;
25970}
25971_ACEOF
25972rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025973if { (ac_try="$ac_link"
25974case "(($ac_try" in
25975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976 *) ac_try_echo=$ac_try;;
25977esac
25978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25979 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000025980 ac_status=$?
25981 grep -v '^ *+' conftest.er1 >conftest.err
25982 rm -f conftest.er1
25983 cat conftest.err >&5
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025985 (exit $ac_status); } && {
25986 test -z "$ac_c_werror_flag" ||
25987 test ! -s conftest.err
25988 } && test -s conftest$ac_exeext &&
25989 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025990 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025991else
25992 echo "$as_me: failed program was:" >&5
25993sed 's/^/| /' conftest.$ac_ext >&5
25994
Reid Spencera773bd52006-08-04 18:18:08 +000025995 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025996fi
Reid Spencera773bd52006-08-04 18:18:08 +000025997
Scott Michel96dcd2b2007-12-05 21:24:02 +000025998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000025999 conftest$ac_exeext conftest.$ac_ext
26000LIBS=$ac_check_lib_save_LIBS
26001fi
Reid Spencera773bd52006-08-04 18:18:08 +000026002{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26003echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026004if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026005 cat >>confdefs.h <<_ACEOF
26006#define HAVE_LIBPSAPI 1
26007_ACEOF
26008
26009 LIBS="-lpsapi $LIBS"
26010
26011fi
26012
26013fi
Reid Spencer22177fe2005-07-12 15:24:20 +000026014
Reid Spencera773bd52006-08-04 18:18:08 +000026015{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26016echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000026017if test "${ac_cv_search_lt_dlopen+set}" = set; then
26018 echo $ECHO_N "(cached) $ECHO_C" >&6
26019else
26020 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000026021cat >conftest.$ac_ext <<_ACEOF
26022/* confdefs.h. */
26023_ACEOF
26024cat confdefs.h >>conftest.$ac_ext
26025cat >>conftest.$ac_ext <<_ACEOF
26026/* end confdefs.h. */
26027
Reid Spencera773bd52006-08-04 18:18:08 +000026028/* Override any GCC internal prototype to avoid an error.
26029 Use char because int might match the return type of a GCC
26030 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000026031#ifdef __cplusplus
26032extern "C"
26033#endif
Reid Spencer17795972004-11-18 09:47:37 +000026034char lt_dlopen ();
26035int
26036main ()
26037{
Reid Spencera773bd52006-08-04 18:18:08 +000026038return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000026039 ;
26040 return 0;
26041}
26042_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026043for ac_lib in '' ltdl; do
26044 if test -z "$ac_lib"; then
26045 ac_res="none required"
26046 else
26047 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000026048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026049 fi
26050 rm -f conftest.$ac_objext conftest$ac_exeext
26051if { (ac_try="$ac_link"
26052case "(($ac_try" in
26053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054 *) ac_try_echo=$ac_try;;
26055esac
26056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000026058 ac_status=$?
26059 grep -v '^ *+' conftest.er1 >conftest.err
26060 rm -f conftest.er1
26061 cat conftest.err >&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026063 (exit $ac_status); } && {
26064 test -z "$ac_c_werror_flag" ||
26065 test ! -s conftest.err
26066 } && test -s conftest$ac_exeext &&
26067 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026068 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000026069else
26070 echo "$as_me: failed program was:" >&5
26071sed 's/^/| /' conftest.$ac_ext >&5
26072
Reid Spencera773bd52006-08-04 18:18:08 +000026073
Reid Spencer17795972004-11-18 09:47:37 +000026074fi
Reid Spencera773bd52006-08-04 18:18:08 +000026075
Scott Michel96dcd2b2007-12-05 21:24:02 +000026076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026077 conftest$ac_exeext
26078 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26079 break
Reid Spencer17795972004-11-18 09:47:37 +000026080fi
Reid Spencera773bd52006-08-04 18:18:08 +000026081done
26082if test "${ac_cv_search_lt_dlopen+set}" = set; then
26083 :
26084else
26085 ac_cv_search_lt_dlopen=no
26086fi
26087rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000026088LIBS=$ac_func_search_save_LIBS
26089fi
Reid Spencera773bd52006-08-04 18:18:08 +000026090{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26091echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26092ac_res=$ac_cv_search_lt_dlopen
26093if test "$ac_res" != no; then
26094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000026095
26096cat >>confdefs.h <<\_ACEOF
26097#define HAVE_LT_DLOPEN 1
26098_ACEOF
26099
26100else
26101 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26102 not be available" >&5
26103echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26104 not be available" >&2;}
26105fi
26106
26107
Reid Spencera773bd52006-08-04 18:18:08 +000026108{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26109echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026110if test "${ac_cv_search_dlopen+set}" = set; then
26111 echo $ECHO_N "(cached) $ECHO_C" >&6
26112else
26113 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026114cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026115/* confdefs.h. */
26116_ACEOF
26117cat confdefs.h >>conftest.$ac_ext
26118cat >>conftest.$ac_ext <<_ACEOF
26119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026120
Reid Spencera773bd52006-08-04 18:18:08 +000026121/* Override any GCC internal prototype to avoid an error.
26122 Use char because int might match the return type of a GCC
26123 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026124#ifdef __cplusplus
26125extern "C"
26126#endif
John Criswell7a73b802003-06-30 21:59:07 +000026127char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026128int
26129main ()
26130{
Reid Spencera773bd52006-08-04 18:18:08 +000026131return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026132 ;
26133 return 0;
26134}
26135_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026136for ac_lib in '' dl; do
26137 if test -z "$ac_lib"; then
26138 ac_res="none required"
26139 else
26140 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026142 fi
26143 rm -f conftest.$ac_objext conftest$ac_exeext
26144if { (ac_try="$ac_link"
26145case "(($ac_try" in
26146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26147 *) ac_try_echo=$ac_try;;
26148esac
26149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26150 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026152 grep -v '^ *+' conftest.er1 >conftest.err
26153 rm -f conftest.er1
26154 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026156 (exit $ac_status); } && {
26157 test -z "$ac_c_werror_flag" ||
26158 test ! -s conftest.err
26159 } && test -s conftest$ac_exeext &&
26160 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026161 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026162else
26163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026164sed 's/^/| /' conftest.$ac_ext >&5
26165
Reid Spencera773bd52006-08-04 18:18:08 +000026166
John Criswell7a73b802003-06-30 21:59:07 +000026167fi
Reid Spencera773bd52006-08-04 18:18:08 +000026168
Scott Michel96dcd2b2007-12-05 21:24:02 +000026169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026170 conftest$ac_exeext
26171 if test "${ac_cv_search_dlopen+set}" = set; then
26172 break
John Criswell7a73b802003-06-30 21:59:07 +000026173fi
Reid Spencera773bd52006-08-04 18:18:08 +000026174done
26175if test "${ac_cv_search_dlopen+set}" = set; then
26176 :
26177else
26178 ac_cv_search_dlopen=no
26179fi
26180rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026181LIBS=$ac_func_search_save_LIBS
26182fi
Reid Spencera773bd52006-08-04 18:18:08 +000026183{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26184echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26185ac_res=$ac_cv_search_dlopen
26186if test "$ac_res" != no; then
26187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026188
26189cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000026190#define HAVE_DLOPEN 1
26191_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026192
26193else
Brian Gaekec45be042003-10-07 06:01:34 +000026194 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26195echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000026196fi
26197
26198
Reid Spencera773bd52006-08-04 18:18:08 +000026199{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26200echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026201if test "${ac_cv_search_mallinfo+set}" = set; then
26202 echo $ECHO_N "(cached) $ECHO_C" >&6
26203else
26204 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026205cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026206/* confdefs.h. */
26207_ACEOF
26208cat confdefs.h >>conftest.$ac_ext
26209cat >>conftest.$ac_ext <<_ACEOF
26210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026211
Reid Spencera773bd52006-08-04 18:18:08 +000026212/* Override any GCC internal prototype to avoid an error.
26213 Use char because int might match the return type of a GCC
26214 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026215#ifdef __cplusplus
26216extern "C"
26217#endif
John Criswell7a73b802003-06-30 21:59:07 +000026218char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026219int
26220main ()
26221{
Reid Spencera773bd52006-08-04 18:18:08 +000026222return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026223 ;
26224 return 0;
26225}
26226_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026227for ac_lib in '' malloc; do
26228 if test -z "$ac_lib"; then
26229 ac_res="none required"
26230 else
26231 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026233 fi
26234 rm -f conftest.$ac_objext conftest$ac_exeext
26235if { (ac_try="$ac_link"
26236case "(($ac_try" in
26237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26238 *) ac_try_echo=$ac_try;;
26239esac
26240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26241 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026242 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026243 grep -v '^ *+' conftest.er1 >conftest.err
26244 rm -f conftest.er1
26245 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026247 (exit $ac_status); } && {
26248 test -z "$ac_c_werror_flag" ||
26249 test ! -s conftest.err
26250 } && test -s conftest$ac_exeext &&
26251 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026252 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026253else
26254 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026255sed 's/^/| /' conftest.$ac_ext >&5
26256
Reid Spencera773bd52006-08-04 18:18:08 +000026257
John Criswell7a73b802003-06-30 21:59:07 +000026258fi
Reid Spencera773bd52006-08-04 18:18:08 +000026259
Scott Michel96dcd2b2007-12-05 21:24:02 +000026260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026261 conftest$ac_exeext
26262 if test "${ac_cv_search_mallinfo+set}" = set; then
26263 break
John Criswell7a73b802003-06-30 21:59:07 +000026264fi
Reid Spencera773bd52006-08-04 18:18:08 +000026265done
26266if test "${ac_cv_search_mallinfo+set}" = set; then
26267 :
26268else
26269 ac_cv_search_mallinfo=no
26270fi
26271rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026272LIBS=$ac_func_search_save_LIBS
26273fi
Reid Spencera773bd52006-08-04 18:18:08 +000026274{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26275echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26276ac_res=$ac_cv_search_mallinfo
26277if test "$ac_res" != no; then
26278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026279
26280cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026281#define HAVE_MALLINFO 1
26282_ACEOF
26283
26284fi
26285
26286
Reid Spencer0a262ba2005-08-24 10:07:20 +000026287if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026288
Reid Spencera773bd52006-08-04 18:18:08 +000026289{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26290echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026291if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26292 echo $ECHO_N "(cached) $ECHO_C" >&6
26293else
26294 ac_check_lib_save_LIBS=$LIBS
26295LIBS="-lpthread $LIBS"
26296cat >conftest.$ac_ext <<_ACEOF
26297/* confdefs.h. */
26298_ACEOF
26299cat confdefs.h >>conftest.$ac_ext
26300cat >>conftest.$ac_ext <<_ACEOF
26301/* end confdefs.h. */
26302
Reid Spencera773bd52006-08-04 18:18:08 +000026303/* Override any GCC internal prototype to avoid an error.
26304 Use char because int might match the return type of a GCC
26305 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000026306#ifdef __cplusplus
26307extern "C"
26308#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000026309char pthread_mutex_init ();
26310int
26311main ()
26312{
Reid Spencera773bd52006-08-04 18:18:08 +000026313return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000026314 ;
26315 return 0;
26316}
26317_ACEOF
26318rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026319if { (ac_try="$ac_link"
26320case "(($ac_try" in
26321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26322 *) ac_try_echo=$ac_try;;
26323esac
26324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26325 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000026326 ac_status=$?
26327 grep -v '^ *+' conftest.er1 >conftest.err
26328 rm -f conftest.er1
26329 cat conftest.err >&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026331 (exit $ac_status); } && {
26332 test -z "$ac_c_werror_flag" ||
26333 test ! -s conftest.err
26334 } && test -s conftest$ac_exeext &&
26335 $as_test_x conftest$ac_exeext; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026336 ac_cv_lib_pthread_pthread_mutex_init=yes
26337else
26338 echo "$as_me: failed program was:" >&5
26339sed 's/^/| /' conftest.$ac_ext >&5
26340
Reid Spencera773bd52006-08-04 18:18:08 +000026341 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000026342fi
Reid Spencera773bd52006-08-04 18:18:08 +000026343
Scott Michel96dcd2b2007-12-05 21:24:02 +000026344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer22177fe2005-07-12 15:24:20 +000026345 conftest$ac_exeext conftest.$ac_ext
26346LIBS=$ac_check_lib_save_LIBS
26347fi
Reid Spencera773bd52006-08-04 18:18:08 +000026348{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26349echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026350if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26351 cat >>confdefs.h <<_ACEOF
26352#define HAVE_LIBPTHREAD 1
26353_ACEOF
26354
26355 LIBS="-lpthread $LIBS"
26356
26357fi
26358
Reid Spencera773bd52006-08-04 18:18:08 +000026359 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26360echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000026361if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26363else
26364 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000026365cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000026366/* confdefs.h. */
26367_ACEOF
26368cat confdefs.h >>conftest.$ac_ext
26369cat >>conftest.$ac_ext <<_ACEOF
26370/* end confdefs.h. */
26371
Reid Spencera773bd52006-08-04 18:18:08 +000026372/* Override any GCC internal prototype to avoid an error.
26373 Use char because int might match the return type of a GCC
26374 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000026375#ifdef __cplusplus
26376extern "C"
26377#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000026378char pthread_mutex_lock ();
26379int
26380main ()
26381{
Reid Spencera773bd52006-08-04 18:18:08 +000026382return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000026383 ;
26384 return 0;
26385}
26386_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026387for ac_lib in '' pthread; do
26388 if test -z "$ac_lib"; then
26389 ac_res="none required"
26390 else
26391 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000026392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026393 fi
26394 rm -f conftest.$ac_objext conftest$ac_exeext
26395if { (ac_try="$ac_link"
26396case "(($ac_try" in
26397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398 *) ac_try_echo=$ac_try;;
26399esac
26400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000026402 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026403 grep -v '^ *+' conftest.er1 >conftest.err
26404 rm -f conftest.er1
26405 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026407 (exit $ac_status); } && {
26408 test -z "$ac_c_werror_flag" ||
26409 test ! -s conftest.err
26410 } && test -s conftest$ac_exeext &&
26411 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026412 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000026413else
26414 echo "$as_me: failed program was:" >&5
26415sed 's/^/| /' conftest.$ac_ext >&5
26416
Reid Spencera773bd52006-08-04 18:18:08 +000026417
Brian Gaeke5f268f72003-12-05 19:29:01 +000026418fi
Reid Spencera773bd52006-08-04 18:18:08 +000026419
Scott Michel96dcd2b2007-12-05 21:24:02 +000026420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026421 conftest$ac_exeext
26422 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26423 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000026424fi
Reid Spencera773bd52006-08-04 18:18:08 +000026425done
26426if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26427 :
26428else
26429 ac_cv_search_pthread_mutex_lock=no
26430fi
26431rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000026432LIBS=$ac_func_search_save_LIBS
26433fi
Reid Spencera773bd52006-08-04 18:18:08 +000026434{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26435echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26436ac_res=$ac_cv_search_pthread_mutex_lock
26437if test "$ac_res" != no; then
26438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000026439
John Criswell40468462004-09-24 21:19:06 +000026440cat >>confdefs.h <<\_ACEOF
26441#define HAVE_PTHREAD_MUTEX_LOCK 1
26442_ACEOF
26443
26444fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000026445
Reid Spencer0a262ba2005-08-24 10:07:20 +000026446fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000026447
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026448
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026449# Check whether --with-udis86 was given.
26450if test "${with_udis86+set}" = set; then
26451 withval=$with_udis86;
26452 USE_UDIS86=1
26453
26454 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000026455 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026456 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26457 esac
26458
26459{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26460echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26461if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26462 echo $ECHO_N "(cached) $ECHO_C" >&6
26463else
26464 ac_check_lib_save_LIBS=$LIBS
26465LIBS="-ludis86 $LIBS"
26466cat >conftest.$ac_ext <<_ACEOF
26467/* confdefs.h. */
26468_ACEOF
26469cat confdefs.h >>conftest.$ac_ext
26470cat >>conftest.$ac_ext <<_ACEOF
26471/* end confdefs.h. */
26472
26473/* Override any GCC internal prototype to avoid an error.
26474 Use char because int might match the return type of a GCC
26475 builtin and then its argument prototype would still apply. */
26476#ifdef __cplusplus
26477extern "C"
26478#endif
26479char ud_init ();
26480int
26481main ()
26482{
26483return ud_init ();
26484 ;
26485 return 0;
26486}
26487_ACEOF
26488rm -f conftest.$ac_objext conftest$ac_exeext
26489if { (ac_try="$ac_link"
26490case "(($ac_try" in
26491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492 *) ac_try_echo=$ac_try;;
26493esac
26494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495 (eval "$ac_link") 2>conftest.er1
26496 ac_status=$?
26497 grep -v '^ *+' conftest.er1 >conftest.err
26498 rm -f conftest.er1
26499 cat conftest.err >&5
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026501 (exit $ac_status); } && {
26502 test -z "$ac_c_werror_flag" ||
26503 test ! -s conftest.err
26504 } && test -s conftest$ac_exeext &&
26505 $as_test_x conftest$ac_exeext; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026506 ac_cv_lib_udis86_ud_init=yes
26507else
26508 echo "$as_me: failed program was:" >&5
26509sed 's/^/| /' conftest.$ac_ext >&5
26510
26511 ac_cv_lib_udis86_ud_init=no
26512fi
26513
Scott Michel96dcd2b2007-12-05 21:24:02 +000026514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026515 conftest$ac_exeext conftest.$ac_ext
26516LIBS=$ac_check_lib_save_LIBS
26517fi
26518{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26519echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26520if test $ac_cv_lib_udis86_ud_init = yes; then
26521 cat >>confdefs.h <<_ACEOF
26522#define HAVE_LIBUDIS86 1
26523_ACEOF
26524
26525 LIBS="-ludis86 $LIBS"
26526
26527else
26528
26529 echo "Error! You need to have libudis86 around."
26530 exit -1
26531
26532fi
26533
26534
26535else
26536 USE_UDIS86=0
26537
26538fi
26539
26540
26541cat >>confdefs.h <<_ACEOF
26542#define USE_UDIS86 $USE_UDIS86
26543_ACEOF
26544
26545
26546
Reid Spencer59473af2004-12-25 07:31:29 +000026547
26548
26549
26550
26551
26552ac_header_dirent=no
26553for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26554 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000026555{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26556echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026558 echo $ECHO_N "(cached) $ECHO_C" >&6
26559else
26560 cat >conftest.$ac_ext <<_ACEOF
26561/* confdefs.h. */
26562_ACEOF
26563cat confdefs.h >>conftest.$ac_ext
26564cat >>conftest.$ac_ext <<_ACEOF
26565/* end confdefs.h. */
26566#include <sys/types.h>
26567#include <$ac_hdr>
26568
26569int
26570main ()
26571{
26572if ((DIR *) 0)
26573return 0;
26574 ;
26575 return 0;
26576}
26577_ACEOF
26578rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026579if { (ac_try="$ac_compile"
26580case "(($ac_try" in
26581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582 *) ac_try_echo=$ac_try;;
26583esac
26584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26585 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026586 ac_status=$?
26587 grep -v '^ *+' conftest.er1 >conftest.err
26588 rm -f conftest.er1
26589 cat conftest.err >&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026591 (exit $ac_status); } && {
26592 test -z "$ac_c_werror_flag" ||
26593 test ! -s conftest.err
26594 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026595 eval "$as_ac_Header=yes"
26596else
26597 echo "$as_me: failed program was:" >&5
26598sed 's/^/| /' conftest.$ac_ext >&5
26599
Reid Spencera773bd52006-08-04 18:18:08 +000026600 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000026601fi
Reid Spencera773bd52006-08-04 18:18:08 +000026602
26603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026604fi
Reid Spencera773bd52006-08-04 18:18:08 +000026605ac_res=`eval echo '${'$as_ac_Header'}'`
26606 { echo "$as_me:$LINENO: result: $ac_res" >&5
26607echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026608if test `eval echo '${'$as_ac_Header'}'` = yes; then
26609 cat >>confdefs.h <<_ACEOF
26610#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26611_ACEOF
26612
26613ac_header_dirent=$ac_hdr; break
26614fi
26615
26616done
26617# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26618if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000026619 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26620echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026621if test "${ac_cv_search_opendir+set}" = set; then
26622 echo $ECHO_N "(cached) $ECHO_C" >&6
26623else
26624 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026625cat >conftest.$ac_ext <<_ACEOF
26626/* confdefs.h. */
26627_ACEOF
26628cat confdefs.h >>conftest.$ac_ext
26629cat >>conftest.$ac_ext <<_ACEOF
26630/* end confdefs.h. */
26631
Reid Spencera773bd52006-08-04 18:18:08 +000026632/* Override any GCC internal prototype to avoid an error.
26633 Use char because int might match the return type of a GCC
26634 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026635#ifdef __cplusplus
26636extern "C"
26637#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026638char opendir ();
26639int
26640main ()
26641{
Reid Spencera773bd52006-08-04 18:18:08 +000026642return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026643 ;
26644 return 0;
26645}
26646_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026647for ac_lib in '' dir; do
26648 if test -z "$ac_lib"; then
26649 ac_res="none required"
26650 else
26651 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026653 fi
26654 rm -f conftest.$ac_objext conftest$ac_exeext
26655if { (ac_try="$ac_link"
26656case "(($ac_try" in
26657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658 *) ac_try_echo=$ac_try;;
26659esac
26660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26661 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026662 ac_status=$?
26663 grep -v '^ *+' conftest.er1 >conftest.err
26664 rm -f conftest.er1
26665 cat conftest.err >&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026667 (exit $ac_status); } && {
26668 test -z "$ac_c_werror_flag" ||
26669 test ! -s conftest.err
26670 } && test -s conftest$ac_exeext &&
26671 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026672 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026673else
26674 echo "$as_me: failed program was:" >&5
26675sed 's/^/| /' conftest.$ac_ext >&5
26676
Reid Spencera773bd52006-08-04 18:18:08 +000026677
Reid Spencer59473af2004-12-25 07:31:29 +000026678fi
Reid Spencera773bd52006-08-04 18:18:08 +000026679
Scott Michel96dcd2b2007-12-05 21:24:02 +000026680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026681 conftest$ac_exeext
26682 if test "${ac_cv_search_opendir+set}" = set; then
26683 break
Reid Spencer59473af2004-12-25 07:31:29 +000026684fi
Reid Spencera773bd52006-08-04 18:18:08 +000026685done
26686if test "${ac_cv_search_opendir+set}" = set; then
26687 :
26688else
26689 ac_cv_search_opendir=no
26690fi
26691rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026692LIBS=$ac_func_search_save_LIBS
26693fi
Reid Spencera773bd52006-08-04 18:18:08 +000026694{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26695echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26696ac_res=$ac_cv_search_opendir
26697if test "$ac_res" != no; then
26698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026699
26700fi
26701
26702else
Reid Spencera773bd52006-08-04 18:18:08 +000026703 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26704echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026705if test "${ac_cv_search_opendir+set}" = set; then
26706 echo $ECHO_N "(cached) $ECHO_C" >&6
26707else
26708 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026709cat >conftest.$ac_ext <<_ACEOF
26710/* confdefs.h. */
26711_ACEOF
26712cat confdefs.h >>conftest.$ac_ext
26713cat >>conftest.$ac_ext <<_ACEOF
26714/* end confdefs.h. */
26715
Reid Spencera773bd52006-08-04 18:18:08 +000026716/* Override any GCC internal prototype to avoid an error.
26717 Use char because int might match the return type of a GCC
26718 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026719#ifdef __cplusplus
26720extern "C"
26721#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026722char opendir ();
26723int
26724main ()
26725{
Reid Spencera773bd52006-08-04 18:18:08 +000026726return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026727 ;
26728 return 0;
26729}
26730_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026731for ac_lib in '' x; do
26732 if test -z "$ac_lib"; then
26733 ac_res="none required"
26734 else
26735 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026737 fi
26738 rm -f conftest.$ac_objext conftest$ac_exeext
26739if { (ac_try="$ac_link"
26740case "(($ac_try" in
26741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742 *) ac_try_echo=$ac_try;;
26743esac
26744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026746 ac_status=$?
26747 grep -v '^ *+' conftest.er1 >conftest.err
26748 rm -f conftest.er1
26749 cat conftest.err >&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026751 (exit $ac_status); } && {
26752 test -z "$ac_c_werror_flag" ||
26753 test ! -s conftest.err
26754 } && test -s conftest$ac_exeext &&
26755 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026756 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026757else
26758 echo "$as_me: failed program was:" >&5
26759sed 's/^/| /' conftest.$ac_ext >&5
26760
Reid Spencera773bd52006-08-04 18:18:08 +000026761
Reid Spencer59473af2004-12-25 07:31:29 +000026762fi
Reid Spencera773bd52006-08-04 18:18:08 +000026763
Scott Michel96dcd2b2007-12-05 21:24:02 +000026764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026765 conftest$ac_exeext
26766 if test "${ac_cv_search_opendir+set}" = set; then
26767 break
Reid Spencer59473af2004-12-25 07:31:29 +000026768fi
Reid Spencera773bd52006-08-04 18:18:08 +000026769done
26770if test "${ac_cv_search_opendir+set}" = set; then
26771 :
26772else
26773 ac_cv_search_opendir=no
26774fi
26775rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026776LIBS=$ac_func_search_save_LIBS
26777fi
Reid Spencera773bd52006-08-04 18:18:08 +000026778{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26779echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26780ac_res=$ac_cv_search_opendir
26781if test "$ac_res" != no; then
26782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026783
26784fi
26785
26786fi
26787
Reid Spencera773bd52006-08-04 18:18:08 +000026788{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26789echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026790if test "${ac_cv_header_mmap_anon+set}" = set; then
26791 echo $ECHO_N "(cached) $ECHO_C" >&6
26792else
26793 ac_ext=c
26794ac_cpp='$CPP $CPPFLAGS'
26795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26797ac_compiler_gnu=$ac_cv_c_compiler_gnu
26798
26799 cat >conftest.$ac_ext <<_ACEOF
26800/* confdefs.h. */
26801_ACEOF
26802cat confdefs.h >>conftest.$ac_ext
26803cat >>conftest.$ac_ext <<_ACEOF
26804/* end confdefs.h. */
26805#include <sys/mman.h>
26806#include <unistd.h>
26807#include <fcntl.h>
26808int
26809main ()
26810{
26811mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26812 ;
26813 return 0;
26814}
26815_ACEOF
26816rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026817if { (ac_try="$ac_compile"
26818case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26821esac
26822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026824 ac_status=$?
26825 grep -v '^ *+' conftest.er1 >conftest.err
26826 rm -f conftest.er1
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026829 (exit $ac_status); } && {
26830 test -z "$ac_c_werror_flag" ||
26831 test ! -s conftest.err
26832 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026833 ac_cv_header_mmap_anon=yes
26834else
26835 echo "$as_me: failed program was:" >&5
26836sed 's/^/| /' conftest.$ac_ext >&5
26837
Reid Spencera773bd52006-08-04 18:18:08 +000026838 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000026839fi
Reid Spencera773bd52006-08-04 18:18:08 +000026840
26841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026842 ac_ext=c
26843ac_cpp='$CPP $CPPFLAGS'
26844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26846ac_compiler_gnu=$ac_cv_c_compiler_gnu
26847
26848
26849fi
Reid Spencera773bd52006-08-04 18:18:08 +000026850{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26851echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026852if test "$ac_cv_header_mmap_anon" = yes; then
26853
26854cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026855#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026856_ACEOF
26857
26858fi
26859
Reid Spencera773bd52006-08-04 18:18:08 +000026860{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26861echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026862if test "${ac_cv_header_stat_broken+set}" = set; then
26863 echo $ECHO_N "(cached) $ECHO_C" >&6
26864else
26865 cat >conftest.$ac_ext <<_ACEOF
26866/* confdefs.h. */
26867_ACEOF
26868cat confdefs.h >>conftest.$ac_ext
26869cat >>conftest.$ac_ext <<_ACEOF
26870/* end confdefs.h. */
26871#include <sys/types.h>
26872#include <sys/stat.h>
26873
Reid Spencera773bd52006-08-04 18:18:08 +000026874#if defined S_ISBLK && defined S_IFDIR
Scott Michel96dcd2b2007-12-05 21:24:02 +000026875extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026876#endif
26877
Reid Spencera773bd52006-08-04 18:18:08 +000026878#if defined S_ISBLK && defined S_IFCHR
Scott Michel96dcd2b2007-12-05 21:24:02 +000026879extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026880#endif
26881
Reid Spencera773bd52006-08-04 18:18:08 +000026882#if defined S_ISLNK && defined S_IFREG
Scott Michel96dcd2b2007-12-05 21:24:02 +000026883extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026884#endif
26885
Reid Spencera773bd52006-08-04 18:18:08 +000026886#if defined S_ISSOCK && defined S_IFREG
Scott Michel96dcd2b2007-12-05 21:24:02 +000026887extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026888#endif
26889
26890_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +000026891rm -f conftest.$ac_objext
26892if { (ac_try="$ac_compile"
26893case "(($ac_try" in
26894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26895 *) ac_try_echo=$ac_try;;
26896esac
26897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26898 (eval "$ac_compile") 2>conftest.er1
26899 ac_status=$?
26900 grep -v '^ *+' conftest.er1 >conftest.err
26901 rm -f conftest.er1
26902 cat conftest.err >&5
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); } && {
26905 test -z "$ac_c_werror_flag" ||
26906 test ! -s conftest.err
26907 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026908 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000026909else
26910 echo "$as_me: failed program was:" >&5
26911sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer59473af2004-12-25 07:31:29 +000026912
Scott Michel96dcd2b2007-12-05 21:24:02 +000026913 ac_cv_header_stat_broken=yes
26914fi
26915
26916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026917fi
Reid Spencera773bd52006-08-04 18:18:08 +000026918{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26919echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026920if test $ac_cv_header_stat_broken = yes; then
26921
26922cat >>confdefs.h <<\_ACEOF
26923#define STAT_MACROS_BROKEN 1
26924_ACEOF
26925
26926fi
26927
Reid Spencera773bd52006-08-04 18:18:08 +000026928{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26929echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026930if test "${ac_cv_header_stdc+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26932else
26933 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026934/* confdefs.h. */
26935_ACEOF
26936cat confdefs.h >>conftest.$ac_ext
26937cat >>conftest.$ac_ext <<_ACEOF
26938/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026939#include <stdlib.h>
26940#include <stdarg.h>
26941#include <string.h>
26942#include <float.h>
26943
John Criswell0c38eaf2003-09-10 15:17:25 +000026944int
26945main ()
26946{
26947
26948 ;
26949 return 0;
26950}
John Criswell7a73b802003-06-30 21:59:07 +000026951_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026952rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026953if { (ac_try="$ac_compile"
26954case "(($ac_try" in
26955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956 *) ac_try_echo=$ac_try;;
26957esac
26958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026960 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026961 grep -v '^ *+' conftest.er1 >conftest.err
26962 rm -f conftest.er1
26963 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026965 (exit $ac_status); } && {
26966 test -z "$ac_c_werror_flag" ||
26967 test ! -s conftest.err
26968 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000026969 ac_cv_header_stdc=yes
26970else
26971 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026972sed 's/^/| /' conftest.$ac_ext >&5
26973
Reid Spencera773bd52006-08-04 18:18:08 +000026974 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026975fi
Reid Spencera773bd52006-08-04 18:18:08 +000026976
26977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026978
26979if test $ac_cv_header_stdc = yes; then
26980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26981 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026982/* confdefs.h. */
26983_ACEOF
26984cat confdefs.h >>conftest.$ac_ext
26985cat >>conftest.$ac_ext <<_ACEOF
26986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026987#include <string.h>
26988
26989_ACEOF
26990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026991 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026992 :
26993else
26994 ac_cv_header_stdc=no
26995fi
26996rm -f conftest*
26997
26998fi
26999
27000if test $ac_cv_header_stdc = yes; then
27001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27002 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027003/* confdefs.h. */
27004_ACEOF
27005cat confdefs.h >>conftest.$ac_ext
27006cat >>conftest.$ac_ext <<_ACEOF
27007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027008#include <stdlib.h>
27009
27010_ACEOF
27011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000027012 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000027013 :
27014else
27015 ac_cv_header_stdc=no
27016fi
27017rm -f conftest*
27018
27019fi
27020
27021if test $ac_cv_header_stdc = yes; then
27022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27023 if test "$cross_compiling" = yes; then
27024 :
27025else
27026 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027027/* confdefs.h. */
27028_ACEOF
27029cat confdefs.h >>conftest.$ac_ext
27030cat >>conftest.$ac_ext <<_ACEOF
27031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027032#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000027033#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000027034#if ((' ' & 0x0FF) == 0x020)
27035# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27036# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27037#else
John Criswell0c38eaf2003-09-10 15:17:25 +000027038# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027039 (('a' <= (c) && (c) <= 'i') \
27040 || ('j' <= (c) && (c) <= 'r') \
27041 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000027042# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27043#endif
27044
27045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27046int
27047main ()
27048{
27049 int i;
27050 for (i = 0; i < 256; i++)
27051 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000027052 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000027053 return 2;
27054 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000027055}
27056_ACEOF
27057rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027058if { (ac_try="$ac_link"
27059case "(($ac_try" in
27060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061 *) ac_try_echo=$ac_try;;
27062esac
27063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27064 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027065 ac_status=$?
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027068 { (case "(($ac_try" in
27069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070 *) ac_try_echo=$ac_try;;
27071esac
27072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027074 ac_status=$?
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; }; then
27077 :
27078else
27079 echo "$as_me: program exited with status $ac_status" >&5
27080echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027081sed 's/^/| /' conftest.$ac_ext >&5
27082
John Criswell7a73b802003-06-30 21:59:07 +000027083( exit $ac_status )
27084ac_cv_header_stdc=no
27085fi
Reid Spencera773bd52006-08-04 18:18:08 +000027086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27087fi
27088
27089
John Criswell7a73b802003-06-30 21:59:07 +000027090fi
27091fi
Reid Spencera773bd52006-08-04 18:18:08 +000027092{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27093echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027094if test $ac_cv_header_stdc = yes; then
27095
27096cat >>confdefs.h <<\_ACEOF
27097#define STDC_HEADERS 1
27098_ACEOF
27099
27100fi
27101
Reid Spencera773bd52006-08-04 18:18:08 +000027102{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27103echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027104if test "${ac_cv_header_sys_wait_h+set}" = set; then
27105 echo $ECHO_N "(cached) $ECHO_C" >&6
27106else
27107 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027108/* confdefs.h. */
27109_ACEOF
27110cat confdefs.h >>conftest.$ac_ext
27111cat >>conftest.$ac_ext <<_ACEOF
27112/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027113#include <sys/types.h>
27114#include <sys/wait.h>
27115#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000027116# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000027117#endif
27118#ifndef WIFEXITED
27119# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27120#endif
27121
John Criswell7a73b802003-06-30 21:59:07 +000027122int
27123main ()
27124{
27125 int s;
27126 wait (&s);
27127 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27128 ;
27129 return 0;
27130}
27131_ACEOF
27132rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027133if { (ac_try="$ac_compile"
27134case "(($ac_try" in
27135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27137esac
27138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027140 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027141 grep -v '^ *+' conftest.er1 >conftest.err
27142 rm -f conftest.er1
27143 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027145 (exit $ac_status); } && {
27146 test -z "$ac_c_werror_flag" ||
27147 test ! -s conftest.err
27148 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000027149 ac_cv_header_sys_wait_h=yes
27150else
27151 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027152sed 's/^/| /' conftest.$ac_ext >&5
27153
Reid Spencera773bd52006-08-04 18:18:08 +000027154 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000027155fi
Reid Spencera773bd52006-08-04 18:18:08 +000027156
27157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027158fi
Reid Spencera773bd52006-08-04 18:18:08 +000027159{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27160echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027161if test $ac_cv_header_sys_wait_h = yes; then
27162
27163cat >>confdefs.h <<\_ACEOF
27164#define HAVE_SYS_WAIT_H 1
27165_ACEOF
27166
27167fi
27168
Reid Spencera773bd52006-08-04 18:18:08 +000027169{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27170echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027171if test "${ac_cv_header_time+set}" = set; then
27172 echo $ECHO_N "(cached) $ECHO_C" >&6
27173else
27174 cat >conftest.$ac_ext <<_ACEOF
27175/* confdefs.h. */
27176_ACEOF
27177cat confdefs.h >>conftest.$ac_ext
27178cat >>conftest.$ac_ext <<_ACEOF
27179/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027180#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027181#include <sys/time.h>
27182#include <time.h>
27183
27184int
27185main ()
27186{
27187if ((struct tm *) 0)
27188return 0;
27189 ;
27190 return 0;
27191}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027192_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027193rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027194if { (ac_try="$ac_compile"
27195case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27198esac
27199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027201 ac_status=$?
27202 grep -v '^ *+' conftest.er1 >conftest.err
27203 rm -f conftest.er1
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027206 (exit $ac_status); } && {
27207 test -z "$ac_c_werror_flag" ||
27208 test ! -s conftest.err
27209 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027210 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027211else
27212 echo "$as_me: failed program was:" >&5
27213sed 's/^/| /' conftest.$ac_ext >&5
27214
Reid Spencera773bd52006-08-04 18:18:08 +000027215 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027216fi
Reid Spencera773bd52006-08-04 18:18:08 +000027217
27218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027219fi
Reid Spencera773bd52006-08-04 18:18:08 +000027220{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27221echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027222if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027223
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027224cat >>confdefs.h <<\_ACEOF
27225#define TIME_WITH_SYS_TIME 1
27226_ACEOF
27227
27228fi
27229
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027230
Reid Spencer59473af2004-12-25 07:31:29 +000027231
27232
27233
27234
27235
27236
27237for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27238do
27239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027244 echo $ECHO_N "(cached) $ECHO_C" >&6
27245fi
Reid Spencera773bd52006-08-04 18:18:08 +000027246ac_res=`eval echo '${'$as_ac_Header'}'`
27247 { echo "$as_me:$LINENO: result: $ac_res" >&5
27248echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027249else
27250 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027251{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27252echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027253cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027254/* confdefs.h. */
27255_ACEOF
27256cat confdefs.h >>conftest.$ac_ext
27257cat >>conftest.$ac_ext <<_ACEOF
27258/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000027259$ac_includes_default
27260#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027261_ACEOF
27262rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027263if { (ac_try="$ac_compile"
27264case "(($ac_try" in
27265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27266 *) ac_try_echo=$ac_try;;
27267esac
27268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27269 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027270 ac_status=$?
27271 grep -v '^ *+' conftest.er1 >conftest.err
27272 rm -f conftest.er1
27273 cat conftest.err >&5
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027275 (exit $ac_status); } && {
27276 test -z "$ac_c_werror_flag" ||
27277 test ! -s conftest.err
27278 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027279 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027280else
27281 echo "$as_me: failed program was:" >&5
27282sed 's/^/| /' conftest.$ac_ext >&5
27283
Reid Spencera773bd52006-08-04 18:18:08 +000027284 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027285fi
Reid Spencera773bd52006-08-04 18:18:08 +000027286
27287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27288{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27289echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027290
Reid Spencer59473af2004-12-25 07:31:29 +000027291# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027292{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027294cat >conftest.$ac_ext <<_ACEOF
27295/* confdefs.h. */
27296_ACEOF
27297cat confdefs.h >>conftest.$ac_ext
27298cat >>conftest.$ac_ext <<_ACEOF
27299/* end confdefs.h. */
27300#include <$ac_header>
27301_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027302if { (ac_try="$ac_cpp conftest.$ac_ext"
27303case "(($ac_try" in
27304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305 *) ac_try_echo=$ac_try;;
27306esac
27307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027309 ac_status=$?
27310 grep -v '^ *+' conftest.er1 >conftest.err
27311 rm -f conftest.er1
27312 cat conftest.err >&5
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027314 (exit $ac_status); } >/dev/null && {
27315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27316 test ! -s conftest.err
27317 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027318 ac_header_preproc=yes
27319else
27320 echo "$as_me: failed program was:" >&5
27321sed 's/^/| /' conftest.$ac_ext >&5
27322
27323 ac_header_preproc=no
27324fi
Reid Spencera773bd52006-08-04 18:18:08 +000027325
Reid Spencer59473af2004-12-25 07:31:29 +000027326rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027327{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27328echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027329
27330# So? What about this header?
27331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27332 yes:no: )
27333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27337 ac_header_preproc=yes
27338 ;;
27339 no:yes:* )
27340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027352 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027353## ----------------------------------- ##
27354## Report this to llvmbugs@cs.uiuc.edu ##
27355## ----------------------------------- ##
27356_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027357 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027358 ;;
27359esac
Reid Spencera773bd52006-08-04 18:18:08 +000027360{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027363 echo $ECHO_N "(cached) $ECHO_C" >&6
27364else
27365 eval "$as_ac_Header=\$ac_header_preproc"
27366fi
Reid Spencera773bd52006-08-04 18:18:08 +000027367ac_res=`eval echo '${'$as_ac_Header'}'`
27368 { echo "$as_me:$LINENO: result: $ac_res" >&5
27369echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027370
27371fi
Reid Spencer59473af2004-12-25 07:31:29 +000027372if test `eval echo '${'$as_ac_Header'}'` = yes; then
27373 cat >>confdefs.h <<_ACEOF
27374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027375_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027376
27377fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027378
Reid Spencer59473af2004-12-25 07:31:29 +000027379done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027380
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027381
27382
Reid Spencer59473af2004-12-25 07:31:29 +000027383
27384
27385
27386
Reid Spencercdb08a32006-06-05 16:11:07 +000027387for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000027388do
27389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027394 echo $ECHO_N "(cached) $ECHO_C" >&6
27395fi
Reid Spencera773bd52006-08-04 18:18:08 +000027396ac_res=`eval echo '${'$as_ac_Header'}'`
27397 { echo "$as_me:$LINENO: result: $ac_res" >&5
27398echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027399else
27400 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027403cat >conftest.$ac_ext <<_ACEOF
27404/* confdefs.h. */
27405_ACEOF
27406cat confdefs.h >>conftest.$ac_ext
27407cat >>conftest.$ac_ext <<_ACEOF
27408/* end confdefs.h. */
27409$ac_includes_default
27410#include <$ac_header>
27411_ACEOF
27412rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027413if { (ac_try="$ac_compile"
27414case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27417esac
27418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027420 ac_status=$?
27421 grep -v '^ *+' conftest.er1 >conftest.err
27422 rm -f conftest.er1
27423 cat conftest.err >&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027425 (exit $ac_status); } && {
27426 test -z "$ac_c_werror_flag" ||
27427 test ! -s conftest.err
27428 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027429 ac_header_compiler=yes
27430else
27431 echo "$as_me: failed program was:" >&5
27432sed 's/^/| /' conftest.$ac_ext >&5
27433
Reid Spencera773bd52006-08-04 18:18:08 +000027434 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000027435fi
Reid Spencera773bd52006-08-04 18:18:08 +000027436
27437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27438{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27439echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027440
27441# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027442{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027444cat >conftest.$ac_ext <<_ACEOF
27445/* confdefs.h. */
27446_ACEOF
27447cat confdefs.h >>conftest.$ac_ext
27448cat >>conftest.$ac_ext <<_ACEOF
27449/* end confdefs.h. */
27450#include <$ac_header>
27451_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027452if { (ac_try="$ac_cpp conftest.$ac_ext"
27453case "(($ac_try" in
27454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455 *) ac_try_echo=$ac_try;;
27456esac
27457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027459 ac_status=$?
27460 grep -v '^ *+' conftest.er1 >conftest.err
27461 rm -f conftest.er1
27462 cat conftest.err >&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027464 (exit $ac_status); } >/dev/null && {
27465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27466 test ! -s conftest.err
27467 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027468 ac_header_preproc=yes
27469else
27470 echo "$as_me: failed program was:" >&5
27471sed 's/^/| /' conftest.$ac_ext >&5
27472
27473 ac_header_preproc=no
27474fi
Reid Spencera773bd52006-08-04 18:18:08 +000027475
Reid Spencer59473af2004-12-25 07:31:29 +000027476rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027477{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27478echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027479
27480# So? What about this header?
27481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27482 yes:no: )
27483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27487 ac_header_preproc=yes
27488 ;;
27489 no:yes:* )
27490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027502 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027503## ----------------------------------- ##
27504## Report this to llvmbugs@cs.uiuc.edu ##
27505## ----------------------------------- ##
27506_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027507 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027508 ;;
27509esac
Reid Spencera773bd52006-08-04 18:18:08 +000027510{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027513 echo $ECHO_N "(cached) $ECHO_C" >&6
27514else
27515 eval "$as_ac_Header=\$ac_header_preproc"
27516fi
Reid Spencera773bd52006-08-04 18:18:08 +000027517ac_res=`eval echo '${'$as_ac_Header'}'`
27518 { echo "$as_me:$LINENO: result: $ac_res" >&5
27519echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027520
27521fi
27522if test `eval echo '${'$as_ac_Header'}'` = yes; then
27523 cat >>confdefs.h <<_ACEOF
27524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27525_ACEOF
27526
27527fi
27528
27529done
27530
27531
Reid Spencerbe3e4192007-08-17 05:45:26 +000027532for ac_header in windows.h
27533do
27534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27539 echo $ECHO_N "(cached) $ECHO_C" >&6
27540fi
27541ac_res=`eval echo '${'$as_ac_Header'}'`
27542 { echo "$as_me:$LINENO: result: $ac_res" >&5
27543echo "${ECHO_T}$ac_res" >&6; }
27544else
27545 # Is the header compilable?
27546{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27547echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27548cat >conftest.$ac_ext <<_ACEOF
27549/* confdefs.h. */
27550_ACEOF
27551cat confdefs.h >>conftest.$ac_ext
27552cat >>conftest.$ac_ext <<_ACEOF
27553/* end confdefs.h. */
27554$ac_includes_default
27555#include <$ac_header>
27556_ACEOF
27557rm -f conftest.$ac_objext
27558if { (ac_try="$ac_compile"
27559case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27562esac
27563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_compile") 2>conftest.er1
27565 ac_status=$?
27566 grep -v '^ *+' conftest.er1 >conftest.err
27567 rm -f conftest.er1
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027570 (exit $ac_status); } && {
27571 test -z "$ac_c_werror_flag" ||
27572 test ! -s conftest.err
27573 } && test -s conftest.$ac_objext; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027574 ac_header_compiler=yes
27575else
27576 echo "$as_me: failed program was:" >&5
27577sed 's/^/| /' conftest.$ac_ext >&5
27578
27579 ac_header_compiler=no
27580fi
27581
27582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27583{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27584echo "${ECHO_T}$ac_header_compiler" >&6; }
27585
27586# Is the header present?
27587{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27589cat >conftest.$ac_ext <<_ACEOF
27590/* confdefs.h. */
27591_ACEOF
27592cat confdefs.h >>conftest.$ac_ext
27593cat >>conftest.$ac_ext <<_ACEOF
27594/* end confdefs.h. */
27595#include <$ac_header>
27596_ACEOF
27597if { (ac_try="$ac_cpp conftest.$ac_ext"
27598case "(($ac_try" in
27599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27600 *) ac_try_echo=$ac_try;;
27601esac
27602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27604 ac_status=$?
27605 grep -v '^ *+' conftest.er1 >conftest.err
27606 rm -f conftest.er1
27607 cat conftest.err >&5
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027609 (exit $ac_status); } >/dev/null && {
27610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27611 test ! -s conftest.err
27612 }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027613 ac_header_preproc=yes
27614else
27615 echo "$as_me: failed program was:" >&5
27616sed 's/^/| /' conftest.$ac_ext >&5
27617
27618 ac_header_preproc=no
27619fi
27620
27621rm -f conftest.err conftest.$ac_ext
27622{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27623echo "${ECHO_T}$ac_header_preproc" >&6; }
27624
27625# So? What about this header?
27626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27627 yes:no: )
27628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27629echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27631echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27632 ac_header_preproc=yes
27633 ;;
27634 no:yes:* )
27635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27638echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27640echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27642echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27646echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27647 ( cat <<\_ASBOX
27648## ----------------------------------- ##
27649## Report this to llvmbugs@cs.uiuc.edu ##
27650## ----------------------------------- ##
27651_ASBOX
27652 ) | sed "s/^/$as_me: WARNING: /" >&2
27653 ;;
27654esac
27655{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27658 echo $ECHO_N "(cached) $ECHO_C" >&6
27659else
27660 eval "$as_ac_Header=\$ac_header_preproc"
27661fi
27662ac_res=`eval echo '${'$as_ac_Header'}'`
27663 { echo "$as_me:$LINENO: result: $ac_res" >&5
27664echo "${ECHO_T}$ac_res" >&6; }
27665
27666fi
27667if test `eval echo '${'$as_ac_Header'}'` = yes; then
27668 cat >>confdefs.h <<_ACEOF
27669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27670_ACEOF
27671
27672fi
27673
27674done
Reid Spencer59473af2004-12-25 07:31:29 +000027675
27676
27677
27678
Reid Spencerbe3e4192007-08-17 05:45:26 +000027679
27680for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027681do
27682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027687 echo $ECHO_N "(cached) $ECHO_C" >&6
27688fi
Reid Spencera773bd52006-08-04 18:18:08 +000027689ac_res=`eval echo '${'$as_ac_Header'}'`
27690 { echo "$as_me:$LINENO: result: $ac_res" >&5
27691echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027692else
27693 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027694{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27695echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027696cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027697/* confdefs.h. */
27698_ACEOF
27699cat confdefs.h >>conftest.$ac_ext
27700cat >>conftest.$ac_ext <<_ACEOF
27701/* end confdefs.h. */
27702$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027703#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027704_ACEOF
27705rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027706if { (ac_try="$ac_compile"
27707case "(($ac_try" in
27708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27709 *) ac_try_echo=$ac_try;;
27710esac
27711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27712 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027713 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027714 grep -v '^ *+' conftest.er1 >conftest.err
27715 rm -f conftest.er1
27716 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027718 (exit $ac_status); } && {
27719 test -z "$ac_c_werror_flag" ||
27720 test ! -s conftest.err
27721 } && test -s conftest.$ac_objext; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027722 ac_header_compiler=yes
27723else
27724 echo "$as_me: failed program was:" >&5
27725sed 's/^/| /' conftest.$ac_ext >&5
27726
Reid Spencera773bd52006-08-04 18:18:08 +000027727 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027728fi
Reid Spencera773bd52006-08-04 18:18:08 +000027729
27730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27731{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27732echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027733
27734# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027735{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027737cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027738/* confdefs.h. */
27739_ACEOF
27740cat confdefs.h >>conftest.$ac_ext
27741cat >>conftest.$ac_ext <<_ACEOF
27742/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027743#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027744_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027745if { (ac_try="$ac_cpp conftest.$ac_ext"
27746case "(($ac_try" in
27747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748 *) ac_try_echo=$ac_try;;
27749esac
27750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027752 ac_status=$?
27753 grep -v '^ *+' conftest.er1 >conftest.err
27754 rm -f conftest.er1
27755 cat conftest.err >&5
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027757 (exit $ac_status); } >/dev/null && {
27758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27759 test ! -s conftest.err
27760 }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027761 ac_header_preproc=yes
27762else
27763 echo "$as_me: failed program was:" >&5
27764sed 's/^/| /' conftest.$ac_ext >&5
27765
27766 ac_header_preproc=no
27767fi
Reid Spencera773bd52006-08-04 18:18:08 +000027768
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027769rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027770{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27771echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027772
27773# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27775 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027780 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027781 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027782 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27786echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27790echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027795 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027796## ----------------------------------- ##
27797## Report this to llvmbugs@cs.uiuc.edu ##
27798## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027799_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027800 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027801 ;;
27802esac
Reid Spencera773bd52006-08-04 18:18:08 +000027803{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027806 echo $ECHO_N "(cached) $ECHO_C" >&6
27807else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027808 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027809fi
Reid Spencera773bd52006-08-04 18:18:08 +000027810ac_res=`eval echo '${'$as_ac_Header'}'`
27811 { echo "$as_me:$LINENO: result: $ac_res" >&5
27812echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027813
27814fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027815if test `eval echo '${'$as_ac_Header'}'` = yes; then
27816 cat >>confdefs.h <<_ACEOF
27817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000027818_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000027819
27820fi
John Criswell7ed43ad2004-07-19 16:12:29 +000027821
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027822done
27823
John Criswell7ed43ad2004-07-19 16:12:29 +000027824
Reid Spencercdb08a32006-06-05 16:11:07 +000027825
Reid Spencera6d990a2006-09-14 06:17:21 +000027826
27827for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000027828do
27829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027834 echo $ECHO_N "(cached) $ECHO_C" >&6
27835fi
Reid Spencera773bd52006-08-04 18:18:08 +000027836ac_res=`eval echo '${'$as_ac_Header'}'`
27837 { echo "$as_me:$LINENO: result: $ac_res" >&5
27838echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027839else
27840 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027841{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27842echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027843cat >conftest.$ac_ext <<_ACEOF
27844/* confdefs.h. */
27845_ACEOF
27846cat confdefs.h >>conftest.$ac_ext
27847cat >>conftest.$ac_ext <<_ACEOF
27848/* end confdefs.h. */
27849$ac_includes_default
27850#include <$ac_header>
27851_ACEOF
27852rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027853if { (ac_try="$ac_compile"
27854case "(($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_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000027860 ac_status=$?
27861 grep -v '^ *+' conftest.er1 >conftest.err
27862 rm -f conftest.er1
27863 cat conftest.err >&5
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027865 (exit $ac_status); } && {
27866 test -z "$ac_c_werror_flag" ||
27867 test ! -s conftest.err
27868 } && test -s conftest.$ac_objext; then
Chris Lattner0b142592005-11-14 06:57:34 +000027869 ac_header_compiler=yes
27870else
27871 echo "$as_me: failed program was:" >&5
27872sed 's/^/| /' conftest.$ac_ext >&5
27873
Reid Spencera773bd52006-08-04 18:18:08 +000027874 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000027875fi
Reid Spencera773bd52006-08-04 18:18:08 +000027876
27877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27878{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27879echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027880
27881# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027882{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027884cat >conftest.$ac_ext <<_ACEOF
27885/* confdefs.h. */
27886_ACEOF
27887cat confdefs.h >>conftest.$ac_ext
27888cat >>conftest.$ac_ext <<_ACEOF
27889/* end confdefs.h. */
27890#include <$ac_header>
27891_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027892if { (ac_try="$ac_cpp conftest.$ac_ext"
27893case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27896esac
27897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000027899 ac_status=$?
27900 grep -v '^ *+' conftest.er1 >conftest.err
27901 rm -f conftest.er1
27902 cat conftest.err >&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027904 (exit $ac_status); } >/dev/null && {
27905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27906 test ! -s conftest.err
27907 }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027908 ac_header_preproc=yes
27909else
27910 echo "$as_me: failed program was:" >&5
27911sed 's/^/| /' conftest.$ac_ext >&5
27912
27913 ac_header_preproc=no
27914fi
Reid Spencera773bd52006-08-04 18:18:08 +000027915
Chris Lattner0b142592005-11-14 06:57:34 +000027916rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027917{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27918echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027919
27920# So? What about this header?
27921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27922 yes:no: )
27923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27926echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27927 ac_header_preproc=yes
27928 ;;
27929 no:yes:* )
27930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27931echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27933echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27935echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27937echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27941echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027942 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000027943## ----------------------------------- ##
27944## Report this to llvmbugs@cs.uiuc.edu ##
27945## ----------------------------------- ##
27946_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027947 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000027948 ;;
27949esac
Reid Spencera773bd52006-08-04 18:18:08 +000027950{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027953 echo $ECHO_N "(cached) $ECHO_C" >&6
27954else
27955 eval "$as_ac_Header=\$ac_header_preproc"
27956fi
Reid Spencera773bd52006-08-04 18:18:08 +000027957ac_res=`eval echo '${'$as_ac_Header'}'`
27958 { echo "$as_me:$LINENO: result: $ac_res" >&5
27959echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027960
27961fi
27962if test `eval echo '${'$as_ac_Header'}'` = yes; then
27963 cat >>confdefs.h <<_ACEOF
27964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27965_ACEOF
27966
27967fi
27968
27969done
27970
Reid Spencer0a262ba2005-08-24 10:07:20 +000027971if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027972
27973for ac_header in pthread.h
27974do
27975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000027980 echo $ECHO_N "(cached) $ECHO_C" >&6
27981fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000027982ac_res=`eval echo '${'$as_ac_Header'}'`
27983 { echo "$as_me:$LINENO: result: $ac_res" >&5
27984echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000027985else
27986 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000027987{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000027989cat >conftest.$ac_ext <<_ACEOF
27990/* confdefs.h. */
27991_ACEOF
27992cat confdefs.h >>conftest.$ac_ext
27993cat >>conftest.$ac_ext <<_ACEOF
27994/* end confdefs.h. */
27995$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000027996#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000027997_ACEOF
27998rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027999if { (ac_try="$ac_compile"
28000case "(($ac_try" in
28001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002 *) ac_try_echo=$ac_try;;
28003esac
28004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028006 ac_status=$?
28007 grep -v '^ *+' conftest.er1 >conftest.err
28008 rm -f conftest.er1
28009 cat conftest.err >&5
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028011 (exit $ac_status); } && {
28012 test -z "$ac_c_werror_flag" ||
28013 test ! -s conftest.err
28014 } && test -s conftest.$ac_objext; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028015 ac_header_compiler=yes
28016else
28017 echo "$as_me: failed program was:" >&5
28018sed 's/^/| /' conftest.$ac_ext >&5
28019
Reid Spencera773bd52006-08-04 18:18:08 +000028020 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000028021fi
Reid Spencera773bd52006-08-04 18:18:08 +000028022
28023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28024{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28025echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028026
28027# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000028028{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028030cat >conftest.$ac_ext <<_ACEOF
28031/* confdefs.h. */
28032_ACEOF
28033cat confdefs.h >>conftest.$ac_ext
28034cat >>conftest.$ac_ext <<_ACEOF
28035/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000028036#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000028037_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028038if { (ac_try="$ac_cpp conftest.$ac_ext"
28039case "(($ac_try" in
28040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28041 *) ac_try_echo=$ac_try;;
28042esac
28043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028045 ac_status=$?
28046 grep -v '^ *+' conftest.er1 >conftest.err
28047 rm -f conftest.er1
28048 cat conftest.err >&5
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028050 (exit $ac_status); } >/dev/null && {
28051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28052 test ! -s conftest.err
28053 }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028054 ac_header_preproc=yes
28055else
28056 echo "$as_me: failed program was:" >&5
28057sed 's/^/| /' conftest.$ac_ext >&5
28058
28059 ac_header_preproc=no
28060fi
Reid Spencera773bd52006-08-04 18:18:08 +000028061
Reid Spencer0a262ba2005-08-24 10:07:20 +000028062rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028063{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28064echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028065
28066# So? What about this header?
28067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28068 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000028073 ac_header_preproc=yes
28074 ;;
28075 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28083echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028088 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000028089## ----------------------------------- ##
28090## Report this to llvmbugs@cs.uiuc.edu ##
28091## ----------------------------------- ##
28092_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028093 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000028094 ;;
28095esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000028096{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028099 echo $ECHO_N "(cached) $ECHO_C" >&6
28100else
Reid Spencerbe3e4192007-08-17 05:45:26 +000028101 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000028102fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028103ac_res=`eval echo '${'$as_ac_Header'}'`
28104 { echo "$as_me:$LINENO: result: $ac_res" >&5
28105echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028106
28107fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028108if test `eval echo '${'$as_ac_Header'}'` = yes; then
28109 cat >>confdefs.h <<_ACEOF
28110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28111_ACEOF
28112 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000028113
28114else
28115 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028116
28117fi
28118
Reid Spencerbe3e4192007-08-17 05:45:26 +000028119done
Reid Spencer1000b732006-12-01 00:37:14 +000028120
28121else
28122 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028123
28124fi
Reid Spencer8085cff2005-01-16 02:58:39 +000028125
28126
Reid Spencerb2ed05262006-11-03 18:04:08 +000028127
28128 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28129echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28130if test "${ac_cv_huge_val_sanity+set}" = set; then
28131 echo $ECHO_N "(cached) $ECHO_C" >&6
28132else
28133
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028134 ac_ext=cpp
28135ac_cpp='$CXXCPP $CPPFLAGS'
28136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000028139
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028140 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000028141 if test "$cross_compiling" = yes; then
28142 ac_cv_huge_val_sanity=yes
28143else
28144 cat >conftest.$ac_ext <<_ACEOF
28145/* confdefs.h. */
28146_ACEOF
28147cat confdefs.h >>conftest.$ac_ext
28148cat >>conftest.$ac_ext <<_ACEOF
28149/* end confdefs.h. */
28150#include <math.h>
28151int
28152main ()
28153{
28154double x = HUGE_VAL; return x != x;
28155 ;
28156 return 0;
28157}
28158_ACEOF
28159rm -f conftest$ac_exeext
28160if { (ac_try="$ac_link"
28161case "(($ac_try" in
28162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163 *) ac_try_echo=$ac_try;;
28164esac
28165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166 (eval "$ac_link") 2>&5
28167 ac_status=$?
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28170 { (case "(($ac_try" in
28171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172 *) ac_try_echo=$ac_try;;
28173esac
28174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175 (eval "$ac_try") 2>&5
28176 ac_status=$?
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); }; }; then
28179 ac_cv_huge_val_sanity=yes
28180else
28181 echo "$as_me: program exited with status $ac_status" >&5
28182echo "$as_me: failed program was:" >&5
28183sed 's/^/| /' conftest.$ac_ext >&5
28184
28185( exit $ac_status )
28186ac_cv_huge_val_sanity=no
28187fi
28188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28189fi
28190
28191
28192 ac_ext=c
28193ac_cpp='$CPP $CPPFLAGS'
28194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28196ac_compiler_gnu=$ac_cv_c_compiler_gnu
28197
28198
28199fi
28200{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28201echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28202 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28203
28204
Reid Spencera773bd52006-08-04 18:18:08 +000028205{ echo "$as_me:$LINENO: checking for pid_t" >&5
28206echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028207if test "${ac_cv_type_pid_t+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28209else
28210 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028211/* confdefs.h. */
28212_ACEOF
28213cat confdefs.h >>conftest.$ac_ext
28214cat >>conftest.$ac_ext <<_ACEOF
28215/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028216$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028217typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028218int
28219main ()
28220{
Reid Spencera773bd52006-08-04 18:18:08 +000028221if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028222 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028223if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028224 return 0;
28225 ;
28226 return 0;
28227}
28228_ACEOF
28229rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028230if { (ac_try="$ac_compile"
28231case "(($ac_try" in
28232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233 *) ac_try_echo=$ac_try;;
28234esac
28235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28236 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028237 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028238 grep -v '^ *+' conftest.er1 >conftest.err
28239 rm -f conftest.er1
28240 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028242 (exit $ac_status); } && {
28243 test -z "$ac_c_werror_flag" ||
28244 test ! -s conftest.err
28245 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028246 ac_cv_type_pid_t=yes
28247else
28248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028249sed 's/^/| /' conftest.$ac_ext >&5
28250
Reid Spencera773bd52006-08-04 18:18:08 +000028251 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028252fi
Reid Spencera773bd52006-08-04 18:18:08 +000028253
28254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028255fi
Reid Spencera773bd52006-08-04 18:18:08 +000028256{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28257echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028258if test $ac_cv_type_pid_t = yes; then
28259 :
28260else
28261
28262cat >>confdefs.h <<_ACEOF
28263#define pid_t int
28264_ACEOF
28265
28266fi
28267
Reid Spencera773bd52006-08-04 18:18:08 +000028268{ echo "$as_me:$LINENO: checking for size_t" >&5
28269echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028270if test "${ac_cv_type_size_t+set}" = set; then
28271 echo $ECHO_N "(cached) $ECHO_C" >&6
28272else
28273 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028274/* confdefs.h. */
28275_ACEOF
28276cat confdefs.h >>conftest.$ac_ext
28277cat >>conftest.$ac_ext <<_ACEOF
28278/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028279$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028280typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028281int
28282main ()
28283{
Reid Spencera773bd52006-08-04 18:18:08 +000028284if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028285 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028286if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028287 return 0;
28288 ;
28289 return 0;
28290}
28291_ACEOF
28292rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028293if { (ac_try="$ac_compile"
28294case "(($ac_try" in
28295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296 *) ac_try_echo=$ac_try;;
28297esac
28298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028300 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028301 grep -v '^ *+' conftest.er1 >conftest.err
28302 rm -f conftest.er1
28303 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028305 (exit $ac_status); } && {
28306 test -z "$ac_c_werror_flag" ||
28307 test ! -s conftest.err
28308 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028309 ac_cv_type_size_t=yes
28310else
28311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028312sed 's/^/| /' conftest.$ac_ext >&5
28313
Reid Spencera773bd52006-08-04 18:18:08 +000028314 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028315fi
Reid Spencera773bd52006-08-04 18:18:08 +000028316
28317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028318fi
Reid Spencera773bd52006-08-04 18:18:08 +000028319{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28320echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028321if test $ac_cv_type_size_t = yes; then
28322 :
28323else
28324
28325cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028326#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000028327_ACEOF
28328
28329fi
28330
Reid Spencera773bd52006-08-04 18:18:08 +000028331{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28332echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028333if test "${ac_cv_type_signal+set}" = set; then
28334 echo $ECHO_N "(cached) $ECHO_C" >&6
28335else
28336 cat >conftest.$ac_ext <<_ACEOF
28337/* confdefs.h. */
28338_ACEOF
28339cat confdefs.h >>conftest.$ac_ext
28340cat >>conftest.$ac_ext <<_ACEOF
28341/* end confdefs.h. */
28342#include <sys/types.h>
28343#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028344
28345int
28346main ()
28347{
Reid Spencera773bd52006-08-04 18:18:08 +000028348return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028349 ;
28350 return 0;
28351}
28352_ACEOF
28353rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028354if { (ac_try="$ac_compile"
28355case "(($ac_try" in
28356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357 *) ac_try_echo=$ac_try;;
28358esac
28359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028361 ac_status=$?
28362 grep -v '^ *+' conftest.er1 >conftest.err
28363 rm -f conftest.er1
28364 cat conftest.err >&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028366 (exit $ac_status); } && {
28367 test -z "$ac_c_werror_flag" ||
28368 test ! -s conftest.err
28369 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +000028370 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028371else
28372 echo "$as_me: failed program was:" >&5
28373sed 's/^/| /' conftest.$ac_ext >&5
28374
Reid Spencera773bd52006-08-04 18:18:08 +000028375 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028376fi
Reid Spencera773bd52006-08-04 18:18:08 +000028377
28378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028379fi
Reid Spencera773bd52006-08-04 18:18:08 +000028380{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28381echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028382
28383cat >>confdefs.h <<_ACEOF
28384#define RETSIGTYPE $ac_cv_type_signal
28385_ACEOF
28386
28387
Reid Spencera773bd52006-08-04 18:18:08 +000028388{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28389echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028390if test "${ac_cv_struct_tm+set}" = set; then
28391 echo $ECHO_N "(cached) $ECHO_C" >&6
28392else
28393 cat >conftest.$ac_ext <<_ACEOF
28394/* confdefs.h. */
28395_ACEOF
28396cat confdefs.h >>conftest.$ac_ext
28397cat >>conftest.$ac_ext <<_ACEOF
28398/* end confdefs.h. */
28399#include <sys/types.h>
28400#include <time.h>
28401
28402int
28403main ()
28404{
Scott Michel96dcd2b2007-12-05 21:24:02 +000028405struct tm tm;
28406 int *p = &tm.tm_sec;
28407 return !p;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028408 ;
28409 return 0;
28410}
28411_ACEOF
28412rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028413if { (ac_try="$ac_compile"
28414case "(($ac_try" in
28415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416 *) ac_try_echo=$ac_try;;
28417esac
28418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028420 ac_status=$?
28421 grep -v '^ *+' conftest.er1 >conftest.err
28422 rm -f conftest.er1
28423 cat conftest.err >&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028425 (exit $ac_status); } && {
28426 test -z "$ac_c_werror_flag" ||
28427 test ! -s conftest.err
28428 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028429 ac_cv_struct_tm=time.h
28430else
28431 echo "$as_me: failed program was:" >&5
28432sed 's/^/| /' conftest.$ac_ext >&5
28433
Reid Spencera773bd52006-08-04 18:18:08 +000028434 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028435fi
Reid Spencera773bd52006-08-04 18:18:08 +000028436
28437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028438fi
Reid Spencera773bd52006-08-04 18:18:08 +000028439{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28440echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028441if test $ac_cv_struct_tm = sys/time.h; then
28442
28443cat >>confdefs.h <<\_ACEOF
28444#define TM_IN_SYS_TIME 1
28445_ACEOF
28446
28447fi
28448
Reid Spencera773bd52006-08-04 18:18:08 +000028449{ echo "$as_me:$LINENO: checking for int64_t" >&5
28450echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028451if test "${ac_cv_type_int64_t+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28453else
28454 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028455/* confdefs.h. */
28456_ACEOF
28457cat confdefs.h >>conftest.$ac_ext
28458cat >>conftest.$ac_ext <<_ACEOF
28459/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028460$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028461typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028462int
28463main ()
28464{
Reid Spencera773bd52006-08-04 18:18:08 +000028465if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028466 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028467if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028468 return 0;
28469 ;
28470 return 0;
28471}
28472_ACEOF
28473rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028474if { (ac_try="$ac_compile"
28475case "(($ac_try" in
28476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477 *) ac_try_echo=$ac_try;;
28478esac
28479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028481 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028482 grep -v '^ *+' conftest.er1 >conftest.err
28483 rm -f conftest.er1
28484 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028486 (exit $ac_status); } && {
28487 test -z "$ac_c_werror_flag" ||
28488 test ! -s conftest.err
28489 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028490 ac_cv_type_int64_t=yes
28491else
28492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028493sed 's/^/| /' conftest.$ac_ext >&5
28494
Reid Spencera773bd52006-08-04 18:18:08 +000028495 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028496fi
Reid Spencera773bd52006-08-04 18:18:08 +000028497
28498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028499fi
Reid Spencera773bd52006-08-04 18:18:08 +000028500{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28501echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028502if test $ac_cv_type_int64_t = yes; then
28503
28504cat >>confdefs.h <<_ACEOF
28505#define HAVE_INT64_T 1
28506_ACEOF
28507
28508
28509else
28510 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28511echo "$as_me: error: Type int64_t required but not found" >&2;}
28512 { (exit 1); exit 1; }; }
28513fi
28514
Reid Spencera773bd52006-08-04 18:18:08 +000028515{ echo "$as_me:$LINENO: checking for uint64_t" >&5
28516echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028517if test "${ac_cv_type_uint64_t+set}" = set; then
28518 echo $ECHO_N "(cached) $ECHO_C" >&6
28519else
28520 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028521/* confdefs.h. */
28522_ACEOF
28523cat confdefs.h >>conftest.$ac_ext
28524cat >>conftest.$ac_ext <<_ACEOF
28525/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028526$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028527typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028528int
28529main ()
28530{
Reid Spencera773bd52006-08-04 18:18:08 +000028531if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028532 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028533if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028534 return 0;
28535 ;
28536 return 0;
28537}
28538_ACEOF
28539rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028540if { (ac_try="$ac_compile"
28541case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28544esac
28545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028547 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028548 grep -v '^ *+' conftest.er1 >conftest.err
28549 rm -f conftest.er1
28550 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028552 (exit $ac_status); } && {
28553 test -z "$ac_c_werror_flag" ||
28554 test ! -s conftest.err
28555 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028556 ac_cv_type_uint64_t=yes
28557else
28558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028559sed 's/^/| /' conftest.$ac_ext >&5
28560
Reid Spencera773bd52006-08-04 18:18:08 +000028561 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028562fi
Reid Spencera773bd52006-08-04 18:18:08 +000028563
28564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028565fi
Reid Spencera773bd52006-08-04 18:18:08 +000028566{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28567echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028568if test $ac_cv_type_uint64_t = yes; then
28569
28570cat >>confdefs.h <<_ACEOF
28571#define HAVE_UINT64_T 1
28572_ACEOF
28573
28574
28575else
Reid Spencera773bd52006-08-04 18:18:08 +000028576 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28577echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000028578if test "${ac_cv_type_u_int64_t+set}" = set; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28580else
28581 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000028582/* confdefs.h. */
28583_ACEOF
28584cat confdefs.h >>conftest.$ac_ext
28585cat >>conftest.$ac_ext <<_ACEOF
28586/* end confdefs.h. */
28587$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028588typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000028589int
28590main ()
28591{
Reid Spencera773bd52006-08-04 18:18:08 +000028592if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000028593 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028594if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000028595 return 0;
28596 ;
28597 return 0;
28598}
28599_ACEOF
28600rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028601if { (ac_try="$ac_compile"
28602case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28605esac
28606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000028608 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028609 grep -v '^ *+' conftest.er1 >conftest.err
28610 rm -f conftest.er1
28611 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000028612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028613 (exit $ac_status); } && {
28614 test -z "$ac_c_werror_flag" ||
28615 test ! -s conftest.err
28616 } && test -s conftest.$ac_objext; then
John Criswell679ff312004-09-02 18:44:44 +000028617 ac_cv_type_u_int64_t=yes
28618else
28619 echo "$as_me: failed program was:" >&5
28620sed 's/^/| /' conftest.$ac_ext >&5
28621
Reid Spencera773bd52006-08-04 18:18:08 +000028622 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000028623fi
Reid Spencera773bd52006-08-04 18:18:08 +000028624
28625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000028626fi
Reid Spencera773bd52006-08-04 18:18:08 +000028627{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28628echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000028629if test $ac_cv_type_u_int64_t = yes; then
28630
28631cat >>confdefs.h <<_ACEOF
28632#define HAVE_U_INT64_T 1
28633_ACEOF
28634
28635
Misha Brukmanceca9042004-09-02 23:02:30 +000028636else
28637 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28638echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28639 { (exit 1); exit 1; }; }
28640fi
28641
John Criswell679ff312004-09-02 18:44:44 +000028642fi
28643
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028644
28645
28646
28647
28648
28649
28650
Reid Spencerf4bb9b12006-01-19 08:22:40 +000028651
28652
Reid Spencerdf3be822006-01-23 08:15:53 +000028653for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028654do
28655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028656{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28658if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028659 echo $ECHO_N "(cached) $ECHO_C" >&6
28660else
28661 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028662/* confdefs.h. */
28663_ACEOF
28664cat confdefs.h >>conftest.$ac_ext
28665cat >>conftest.$ac_ext <<_ACEOF
28666/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28669#define $ac_func innocuous_$ac_func
28670
28671/* System header to define __stub macros and hopefully few prototypes,
28672 which can conflict with char $ac_func (); below.
28673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28674 <limits.h> exists even on freestanding compilers. */
28675
28676#ifdef __STDC__
28677# include <limits.h>
28678#else
28679# include <assert.h>
28680#endif
28681
28682#undef $ac_func
28683
Reid Spencera773bd52006-08-04 18:18:08 +000028684/* Override any GCC internal prototype to avoid an error.
28685 Use char because int might match the return type of a GCC
28686 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028687#ifdef __cplusplus
28688extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028689#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028690char $ac_func ();
28691/* The GNU C library defines this for functions which it implements
28692 to always fail with ENOSYS. Some functions are actually named
28693 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000028694#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028695choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028696#endif
John Criswell7a73b802003-06-30 21:59:07 +000028697
John Criswell7a73b802003-06-30 21:59:07 +000028698int
28699main ()
28700{
Reid Spencera773bd52006-08-04 18:18:08 +000028701return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028702 ;
28703 return 0;
28704}
28705_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028706rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028707if { (ac_try="$ac_link"
28708case "(($ac_try" in
28709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710 *) ac_try_echo=$ac_try;;
28711esac
28712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028714 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028715 grep -v '^ *+' conftest.er1 >conftest.err
28716 rm -f conftest.er1
28717 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028719 (exit $ac_status); } && {
28720 test -z "$ac_c_werror_flag" ||
28721 test ! -s conftest.err
28722 } && test -s conftest$ac_exeext &&
28723 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028724 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028725else
28726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028727sed 's/^/| /' conftest.$ac_ext >&5
28728
Reid Spencera773bd52006-08-04 18:18:08 +000028729 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028730fi
Reid Spencera773bd52006-08-04 18:18:08 +000028731
Scott Michel96dcd2b2007-12-05 21:24:02 +000028732rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028733 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028734fi
Reid Spencera773bd52006-08-04 18:18:08 +000028735ac_res=`eval echo '${'$as_ac_var'}'`
28736 { echo "$as_me:$LINENO: result: $ac_res" >&5
28737echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028738if test `eval echo '${'$as_ac_var'}'` = yes; then
28739 cat >>confdefs.h <<_ACEOF
28740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028741_ACEOF
28742
28743fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028744done
John Criswell7a73b802003-06-30 21:59:07 +000028745
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028746
28747
28748
Reid Spencer6af3d262004-12-15 04:01:48 +000028749
Reid Spencer96cf5872007-07-13 10:05:30 +000028750for ac_func in powf fmodf strtof round
28751do
28752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28756 echo $ECHO_N "(cached) $ECHO_C" >&6
28757else
28758 cat >conftest.$ac_ext <<_ACEOF
28759/* confdefs.h. */
28760_ACEOF
28761cat confdefs.h >>conftest.$ac_ext
28762cat >>conftest.$ac_ext <<_ACEOF
28763/* end confdefs.h. */
28764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28766#define $ac_func innocuous_$ac_func
28767
28768/* System header to define __stub macros and hopefully few prototypes,
28769 which can conflict with char $ac_func (); below.
28770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28771 <limits.h> exists even on freestanding compilers. */
28772
28773#ifdef __STDC__
28774# include <limits.h>
28775#else
28776# include <assert.h>
28777#endif
28778
28779#undef $ac_func
28780
28781/* Override any GCC internal prototype to avoid an error.
28782 Use char because int might match the return type of a GCC
28783 builtin and then its argument prototype would still apply. */
28784#ifdef __cplusplus
28785extern "C"
28786#endif
28787char $ac_func ();
28788/* The GNU C library defines this for functions which it implements
28789 to always fail with ENOSYS. Some functions are actually named
28790 something starting with __ and the normal name is an alias. */
28791#if defined __stub_$ac_func || defined __stub___$ac_func
28792choke me
28793#endif
28794
28795int
28796main ()
28797{
28798return $ac_func ();
28799 ;
28800 return 0;
28801}
28802_ACEOF
28803rm -f conftest.$ac_objext conftest$ac_exeext
28804if { (ac_try="$ac_link"
28805case "(($ac_try" in
28806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28807 *) ac_try_echo=$ac_try;;
28808esac
28809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28810 (eval "$ac_link") 2>conftest.er1
28811 ac_status=$?
28812 grep -v '^ *+' conftest.er1 >conftest.err
28813 rm -f conftest.er1
28814 cat conftest.err >&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028816 (exit $ac_status); } && {
28817 test -z "$ac_c_werror_flag" ||
28818 test ! -s conftest.err
28819 } && test -s conftest$ac_exeext &&
28820 $as_test_x conftest$ac_exeext; then
Reid Spencer96cf5872007-07-13 10:05:30 +000028821 eval "$as_ac_var=yes"
28822else
28823 echo "$as_me: failed program was:" >&5
28824sed 's/^/| /' conftest.$ac_ext >&5
28825
28826 eval "$as_ac_var=no"
28827fi
28828
Scott Michel96dcd2b2007-12-05 21:24:02 +000028829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer96cf5872007-07-13 10:05:30 +000028830 conftest$ac_exeext conftest.$ac_ext
28831fi
28832ac_res=`eval echo '${'$as_ac_var'}'`
28833 { echo "$as_me:$LINENO: result: $ac_res" >&5
28834echo "${ECHO_T}$ac_res" >&6; }
28835if test `eval echo '${'$as_ac_var'}'` = yes; then
28836 cat >>confdefs.h <<_ACEOF
28837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28838_ACEOF
28839
28840fi
28841done
28842
28843
28844
28845
28846
Reid Spencer6af3d262004-12-15 04:01:48 +000028847
Reid Spencerb90645c2007-02-16 19:17:20 +000028848for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28849do
28850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28851{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28853if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28854 echo $ECHO_N "(cached) $ECHO_C" >&6
28855else
28856 cat >conftest.$ac_ext <<_ACEOF
28857/* confdefs.h. */
28858_ACEOF
28859cat confdefs.h >>conftest.$ac_ext
28860cat >>conftest.$ac_ext <<_ACEOF
28861/* end confdefs.h. */
28862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28864#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000028865
Reid Spencerb90645c2007-02-16 19:17:20 +000028866/* System header to define __stub macros and hopefully few prototypes,
28867 which can conflict with char $ac_func (); below.
28868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869 <limits.h> exists even on freestanding compilers. */
28870
28871#ifdef __STDC__
28872# include <limits.h>
28873#else
28874# include <assert.h>
28875#endif
28876
28877#undef $ac_func
28878
28879/* Override any GCC internal prototype to avoid an error.
28880 Use char because int might match the return type of a GCC
28881 builtin and then its argument prototype would still apply. */
28882#ifdef __cplusplus
28883extern "C"
28884#endif
28885char $ac_func ();
28886/* The GNU C library defines this for functions which it implements
28887 to always fail with ENOSYS. Some functions are actually named
28888 something starting with __ and the normal name is an alias. */
28889#if defined __stub_$ac_func || defined __stub___$ac_func
28890choke me
28891#endif
28892
28893int
28894main ()
28895{
28896return $ac_func ();
28897 ;
28898 return 0;
28899}
28900_ACEOF
28901rm -f conftest.$ac_objext conftest$ac_exeext
28902if { (ac_try="$ac_link"
28903case "(($ac_try" in
28904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905 *) ac_try_echo=$ac_try;;
28906esac
28907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908 (eval "$ac_link") 2>conftest.er1
28909 ac_status=$?
28910 grep -v '^ *+' conftest.er1 >conftest.err
28911 rm -f conftest.er1
28912 cat conftest.err >&5
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028914 (exit $ac_status); } && {
28915 test -z "$ac_c_werror_flag" ||
28916 test ! -s conftest.err
28917 } && test -s conftest$ac_exeext &&
28918 $as_test_x conftest$ac_exeext; then
Reid Spencerb90645c2007-02-16 19:17:20 +000028919 eval "$as_ac_var=yes"
28920else
28921 echo "$as_me: failed program was:" >&5
28922sed 's/^/| /' conftest.$ac_ext >&5
28923
28924 eval "$as_ac_var=no"
28925fi
28926
Scott Michel96dcd2b2007-12-05 21:24:02 +000028927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb90645c2007-02-16 19:17:20 +000028928 conftest$ac_exeext conftest.$ac_ext
28929fi
28930ac_res=`eval echo '${'$as_ac_var'}'`
28931 { echo "$as_me:$LINENO: result: $ac_res" >&5
28932echo "${ECHO_T}$ac_res" >&6; }
28933if test `eval echo '${'$as_ac_var'}'` = yes; then
28934 cat >>confdefs.h <<_ACEOF
28935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28936_ACEOF
28937
28938fi
28939done
28940
28941
28942
28943
28944for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000028945do
28946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028947{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000028950 echo $ECHO_N "(cached) $ECHO_C" >&6
28951else
28952 cat >conftest.$ac_ext <<_ACEOF
28953/* confdefs.h. */
28954_ACEOF
28955cat confdefs.h >>conftest.$ac_ext
28956cat >>conftest.$ac_ext <<_ACEOF
28957/* end confdefs.h. */
28958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28960#define $ac_func innocuous_$ac_func
28961
28962/* System header to define __stub macros and hopefully few prototypes,
28963 which can conflict with char $ac_func (); below.
28964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28965 <limits.h> exists even on freestanding compilers. */
28966
28967#ifdef __STDC__
28968# include <limits.h>
28969#else
28970# include <assert.h>
28971#endif
28972
28973#undef $ac_func
28974
Reid Spencera773bd52006-08-04 18:18:08 +000028975/* Override any GCC internal prototype to avoid an error.
28976 Use char because int might match the return type of a GCC
28977 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000028978#ifdef __cplusplus
28979extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000028980#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000028981char $ac_func ();
28982/* The GNU C library defines this for functions which it implements
28983 to always fail with ENOSYS. Some functions are actually named
28984 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000028985#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000028986choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000028987#endif
28988
28989int
28990main ()
28991{
Reid Spencera773bd52006-08-04 18:18:08 +000028992return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000028993 ;
28994 return 0;
28995}
28996_ACEOF
28997rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028998if { (ac_try="$ac_link"
28999case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29002esac
29003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000029005 ac_status=$?
29006 grep -v '^ *+' conftest.er1 >conftest.err
29007 rm -f conftest.er1
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029010 (exit $ac_status); } && {
29011 test -z "$ac_c_werror_flag" ||
29012 test ! -s conftest.err
29013 } && test -s conftest$ac_exeext &&
29014 $as_test_x conftest$ac_exeext; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029015 eval "$as_ac_var=yes"
29016else
29017 echo "$as_me: failed program was:" >&5
29018sed 's/^/| /' conftest.$ac_ext >&5
29019
Reid Spencera773bd52006-08-04 18:18:08 +000029020 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000029021fi
Reid Spencera773bd52006-08-04 18:18:08 +000029022
Scott Michel96dcd2b2007-12-05 21:24:02 +000029023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerdf3be822006-01-23 08:15:53 +000029024 conftest$ac_exeext conftest.$ac_ext
29025fi
Reid Spencera773bd52006-08-04 18:18:08 +000029026ac_res=`eval echo '${'$as_ac_var'}'`
29027 { echo "$as_me:$LINENO: result: $ac_res" >&5
29028echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000029029if test `eval echo '${'$as_ac_var'}'` = yes; then
29030 cat >>confdefs.h <<_ACEOF
29031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29032_ACEOF
29033
29034fi
29035done
29036
29037
29038
29039
29040
29041
29042
29043
29044for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000029045do
29046as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029047{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29049if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000029050 echo $ECHO_N "(cached) $ECHO_C" >&6
29051else
29052 cat >conftest.$ac_ext <<_ACEOF
29053/* confdefs.h. */
29054_ACEOF
29055cat confdefs.h >>conftest.$ac_ext
29056cat >>conftest.$ac_ext <<_ACEOF
29057/* end confdefs.h. */
29058/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29060#define $ac_func innocuous_$ac_func
29061
29062/* System header to define __stub macros and hopefully few prototypes,
29063 which can conflict with char $ac_func (); below.
29064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29065 <limits.h> exists even on freestanding compilers. */
29066
29067#ifdef __STDC__
29068# include <limits.h>
29069#else
29070# include <assert.h>
29071#endif
29072
29073#undef $ac_func
29074
Reid Spencera773bd52006-08-04 18:18:08 +000029075/* Override any GCC internal prototype to avoid an error.
29076 Use char because int might match the return type of a GCC
29077 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000029078#ifdef __cplusplus
29079extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000029080#endif
Reid Spencer7931a782004-12-27 06:15:02 +000029081char $ac_func ();
29082/* The GNU C library defines this for functions which it implements
29083 to always fail with ENOSYS. Some functions are actually named
29084 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029085#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000029086choke me
Reid Spencer7931a782004-12-27 06:15:02 +000029087#endif
29088
29089int
29090main ()
29091{
Reid Spencera773bd52006-08-04 18:18:08 +000029092return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000029093 ;
29094 return 0;
29095}
29096_ACEOF
29097rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029098if { (ac_try="$ac_link"
29099case "(($ac_try" in
29100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101 *) ac_try_echo=$ac_try;;
29102esac
29103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000029105 ac_status=$?
29106 grep -v '^ *+' conftest.er1 >conftest.err
29107 rm -f conftest.er1
29108 cat conftest.err >&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029110 (exit $ac_status); } && {
29111 test -z "$ac_c_werror_flag" ||
29112 test ! -s conftest.err
29113 } && test -s conftest$ac_exeext &&
29114 $as_test_x conftest$ac_exeext; then
Reid Spencer7931a782004-12-27 06:15:02 +000029115 eval "$as_ac_var=yes"
29116else
29117 echo "$as_me: failed program was:" >&5
29118sed 's/^/| /' conftest.$ac_ext >&5
29119
Reid Spencera773bd52006-08-04 18:18:08 +000029120 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000029121fi
Reid Spencera773bd52006-08-04 18:18:08 +000029122
Scott Michel96dcd2b2007-12-05 21:24:02 +000029123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer7931a782004-12-27 06:15:02 +000029124 conftest$ac_exeext conftest.$ac_ext
29125fi
Reid Spencera773bd52006-08-04 18:18:08 +000029126ac_res=`eval echo '${'$as_ac_var'}'`
29127 { echo "$as_me:$LINENO: result: $ac_res" >&5
29128echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000029129if test `eval echo '${'$as_ac_var'}'` = yes; then
29130 cat >>confdefs.h <<_ACEOF
29131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29132_ACEOF
29133
29134fi
29135done
29136
29137
Reid Spencerba46ca32004-12-31 05:49:15 +000029138
29139
Chris Lattner0b142592005-11-14 06:57:34 +000029140
Chris Lattner511f11d2005-11-14 07:25:50 +000029141for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029142do
29143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029144{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29146if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029147 echo $ECHO_N "(cached) $ECHO_C" >&6
29148else
29149 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029150/* confdefs.h. */
29151_ACEOF
29152cat confdefs.h >>conftest.$ac_ext
29153cat >>conftest.$ac_ext <<_ACEOF
29154/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029155/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29157#define $ac_func innocuous_$ac_func
29158
29159/* System header to define __stub macros and hopefully few prototypes,
29160 which can conflict with char $ac_func (); below.
29161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29162 <limits.h> exists even on freestanding compilers. */
29163
29164#ifdef __STDC__
29165# include <limits.h>
29166#else
29167# include <assert.h>
29168#endif
29169
29170#undef $ac_func
29171
Reid Spencera773bd52006-08-04 18:18:08 +000029172/* Override any GCC internal prototype to avoid an error.
29173 Use char because int might match the return type of a GCC
29174 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029175#ifdef __cplusplus
29176extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029177#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029178char $ac_func ();
29179/* The GNU C library defines this for functions which it implements
29180 to always fail with ENOSYS. Some functions are actually named
29181 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029182#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029183choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029184#endif
John Criswell7a73b802003-06-30 21:59:07 +000029185
John Criswell7a73b802003-06-30 21:59:07 +000029186int
29187main ()
29188{
Reid Spencera773bd52006-08-04 18:18:08 +000029189return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029190 ;
29191 return 0;
29192}
29193_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029194rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029195if { (ac_try="$ac_link"
29196case "(($ac_try" in
29197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198 *) ac_try_echo=$ac_try;;
29199esac
29200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029202 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029203 grep -v '^ *+' conftest.er1 >conftest.err
29204 rm -f conftest.er1
29205 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029207 (exit $ac_status); } && {
29208 test -z "$ac_c_werror_flag" ||
29209 test ! -s conftest.err
29210 } && test -s conftest$ac_exeext &&
29211 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029212 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029213else
29214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029215sed 's/^/| /' conftest.$ac_ext >&5
29216
Reid Spencera773bd52006-08-04 18:18:08 +000029217 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029218fi
Reid Spencera773bd52006-08-04 18:18:08 +000029219
Scott Michel96dcd2b2007-12-05 21:24:02 +000029220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029221 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029222fi
Reid Spencera773bd52006-08-04 18:18:08 +000029223ac_res=`eval echo '${'$as_ac_var'}'`
29224 { echo "$as_me:$LINENO: result: $ac_res" >&5
29225echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029226if test `eval echo '${'$as_ac_var'}'` = yes; then
29227 cat >>confdefs.h <<_ACEOF
29228#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029229_ACEOF
29230
29231fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029232done
John Criswell7a73b802003-06-30 21:59:07 +000029233
Reid Spencercdb08a32006-06-05 16:11:07 +000029234
29235
29236
29237
Reid Spencerafa22e22006-12-10 23:29:19 +000029238for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000029239do
29240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029241{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000029244 echo $ECHO_N "(cached) $ECHO_C" >&6
29245else
29246 cat >conftest.$ac_ext <<_ACEOF
29247/* confdefs.h. */
29248_ACEOF
29249cat confdefs.h >>conftest.$ac_ext
29250cat >>conftest.$ac_ext <<_ACEOF
29251/* end confdefs.h. */
29252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29254#define $ac_func innocuous_$ac_func
29255
29256/* System header to define __stub macros and hopefully few prototypes,
29257 which can conflict with char $ac_func (); below.
29258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29259 <limits.h> exists even on freestanding compilers. */
29260
29261#ifdef __STDC__
29262# include <limits.h>
29263#else
29264# include <assert.h>
29265#endif
29266
29267#undef $ac_func
29268
Reid Spencera773bd52006-08-04 18:18:08 +000029269/* Override any GCC internal prototype to avoid an error.
29270 Use char because int might match the return type of a GCC
29271 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000029272#ifdef __cplusplus
29273extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000029274#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000029275char $ac_func ();
29276/* The GNU C library defines this for functions which it implements
29277 to always fail with ENOSYS. Some functions are actually named
29278 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029279#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000029280choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000029281#endif
29282
29283int
29284main ()
29285{
Reid Spencera773bd52006-08-04 18:18:08 +000029286return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000029287 ;
29288 return 0;
29289}
29290_ACEOF
29291rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029292if { (ac_try="$ac_link"
29293case "(($ac_try" in
29294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29295 *) ac_try_echo=$ac_try;;
29296esac
29297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29298 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000029299 ac_status=$?
29300 grep -v '^ *+' conftest.er1 >conftest.err
29301 rm -f conftest.er1
29302 cat conftest.err >&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029304 (exit $ac_status); } && {
29305 test -z "$ac_c_werror_flag" ||
29306 test ! -s conftest.err
29307 } && test -s conftest$ac_exeext &&
29308 $as_test_x conftest$ac_exeext; then
Reid Spencercdb08a32006-06-05 16:11:07 +000029309 eval "$as_ac_var=yes"
29310else
29311 echo "$as_me: failed program was:" >&5
29312sed 's/^/| /' conftest.$ac_ext >&5
29313
Reid Spencera773bd52006-08-04 18:18:08 +000029314 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000029315fi
Reid Spencera773bd52006-08-04 18:18:08 +000029316
Scott Michel96dcd2b2007-12-05 21:24:02 +000029317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencercdb08a32006-06-05 16:11:07 +000029318 conftest$ac_exeext conftest.$ac_ext
29319fi
Reid Spencera773bd52006-08-04 18:18:08 +000029320ac_res=`eval echo '${'$as_ac_var'}'`
29321 { echo "$as_me:$LINENO: result: $ac_res" >&5
29322echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000029323if test `eval echo '${'$as_ac_var'}'` = yes; then
29324 cat >>confdefs.h <<_ACEOF
29325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29326_ACEOF
29327
29328fi
29329done
29330
Reid Spencera773bd52006-08-04 18:18:08 +000029331{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29332echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029333if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029334 echo $ECHO_N "(cached) $ECHO_C" >&6
29335else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029336 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029337ac_cpp='$CPP $CPPFLAGS'
29338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29340ac_compiler_gnu=$ac_cv_c_compiler_gnu
29341
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029342 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029343 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029344else
29345 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000029346
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029347 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000029348_ACEOF
29349cat confdefs.h >>conftest.$ac_ext
29350cat >>conftest.$ac_ext <<_ACEOF
29351/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029352
John Criswella0137d32003-10-13 16:22:01 +000029353#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000029354#include <stdlib.h>
29355
John Criswella0137d32003-10-13 16:22:01 +000029356int
29357main ()
29358{
29359
Reid Spencer2706f8c2004-09-19 23:53:36 +000029360volatile double A, B;
29361char Buffer[100];
29362A = 1;
29363A /= 10.0;
29364sprintf(Buffer, "%a", A);
29365B = atof(Buffer);
29366if (A != B)
29367 return (1);
29368if (A != 0x1.999999999999ap-4)
29369 return (1);
29370return (0);
John Criswella0137d32003-10-13 16:22:01 +000029371 ;
29372 return 0;
29373}
29374_ACEOF
29375rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029376if { (ac_try="$ac_link"
29377case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29380esac
29381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029383 ac_status=$?
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029386 { (case "(($ac_try" in
29387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388 *) ac_try_echo=$ac_try;;
29389esac
29390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029392 ac_status=$?
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029395 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000029396else
29397 echo "$as_me: program exited with status $ac_status" >&5
29398echo "$as_me: failed program was:" >&5
29399sed 's/^/| /' conftest.$ac_ext >&5
29400
29401( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000029402llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029403fi
Reid Spencera773bd52006-08-04 18:18:08 +000029404rm -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 +000029405fi
Reid Spencera773bd52006-08-04 18:18:08 +000029406
29407
Reid Spencer2706f8c2004-09-19 23:53:36 +000029408 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029409ac_cpp='$CPP $CPPFLAGS'
29410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29412ac_compiler_gnu=$ac_cv_c_compiler_gnu
29413
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029414fi
Reid Spencera773bd52006-08-04 18:18:08 +000029415{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29416echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029417 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000029418
29419cat >>confdefs.h <<\_ACEOF
29420#define HAVE_PRINTF_A 1
29421_ACEOF
29422
Reid Spencer2706f8c2004-09-19 23:53:36 +000029423 fi
John Criswella0137d32003-10-13 16:22:01 +000029424
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029425# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29426# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000029427{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
29428echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029429if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000029430 echo $ECHO_N "(cached) $ECHO_C" >&6
29431else
John Criswell0021c312004-02-13 21:57:29 +000029432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000029433/* confdefs.h. */
29434_ACEOF
29435cat confdefs.h >>conftest.$ac_ext
29436cat >>conftest.$ac_ext <<_ACEOF
29437/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029438#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000029439int
29440main ()
29441{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029442char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000029443 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000029444 ;
29445 return 0;
29446}
29447_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029448rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029449if { (ac_try="$ac_link"
29450case "(($ac_try" in
29451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452 *) ac_try_echo=$ac_try;;
29453esac
29454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000029456 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029457 grep -v '^ *+' conftest.er1 >conftest.err
29458 rm -f conftest.er1
29459 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000029460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029461 (exit $ac_status); } && {
29462 test -z "$ac_c_werror_flag" ||
29463 test ! -s conftest.err
29464 } && test -s conftest$ac_exeext &&
29465 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029466 ac_cv_working_alloca_h=yes
29467else
29468 echo "$as_me: failed program was:" >&5
29469sed 's/^/| /' conftest.$ac_ext >&5
29470
Reid Spencera773bd52006-08-04 18:18:08 +000029471 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000029472fi
Reid Spencera773bd52006-08-04 18:18:08 +000029473
Scott Michel96dcd2b2007-12-05 21:24:02 +000029474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029475 conftest$ac_exeext conftest.$ac_ext
29476fi
Reid Spencera773bd52006-08-04 18:18:08 +000029477{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29478echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029479if test $ac_cv_working_alloca_h = yes; then
29480
29481cat >>confdefs.h <<\_ACEOF
29482#define HAVE_ALLOCA_H 1
29483_ACEOF
29484
29485fi
29486
Reid Spencera773bd52006-08-04 18:18:08 +000029487{ echo "$as_me:$LINENO: checking for alloca" >&5
29488echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029489if test "${ac_cv_func_alloca_works+set}" = set; then
29490 echo $ECHO_N "(cached) $ECHO_C" >&6
29491else
29492 cat >conftest.$ac_ext <<_ACEOF
29493/* confdefs.h. */
29494_ACEOF
29495cat confdefs.h >>conftest.$ac_ext
29496cat >>conftest.$ac_ext <<_ACEOF
29497/* end confdefs.h. */
29498#ifdef __GNUC__
29499# define alloca __builtin_alloca
29500#else
29501# ifdef _MSC_VER
29502# include <malloc.h>
29503# define alloca _alloca
29504# else
Scott Michel96dcd2b2007-12-05 21:24:02 +000029505# ifdef HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029506# include <alloca.h>
29507# else
29508# ifdef _AIX
29509 #pragma alloca
29510# else
29511# ifndef alloca /* predefined by HP cc +Olibcalls */
29512char *alloca ();
29513# endif
29514# endif
29515# endif
29516# endif
29517#endif
29518
29519int
29520main ()
29521{
29522char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000029523 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029524 ;
29525 return 0;
29526}
29527_ACEOF
29528rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029529if { (ac_try="$ac_link"
29530case "(($ac_try" in
29531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532 *) ac_try_echo=$ac_try;;
29533esac
29534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029536 ac_status=$?
29537 grep -v '^ *+' conftest.er1 >conftest.err
29538 rm -f conftest.er1
29539 cat conftest.err >&5
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029541 (exit $ac_status); } && {
29542 test -z "$ac_c_werror_flag" ||
29543 test ! -s conftest.err
29544 } && test -s conftest$ac_exeext &&
29545 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029546 ac_cv_func_alloca_works=yes
29547else
29548 echo "$as_me: failed program was:" >&5
29549sed 's/^/| /' conftest.$ac_ext >&5
29550
Reid Spencera773bd52006-08-04 18:18:08 +000029551 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029552fi
Reid Spencera773bd52006-08-04 18:18:08 +000029553
Scott Michel96dcd2b2007-12-05 21:24:02 +000029554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029555 conftest$ac_exeext conftest.$ac_ext
29556fi
Reid Spencera773bd52006-08-04 18:18:08 +000029557{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29558echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029559
29560if test $ac_cv_func_alloca_works = yes; then
29561
29562cat >>confdefs.h <<\_ACEOF
29563#define HAVE_ALLOCA 1
29564_ACEOF
29565
29566else
29567 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29568# that cause trouble. Some versions do not even contain alloca or
29569# contain a buggy version. If you still want to use their alloca,
29570# use ar to extract alloca.o from them instead of compiling alloca.c.
29571
Reid Spencera773bd52006-08-04 18:18:08 +000029572ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029573
29574cat >>confdefs.h <<\_ACEOF
29575#define C_ALLOCA 1
29576_ACEOF
29577
29578
Reid Spencera773bd52006-08-04 18:18:08 +000029579{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29580echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029581if test "${ac_cv_os_cray+set}" = set; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29583else
29584 cat >conftest.$ac_ext <<_ACEOF
29585/* confdefs.h. */
29586_ACEOF
29587cat confdefs.h >>conftest.$ac_ext
29588cat >>conftest.$ac_ext <<_ACEOF
29589/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000029590#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029591webecray
29592#else
29593wenotbecray
29594#endif
29595
29596_ACEOF
29597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29598 $EGREP "webecray" >/dev/null 2>&1; then
29599 ac_cv_os_cray=yes
29600else
29601 ac_cv_os_cray=no
29602fi
29603rm -f conftest*
29604
29605fi
Reid Spencera773bd52006-08-04 18:18:08 +000029606{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29607echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029608if test $ac_cv_os_cray = yes; then
29609 for ac_func in _getb67 GETB67 getb67; do
29610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029611{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29613if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029614 echo $ECHO_N "(cached) $ECHO_C" >&6
29615else
29616 cat >conftest.$ac_ext <<_ACEOF
29617/* confdefs.h. */
29618_ACEOF
29619cat confdefs.h >>conftest.$ac_ext
29620cat >>conftest.$ac_ext <<_ACEOF
29621/* end confdefs.h. */
29622/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29624#define $ac_func innocuous_$ac_func
29625
29626/* System header to define __stub macros and hopefully few prototypes,
29627 which can conflict with char $ac_func (); below.
29628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29629 <limits.h> exists even on freestanding compilers. */
29630
29631#ifdef __STDC__
29632# include <limits.h>
29633#else
29634# include <assert.h>
29635#endif
29636
29637#undef $ac_func
29638
Reid Spencera773bd52006-08-04 18:18:08 +000029639/* Override any GCC internal prototype to avoid an error.
29640 Use char because int might match the return type of a GCC
29641 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029642#ifdef __cplusplus
29643extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029644#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029645char $ac_func ();
29646/* The GNU C library defines this for functions which it implements
29647 to always fail with ENOSYS. Some functions are actually named
29648 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029649#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029650choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029651#endif
29652
29653int
29654main ()
29655{
Reid Spencera773bd52006-08-04 18:18:08 +000029656return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029657 ;
29658 return 0;
29659}
29660_ACEOF
29661rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029662if { (ac_try="$ac_link"
29663case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29666esac
29667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029669 ac_status=$?
29670 grep -v '^ *+' conftest.er1 >conftest.err
29671 rm -f conftest.er1
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029674 (exit $ac_status); } && {
29675 test -z "$ac_c_werror_flag" ||
29676 test ! -s conftest.err
29677 } && test -s conftest$ac_exeext &&
29678 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029679 eval "$as_ac_var=yes"
29680else
29681 echo "$as_me: failed program was:" >&5
29682sed 's/^/| /' conftest.$ac_ext >&5
29683
Reid Spencera773bd52006-08-04 18:18:08 +000029684 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029685fi
Reid Spencera773bd52006-08-04 18:18:08 +000029686
Scott Michel96dcd2b2007-12-05 21:24:02 +000029687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029688 conftest$ac_exeext conftest.$ac_ext
29689fi
Reid Spencera773bd52006-08-04 18:18:08 +000029690ac_res=`eval echo '${'$as_ac_var'}'`
29691 { echo "$as_me:$LINENO: result: $ac_res" >&5
29692echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029693if test `eval echo '${'$as_ac_var'}'` = yes; then
29694
29695cat >>confdefs.h <<_ACEOF
29696#define CRAY_STACKSEG_END $ac_func
29697_ACEOF
29698
29699 break
29700fi
29701
29702 done
29703fi
29704
Reid Spencera773bd52006-08-04 18:18:08 +000029705{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29706echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029707if test "${ac_cv_c_stack_direction+set}" = set; then
29708 echo $ECHO_N "(cached) $ECHO_C" >&6
29709else
29710 if test "$cross_compiling" = yes; then
29711 ac_cv_c_stack_direction=0
29712else
29713 cat >conftest.$ac_ext <<_ACEOF
29714/* confdefs.h. */
29715_ACEOF
29716cat confdefs.h >>conftest.$ac_ext
29717cat >>conftest.$ac_ext <<_ACEOF
29718/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000029719$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029720int
29721find_stack_direction ()
29722{
29723 static char *addr = 0;
29724 auto char dummy;
29725 if (addr == 0)
29726 {
29727 addr = &dummy;
29728 return find_stack_direction ();
29729 }
John Criswell0021c312004-02-13 21:57:29 +000029730 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029731 return (&dummy > addr) ? 1 : -1;
29732}
John Criswell0021c312004-02-13 21:57:29 +000029733
John Criswell0021c312004-02-13 21:57:29 +000029734int
29735main ()
29736{
Reid Spencera773bd52006-08-04 18:18:08 +000029737 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000029738}
29739_ACEOF
29740rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029741if { (ac_try="$ac_link"
29742case "(($ac_try" in
29743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29745esac
29746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000029748 ac_status=$?
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029751 { (case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29754esac
29755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000029757 ac_status=$?
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029760 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000029761else
29762 echo "$as_me: program exited with status $ac_status" >&5
29763echo "$as_me: failed program was:" >&5
29764sed 's/^/| /' conftest.$ac_ext >&5
29765
29766( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029767ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000029768fi
Reid Spencera773bd52006-08-04 18:18:08 +000029769rm -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 +000029770fi
Reid Spencera773bd52006-08-04 18:18:08 +000029771
29772
John Criswell0021c312004-02-13 21:57:29 +000029773fi
Reid Spencera773bd52006-08-04 18:18:08 +000029774{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29775echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029776
29777cat >>confdefs.h <<_ACEOF
29778#define STACK_DIRECTION $ac_cv_c_stack_direction
29779_ACEOF
29780
29781
John Criswell0021c312004-02-13 21:57:29 +000029782fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029783
29784
Reid Spencera773bd52006-08-04 18:18:08 +000029785{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29786echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029787if test "${ac_cv_func_rand48+set}" = set; then
29788 echo $ECHO_N "(cached) $ECHO_C" >&6
29789else
Reid Spencera773bd52006-08-04 18:18:08 +000029790 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029791ac_cpp='$CXXCPP $CPPFLAGS'
29792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29795
29796 cat >conftest.$ac_ext <<_ACEOF
29797/* confdefs.h. */
29798_ACEOF
29799cat confdefs.h >>conftest.$ac_ext
29800cat >>conftest.$ac_ext <<_ACEOF
29801/* end confdefs.h. */
29802#include <stdlib.h>
29803int
29804main ()
29805{
29806srand48(0);lrand48();drand48();
29807 ;
29808 return 0;
29809}
29810_ACEOF
29811rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029812if { (ac_try="$ac_compile"
29813case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29816esac
29817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029819 ac_status=$?
29820 grep -v '^ *+' conftest.er1 >conftest.err
29821 rm -f conftest.er1
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029824 (exit $ac_status); } && {
29825 test -z "$ac_cxx_werror_flag" ||
29826 test ! -s conftest.err
29827 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029828 ac_cv_func_rand48=yes
29829else
29830 echo "$as_me: failed program was:" >&5
29831sed 's/^/| /' conftest.$ac_ext >&5
29832
Reid Spencera773bd52006-08-04 18:18:08 +000029833 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029834fi
Reid Spencera773bd52006-08-04 18:18:08 +000029835
29836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029837 ac_ext=c
29838ac_cpp='$CPP $CPPFLAGS'
29839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29841ac_compiler_gnu=$ac_cv_c_compiler_gnu
29842
29843fi
Reid Spencera773bd52006-08-04 18:18:08 +000029844{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29845echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029846
29847if test "$ac_cv_func_rand48" = "yes" ; then
29848
29849cat >>confdefs.h <<\_ACEOF
29850#define HAVE_RAND48 1
29851_ACEOF
29852
29853fi
John Criswell0021c312004-02-13 21:57:29 +000029854
29855
Reid Spencera773bd52006-08-04 18:18:08 +000029856{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29857echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029858if test "${ac_cv_cxx_namespaces+set}" = set; then
29859 echo $ECHO_N "(cached) $ECHO_C" >&6
29860else
Reid Spencera773bd52006-08-04 18:18:08 +000029861 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000029862ac_cpp='$CXXCPP $CPPFLAGS'
29863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29866
29867 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029868/* confdefs.h. */
29869_ACEOF
29870cat confdefs.h >>conftest.$ac_ext
29871cat >>conftest.$ac_ext <<_ACEOF
29872/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029873namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000029874int
29875main ()
29876{
29877using namespace Outer::Inner; return i;
29878 ;
29879 return 0;
29880}
29881_ACEOF
29882rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029883if { (ac_try="$ac_compile"
29884case "(($ac_try" in
29885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29887esac
29888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029890 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029891 grep -v '^ *+' conftest.er1 >conftest.err
29892 rm -f conftest.er1
29893 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029895 (exit $ac_status); } && {
29896 test -z "$ac_cxx_werror_flag" ||
29897 test ! -s conftest.err
29898 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000029899 ac_cv_cxx_namespaces=yes
29900else
29901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029902sed 's/^/| /' conftest.$ac_ext >&5
29903
Reid Spencera773bd52006-08-04 18:18:08 +000029904 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000029905fi
Reid Spencera773bd52006-08-04 18:18:08 +000029906
29907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029908 ac_ext=c
29909ac_cpp='$CPP $CPPFLAGS'
29910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29912ac_compiler_gnu=$ac_cv_c_compiler_gnu
29913
29914
29915fi
Reid Spencera773bd52006-08-04 18:18:08 +000029916{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29917echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029918if test "$ac_cv_cxx_namespaces" = yes; then
29919
29920cat >>confdefs.h <<\_ACEOF
29921#define HAVE_NAMESPACES
29922_ACEOF
29923
29924fi
29925
Reid Spencera773bd52006-08-04 18:18:08 +000029926{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29927echo $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 +000029928if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029929 echo $ECHO_N "(cached) $ECHO_C" >&6
29930else
29931
Reid Spencera773bd52006-08-04 18:18:08 +000029932 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000029933ac_cpp='$CXXCPP $CPPFLAGS'
29934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29937
29938 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029939/* confdefs.h. */
29940_ACEOF
29941cat confdefs.h >>conftest.$ac_ext
29942cat >>conftest.$ac_ext <<_ACEOF
29943/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029944#include <ext/hash_map>
29945#ifdef HAVE_NAMESPACES
29946using namespace std;
29947#endif
John Criswell7a73b802003-06-30 21:59:07 +000029948int
29949main ()
29950{
Brian Gaeke90583492003-11-10 03:06:28 +000029951hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029952 ;
29953 return 0;
29954}
29955_ACEOF
29956rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029957if { (ac_try="$ac_compile"
29958case "(($ac_try" in
29959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29960 *) ac_try_echo=$ac_try;;
29961esac
29962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29963 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029964 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029965 grep -v '^ *+' conftest.er1 >conftest.err
29966 rm -f conftest.er1
29967 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029969 (exit $ac_status); } && {
29970 test -z "$ac_cxx_werror_flag" ||
29971 test ! -s conftest.err
29972 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000029973 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000029974else
29975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029976sed 's/^/| /' conftest.$ac_ext >&5
29977
Reid Spencera773bd52006-08-04 18:18:08 +000029978 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029979fi
Reid Spencera773bd52006-08-04 18:18:08 +000029980
29981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029982 ac_ext=c
29983ac_cpp='$CPP $CPPFLAGS'
29984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29986ac_compiler_gnu=$ac_cv_c_compiler_gnu
29987
John Criswell7a73b802003-06-30 21:59:07 +000029988fi
Reid Spencera773bd52006-08-04 18:18:08 +000029989{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29990echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000029991 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29992 then
John Criswell9f011862004-09-24 18:28:00 +000029993
29994cat >>confdefs.h <<\_ACEOF
29995#define HAVE_STD_EXT_HASH_MAP 1
29996_ACEOF
29997
29998 else
29999
30000cat >>confdefs.h <<\_ACEOF
30001#define HAVE_STD_EXT_HASH_MAP 0
30002_ACEOF
30003
Brian Gaeke90583492003-11-10 03:06:28 +000030004 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030005
Reid Spencera773bd52006-08-04 18:18:08 +000030006 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30007echo $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 +000030008if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30009 echo $ECHO_N "(cached) $ECHO_C" >&6
30010else
30011
Reid Spencera773bd52006-08-04 18:18:08 +000030012 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030013ac_cpp='$CXXCPP $CPPFLAGS'
30014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30017
30018 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030019/* confdefs.h. */
30020_ACEOF
30021cat confdefs.h >>conftest.$ac_ext
30022cat >>conftest.$ac_ext <<_ACEOF
30023/* end confdefs.h. */
30024#include <ext/hash_map>
30025#ifdef HAVE_NAMESPACES
30026using namespace __gnu_cxx;
30027#endif
30028int
30029main ()
30030{
30031hash_map<int,int> t;
30032 ;
30033 return 0;
30034}
30035_ACEOF
30036rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030037if { (ac_try="$ac_compile"
30038case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30041esac
30042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030044 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030045 grep -v '^ *+' conftest.er1 >conftest.err
30046 rm -f conftest.er1
30047 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030049 (exit $ac_status); } && {
30050 test -z "$ac_cxx_werror_flag" ||
30051 test ! -s conftest.err
30052 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030053 ac_cv_cxx_have_gnu_ext_hash_map=yes
30054else
30055 echo "$as_me: failed program was:" >&5
30056sed 's/^/| /' conftest.$ac_ext >&5
30057
Reid Spencera773bd52006-08-04 18:18:08 +000030058 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000030059fi
Reid Spencera773bd52006-08-04 18:18:08 +000030060
30061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030062 ac_ext=c
30063ac_cpp='$CPP $CPPFLAGS'
30064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30066ac_compiler_gnu=$ac_cv_c_compiler_gnu
30067
30068fi
Reid Spencera773bd52006-08-04 18:18:08 +000030069{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30070echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030071 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30072 then
John Criswell9f011862004-09-24 18:28:00 +000030073
30074cat >>confdefs.h <<\_ACEOF
30075#define HAVE_GNU_EXT_HASH_MAP 1
30076_ACEOF
30077
30078 else
30079
30080cat >>confdefs.h <<\_ACEOF
30081#define HAVE_GNU_EXT_HASH_MAP 0
30082_ACEOF
30083
Brian Gaeke90583492003-11-10 03:06:28 +000030084 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030085
Reid Spencera773bd52006-08-04 18:18:08 +000030086 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30087echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030088if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30089 echo $ECHO_N "(cached) $ECHO_C" >&6
30090else
John Criswell7a73b802003-06-30 21:59:07 +000030091
Reid Spencera773bd52006-08-04 18:18:08 +000030092 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030093ac_cpp='$CXXCPP $CPPFLAGS'
30094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30097
30098 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030099/* confdefs.h. */
30100_ACEOF
30101cat confdefs.h >>conftest.$ac_ext
30102cat >>conftest.$ac_ext <<_ACEOF
30103/* end confdefs.h. */
30104#include <hash_map>
30105int
30106main ()
30107{
30108hash_map<int,int> t;
30109 ;
30110 return 0;
30111}
30112_ACEOF
30113rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030114if { (ac_try="$ac_compile"
30115case "(($ac_try" in
30116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30117 *) ac_try_echo=$ac_try;;
30118esac
30119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30120 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030121 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030122 grep -v '^ *+' conftest.er1 >conftest.err
30123 rm -f conftest.er1
30124 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030126 (exit $ac_status); } && {
30127 test -z "$ac_cxx_werror_flag" ||
30128 test ! -s conftest.err
30129 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030130 ac_cv_cxx_have_global_hash_map=yes
30131else
30132 echo "$as_me: failed program was:" >&5
30133sed 's/^/| /' conftest.$ac_ext >&5
30134
Reid Spencera773bd52006-08-04 18:18:08 +000030135 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000030136fi
Reid Spencera773bd52006-08-04 18:18:08 +000030137
30138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030139 ac_ext=c
30140ac_cpp='$CPP $CPPFLAGS'
30141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30143ac_compiler_gnu=$ac_cv_c_compiler_gnu
30144
30145fi
Reid Spencera773bd52006-08-04 18:18:08 +000030146{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30147echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030148 if test "$ac_cv_cxx_have_global_hash_map" = yes
30149 then
John Criswell9f011862004-09-24 18:28:00 +000030150
30151cat >>confdefs.h <<\_ACEOF
30152#define HAVE_GLOBAL_HASH_MAP 1
30153_ACEOF
30154
30155 else
30156
30157cat >>confdefs.h <<\_ACEOF
30158#define HAVE_GLOBAL_HASH_MAP 0
30159_ACEOF
30160
Brian Gaeke90583492003-11-10 03:06:28 +000030161 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030162
Reid Spencera773bd52006-08-04 18:18:08 +000030163{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30164echo $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 +000030165if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000030166 echo $ECHO_N "(cached) $ECHO_C" >&6
30167else
30168
Reid Spencera773bd52006-08-04 18:18:08 +000030169 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030170ac_cpp='$CXXCPP $CPPFLAGS'
30171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30174
30175 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030176/* confdefs.h. */
30177_ACEOF
30178cat confdefs.h >>conftest.$ac_ext
30179cat >>conftest.$ac_ext <<_ACEOF
30180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030181#include <ext/hash_set>
30182#ifdef HAVE_NAMESPACES
30183using namespace std;
30184#endif
John Criswell7a73b802003-06-30 21:59:07 +000030185int
30186main ()
30187{
Brian Gaeke90583492003-11-10 03:06:28 +000030188hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000030189 ;
30190 return 0;
30191}
30192_ACEOF
30193rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030194if { (ac_try="$ac_compile"
30195case "(($ac_try" in
30196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197 *) ac_try_echo=$ac_try;;
30198esac
30199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030202 grep -v '^ *+' conftest.er1 >conftest.err
30203 rm -f conftest.er1
30204 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030206 (exit $ac_status); } && {
30207 test -z "$ac_cxx_werror_flag" ||
30208 test ! -s conftest.err
30209 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030210 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030211else
30212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030213sed 's/^/| /' conftest.$ac_ext >&5
30214
Reid Spencera773bd52006-08-04 18:18:08 +000030215 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030216fi
Reid Spencera773bd52006-08-04 18:18:08 +000030217
30218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030219 ac_ext=c
30220ac_cpp='$CPP $CPPFLAGS'
30221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30223ac_compiler_gnu=$ac_cv_c_compiler_gnu
30224
30225fi
Reid Spencera773bd52006-08-04 18:18:08 +000030226{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30227echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030228 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30229 then
John Criswell9f011862004-09-24 18:28:00 +000030230
30231cat >>confdefs.h <<\_ACEOF
30232#define HAVE_STD_EXT_HASH_SET 1
30233_ACEOF
30234
30235 else
30236
30237cat >>confdefs.h <<\_ACEOF
30238#define HAVE_STD_EXT_HASH_SET 0
30239_ACEOF
30240
Brian Gaeke90583492003-11-10 03:06:28 +000030241 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030242
Reid Spencera773bd52006-08-04 18:18:08 +000030243 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30244echo $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 +000030245if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30247else
30248
Reid Spencera773bd52006-08-04 18:18:08 +000030249 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030250ac_cpp='$CXXCPP $CPPFLAGS'
30251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30254
John Criswell7a73b802003-06-30 21:59:07 +000030255 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030256/* confdefs.h. */
30257_ACEOF
30258cat confdefs.h >>conftest.$ac_ext
30259cat >>conftest.$ac_ext <<_ACEOF
30260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030261#include <ext/hash_set>
30262#ifdef HAVE_NAMESPACES
30263using namespace __gnu_cxx;
30264#endif
John Criswell7a73b802003-06-30 21:59:07 +000030265int
30266main ()
30267{
Brian Gaeke90583492003-11-10 03:06:28 +000030268hash_set<int> t;
30269 ;
30270 return 0;
30271}
30272_ACEOF
30273rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030274if { (ac_try="$ac_compile"
30275case "(($ac_try" in
30276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277 *) ac_try_echo=$ac_try;;
30278esac
30279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030281 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030282 grep -v '^ *+' conftest.er1 >conftest.err
30283 rm -f conftest.er1
30284 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030286 (exit $ac_status); } && {
30287 test -z "$ac_cxx_werror_flag" ||
30288 test ! -s conftest.err
30289 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030290 ac_cv_cxx_have_gnu_ext_hash_set=yes
30291else
30292 echo "$as_me: failed program was:" >&5
30293sed 's/^/| /' conftest.$ac_ext >&5
30294
Reid Spencera773bd52006-08-04 18:18:08 +000030295 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000030296fi
Reid Spencera773bd52006-08-04 18:18:08 +000030297
30298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030299 ac_ext=c
30300ac_cpp='$CPP $CPPFLAGS'
30301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30303ac_compiler_gnu=$ac_cv_c_compiler_gnu
30304
30305fi
Reid Spencera773bd52006-08-04 18:18:08 +000030306{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30307echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030308 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30309 then
John Criswell9f011862004-09-24 18:28:00 +000030310
30311cat >>confdefs.h <<\_ACEOF
30312#define HAVE_GNU_EXT_HASH_SET 1
30313_ACEOF
30314
30315 else
30316
30317cat >>confdefs.h <<\_ACEOF
30318#define HAVE_GNU_EXT_HASH_SET 0
30319_ACEOF
30320
Brian Gaeke90583492003-11-10 03:06:28 +000030321 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030322
Reid Spencera773bd52006-08-04 18:18:08 +000030323 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30324echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030325if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30326 echo $ECHO_N "(cached) $ECHO_C" >&6
30327else
30328
Reid Spencera773bd52006-08-04 18:18:08 +000030329 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030330ac_cpp='$CXXCPP $CPPFLAGS'
30331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30334
30335 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030336/* confdefs.h. */
30337_ACEOF
30338cat confdefs.h >>conftest.$ac_ext
30339cat >>conftest.$ac_ext <<_ACEOF
30340/* end confdefs.h. */
30341#include <hash_set>
30342int
30343main ()
30344{
John Criswell7a73b802003-06-30 21:59:07 +000030345hash_set<int> t; return 0;
30346 ;
30347 return 0;
30348}
30349_ACEOF
30350rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030351if { (ac_try="$ac_compile"
30352case "(($ac_try" in
30353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354 *) ac_try_echo=$ac_try;;
30355esac
30356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030358 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030359 grep -v '^ *+' conftest.er1 >conftest.err
30360 rm -f conftest.er1
30361 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030363 (exit $ac_status); } && {
30364 test -z "$ac_cxx_werror_flag" ||
30365 test ! -s conftest.err
30366 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030367 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030368else
30369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030370sed 's/^/| /' conftest.$ac_ext >&5
30371
Reid Spencera773bd52006-08-04 18:18:08 +000030372 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030373fi
Reid Spencera773bd52006-08-04 18:18:08 +000030374
30375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030376 ac_ext=c
30377ac_cpp='$CPP $CPPFLAGS'
30378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30380ac_compiler_gnu=$ac_cv_c_compiler_gnu
30381
John Criswell7a73b802003-06-30 21:59:07 +000030382fi
Reid Spencera773bd52006-08-04 18:18:08 +000030383{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30384echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030385 if test "$ac_cv_cxx_have_global_hash_set" = yes
30386 then
John Criswell9f011862004-09-24 18:28:00 +000030387
30388cat >>confdefs.h <<\_ACEOF
30389#define HAVE_GLOBAL_HASH_SET 1
30390_ACEOF
30391
30392 else
30393
30394cat >>confdefs.h <<\_ACEOF
30395#define HAVE_GLOBAL_HASH_SET 0
30396_ACEOF
30397
Brian Gaeke90583492003-11-10 03:06:28 +000030398 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030399
Reid Spencera773bd52006-08-04 18:18:08 +000030400{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30401echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030402if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30403 echo $ECHO_N "(cached) $ECHO_C" >&6
30404else
30405
Reid Spencera773bd52006-08-04 18:18:08 +000030406 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030407ac_cpp='$CXXCPP $CPPFLAGS'
30408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30411
30412 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030413/* confdefs.h. */
30414_ACEOF
30415cat confdefs.h >>conftest.$ac_ext
30416cat >>conftest.$ac_ext <<_ACEOF
30417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030418#include <iterator>
30419#ifdef HAVE_NAMESPACES
30420using namespace std;
30421#endif
John Criswell7a73b802003-06-30 21:59:07 +000030422int
30423main ()
30424{
30425iterator<int,int,int> t; return 0;
30426 ;
30427 return 0;
30428}
30429_ACEOF
30430rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030431if { (ac_try="$ac_compile"
30432case "(($ac_try" in
30433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434 *) ac_try_echo=$ac_try;;
30435esac
30436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030438 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030439 grep -v '^ *+' conftest.er1 >conftest.err
30440 rm -f conftest.er1
30441 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030443 (exit $ac_status); } && {
30444 test -z "$ac_cxx_werror_flag" ||
30445 test ! -s conftest.err
30446 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030447 ac_cv_cxx_have_std_iterator=yes
30448else
30449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030450sed 's/^/| /' conftest.$ac_ext >&5
30451
Reid Spencera773bd52006-08-04 18:18:08 +000030452 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030453fi
Reid Spencera773bd52006-08-04 18:18:08 +000030454
30455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030456 ac_ext=c
30457ac_cpp='$CPP $CPPFLAGS'
30458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30460ac_compiler_gnu=$ac_cv_c_compiler_gnu
30461
30462
30463fi
Reid Spencera773bd52006-08-04 18:18:08 +000030464{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30465echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030466if test "$ac_cv_cxx_have_std_iterator" = yes
30467then
John Criswell40468462004-09-24 21:19:06 +000030468
30469cat >>confdefs.h <<\_ACEOF
30470#define HAVE_STD_ITERATOR 1
30471_ACEOF
30472
30473else
30474
30475cat >>confdefs.h <<\_ACEOF
30476#define HAVE_STD_ITERATOR 0
30477_ACEOF
30478
John Criswell7a73b802003-06-30 21:59:07 +000030479fi
30480
Reid Spencera773bd52006-08-04 18:18:08 +000030481{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30482echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030483if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30484 echo $ECHO_N "(cached) $ECHO_C" >&6
30485else
30486
Reid Spencera773bd52006-08-04 18:18:08 +000030487 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030488ac_cpp='$CXXCPP $CPPFLAGS'
30489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30492
30493 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030494/* confdefs.h. */
30495_ACEOF
30496cat confdefs.h >>conftest.$ac_ext
30497cat >>conftest.$ac_ext <<_ACEOF
30498/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030499#include <iterator>
30500#ifdef HAVE_NAMESPACES
30501using namespace std;
30502#endif
John Criswell7a73b802003-06-30 21:59:07 +000030503int
30504main ()
30505{
John Criswellc78022e2003-07-29 19:11:58 +000030506bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030507 ;
30508 return 0;
30509}
30510_ACEOF
30511rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030512if { (ac_try="$ac_compile"
30513case "(($ac_try" in
30514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515 *) ac_try_echo=$ac_try;;
30516esac
30517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030520 grep -v '^ *+' conftest.er1 >conftest.err
30521 rm -f conftest.er1
30522 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030524 (exit $ac_status); } && {
30525 test -z "$ac_cxx_werror_flag" ||
30526 test ! -s conftest.err
30527 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030528 ac_cv_cxx_have_bi_iterator=yes
30529else
30530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030531sed 's/^/| /' conftest.$ac_ext >&5
30532
Reid Spencera773bd52006-08-04 18:18:08 +000030533 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030534fi
Reid Spencera773bd52006-08-04 18:18:08 +000030535
30536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030537 ac_ext=c
30538ac_cpp='$CPP $CPPFLAGS'
30539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30541ac_compiler_gnu=$ac_cv_c_compiler_gnu
30542
30543
30544fi
Reid Spencera773bd52006-08-04 18:18:08 +000030545{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30546echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030547if test "$ac_cv_cxx_have_bi_iterator" = yes
30548then
John Criswell40468462004-09-24 21:19:06 +000030549
30550cat >>confdefs.h <<\_ACEOF
30551#define HAVE_BI_ITERATOR 1
30552_ACEOF
30553
30554else
30555
30556cat >>confdefs.h <<\_ACEOF
30557#define HAVE_BI_ITERATOR 0
30558_ACEOF
30559
John Criswell7a73b802003-06-30 21:59:07 +000030560fi
30561
Reid Spencera773bd52006-08-04 18:18:08 +000030562{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30563echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030564if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30566else
30567
Reid Spencera773bd52006-08-04 18:18:08 +000030568 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030569ac_cpp='$CXXCPP $CPPFLAGS'
30570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30573
30574 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030575/* confdefs.h. */
30576_ACEOF
30577cat confdefs.h >>conftest.$ac_ext
30578cat >>conftest.$ac_ext <<_ACEOF
30579/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030580#include <iterator>
30581#ifdef HAVE_NAMESPACES
30582using namespace std;
30583#endif
John Criswell7a73b802003-06-30 21:59:07 +000030584int
30585main ()
30586{
John Criswellc78022e2003-07-29 19:11:58 +000030587forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030588 ;
30589 return 0;
30590}
30591_ACEOF
30592rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030593if { (ac_try="$ac_compile"
30594case "(($ac_try" in
30595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596 *) ac_try_echo=$ac_try;;
30597esac
30598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030600 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030601 grep -v '^ *+' conftest.er1 >conftest.err
30602 rm -f conftest.er1
30603 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030605 (exit $ac_status); } && {
30606 test -z "$ac_cxx_werror_flag" ||
30607 test ! -s conftest.err
30608 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030609 ac_cv_cxx_have_fwd_iterator=yes
30610else
30611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030612sed 's/^/| /' conftest.$ac_ext >&5
30613
Reid Spencera773bd52006-08-04 18:18:08 +000030614 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030615fi
Reid Spencera773bd52006-08-04 18:18:08 +000030616
30617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030618 ac_ext=c
30619ac_cpp='$CPP $CPPFLAGS'
30620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30622ac_compiler_gnu=$ac_cv_c_compiler_gnu
30623
30624
30625fi
Reid Spencera773bd52006-08-04 18:18:08 +000030626{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30627echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030628if test "$ac_cv_cxx_have_fwd_iterator" = yes
30629then
John Criswell40468462004-09-24 21:19:06 +000030630
30631cat >>confdefs.h <<\_ACEOF
30632#define HAVE_FWD_ITERATOR 1
30633_ACEOF
30634
30635else
30636
30637cat >>confdefs.h <<\_ACEOF
30638#define HAVE_FWD_ITERATOR 0
30639_ACEOF
30640
John Criswell7a73b802003-06-30 21:59:07 +000030641fi
30642
30643
Reid Spencera773bd52006-08-04 18:18:08 +000030644{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30645echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030646if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30648else
Reid Spencera773bd52006-08-04 18:18:08 +000030649 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030650ac_cpp='$CXXCPP $CPPFLAGS'
30651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30654
Reid Spencerabec8f92004-10-27 23:03:44 +000030655 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030656/* confdefs.h. */
30657_ACEOF
30658cat confdefs.h >>conftest.$ac_ext
30659cat >>conftest.$ac_ext <<_ACEOF
30660/* end confdefs.h. */
30661#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030662int
30663main ()
30664{
30665float f; isnan(f);
30666 ;
30667 return 0;
30668}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030669_ACEOF
30670rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030671if { (ac_try="$ac_compile"
30672case "(($ac_try" in
30673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30674 *) ac_try_echo=$ac_try;;
30675esac
30676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030678 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030679 grep -v '^ *+' conftest.er1 >conftest.err
30680 rm -f conftest.er1
30681 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030683 (exit $ac_status); } && {
30684 test -z "$ac_cxx_werror_flag" ||
30685 test ! -s conftest.err
30686 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030687 ac_cv_func_isnan_in_math_h=yes
30688else
30689 echo "$as_me: failed program was:" >&5
30690sed 's/^/| /' conftest.$ac_ext >&5
30691
Reid Spencera773bd52006-08-04 18:18:08 +000030692 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030693fi
Reid Spencera773bd52006-08-04 18:18:08 +000030694
30695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030696 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030697ac_cpp='$CPP $CPPFLAGS'
30698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30700ac_compiler_gnu=$ac_cv_c_compiler_gnu
30701
30702fi
Reid Spencera773bd52006-08-04 18:18:08 +000030703{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30704echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030705
30706
30707if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030708
30709cat >>confdefs.h <<\_ACEOF
30710#define HAVE_ISNAN_IN_MATH_H 1
30711_ACEOF
30712
Reid Spencerabec8f92004-10-27 23:03:44 +000030713fi
30714
Reid Spencera773bd52006-08-04 18:18:08 +000030715{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30716echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030717if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30718 echo $ECHO_N "(cached) $ECHO_C" >&6
30719else
Reid Spencera773bd52006-08-04 18:18:08 +000030720 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030721ac_cpp='$CXXCPP $CPPFLAGS'
30722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30725
Reid Spencerabec8f92004-10-27 23:03:44 +000030726 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030727/* confdefs.h. */
30728_ACEOF
30729cat confdefs.h >>conftest.$ac_ext
30730cat >>conftest.$ac_ext <<_ACEOF
30731/* end confdefs.h. */
30732#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030733int
30734main ()
30735{
30736float f; isnan(f);
30737 ;
30738 return 0;
30739}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030740_ACEOF
30741rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030742if { (ac_try="$ac_compile"
30743case "(($ac_try" in
30744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30745 *) ac_try_echo=$ac_try;;
30746esac
30747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30748 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030749 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030750 grep -v '^ *+' conftest.er1 >conftest.err
30751 rm -f conftest.er1
30752 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030754 (exit $ac_status); } && {
30755 test -z "$ac_cxx_werror_flag" ||
30756 test ! -s conftest.err
30757 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030758 ac_cv_func_isnan_in_cmath=yes
30759else
30760 echo "$as_me: failed program was:" >&5
30761sed 's/^/| /' conftest.$ac_ext >&5
30762
Reid Spencera773bd52006-08-04 18:18:08 +000030763 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030764fi
Reid Spencera773bd52006-08-04 18:18:08 +000030765
30766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030767 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030768ac_cpp='$CPP $CPPFLAGS'
30769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30771ac_compiler_gnu=$ac_cv_c_compiler_gnu
30772
30773fi
Reid Spencera773bd52006-08-04 18:18:08 +000030774{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30775echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030776
30777if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030778
30779cat >>confdefs.h <<\_ACEOF
30780#define HAVE_ISNAN_IN_CMATH 1
30781_ACEOF
30782
Reid Spencerabec8f92004-10-27 23:03:44 +000030783fi
30784
Reid Spencera773bd52006-08-04 18:18:08 +000030785{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30786echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030787if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30788 echo $ECHO_N "(cached) $ECHO_C" >&6
30789else
Reid Spencera773bd52006-08-04 18:18:08 +000030790 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030791ac_cpp='$CXXCPP $CPPFLAGS'
30792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30795
Reid Spencerabec8f92004-10-27 23:03:44 +000030796 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030797/* confdefs.h. */
30798_ACEOF
30799cat confdefs.h >>conftest.$ac_ext
30800cat >>conftest.$ac_ext <<_ACEOF
30801/* end confdefs.h. */
30802#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030803int
30804main ()
30805{
30806float f; std::isnan(f);
30807 ;
30808 return 0;
30809}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030810_ACEOF
30811rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030812if { (ac_try="$ac_compile"
30813case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30816esac
30817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030820 grep -v '^ *+' conftest.er1 >conftest.err
30821 rm -f conftest.er1
30822 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030824 (exit $ac_status); } && {
30825 test -z "$ac_cxx_werror_flag" ||
30826 test ! -s conftest.err
30827 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030828 ac_cv_func_std_isnan_in_cmath=yes
30829else
30830 echo "$as_me: failed program was:" >&5
30831sed 's/^/| /' conftest.$ac_ext >&5
30832
Reid Spencera773bd52006-08-04 18:18:08 +000030833 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030834fi
Reid Spencera773bd52006-08-04 18:18:08 +000030835
30836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030837 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030838ac_cpp='$CPP $CPPFLAGS'
30839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30841ac_compiler_gnu=$ac_cv_c_compiler_gnu
30842
30843fi
Reid Spencera773bd52006-08-04 18:18:08 +000030844{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30845echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030846
30847if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030848
30849cat >>confdefs.h <<\_ACEOF
30850#define HAVE_STD_ISNAN_IN_CMATH 1
30851_ACEOF
30852
Reid Spencerabec8f92004-10-27 23:03:44 +000030853fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030854
30855
Reid Spencera773bd52006-08-04 18:18:08 +000030856{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30857echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030858if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30859 echo $ECHO_N "(cached) $ECHO_C" >&6
30860else
Reid Spencera773bd52006-08-04 18:18:08 +000030861 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000030862ac_cpp='$CXXCPP $CPPFLAGS'
30863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30866
Reid Spencerabec8f92004-10-27 23:03:44 +000030867 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030868/* confdefs.h. */
30869_ACEOF
30870cat confdefs.h >>conftest.$ac_ext
30871cat >>conftest.$ac_ext <<_ACEOF
30872/* end confdefs.h. */
30873#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030874int
30875main ()
30876{
30877float f; isinf(f);
30878 ;
30879 return 0;
30880}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030881_ACEOF
30882rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030883if { (ac_try="$ac_compile"
30884case "(($ac_try" in
30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30887esac
30888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030890 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030891 grep -v '^ *+' conftest.er1 >conftest.err
30892 rm -f conftest.er1
30893 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030895 (exit $ac_status); } && {
30896 test -z "$ac_cxx_werror_flag" ||
30897 test ! -s conftest.err
30898 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030899 ac_cv_func_isinf_in_math_h=yes
30900else
30901 echo "$as_me: failed program was:" >&5
30902sed 's/^/| /' conftest.$ac_ext >&5
30903
Reid Spencera773bd52006-08-04 18:18:08 +000030904 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000030905fi
Reid Spencera773bd52006-08-04 18:18:08 +000030906
30907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030908 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030909ac_cpp='$CPP $CPPFLAGS'
30910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30912ac_compiler_gnu=$ac_cv_c_compiler_gnu
30913
30914fi
Reid Spencera773bd52006-08-04 18:18:08 +000030915{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30916echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030917
30918if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030919
30920cat >>confdefs.h <<\_ACEOF
30921#define HAVE_ISINF_IN_MATH_H 1
30922_ACEOF
30923
Reid Spencerabec8f92004-10-27 23:03:44 +000030924fi
30925
Reid Spencera773bd52006-08-04 18:18:08 +000030926{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30927echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030928if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30929 echo $ECHO_N "(cached) $ECHO_C" >&6
30930else
Reid Spencera773bd52006-08-04 18:18:08 +000030931 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000030932ac_cpp='$CXXCPP $CPPFLAGS'
30933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30936
Reid Spencerabec8f92004-10-27 23:03:44 +000030937 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030938/* confdefs.h. */
30939_ACEOF
30940cat confdefs.h >>conftest.$ac_ext
30941cat >>conftest.$ac_ext <<_ACEOF
30942/* end confdefs.h. */
30943#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030944int
30945main ()
30946{
30947float f; isinf(f);
30948 ;
30949 return 0;
30950}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030951_ACEOF
30952rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030953if { (ac_try="$ac_compile"
30954case "(($ac_try" in
30955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956 *) ac_try_echo=$ac_try;;
30957esac
30958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30959 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030960 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030961 grep -v '^ *+' conftest.er1 >conftest.err
30962 rm -f conftest.er1
30963 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030965 (exit $ac_status); } && {
30966 test -z "$ac_cxx_werror_flag" ||
30967 test ! -s conftest.err
30968 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030969 ac_cv_func_isinf_in_cmath=yes
30970else
30971 echo "$as_me: failed program was:" >&5
30972sed 's/^/| /' conftest.$ac_ext >&5
30973
Reid Spencera773bd52006-08-04 18:18:08 +000030974 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000030975fi
Reid Spencera773bd52006-08-04 18:18:08 +000030976
30977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030978 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030979ac_cpp='$CPP $CPPFLAGS'
30980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30982ac_compiler_gnu=$ac_cv_c_compiler_gnu
30983
30984fi
Reid Spencera773bd52006-08-04 18:18:08 +000030985{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30986echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030987
30988if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030989
30990cat >>confdefs.h <<\_ACEOF
30991#define HAVE_ISINF_IN_CMATH 1
30992_ACEOF
30993
Reid Spencerabec8f92004-10-27 23:03:44 +000030994fi
30995
Reid Spencera773bd52006-08-04 18:18:08 +000030996{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30997echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030998if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30999 echo $ECHO_N "(cached) $ECHO_C" >&6
31000else
Reid Spencera773bd52006-08-04 18:18:08 +000031001 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000031002ac_cpp='$CXXCPP $CPPFLAGS'
31003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31006
Reid Spencerabec8f92004-10-27 23:03:44 +000031007 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000031008/* confdefs.h. */
31009_ACEOF
31010cat confdefs.h >>conftest.$ac_ext
31011cat >>conftest.$ac_ext <<_ACEOF
31012/* end confdefs.h. */
31013#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031014int
31015main ()
31016{
31017float f; std::isinf(f)}
31018 ;
31019 return 0;
31020}
Brian Gaeke52a551d2004-07-21 03:14:12 +000031021_ACEOF
31022rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031023if { (ac_try="$ac_compile"
31024case "(($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_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000031030 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031031 grep -v '^ *+' conftest.er1 >conftest.err
31032 rm -f conftest.er1
31033 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000031034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031035 (exit $ac_status); } && {
31036 test -z "$ac_cxx_werror_flag" ||
31037 test ! -s conftest.err
31038 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031039 ac_cv_func_std_isinf_in_cmath=yes
31040else
31041 echo "$as_me: failed program was:" >&5
31042sed 's/^/| /' conftest.$ac_ext >&5
31043
Reid Spencera773bd52006-08-04 18:18:08 +000031044 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000031045fi
Reid Spencera773bd52006-08-04 18:18:08 +000031046
31047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031048 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000031049ac_cpp='$CPP $CPPFLAGS'
31050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31052ac_compiler_gnu=$ac_cv_c_compiler_gnu
31053
31054fi
Reid Spencera773bd52006-08-04 18:18:08 +000031055{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31056echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031057
31058if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031059
31060cat >>confdefs.h <<\_ACEOF
31061#define HAVE_STD_ISINF_IN_CMATH 1
31062_ACEOF
31063
Reid Spencerabec8f92004-10-27 23:03:44 +000031064fi
31065
Reid Spencera773bd52006-08-04 18:18:08 +000031066{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31067echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000031068if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31069 echo $ECHO_N "(cached) $ECHO_C" >&6
31070else
Reid Spencera773bd52006-08-04 18:18:08 +000031071 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000031072ac_cpp='$CXXCPP $CPPFLAGS'
31073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31076
Reid Spencerabec8f92004-10-27 23:03:44 +000031077 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000031078/* confdefs.h. */
31079_ACEOF
31080cat confdefs.h >>conftest.$ac_ext
31081cat >>conftest.$ac_ext <<_ACEOF
31082/* end confdefs.h. */
31083#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031084int
31085main ()
31086{
31087float f; finite(f);
31088 ;
31089 return 0;
31090}
Brian Gaeked59a6472004-07-21 03:33:58 +000031091_ACEOF
31092rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031093if { (ac_try="$ac_compile"
31094case "(($ac_try" in
31095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096 *) ac_try_echo=$ac_try;;
31097esac
31098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000031100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031101 grep -v '^ *+' conftest.er1 >conftest.err
31102 rm -f conftest.er1
31103 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000031104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031105 (exit $ac_status); } && {
31106 test -z "$ac_cxx_werror_flag" ||
31107 test ! -s conftest.err
31108 } && test -s conftest.$ac_objext; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031109 ac_cv_func_finite_in_ieeefp_h=yes
31110else
31111 echo "$as_me: failed program was:" >&5
31112sed 's/^/| /' conftest.$ac_ext >&5
31113
Reid Spencera773bd52006-08-04 18:18:08 +000031114 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000031115fi
Reid Spencera773bd52006-08-04 18:18:08 +000031116
31117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031118 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000031119ac_cpp='$CPP $CPPFLAGS'
31120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31122ac_compiler_gnu=$ac_cv_c_compiler_gnu
31123
31124fi
Reid Spencera773bd52006-08-04 18:18:08 +000031125{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31126echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031127
Brian Gaeke6802b552004-10-28 05:06:45 +000031128if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031129
31130cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000031131#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000031132_ACEOF
31133
Reid Spencerabec8f92004-10-27 23:03:44 +000031134fi
31135
31136
31137
Reid Spencer30fe5262007-01-20 07:48:49 +000031138if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000031139
31140
31141for ac_header in stdlib.h unistd.h
31142do
31143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031148 echo $ECHO_N "(cached) $ECHO_C" >&6
31149fi
Reid Spencera773bd52006-08-04 18:18:08 +000031150ac_res=`eval echo '${'$as_ac_Header'}'`
31151 { echo "$as_me:$LINENO: result: $ac_res" >&5
31152echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031153else
31154 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000031155{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031157cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031158/* confdefs.h. */
31159_ACEOF
31160cat confdefs.h >>conftest.$ac_ext
31161cat >>conftest.$ac_ext <<_ACEOF
31162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031163$ac_includes_default
31164#include <$ac_header>
31165_ACEOF
31166rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031167if { (ac_try="$ac_compile"
31168case "(($ac_try" in
31169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170 *) ac_try_echo=$ac_try;;
31171esac
31172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031174 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031175 grep -v '^ *+' conftest.er1 >conftest.err
31176 rm -f conftest.er1
31177 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031179 (exit $ac_status); } && {
31180 test -z "$ac_c_werror_flag" ||
31181 test ! -s conftest.err
31182 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000031183 ac_header_compiler=yes
31184else
31185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031186sed 's/^/| /' conftest.$ac_ext >&5
31187
Reid Spencera773bd52006-08-04 18:18:08 +000031188 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000031189fi
Reid Spencera773bd52006-08-04 18:18:08 +000031190
31191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31192{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31193echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031194
31195# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000031196{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031198cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031199/* confdefs.h. */
31200_ACEOF
31201cat confdefs.h >>conftest.$ac_ext
31202cat >>conftest.$ac_ext <<_ACEOF
31203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031204#include <$ac_header>
31205_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031206if { (ac_try="$ac_cpp conftest.$ac_ext"
31207case "(($ac_try" in
31208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209 *) ac_try_echo=$ac_try;;
31210esac
31211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031213 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000031214 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000031215 rm -f conftest.er1
31216 cat conftest.err >&5
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031218 (exit $ac_status); } >/dev/null && {
31219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31220 test ! -s conftest.err
31221 }; then
John Criswell7a73b802003-06-30 21:59:07 +000031222 ac_header_preproc=yes
31223else
31224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031225sed 's/^/| /' conftest.$ac_ext >&5
31226
John Criswell7a73b802003-06-30 21:59:07 +000031227 ac_header_preproc=no
31228fi
Reid Spencera773bd52006-08-04 18:18:08 +000031229
John Criswell7a73b802003-06-30 21:59:07 +000031230rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000031231{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31232echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031233
31234# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31236 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000031237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31240echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31241 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000031242 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031243 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000031244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31245echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31247echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31249echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31251echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000031252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31253echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31255echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000031256 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000031257## ----------------------------------- ##
31258## Report this to llvmbugs@cs.uiuc.edu ##
31259## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000031260_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000031261 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000031262 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031263esac
Reid Spencera773bd52006-08-04 18:18:08 +000031264{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031267 echo $ECHO_N "(cached) $ECHO_C" >&6
31268else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031269 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000031270fi
Reid Spencera773bd52006-08-04 18:18:08 +000031271ac_res=`eval echo '${'$as_ac_Header'}'`
31272 { echo "$as_me:$LINENO: result: $ac_res" >&5
31273echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031274
31275fi
31276if test `eval echo '${'$as_ac_Header'}'` = yes; then
31277 cat >>confdefs.h <<_ACEOF
31278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31279_ACEOF
31280
31281fi
31282
31283done
31284
31285
31286for ac_func in getpagesize
31287do
31288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031289{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31291if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031292 echo $ECHO_N "(cached) $ECHO_C" >&6
31293else
31294 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031295/* confdefs.h. */
31296_ACEOF
31297cat confdefs.h >>conftest.$ac_ext
31298cat >>conftest.$ac_ext <<_ACEOF
31299/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31302#define $ac_func innocuous_$ac_func
31303
John Criswell7a73b802003-06-30 21:59:07 +000031304/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000031305 which can conflict with char $ac_func (); below.
31306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31307 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031308
John Criswell0c38eaf2003-09-10 15:17:25 +000031309#ifdef __STDC__
31310# include <limits.h>
31311#else
31312# include <assert.h>
31313#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000031314
31315#undef $ac_func
31316
Reid Spencera773bd52006-08-04 18:18:08 +000031317/* Override any GCC internal prototype to avoid an error.
31318 Use char because int might match the return type of a GCC
31319 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000031320#ifdef __cplusplus
31321extern "C"
31322#endif
John Criswell7a73b802003-06-30 21:59:07 +000031323char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031324/* The GNU C library defines this for functions which it implements
31325 to always fail with ENOSYS. Some functions are actually named
31326 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031327#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000031328choke me
John Criswell7a73b802003-06-30 21:59:07 +000031329#endif
31330
John Criswell0c38eaf2003-09-10 15:17:25 +000031331int
31332main ()
31333{
Reid Spencera773bd52006-08-04 18:18:08 +000031334return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031335 ;
31336 return 0;
31337}
31338_ACEOF
31339rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031340if { (ac_try="$ac_link"
31341case "(($ac_try" in
31342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343 *) ac_try_echo=$ac_try;;
31344esac
31345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031348 grep -v '^ *+' conftest.er1 >conftest.err
31349 rm -f conftest.er1
31350 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031352 (exit $ac_status); } && {
31353 test -z "$ac_c_werror_flag" ||
31354 test ! -s conftest.err
31355 } && test -s conftest$ac_exeext &&
31356 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000031357 eval "$as_ac_var=yes"
31358else
31359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031360sed 's/^/| /' conftest.$ac_ext >&5
31361
Reid Spencera773bd52006-08-04 18:18:08 +000031362 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031363fi
Reid Spencera773bd52006-08-04 18:18:08 +000031364
Scott Michel96dcd2b2007-12-05 21:24:02 +000031365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031366 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031367fi
Reid Spencera773bd52006-08-04 18:18:08 +000031368ac_res=`eval echo '${'$as_ac_var'}'`
31369 { echo "$as_me:$LINENO: result: $ac_res" >&5
31370echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031371if test `eval echo '${'$as_ac_var'}'` = yes; then
31372 cat >>confdefs.h <<_ACEOF
31373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31374_ACEOF
31375
31376fi
31377done
31378
Reid Spencera773bd52006-08-04 18:18:08 +000031379{ echo "$as_me:$LINENO: checking for working mmap" >&5
31380echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031381if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31382 echo $ECHO_N "(cached) $ECHO_C" >&6
31383else
31384 if test "$cross_compiling" = yes; then
31385 ac_cv_func_mmap_fixed_mapped=no
31386else
31387 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031388/* confdefs.h. */
31389_ACEOF
31390cat confdefs.h >>conftest.$ac_ext
31391cat >>conftest.$ac_ext <<_ACEOF
31392/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031393$ac_includes_default
31394/* malloc might have been renamed as rpl_malloc. */
31395#undef malloc
31396
31397/* Thanks to Mike Haertel and Jim Avera for this test.
31398 Here is a matrix of mmap possibilities:
31399 mmap private not fixed
31400 mmap private fixed at somewhere currently unmapped
31401 mmap private fixed at somewhere already mapped
31402 mmap shared not fixed
31403 mmap shared fixed at somewhere currently unmapped
31404 mmap shared fixed at somewhere already mapped
31405 For private mappings, we should verify that changes cannot be read()
31406 back from the file, nor mmap's back from the file at a different
31407 address. (There have been systems where private was not correctly
31408 implemented like the infamous i386 svr4.0, and systems where the
31409 VM page cache was not coherent with the file system buffer cache
31410 like early versions of FreeBSD and possibly contemporary NetBSD.)
31411 For shared mappings, we should conversely verify that changes get
31412 propagated back to all the places they're supposed to be.
31413
31414 Grep wants private fixed already mapped.
31415 The main things grep needs to know about mmap are:
31416 * does it exist and is it safe to write into the mmap'd area
31417 * how to use it (BSD variants) */
31418
31419#include <fcntl.h>
31420#include <sys/mman.h>
31421
Scott Michel96dcd2b2007-12-05 21:24:02 +000031422#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000031423char *malloc ();
31424#endif
31425
31426/* This mess was copied from the GNU getpagesize.h. */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031427#ifndef HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000031428/* Assume that all systems that can run configure have sys/param.h. */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031429# ifndef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031430# define HAVE_SYS_PARAM_H 1
31431# endif
31432
31433# ifdef _SC_PAGESIZE
31434# define getpagesize() sysconf(_SC_PAGESIZE)
31435# else /* no _SC_PAGESIZE */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031436# ifdef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031437# include <sys/param.h>
31438# ifdef EXEC_PAGESIZE
31439# define getpagesize() EXEC_PAGESIZE
31440# else /* no EXEC_PAGESIZE */
31441# ifdef NBPG
31442# define getpagesize() NBPG * CLSIZE
31443# ifndef CLSIZE
31444# define CLSIZE 1
31445# endif /* no CLSIZE */
31446# else /* no NBPG */
31447# ifdef NBPC
31448# define getpagesize() NBPC
31449# else /* no NBPC */
31450# ifdef PAGESIZE
31451# define getpagesize() PAGESIZE
31452# endif /* PAGESIZE */
31453# endif /* no NBPC */
31454# endif /* no NBPG */
31455# endif /* no EXEC_PAGESIZE */
31456# else /* no HAVE_SYS_PARAM_H */
31457# define getpagesize() 8192 /* punt totally */
31458# endif /* no HAVE_SYS_PARAM_H */
31459# endif /* no _SC_PAGESIZE */
31460
31461#endif /* no HAVE_GETPAGESIZE */
31462
31463int
31464main ()
31465{
31466 char *data, *data2, *data3;
31467 int i, pagesize;
31468 int fd;
31469
31470 pagesize = getpagesize ();
31471
31472 /* First, make a file with some known garbage in it. */
31473 data = (char *) malloc (pagesize);
31474 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000031475 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031476 for (i = 0; i < pagesize; ++i)
31477 *(data + i) = rand ();
31478 umask (0);
31479 fd = creat ("conftest.mmap", 0600);
31480 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000031481 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031482 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000031483 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031484 close (fd);
31485
31486 /* Next, try to mmap the file at a fixed address which already has
31487 something else allocated at it. If we can, also make sure that
31488 we see the same garbage. */
31489 fd = open ("conftest.mmap", O_RDWR);
31490 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000031491 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031492 data2 = (char *) malloc (2 * pagesize);
31493 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000031494 return 1;
31495 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000031496 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000031497 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000031498 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031499 for (i = 0; i < pagesize; ++i)
31500 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000031501 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031502
31503 /* Finally, make sure that changes to the mapped area do not
31504 percolate back to the file as seen by read(). (This is a bug on
31505 some variants of i386 svr4.0.) */
31506 for (i = 0; i < pagesize; ++i)
31507 *(data2 + i) = *(data2 + i) + 1;
31508 data3 = (char *) malloc (pagesize);
31509 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000031510 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031511 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000031512 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031513 for (i = 0; i < pagesize; ++i)
31514 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000031515 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031516 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000031517 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031518}
31519_ACEOF
31520rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031521if { (ac_try="$ac_link"
31522case "(($ac_try" in
31523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31524 *) ac_try_echo=$ac_try;;
31525esac
31526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31527 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031528 ac_status=$?
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031531 { (case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31534esac
31535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031537 ac_status=$?
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; }; then
31540 ac_cv_func_mmap_fixed_mapped=yes
31541else
31542 echo "$as_me: program exited with status $ac_status" >&5
31543echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031544sed 's/^/| /' conftest.$ac_ext >&5
31545
John Criswell7a73b802003-06-30 21:59:07 +000031546( exit $ac_status )
31547ac_cv_func_mmap_fixed_mapped=no
31548fi
Reid Spencera773bd52006-08-04 18:18:08 +000031549rm -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 +000031550fi
Reid Spencera773bd52006-08-04 18:18:08 +000031551
31552
John Criswell7a73b802003-06-30 21:59:07 +000031553fi
Reid Spencera773bd52006-08-04 18:18:08 +000031554{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31555echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031556if test $ac_cv_func_mmap_fixed_mapped = yes; then
31557
31558cat >>confdefs.h <<\_ACEOF
31559#define HAVE_MMAP 1
31560_ACEOF
31561
31562fi
31563rm -f conftest.mmap
31564
Reid Spencer30fe5262007-01-20 07:48:49 +000031565 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000031566echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031567if test "${ac_cv_func_mmap_file+set}" = set; then
31568 echo $ECHO_N "(cached) $ECHO_C" >&6
31569else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031570 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000031571ac_cpp='$CPP $CPPFLAGS'
31572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31574ac_compiler_gnu=$ac_cv_c_compiler_gnu
31575
31576 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031577 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000031578else
31579 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031580
Reid Spencer777ce172004-09-20 04:09:56 +000031581 /* confdefs.h. */
31582_ACEOF
31583cat confdefs.h >>conftest.$ac_ext
31584cat >>conftest.$ac_ext <<_ACEOF
31585/* end confdefs.h. */
31586
John Criswell7a73b802003-06-30 21:59:07 +000031587#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000031588#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000031589#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000031590
31591int
31592main ()
31593{
John Criswell7a73b802003-06-30 21:59:07 +000031594
31595 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000031596 fd = creat ("foo",0777);
31597 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31598 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031599 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000031600 ;
31601 return 0;
31602}
John Criswell7a73b802003-06-30 21:59:07 +000031603_ACEOF
31604rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031605if { (ac_try="$ac_link"
31606case "(($ac_try" in
31607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31608 *) ac_try_echo=$ac_try;;
31609esac
31610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31611 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031615 { (case "(($ac_try" in
31616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31617 *) ac_try_echo=$ac_try;;
31618esac
31619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31620 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031621 ac_status=$?
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); }; }; then
31624 ac_cv_func_mmap_file=yes
31625else
31626 echo "$as_me: program exited with status $ac_status" >&5
31627echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031628sed 's/^/| /' conftest.$ac_ext >&5
31629
John Criswell7a73b802003-06-30 21:59:07 +000031630( exit $ac_status )
31631ac_cv_func_mmap_file=no
31632fi
Reid Spencera773bd52006-08-04 18:18:08 +000031633rm -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 +000031634fi
Reid Spencera773bd52006-08-04 18:18:08 +000031635
31636
John Criswell7a73b802003-06-30 21:59:07 +000031637 ac_ext=c
31638ac_cpp='$CPP $CPPFLAGS'
31639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31641ac_compiler_gnu=$ac_cv_c_compiler_gnu
31642
31643
31644fi
Reid Spencera773bd52006-08-04 18:18:08 +000031645{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31646echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031647if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000031648
31649cat >>confdefs.h <<\_ACEOF
31650#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000031651_ACEOF
31652
31653 MMAP_FILE=yes
31654
31655fi
31656
Reid Spencer30fe5262007-01-20 07:48:49 +000031657 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000031658echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031659if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31660 echo $ECHO_N "(cached) $ECHO_C" >&6
31661else
Reid Spencer582a23c2004-12-29 07:07:57 +000031662 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000031663 ac_cv_need_dev_zero_for_mmap=yes
31664 else
31665 ac_cv_need_dev_zero_for_mmap=no
31666 fi
31667
31668fi
Reid Spencera773bd52006-08-04 18:18:08 +000031669{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31670echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031671if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31672
31673cat >>confdefs.h <<\_ACEOF
31674#define NEED_DEV_ZERO_FOR_MMAP 1
31675_ACEOF
31676
31677fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031678
Reid Spencer30fe5262007-01-20 07:48:49 +000031679 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31680 then
31681 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000031682echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000031683 fi
31684 if test "$ac_cv_func_mmap_file" = "no"
31685 then
31686 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031687echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000031688 fi
John Criswellb13092b2003-07-22 21:00:24 +000031689fi
John Criswell7a73b802003-06-30 21:59:07 +000031690
31691
Reid Spencer9372f152007-07-30 20:13:24 +000031692
31693for ac_func in __dso_handle
31694do
31695as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31696{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31697echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31698if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31699 echo $ECHO_N "(cached) $ECHO_C" >&6
31700else
31701 cat >conftest.$ac_ext <<_ACEOF
31702/* confdefs.h. */
31703_ACEOF
31704cat confdefs.h >>conftest.$ac_ext
31705cat >>conftest.$ac_ext <<_ACEOF
31706/* end confdefs.h. */
31707/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31709#define $ac_func innocuous_$ac_func
31710
31711/* System header to define __stub macros and hopefully few prototypes,
31712 which can conflict with char $ac_func (); below.
31713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31714 <limits.h> exists even on freestanding compilers. */
31715
31716#ifdef __STDC__
31717# include <limits.h>
31718#else
31719# include <assert.h>
31720#endif
31721
31722#undef $ac_func
31723
31724/* Override any GCC internal prototype to avoid an error.
31725 Use char because int might match the return type of a GCC
31726 builtin and then its argument prototype would still apply. */
31727#ifdef __cplusplus
31728extern "C"
31729#endif
31730char $ac_func ();
31731/* The GNU C library defines this for functions which it implements
31732 to always fail with ENOSYS. Some functions are actually named
31733 something starting with __ and the normal name is an alias. */
31734#if defined __stub_$ac_func || defined __stub___$ac_func
31735choke me
31736#endif
31737
31738int
31739main ()
31740{
31741return $ac_func ();
31742 ;
31743 return 0;
31744}
31745_ACEOF
31746rm -f conftest.$ac_objext conftest$ac_exeext
31747if { (ac_try="$ac_link"
31748case "(($ac_try" in
31749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31750 *) ac_try_echo=$ac_try;;
31751esac
31752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31753 (eval "$ac_link") 2>conftest.er1
31754 ac_status=$?
31755 grep -v '^ *+' conftest.er1 >conftest.err
31756 rm -f conftest.er1
31757 cat conftest.err >&5
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031759 (exit $ac_status); } && {
31760 test -z "$ac_c_werror_flag" ||
31761 test ! -s conftest.err
31762 } && test -s conftest$ac_exeext &&
31763 $as_test_x conftest$ac_exeext; then
Reid Spencer9372f152007-07-30 20:13:24 +000031764 eval "$as_ac_var=yes"
31765else
31766 echo "$as_me: failed program was:" >&5
31767sed 's/^/| /' conftest.$ac_ext >&5
31768
31769 eval "$as_ac_var=no"
31770fi
31771
Scott Michel96dcd2b2007-12-05 21:24:02 +000031772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer9372f152007-07-30 20:13:24 +000031773 conftest$ac_exeext conftest.$ac_ext
31774fi
31775ac_res=`eval echo '${'$as_ac_var'}'`
31776 { echo "$as_me:$LINENO: result: $ac_res" >&5
31777echo "${ECHO_T}$ac_res" >&6; }
31778if test `eval echo '${'$as_ac_var'}'` = yes; then
31779 cat >>confdefs.h <<_ACEOF
31780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31781_ACEOF
31782
31783fi
31784done
31785
31786
Reid Spencera773bd52006-08-04 18:18:08 +000031787{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31788echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031789if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31790 echo $ECHO_N "(cached) $ECHO_C" >&6
31791else
31792 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000031793if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031794 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000031795 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31796 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031797 if test $? -eq 0 ; then
31798 llvm_cv_llvmgcc_sanity="yes"
31799 fi
31800 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000031801fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031802fi
Reid Spencera773bd52006-08-04 18:18:08 +000031803{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31804echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031805
31806if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000031807 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31808echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000031809 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031810 LLVMCC1=$llvmcc1path
31811
Reid Spencer502935f2004-12-22 05:56:56 +000031812 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031813 LLVMCC1PLUS=$llvmcc1pluspath
31814
Reid Spencer502935f2004-12-22 05:56:56 +000031815 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31816 LLVMGCCDIR=$llvmgccdir
31817
Reid Spencer282d8c12006-12-21 22:55:41 +000031818 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31819 LLVMGCCLIBEXEC=$llvmgcclibexec
31820
Reid Spencerb5d75b82006-05-09 00:31:01 +000031821 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000031822 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31823 LLVMGCC_VERSION=$llvmgccversion
31824
31825 LLVMGCC_MAJVERS=$llvmgccmajvers
31826
Reid Spencer0d238182007-04-21 21:28:52 +000031827 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31828 LLVMGCC_LANGS=$llvmgcclangs
31829
31830 { echo "$as_me:$LINENO: result: ok" >&5
31831echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000031832fi
31833
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031834SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000031835
31836
Reid Spencere9de0912004-08-20 09:03:57 +000031837# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031838# information into substitutions that will end up in Makefile.config.in
31839# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000031840if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000031841 prefix="/usr/local"
31842fi
Reid Spencere9de0912004-08-20 09:03:57 +000031843eval LLVM_PREFIX="${prefix}";
31844eval LLVM_BINDIR="${prefix}/bin";
31845eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000031846eval LLVM_DATADIR="${prefix}/share/llvm";
31847eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31848eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000031849eval LLVM_INCLUDEDIR="${prefix}/include";
31850eval LLVM_INFODIR="${prefix}/info";
31851eval LLVM_MANDIR="${prefix}/man";
31852LLVM_CONFIGTIME=`date`
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031864# Place the various directores into the config.h file as #defines so that we
31865# can know about the installation paths within LLVM.
31866
Reid Spencere9de0912004-08-20 09:03:57 +000031867cat >>confdefs.h <<_ACEOF
31868#define LLVM_PREFIX "$LLVM_PREFIX"
31869_ACEOF
31870
31871
31872cat >>confdefs.h <<_ACEOF
31873#define LLVM_BINDIR "$LLVM_BINDIR"
31874_ACEOF
31875
31876
31877cat >>confdefs.h <<_ACEOF
31878#define LLVM_LIBDIR "$LLVM_LIBDIR"
31879_ACEOF
31880
31881
31882cat >>confdefs.h <<_ACEOF
31883#define LLVM_DATADIR "$LLVM_DATADIR"
31884_ACEOF
31885
31886
31887cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000031888#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031889_ACEOF
31890
31891
31892cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000031893#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031894_ACEOF
31895
31896
31897cat >>confdefs.h <<_ACEOF
31898#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31899_ACEOF
31900
31901
31902cat >>confdefs.h <<_ACEOF
31903#define LLVM_INFODIR "$LLVM_INFODIR"
31904_ACEOF
31905
31906
31907cat >>confdefs.h <<_ACEOF
31908#define LLVM_MANDIR "$LLVM_MANDIR"
31909_ACEOF
31910
31911
31912cat >>confdefs.h <<_ACEOF
31913#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31914_ACEOF
31915
31916
Eric Christopher790e11c2007-12-01 00:34:39 +000031917cat >>confdefs.h <<_ACEOF
31918#define LLVM_HOSTTRIPLE "$host"
31919_ACEOF
31920
31921
Gordon Henriksenc0efff82007-10-02 09:50:32 +000031922# Determine which bindings to build.
31923if test "$BINDINGS_TO_BUILD" = auto ; then
31924 BINDINGS_TO_BUILD=""
31925 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31926 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31927 fi
31928fi
31929BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31930
31931
31932# This isn't really configurey, but it avoids having to repeat the list in
31933# other files.
31934ALL_BINDINGS=ocaml
31935
31936
Gordon Henriksenf0915682007-10-02 16:42:22 +000031937# Do any work necessary to ensure that bindings have what they need.
31938binding_prereqs_failed=0
31939for a_binding in $BINDINGS_TO_BUILD ; do
31940 case "$a_binding" in
31941 ocaml)
31942 if test "x$OCAMLC" = x ; then
31943 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31944echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31945 binding_prereqs_failed=1
31946 fi
31947 if test "x$OCAMLDEP" = x ; then
31948 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31949echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31950 binding_prereqs_failed=1
31951 fi
31952 if test "x$OCAMLOPT" = x ; then
31953 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31954echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31955 fi
31956 if test "x$with_ocaml_libdir" != xauto ; then
31957 OCAML_LIBDIR=$with_ocaml_libdir
31958
31959 else
31960 ocaml_stdlib="`"$OCAMLC" -where`"
31961 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31962 then
31963 # ocaml stdlib is beneath our prefix; use stdlib
31964 OCAML_LIBDIR=$ocaml_stdlib
31965
31966 else
31967 # ocaml stdlib is outside our prefix; use libdir/ocaml
31968 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31969
31970 fi
31971 fi
31972 ;;
31973 esac
31974done
31975if test "$binding_prereqs_failed" = 1 ; then
31976 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31977echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31978 { (exit 1); exit 1; }; }
31979fi
31980
31981
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031982
Reid Spencera773bd52006-08-04 18:18:08 +000031983ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031984
Reid Spencera773bd52006-08-04 18:18:08 +000031985ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031986
Reid Spencera773bd52006-08-04 18:18:08 +000031987ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031988
Reid Spencera773bd52006-08-04 18:18:08 +000031989ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031990
Reid Spencera773bd52006-08-04 18:18:08 +000031991ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031992
31993
Reid Spencera773bd52006-08-04 18:18:08 +000031994ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031995
31996
Reid Spencerea949cf2006-08-16 00:45:38 +000031997ac_config_files="$ac_config_files llvm.spec"
31998
31999
Reid Spencera773bd52006-08-04 18:18:08 +000032000ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000032001
32002
Reid Spencera773bd52006-08-04 18:18:08 +000032003ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000032004
32005
Reid Spencera773bd52006-08-04 18:18:08 +000032006ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000032007
Reid Spencera773bd52006-08-04 18:18:08 +000032008ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032009
32010
Reid Spencera773bd52006-08-04 18:18:08 +000032011ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032012
32013
Reid Spencera773bd52006-08-04 18:18:08 +000032014ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032015
32016
Reid Spencera773bd52006-08-04 18:18:08 +000032017ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032018
32019
Reid Spencer8b2e1412006-11-17 03:32:33 +000032020ac_config_commands="$ac_config_commands runtime/Makefile"
32021
32022
Reid Spencera773bd52006-08-04 18:18:08 +000032023ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032024
32025
Reid Spencera773bd52006-08-04 18:18:08 +000032026ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032027
32028
Reid Spencera773bd52006-08-04 18:18:08 +000032029ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032030
32031
Reid Spencera773bd52006-08-04 18:18:08 +000032032ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032033
32034
Reid Spencera773bd52006-08-04 18:18:08 +000032035ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032036
32037
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032038ac_config_commands="$ac_config_commands bindings/Makefile"
32039
32040
32041ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32042
32043
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032044
John Criswell7a73b802003-06-30 21:59:07 +000032045cat >confcache <<\_ACEOF
32046# This file is a shell script that caches the results of configure
32047# tests run on this system so they can be shared between configure
32048# scripts and configure runs, see configure's option --config-cache.
32049# It is not useful on other systems. If it contains results you don't
32050# want to keep, you may remove or edit it.
32051#
32052# config.status only pays attention to the cache file if you give it
32053# the --recheck option to rerun configure.
32054#
John Criswell0c38eaf2003-09-10 15:17:25 +000032055# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000032056# loading this file, other *unset* `ac_cv_foo' will be assigned the
32057# following values.
32058
32059_ACEOF
32060
32061# The following way of writing the cache mishandles newlines in values,
32062# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000032063# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000032064# Ultrix sh set writes to stderr and can't be redirected directly,
32065# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000032066(
32067 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32068 eval ac_val=\$$ac_var
32069 case $ac_val in #(
32070 *${as_nl}*)
32071 case $ac_var in #(
32072 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32073echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32074 esac
32075 case $ac_var in #(
32076 _ | IFS | as_nl) ;; #(
32077 *) $as_unset $ac_var ;;
32078 esac ;;
32079 esac
32080 done
32081
John Criswell7a73b802003-06-30 21:59:07 +000032082 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000032083 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32084 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000032085 # `set' does not quote correctly, so add quotes (double-quote
32086 # substitution turns \\\\ into \\, and sed turns \\ into \).
32087 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032088 "s/'/'\\\\''/g;
32089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000032090 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000032091 *)
32092 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000032093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000032094 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032095 esac |
32096 sort
32097) |
John Criswell7a73b802003-06-30 21:59:07 +000032098 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032099 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000032100 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000032101 :clear
John Criswell7a73b802003-06-30 21:59:07 +000032102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32103 t end
Reid Spencera773bd52006-08-04 18:18:08 +000032104 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32105 :end' >>confcache
32106if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32107 if test -w "$cache_file"; then
32108 test "x$cache_file" != "x/dev/null" &&
32109 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32110echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032111 cat confcache >$cache_file
32112 else
Reid Spencera773bd52006-08-04 18:18:08 +000032113 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32114echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032115 fi
32116fi
32117rm -f confcache
32118
32119test "x$prefix" = xNONE && prefix=$ac_default_prefix
32120# Let make expand exec_prefix.
32121test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32122
John Criswell7a73b802003-06-30 21:59:07 +000032123DEFS=-DHAVE_CONFIG_H
32124
John Criswell0c38eaf2003-09-10 15:17:25 +000032125ac_libobjs=
32126ac_ltlibobjs=
32127for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32128 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000032129 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32130 ac_i=`echo "$ac_i" | sed "$ac_script"`
32131 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32132 # will be set to the directory where LIBOBJS objects are built.
32133 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32134 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000032135done
32136LIBOBJS=$ac_libobjs
32137
32138LTLIBOBJS=$ac_ltlibobjs
32139
32140
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032141if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32142 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32143Usually this means the macro was only invoked conditionally." >&5
32144echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32145Usually this means the macro was only invoked conditionally." >&2;}
32146 { (exit 1); exit 1; }; }
32147fi
32148if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32149 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32150Usually this means the macro was only invoked conditionally." >&5
32151echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32152Usually this means the macro was only invoked conditionally." >&2;}
32153 { (exit 1); exit 1; }; }
32154fi
John Criswell7a73b802003-06-30 21:59:07 +000032155
32156: ${CONFIG_STATUS=./config.status}
32157ac_clean_files_save=$ac_clean_files
32158ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32159{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32160echo "$as_me: creating $CONFIG_STATUS" >&6;}
32161cat >$CONFIG_STATUS <<_ACEOF
32162#! $SHELL
32163# Generated by $as_me.
32164# Run this file to recreate the current configuration.
32165# Compiler output produced by configure, useful for debugging
32166# configure, is in config.log if it exists.
32167
32168debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000032169ac_cs_recheck=false
32170ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000032171SHELL=\${CONFIG_SHELL-$SHELL}
32172_ACEOF
32173
32174cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032175## --------------------- ##
32176## M4sh Initialization. ##
32177## --------------------- ##
32178
Scott Michel96dcd2b2007-12-05 21:24:02 +000032179# Be more Bourne compatible
32180DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000032181if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32182 emulate sh
32183 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032184 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32185 # is contrary to our usage. Disable this feature.
32186 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000032187 setopt NO_GLOB_SUBST
32188else
Scott Michel96dcd2b2007-12-05 21:24:02 +000032189 case `(set -o) 2>/dev/null` in
32190 *posix*) set -o posix ;;
32191esac
32192
John Criswell7a73b802003-06-30 21:59:07 +000032193fi
Scott Michel96dcd2b2007-12-05 21:24:02 +000032194
32195
John Criswell7a73b802003-06-30 21:59:07 +000032196
John Criswell7a73b802003-06-30 21:59:07 +000032197
Reid Spencera773bd52006-08-04 18:18:08 +000032198# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000032199# Avoid depending upon Character Ranges.
32200as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32201as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32202as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32203as_cr_digits='0123456789'
32204as_cr_alnum=$as_cr_Letters$as_cr_digits
32205
32206# The user is always right.
32207if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032208 echo "#! /bin/sh" >conf$$.sh
32209 echo "exit 0" >>conf$$.sh
32210 chmod +x conf$$.sh
32211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032212 PATH_SEPARATOR=';'
32213 else
32214 PATH_SEPARATOR=:
32215 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000032216 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000032217fi
32218
Reid Spencera773bd52006-08-04 18:18:08 +000032219# Support unset when possible.
32220if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32221 as_unset=unset
32222else
32223 as_unset=false
32224fi
John Criswell7a73b802003-06-30 21:59:07 +000032225
Reid Spencera773bd52006-08-04 18:18:08 +000032226
32227# IFS
32228# We need space, tab and new line, in precisely that order. Quoting is
32229# there to prevent editors from complaining about space-tab.
32230# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32231# splitting by setting IFS to empty value.)
32232as_nl='
32233'
32234IFS=" "" $as_nl"
32235
32236# Find who we are. Look in the path if we contain no directory separator.
32237case $0 in
32238 *[\\/]* ) as_myself=$0 ;;
32239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000032240for as_dir in $PATH
32241do
32242 IFS=$as_save_IFS
32243 test -z "$as_dir" && as_dir=.
32244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32245done
Reid Spencera773bd52006-08-04 18:18:08 +000032246IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000032247
Reid Spencera773bd52006-08-04 18:18:08 +000032248 ;;
32249esac
32250# We did not find ourselves, most probably we were run as `sh COMMAND'
32251# in which case we are not to be found in the path.
32252if test "x$as_myself" = x; then
32253 as_myself=$0
32254fi
32255if test ! -f "$as_myself"; then
32256 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32257 { (exit 1); exit 1; }
32258fi
32259
32260# Work around bugs in pre-3.0 UWIN ksh.
32261for as_var in ENV MAIL MAILPATH
32262do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32263done
32264PS1='$ '
32265PS2='> '
32266PS4='+ '
32267
32268# NLS nuisances.
32269for as_var in \
32270 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32271 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32272 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000032273do
Reid Spencera773bd52006-08-04 18:18:08 +000032274 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32275 eval $as_var=C; export $as_var
32276 else
32277 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32278 fi
32279done
32280
32281# Required to use basename.
32282if expr a : '\(a\)' >/dev/null 2>&1 &&
32283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32284 as_expr=expr
32285else
32286 as_expr=false
32287fi
32288
32289if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32290 as_basename=basename
32291else
32292 as_basename=false
32293fi
32294
32295
32296# Name of the executable.
32297as_me=`$as_basename -- "$0" ||
32298$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32299 X"$0" : 'X\(//\)$' \| \
32300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32301echo X/"$0" |
32302 sed '/^.*\/\([^/][^/]*\)\/*$/{
32303 s//\1/
32304 q
32305 }
32306 /^X\/\(\/\/\)$/{
32307 s//\1/
32308 q
32309 }
32310 /^X\/\(\/\).*/{
32311 s//\1/
32312 q
32313 }
32314 s/.*/./; q'`
32315
32316# CDPATH.
32317$as_unset CDPATH
32318
32319
32320
John Criswell7a73b802003-06-30 21:59:07 +000032321 as_lineno_1=$LINENO
32322 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000032323 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000032324 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000032325
32326 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32327 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000032328 # line-number line after each line using $LINENO; the second 'sed'
32329 # does the real work. The second script uses 'N' to pair each
32330 # line-number line with the line containing $LINENO, and appends
32331 # trailing '-' during substitution so that $LINENO is not a special
32332 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000032333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000032334 # scripts with optimization help from Paolo Bonzini. Blame Lee
32335 # E. McMahon (1931-1989) for sed's syntax. :-)
32336 sed -n '
32337 p
32338 /[$]LINENO/=
32339 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000032340 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032341 s/[$]LINENO.*/&-/
32342 t lineno
32343 b
32344 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000032345 N
Reid Spencera773bd52006-08-04 18:18:08 +000032346 :loop
32347 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000032348 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000032349 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000032350 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000032351 chmod +x "$as_me.lineno" ||
32352 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000032353 { (exit 1); exit 1; }; }
32354
32355 # Don't try to exec as it changes $[0], causing all sort of problems
32356 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000032357 # original and so on. Autoconf is especially sensitive to this).
32358 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000032359 # Exit status is that of the last command.
32360 exit
32361}
32362
32363
Reid Spencera773bd52006-08-04 18:18:08 +000032364if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32365 as_dirname=dirname
32366else
32367 as_dirname=false
32368fi
32369
32370ECHO_C= ECHO_N= ECHO_T=
32371case `echo -n x` in
32372-n*)
32373 case `echo 'x\c'` in
32374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32375 *) ECHO_C='\c';;
32376 esac;;
32377*)
32378 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000032379esac
32380
Reid Spencera773bd52006-08-04 18:18:08 +000032381if expr a : '\(a\)' >/dev/null 2>&1 &&
32382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000032383 as_expr=expr
32384else
32385 as_expr=false
32386fi
32387
32388rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000032389if test -d conf$$.dir; then
32390 rm -f conf$$.dir/conf$$.file
32391else
32392 rm -f conf$$.dir
32393 mkdir conf$$.dir
32394fi
John Criswell7a73b802003-06-30 21:59:07 +000032395echo >conf$$.file
32396if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000032397 as_ln_s='ln -s'
32398 # ... but there are two gotchas:
32399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32401 # In both cases, we have to default to `cp -p'.
32402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000032403 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000032404elif ln conf$$.file conf$$ 2>/dev/null; then
32405 as_ln_s=ln
32406else
32407 as_ln_s='cp -p'
32408fi
Reid Spencera773bd52006-08-04 18:18:08 +000032409rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32410rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000032411
John Criswell0c38eaf2003-09-10 15:17:25 +000032412if mkdir -p . 2>/dev/null; then
32413 as_mkdir_p=:
32414else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032415 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000032416 as_mkdir_p=false
32417fi
32418
Scott Michel96dcd2b2007-12-05 21:24:02 +000032419if test -x / >/dev/null 2>&1; then
32420 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +000032421else
Scott Michel96dcd2b2007-12-05 21:24:02 +000032422 if ls -dL / >/dev/null 2>&1; then
32423 as_ls_L_option=L
32424 else
32425 as_ls_L_option=
32426 fi
32427 as_test_x='
32428 eval sh -c '\''
32429 if test -d "$1"; then
32430 test -d "$1/.";
32431 else
32432 case $1 in
32433 -*)set "./$1";;
32434 esac;
32435 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32436 ???[sx]*):;;*)false;;esac;fi
32437 '\'' sh
32438 '
Reid Spencera773bd52006-08-04 18:18:08 +000032439fi
Scott Michel96dcd2b2007-12-05 21:24:02 +000032440as_executable_p=$as_test_x
John Criswell7a73b802003-06-30 21:59:07 +000032441
32442# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032443as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000032444
32445# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032446as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000032447
32448
John Criswell7a73b802003-06-30 21:59:07 +000032449exec 6>&1
32450
Reid Spencera773bd52006-08-04 18:18:08 +000032451# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000032452# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000032453# values after options handling.
32454ac_log="
Tanya Lattner5c709542007-09-14 01:24:13 +000032455This file was extended by llvm $as_me 2.2svn, which was
Scott Michel96dcd2b2007-12-05 21:24:02 +000032456generated by GNU Autoconf 2.61. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000032457
32458 CONFIG_FILES = $CONFIG_FILES
32459 CONFIG_HEADERS = $CONFIG_HEADERS
32460 CONFIG_LINKS = $CONFIG_LINKS
32461 CONFIG_COMMANDS = $CONFIG_COMMANDS
32462 $ $0 $@
32463
Reid Spencera773bd52006-08-04 18:18:08 +000032464on `(hostname || uname -n) 2>/dev/null | sed 1q`
32465"
32466
John Criswell7a73b802003-06-30 21:59:07 +000032467_ACEOF
32468
Reid Spencera773bd52006-08-04 18:18:08 +000032469cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032470# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000032471config_files="$ac_config_files"
32472config_headers="$ac_config_headers"
32473config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000032474
Reid Spencera773bd52006-08-04 18:18:08 +000032475_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032476
32477cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032478ac_cs_usage="\
32479\`$as_me' instantiates files from templates according to the
32480current configuration.
32481
32482Usage: $0 [OPTIONS] [FILE]...
32483
32484 -h, --help print this help, then exit
Scott Michel96dcd2b2007-12-05 21:24:02 +000032485 -V, --version print version number and configuration settings, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000032486 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000032487 -d, --debug don't remove temporary files
32488 --recheck update $as_me by reconfiguring in the same conditions
32489 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000032490 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000032491 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000032492 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000032493
32494Configuration files:
32495$config_files
32496
32497Configuration headers:
32498$config_headers
32499
John Criswellc764fbc2003-09-06 15:17:13 +000032500Configuration commands:
32501$config_commands
32502
John Criswell7a73b802003-06-30 21:59:07 +000032503Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000032504
Reid Spencera773bd52006-08-04 18:18:08 +000032505_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032506cat >>$CONFIG_STATUS <<_ACEOF
32507ac_cs_version="\\
Tanya Lattner5c709542007-09-14 01:24:13 +000032508llvm config.status 2.2svn
Scott Michel96dcd2b2007-12-05 21:24:02 +000032509configured by $0, generated by GNU Autoconf 2.61,
Reid Spencera773bd52006-08-04 18:18:08 +000032510 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000032511
Reid Spencera773bd52006-08-04 18:18:08 +000032512Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000032513This config.status script is free software; the Free Software Foundation
32514gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000032515
32516ac_pwd='$ac_pwd'
32517srcdir='$srcdir'
32518INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000032519_ACEOF
32520
32521cat >>$CONFIG_STATUS <<\_ACEOF
32522# If no file are specified by the user, then we need to provide default
32523# value. By we need to know if files were specified by the user.
32524ac_need_defaults=:
32525while test $# != 0
32526do
32527 case $1 in
32528 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000032529 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32530 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032531 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000032532 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032533 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000032534 ac_option=$1
32535 ac_optarg=$2
32536 ac_shift=shift
32537 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032538 esac
32539
John Criswell0c38eaf2003-09-10 15:17:25 +000032540 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000032541 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000032542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32543 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032544 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32545 echo "$ac_cs_version"; exit ;;
32546 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000032547 debug=: ;;
32548 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000032549 $ac_shift
32550 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000032551 ac_need_defaults=false;;
32552 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000032553 $ac_shift
32554 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000032555 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000032556 --he | --h)
32557 # Conflict between --help and --header
32558 { echo "$as_me: error: ambiguous option: $1
32559Try \`$0 --help' for more information." >&2
32560 { (exit 1); exit 1; }; };;
32561 --help | --hel | -h )
32562 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000032563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32565 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000032566
32567 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000032568 -*) { echo "$as_me: error: unrecognized option: $1
32569Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032570 { (exit 1); exit 1; }; } ;;
32571
Reid Spencera773bd52006-08-04 18:18:08 +000032572 *) ac_config_targets="$ac_config_targets $1"
32573 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000032574
32575 esac
32576 shift
32577done
32578
John Criswell0c38eaf2003-09-10 15:17:25 +000032579ac_configure_extra_args=
32580
32581if $ac_cs_silent; then
32582 exec 6>/dev/null
32583 ac_configure_extra_args="$ac_configure_extra_args --silent"
32584fi
32585
32586_ACEOF
32587cat >>$CONFIG_STATUS <<_ACEOF
32588if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000032589 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32590 CONFIG_SHELL=$SHELL
32591 export CONFIG_SHELL
32592 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000032593fi
32594
John Criswell7a73b802003-06-30 21:59:07 +000032595_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032596cat >>$CONFIG_STATUS <<\_ACEOF
32597exec 5>>config.log
32598{
32599 echo
32600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32601## Running $as_me. ##
32602_ASBOX
32603 echo "$ac_log"
32604} >&5
John Criswell7a73b802003-06-30 21:59:07 +000032605
Reid Spencera773bd52006-08-04 18:18:08 +000032606_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032607cat >>$CONFIG_STATUS <<_ACEOF
32608#
Reid Spencera773bd52006-08-04 18:18:08 +000032609# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000032610#
Reid Spencerc0682832005-02-24 19:05:19 +000032611llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000032612
32613_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032614
John Criswell7a73b802003-06-30 21:59:07 +000032615cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032616
32617# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000032618for ac_config_target in $ac_config_targets
32619do
Reid Spencera773bd52006-08-04 18:18:08 +000032620 case $ac_config_target in
32621 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32622 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32623 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32624 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32625 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32626 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000032627 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032628 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32629 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32630 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32631 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32632 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32633 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32634 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000032635 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032636 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32637 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32638 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32639 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32640 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032641 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32642 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032643
John Criswell7a73b802003-06-30 21:59:07 +000032644 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32645echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32646 { (exit 1); exit 1; }; };;
32647 esac
32648done
32649
Reid Spencera773bd52006-08-04 18:18:08 +000032650
John Criswell7a73b802003-06-30 21:59:07 +000032651# If the user did not use the arguments to specify the items to instantiate,
32652# then the envvar interface is used. Set only those that are not.
32653# We use the long form for the default assignment because of an extremely
32654# bizarre bug on SunOS 4.1.3.
32655if $ac_need_defaults; then
32656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000032658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000032659fi
32660
John Criswell0c38eaf2003-09-10 15:17:25 +000032661# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000032662# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000032663# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000032664# Hook for its removal unless debugging.
32665# Note that there is a small window in which the directory will not be cleaned:
32666# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000032667$debug ||
32668{
Reid Spencera773bd52006-08-04 18:18:08 +000032669 tmp=
32670 trap 'exit_status=$?
32671 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32672' 0
John Criswell7a73b802003-06-30 21:59:07 +000032673 trap '{ (exit 1); exit 1; }' 1 2 13 15
32674}
John Criswell7a73b802003-06-30 21:59:07 +000032675# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000032676
John Criswell7a73b802003-06-30 21:59:07 +000032677{
Reid Spencera773bd52006-08-04 18:18:08 +000032678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000032679 test -n "$tmp" && test -d "$tmp"
32680} ||
32681{
Reid Spencera773bd52006-08-04 18:18:08 +000032682 tmp=./conf$$-$RANDOM
32683 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000032684} ||
32685{
John Criswell0c38eaf2003-09-10 15:17:25 +000032686 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032687 { (exit 1); exit 1; }
32688}
32689
John Criswell7a73b802003-06-30 21:59:07 +000032690#
Reid Spencera773bd52006-08-04 18:18:08 +000032691# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000032692#
32693
32694# No need to generate the scripts if there are no CONFIG_FILES.
32695# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000032696if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000032697
32698_ACEOF
32699
Reid Spencera773bd52006-08-04 18:18:08 +000032700
32701
32702ac_delim='%!_!# '
32703for ac_last_try in false false false false false :; do
32704 cat >conf$$subs.sed <<_ACEOF
32705SHELL!$SHELL$ac_delim
32706PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32707PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32708PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32709PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32710PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32711PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32712exec_prefix!$exec_prefix$ac_delim
32713prefix!$prefix$ac_delim
32714program_transform_name!$program_transform_name$ac_delim
32715bindir!$bindir$ac_delim
32716sbindir!$sbindir$ac_delim
32717libexecdir!$libexecdir$ac_delim
32718datarootdir!$datarootdir$ac_delim
32719datadir!$datadir$ac_delim
32720sysconfdir!$sysconfdir$ac_delim
32721sharedstatedir!$sharedstatedir$ac_delim
32722localstatedir!$localstatedir$ac_delim
32723includedir!$includedir$ac_delim
32724oldincludedir!$oldincludedir$ac_delim
32725docdir!$docdir$ac_delim
32726infodir!$infodir$ac_delim
32727htmldir!$htmldir$ac_delim
32728dvidir!$dvidir$ac_delim
32729pdfdir!$pdfdir$ac_delim
32730psdir!$psdir$ac_delim
32731libdir!$libdir$ac_delim
32732localedir!$localedir$ac_delim
32733mandir!$mandir$ac_delim
32734DEFS!$DEFS$ac_delim
32735ECHO_C!$ECHO_C$ac_delim
32736ECHO_N!$ECHO_N$ac_delim
32737ECHO_T!$ECHO_T$ac_delim
32738LIBS!$LIBS$ac_delim
32739build_alias!$build_alias$ac_delim
32740host_alias!$host_alias$ac_delim
32741target_alias!$target_alias$ac_delim
32742LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32743subdirs!$subdirs$ac_delim
32744build!$build$ac_delim
32745build_cpu!$build_cpu$ac_delim
32746build_vendor!$build_vendor$ac_delim
32747build_os!$build_os$ac_delim
32748host!$host$ac_delim
32749host_cpu!$host_cpu$ac_delim
32750host_vendor!$host_vendor$ac_delim
32751host_os!$host_os$ac_delim
32752target!$target$ac_delim
32753target_cpu!$target_cpu$ac_delim
32754target_vendor!$target_vendor$ac_delim
32755target_os!$target_os$ac_delim
32756OS!$OS$ac_delim
32757LINKALL!$LINKALL$ac_delim
32758NOLINKALL!$NOLINKALL$ac_delim
32759LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32760LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32761ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000032762ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032763CC!$CC$ac_delim
32764CFLAGS!$CFLAGS$ac_delim
32765LDFLAGS!$LDFLAGS$ac_delim
32766CPPFLAGS!$CPPFLAGS$ac_delim
32767ac_ct_CC!$ac_ct_CC$ac_delim
32768EXEEXT!$EXEEXT$ac_delim
32769OBJEXT!$OBJEXT$ac_delim
32770CPP!$CPP$ac_delim
32771GREP!$GREP$ac_delim
32772EGREP!$EGREP$ac_delim
32773LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32774BUILD_CC!$BUILD_CC$ac_delim
32775BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32776CVSBUILD!$CVSBUILD$ac_delim
32777ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32778DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000032779ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32780EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000032781DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032782JIT!$JIT$ac_delim
32783TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32784ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32785ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000032786ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032787TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000032788ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032789EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32790CXX!$CXX$ac_delim
32791CXXFLAGS!$CXXFLAGS$ac_delim
32792ac_ct_CXX!$ac_ct_CXX$ac_delim
32793LEX!$LEX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032794LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000032795LEXLIB!$LEXLIB$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032796FLEX!$FLEX$ac_delim
32797YACC!$YACC$ac_delim
32798YFLAGS!$YFLAGS$ac_delim
32799BISON!$BISON$ac_delim
32800NM!$NM$ac_delim
32801ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032802_ACEOF
32803
32804 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32805 break
32806 elif $ac_last_try; then
32807 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32808echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32809 { (exit 1); exit 1; }; }
32810 else
32811 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000032812 fi
Reid Spencera773bd52006-08-04 18:18:08 +000032813done
32814
32815ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32816if test -n "$ac_eof"; then
32817 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32818 ac_eof=`expr $ac_eof + 1`
32819fi
32820
32821cat >>$CONFIG_STATUS <<_ACEOF
32822cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32823/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32824_ACEOF
32825sed '
32826s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32827s/^/s,@/; s/!/@,|#_!!_#|/
32828:n
32829t n
32830s/'"$ac_delim"'$/,g/; t
32831s/$/\\/; p
32832N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32833' >>$CONFIG_STATUS <conf$$subs.sed
32834rm -f conf$$subs.sed
32835cat >>$CONFIG_STATUS <<_ACEOF
32836CEOF$ac_eof
32837_ACEOF
32838
32839
32840ac_delim='%!_!# '
32841for ac_last_try in false false false false false :; do
32842 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000032843LN_S!$LN_S$ac_delim
32844CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000032845CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000032846DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032847FIND!$FIND$ac_delim
32848MKDIR!$MKDIR$ac_delim
32849MV!$MV$ac_delim
32850RANLIB!$RANLIB$ac_delim
32851RM!$RM$ac_delim
32852SED!$SED$ac_delim
32853TAR!$TAR$ac_delim
32854BINPWD!$BINPWD$ac_delim
32855GRAPHVIZ!$GRAPHVIZ$ac_delim
32856DOT!$DOT$ac_delim
32857GV!$GV$ac_delim
32858DOTTY!$DOTTY$ac_delim
32859PERL!$PERL$ac_delim
32860HAVE_PERL!$HAVE_PERL$ac_delim
32861INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32862INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32863INSTALL_DATA!$INSTALL_DATA$ac_delim
32864BZIP2!$BZIP2$ac_delim
32865DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032866GROFF!$GROFF$ac_delim
32867GZIP!$GZIP$ac_delim
32868POD2HTML!$POD2HTML$ac_delim
32869POD2MAN!$POD2MAN$ac_delim
32870RUNTEST!$RUNTEST$ac_delim
32871TCLSH!$TCLSH$ac_delim
32872ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000032873OCAMLC!$OCAMLC$ac_delim
32874OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000032875OCAMLDEP!$OCAMLDEP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032876INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32877INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32878CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32879CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32880LIBADD_DL!$LIBADD_DL$ac_delim
32881ECHO!$ECHO$ac_delim
32882AR!$AR$ac_delim
32883STRIP!$STRIP$ac_delim
32884CXXCPP!$CXXCPP$ac_delim
32885F77!$F77$ac_delim
32886FFLAGS!$FFLAGS$ac_delim
32887ac_ct_F77!$ac_ct_F77$ac_delim
32888LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032889LLVMGCC!$LLVMGCC$ac_delim
32890LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000032891USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000032892HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000032893HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032894ALLOCA!$ALLOCA$ac_delim
32895MMAP_FILE!$MMAP_FILE$ac_delim
32896LLVMCC1!$LLVMCC1$ac_delim
32897LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32898LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000032899LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032900LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32901LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000032902LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032903SHLIBEXT!$SHLIBEXT$ac_delim
32904LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32905LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32906LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32907LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32908LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32909LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32910LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32911LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32912LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32913LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000032914BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32915ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000032916OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032917LIBOBJS!$LIBOBJS$ac_delim
32918LTLIBOBJS!$LTLIBOBJS$ac_delim
32919_ACEOF
32920
Gordon Henriksenf0915682007-10-02 16:42:22 +000032921 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Reid Spencera773bd52006-08-04 18:18:08 +000032922 break
32923 elif $ac_last_try; then
32924 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32925echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32926 { (exit 1); exit 1; }; }
32927 else
32928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32929 fi
32930done
32931
32932ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32933if test -n "$ac_eof"; then
32934 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32935 ac_eof=`expr $ac_eof + 1`
32936fi
32937
32938cat >>$CONFIG_STATUS <<_ACEOF
32939cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32940/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32941_ACEOF
32942sed '
32943s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32944s/^/s,@/; s/!/@,|#_!!_#|/
32945:n
32946t n
32947s/'"$ac_delim"'$/,g/; t
32948s/$/\\/; p
32949N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32950' >>$CONFIG_STATUS <conf$$subs.sed
32951rm -f conf$$subs.sed
32952cat >>$CONFIG_STATUS <<_ACEOF
32953:end
32954s/|#_!!_#|//g
32955CEOF$ac_eof
32956_ACEOF
32957
32958
32959# VPATH may cause trouble with some makes, so we remove $(srcdir),
32960# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32961# trailing colons and then remove the whole line if VPATH becomes empty
32962# (actually we leave an empty line to preserve line numbers).
32963if test "x$srcdir" = x.; then
32964 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32965s/:*\$(srcdir):*/:/
32966s/:*\${srcdir}:*/:/
32967s/:*@srcdir@:*/:/
32968s/^\([^=]*=[ ]*\):*/\1/
32969s/:*$//
32970s/^[^=]*=[ ]*$//
32971}'
32972fi
32973
32974cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032975fi # test -n "$CONFIG_FILES"
32976
Reid Spencera773bd52006-08-04 18:18:08 +000032977
32978for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32979do
32980 case $ac_tag in
32981 :[FHLC]) ac_mode=$ac_tag; continue;;
32982 esac
32983 case $ac_mode$ac_tag in
32984 :[FHL]*:*);;
32985 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32986echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32987 { (exit 1); exit 1; }; };;
32988 :[FH]-) ac_tag=-:-;;
32989 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32990 esac
32991 ac_save_IFS=$IFS
32992 IFS=:
32993 set x $ac_tag
32994 IFS=$ac_save_IFS
32995 shift
32996 ac_file=$1
32997 shift
32998
32999 case $ac_mode in
33000 :L) ac_source=$1;;
33001 :[FH])
33002 ac_file_inputs=
33003 for ac_f
33004 do
33005 case $ac_f in
33006 -) ac_f="$tmp/stdin";;
33007 *) # Look for the file first in the build tree, then in the source tree
33008 # (if the path is not absolute). The absolute path cannot be DOS-style,
33009 # because $ac_f cannot contain `:'.
33010 test -f "$ac_f" ||
33011 case $ac_f in
33012 [\\/$]*) false;;
33013 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33014 esac ||
33015 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33016echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33017 { (exit 1); exit 1; }; };;
33018 esac
33019 ac_file_inputs="$ac_file_inputs $ac_f"
33020 done
33021
33022 # Let's still pretend it is `configure' which instantiates (i.e., don't
33023 # use $as_me), people would be surprised to read:
33024 # /* config.h. Generated by config.status. */
33025 configure_input="Generated from "`IFS=:
33026 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33027 if test x"$ac_file" != x-; then
33028 configure_input="$ac_file. $configure_input"
33029 { echo "$as_me:$LINENO: creating $ac_file" >&5
33030echo "$as_me: creating $ac_file" >&6;}
33031 fi
33032
33033 case $ac_tag in
33034 *:-:* | *:-) cat >"$tmp/stdin";;
33035 esac
33036 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033037 esac
33038
Reid Spencera773bd52006-08-04 18:18:08 +000033039 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000033040$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033041 X"$ac_file" : 'X\(//\)[^/]' \| \
33042 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000033044echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000033045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33046 s//\1/
33047 q
33048 }
33049 /^X\(\/\/\)[^/].*/{
33050 s//\1/
33051 q
33052 }
33053 /^X\(\/\/\)$/{
33054 s//\1/
33055 q
33056 }
33057 /^X\(\/\).*/{
33058 s//\1/
33059 q
33060 }
33061 s/.*/./; q'`
33062 { as_dir="$ac_dir"
33063 case $as_dir in #(
33064 -*) as_dir=./$as_dir;;
33065 esac
33066 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000033067 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033068 while :; do
33069 case $as_dir in #(
33070 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33071 *) as_qdir=$as_dir;;
33072 esac
33073 as_dirs="'$as_qdir' $as_dirs"
33074 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033076 X"$as_dir" : 'X\(//\)[^/]' \| \
33077 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033079echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33081 s//\1/
33082 q
33083 }
33084 /^X\(\/\/\)[^/].*/{
33085 s//\1/
33086 q
33087 }
33088 /^X\(\/\/\)$/{
33089 s//\1/
33090 q
33091 }
33092 /^X\(\/\).*/{
33093 s//\1/
33094 q
33095 }
33096 s/.*/./; q'`
33097 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000033098 done
Reid Spencera773bd52006-08-04 18:18:08 +000033099 test -z "$as_dirs" || eval "mkdir $as_dirs"
33100 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33101echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000033102 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000033103 ac_builddir=.
33104
Reid Spencera773bd52006-08-04 18:18:08 +000033105case "$ac_dir" in
33106.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33107*)
John Criswell7a73b802003-06-30 21:59:07 +000033108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033109 # A ".." for each directory in $ac_dir_suffix.
33110 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33111 case $ac_top_builddir_sub in
33112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33114 esac ;;
33115esac
33116ac_abs_top_builddir=$ac_pwd
33117ac_abs_builddir=$ac_pwd$ac_dir_suffix
33118# for backward compatibility:
33119ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000033120
33121case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033122 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000033123 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033124 ac_top_srcdir=$ac_top_builddir_sub
33125 ac_abs_top_srcdir=$ac_pwd ;;
33126 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000033127 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033128 ac_top_srcdir=$srcdir
33129 ac_abs_top_srcdir=$srcdir ;;
33130 *) # Relative name.
33131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33132 ac_top_srcdir=$ac_top_build_prefix$srcdir
33133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000033134esac
Reid Spencera773bd52006-08-04 18:18:08 +000033135ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000033136
John Criswell7a73b802003-06-30 21:59:07 +000033137
Reid Spencera773bd52006-08-04 18:18:08 +000033138 case $ac_mode in
33139 :F)
33140 #
33141 # CONFIG_FILE
33142 #
John Criswell7a73b802003-06-30 21:59:07 +000033143
33144 case $INSTALL in
33145 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033146 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000033147 esac
John Criswell7a73b802003-06-30 21:59:07 +000033148_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033149
33150cat >>$CONFIG_STATUS <<\_ACEOF
33151# If the template does not know about datarootdir, expand it.
33152# FIXME: This hack should be removed a few years after 2.60.
33153ac_datarootdir_hack=; ac_datarootdir_seen=
33154
33155case `sed -n '/datarootdir/ {
33156 p
33157 q
33158}
33159/@datadir@/p
33160/@docdir@/p
33161/@infodir@/p
33162/@localedir@/p
33163/@mandir@/p
33164' $ac_file_inputs` in
33165*datarootdir*) ac_datarootdir_seen=yes;;
33166*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33167 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33168echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33169_ACEOF
33170cat >>$CONFIG_STATUS <<_ACEOF
33171 ac_datarootdir_hack='
33172 s&@datadir@&$datadir&g
33173 s&@docdir@&$docdir&g
33174 s&@infodir@&$infodir&g
33175 s&@localedir@&$localedir&g
33176 s&@mandir@&$mandir&g
33177 s&\\\${datarootdir}&$datarootdir&g' ;;
33178esac
33179_ACEOF
33180
33181# Neutralize VPATH when `$srcdir' = `.'.
33182# Shell code in configure.ac might set extrasub.
33183# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000033184cat >>$CONFIG_STATUS <<_ACEOF
33185 sed "$ac_vpsub
33186$extrasub
33187_ACEOF
33188cat >>$CONFIG_STATUS <<\_ACEOF
33189:t
33190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000033191s&@configure_input@&$configure_input&;t t
33192s&@top_builddir@&$ac_top_builddir_sub&;t t
33193s&@srcdir@&$ac_srcdir&;t t
33194s&@abs_srcdir@&$ac_abs_srcdir&;t t
33195s&@top_srcdir@&$ac_top_srcdir&;t t
33196s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33197s&@builddir@&$ac_builddir&;t t
33198s&@abs_builddir@&$ac_abs_builddir&;t t
33199s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33200s&@INSTALL@&$ac_INSTALL&;t t
33201$ac_datarootdir_hack
33202" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000033203
Reid Spencera773bd52006-08-04 18:18:08 +000033204test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33205 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33207 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33208which seems to be undefined. Please make sure it is defined." >&5
33209echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33210which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000033211
Reid Spencera773bd52006-08-04 18:18:08 +000033212 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000033213 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000033214 -) cat "$tmp/out"; rm -f "$tmp/out";;
33215 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000033216 esac
Reid Spencera773bd52006-08-04 18:18:08 +000033217 ;;
33218 :H)
33219 #
33220 # CONFIG_HEADER
33221 #
John Criswell7a73b802003-06-30 21:59:07 +000033222_ACEOF
33223
Reid Spencera773bd52006-08-04 18:18:08 +000033224# Transform confdefs.h into a sed script `conftest.defines', that
33225# substitutes the proper values into config.h.in to produce config.h.
33226rm -f conftest.defines conftest.tail
33227# First, append a space to every undef/define line, to ease matching.
33228echo 's/$/ /' >conftest.defines
33229# Then, protect against being on the right side of a sed subst, or in
33230# an unquoted here document, in config.status. If some macros were
33231# called several times there might be several #defines for the same
33232# symbol, which is useless. But do not sort them, since the last
33233# AC_DEFINE must be honored.
33234ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33235# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33236# NAME is the cpp macro being defined, VALUE is the value it is being given.
33237# PARAMS is the parameter list in the macro definition--in most cases, it's
33238# just an empty string.
33239ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33240ac_dB='\\)[ (].*,\\1define\\2'
33241ac_dC=' '
33242ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000033243
Reid Spencera773bd52006-08-04 18:18:08 +000033244uniq confdefs.h |
33245 sed -n '
33246 t rset
33247 :rset
33248 s/^[ ]*#[ ]*define[ ][ ]*//
33249 t ok
33250 d
33251 :ok
33252 s/[\\&,]/\\&/g
33253 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33254 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33255 ' >>conftest.defines
33256
33257# Remove the space that was appended to ease matching.
33258# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000033259# example, in the case of _POSIX_SOURCE, which is predefined and required
33260# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000033261# (The regexp can be short, since the line contains either #define or #undef.)
33262echo 's/ $//
33263s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000033264
Reid Spencera773bd52006-08-04 18:18:08 +000033265# Break up conftest.defines:
33266ac_max_sed_lines=50
33267
33268# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33269# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33270# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33271# et cetera.
33272ac_in='$ac_file_inputs'
33273ac_out='"$tmp/out1"'
33274ac_nxt='"$tmp/out2"'
33275
33276while :
John Criswell7a73b802003-06-30 21:59:07 +000033277do
Reid Spencera773bd52006-08-04 18:18:08 +000033278 # Write a here document:
33279 cat >>$CONFIG_STATUS <<_ACEOF
33280 # First, check the format of the line:
33281 cat >"\$tmp/defines.sed" <<\\CEOF
33282/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33283/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33284b
33285:def
33286_ACEOF
33287 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033288 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033289 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33290 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33291 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33292 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000033293 rm -f conftest.defines
33294 mv conftest.tail conftest.defines
33295done
Reid Spencera773bd52006-08-04 18:18:08 +000033296rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000033297
Reid Spencera773bd52006-08-04 18:18:08 +000033298echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033299cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033300 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000033301 echo "/* $configure_input */" >"$tmp/config.h"
33302 cat "$ac_result" >>"$tmp/config.h"
33303 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033304 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33305echo "$as_me: $ac_file is unchanged" >&6;}
33306 else
John Criswell7a73b802003-06-30 21:59:07 +000033307 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000033308 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000033309 fi
33310 else
Reid Spencera773bd52006-08-04 18:18:08 +000033311 echo "/* $configure_input */"
33312 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000033313 fi
Reid Spencera773bd52006-08-04 18:18:08 +000033314 rm -f "$tmp/out12"
33315 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033316
Reid Spencera773bd52006-08-04 18:18:08 +000033317 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33318echo "$as_me: executing $ac_file commands" >&6;}
33319 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033320 esac
John Criswell7a73b802003-06-30 21:59:07 +000033321
Reid Spencera773bd52006-08-04 18:18:08 +000033322
33323 case $ac_file$ac_mode in
33324 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33325 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33326 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33327 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33328 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33329 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33330 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33331 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000033332 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33333 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033334 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33335 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33336 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33337 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33338 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33339 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33340 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33341 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33342 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33343 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000033344 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33345 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33346 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33347 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033348
33349 esac
33350done # for ac_tag
33351
John Criswell7a73b802003-06-30 21:59:07 +000033352
33353{ (exit 0); exit 0; }
33354_ACEOF
33355chmod +x $CONFIG_STATUS
33356ac_clean_files=$ac_clean_files_save
33357
33358
33359# configure is writing to config.log, and then calls config.status.
33360# config.status does its own redirection, appending to config.log.
33361# Unfortunately, on DOS this fails, as config.log is still kept open
33362# by configure, so config.status won't be able to write to it; its
33363# output is simply discarded. So we exec the FD to /dev/null,
33364# effectively closing config.log, so it can be properly (re)opened and
33365# appended to by config.status. When coming back to configure, we
33366# need to make the FD available again.
33367if test "$no_create" != yes; then
33368 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033369 ac_config_status_args=
33370 test "$silent" = yes &&
33371 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000033372 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000033373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000033374 exec 5>>config.log
33375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33376 # would make configure fail if this is the last instruction.
33377 $ac_cs_success || { (exit 1); exit 1; }
33378fi
33379
John Criswell12399a12003-09-30 15:55:44 +000033380#
33381# CONFIG_SUBDIRS section.
33382#
33383if test "$no_recursion" != yes; then
33384
33385 # Remove --cache-file and --srcdir arguments so they do not pile up.
33386 ac_sub_configure_args=
33387 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000033388 eval "set x $ac_configure_args"
33389 shift
33390 for ac_arg
33391 do
John Criswell12399a12003-09-30 15:55:44 +000033392 if test -n "$ac_prev"; then
33393 ac_prev=
33394 continue
33395 fi
33396 case $ac_arg in
33397 -cache-file | --cache-file | --cache-fil | --cache-fi \
33398 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33399 ac_prev=cache_file ;;
33400 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33401 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33402 | --c=*)
33403 ;;
33404 --config-cache | -C)
33405 ;;
33406 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33407 ac_prev=srcdir ;;
33408 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33409 ;;
33410 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33411 ac_prev=prefix ;;
33412 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33413 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033414 *)
33415 case $ac_arg in
33416 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33417 esac
33418 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000033419 esac
33420 done
33421
33422 # Always prepend --prefix to ensure using the same prefix
33423 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000033424 ac_arg="--prefix=$prefix"
33425 case $ac_arg in
33426 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33427 esac
Scott Michel96dcd2b2007-12-05 21:24:02 +000033428 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33429
33430 # Pass --silent
33431 if test "$silent" = yes; then
33432 ac_sub_configure_args="--silent $ac_sub_configure_args"
33433 fi
John Criswell12399a12003-09-30 15:55:44 +000033434
33435 ac_popdir=`pwd`
33436 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33437
33438 # Do not complain, so a configure script can configure whichever
33439 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000033440 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000033441
Reid Spencera773bd52006-08-04 18:18:08 +000033442 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33443 echo "$as_me:$LINENO: $ac_msg" >&5
33444 echo "$ac_msg" >&6
33445 { as_dir="$ac_dir"
33446 case $as_dir in #(
33447 -*) as_dir=./$as_dir;;
33448 esac
33449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000033450 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033451 while :; do
33452 case $as_dir in #(
33453 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33454 *) as_qdir=$as_dir;;
33455 esac
33456 as_dirs="'$as_qdir' $as_dirs"
33457 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000033458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033459 X"$as_dir" : 'X\(//\)[^/]' \| \
33460 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000033462echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33464 s//\1/
33465 q
33466 }
33467 /^X\(\/\/\)[^/].*/{
33468 s//\1/
33469 q
33470 }
33471 /^X\(\/\/\)$/{
33472 s//\1/
33473 q
33474 }
33475 /^X\(\/\).*/{
33476 s//\1/
33477 q
33478 }
33479 s/.*/./; q'`
33480 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000033481 done
Reid Spencera773bd52006-08-04 18:18:08 +000033482 test -z "$as_dirs" || eval "mkdir $as_dirs"
33483 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33484echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000033485 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000033486 ac_builddir=.
33487
Reid Spencera773bd52006-08-04 18:18:08 +000033488case "$ac_dir" in
33489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33490*)
John Criswell12399a12003-09-30 15:55:44 +000033491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033492 # A ".." for each directory in $ac_dir_suffix.
33493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33494 case $ac_top_builddir_sub in
33495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33497 esac ;;
33498esac
33499ac_abs_top_builddir=$ac_pwd
33500ac_abs_builddir=$ac_pwd$ac_dir_suffix
33501# for backward compatibility:
33502ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000033503
33504case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033505 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000033506 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033507 ac_top_srcdir=$ac_top_builddir_sub
33508 ac_abs_top_srcdir=$ac_pwd ;;
33509 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000033510 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033511 ac_top_srcdir=$srcdir
33512 ac_abs_top_srcdir=$srcdir ;;
33513 *) # Relative name.
33514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33515 ac_top_srcdir=$ac_top_build_prefix$srcdir
33516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000033517esac
Reid Spencera773bd52006-08-04 18:18:08 +000033518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000033519
33520
Reid Spencera773bd52006-08-04 18:18:08 +000033521 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000033522
33523 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000033524 if test -f "$ac_srcdir/configure.gnu"; then
33525 ac_sub_configure=$ac_srcdir/configure.gnu
33526 elif test -f "$ac_srcdir/configure"; then
33527 ac_sub_configure=$ac_srcdir/configure
33528 elif test -f "$ac_srcdir/configure.in"; then
33529 # This should be Cygnus configure.
33530 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000033531 else
33532 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33533echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33534 ac_sub_configure=
33535 fi
33536
33537 # The recursion is here.
33538 if test -n "$ac_sub_configure"; then
33539 # Make the cache file name correct relative to the subdirectory.
33540 case $cache_file in
33541 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033542 *) # Relative name.
33543 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000033544 esac
33545
Reid Spencera773bd52006-08-04 18:18:08 +000033546 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33547echo "$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 +000033548 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000033549 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33550 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000033551 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000033552echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33553 { (exit 1); exit 1; }; }
33554 fi
33555
Reid Spencera773bd52006-08-04 18:18:08 +000033556 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000033557 done
33558fi
33559