blob: b1fa7c09f71f21176b6185ea40a313d03a9999e1 [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
Reid Spencera773bd52006-08-04 18:18:08 +0000831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838CPP
839GREP
840EGREP
Duncan Sands1eff7042007-12-10 17:43:13 +0000841ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000842LLVM_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
Duncan Sands1eff7042007-12-10 17:43:13 +00004186,
4187
4188cat >>confdefs.h <<\_ACEOF
4189#define MSB_FIRST 1
4190_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004191 ;;
4192 no)
4193 ENDIAN=little
Duncan Sands1eff7042007-12-10 17:43:13 +00004194,
4195
4196cat >>confdefs.h <<\_ACEOF
4197#define LSB_FIRST 1
4198_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004199 ;;
4200 *)
4201 { { echo "$as_me:$LINENO: error: unknown endianness
4202presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4203echo "$as_me: error: unknown endianness
4204presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4205 { (exit 1); exit 1; }; } ;;
4206esac
4207
4208
4209if test "$cross_compiling" = yes; then
4210 LLVM_CROSS_COMPILING=1
4211
4212
4213{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4214echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4215if test "${ac_cv_build_exeext+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217else
4218 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4219 ac_cv_build_exeext=.exe
4220else
4221 ac_build_prefix=${build_alias}-
4222
4223 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4224set dummy ${ac_build_prefix}gcc; ac_word=$2
4225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229else
4230 if test -n "$BUILD_CC"; then
4231 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4232else
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004239 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 +00004240 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4243 fi
4244done
4245done
4246IFS=$as_save_IFS
4247
4248fi
4249fi
4250BUILD_CC=$ac_cv_prog_BUILD_CC
4251if test -n "$BUILD_CC"; then
4252 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4253echo "${ECHO_T}$BUILD_CC" >&6; }
4254else
4255 { echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6; }
4257fi
4258
4259
4260 if test -z "$BUILD_CC"; then
4261 # Extract the first word of "gcc", so it can be a program name with args.
4262set dummy gcc; ac_word=$2
4263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268 if test -n "$BUILD_CC"; then
4269 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004277 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 +00004278 ac_cv_prog_BUILD_CC="gcc"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282done
4283done
4284IFS=$as_save_IFS
4285
4286fi
4287fi
4288BUILD_CC=$ac_cv_prog_BUILD_CC
4289if test -n "$BUILD_CC"; then
4290 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291echo "${ECHO_T}$BUILD_CC" >&6; }
4292else
4293 { echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6; }
4295fi
4296
4297
4298 if test -z "$BUILD_CC"; then
4299 # Extract the first word of "cc", so it can be a program name with args.
4300set dummy cc; ac_word=$2
4301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305else
4306 if test -n "$BUILD_CC"; then
4307 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4308else
4309 ac_prog_rejected=no
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004316 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 +00004317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318 ac_prog_rejected=yes
4319 continue
4320 fi
4321 ac_cv_prog_BUILD_CC="cc"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325done
4326done
4327IFS=$as_save_IFS
4328
4329if test $ac_prog_rejected = yes; then
4330 # We found a bogon in the path, so make sure we never use it.
4331 set dummy $ac_cv_prog_BUILD_CC
4332 shift
4333 if test $# != 0; then
4334 # We chose a different compiler from the bogus one.
4335 # However, it has the same basename, so the bogon will be chosen
4336 # first if we set BUILD_CC to just the basename; use the full file name.
4337 shift
4338 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4339 fi
4340fi
4341fi
4342fi
4343BUILD_CC=$ac_cv_prog_BUILD_CC
4344if test -n "$BUILD_CC"; then
4345 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4346echo "${ECHO_T}$BUILD_CC" >&6; }
4347else
4348 { echo "$as_me:$LINENO: result: no" >&5
4349echo "${ECHO_T}no" >&6; }
4350fi
4351
4352
4353 fi
4354 fi
4355 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4356echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4357 { (exit 1); exit 1; }; }
4358 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4359 rm -f conftest*
4360 echo 'int main () { return 0; }' > conftest.$ac_ext
4361 ac_cv_build_exeext=
4362 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4363 (eval $ac_build_link) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; then
4367 for file in conftest.*; do
4368 case $file in
4369 *.c | *.o | *.obj) ;;
4370 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4371 esac
4372 done
4373 else
4374 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4375echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4376 { (exit 1); exit 1; }; }
4377 fi
4378 rm -f conftest*
4379 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4380fi
4381fi
4382
4383BUILD_EXEEXT=""
4384test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4385{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4386echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4387ac_build_exeext=$BUILD_EXEEXT
4388
4389else
4390 LLVM_CROSS_COMPILING=0
4391
4392fi
4393
Reid Spencer0b1e4662007-04-02 15:41:39 +00004394if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004395 cvsbuild="yes"
4396 optimize="no"
4397 CVSBUILD=CVSBUILD=1
4398
4399else
4400 cvsbuild="no"
4401 optimize="yes"
4402fi
4403
4404
4405# Check whether --enable-optimized was given.
4406if test "${enable_optimized+set}" = set; then
4407 enableval=$enable_optimized;
4408else
4409 enableval=$optimize
4410fi
4411
4412if test ${enableval} = "no" ; then
4413 ENABLE_OPTIMIZED=
4414
4415else
4416 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4417
4418fi
4419
4420# Check whether --enable-assertions was given.
4421if test "${enable_assertions+set}" = set; then
4422 enableval=$enable_assertions;
4423else
4424 enableval="yes"
4425fi
4426
4427if test ${enableval} = "yes" ; then
4428 DISABLE_ASSERTIONS=
4429
4430else
4431 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4432
4433fi
4434
David Greenea696d242007-06-28 19:36:08 +00004435# Check whether --enable-expensive-checks was given.
4436if test "${enable_expensive_checks+set}" = set; then
4437 enableval=$enable_expensive_checks;
4438else
4439 enableval="no"
4440fi
4441
4442if test ${enableval} = "yes" ; then
4443 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4444
4445 EXPENSIVE_CHECKS=yes
4446
4447else
4448 ENABLE_EXPENSIVE_CHECKS=
4449
4450 EXPENSIVE_CHECKS=no
4451
4452fi
4453
Reid Spencer8b2e1412006-11-17 03:32:33 +00004454# Check whether --enable-debug-runtime was given.
4455if test "${enable_debug_runtime+set}" = set; then
4456 enableval=$enable_debug_runtime;
4457else
4458 enableval=no
4459fi
4460
4461if test ${enableval} = "no" ; then
4462 DEBUG_RUNTIME=
4463
4464else
4465 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4466
4467fi
4468
Reid Spencera773bd52006-08-04 18:18:08 +00004469# Check whether --enable-jit was given.
4470if test "${enable_jit+set}" = set; then
4471 enableval=$enable_jit;
4472else
4473 enableval=default
4474fi
4475
4476if test ${enableval} = "no"
4477then
4478 JIT=
4479
4480else
4481 case "$llvm_cv_target_arch" in
4482 x86) TARGET_HAS_JIT=1
4483 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004484 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004485 ;;
4486 PowerPC) TARGET_HAS_JIT=1
4487 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004488 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004489 ;;
4490 Alpha) TARGET_HAS_JIT=1
4491 ;;
4492 IA64) TARGET_HAS_JIT=0
4493 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004494 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004495 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004496 Mips) TARGET_HAS_JIT=0
4497 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004498 *) TARGET_HAS_JIT=0
4499 ;;
4500 esac
4501fi
4502
4503# Check whether --enable-doxygen was given.
4504if test "${enable_doxygen+set}" = set; then
4505 enableval=$enable_doxygen;
4506else
4507 enableval=default
4508fi
4509
4510case "$enableval" in
4511 yes) ENABLE_DOXYGEN=1
4512 ;;
4513 no) ENABLE_DOXYGEN=0
4514 ;;
4515 default) ENABLE_DOXYGEN=0
4516 ;;
4517 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4518echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4519 { (exit 1); exit 1; }; } ;;
4520esac
4521
4522# Check whether --enable-threads was given.
4523if test "${enable_threads+set}" = set; then
4524 enableval=$enable_threads;
4525else
Reid Spencer65c5d752006-11-05 17:08:18 +00004526 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004527fi
4528
4529case "$enableval" in
4530 yes) ENABLE_THREADS=1
4531 ;;
4532 no) ENABLE_THREADS=0
4533 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004534 default) ENABLE_THREADS=1
4535 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004536 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4537echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4538 { (exit 1); exit 1; }; } ;;
4539esac
4540
4541cat >>confdefs.h <<_ACEOF
4542#define ENABLE_THREADS $ENABLE_THREADS
4543_ACEOF
4544
4545
Reid Spencer89b0d992006-12-16 22:07:52 +00004546# Check whether --enable-pic was given.
4547if test "${enable_pic+set}" = set; then
4548 enableval=$enable_pic;
4549else
4550 enableval=default
4551fi
4552
4553case "$enableval" in
4554 yes) ENABLE_PIC=1
4555 ;;
4556 no) ENABLE_PIC=0
4557 ;;
4558 default) ENABLE_PIC=0
4559 ;;
4560 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4561echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4562 { (exit 1); exit 1; }; } ;;
4563esac
4564
4565cat >>confdefs.h <<_ACEOF
4566#define ENABLE_PIC $ENABLE_PIC
4567_ACEOF
4568
4569
Reid Spencera773bd52006-08-04 18:18:08 +00004570TARGETS_TO_BUILD=""
4571# Check whether --enable-targets was given.
4572if test "${enable_targets+set}" = set; then
4573 enableval=$enable_targets;
4574else
4575 enableval=all
4576fi
4577
4578case "$enableval" in
Scott Michel96dcd2b2007-12-05 21:24:02 +00004579 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004580 host-only)
4581 case "$llvm_cv_target_arch" in
4582 x86) TARGETS_TO_BUILD="X86" ;;
4583 x86_64) TARGETS_TO_BUILD="X86" ;;
4584 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4585 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4586 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4587 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004588 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004589 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004590 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004591 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4592echo "$as_me: error: Can not set target to build" >&2;}
4593 { (exit 1); exit 1; }; } ;;
4594 esac
4595 ;;
4596 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4597 case "$a_target" in
4598 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4599 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4600 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4601 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4602 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4603 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004604 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004605 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004606 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004607 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4608echo "$as_me: error: Unrecognized target $a_target" >&2;}
4609 { (exit 1); exit 1; }; } ;;
4610 esac
4611 done
4612 ;;
4613esac
Anton Korobeynikov099883f2007-03-21 21:38:25 +00004614TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
Reid Spencera773bd52006-08-04 18:18:08 +00004615TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4616
4617
Reid Spencer65c5d752006-11-05 17:08:18 +00004618# Check whether --enable-cbe-printf-a was given.
4619if test "${enable_cbe_printf_a+set}" = set; then
4620 enableval=$enable_cbe_printf_a;
4621else
4622 enableval=default
4623fi
4624
4625case "$enableval" in
4626 yes) ENABLE_CBE_PRINTF_A=1
4627 ;;
4628 no) ENABLE_CBE_PRINTF_A=0
4629 ;;
4630 default) ENABLE_CBE_PRINTF_A=1
4631 ;;
4632 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4633echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4634 { (exit 1); exit 1; }; } ;;
4635esac
4636
4637cat >>confdefs.h <<_ACEOF
4638#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4639_ACEOF
4640
4641
Reid Spencera773bd52006-08-04 18:18:08 +00004642
4643# Check whether --with-llvmgccdir was given.
4644if test "${with_llvmgccdir+set}" = set; then
4645 withval=$with_llvmgccdir;
4646else
4647 withval=default
4648fi
4649
4650case "$withval" in
4651 default) WITH_LLVMGCCDIR=default ;;
4652 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4653 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4654echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4655 { (exit 1); exit 1; }; } ;;
4656esac
4657
4658
Devang Patel5d28b882007-12-04 22:54:47 +00004659# Check whether --with-llvmgcc was given.
4660if test "${with_llvmgcc+set}" = set; then
4661 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4662 WITH_LLVMGCCDIR=""
4663fi
4664
4665
4666
4667# Check whether --with-llvmgxx was given.
4668if test "${with_llvmgxx+set}" = set; then
4669 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4670 WITH_LLVMGCCDIR=""
4671fi
4672
4673
4674if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4675 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4676echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4677 { (exit 1); exit 1; }; };
4678fi
4679
4680if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4681 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4682echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4683 { (exit 1); exit 1; }; };
4684fi
4685
4686
Reid Spencera773bd52006-08-04 18:18:08 +00004687# Check whether --with-extra-options was given.
4688if test "${with_extra_options+set}" = set; then
4689 withval=$with_extra_options;
4690else
4691 withval=default
4692fi
4693
4694case "$withval" in
4695 default) EXTRA_OPTIONS= ;;
4696 *) EXTRA_OPTIONS=$withval ;;
4697esac
4698EXTRA_OPTIONS=$EXTRA_OPTIONS
4699
4700
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004701# Check whether --enable-bindings was given.
4702if test "${enable_bindings+set}" = set; then
4703 enableval=$enable_bindings;
4704else
4705 enableval=default
4706fi
4707
4708BINDINGS_TO_BUILD=""
4709case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004710 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004711 all ) BINDINGS_TO_BUILD="ocaml" ;;
4712 none | no) BINDINGS_TO_BUILD="" ;;
4713 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4714 case "$a_binding" in
4715 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4716 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4717echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4718 { (exit 1); exit 1; }; } ;;
4719 esac
4720 done
4721 ;;
4722esac
4723
Reid Spencera773bd52006-08-04 18:18:08 +00004724
Gordon Henriksenf0915682007-10-02 16:42:22 +00004725# Check whether --with-ocaml-libdir was given.
4726if test "${with_ocaml_libdir+set}" = set; then
4727 withval=$with_ocaml_libdir;
4728else
4729 withval=auto
4730fi
4731
4732case "$withval" in
4733 auto) with_ocaml_libdir="$withval" ;;
4734 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4735 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4736echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4737 { (exit 1); exit 1; }; } ;;
4738esac
4739
4740
Reid Spencera773bd52006-08-04 18:18:08 +00004741ac_ext=c
4742ac_cpp='$CPP $CPPFLAGS'
4743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745ac_compiler_gnu=$ac_cv_c_compiler_gnu
4746{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4747echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4748# On Suns, sometimes $CPP names a directory.
4749if test -n "$CPP" && test -d "$CPP"; then
4750 CPP=
4751fi
4752if test -z "$CPP"; then
4753 if test "${ac_cv_prog_CPP+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755else
4756 # Double quotes because CPP needs to be expanded
4757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4758 do
4759 ac_preproc_ok=false
4760for ac_c_preproc_warn_flag in '' yes
4761do
4762 # Use a header file that comes with gcc, so configuring glibc
4763 # with a fresh cross-compiler works.
4764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4765 # <limits.h> exists even on freestanding compilers.
4766 # On the NeXT, cc -E runs the code through the compiler's parser,
4767 # not just through cpp. "Syntax error" is here to catch this case.
4768 cat >conftest.$ac_ext <<_ACEOF
4769/* confdefs.h. */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h. */
4774#ifdef __STDC__
4775# include <limits.h>
4776#else
4777# include <assert.h>
4778#endif
4779 Syntax error
4780_ACEOF
4781if { (ac_try="$ac_cpp conftest.$ac_ext"
4782case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4785esac
4786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4788 ac_status=$?
4789 grep -v '^ *+' conftest.er1 >conftest.err
4790 rm -f conftest.er1
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004793 (exit $ac_status); } >/dev/null && {
4794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4795 test ! -s conftest.err
4796 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004797 :
4798else
4799 echo "$as_me: failed program was:" >&5
4800sed 's/^/| /' conftest.$ac_ext >&5
4801
4802 # Broken: fails on valid input.
4803continue
4804fi
4805
4806rm -f conftest.err conftest.$ac_ext
4807
4808 # OK, works on sane cases. Now check whether nonexistent headers
4809 # can be detected and how.
4810 cat >conftest.$ac_ext <<_ACEOF
4811/* confdefs.h. */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h. */
4816#include <ac_nonexistent.h>
4817_ACEOF
4818if { (ac_try="$ac_cpp conftest.$ac_ext"
4819case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822esac
4823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004830 (exit $ac_status); } >/dev/null && {
4831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4833 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004834 # Broken: success on invalid input.
4835continue
4836else
4837 echo "$as_me: failed program was:" >&5
4838sed 's/^/| /' conftest.$ac_ext >&5
4839
4840 # Passes both tests.
4841ac_preproc_ok=:
4842break
4843fi
4844
4845rm -f conftest.err conftest.$ac_ext
4846
4847done
4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849rm -f conftest.err conftest.$ac_ext
4850if $ac_preproc_ok; then
4851 break
4852fi
4853
4854 done
4855 ac_cv_prog_CPP=$CPP
4856
4857fi
4858 CPP=$ac_cv_prog_CPP
4859else
4860 ac_cv_prog_CPP=$CPP
4861fi
4862{ echo "$as_me:$LINENO: result: $CPP" >&5
4863echo "${ECHO_T}$CPP" >&6; }
4864ac_preproc_ok=false
4865for ac_c_preproc_warn_flag in '' yes
4866do
4867 # Use a header file that comes with gcc, so configuring glibc
4868 # with a fresh cross-compiler works.
4869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4870 # <limits.h> exists even on freestanding compilers.
4871 # On the NeXT, cc -E runs the code through the compiler's parser,
4872 # not just through cpp. "Syntax error" is here to catch this case.
4873 cat >conftest.$ac_ext <<_ACEOF
4874/* confdefs.h. */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h. */
4879#ifdef __STDC__
4880# include <limits.h>
4881#else
4882# include <assert.h>
4883#endif
4884 Syntax error
4885_ACEOF
4886if { (ac_try="$ac_cpp conftest.$ac_ext"
4887case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890esac
4891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004898 (exit $ac_status); } >/dev/null && {
4899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004902 :
4903else
4904 echo "$as_me: failed program was:" >&5
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 # Broken: fails on valid input.
4908continue
4909fi
4910
4911rm -f conftest.err conftest.$ac_ext
4912
4913 # OK, works on sane cases. Now check whether nonexistent headers
4914 # can be detected and how.
4915 cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h. */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4920/* end confdefs.h. */
4921#include <ac_nonexistent.h>
4922_ACEOF
4923if { (ac_try="$ac_cpp conftest.$ac_ext"
4924case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927esac
4928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00004935 (exit $ac_status); } >/dev/null && {
4936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004939 # Broken: success on invalid input.
4940continue
4941else
4942 echo "$as_me: failed program was:" >&5
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 # Passes both tests.
4946ac_preproc_ok=:
4947break
4948fi
4949
4950rm -f conftest.err conftest.$ac_ext
4951
4952done
4953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954rm -f conftest.err conftest.$ac_ext
4955if $ac_preproc_ok; then
4956 :
4957else
4958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4959See \`config.log' for more details." >&5
4960echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4961See \`config.log' for more details." >&2;}
4962 { (exit 1); exit 1; }; }
4963fi
4964
4965ac_ext=c
4966ac_cpp='$CPP $CPPFLAGS'
4967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970
4971ac_ext=c
4972ac_cpp='$CPP $CPPFLAGS'
4973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976if test -n "$ac_tool_prefix"; then
4977 for ac_prog in gcc
4978 do
4979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4983if test "${ac_cv_prog_CC+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986 if test -n "$CC"; then
4987 ac_cv_prog_CC="$CC" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00004995 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 +00004996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001done
5002IFS=$as_save_IFS
5003
5004fi
5005fi
5006CC=$ac_cv_prog_CC
5007if test -n "$CC"; then
5008 { echo "$as_me:$LINENO: result: $CC" >&5
5009echo "${ECHO_T}$CC" >&6; }
5010else
5011 { echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6; }
5013fi
5014
5015
5016 test -n "$CC" && break
5017 done
5018fi
5019if test -z "$CC"; then
5020 ac_ct_CC=$CC
5021 for ac_prog in gcc
5022do
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024set dummy $ac_prog; ac_word=$2
5025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030 if test -n "$ac_ct_CC"; then
5031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005039 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 +00005040 ac_cv_prog_ac_ct_CC="$ac_prog"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045done
5046IFS=$as_save_IFS
5047
5048fi
5049fi
5050ac_ct_CC=$ac_cv_prog_ac_ct_CC
5051if test -n "$ac_ct_CC"; then
5052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5053echo "${ECHO_T}$ac_ct_CC" >&6; }
5054else
5055 { echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6; }
5057fi
5058
5059
5060 test -n "$ac_ct_CC" && break
5061done
5062
5063 if test "x$ac_ct_CC" = x; then
5064 CC=""
5065 else
5066 case $cross_compiling:$ac_tool_warned in
5067yes:)
5068{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5069whose name does not start with the host triplet. If you think this
5070configuration is useful to you, please write to autoconf@gnu.org." >&5
5071echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5072whose name does not start with the host triplet. If you think this
5073configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5074ac_tool_warned=yes ;;
5075esac
5076 CC=$ac_ct_CC
5077 fi
5078fi
5079
5080
5081test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5082See \`config.log' for more details." >&5
5083echo "$as_me: error: no acceptable C compiler found in \$PATH
5084See \`config.log' for more details." >&2;}
5085 { (exit 1); exit 1; }; }
5086
5087# Provide some information about the compiler.
5088echo "$as_me:$LINENO: checking for C compiler version" >&5
5089ac_compiler=`set X $ac_compile; echo $2`
5090{ (ac_try="$ac_compiler --version >&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 --version >&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{ (ac_try="$ac_compiler -V >&5"
5111case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114esac
5115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_compiler -V >&5") 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }
5120
5121{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5122echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5123if test "${ac_cv_c_compiler_gnu+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125else
5126 cat >conftest.$ac_ext <<_ACEOF
5127/* confdefs.h. */
5128_ACEOF
5129cat confdefs.h >>conftest.$ac_ext
5130cat >>conftest.$ac_ext <<_ACEOF
5131/* end confdefs.h. */
5132
5133int
5134main ()
5135{
5136#ifndef __GNUC__
5137 choke me
5138#endif
5139
5140 ;
5141 return 0;
5142}
5143_ACEOF
5144rm -f conftest.$ac_objext
5145if { (ac_try="$ac_compile"
5146case "(($ac_try" in
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5149esac
5150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_compile") 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005157 (exit $ac_status); } && {
5158 test -z "$ac_c_werror_flag" ||
5159 test ! -s conftest.err
5160 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005161 ac_compiler_gnu=yes
5162else
5163 echo "$as_me: failed program was:" >&5
5164sed 's/^/| /' conftest.$ac_ext >&5
5165
5166 ac_compiler_gnu=no
5167fi
5168
5169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170ac_cv_c_compiler_gnu=$ac_compiler_gnu
5171
5172fi
5173{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5174echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5175GCC=`test $ac_compiler_gnu = yes && echo yes`
5176ac_test_CFLAGS=${CFLAGS+set}
5177ac_save_CFLAGS=$CFLAGS
5178{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5179echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5180if test "${ac_cv_prog_cc_g+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182else
5183 ac_save_c_werror_flag=$ac_c_werror_flag
5184 ac_c_werror_flag=yes
5185 ac_cv_prog_cc_g=no
5186 CFLAGS="-g"
5187 cat >conftest.$ac_ext <<_ACEOF
5188/* confdefs.h. */
5189_ACEOF
5190cat confdefs.h >>conftest.$ac_ext
5191cat >>conftest.$ac_ext <<_ACEOF
5192/* end confdefs.h. */
5193
5194int
5195main ()
5196{
5197
5198 ;
5199 return 0;
5200}
5201_ACEOF
5202rm -f conftest.$ac_objext
5203if { (ac_try="$ac_compile"
5204case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207esac
5208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_compile") 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005215 (exit $ac_status); } && {
5216 test -z "$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5218 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005219 ac_cv_prog_cc_g=yes
5220else
5221 echo "$as_me: failed program was:" >&5
5222sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 CFLAGS=""
5225 cat >conftest.$ac_ext <<_ACEOF
5226/* confdefs.h. */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h. */
5231
5232int
5233main ()
5234{
5235
5236 ;
5237 return 0;
5238}
5239_ACEOF
5240rm -f conftest.$ac_objext
5241if { (ac_try="$ac_compile"
5242case "(($ac_try" in
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5245esac
5246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_compile") 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005253 (exit $ac_status); } && {
5254 test -z "$ac_c_werror_flag" ||
5255 test ! -s conftest.err
5256 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005257 :
5258else
5259 echo "$as_me: failed program was:" >&5
5260sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_c_werror_flag=$ac_save_c_werror_flag
5263 CFLAGS="-g"
5264 cat >conftest.$ac_ext <<_ACEOF
5265/* confdefs.h. */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
5269/* end confdefs.h. */
5270
5271int
5272main ()
5273{
5274
5275 ;
5276 return 0;
5277}
5278_ACEOF
5279rm -f conftest.$ac_objext
5280if { (ac_try="$ac_compile"
5281case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284esac
5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_compile") 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005292 (exit $ac_status); } && {
5293 test -z "$ac_c_werror_flag" ||
5294 test ! -s conftest.err
5295 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005296 ac_cv_prog_cc_g=yes
5297else
5298 echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301
5302fi
5303
5304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305fi
5306
5307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308fi
5309
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 ac_c_werror_flag=$ac_save_c_werror_flag
5312fi
5313{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5314echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5315if test "$ac_test_CFLAGS" = set; then
5316 CFLAGS=$ac_save_CFLAGS
5317elif test $ac_cv_prog_cc_g = yes; then
5318 if test "$GCC" = yes; then
5319 CFLAGS="-g -O2"
5320 else
5321 CFLAGS="-g"
5322 fi
5323else
5324 if test "$GCC" = yes; then
5325 CFLAGS="-O2"
5326 else
5327 CFLAGS=
5328 fi
5329fi
5330{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5331echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5332if test "${ac_cv_prog_cc_c89+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335 ac_cv_prog_cc_c89=no
5336ac_save_CC=$CC
5337cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h. */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h. */
5343#include <stdarg.h>
5344#include <stdio.h>
5345#include <sys/types.h>
5346#include <sys/stat.h>
5347/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5348struct buf { int x; };
5349FILE * (*rcsopen) (struct buf *, struct stat *, int);
5350static char *e (p, i)
5351 char **p;
5352 int i;
5353{
5354 return p[i];
5355}
5356static char *f (char * (*g) (char **, int), char **p, ...)
5357{
5358 char *s;
5359 va_list v;
5360 va_start (v,p);
5361 s = g (p, va_arg (v,int));
5362 va_end (v);
5363 return s;
5364}
5365
5366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5367 function prototypes and stuff, but not '\xHH' hex character constants.
5368 These don't provoke an error unfortunately, instead are silently treated
5369 as 'x'. The following induces an error, until -std is added to get
5370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5371 array size at least. It's necessary to write '\x00'==0 to get something
5372 that's true only with -std. */
5373int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5374
5375/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5376 inside strings and character constants. */
5377#define FOO(x) 'x'
5378int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5379
5380int test (int i, double x);
5381struct s1 {int (*f) (int a);};
5382struct s2 {int (*f) (double a);};
5383int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5384int argc;
5385char **argv;
5386int
5387main ()
5388{
5389return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5390 ;
5391 return 0;
5392}
5393_ACEOF
5394for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5395 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5396do
5397 CC="$ac_save_CC $ac_arg"
5398 rm -f conftest.$ac_objext
5399if { (ac_try="$ac_compile"
5400case "(($ac_try" in
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5403esac
5404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005411 (exit $ac_status); } && {
5412 test -z "$ac_c_werror_flag" ||
5413 test ! -s conftest.err
5414 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005415 ac_cv_prog_cc_c89=$ac_arg
5416else
5417 echo "$as_me: failed program was:" >&5
5418sed 's/^/| /' conftest.$ac_ext >&5
5419
5420
5421fi
5422
5423rm -f core conftest.err conftest.$ac_objext
5424 test "x$ac_cv_prog_cc_c89" != "xno" && break
5425done
5426rm -f conftest.$ac_ext
5427CC=$ac_save_CC
5428
5429fi
5430# AC_CACHE_VAL
5431case "x$ac_cv_prog_cc_c89" in
5432 x)
5433 { echo "$as_me:$LINENO: result: none needed" >&5
5434echo "${ECHO_T}none needed" >&6; } ;;
5435 xno)
5436 { echo "$as_me:$LINENO: result: unsupported" >&5
5437echo "${ECHO_T}unsupported" >&6; } ;;
5438 *)
5439 CC="$CC $ac_cv_prog_cc_c89"
5440 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5441echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5442esac
5443
5444
5445ac_ext=c
5446ac_cpp='$CPP $CPPFLAGS'
5447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5449ac_compiler_gnu=$ac_cv_c_compiler_gnu
5450
5451ac_ext=cpp
5452ac_cpp='$CXXCPP $CPPFLAGS'
5453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5456if test -z "$CXX"; then
5457 if test -n "$CCC"; then
5458 CXX=$CCC
5459 else
5460 if test -n "$ac_tool_prefix"; then
5461 for ac_prog in g++
5462 do
5463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5464set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5467if test "${ac_cv_prog_CXX+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470 if test -n "$CXX"; then
5471 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5472else
5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005479 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 +00005480 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5483 fi
5484done
5485done
5486IFS=$as_save_IFS
5487
5488fi
5489fi
5490CXX=$ac_cv_prog_CXX
5491if test -n "$CXX"; then
5492 { echo "$as_me:$LINENO: result: $CXX" >&5
5493echo "${ECHO_T}$CXX" >&6; }
5494else
5495 { echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6; }
5497fi
5498
5499
5500 test -n "$CXX" && break
5501 done
5502fi
5503if test -z "$CXX"; then
5504 ac_ct_CXX=$CXX
5505 for ac_prog in g++
5506do
5507 # Extract the first word of "$ac_prog", so it can be a program name with args.
5508set dummy $ac_prog; ac_word=$2
5509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5511if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513else
5514 if test -n "$ac_ct_CXX"; then
5515 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5516else
5517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518for as_dir in $PATH
5519do
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005523 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 +00005524 ac_cv_prog_ac_ct_CXX="$ac_prog"
5525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5527 fi
5528done
5529done
5530IFS=$as_save_IFS
5531
5532fi
5533fi
5534ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5535if test -n "$ac_ct_CXX"; then
5536 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5537echo "${ECHO_T}$ac_ct_CXX" >&6; }
5538else
5539 { echo "$as_me:$LINENO: result: no" >&5
5540echo "${ECHO_T}no" >&6; }
5541fi
5542
5543
5544 test -n "$ac_ct_CXX" && break
5545done
5546
5547 if test "x$ac_ct_CXX" = x; then
5548 CXX="g++"
5549 else
5550 case $cross_compiling:$ac_tool_warned in
5551yes:)
5552{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5553whose name does not start with the host triplet. If you think this
5554configuration is useful to you, please write to autoconf@gnu.org." >&5
5555echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5556whose name does not start with the host triplet. If you think this
5557configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5558ac_tool_warned=yes ;;
5559esac
5560 CXX=$ac_ct_CXX
5561 fi
5562fi
5563
5564 fi
5565fi
5566# Provide some information about the compiler.
5567echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5568ac_compiler=`set X $ac_compile; echo $2`
5569{ (ac_try="$ac_compiler --version >&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 --version >&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{ (ac_try="$ac_compiler -V >&5"
5590case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593esac
5594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_compiler -V >&5") 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }
5599
5600{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5601echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5602if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605 cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h. */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h. */
5611
5612int
5613main ()
5614{
5615#ifndef __GNUC__
5616 choke me
5617#endif
5618
5619 ;
5620 return 0;
5621}
5622_ACEOF
5623rm -f conftest.$ac_objext
5624if { (ac_try="$ac_compile"
5625case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628esac
5629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005636 (exit $ac_status); } && {
5637 test -z "$ac_cxx_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005640 ac_compiler_gnu=yes
5641else
5642 echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_compiler_gnu=no
5646fi
5647
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5650
5651fi
5652{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5653echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5654GXX=`test $ac_compiler_gnu = yes && echo yes`
5655ac_test_CXXFLAGS=${CXXFLAGS+set}
5656ac_save_CXXFLAGS=$CXXFLAGS
5657{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5658echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5659if test "${ac_cv_prog_cxx_g+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5663 ac_cxx_werror_flag=yes
5664 ac_cv_prog_cxx_g=no
5665 CXXFLAGS="-g"
5666 cat >conftest.$ac_ext <<_ACEOF
5667/* confdefs.h. */
5668_ACEOF
5669cat confdefs.h >>conftest.$ac_ext
5670cat >>conftest.$ac_ext <<_ACEOF
5671/* end confdefs.h. */
5672
5673int
5674main ()
5675{
5676
5677 ;
5678 return 0;
5679}
5680_ACEOF
5681rm -f conftest.$ac_objext
5682if { (ac_try="$ac_compile"
5683case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686esac
5687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005694 (exit $ac_status); } && {
5695 test -z "$ac_cxx_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005698 ac_cv_prog_cxx_g=yes
5699else
5700 echo "$as_me: failed program was:" >&5
5701sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 CXXFLAGS=""
5704 cat >conftest.$ac_ext <<_ACEOF
5705/* confdefs.h. */
5706_ACEOF
5707cat confdefs.h >>conftest.$ac_ext
5708cat >>conftest.$ac_ext <<_ACEOF
5709/* end confdefs.h. */
5710
5711int
5712main ()
5713{
5714
5715 ;
5716 return 0;
5717}
5718_ACEOF
5719rm -f conftest.$ac_objext
5720if { (ac_try="$ac_compile"
5721case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724esac
5725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005732 (exit $ac_status); } && {
5733 test -z "$ac_cxx_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005736 :
5737else
5738 echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5742 CXXFLAGS="-g"
5743 cat >conftest.$ac_ext <<_ACEOF
5744/* confdefs.h. */
5745_ACEOF
5746cat confdefs.h >>conftest.$ac_ext
5747cat >>conftest.$ac_ext <<_ACEOF
5748/* end confdefs.h. */
5749
5750int
5751main ()
5752{
5753
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext
5759if { (ac_try="$ac_compile"
5760case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5763esac
5764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_compile") 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005771 (exit $ac_status); } && {
5772 test -z "$ac_cxx_werror_flag" ||
5773 test ! -s conftest.err
5774 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005775 ac_cv_prog_cxx_g=yes
5776else
5777 echo "$as_me: failed program was:" >&5
5778sed 's/^/| /' conftest.$ac_ext >&5
5779
5780
5781fi
5782
5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784fi
5785
5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787fi
5788
5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5791fi
5792{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5793echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5794if test "$ac_test_CXXFLAGS" = set; then
5795 CXXFLAGS=$ac_save_CXXFLAGS
5796elif test $ac_cv_prog_cxx_g = yes; then
5797 if test "$GXX" = yes; then
5798 CXXFLAGS="-g -O2"
5799 else
5800 CXXFLAGS="-g"
5801 fi
5802else
5803 if test "$GXX" = yes; then
5804 CXXFLAGS="-O2"
5805 else
5806 CXXFLAGS=
5807 fi
5808fi
5809ac_ext=c
5810ac_cpp='$CPP $CPPFLAGS'
5811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814
5815{ echo "$as_me:$LINENO: checking " >&5
5816echo $ECHO_N "checking ... $ECHO_C" >&6; }
5817if test "${ac_cv_has_flex+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819else
5820 for ac_prog in flex lex
5821do
5822 # Extract the first word of "$ac_prog", so it can be a program name with args.
5823set dummy $ac_prog; ac_word=$2
5824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826if test "${ac_cv_prog_LEX+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828else
5829 if test -n "$LEX"; then
5830 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5831else
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00005838 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 +00005839 ac_cv_prog_LEX="$ac_prog"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5842 fi
5843done
5844done
5845IFS=$as_save_IFS
5846
5847fi
5848fi
5849LEX=$ac_cv_prog_LEX
5850if test -n "$LEX"; then
5851 { echo "$as_me:$LINENO: result: $LEX" >&5
5852echo "${ECHO_T}$LEX" >&6; }
5853else
5854 { echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6; }
5856fi
5857
5858
5859 test -n "$LEX" && break
5860done
5861test -n "$LEX" || LEX=":"
5862
Reid Spencera773bd52006-08-04 18:18:08 +00005863if test "x$LEX" != "x:"; then
Scott Michel96dcd2b2007-12-05 21:24:02 +00005864 cat >conftest.l <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005865%%
Scott Michel96dcd2b2007-12-05 21:24:02 +00005866a { ECHO; }
5867b { REJECT; }
5868c { yymore (); }
5869d { yyless (1); }
5870e { yyless (input () != 0); }
5871f { unput (yytext[0]); }
5872. { BEGIN INITIAL; }
Reid Spencera773bd52006-08-04 18:18:08 +00005873%%
Scott Michel96dcd2b2007-12-05 21:24:02 +00005874#ifdef YYTEXT_POINTER
5875extern char *yytext;
5876#endif
5877int
5878main (void)
5879{
5880 return ! yylex () + ! yywrap ();
5881}
Reid Spencera773bd52006-08-04 18:18:08 +00005882_ACEOF
5883{ (ac_try="$LEX conftest.l"
5884case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$LEX conftest.l") 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }
Scott Michel96dcd2b2007-12-05 21:24:02 +00005893{ echo "$as_me:$LINENO: checking lex output file root" >&5
5894echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5895if test "${ac_cv_prog_lex_root+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897else
5898
Reid Spencera773bd52006-08-04 18:18:08 +00005899if test -f lex.yy.c; then
5900 ac_cv_prog_lex_root=lex.yy
5901elif test -f lexyy.c; then
5902 ac_cv_prog_lex_root=lexyy
5903else
5904 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5905echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5906 { (exit 1); exit 1; }; }
5907fi
5908fi
5909{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5910echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005911LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5912
Scott Michel96dcd2b2007-12-05 21:24:02 +00005913if test -z "${LEXLIB+set}"; then
5914 { echo "$as_me:$LINENO: checking lex library" >&5
5915echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5916if test "${ac_cv_lib_lex+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918else
Scott Michel96dcd2b2007-12-05 21:24:02 +00005919
5920 ac_save_LIBS=$LIBS
5921 ac_cv_lib_lex='none needed'
5922 for ac_lib in '' -lfl -ll; do
5923 LIBS="$ac_lib $ac_save_LIBS"
5924 cat >conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005925`cat $LEX_OUTPUT_ROOT.c`
5926_ACEOF
5927rm -f conftest.$ac_objext conftest$ac_exeext
5928if { (ac_try="$ac_link"
5929case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_link") 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005940 (exit $ac_status); } && {
5941 test -z "$ac_c_werror_flag" ||
5942 test ! -s conftest.err
5943 } && test -s conftest$ac_exeext &&
5944 $as_test_x conftest$ac_exeext; then
5945 ac_cv_lib_lex=$ac_lib
5946else
5947 echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
5949
5950
5951fi
5952
5953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5954 conftest$ac_exeext conftest.$ac_ext
5955 test "$ac_cv_lib_lex" != 'none needed' && break
5956 done
5957 LIBS=$ac_save_LIBS
5958
5959fi
5960{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5961echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5962 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5963fi
5964
5965
5966{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5967echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5968if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971 # POSIX says lex can declare yytext either as a pointer or an array; the
5972# default is implementation-dependent. Figure out which it is, since
5973# not all implementations provide the %pointer and %array declarations.
5974ac_cv_prog_lex_yytext_pointer=no
5975ac_save_LIBS=$LIBS
5976LIBS="$LEXLIB $ac_save_LIBS"
5977cat >conftest.$ac_ext <<_ACEOF
5978#define YYTEXT_POINTER 1
5979`cat $LEX_OUTPUT_ROOT.c`
5980_ACEOF
5981rm -f conftest.$ac_objext conftest$ac_exeext
5982if { (ac_try="$ac_link"
5983case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00005984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986esac
5987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005988 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00005989 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00005990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00005994 (exit $ac_status); } && {
5995 test -z "$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest$ac_exeext &&
5998 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005999 ac_cv_prog_lex_yytext_pointer=yes
6000else
6001 echo "$as_me: failed program was:" >&5
6002sed 's/^/| /' conftest.$ac_ext >&5
6003
6004
6005fi
6006
Scott Michel96dcd2b2007-12-05 21:24:02 +00006007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00006008 conftest$ac_exeext conftest.$ac_ext
6009LIBS=$ac_save_LIBS
Reid Spencera773bd52006-08-04 18:18:08 +00006010
6011fi
6012{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6013echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6014if test $ac_cv_prog_lex_yytext_pointer = yes; then
6015
6016cat >>confdefs.h <<\_ACEOF
6017#define YYTEXT_POINTER 1
6018_ACEOF
6019
6020fi
Scott Michel96dcd2b2007-12-05 21:24:02 +00006021rm -f conftest.l $LEX_OUTPUT_ROOT.c
Reid Spencera773bd52006-08-04 18:18:08 +00006022
6023fi
6024
6025fi
6026{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6027echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6028if test "$LEX" != "flex"; then
6029 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6030echo "$as_me: error: flex not found but required" >&2;}
6031 { (exit 1); exit 1; }; }
6032else
6033 FLEX=flex
6034
6035fi
6036
6037{ echo "$as_me:$LINENO: checking " >&5
6038echo $ECHO_N "checking ... $ECHO_C" >&6; }
6039if test "${llvm_cv_has_bison+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042 for ac_prog in 'bison -y' byacc
6043do
6044 # Extract the first word of "$ac_prog", so it can be a program name with args.
6045set dummy $ac_prog; ac_word=$2
6046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048if test "${ac_cv_prog_YACC+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051 if test -n "$YACC"; then
6052 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006060 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 +00006061 ac_cv_prog_YACC="$ac_prog"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065done
6066done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071YACC=$ac_cv_prog_YACC
6072if test -n "$YACC"; then
6073 { echo "$as_me:$LINENO: result: $YACC" >&5
6074echo "${ECHO_T}$YACC" >&6; }
6075else
6076 { echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6; }
6078fi
6079
6080
6081 test -n "$YACC" && break
6082done
6083test -n "$YACC" || YACC="yacc"
6084
6085fi
6086{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6087echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6088if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006089
6090 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6091echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006092else
6093 BISON=bison
6094
6095fi
6096
6097{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6098echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6099if test "${lt_cv_path_NM+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101else
6102 if test -n "$NM"; then
6103 # Let the user override the test.
6104 lt_cv_path_NM="$NM"
6105else
6106 lt_nm_to_check="${ac_tool_prefix}nm"
6107 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6108 lt_nm_to_check="$lt_nm_to_check nm"
6109 fi
6110 for lt_tmp_nm in $lt_nm_to_check; do
6111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6112 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6113 IFS="$lt_save_ifs"
6114 test -z "$ac_dir" && ac_dir=.
6115 tmp_nm="$ac_dir/$lt_tmp_nm"
6116 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6117 # Check to see if the nm accepts a BSD-compat flag.
6118 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6119 # nm: unknown option "B" ignored
6120 # Tru64's nm complains that /dev/null is an invalid object file
6121 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6122 */dev/null* | *'Invalid file or object type'*)
6123 lt_cv_path_NM="$tmp_nm -B"
6124 break
6125 ;;
6126 *)
6127 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6128 */dev/null*)
6129 lt_cv_path_NM="$tmp_nm -p"
6130 break
6131 ;;
6132 *)
6133 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6134 continue # so that we can try to find one that supports BSD flags
6135 ;;
6136 esac
6137 ;;
6138 esac
6139 fi
6140 done
6141 IFS="$lt_save_ifs"
6142 done
6143 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6144fi
6145fi
6146{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6147echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6148NM="$lt_cv_path_NM"
6149
6150
6151
6152{ echo "$as_me:$LINENO: checking for GNU make" >&5
6153echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6154if test "${llvm_cv_gnu_make_command+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156else
6157 llvm_cv_gnu_make_command=''
6158 for a in "$MAKE" make gmake gnumake ; do
6159 if test -z "$a" ; then continue ; fi ;
6160 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6161 then
6162 llvm_cv_gnu_make_command=$a ;
6163 break;
6164 fi
6165 done
6166fi
6167{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6168echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6169 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6170 ifGNUmake='' ;
6171 else
6172 ifGNUmake='#' ;
6173 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6174echo "${ECHO_T}\"Not found\"" >&6; };
6175 fi
6176
6177
6178{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6179echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6180LN_S=$as_ln_s
6181if test "$LN_S" = "ln -s"; then
6182 { echo "$as_me:$LINENO: result: yes" >&5
6183echo "${ECHO_T}yes" >&6; }
6184else
6185 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6186echo "${ECHO_T}no, using $LN_S" >&6; }
6187fi
6188
6189# Extract the first word of "cmp", so it can be a program name with args.
6190set dummy cmp; ac_word=$2
6191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193if test "${ac_cv_path_CMP+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196 case $CMP in
6197 [\\/]* | ?:[\\/]*)
6198 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6199 ;;
6200 *)
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006207 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 +00006208 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212done
6213done
6214IFS=$as_save_IFS
6215
6216 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6217 ;;
6218esac
6219fi
6220CMP=$ac_cv_path_CMP
6221if test -n "$CMP"; then
6222 { echo "$as_me:$LINENO: result: $CMP" >&5
6223echo "${ECHO_T}$CMP" >&6; }
6224else
6225 { echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6; }
6227fi
6228
6229
6230# Extract the first word of "cp", so it can be a program name with args.
6231set dummy cp; ac_word=$2
6232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234if test "${ac_cv_path_CP+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236else
6237 case $CP in
6238 [\\/]* | ?:[\\/]*)
6239 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6240 ;;
6241 *)
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006248 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 +00006249 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253done
6254done
6255IFS=$as_save_IFS
6256
6257 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6258 ;;
6259esac
6260fi
6261CP=$ac_cv_path_CP
6262if test -n "$CP"; then
6263 { echo "$as_me:$LINENO: result: $CP" >&5
6264echo "${ECHO_T}$CP" >&6; }
6265else
6266 { echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6; }
6268fi
6269
6270
6271# Extract the first word of "date", so it can be a program name with args.
6272set dummy date; ac_word=$2
6273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_path_DATE+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278 case $DATE in
6279 [\\/]* | ?:[\\/]*)
6280 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6281 ;;
6282 *)
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006289 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 +00006290 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6293 fi
6294done
6295done
6296IFS=$as_save_IFS
6297
6298 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6299 ;;
6300esac
6301fi
6302DATE=$ac_cv_path_DATE
6303if test -n "$DATE"; then
6304 { echo "$as_me:$LINENO: result: $DATE" >&5
6305echo "${ECHO_T}$DATE" >&6; }
6306else
6307 { echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6; }
6309fi
6310
6311
6312# Extract the first word of "find", so it can be a program name with args.
6313set dummy find; ac_word=$2
6314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316if test "${ac_cv_path_FIND+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319 case $FIND in
6320 [\\/]* | ?:[\\/]*)
6321 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6322 ;;
6323 *)
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006330 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 +00006331 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335done
6336done
6337IFS=$as_save_IFS
6338
6339 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6340 ;;
6341esac
6342fi
6343FIND=$ac_cv_path_FIND
6344if test -n "$FIND"; then
6345 { echo "$as_me:$LINENO: result: $FIND" >&5
6346echo "${ECHO_T}$FIND" >&6; }
6347else
6348 { echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6; }
6350fi
6351
6352
6353# Extract the first word of "grep", so it can be a program name with args.
6354set dummy grep; ac_word=$2
6355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357if test "${ac_cv_path_GREP+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360 case $GREP in
6361 [\\/]* | ?:[\\/]*)
6362 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6363 ;;
6364 *)
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006371 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 +00006372 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6375 fi
6376done
6377done
6378IFS=$as_save_IFS
6379
6380 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6381 ;;
6382esac
6383fi
6384GREP=$ac_cv_path_GREP
6385if test -n "$GREP"; then
6386 { echo "$as_me:$LINENO: result: $GREP" >&5
6387echo "${ECHO_T}$GREP" >&6; }
6388else
6389 { echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6; }
6391fi
6392
6393
6394# Extract the first word of "mkdir", so it can be a program name with args.
6395set dummy mkdir; ac_word=$2
6396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398if test "${ac_cv_path_MKDIR+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401 case $MKDIR in
6402 [\\/]* | ?:[\\/]*)
6403 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6404 ;;
6405 *)
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006412 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 +00006413 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6416 fi
6417done
6418done
6419IFS=$as_save_IFS
6420
6421 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6422 ;;
6423esac
6424fi
6425MKDIR=$ac_cv_path_MKDIR
6426if test -n "$MKDIR"; then
6427 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6428echo "${ECHO_T}$MKDIR" >&6; }
6429else
6430 { echo "$as_me:$LINENO: result: no" >&5
6431echo "${ECHO_T}no" >&6; }
6432fi
6433
6434
6435# Extract the first word of "mv", so it can be a program name with args.
6436set dummy mv; ac_word=$2
6437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439if test "${ac_cv_path_MV+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441else
6442 case $MV in
6443 [\\/]* | ?:[\\/]*)
6444 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6445 ;;
6446 *)
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006453 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 +00006454 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458done
6459done
6460IFS=$as_save_IFS
6461
6462 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6463 ;;
6464esac
6465fi
6466MV=$ac_cv_path_MV
6467if test -n "$MV"; then
6468 { echo "$as_me:$LINENO: result: $MV" >&5
6469echo "${ECHO_T}$MV" >&6; }
6470else
6471 { echo "$as_me:$LINENO: result: no" >&5
6472echo "${ECHO_T}no" >&6; }
6473fi
6474
6475
6476if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6478set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481if test "${ac_cv_prog_RANLIB+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483else
6484 if test -n "$RANLIB"; then
6485 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6486else
6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006493 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 +00006494 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498done
6499done
6500IFS=$as_save_IFS
6501
6502fi
6503fi
6504RANLIB=$ac_cv_prog_RANLIB
6505if test -n "$RANLIB"; then
6506 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6507echo "${ECHO_T}$RANLIB" >&6; }
6508else
6509 { echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6; }
6511fi
6512
6513
6514fi
6515if test -z "$ac_cv_prog_RANLIB"; then
6516 ac_ct_RANLIB=$RANLIB
6517 # Extract the first word of "ranlib", so it can be a program name with args.
6518set dummy ranlib; ac_word=$2
6519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524 if test -n "$ac_ct_RANLIB"; then
6525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6526else
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006533 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 +00006534 ac_cv_prog_ac_ct_RANLIB="ranlib"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6537 fi
6538done
6539done
6540IFS=$as_save_IFS
6541
6542fi
6543fi
6544ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6545if test -n "$ac_ct_RANLIB"; then
6546 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6547echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6548else
6549 { echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6; }
6551fi
6552
6553 if test "x$ac_ct_RANLIB" = x; then
6554 RANLIB=":"
6555 else
6556 case $cross_compiling:$ac_tool_warned in
6557yes:)
6558{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6559whose name does not start with the host triplet. If you think this
6560configuration is useful to you, please write to autoconf@gnu.org." >&5
6561echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6562whose name does not start with the host triplet. If you think this
6563configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6564ac_tool_warned=yes ;;
6565esac
6566 RANLIB=$ac_ct_RANLIB
6567 fi
6568else
6569 RANLIB="$ac_cv_prog_RANLIB"
6570fi
6571
6572# Extract the first word of "rm", so it can be a program name with args.
6573set dummy rm; ac_word=$2
6574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576if test "${ac_cv_path_RM+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579 case $RM in
6580 [\\/]* | ?:[\\/]*)
6581 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6582 ;;
6583 *)
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006590 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 +00006591 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6594 fi
6595done
6596done
6597IFS=$as_save_IFS
6598
6599 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6600 ;;
6601esac
6602fi
6603RM=$ac_cv_path_RM
6604if test -n "$RM"; then
6605 { echo "$as_me:$LINENO: result: $RM" >&5
6606echo "${ECHO_T}$RM" >&6; }
6607else
6608 { echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6; }
6610fi
6611
6612
6613# Extract the first word of "sed", so it can be a program name with args.
6614set dummy sed; ac_word=$2
6615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617if test "${ac_cv_path_SED+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619else
6620 case $SED in
6621 [\\/]* | ?:[\\/]*)
6622 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6623 ;;
6624 *)
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006631 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 +00006632 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636done
6637done
6638IFS=$as_save_IFS
6639
6640 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6641 ;;
6642esac
6643fi
6644SED=$ac_cv_path_SED
6645if test -n "$SED"; then
6646 { echo "$as_me:$LINENO: result: $SED" >&5
6647echo "${ECHO_T}$SED" >&6; }
6648else
6649 { echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6; }
6651fi
6652
6653
6654# Extract the first word of "tar", so it can be a program name with args.
6655set dummy tar; ac_word=$2
6656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658if test "${ac_cv_path_TAR+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661 case $TAR in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6664 ;;
6665 *)
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006672 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 +00006673 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679IFS=$as_save_IFS
6680
6681 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6682 ;;
6683esac
6684fi
6685TAR=$ac_cv_path_TAR
6686if test -n "$TAR"; then
6687 { echo "$as_me:$LINENO: result: $TAR" >&5
6688echo "${ECHO_T}$TAR" >&6; }
6689else
6690 { echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6; }
6692fi
6693
6694
6695# Extract the first word of "pwd", so it can be a program name with args.
6696set dummy pwd; ac_word=$2
6697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699if test "${ac_cv_path_BINPWD+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702 case $BINPWD in
6703 [\\/]* | ?:[\\/]*)
6704 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6705 ;;
6706 *)
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006713 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 +00006714 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6723 ;;
6724esac
6725fi
6726BINPWD=$ac_cv_path_BINPWD
6727if test -n "$BINPWD"; then
6728 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6729echo "${ECHO_T}$BINPWD" >&6; }
6730else
6731 { echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6; }
6733fi
6734
6735
6736
6737# Extract the first word of "Graphviz", so it can be a program name with args.
6738set dummy Graphviz; ac_word=$2
6739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744 case $GRAPHVIZ in
6745 [\\/]* | ?:[\\/]*)
6746 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6747 ;;
6748 *)
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006755 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 +00006756 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760done
6761done
6762IFS=$as_save_IFS
6763
6764 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6765 ;;
6766esac
6767fi
6768GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6769if test -n "$GRAPHVIZ"; then
6770 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6771echo "${ECHO_T}$GRAPHVIZ" >&6; }
6772else
6773 { echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6; }
6775fi
6776
6777
6778if test "$GRAPHVIZ" != "echo Graphviz" ; then
6779
6780cat >>confdefs.h <<\_ACEOF
6781#define HAVE_GRAPHVIZ 1
6782_ACEOF
6783
Jeff Cohen28783c32007-01-12 18:22:38 +00006784 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006785 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6786 fi
6787
6788cat >>confdefs.h <<_ACEOF
6789#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6790_ACEOF
6791
6792fi
6793# Extract the first word of "dot", so it can be a program name with args.
6794set dummy dot; ac_word=$2
6795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797if test "${ac_cv_path_DOT+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else
6800 case $DOT in
6801 [\\/]* | ?:[\\/]*)
6802 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6803 ;;
6804 *)
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006811 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 +00006812 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816done
6817done
6818IFS=$as_save_IFS
6819
6820 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6821 ;;
6822esac
6823fi
6824DOT=$ac_cv_path_DOT
6825if test -n "$DOT"; then
6826 { echo "$as_me:$LINENO: result: $DOT" >&5
6827echo "${ECHO_T}$DOT" >&6; }
6828else
6829 { echo "$as_me:$LINENO: result: no" >&5
6830echo "${ECHO_T}no" >&6; }
6831fi
6832
6833
6834if test "$DOT" != "echo dot" ; then
6835
6836cat >>confdefs.h <<\_ACEOF
6837#define HAVE_DOT 1
6838_ACEOF
6839
Jeff Cohen28783c32007-01-12 18:22:38 +00006840 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006841 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6842 fi
6843
6844cat >>confdefs.h <<_ACEOF
6845#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6846_ACEOF
6847
6848fi
6849for ac_prog in gv gsview32
6850do
6851 # Extract the first word of "$ac_prog", so it can be a program name with args.
6852set dummy $ac_prog; ac_word=$2
6853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855if test "${ac_cv_path_GV+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858 case $GV in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6861 ;;
6862 *)
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006869 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 +00006870 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874done
6875done
6876IFS=$as_save_IFS
6877
6878 ;;
6879esac
6880fi
6881GV=$ac_cv_path_GV
6882if test -n "$GV"; then
6883 { echo "$as_me:$LINENO: result: $GV" >&5
6884echo "${ECHO_T}$GV" >&6; }
6885else
6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888fi
6889
6890
6891 test -n "$GV" && break
6892done
6893test -n "$GV" || GV="echo gv"
6894
6895if test "$GV" != "echo gv" ; then
6896
6897cat >>confdefs.h <<\_ACEOF
6898#define HAVE_GV 1
6899_ACEOF
6900
Jeff Cohen28783c32007-01-12 18:22:38 +00006901 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006902 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6903 fi
6904
6905cat >>confdefs.h <<_ACEOF
6906#define LLVM_PATH_GV "$GV${EXEEXT}"
6907_ACEOF
6908
6909fi
6910# Extract the first word of "dotty", so it can be a program name with args.
6911set dummy dotty; ac_word=$2
6912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914if test "${ac_cv_path_DOTTY+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916else
6917 case $DOTTY in
6918 [\\/]* | ?:[\\/]*)
6919 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6920 ;;
6921 *)
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006928 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 +00006929 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934done
6935IFS=$as_save_IFS
6936
6937 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6938 ;;
6939esac
6940fi
6941DOTTY=$ac_cv_path_DOTTY
6942if test -n "$DOTTY"; then
6943 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6944echo "${ECHO_T}$DOTTY" >&6; }
6945else
6946 { echo "$as_me:$LINENO: result: no" >&5
6947echo "${ECHO_T}no" >&6; }
6948fi
6949
6950
6951if test "$DOTTY" != "echo dotty" ; then
6952
6953cat >>confdefs.h <<\_ACEOF
6954#define HAVE_DOTTY 1
6955_ACEOF
6956
Jeff Cohen28783c32007-01-12 18:22:38 +00006957 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006958 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6959 fi
6960
6961cat >>confdefs.h <<_ACEOF
6962#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6963_ACEOF
6964
6965fi
6966
6967
6968# Extract the first word of "perl", so it can be a program name with args.
6969set dummy perl; ac_word=$2
6970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972if test "${ac_cv_path_PERL+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975 case $PERL in
6976 [\\/]* | ?:[\\/]*)
6977 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6978 ;;
6979 *)
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH
6982do
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00006986 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 +00006987 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 break 2
6990 fi
6991done
6992done
6993IFS=$as_save_IFS
6994
6995 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6996 ;;
6997esac
6998fi
6999PERL=$ac_cv_path_PERL
7000if test -n "$PERL"; then
7001 { echo "$as_me:$LINENO: result: $PERL" >&5
7002echo "${ECHO_T}$PERL" >&6; }
7003else
7004 { echo "$as_me:$LINENO: result: no" >&5
7005echo "${ECHO_T}no" >&6; }
7006fi
7007
7008
7009if test "$PERL" != "none"; then
7010 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7011echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7012 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7013 { echo "$as_me:$LINENO: result: yes" >&5
7014echo "${ECHO_T}yes" >&6; }
7015 else
7016 PERL=none
7017 { echo "$as_me:$LINENO: result: not found" >&5
7018echo "${ECHO_T}not found" >&6; }
7019 fi
7020fi
7021
7022
7023if test x"$PERL" = xnone; then
7024 HAVE_PERL=0
7025
Reid Spencer59807fa2007-05-17 18:11:03 +00007026 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7027echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7028 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007029else
7030 HAVE_PERL=1
7031
7032fi
7033
7034# Find a good install program. We prefer a C program (faster),
7035# so one script is as good as another. But avoid the broken or
7036# incompatible versions:
7037# SysV /etc/install, /usr/sbin/install
7038# SunOS /usr/etc/install
7039# IRIX /sbin/install
7040# AIX /bin/install
7041# AmigaOS /C/install, which installs bootblocks on floppy discs
7042# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7043# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7044# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7045# OS/2's system install, which has a completely different semantic
7046# ./install, which can be erroneously created by make from ./install.sh.
7047{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7048echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7049if test -z "$INSTALL"; then
7050if test "${ac_cv_path_install+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 # Account for people who put trailing slashes in PATH elements.
7059case $as_dir/ in
7060 ./ | .// | /cC/* | \
7061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7062 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7063 /usr/ucb/* ) ;;
7064 *)
7065 # OSF1 and SCO ODT 3.0 have their own names for install.
7066 # Don't use installbsd from OSF since it installs stuff as root
7067 # by default.
7068 for ac_prog in ginstall scoinst install; do
7069 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007070 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 +00007071 if test $ac_prog = install &&
7072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7073 # AIX install. It has an incompatible calling convention.
7074 :
7075 elif test $ac_prog = install &&
7076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7077 # program-specific install script used by HP pwplus--don't use.
7078 :
7079 else
7080 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7081 break 3
7082 fi
7083 fi
7084 done
7085 done
7086 ;;
7087esac
7088done
7089IFS=$as_save_IFS
7090
7091
7092fi
7093 if test "${ac_cv_path_install+set}" = set; then
7094 INSTALL=$ac_cv_path_install
7095 else
7096 # As a last resort, use the slow shell script. Don't cache a
7097 # value for INSTALL within a source directory, because that will
7098 # break other packages using the cache if that directory is
7099 # removed, or if the value is a relative name.
7100 INSTALL=$ac_install_sh
7101 fi
7102fi
7103{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7104echo "${ECHO_T}$INSTALL" >&6; }
7105
7106# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7107# It thinks the first close brace ends the variable substitution.
7108test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7109
7110test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7111
7112test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7113
7114
7115# Extract the first word of "bzip2", so it can be a program name with args.
7116set dummy bzip2; ac_word=$2
7117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7119if test "${ac_cv_path_BZIP2+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121else
7122 case $BZIP2 in
7123 [\\/]* | ?:[\\/]*)
7124 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7125 ;;
7126 *)
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007133 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 +00007134 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138done
7139done
7140IFS=$as_save_IFS
7141
7142 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7143 ;;
7144esac
7145fi
7146BZIP2=$ac_cv_path_BZIP2
7147if test -n "$BZIP2"; then
7148 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7149echo "${ECHO_T}$BZIP2" >&6; }
7150else
7151 { echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6; }
7153fi
7154
7155
7156# Extract the first word of "doxygen", so it can be a program name with args.
7157set dummy doxygen; ac_word=$2
7158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160if test "${ac_cv_path_DOXYGEN+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162else
7163 case $DOXYGEN in
7164 [\\/]* | ?:[\\/]*)
7165 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7166 ;;
7167 *)
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007174 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 +00007175 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179done
7180done
7181IFS=$as_save_IFS
7182
7183 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7184 ;;
7185esac
7186fi
7187DOXYGEN=$ac_cv_path_DOXYGEN
7188if test -n "$DOXYGEN"; then
7189 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7190echo "${ECHO_T}$DOXYGEN" >&6; }
7191else
7192 { echo "$as_me:$LINENO: result: no" >&5
7193echo "${ECHO_T}no" >&6; }
7194fi
7195
7196
Reid Spencera773bd52006-08-04 18:18:08 +00007197# Extract the first word of "groff", so it can be a program name with args.
7198set dummy groff; ac_word=$2
7199{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201if test "${ac_cv_path_GROFF+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203else
7204 case $GROFF in
7205 [\\/]* | ?:[\\/]*)
7206 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7207 ;;
7208 *)
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007215 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 +00007216 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220done
7221done
7222IFS=$as_save_IFS
7223
7224 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7225 ;;
7226esac
7227fi
7228GROFF=$ac_cv_path_GROFF
7229if test -n "$GROFF"; then
7230 { echo "$as_me:$LINENO: result: $GROFF" >&5
7231echo "${ECHO_T}$GROFF" >&6; }
7232else
7233 { echo "$as_me:$LINENO: result: no" >&5
7234echo "${ECHO_T}no" >&6; }
7235fi
7236
7237
7238# Extract the first word of "gzip", so it can be a program name with args.
7239set dummy gzip; ac_word=$2
7240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242if test "${ac_cv_path_GZIP+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244else
7245 case $GZIP in
7246 [\\/]* | ?:[\\/]*)
7247 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7248 ;;
7249 *)
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007256 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 +00007257 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261done
7262done
7263IFS=$as_save_IFS
7264
7265 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7266 ;;
7267esac
7268fi
7269GZIP=$ac_cv_path_GZIP
7270if test -n "$GZIP"; then
7271 { echo "$as_me:$LINENO: result: $GZIP" >&5
7272echo "${ECHO_T}$GZIP" >&6; }
7273else
7274 { echo "$as_me:$LINENO: result: no" >&5
7275echo "${ECHO_T}no" >&6; }
7276fi
7277
7278
7279# Extract the first word of "pod2html", so it can be a program name with args.
7280set dummy pod2html; ac_word=$2
7281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7283if test "${ac_cv_path_POD2HTML+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286 case $POD2HTML in
7287 [\\/]* | ?:[\\/]*)
7288 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7289 ;;
7290 *)
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007297 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 +00007298 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302done
7303done
7304IFS=$as_save_IFS
7305
7306 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7307 ;;
7308esac
7309fi
7310POD2HTML=$ac_cv_path_POD2HTML
7311if test -n "$POD2HTML"; then
7312 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7313echo "${ECHO_T}$POD2HTML" >&6; }
7314else
7315 { echo "$as_me:$LINENO: result: no" >&5
7316echo "${ECHO_T}no" >&6; }
7317fi
7318
7319
7320# Extract the first word of "pod2man", so it can be a program name with args.
7321set dummy pod2man; ac_word=$2
7322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324if test "${ac_cv_path_POD2MAN+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327 case $POD2MAN in
7328 [\\/]* | ?:[\\/]*)
7329 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7330 ;;
7331 *)
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333for as_dir in $PATH
7334do
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007338 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 +00007339 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343done
7344done
7345IFS=$as_save_IFS
7346
7347 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7348 ;;
7349esac
7350fi
7351POD2MAN=$ac_cv_path_POD2MAN
7352if test -n "$POD2MAN"; then
7353 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7354echo "${ECHO_T}$POD2MAN" >&6; }
7355else
7356 { echo "$as_me:$LINENO: result: no" >&5
7357echo "${ECHO_T}no" >&6; }
7358fi
7359
7360
7361# Extract the first word of "runtest", so it can be a program name with args.
7362set dummy runtest; ac_word=$2
7363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7365if test "${ac_cv_path_RUNTEST+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367else
7368 case $RUNTEST in
7369 [\\/]* | ?:[\\/]*)
7370 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7371 ;;
7372 *)
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007379 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 +00007380 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384done
7385done
7386IFS=$as_save_IFS
7387
7388 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7389 ;;
7390esac
7391fi
7392RUNTEST=$ac_cv_path_RUNTEST
7393if test -n "$RUNTEST"; then
7394 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7395echo "${ECHO_T}$RUNTEST" >&6; }
7396else
7397 { echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6; }
7399fi
7400
7401
7402
7403no_itcl=true
7404{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7405echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7406
7407# Check whether --with-tclinclude was given.
7408if test "${with_tclinclude+set}" = set; then
7409 withval=$with_tclinclude; with_tclinclude=${withval}
7410else
7411 with_tclinclude=''
7412fi
7413
7414if test "${ac_cv_path_tclsh+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416else
7417
7418if test x"${with_tclinclude}" != x ; then
7419 if test -f ${with_tclinclude}/tclsh ; then
7420 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7421 elif test -f ${with_tclinclude}/src/tclsh ; then
7422 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7423 else
7424 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7425echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7426 { (exit 1); exit 1; }; }
7427 fi
7428fi
7429
7430if test x"${ac_cv_path_tclsh}" = x ; then
7431 { echo "$as_me:$LINENO: result: none" >&5
7432echo "${ECHO_T}none" >&6; }
7433 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
7434do
7435 # Extract the first word of "$ac_prog", so it can be a program name with args.
7436set dummy $ac_prog; ac_word=$2
7437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439if test "${ac_cv_path_TCLSH+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441else
7442 case $TCLSH in
7443 [\\/]* | ?:[\\/]*)
7444 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7445 ;;
7446 *)
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007453 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 +00007454 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7457 fi
7458done
7459done
7460IFS=$as_save_IFS
7461
7462 ;;
7463esac
7464fi
7465TCLSH=$ac_cv_path_TCLSH
7466if test -n "$TCLSH"; then
7467 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7468echo "${ECHO_T}$TCLSH" >&6; }
7469else
7470 { echo "$as_me:$LINENO: result: no" >&5
7471echo "${ECHO_T}no" >&6; }
7472fi
7473
7474
7475 test -n "$TCLSH" && break
7476done
7477
7478 if test x"${TCLSH}" = x ; then
7479 ac_cv_path_tclsh='';
7480 else
7481 ac_cv_path_tclsh="${TCLSH}";
7482 fi
7483else
7484 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7485echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7486 TCLSH="${ac_cv_path_tclsh}"
7487
7488fi
7489
7490fi
7491
7492# Extract the first word of "zip", so it can be a program name with args.
7493set dummy zip; ac_word=$2
7494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496if test "${ac_cv_path_ZIP+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499 case $ZIP in
7500 [\\/]* | ?:[\\/]*)
7501 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7502 ;;
7503 *)
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007510 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 +00007511 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515done
7516done
7517IFS=$as_save_IFS
7518
7519 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7520 ;;
7521esac
7522fi
7523ZIP=$ac_cv_path_ZIP
7524if test -n "$ZIP"; then
7525 { echo "$as_me:$LINENO: result: $ZIP" >&5
7526echo "${ECHO_T}$ZIP" >&6; }
7527else
7528 { echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6; }
7530fi
7531
7532
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007533# Extract the first word of "ocamlc", so it can be a program name with args.
7534set dummy ocamlc; ac_word=$2
7535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537if test "${ac_cv_path_OCAMLC+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7539else
7540 case $OCAMLC in
7541 [\\/]* | ?:[\\/]*)
7542 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7543 ;;
7544 *)
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007551 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 +00007552 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7555 fi
7556done
7557done
7558IFS=$as_save_IFS
7559
7560 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7561 ;;
7562esac
7563fi
7564OCAMLC=$ac_cv_path_OCAMLC
7565if test -n "$OCAMLC"; then
7566 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7567echo "${ECHO_T}$OCAMLC" >&6; }
7568else
7569 { echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6; }
7571fi
7572
7573
7574# Extract the first word of "ocamlopt", so it can be a program name with args.
7575set dummy ocamlopt; ac_word=$2
7576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581 case $OCAMLOPT in
7582 [\\/]* | ?:[\\/]*)
7583 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7584 ;;
7585 *)
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007592 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 +00007593 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597done
7598done
7599IFS=$as_save_IFS
7600
7601 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7602 ;;
7603esac
7604fi
7605OCAMLOPT=$ac_cv_path_OCAMLOPT
7606if test -n "$OCAMLOPT"; then
7607 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7608echo "${ECHO_T}$OCAMLOPT" >&6; }
7609else
7610 { echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6; }
7612fi
7613
7614
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007615# Extract the first word of "ocamldep", so it can be a program name with args.
7616set dummy ocamldep; ac_word=$2
7617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7619if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622 case $OCAMLDEP in
7623 [\\/]* | ?:[\\/]*)
7624 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7625 ;;
7626 *)
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +00007633 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 +00007634 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638done
7639done
7640IFS=$as_save_IFS
7641
7642 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
7643 ;;
7644esac
7645fi
7646OCAMLDEP=$ac_cv_path_OCAMLDEP
7647if test -n "$OCAMLDEP"; then
7648 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7649echo "${ECHO_T}$OCAMLDEP" >&6; }
7650else
7651 { echo "$as_me:$LINENO: result: no" >&5
7652echo "${ECHO_T}no" >&6; }
7653fi
7654
7655
Reid Spencera773bd52006-08-04 18:18:08 +00007656
7657{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7658echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7659if test "${llvm_cv_link_use_r+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661else
7662 ac_ext=c
7663ac_cpp='$CPP $CPPFLAGS'
7664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7666ac_compiler_gnu=$ac_cv_c_compiler_gnu
7667
7668 oldcflags="$CFLAGS"
7669 CFLAGS="$CFLAGS -Wl,-R."
7670 cat >conftest.$ac_ext <<_ACEOF
7671/* confdefs.h. */
7672_ACEOF
7673cat confdefs.h >>conftest.$ac_ext
7674cat >>conftest.$ac_ext <<_ACEOF
7675/* end confdefs.h. */
7676
7677int
7678main ()
7679{
7680int main() { return 0; }
7681 ;
7682 return 0;
7683}
7684_ACEOF
7685rm -f conftest.$ac_objext conftest$ac_exeext
7686if { (ac_try="$ac_link"
7687case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_link") 2>conftest.er1
7693 ac_status=$?
7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest$ac_exeext &&
7702 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007703 llvm_cv_link_use_r=yes
7704else
7705 echo "$as_me: failed program was:" >&5
7706sed 's/^/| /' conftest.$ac_ext >&5
7707
7708 llvm_cv_link_use_r=no
7709fi
7710
Scott Michel96dcd2b2007-12-05 21:24:02 +00007711rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00007712 conftest$ac_exeext conftest.$ac_ext
7713 CFLAGS="$oldcflags"
7714 ac_ext=c
7715ac_cpp='$CPP $CPPFLAGS'
7716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718ac_compiler_gnu=$ac_cv_c_compiler_gnu
7719
7720
7721fi
7722{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7723echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7724if test "$llvm_cv_link_use_r" = yes ; then
7725
7726cat >>confdefs.h <<\_ACEOF
7727#define HAVE_LINK_R 1
7728_ACEOF
7729
7730 fi
7731
7732
7733
7734
7735{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7736echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7737if test "${ac_cv_c_const+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740 cat >conftest.$ac_ext <<_ACEOF
7741/* confdefs.h. */
7742_ACEOF
7743cat confdefs.h >>conftest.$ac_ext
7744cat >>conftest.$ac_ext <<_ACEOF
7745/* end confdefs.h. */
7746
7747int
7748main ()
7749{
7750/* FIXME: Include the comments suggested by Paul. */
7751#ifndef __cplusplus
7752 /* Ultrix mips cc rejects this. */
7753 typedef int charset[2];
Scott Michel96dcd2b2007-12-05 21:24:02 +00007754 const charset cs;
Reid Spencera773bd52006-08-04 18:18:08 +00007755 /* SunOS 4.1.1 cc rejects this. */
Scott Michel96dcd2b2007-12-05 21:24:02 +00007756 char const *const *pcpcc;
7757 char **ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00007758 /* NEC SVR4.0.2 mips cc rejects this. */
7759 struct point {int x, y;};
7760 static struct point const zero = {0,0};
7761 /* AIX XL C 1.02.0.0 rejects this.
7762 It does not let you subtract one const X* pointer from another in
7763 an arm of an if-expression whose if-part is not a constant
7764 expression */
7765 const char *g = "string";
Scott Michel96dcd2b2007-12-05 21:24:02 +00007766 pcpcc = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007767 /* HPUX 7.0 cc rejects these. */
Scott Michel96dcd2b2007-12-05 21:24:02 +00007768 ++pcpcc;
7769 ppc = (char**) pcpcc;
7770 pcpcc = (char const *const *) ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00007771 { /* SCO 3.2v4 cc rejects this. */
7772 char *t;
7773 char const *s = 0 ? (char *) 0 : (char const *) 0;
7774
7775 *t++ = 0;
7776 if (s) return 0;
7777 }
7778 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7779 int x[] = {25, 17};
7780 const int *foo = &x[0];
7781 ++foo;
7782 }
7783 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7784 typedef const int *iptr;
7785 iptr p = 0;
7786 ++p;
7787 }
7788 { /* AIX XL C 1.02.0.0 rejects this saying
7789 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7790 struct s { int j; const int *ap[3]; };
7791 struct s *b; b->j = 5;
7792 }
7793 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7794 const int foo = 10;
7795 if (!foo) return 0;
7796 }
Scott Michel96dcd2b2007-12-05 21:24:02 +00007797 return !cs[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007798#endif
7799
7800 ;
7801 return 0;
7802}
7803_ACEOF
7804rm -f conftest.$ac_objext
7805if { (ac_try="$ac_compile"
7806case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809esac
7810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_compile") 2>conftest.er1
7812 ac_status=$?
7813 grep -v '^ *+' conftest.er1 >conftest.err
7814 rm -f conftest.er1
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007817 (exit $ac_status); } && {
7818 test -z "$ac_c_werror_flag" ||
7819 test ! -s conftest.err
7820 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007821 ac_cv_c_const=yes
7822else
7823 echo "$as_me: failed program was:" >&5
7824sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 ac_cv_c_const=no
7827fi
7828
7829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830fi
7831{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7832echo "${ECHO_T}$ac_cv_c_const" >&6; }
7833if test $ac_cv_c_const = no; then
7834
7835cat >>confdefs.h <<\_ACEOF
7836#define const
7837_ACEOF
7838
7839fi
7840
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007841
7842
7843
7844
7845
7846ac_header_dirent=no
7847for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7848 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00007849{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7850echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854 cat >conftest.$ac_ext <<_ACEOF
7855/* confdefs.h. */
7856_ACEOF
7857cat confdefs.h >>conftest.$ac_ext
7858cat >>conftest.$ac_ext <<_ACEOF
7859/* end confdefs.h. */
7860#include <sys/types.h>
7861#include <$ac_hdr>
7862
7863int
7864main ()
7865{
7866if ((DIR *) 0)
7867return 0;
7868 ;
7869 return 0;
7870}
7871_ACEOF
7872rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00007873if { (ac_try="$ac_compile"
7874case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877esac
7878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007885 (exit $ac_status); } && {
7886 test -z "$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007889 eval "$as_ac_Header=yes"
7890else
7891 echo "$as_me: failed program was:" >&5
7892sed 's/^/| /' conftest.$ac_ext >&5
7893
Reid Spencera773bd52006-08-04 18:18:08 +00007894 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007895fi
Reid Spencera773bd52006-08-04 18:18:08 +00007896
7897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007898fi
Reid Spencera773bd52006-08-04 18:18:08 +00007899ac_res=`eval echo '${'$as_ac_Header'}'`
7900 { echo "$as_me:$LINENO: result: $ac_res" >&5
7901echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007902if test `eval echo '${'$as_ac_Header'}'` = yes; then
7903 cat >>confdefs.h <<_ACEOF
7904#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7905_ACEOF
7906
7907ac_header_dirent=$ac_hdr; break
7908fi
7909
7910done
7911# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7912if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00007913 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7914echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007915if test "${ac_cv_search_opendir+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007919cat >conftest.$ac_ext <<_ACEOF
7920/* confdefs.h. */
7921_ACEOF
7922cat confdefs.h >>conftest.$ac_ext
7923cat >>conftest.$ac_ext <<_ACEOF
7924/* end confdefs.h. */
7925
Reid Spencera773bd52006-08-04 18:18:08 +00007926/* Override any GCC internal prototype to avoid an error.
7927 Use char because int might match the return type of a GCC
7928 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007929#ifdef __cplusplus
7930extern "C"
7931#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007932char opendir ();
7933int
7934main ()
7935{
Reid Spencera773bd52006-08-04 18:18:08 +00007936return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007937 ;
7938 return 0;
7939}
7940_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007941for ac_lib in '' dir; do
7942 if test -z "$ac_lib"; then
7943 ac_res="none required"
7944 else
7945 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00007947 fi
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949if { (ac_try="$ac_link"
7950case "(($ac_try" in
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7953esac
7954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00007961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest$ac_exeext &&
7965 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007966 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007967else
7968 echo "$as_me: failed program was:" >&5
7969sed 's/^/| /' conftest.$ac_ext >&5
7970
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007971
7972fi
7973
Scott Michel96dcd2b2007-12-05 21:24:02 +00007974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00007975 conftest$ac_exeext
7976 if test "${ac_cv_search_opendir+set}" = set; then
7977 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007978fi
John Criswell7a73b802003-06-30 21:59:07 +00007979done
Reid Spencera773bd52006-08-04 18:18:08 +00007980if test "${ac_cv_search_opendir+set}" = set; then
7981 :
7982else
7983 ac_cv_search_opendir=no
7984fi
7985rm conftest.$ac_ext
7986LIBS=$ac_func_search_save_LIBS
7987fi
7988{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7989echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7990ac_res=$ac_cv_search_opendir
7991if test "$ac_res" != no; then
7992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00007993
Reid Spencera773bd52006-08-04 18:18:08 +00007994fi
7995
7996else
7997 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7998echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7999if test "${ac_cv_search_opendir+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001else
8002 ac_func_search_save_LIBS=$LIBS
8003cat >conftest.$ac_ext <<_ACEOF
8004/* confdefs.h. */
8005_ACEOF
8006cat confdefs.h >>conftest.$ac_ext
8007cat >>conftest.$ac_ext <<_ACEOF
8008/* end confdefs.h. */
8009
8010/* Override any GCC internal prototype to avoid an error.
8011 Use char because int might match the return type of a GCC
8012 builtin and then its argument prototype would still apply. */
8013#ifdef __cplusplus
8014extern "C"
8015#endif
8016char opendir ();
8017int
8018main ()
8019{
8020return opendir ();
8021 ;
8022 return 0;
8023}
8024_ACEOF
8025for ac_lib in '' x; do
8026 if test -z "$ac_lib"; then
8027 ac_res="none required"
8028 else
8029 ac_res=-l$ac_lib
8030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8031 fi
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033if { (ac_try="$ac_link"
8034case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8037esac
8038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_link") 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest$ac_exeext &&
8049 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00008050 ac_cv_search_opendir=$ac_res
8051else
8052 echo "$as_me: failed program was:" >&5
8053sed 's/^/| /' conftest.$ac_ext >&5
8054
8055
8056fi
8057
Scott Michel96dcd2b2007-12-05 21:24:02 +00008058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00008059 conftest$ac_exeext
8060 if test "${ac_cv_search_opendir+set}" = set; then
8061 break
8062fi
8063done
8064if test "${ac_cv_search_opendir+set}" = set; then
8065 :
8066else
8067 ac_cv_search_opendir=no
8068fi
8069rm conftest.$ac_ext
8070LIBS=$ac_func_search_save_LIBS
8071fi
8072{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8073echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8074ac_res=$ac_cv_search_opendir
8075if test "$ac_res" != no; then
8076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8077
8078fi
8079
8080fi
John Criswell7a73b802003-06-30 21:59:07 +00008081
8082
8083for ac_header in dlfcn.h
8084do
8085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008090 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008091fi
Reid Spencera773bd52006-08-04 18:18:08 +00008092ac_res=`eval echo '${'$as_ac_Header'}'`
8093 { echo "$as_me:$LINENO: result: $ac_res" >&5
8094echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008095else
Brian Gaeke0a621332004-09-08 20:38:05 +00008096 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008097{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008099cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008100/* confdefs.h. */
8101_ACEOF
8102cat confdefs.h >>conftest.$ac_ext
8103cat >>conftest.$ac_ext <<_ACEOF
8104/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008105$ac_includes_default
8106#include <$ac_header>
8107_ACEOF
8108rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008109if { (ac_try="$ac_compile"
8110case "(($ac_try" in
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8113esac
8114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008116 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008121 (exit $ac_status); } && {
8122 test -z "$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 } && test -s conftest.$ac_objext; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008125 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008126else
8127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008128sed 's/^/| /' conftest.$ac_ext >&5
8129
Reid Spencera773bd52006-08-04 18:18:08 +00008130 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008131fi
Reid Spencera773bd52006-08-04 18:18:08 +00008132
8133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8135echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008136
8137# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008138{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008140cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008141/* confdefs.h. */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h. */
8146#include <$ac_header>
8147_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008148if { (ac_try="$ac_cpp conftest.$ac_ext"
8149case "(($ac_try" in
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8152esac
8153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00008160 (exit $ac_status); } >/dev/null && {
8161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8163 }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008164 ac_header_preproc=yes
8165else
8166 echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169 ac_header_preproc=no
8170fi
Reid Spencera773bd52006-08-04 18:18:08 +00008171
Brian Gaeke0a621332004-09-08 20:38:05 +00008172rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008173{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8174echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008175
8176# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008177case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8178 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8180echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8182echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8183 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008184 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008185 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8187echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8189echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8191echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8193echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8195echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8197echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008198 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008199## ----------------------------------- ##
8200## Report this to llvmbugs@cs.uiuc.edu ##
8201## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008202_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008203 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008204 ;;
8205esac
Reid Spencera773bd52006-08-04 18:18:08 +00008206{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008211 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008212fi
Reid Spencera773bd52006-08-04 18:18:08 +00008213ac_res=`eval echo '${'$as_ac_Header'}'`
8214 { echo "$as_me:$LINENO: result: $ac_res" >&5
8215echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008216
8217fi
John Criswell7a73b802003-06-30 21:59:07 +00008218if test `eval echo '${'$as_ac_Header'}'` = yes; then
8219 cat >>confdefs.h <<_ACEOF
8220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8221_ACEOF
8222
8223fi
8224
8225done
8226
Reid Spencera773bd52006-08-04 18:18:08 +00008227# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008228if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008229 enableval=$enable_ltdl_install;
8230fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008231
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008232
Duncan Sands1eff7042007-12-10 17:43:13 +00008233
8234
8235if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008236 INSTALL_LTDL_TRUE=
8237 INSTALL_LTDL_FALSE='#'
8238else
8239 INSTALL_LTDL_TRUE='#'
8240 INSTALL_LTDL_FALSE=
8241fi
8242
Duncan Sands1eff7042007-12-10 17:43:13 +00008243
8244
8245if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008246 CONVENIENCE_LTDL_TRUE=
8247 CONVENIENCE_LTDL_FALSE='#'
8248else
8249 CONVENIENCE_LTDL_TRUE='#'
8250 CONVENIENCE_LTDL_FALSE=
8251fi
8252
8253
Reid Spencera773bd52006-08-04 18:18:08 +00008254{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8255echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008256library_names_spec=
8257libname_spec='lib$name'
8258soname_spec=
8259shrext_cmds=".so"
8260postinstall_cmds=
8261postuninstall_cmds=
8262finish_cmds=
8263finish_eval=
8264shlibpath_var=
8265shlibpath_overrides_runpath=unknown
8266version_type=none
8267dynamic_linker="$host_os ld.so"
8268sys_lib_dlsearch_path_spec="/lib /usr/lib"
8269if test "$GCC" = yes; then
8270 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8271 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8272 # if the path contains ";" then we assume it to be the separator
8273 # otherwise default to the standard path separator (i.e. ":") - it is
8274 # assumed that no part of a normal pathname contains ";" but that should
8275 # okay in the real world where ";" in dirpaths is itself problematic.
8276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8277 else
8278 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8279 fi
8280else
8281 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8282fi
8283need_lib_prefix=unknown
8284hardcode_into_libs=no
8285
8286# when you set need_version to no, make sure it does not cause -set_version
8287# flags to be left without arguments
8288need_version=unknown
8289
8290case $host_os in
8291aix3*)
8292 version_type=linux
8293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8294 shlibpath_var=LIBPATH
8295
8296 # AIX 3 has no versioning support, so we append a major version to the name.
8297 soname_spec='${libname}${release}${shared_ext}$major'
8298 ;;
8299
8300aix4* | aix5*)
8301 version_type=linux
8302 need_lib_prefix=no
8303 need_version=no
8304 hardcode_into_libs=yes
8305 if test "$host_cpu" = ia64; then
8306 # AIX 5 supports IA64
8307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8308 shlibpath_var=LD_LIBRARY_PATH
8309 else
8310 # With GCC up to 2.95.x, collect2 would create an import file
8311 # for dependence libraries. The import file would start with
8312 # the line `#! .'. This would cause the generated library to
8313 # depend on `.', always an invalid library. This was fixed in
8314 # development snapshots of GCC prior to 3.0.
8315 case $host_os in
8316 aix4 | aix4.[01] | aix4.[01].*)
8317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8318 echo ' yes '
8319 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8320 :
8321 else
8322 can_build_shared=no
8323 fi
8324 ;;
8325 esac
8326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8327 # soname into executable. Probably we can add versioning support to
8328 # collect2, so additional links can be useful in future.
8329 if test "$aix_use_runtimelinking" = yes; then
8330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8331 # instead of lib<name>.a to let people know that these are not
8332 # typical AIX shared libraries.
8333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8334 else
8335 # We preserve .a as extension for shared libraries through AIX4.2
8336 # and later when we are not doing run time linking.
8337 library_names_spec='${libname}${release}.a $libname.a'
8338 soname_spec='${libname}${release}${shared_ext}$major'
8339 fi
8340 shlibpath_var=LIBPATH
8341 fi
8342 ;;
8343
8344amigaos*)
8345 library_names_spec='$libname.ixlibrary $libname.a'
8346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8347 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'
8348 ;;
8349
8350beos*)
8351 library_names_spec='${libname}${shared_ext}'
8352 dynamic_linker="$host_os ld.so"
8353 shlibpath_var=LIBRARY_PATH
8354 ;;
8355
8356bsdi[45]*)
8357 version_type=linux
8358 need_version=no
8359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8360 soname_spec='${libname}${release}${shared_ext}$major'
8361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8362 shlibpath_var=LD_LIBRARY_PATH
8363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8365 # the default ld.so.conf also contains /usr/contrib/lib and
8366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8367 # libtool to hard-code these into programs
8368 ;;
8369
8370cygwin* | mingw* | pw32*)
8371 version_type=windows
8372 shrext_cmds=".dll"
8373 need_version=no
8374 need_lib_prefix=no
8375
8376 case $GCC,$host_os in
8377 yes,cygwin* | yes,mingw* | yes,pw32*)
8378 library_names_spec='$libname.dll.a'
8379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8380 postinstall_cmds='base_file=`basename \${file}`~
8381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8382 dldir=$destdir/`dirname \$dlpath`~
8383 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008384 $install_prog $dir/$dlname \$dldir/$dlname~
8385 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8387 dlpath=$dir/\$dldll~
8388 $rm \$dlpath'
8389 shlibpath_overrides_runpath=yes
8390
8391 case $host_os in
8392 cygwin*)
8393 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8395 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8396 ;;
8397 mingw*)
8398 # MinGW DLLs use traditional 'lib' prefix
8399 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8400 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8401 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8402 # It is most probably a Windows format PATH printed by
8403 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8404 # path with ; separators, and with drive letters. We can handle the
8405 # drive letters (cygwin fileutils understands them), so leave them,
8406 # especially as we might pass files found there to a mingw objdump,
8407 # which wouldn't understand a cygwinified path. Ahh.
8408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8409 else
8410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8411 fi
8412 ;;
8413 pw32*)
8414 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008415 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 +00008416 ;;
8417 esac
8418 ;;
8419
8420 *)
8421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8422 ;;
8423 esac
8424 dynamic_linker='Win32 ld.exe'
8425 # FIXME: first we should search . and the directory the executable is in
8426 shlibpath_var=PATH
8427 ;;
8428
8429darwin* | rhapsody*)
8430 dynamic_linker="$host_os dyld"
8431 version_type=darwin
8432 need_lib_prefix=no
8433 need_version=no
8434 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8435 soname_spec='${libname}${release}${major}$shared_ext'
8436 shlibpath_overrides_runpath=yes
8437 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008438 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008439 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8440 if test "$GCC" = yes; then
8441 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"`
8442 else
8443 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8444 fi
8445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8446 ;;
8447
8448dgux*)
8449 version_type=linux
8450 need_lib_prefix=no
8451 need_version=no
8452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8453 soname_spec='${libname}${release}${shared_ext}$major'
8454 shlibpath_var=LD_LIBRARY_PATH
8455 ;;
8456
8457freebsd1*)
8458 dynamic_linker=no
8459 ;;
8460
8461kfreebsd*-gnu)
8462 version_type=linux
8463 need_lib_prefix=no
8464 need_version=no
8465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8466 soname_spec='${libname}${release}${shared_ext}$major'
8467 shlibpath_var=LD_LIBRARY_PATH
8468 shlibpath_overrides_runpath=no
8469 hardcode_into_libs=yes
8470 dynamic_linker='GNU ld.so'
8471 ;;
8472
Reid Spencera773bd52006-08-04 18:18:08 +00008473freebsd* | dragonfly*)
8474 # DragonFly does not have aout. When/if they implement a new
8475 # versioning mechanism, adjust this.
8476 if test -x /usr/bin/objformat; then
8477 objformat=`/usr/bin/objformat`
8478 else
8479 case $host_os in
8480 freebsd[123]*) objformat=aout ;;
8481 *) objformat=elf ;;
8482 esac
8483 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008484 version_type=freebsd-$objformat
8485 case $version_type in
8486 freebsd-elf*)
8487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8488 need_version=no
8489 need_lib_prefix=no
8490 ;;
8491 freebsd-*)
8492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8493 need_version=yes
8494 ;;
8495 esac
8496 shlibpath_var=LD_LIBRARY_PATH
8497 case $host_os in
8498 freebsd2*)
8499 shlibpath_overrides_runpath=yes
8500 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008501 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008502 shlibpath_overrides_runpath=yes
8503 hardcode_into_libs=yes
8504 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008505 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8506 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008507 shlibpath_overrides_runpath=no
8508 hardcode_into_libs=yes
8509 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008510 freebsd*) # from 4.6 on
8511 shlibpath_overrides_runpath=yes
8512 hardcode_into_libs=yes
8513 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008514 esac
8515 ;;
8516
8517gnu*)
8518 version_type=linux
8519 need_lib_prefix=no
8520 need_version=no
8521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8522 soname_spec='${libname}${release}${shared_ext}$major'
8523 shlibpath_var=LD_LIBRARY_PATH
8524 hardcode_into_libs=yes
8525 ;;
8526
8527hpux9* | hpux10* | hpux11*)
8528 # Give a soname corresponding to the major version so that dld.sl refuses to
8529 # link against other versions.
8530 version_type=sunos
8531 need_lib_prefix=no
8532 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008533 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008534 ia64*)
8535 shrext_cmds='.so'
8536 hardcode_into_libs=yes
8537 dynamic_linker="$host_os dld.so"
8538 shlibpath_var=LD_LIBRARY_PATH
8539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8541 soname_spec='${libname}${release}${shared_ext}$major'
8542 if test "X$HPUX_IA64_MODE" = X32; then
8543 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8544 else
8545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8546 fi
8547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8548 ;;
8549 hppa*64*)
8550 shrext_cmds='.sl'
8551 hardcode_into_libs=yes
8552 dynamic_linker="$host_os dld.sl"
8553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8559 ;;
8560 *)
8561 shrext_cmds='.sl'
8562 dynamic_linker="$host_os dld.sl"
8563 shlibpath_var=SHLIB_PATH
8564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566 soname_spec='${libname}${release}${shared_ext}$major'
8567 ;;
8568 esac
8569 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8570 postinstall_cmds='chmod 555 $lib'
8571 ;;
8572
Reid Spencera773bd52006-08-04 18:18:08 +00008573interix3*)
8574 version_type=linux
8575 need_lib_prefix=no
8576 need_version=no
8577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8578 soname_spec='${libname}${release}${shared_ext}$major'
8579 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8580 shlibpath_var=LD_LIBRARY_PATH
8581 shlibpath_overrides_runpath=no
8582 hardcode_into_libs=yes
8583 ;;
8584
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008585irix5* | irix6* | nonstopux*)
8586 case $host_os in
8587 nonstopux*) version_type=nonstopux ;;
8588 *)
8589 if test "$lt_cv_prog_gnu_ld" = yes; then
8590 version_type=linux
8591 else
8592 version_type=irix
8593 fi ;;
8594 esac
8595 need_lib_prefix=no
8596 need_version=no
8597 soname_spec='${libname}${release}${shared_ext}$major'
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8599 case $host_os in
8600 irix5* | nonstopux*)
8601 libsuff= shlibsuff=
8602 ;;
8603 *)
8604 case $LD in # libtool.m4 will add one of these switches to LD
8605 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8606 libsuff= shlibsuff= libmagic=32-bit;;
8607 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8608 libsuff=32 shlibsuff=N32 libmagic=N32;;
8609 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8610 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8611 *) libsuff= shlibsuff= libmagic=never-match;;
8612 esac
8613 ;;
8614 esac
8615 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8616 shlibpath_overrides_runpath=no
8617 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8618 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8619 hardcode_into_libs=yes
8620 ;;
8621
8622# No shared lib support for Linux oldld, aout, or coff.
8623linux*oldld* | linux*aout* | linux*coff*)
8624 dynamic_linker=no
8625 ;;
8626
8627# This must be Linux ELF.
8628linux*)
8629 version_type=linux
8630 need_lib_prefix=no
8631 need_version=no
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8633 soname_spec='${libname}${release}${shared_ext}$major'
8634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8635 shlibpath_var=LD_LIBRARY_PATH
8636 shlibpath_overrides_runpath=no
8637 # This implies no fast_install, which is unacceptable.
8638 # Some rework will be needed to allow for fast_install
8639 # before this can be enabled.
8640 hardcode_into_libs=yes
8641
8642 # Append ld.so.conf contents to the search path
8643 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008644 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 +00008645 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8646 fi
8647
8648 # We used to test for /lib/ld.so.1 and disable shared libraries on
8649 # powerpc, because MkLinux only supported shared libraries with the
8650 # GNU dynamic linker. Since this was broken with cross compilers,
8651 # most powerpc-linux boxes support dynamic linking these days and
8652 # people can always --disable-shared, the test was removed, and we
8653 # assume the GNU/Linux dynamic linker is in use.
8654 dynamic_linker='GNU/Linux ld.so'
8655 ;;
8656
8657knetbsd*-gnu)
8658 version_type=linux
8659 need_lib_prefix=no
8660 need_version=no
8661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8662 soname_spec='${libname}${release}${shared_ext}$major'
8663 shlibpath_var=LD_LIBRARY_PATH
8664 shlibpath_overrides_runpath=no
8665 hardcode_into_libs=yes
8666 dynamic_linker='GNU ld.so'
8667 ;;
8668
8669netbsd*)
8670 version_type=sunos
8671 need_lib_prefix=no
8672 need_version=no
8673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8676 dynamic_linker='NetBSD (a.out) ld.so'
8677 else
8678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8679 soname_spec='${libname}${release}${shared_ext}$major'
8680 dynamic_linker='NetBSD ld.elf_so'
8681 fi
8682 shlibpath_var=LD_LIBRARY_PATH
8683 shlibpath_overrides_runpath=yes
8684 hardcode_into_libs=yes
8685 ;;
8686
8687newsos6)
8688 version_type=linux
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 shlibpath_var=LD_LIBRARY_PATH
8691 shlibpath_overrides_runpath=yes
8692 ;;
8693
8694nto-qnx*)
8695 version_type=linux
8696 need_lib_prefix=no
8697 need_version=no
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699 soname_spec='${libname}${release}${shared_ext}$major'
8700 shlibpath_var=LD_LIBRARY_PATH
8701 shlibpath_overrides_runpath=yes
8702 ;;
8703
8704openbsd*)
8705 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008706 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008707 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008708 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8709 case $host_os in
8710 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8711 *) need_version=no ;;
8712 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8715 shlibpath_var=LD_LIBRARY_PATH
8716 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8717 case $host_os in
8718 openbsd2.[89] | openbsd2.[89].*)
8719 shlibpath_overrides_runpath=no
8720 ;;
8721 *)
8722 shlibpath_overrides_runpath=yes
8723 ;;
8724 esac
8725 else
8726 shlibpath_overrides_runpath=yes
8727 fi
8728 ;;
8729
8730os2*)
8731 libname_spec='$name'
8732 shrext_cmds=".dll"
8733 need_lib_prefix=no
8734 library_names_spec='$libname${shared_ext} $libname.a'
8735 dynamic_linker='OS/2 ld.exe'
8736 shlibpath_var=LIBPATH
8737 ;;
8738
8739osf3* | osf4* | osf5*)
8740 version_type=osf
8741 need_lib_prefix=no
8742 need_version=no
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8745 shlibpath_var=LD_LIBRARY_PATH
8746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8748 ;;
8749
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008750solaris*)
8751 version_type=linux
8752 need_lib_prefix=no
8753 need_version=no
8754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8755 soname_spec='${libname}${release}${shared_ext}$major'
8756 shlibpath_var=LD_LIBRARY_PATH
8757 shlibpath_overrides_runpath=yes
8758 hardcode_into_libs=yes
8759 # ldd complains unless libraries are executable
8760 postinstall_cmds='chmod +x $lib'
8761 ;;
8762
8763sunos4*)
8764 version_type=sunos
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8766 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8767 shlibpath_var=LD_LIBRARY_PATH
8768 shlibpath_overrides_runpath=yes
8769 if test "$with_gnu_ld" = yes; then
8770 need_lib_prefix=no
8771 fi
8772 need_version=yes
8773 ;;
8774
Reid Spencera773bd52006-08-04 18:18:08 +00008775sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008776 version_type=linux
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8778 soname_spec='${libname}${release}${shared_ext}$major'
8779 shlibpath_var=LD_LIBRARY_PATH
8780 case $host_vendor in
8781 sni)
8782 shlibpath_overrides_runpath=no
8783 need_lib_prefix=no
8784 export_dynamic_flag_spec='${wl}-Blargedynsym'
8785 runpath_var=LD_RUN_PATH
8786 ;;
8787 siemens)
8788 need_lib_prefix=no
8789 ;;
8790 motorola)
8791 need_lib_prefix=no
8792 need_version=no
8793 shlibpath_overrides_runpath=no
8794 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8795 ;;
8796 esac
8797 ;;
8798
8799sysv4*MP*)
8800 if test -d /usr/nec ;then
8801 version_type=linux
8802 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8803 soname_spec='$libname${shared_ext}.$major'
8804 shlibpath_var=LD_LIBRARY_PATH
8805 fi
8806 ;;
8807
Reid Spencera773bd52006-08-04 18:18:08 +00008808sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8809 version_type=freebsd-elf
8810 need_lib_prefix=no
8811 need_version=no
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 hardcode_into_libs=yes
8816 if test "$with_gnu_ld" = yes; then
8817 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8818 shlibpath_overrides_runpath=no
8819 else
8820 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8821 shlibpath_overrides_runpath=yes
8822 case $host_os in
8823 sco3.2v5*)
8824 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8825 ;;
8826 esac
8827 fi
8828 sys_lib_dlsearch_path_spec='/usr/lib'
8829 ;;
8830
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831uts4*)
8832 version_type=linux
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834 soname_spec='${libname}${release}${shared_ext}$major'
8835 shlibpath_var=LD_LIBRARY_PATH
8836 ;;
8837
8838*)
8839 dynamic_linker=no
8840 ;;
8841esac
Reid Spencera773bd52006-08-04 18:18:08 +00008842{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8843echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008844test "$dynamic_linker" = no && can_build_shared=no
8845
Reid Spencera773bd52006-08-04 18:18:08 +00008846variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8847if test "$GCC" = yes; then
8848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8849fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008850
Reid Spencera773bd52006-08-04 18:18:08 +00008851
8852{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8853echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008854if test "${libltdl_cv_shlibext+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856else
8857
8858module=yes
8859eval libltdl_cv_shlibext=$shrext_cmds
8860
8861fi
Reid Spencera773bd52006-08-04 18:18:08 +00008862{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8863echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008864if test -n "$libltdl_cv_shlibext"; then
8865
8866cat >>confdefs.h <<_ACEOF
8867#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8868_ACEOF
8869
8870fi
8871
8872
Reid Spencera773bd52006-08-04 18:18:08 +00008873{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8874echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008875if test "${libltdl_cv_shlibpath_var+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877else
8878 libltdl_cv_shlibpath_var="$shlibpath_var"
8879fi
Reid Spencera773bd52006-08-04 18:18:08 +00008880{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8881echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008882if test -n "$libltdl_cv_shlibpath_var"; then
8883
8884cat >>confdefs.h <<_ACEOF
8885#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8886_ACEOF
8887
8888fi
8889
8890
Reid Spencera773bd52006-08-04 18:18:08 +00008891{ echo "$as_me:$LINENO: checking for the default library search path" >&5
8892echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008893if test "${libltdl_cv_sys_search_path+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895else
8896 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8897fi
Reid Spencera773bd52006-08-04 18:18:08 +00008898{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8899echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008900if test -n "$libltdl_cv_sys_search_path"; then
8901 sys_search_path=
8902 for dir in $libltdl_cv_sys_search_path; do
8903 if test -z "$sys_search_path"; then
8904 sys_search_path="$dir"
8905 else
8906 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8907 fi
8908 done
8909
8910cat >>confdefs.h <<_ACEOF
8911#define LTDL_SYSSEARCHPATH "$sys_search_path"
8912_ACEOF
8913
8914fi
8915
Reid Spencera773bd52006-08-04 18:18:08 +00008916{ echo "$as_me:$LINENO: checking for objdir" >&5
8917echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008918if test "${libltdl_cv_objdir+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920else
8921 libltdl_cv_objdir="$objdir"
8922 if test -n "$objdir"; then
8923 :
8924 else
8925 rm -f .libs 2>/dev/null
8926 mkdir .libs 2>/dev/null
8927 if test -d .libs; then
8928 libltdl_cv_objdir=.libs
8929 else
8930 # MS-DOS does not allow filenames that begin with a dot.
8931 libltdl_cv_objdir=_libs
8932 fi
8933 rmdir .libs 2>/dev/null
8934 fi
8935
8936fi
Reid Spencera773bd52006-08-04 18:18:08 +00008937{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8938echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008939
8940cat >>confdefs.h <<_ACEOF
8941#define LTDL_OBJDIR "$libltdl_cv_objdir/"
8942_ACEOF
8943
8944
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008945
8946
8947
8948
8949# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00008950{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8951echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008952if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8954else
8955
8956# These are sane defaults that work on at least a few old systems.
8957# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8958
8959# Character class describing NM global symbol codes.
8960symcode='[BCDEGRST]'
8961
8962# Regexp to match symbols that can be accessed directly from C.
8963sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8964
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008965# Transform an extracted symbol line into a proper C declaration
8966lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8967
8968# Transform an extracted symbol line into symbol name and symbol address
8969lt_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'"
8970
8971# Define system-specific variables.
8972case $host_os in
8973aix*)
8974 symcode='[BCDT]'
8975 ;;
8976cygwin* | mingw* | pw32*)
8977 symcode='[ABCDGISTW]'
8978 ;;
8979hpux*) # Its linker distinguishes data from code symbols
8980 if test "$host_cpu" = ia64; then
8981 symcode='[ABCDEGRST]'
8982 fi
8983 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8984 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'"
8985 ;;
8986linux*)
8987 if test "$host_cpu" = ia64; then
8988 symcode='[ABCDGIRSTW]'
8989 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8990 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'"
8991 fi
8992 ;;
8993irix* | nonstopux*)
8994 symcode='[BCDEGRST]'
8995 ;;
8996osf*)
8997 symcode='[BCDEGQRST]'
8998 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008999solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009000 symcode='[BDRT]'
9001 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009002sco3.2v5*)
9003 symcode='[DT]'
9004 ;;
9005sysv4.2uw2*)
9006 symcode='[DT]'
9007 ;;
9008sysv5* | sco5v6* | unixware* | OpenUNIX*)
9009 symcode='[ABDT]'
9010 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009011sysv4)
9012 symcode='[DFNSTU]'
9013 ;;
9014esac
9015
9016# Handle CRLF in mingw tool chain
9017opt_cr=
9018case $build_os in
9019mingw*)
9020 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9021 ;;
9022esac
9023
9024# If we're using GNU nm, then use its standard symbol codes.
9025case `$NM -V 2>&1` in
9026*GNU* | *'with BFD'*)
9027 symcode='[ABCDGIRSTW]' ;;
9028esac
9029
9030# Try without a prefix undercore, then with it.
9031for ac_symprfx in "" "_"; do
9032
Reid Spencera773bd52006-08-04 18:18:08 +00009033 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9034 symxfrm="\\1 $ac_symprfx\\2 \\2"
9035
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009036 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009037 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 +00009038
9039 # Check to see that the pipe works correctly.
9040 pipe_works=no
9041
9042 rm -f conftest*
9043 cat > conftest.$ac_ext <<EOF
9044#ifdef __cplusplus
9045extern "C" {
9046#endif
9047char nm_test_var;
9048void nm_test_func(){}
9049#ifdef __cplusplus
9050}
9051#endif
9052int main(){nm_test_var='a';nm_test_func();return(0);}
9053EOF
9054
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; then
9060 # Now try to grab the symbols.
9061 nlist=conftest.nm
9062 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9063 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } && test -s "$nlist"; then
9067 # Try sorting and uniquifying the output.
9068 if sort "$nlist" | uniq > "$nlist"T; then
9069 mv -f "$nlist"T "$nlist"
9070 else
9071 rm -f "$nlist"T
9072 fi
9073
9074 # Make sure that we snagged all the symbols we need.
9075 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9076 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9077 cat <<EOF > conftest.$ac_ext
9078#ifdef __cplusplus
9079extern "C" {
9080#endif
9081
9082EOF
9083 # Now generate the symbol file.
9084 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9085
9086 cat <<EOF >> conftest.$ac_ext
9087#if defined (__STDC__) && __STDC__
9088# define lt_ptr_t void *
9089#else
9090# define lt_ptr_t char *
9091# define const
9092#endif
9093
9094/* The mapping between symbol names and symbols. */
9095const struct {
9096 const char *name;
9097 lt_ptr_t address;
9098}
9099lt_preloaded_symbols[] =
9100{
9101EOF
9102 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9103 cat <<\EOF >> conftest.$ac_ext
9104 {0, (lt_ptr_t) 0}
9105};
9106
9107#ifdef __cplusplus
9108}
9109#endif
9110EOF
9111 # Now try linking the two files.
9112 mv conftest.$ac_objext conftstm.$ac_objext
9113 lt_save_LIBS="$LIBS"
9114 lt_save_CFLAGS="$CFLAGS"
9115 LIBS="conftstm.$ac_objext"
9116 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9122 pipe_works=yes
9123 fi
9124 LIBS="$lt_save_LIBS"
9125 CFLAGS="$lt_save_CFLAGS"
9126 else
9127 echo "cannot find nm_test_func in $nlist" >&5
9128 fi
9129 else
9130 echo "cannot find nm_test_var in $nlist" >&5
9131 fi
9132 else
9133 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9134 fi
9135 else
9136 echo "$progname: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9138 fi
9139 rm -f conftest* conftst*
9140
9141 # Do not use the global_symbol_pipe unless it works.
9142 if test "$pipe_works" = yes; then
9143 break
9144 else
9145 lt_cv_sys_global_symbol_pipe=
9146 fi
9147done
9148
9149fi
9150
9151if test -z "$lt_cv_sys_global_symbol_pipe"; then
9152 lt_cv_sys_global_symbol_to_cdecl=
9153fi
9154if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009155 { echo "$as_me:$LINENO: result: failed" >&5
9156echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009157else
Reid Spencera773bd52006-08-04 18:18:08 +00009158 { echo "$as_me:$LINENO: result: ok" >&5
9159echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009160fi
9161
9162
Reid Spencera773bd52006-08-04 18:18:08 +00009163{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9164echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009165if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9167else
9168 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9169 libltdl_cv_preloaded_symbols=yes
9170 else
9171 libltdl_cv_preloaded_symbols=no
9172 fi
9173
9174fi
Reid Spencera773bd52006-08-04 18:18:08 +00009175{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9176echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009177if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9178
9179cat >>confdefs.h <<\_ACEOF
9180#define HAVE_PRELOADED_SYMBOLS 1
9181_ACEOF
9182
9183fi
9184
9185LIBADD_DL=
9186
9187ac_ext=c
9188ac_cpp='$CPP $CPPFLAGS'
9189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9191ac_compiler_gnu=$ac_cv_c_compiler_gnu
9192
9193
Reid Spencera773bd52006-08-04 18:18:08 +00009194{ echo "$as_me:$LINENO: checking for shl_load" >&5
9195echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009196if test "${ac_cv_func_shl_load+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198else
9199 cat >conftest.$ac_ext <<_ACEOF
9200/* confdefs.h. */
9201_ACEOF
9202cat confdefs.h >>conftest.$ac_ext
9203cat >>conftest.$ac_ext <<_ACEOF
9204/* end confdefs.h. */
9205/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9207#define shl_load innocuous_shl_load
9208
9209/* System header to define __stub macros and hopefully few prototypes,
9210 which can conflict with char shl_load (); below.
9211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9212 <limits.h> exists even on freestanding compilers. */
9213
9214#ifdef __STDC__
9215# include <limits.h>
9216#else
9217# include <assert.h>
9218#endif
9219
9220#undef shl_load
9221
Reid Spencera773bd52006-08-04 18:18:08 +00009222/* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009225#ifdef __cplusplus
9226extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228char shl_load ();
9229/* The GNU C library defines this for functions which it implements
9230 to always fail with ENOSYS. Some functions are actually named
9231 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009232#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009233choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009234#endif
9235
9236int
9237main ()
9238{
Reid Spencera773bd52006-08-04 18:18:08 +00009239return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009240 ;
9241 return 0;
9242}
9243_ACEOF
9244rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009245if { (ac_try="$ac_link"
9246case "(($ac_try" in
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9249esac
9250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009252 ac_status=$?
9253 grep -v '^ *+' conftest.er1 >conftest.err
9254 rm -f conftest.er1
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009257 (exit $ac_status); } && {
9258 test -z "$ac_c_werror_flag" ||
9259 test ! -s conftest.err
9260 } && test -s conftest$ac_exeext &&
9261 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009262 ac_cv_func_shl_load=yes
9263else
9264 echo "$as_me: failed program was:" >&5
9265sed 's/^/| /' conftest.$ac_ext >&5
9266
Reid Spencera773bd52006-08-04 18:18:08 +00009267 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009268fi
Reid Spencera773bd52006-08-04 18:18:08 +00009269
Scott Michel96dcd2b2007-12-05 21:24:02 +00009270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009271 conftest$ac_exeext conftest.$ac_ext
9272fi
Reid Spencera773bd52006-08-04 18:18:08 +00009273{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9274echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275if test $ac_cv_func_shl_load = yes; then
9276
9277cat >>confdefs.h <<\_ACEOF
9278#define HAVE_SHL_LOAD 1
9279_ACEOF
9280
9281else
Reid Spencera773bd52006-08-04 18:18:08 +00009282 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9283echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009284if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286else
9287 ac_check_lib_save_LIBS=$LIBS
9288LIBS="-ldld $LIBS"
9289cat >conftest.$ac_ext <<_ACEOF
9290/* confdefs.h. */
9291_ACEOF
9292cat confdefs.h >>conftest.$ac_ext
9293cat >>conftest.$ac_ext <<_ACEOF
9294/* end confdefs.h. */
9295
Reid Spencera773bd52006-08-04 18:18:08 +00009296/* Override any GCC internal prototype to avoid an error.
9297 Use char because int might match the return type of a GCC
9298 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009299#ifdef __cplusplus
9300extern "C"
9301#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009302char shl_load ();
9303int
9304main ()
9305{
Reid Spencera773bd52006-08-04 18:18:08 +00009306return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307 ;
9308 return 0;
9309}
9310_ACEOF
9311rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009312if { (ac_try="$ac_link"
9313case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316esac
9317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319 ac_status=$?
9320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009324 (exit $ac_status); } && {
9325 test -z "$ac_c_werror_flag" ||
9326 test ! -s conftest.err
9327 } && test -s conftest$ac_exeext &&
9328 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009329 ac_cv_lib_dld_shl_load=yes
9330else
9331 echo "$as_me: failed program was:" >&5
9332sed 's/^/| /' conftest.$ac_ext >&5
9333
Reid Spencera773bd52006-08-04 18:18:08 +00009334 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009335fi
Reid Spencera773bd52006-08-04 18:18:08 +00009336
Scott Michel96dcd2b2007-12-05 21:24:02 +00009337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009338 conftest$ac_exeext conftest.$ac_ext
9339LIBS=$ac_check_lib_save_LIBS
9340fi
Reid Spencera773bd52006-08-04 18:18:08 +00009341{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9342echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343if test $ac_cv_lib_dld_shl_load = yes; then
9344
9345cat >>confdefs.h <<\_ACEOF
9346#define HAVE_SHL_LOAD 1
9347_ACEOF
9348
9349 LIBADD_DL="$LIBADD_DL -ldld"
9350else
Reid Spencera773bd52006-08-04 18:18:08 +00009351 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9352echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009353if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9355else
9356 ac_check_lib_save_LIBS=$LIBS
9357LIBS="-ldl $LIBS"
9358cat >conftest.$ac_ext <<_ACEOF
9359/* confdefs.h. */
9360_ACEOF
9361cat confdefs.h >>conftest.$ac_ext
9362cat >>conftest.$ac_ext <<_ACEOF
9363/* end confdefs.h. */
9364
Reid Spencera773bd52006-08-04 18:18:08 +00009365/* Override any GCC internal prototype to avoid an error.
9366 Use char because int might match the return type of a GCC
9367 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009368#ifdef __cplusplus
9369extern "C"
9370#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009371char dlopen ();
9372int
9373main ()
9374{
Reid Spencera773bd52006-08-04 18:18:08 +00009375return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009376 ;
9377 return 0;
9378}
9379_ACEOF
9380rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009381if { (ac_try="$ac_link"
9382case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385esac
9386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest$ac_exeext &&
9397 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009398 ac_cv_lib_dl_dlopen=yes
9399else
9400 echo "$as_me: failed program was:" >&5
9401sed 's/^/| /' conftest.$ac_ext >&5
9402
Reid Spencera773bd52006-08-04 18:18:08 +00009403 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009404fi
Reid Spencera773bd52006-08-04 18:18:08 +00009405
Scott Michel96dcd2b2007-12-05 21:24:02 +00009406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009407 conftest$ac_exeext conftest.$ac_ext
9408LIBS=$ac_check_lib_save_LIBS
9409fi
Reid Spencera773bd52006-08-04 18:18:08 +00009410{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9411echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009412if test $ac_cv_lib_dl_dlopen = yes; then
9413
9414cat >>confdefs.h <<\_ACEOF
9415#define HAVE_LIBDL 1
9416_ACEOF
9417
9418 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9419else
9420 cat >conftest.$ac_ext <<_ACEOF
9421/* confdefs.h. */
9422_ACEOF
9423cat confdefs.h >>conftest.$ac_ext
9424cat >>conftest.$ac_ext <<_ACEOF
9425/* end confdefs.h. */
9426#if HAVE_DLFCN_H
9427# include <dlfcn.h>
9428#endif
9429
9430int
9431main ()
9432{
9433dlopen(0, 0);
9434 ;
9435 return 0;
9436}
9437_ACEOF
9438rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009439if { (ac_try="$ac_link"
9440case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443esac
9444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest$ac_exeext &&
9455 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009456
9457cat >>confdefs.h <<\_ACEOF
9458#define HAVE_LIBDL 1
9459_ACEOF
9460 libltdl_cv_func_dlopen="yes"
9461else
9462 echo "$as_me: failed program was:" >&5
9463sed 's/^/| /' conftest.$ac_ext >&5
9464
Reid Spencera773bd52006-08-04 18:18:08 +00009465 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9466echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009467if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469else
9470 ac_check_lib_save_LIBS=$LIBS
9471LIBS="-lsvld $LIBS"
9472cat >conftest.$ac_ext <<_ACEOF
9473/* confdefs.h. */
9474_ACEOF
9475cat confdefs.h >>conftest.$ac_ext
9476cat >>conftest.$ac_ext <<_ACEOF
9477/* end confdefs.h. */
9478
Reid Spencera773bd52006-08-04 18:18:08 +00009479/* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482#ifdef __cplusplus
9483extern "C"
9484#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485char dlopen ();
9486int
9487main ()
9488{
Reid Spencera773bd52006-08-04 18:18:08 +00009489return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009490 ;
9491 return 0;
9492}
9493_ACEOF
9494rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009495if { (ac_try="$ac_link"
9496case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499esac
9500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest$ac_exeext &&
9511 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512 ac_cv_lib_svld_dlopen=yes
9513else
9514 echo "$as_me: failed program was:" >&5
9515sed 's/^/| /' conftest.$ac_ext >&5
9516
Reid Spencera773bd52006-08-04 18:18:08 +00009517 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518fi
Reid Spencera773bd52006-08-04 18:18:08 +00009519
Scott Michel96dcd2b2007-12-05 21:24:02 +00009520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009521 conftest$ac_exeext conftest.$ac_ext
9522LIBS=$ac_check_lib_save_LIBS
9523fi
Reid Spencera773bd52006-08-04 18:18:08 +00009524{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9525echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009526if test $ac_cv_lib_svld_dlopen = yes; then
9527
9528cat >>confdefs.h <<\_ACEOF
9529#define HAVE_LIBDL 1
9530_ACEOF
9531
9532 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9533else
Reid Spencera773bd52006-08-04 18:18:08 +00009534 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9535echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009536if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538else
9539 ac_check_lib_save_LIBS=$LIBS
9540LIBS="-ldld $LIBS"
9541cat >conftest.$ac_ext <<_ACEOF
9542/* confdefs.h. */
9543_ACEOF
9544cat confdefs.h >>conftest.$ac_ext
9545cat >>conftest.$ac_ext <<_ACEOF
9546/* end confdefs.h. */
9547
Reid Spencera773bd52006-08-04 18:18:08 +00009548/* Override any GCC internal prototype to avoid an error.
9549 Use char because int might match the return type of a GCC
9550 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009551#ifdef __cplusplus
9552extern "C"
9553#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009554char dld_link ();
9555int
9556main ()
9557{
Reid Spencera773bd52006-08-04 18:18:08 +00009558return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559 ;
9560 return 0;
9561}
9562_ACEOF
9563rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009564if { (ac_try="$ac_link"
9565case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9568esac
9569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009576 (exit $ac_status); } && {
9577 test -z "$ac_c_werror_flag" ||
9578 test ! -s conftest.err
9579 } && test -s conftest$ac_exeext &&
9580 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009581 ac_cv_lib_dld_dld_link=yes
9582else
9583 echo "$as_me: failed program was:" >&5
9584sed 's/^/| /' conftest.$ac_ext >&5
9585
Reid Spencera773bd52006-08-04 18:18:08 +00009586 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009587fi
Reid Spencera773bd52006-08-04 18:18:08 +00009588
Scott Michel96dcd2b2007-12-05 21:24:02 +00009589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009590 conftest$ac_exeext conftest.$ac_ext
9591LIBS=$ac_check_lib_save_LIBS
9592fi
Reid Spencera773bd52006-08-04 18:18:08 +00009593{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9594echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009595if test $ac_cv_lib_dld_dld_link = yes; then
9596
9597cat >>confdefs.h <<\_ACEOF
9598#define HAVE_DLD 1
9599_ACEOF
9600
9601 LIBADD_DL="$LIBADD_DL -ldld"
9602else
Reid Spencera773bd52006-08-04 18:18:08 +00009603 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9604echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9607else
9608 cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h. */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h. */
9614/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9616#define _dyld_func_lookup innocuous__dyld_func_lookup
9617
9618/* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char _dyld_func_lookup (); below.
9620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621 <limits.h> exists even on freestanding compilers. */
9622
9623#ifdef __STDC__
9624# include <limits.h>
9625#else
9626# include <assert.h>
9627#endif
9628
9629#undef _dyld_func_lookup
9630
Reid Spencera773bd52006-08-04 18:18:08 +00009631/* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009634#ifdef __cplusplus
9635extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009636#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009637char _dyld_func_lookup ();
9638/* The GNU C library defines this for functions which it implements
9639 to always fail with ENOSYS. Some functions are actually named
9640 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009641#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009642choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009643#endif
9644
9645int
9646main ()
9647{
Reid Spencera773bd52006-08-04 18:18:08 +00009648return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649 ;
9650 return 0;
9651}
9652_ACEOF
9653rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009654if { (ac_try="$ac_link"
9655case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658esac
9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest$ac_exeext &&
9670 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009671 ac_cv_func__dyld_func_lookup=yes
9672else
9673 echo "$as_me: failed program was:" >&5
9674sed 's/^/| /' conftest.$ac_ext >&5
9675
Reid Spencera773bd52006-08-04 18:18:08 +00009676 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009677fi
Reid Spencera773bd52006-08-04 18:18:08 +00009678
Scott Michel96dcd2b2007-12-05 21:24:02 +00009679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680 conftest$ac_exeext conftest.$ac_ext
9681fi
Reid Spencera773bd52006-08-04 18:18:08 +00009682{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9683echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009684if test $ac_cv_func__dyld_func_lookup = yes; then
9685
9686cat >>confdefs.h <<\_ACEOF
9687#define HAVE_DYLD 1
9688_ACEOF
9689
9690fi
9691
9692
9693fi
9694
9695
9696fi
9697
9698
9699fi
Reid Spencera773bd52006-08-04 18:18:08 +00009700
Scott Michel96dcd2b2007-12-05 21:24:02 +00009701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009702 conftest$ac_exeext conftest.$ac_ext
9703
9704fi
9705
9706
9707fi
9708
9709
9710fi
9711
9712
9713if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9714then
9715 lt_save_LIBS="$LIBS"
9716 LIBS="$LIBS $LIBADD_DL"
9717
9718for ac_func in dlerror
9719do
9720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009721{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9723if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725else
9726 cat >conftest.$ac_ext <<_ACEOF
9727/* confdefs.h. */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h. */
9732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9734#define $ac_func innocuous_$ac_func
9735
9736/* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char $ac_func (); below.
9738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739 <limits.h> exists even on freestanding compilers. */
9740
9741#ifdef __STDC__
9742# include <limits.h>
9743#else
9744# include <assert.h>
9745#endif
9746
9747#undef $ac_func
9748
Reid Spencera773bd52006-08-04 18:18:08 +00009749/* Override any GCC internal prototype to avoid an error.
9750 Use char because int might match the return type of a GCC
9751 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009752#ifdef __cplusplus
9753extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755char $ac_func ();
9756/* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009759#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761#endif
9762
9763int
9764main ()
9765{
Reid Spencera773bd52006-08-04 18:18:08 +00009766return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009767 ;
9768 return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009772if { (ac_try="$ac_link"
9773case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776esac
9777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00009784 (exit $ac_status); } && {
9785 test -z "$ac_c_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest$ac_exeext &&
9788 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009789 eval "$as_ac_var=yes"
9790else
9791 echo "$as_me: failed program was:" >&5
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
Reid Spencera773bd52006-08-04 18:18:08 +00009794 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795fi
Reid Spencera773bd52006-08-04 18:18:08 +00009796
Scott Michel96dcd2b2007-12-05 21:24:02 +00009797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798 conftest$ac_exeext conftest.$ac_ext
9799fi
Reid Spencera773bd52006-08-04 18:18:08 +00009800ac_res=`eval echo '${'$as_ac_var'}'`
9801 { echo "$as_me:$LINENO: result: $ac_res" >&5
9802echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803if test `eval echo '${'$as_ac_var'}'` = yes; then
9804 cat >>confdefs.h <<_ACEOF
9805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9806_ACEOF
9807
9808fi
9809done
9810
9811 LIBS="$lt_save_LIBS"
9812fi
9813ac_ext=c
9814ac_cpp='$CPP $CPPFLAGS'
9815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9817ac_compiler_gnu=$ac_cv_c_compiler_gnu
9818
9819
9820
Reid Spencera773bd52006-08-04 18:18:08 +00009821{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9822echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825else
9826 ac_cv_sys_symbol_underscore=no
9827 cat > conftest.$ac_ext <<EOF
9828void nm_test_func(){}
9829int main(){nm_test_func;return 0;}
9830EOF
9831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9832 (eval $ac_compile) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; then
9836 # Now try to grab the symbols.
9837 ac_nlist=conftest.nm
9838 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9839 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } && test -s "$ac_nlist"; then
9843 # See whether the symbols have a leading underscore.
9844 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9845 ac_cv_sys_symbol_underscore=yes
9846 else
9847 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9848 :
9849 else
9850 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9851 fi
9852 fi
9853 else
9854 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9855 fi
9856 else
9857 echo "configure: failed program was:" >&5
9858 cat conftest.c >&5
9859 fi
9860 rm -rf conftest*
9861
9862fi
Reid Spencera773bd52006-08-04 18:18:08 +00009863{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9864echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865
9866
9867if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9868 if test x"$libltdl_cv_func_dlopen" = xyes ||
9869 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +00009870 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9871echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009872if test "${libltdl_cv_need_uscore+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875 libltdl_cv_need_uscore=unknown
9876 save_LIBS="$LIBS"
9877 LIBS="$LIBS $LIBADD_DL"
9878 if test "$cross_compiling" = yes; then :
9879 libltdl_cv_need_uscore=cross
9880else
9881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9882 lt_status=$lt_dlunknown
9883 cat > conftest.$ac_ext <<EOF
Duncan Sands1eff7042007-12-10 17:43:13 +00009884#line 9884 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885#include "confdefs.h"
9886
9887#if HAVE_DLFCN_H
9888#include <dlfcn.h>
9889#endif
9890
9891#include <stdio.h>
9892
9893#ifdef RTLD_GLOBAL
9894# define LT_DLGLOBAL RTLD_GLOBAL
9895#else
9896# ifdef DL_GLOBAL
9897# define LT_DLGLOBAL DL_GLOBAL
9898# else
9899# define LT_DLGLOBAL 0
9900# endif
9901#endif
9902
9903/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9904 find out it does not work in some platform. */
9905#ifndef LT_DLLAZY_OR_NOW
9906# ifdef RTLD_LAZY
9907# define LT_DLLAZY_OR_NOW RTLD_LAZY
9908# else
9909# ifdef DL_LAZY
9910# define LT_DLLAZY_OR_NOW DL_LAZY
9911# else
9912# ifdef RTLD_NOW
9913# define LT_DLLAZY_OR_NOW RTLD_NOW
9914# else
9915# ifdef DL_NOW
9916# define LT_DLLAZY_OR_NOW DL_NOW
9917# else
9918# define LT_DLLAZY_OR_NOW 0
9919# endif
9920# endif
9921# endif
9922# endif
9923#endif
9924
9925#ifdef __cplusplus
9926extern "C" void exit (int);
9927#endif
9928
9929void fnord() { int i=42;}
9930int main ()
9931{
9932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9933 int status = $lt_dlunknown;
9934
9935 if (self)
9936 {
9937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9939 /* dlclose (self); */
9940 }
Reid Spencera773bd52006-08-04 18:18:08 +00009941 else
9942 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943
9944 exit (status);
9945}
9946EOF
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +00009952 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953 lt_status=$?
9954 case x$lt_status in
9955 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9956 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009957 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009958 esac
9959 else :
9960 # compilation failed
9961
9962 fi
9963fi
9964rm -fr conftest*
9965
9966 LIBS="$save_LIBS"
9967
9968fi
Reid Spencera773bd52006-08-04 18:18:08 +00009969{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9970echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009971 fi
9972fi
9973
9974if test x"$libltdl_cv_need_uscore" = xyes; then
9975
9976cat >>confdefs.h <<\_ACEOF
9977#define NEED_USCORE 1
9978_ACEOF
9979
9980fi
9981
9982
Reid Spencera773bd52006-08-04 18:18:08 +00009983{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9984echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987else
9988 # PORTME does your system automatically load deplibs for dlopen?
9989 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9990 # For now, we just catch OSes we know something about -- in the
9991 # future, we'll try test this programmatically.
9992 libltdl_cv_sys_dlopen_deplibs=unknown
9993 case "$host_os" in
9994 aix3*|aix4.1.*|aix4.2.*)
9995 # Unknown whether this is true for these versions of AIX, but
9996 # we want this `case' here to explicitly catch those versions.
9997 libltdl_cv_sys_dlopen_deplibs=unknown
9998 ;;
9999 aix[45]*)
10000 libltdl_cv_sys_dlopen_deplibs=yes
10001 ;;
10002 darwin*)
10003 # Assuming the user has installed a libdl from somewhere, this is true
10004 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10005 libltdl_cv_sys_dlopen_deplibs=yes
10006 ;;
10007 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10008 # GNU and its variants, using gnu ld.so (Glibc)
10009 libltdl_cv_sys_dlopen_deplibs=yes
10010 ;;
10011 hpux10*|hpux11*)
10012 libltdl_cv_sys_dlopen_deplibs=yes
10013 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010014 interix*)
10015 libltdl_cv_sys_dlopen_deplibs=yes
10016 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017 irix[12345]*|irix6.[01]*)
10018 # Catch all versions of IRIX before 6.2, and indicate that we don't
10019 # know how it worked for any of those versions.
10020 libltdl_cv_sys_dlopen_deplibs=unknown
10021 ;;
10022 irix*)
10023 # The case above catches anything before 6.2, and it's known that
10024 # at 6.2 and later dlopen does load deplibs.
10025 libltdl_cv_sys_dlopen_deplibs=yes
10026 ;;
10027 netbsd*)
10028 libltdl_cv_sys_dlopen_deplibs=yes
10029 ;;
10030 openbsd*)
10031 libltdl_cv_sys_dlopen_deplibs=yes
10032 ;;
10033 osf[1234]*)
10034 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10035 # it did *not* use an RPATH in a shared library to find objects the
10036 # library depends on, so we explictly say `no'.
10037 libltdl_cv_sys_dlopen_deplibs=no
10038 ;;
10039 osf5.0|osf5.0a|osf5.1)
10040 # dlopen *does* load deplibs and with the right loader patch applied
10041 # it even uses RPATH in a shared library to search for shared objects
10042 # that the library depends on, but there's no easy way to know if that
10043 # patch is installed. Since this is the case, all we can really
10044 # say is unknown -- it depends on the patch being installed. If
10045 # it is, this changes to `yes'. Without it, it would be `no'.
10046 libltdl_cv_sys_dlopen_deplibs=unknown
10047 ;;
10048 osf*)
10049 # the two cases above should catch all versions of osf <= 5.1. Read
10050 # the comments above for what we know about them.
10051 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10052 # is used to find them so we can finally say `yes'.
10053 libltdl_cv_sys_dlopen_deplibs=yes
10054 ;;
10055 solaris*)
10056 libltdl_cv_sys_dlopen_deplibs=yes
10057 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10059 libltdl_cv_sys_dlopen_deplibs=yes
10060 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010061 esac
10062
10063fi
Reid Spencera773bd52006-08-04 18:18:08 +000010064{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10065echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10067
10068cat >>confdefs.h <<\_ACEOF
10069#define LTDL_DLOPEN_DEPLIBS 1
10070_ACEOF
10071
10072fi
10073
10074
10075for ac_header in argz.h
10076do
10077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083fi
Reid Spencera773bd52006-08-04 18:18:08 +000010084ac_res=`eval echo '${'$as_ac_Header'}'`
10085 { echo "$as_me:$LINENO: result: $ac_res" >&5
10086echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087else
10088 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010089{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010091cat >conftest.$ac_ext <<_ACEOF
10092/* confdefs.h. */
10093_ACEOF
10094cat confdefs.h >>conftest.$ac_ext
10095cat >>conftest.$ac_ext <<_ACEOF
10096/* end confdefs.h. */
10097$ac_includes_default
10098#include <$ac_header>
10099_ACEOF
10100rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010101if { (ac_try="$ac_compile"
10102case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105esac
10106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010108 ac_status=$?
10109 grep -v '^ *+' conftest.er1 >conftest.err
10110 rm -f conftest.er1
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117 ac_header_compiler=yes
10118else
10119 echo "$as_me: failed program was:" >&5
10120sed 's/^/| /' conftest.$ac_ext >&5
10121
Reid Spencera773bd52006-08-04 18:18:08 +000010122 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123fi
Reid Spencera773bd52006-08-04 18:18:08 +000010124
10125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10127echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010128
10129# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010130{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132cat >conftest.$ac_ext <<_ACEOF
10133/* confdefs.h. */
10134_ACEOF
10135cat confdefs.h >>conftest.$ac_ext
10136cat >>conftest.$ac_ext <<_ACEOF
10137/* end confdefs.h. */
10138#include <$ac_header>
10139_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010140if { (ac_try="$ac_cpp conftest.$ac_ext"
10141case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10144esac
10145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010152 (exit $ac_status); } >/dev/null && {
10153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10154 test ! -s conftest.err
10155 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156 ac_header_preproc=yes
10157else
10158 echo "$as_me: failed program was:" >&5
10159sed 's/^/| /' conftest.$ac_ext >&5
10160
10161 ac_header_preproc=no
10162fi
Reid Spencera773bd52006-08-04 18:18:08 +000010163
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010164rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010165{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10166echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010167
10168# So? What about this header?
10169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10170 yes:no: )
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10175 ac_header_preproc=yes
10176 ;;
10177 no:yes:* )
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10185echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010190 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191## ----------------------------------- ##
10192## Report this to llvmbugs@cs.uiuc.edu ##
10193## ----------------------------------- ##
10194_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010195 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010196 ;;
10197esac
Reid Spencera773bd52006-08-04 18:18:08 +000010198{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202else
10203 eval "$as_ac_Header=\$ac_header_preproc"
10204fi
Reid Spencera773bd52006-08-04 18:18:08 +000010205ac_res=`eval echo '${'$as_ac_Header'}'`
10206 { echo "$as_me:$LINENO: result: $ac_res" >&5
10207echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208
10209fi
10210if test `eval echo '${'$as_ac_Header'}'` = yes; then
10211 cat >>confdefs.h <<_ACEOF
10212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10213_ACEOF
10214
10215fi
10216
10217done
10218
10219
Reid Spencera773bd52006-08-04 18:18:08 +000010220{ echo "$as_me:$LINENO: checking for error_t" >&5
10221echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222if test "${ac_cv_type_error_t+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224else
10225 cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h. */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h. */
10231#if HAVE_ARGZ_H
10232# include <argz.h>
10233#endif
10234
Reid Spencera773bd52006-08-04 18:18:08 +000010235typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236int
10237main ()
10238{
Reid Spencera773bd52006-08-04 18:18:08 +000010239if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010240 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010241if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010242 return 0;
10243 ;
10244 return 0;
10245}
10246_ACEOF
10247rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010248if { (ac_try="$ac_compile"
10249case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10252esac
10253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264 ac_cv_type_error_t=yes
10265else
10266 echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
Reid Spencera773bd52006-08-04 18:18:08 +000010269 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270fi
Reid Spencera773bd52006-08-04 18:18:08 +000010271
10272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273fi
Reid Spencera773bd52006-08-04 18:18:08 +000010274{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10275echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276if test $ac_cv_type_error_t = yes; then
10277
10278cat >>confdefs.h <<_ACEOF
10279#define HAVE_ERROR_T 1
10280_ACEOF
10281
10282
10283else
10284
10285cat >>confdefs.h <<\_ACEOF
10286#define error_t int
10287_ACEOF
10288
10289fi
10290
10291
10292
10293
10294
10295
10296
10297for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10298do
10299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010300{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10302if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304else
10305 cat >conftest.$ac_ext <<_ACEOF
10306/* confdefs.h. */
10307_ACEOF
10308cat confdefs.h >>conftest.$ac_ext
10309cat >>conftest.$ac_ext <<_ACEOF
10310/* end confdefs.h. */
10311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10313#define $ac_func innocuous_$ac_func
10314
10315/* System header to define __stub macros and hopefully few prototypes,
10316 which can conflict with char $ac_func (); below.
10317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10318 <limits.h> exists even on freestanding compilers. */
10319
10320#ifdef __STDC__
10321# include <limits.h>
10322#else
10323# include <assert.h>
10324#endif
10325
10326#undef $ac_func
10327
Reid Spencera773bd52006-08-04 18:18:08 +000010328/* Override any GCC internal prototype to avoid an error.
10329 Use char because int might match the return type of a GCC
10330 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331#ifdef __cplusplus
10332extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334char $ac_func ();
10335/* The GNU C library defines this for functions which it implements
10336 to always fail with ENOSYS. Some functions are actually named
10337 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010338#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010340#endif
10341
10342int
10343main ()
10344{
Reid Spencera773bd52006-08-04 18:18:08 +000010345return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010346 ;
10347 return 0;
10348}
10349_ACEOF
10350rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010351if { (ac_try="$ac_link"
10352case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355esac
10356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010363 (exit $ac_status); } && {
10364 test -z "$ac_c_werror_flag" ||
10365 test ! -s conftest.err
10366 } && test -s conftest$ac_exeext &&
10367 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010368 eval "$as_ac_var=yes"
10369else
10370 echo "$as_me: failed program was:" >&5
10371sed 's/^/| /' conftest.$ac_ext >&5
10372
Reid Spencera773bd52006-08-04 18:18:08 +000010373 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010374fi
Reid Spencera773bd52006-08-04 18:18:08 +000010375
Scott Michel96dcd2b2007-12-05 21:24:02 +000010376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010377 conftest$ac_exeext conftest.$ac_ext
10378fi
Reid Spencera773bd52006-08-04 18:18:08 +000010379ac_res=`eval echo '${'$as_ac_var'}'`
10380 { echo "$as_me:$LINENO: result: $ac_res" >&5
10381echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010382if test `eval echo '${'$as_ac_var'}'` = yes; then
10383 cat >>confdefs.h <<_ACEOF
10384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10385_ACEOF
10386
10387fi
10388done
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10418 stdio.h unistd.h
10419do
10420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426fi
Reid Spencera773bd52006-08-04 18:18:08 +000010427ac_res=`eval echo '${'$as_ac_Header'}'`
10428 { echo "$as_me:$LINENO: result: $ac_res" >&5
10429echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430else
10431 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010432{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434cat >conftest.$ac_ext <<_ACEOF
10435/* confdefs.h. */
10436_ACEOF
10437cat confdefs.h >>conftest.$ac_ext
10438cat >>conftest.$ac_ext <<_ACEOF
10439/* end confdefs.h. */
10440$ac_includes_default
10441#include <$ac_header>
10442_ACEOF
10443rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010444if { (ac_try="$ac_compile"
10445case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448esac
10449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 ac_status=$?
10452 grep -v '^ *+' conftest.er1 >conftest.err
10453 rm -f conftest.er1
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010460 ac_header_compiler=yes
10461else
10462 echo "$as_me: failed program was:" >&5
10463sed 's/^/| /' conftest.$ac_ext >&5
10464
Reid Spencera773bd52006-08-04 18:18:08 +000010465 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466fi
Reid Spencera773bd52006-08-04 18:18:08 +000010467
10468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10470echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010471
10472# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010473{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010475cat >conftest.$ac_ext <<_ACEOF
10476/* confdefs.h. */
10477_ACEOF
10478cat confdefs.h >>conftest.$ac_ext
10479cat >>conftest.$ac_ext <<_ACEOF
10480/* end confdefs.h. */
10481#include <$ac_header>
10482_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010483if { (ac_try="$ac_cpp conftest.$ac_ext"
10484case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10487esac
10488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010495 (exit $ac_status); } >/dev/null && {
10496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10497 test ! -s conftest.err
10498 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499 ac_header_preproc=yes
10500else
10501 echo "$as_me: failed program was:" >&5
10502sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 ac_header_preproc=no
10505fi
Reid Spencera773bd52006-08-04 18:18:08 +000010506
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10509echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510
10511# So? What about this header?
10512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10513 yes:no: )
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10518 ac_header_preproc=yes
10519 ;;
10520 no:yes:* )
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010533 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010534## ----------------------------------- ##
10535## Report this to llvmbugs@cs.uiuc.edu ##
10536## ----------------------------------- ##
10537_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010538 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010539 ;;
10540esac
Reid Spencera773bd52006-08-04 18:18:08 +000010541{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545else
10546 eval "$as_ac_Header=\$ac_header_preproc"
10547fi
Reid Spencera773bd52006-08-04 18:18:08 +000010548ac_res=`eval echo '${'$as_ac_Header'}'`
10549 { echo "$as_me:$LINENO: result: $ac_res" >&5
10550echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551
10552fi
10553if test `eval echo '${'$as_ac_Header'}'` = yes; then
10554 cat >>confdefs.h <<_ACEOF
10555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10556_ACEOF
10557
10558fi
10559
10560done
10561
10562
10563
10564
10565
10566for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10567do
10568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574fi
Reid Spencera773bd52006-08-04 18:18:08 +000010575ac_res=`eval echo '${'$as_ac_Header'}'`
10576 { echo "$as_me:$LINENO: result: $ac_res" >&5
10577echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010578else
10579 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010580{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010582cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h. */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h. */
10588$ac_includes_default
10589#include <$ac_header>
10590_ACEOF
10591rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010592if { (ac_try="$ac_compile"
10593case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596esac
10597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608 ac_header_compiler=yes
10609else
10610 echo "$as_me: failed program was:" >&5
10611sed 's/^/| /' conftest.$ac_ext >&5
10612
Reid Spencera773bd52006-08-04 18:18:08 +000010613 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010614fi
Reid Spencera773bd52006-08-04 18:18:08 +000010615
10616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10618echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619
10620# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010621{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010623cat >conftest.$ac_ext <<_ACEOF
10624/* confdefs.h. */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
10628/* end confdefs.h. */
10629#include <$ac_header>
10630_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010631if { (ac_try="$ac_cpp conftest.$ac_ext"
10632case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635esac
10636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010643 (exit $ac_status); } >/dev/null && {
10644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647 ac_header_preproc=yes
10648else
10649 echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 ac_header_preproc=no
10653fi
Reid Spencera773bd52006-08-04 18:18:08 +000010654
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010655rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010656{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10657echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010658
10659# So? What about this header?
10660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10661 yes:no: )
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10666 ac_header_preproc=yes
10667 ;;
10668 no:yes:* )
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010681 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682## ----------------------------------- ##
10683## Report this to llvmbugs@cs.uiuc.edu ##
10684## ----------------------------------- ##
10685_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010686 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687 ;;
10688esac
Reid Spencera773bd52006-08-04 18:18:08 +000010689{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693else
10694 eval "$as_ac_Header=\$ac_header_preproc"
10695fi
Reid Spencera773bd52006-08-04 18:18:08 +000010696ac_res=`eval echo '${'$as_ac_Header'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010699
10700fi
10701if test `eval echo '${'$as_ac_Header'}'` = yes; then
10702 cat >>confdefs.h <<_ACEOF
10703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10704_ACEOF
10705
10706fi
10707
10708done
10709
10710
10711
10712for ac_header in string.h strings.h
10713do
10714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719 echo $ECHO_N "(cached) $ECHO_C" >&6
10720fi
Reid Spencera773bd52006-08-04 18:18:08 +000010721ac_res=`eval echo '${'$as_ac_Header'}'`
10722 { echo "$as_me:$LINENO: result: $ac_res" >&5
10723echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724else
10725 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010726{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010728cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734$ac_includes_default
10735#include <$ac_header>
10736_ACEOF
10737rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010738if { (ac_try="$ac_compile"
10739case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10742esac
10743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745 ac_status=$?
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -f conftest.er1
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754 ac_header_compiler=yes
10755else
10756 echo "$as_me: failed program was:" >&5
10757sed 's/^/| /' conftest.$ac_ext >&5
10758
Reid Spencera773bd52006-08-04 18:18:08 +000010759 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760fi
Reid Spencera773bd52006-08-04 18:18:08 +000010761
10762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10764echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765
10766# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010767{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10768echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769cat >conftest.$ac_ext <<_ACEOF
10770/* confdefs.h. */
10771_ACEOF
10772cat confdefs.h >>conftest.$ac_ext
10773cat >>conftest.$ac_ext <<_ACEOF
10774/* end confdefs.h. */
10775#include <$ac_header>
10776_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010777if { (ac_try="$ac_cpp conftest.$ac_ext"
10778case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781esac
10782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010789 (exit $ac_status); } >/dev/null && {
10790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010793 ac_header_preproc=yes
10794else
10795 echo "$as_me: failed program was:" >&5
10796sed 's/^/| /' conftest.$ac_ext >&5
10797
10798 ac_header_preproc=no
10799fi
Reid Spencera773bd52006-08-04 18:18:08 +000010800
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010801rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010802{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10803echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804
10805# So? What about this header?
10806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10807 yes:no: )
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10809echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10811echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10812 ac_header_preproc=yes
10813 ;;
10814 no:yes:* )
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10816echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10818echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10820echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10822echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10826echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010827 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828## ----------------------------------- ##
10829## Report this to llvmbugs@cs.uiuc.edu ##
10830## ----------------------------------- ##
10831_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010832 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833 ;;
10834esac
Reid Spencera773bd52006-08-04 18:18:08 +000010835{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839else
10840 eval "$as_ac_Header=\$ac_header_preproc"
10841fi
Reid Spencera773bd52006-08-04 18:18:08 +000010842ac_res=`eval echo '${'$as_ac_Header'}'`
10843 { echo "$as_me:$LINENO: result: $ac_res" >&5
10844echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845
10846fi
10847if test `eval echo '${'$as_ac_Header'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10850_ACEOF
10851 break
10852fi
10853
10854done
10855
10856
10857
10858
10859for ac_func in strchr index
10860do
10861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010862{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10864if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866else
10867 cat >conftest.$ac_ext <<_ACEOF
10868/* confdefs.h. */
10869_ACEOF
10870cat confdefs.h >>conftest.$ac_ext
10871cat >>conftest.$ac_ext <<_ACEOF
10872/* end confdefs.h. */
10873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10875#define $ac_func innocuous_$ac_func
10876
10877/* System header to define __stub macros and hopefully few prototypes,
10878 which can conflict with char $ac_func (); below.
10879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10880 <limits.h> exists even on freestanding compilers. */
10881
10882#ifdef __STDC__
10883# include <limits.h>
10884#else
10885# include <assert.h>
10886#endif
10887
10888#undef $ac_func
10889
Reid Spencera773bd52006-08-04 18:18:08 +000010890/* Override any GCC internal prototype to avoid an error.
10891 Use char because int might match the return type of a GCC
10892 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893#ifdef __cplusplus
10894extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010895#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010896char $ac_func ();
10897/* The GNU C library defines this for functions which it implements
10898 to always fail with ENOSYS. Some functions are actually named
10899 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010900#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902#endif
10903
10904int
10905main ()
10906{
Reid Spencera773bd52006-08-04 18:18:08 +000010907return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908 ;
10909 return 0;
10910}
10911_ACEOF
10912rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010913if { (ac_try="$ac_link"
10914case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10917esac
10918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010920 ac_status=$?
10921 grep -v '^ *+' conftest.er1 >conftest.err
10922 rm -f conftest.er1
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000010925 (exit $ac_status); } && {
10926 test -z "$ac_c_werror_flag" ||
10927 test ! -s conftest.err
10928 } && test -s conftest$ac_exeext &&
10929 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930 eval "$as_ac_var=yes"
10931else
10932 echo "$as_me: failed program was:" >&5
10933sed 's/^/| /' conftest.$ac_ext >&5
10934
Reid Spencera773bd52006-08-04 18:18:08 +000010935 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936fi
Reid Spencera773bd52006-08-04 18:18:08 +000010937
Scott Michel96dcd2b2007-12-05 21:24:02 +000010938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939 conftest$ac_exeext conftest.$ac_ext
10940fi
Reid Spencera773bd52006-08-04 18:18:08 +000010941ac_res=`eval echo '${'$as_ac_var'}'`
10942 { echo "$as_me:$LINENO: result: $ac_res" >&5
10943echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010944if test `eval echo '${'$as_ac_var'}'` = yes; then
10945 cat >>confdefs.h <<_ACEOF
10946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10947_ACEOF
10948 break
10949fi
10950done
10951
10952
10953
10954for ac_func in strrchr rindex
10955do
10956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962 cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h. */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h. */
10968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10970#define $ac_func innocuous_$ac_func
10971
10972/* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char $ac_func (); below.
10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975 <limits.h> exists even on freestanding compilers. */
10976
10977#ifdef __STDC__
10978# include <limits.h>
10979#else
10980# include <assert.h>
10981#endif
10982
10983#undef $ac_func
10984
Reid Spencera773bd52006-08-04 18:18:08 +000010985/* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988#ifdef __cplusplus
10989extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991char $ac_func ();
10992/* The GNU C library defines this for functions which it implements
10993 to always fail with ENOSYS. Some functions are actually named
10994 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010995#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010996choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010997#endif
10998
10999int
11000main ()
11001{
Reid Spencera773bd52006-08-04 18:18:08 +000011002return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003 ;
11004 return 0;
11005}
11006_ACEOF
11007rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011008if { (ac_try="$ac_link"
11009case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012esac
11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011015 ac_status=$?
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011020 (exit $ac_status); } && {
11021 test -z "$ac_c_werror_flag" ||
11022 test ! -s conftest.err
11023 } && test -s conftest$ac_exeext &&
11024 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025 eval "$as_ac_var=yes"
11026else
11027 echo "$as_me: failed program was:" >&5
11028sed 's/^/| /' conftest.$ac_ext >&5
11029
Reid Spencera773bd52006-08-04 18:18:08 +000011030 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011031fi
Reid Spencera773bd52006-08-04 18:18:08 +000011032
Scott Michel96dcd2b2007-12-05 21:24:02 +000011033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011034 conftest$ac_exeext conftest.$ac_ext
11035fi
Reid Spencera773bd52006-08-04 18:18:08 +000011036ac_res=`eval echo '${'$as_ac_var'}'`
11037 { echo "$as_me:$LINENO: result: $ac_res" >&5
11038echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011039if test `eval echo '${'$as_ac_var'}'` = yes; then
11040 cat >>confdefs.h <<_ACEOF
11041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11042_ACEOF
11043 break
11044fi
11045done
11046
11047
11048
11049for ac_func in memcpy bcopy
11050do
11051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011052{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11054if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056else
11057 cat >conftest.$ac_ext <<_ACEOF
11058/* confdefs.h. */
11059_ACEOF
11060cat confdefs.h >>conftest.$ac_ext
11061cat >>conftest.$ac_ext <<_ACEOF
11062/* end confdefs.h. */
11063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11065#define $ac_func innocuous_$ac_func
11066
11067/* System header to define __stub macros and hopefully few prototypes,
11068 which can conflict with char $ac_func (); below.
11069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11070 <limits.h> exists even on freestanding compilers. */
11071
11072#ifdef __STDC__
11073# include <limits.h>
11074#else
11075# include <assert.h>
11076#endif
11077
11078#undef $ac_func
11079
Reid Spencera773bd52006-08-04 18:18:08 +000011080/* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011083#ifdef __cplusplus
11084extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011085#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011086char $ac_func ();
11087/* The GNU C library defines this for functions which it implements
11088 to always fail with ENOSYS. Some functions are actually named
11089 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011090#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011092#endif
11093
11094int
11095main ()
11096{
Reid Spencera773bd52006-08-04 18:18:08 +000011097return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098 ;
11099 return 0;
11100}
11101_ACEOF
11102rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011103if { (ac_try="$ac_link"
11104case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011110 ac_status=$?
11111 grep -v '^ *+' conftest.er1 >conftest.err
11112 rm -f conftest.er1
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011115 (exit $ac_status); } && {
11116 test -z "$ac_c_werror_flag" ||
11117 test ! -s conftest.err
11118 } && test -s conftest$ac_exeext &&
11119 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120 eval "$as_ac_var=yes"
11121else
11122 echo "$as_me: failed program was:" >&5
11123sed 's/^/| /' conftest.$ac_ext >&5
11124
Reid Spencera773bd52006-08-04 18:18:08 +000011125 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011126fi
Reid Spencera773bd52006-08-04 18:18:08 +000011127
Scott Michel96dcd2b2007-12-05 21:24:02 +000011128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129 conftest$ac_exeext conftest.$ac_ext
11130fi
Reid Spencera773bd52006-08-04 18:18:08 +000011131ac_res=`eval echo '${'$as_ac_var'}'`
11132 { echo "$as_me:$LINENO: result: $ac_res" >&5
11133echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134if test `eval echo '${'$as_ac_var'}'` = yes; then
11135 cat >>confdefs.h <<_ACEOF
11136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11137_ACEOF
11138 break
11139fi
11140done
11141
11142
11143
11144for ac_func in memmove strcmp
11145do
11146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011147{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151else
11152 cat >conftest.$ac_ext <<_ACEOF
11153/* confdefs.h. */
11154_ACEOF
11155cat confdefs.h >>conftest.$ac_ext
11156cat >>conftest.$ac_ext <<_ACEOF
11157/* end confdefs.h. */
11158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11160#define $ac_func innocuous_$ac_func
11161
11162/* System header to define __stub macros and hopefully few prototypes,
11163 which can conflict with char $ac_func (); below.
11164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11165 <limits.h> exists even on freestanding compilers. */
11166
11167#ifdef __STDC__
11168# include <limits.h>
11169#else
11170# include <assert.h>
11171#endif
11172
11173#undef $ac_func
11174
Reid Spencera773bd52006-08-04 18:18:08 +000011175/* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178#ifdef __cplusplus
11179extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011180#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181char $ac_func ();
11182/* The GNU C library defines this for functions which it implements
11183 to always fail with ENOSYS. Some functions are actually named
11184 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011185#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011187#endif
11188
11189int
11190main ()
11191{
Reid Spencera773bd52006-08-04 18:18:08 +000011192return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011193 ;
11194 return 0;
11195}
11196_ACEOF
11197rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011198if { (ac_try="$ac_link"
11199case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202esac
11203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011210 (exit $ac_status); } && {
11211 test -z "$ac_c_werror_flag" ||
11212 test ! -s conftest.err
11213 } && test -s conftest$ac_exeext &&
11214 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215 eval "$as_ac_var=yes"
11216else
11217 echo "$as_me: failed program was:" >&5
11218sed 's/^/| /' conftest.$ac_ext >&5
11219
Reid Spencera773bd52006-08-04 18:18:08 +000011220 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221fi
Reid Spencera773bd52006-08-04 18:18:08 +000011222
Scott Michel96dcd2b2007-12-05 21:24:02 +000011223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011224 conftest$ac_exeext conftest.$ac_ext
11225fi
Reid Spencera773bd52006-08-04 18:18:08 +000011226ac_res=`eval echo '${'$as_ac_var'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229if test `eval echo '${'$as_ac_var'}'` = yes; then
11230 cat >>confdefs.h <<_ACEOF
11231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232_ACEOF
11233
11234fi
11235done
11236
11237
11238
11239
11240for ac_func in closedir opendir readdir
11241do
11242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011243{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11245if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247else
11248 cat >conftest.$ac_ext <<_ACEOF
11249/* confdefs.h. */
11250_ACEOF
11251cat confdefs.h >>conftest.$ac_ext
11252cat >>conftest.$ac_ext <<_ACEOF
11253/* end confdefs.h. */
11254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11256#define $ac_func innocuous_$ac_func
11257
11258/* System header to define __stub macros and hopefully few prototypes,
11259 which can conflict with char $ac_func (); below.
11260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11261 <limits.h> exists even on freestanding compilers. */
11262
11263#ifdef __STDC__
11264# include <limits.h>
11265#else
11266# include <assert.h>
11267#endif
11268
11269#undef $ac_func
11270
Reid Spencera773bd52006-08-04 18:18:08 +000011271/* Override any GCC internal prototype to avoid an error.
11272 Use char because int might match the return type of a GCC
11273 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274#ifdef __cplusplus
11275extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011276#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277char $ac_func ();
11278/* The GNU C library defines this for functions which it implements
11279 to always fail with ENOSYS. Some functions are actually named
11280 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011281#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011283#endif
11284
11285int
11286main ()
11287{
Reid Spencera773bd52006-08-04 18:18:08 +000011288return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011289 ;
11290 return 0;
11291}
11292_ACEOF
11293rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011294if { (ac_try="$ac_link"
11295case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11298esac
11299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011301 ac_status=$?
11302 grep -v '^ *+' conftest.er1 >conftest.err
11303 rm -f conftest.er1
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011306 (exit $ac_status); } && {
11307 test -z "$ac_c_werror_flag" ||
11308 test ! -s conftest.err
11309 } && test -s conftest$ac_exeext &&
11310 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311 eval "$as_ac_var=yes"
11312else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
Reid Spencera773bd52006-08-04 18:18:08 +000011316 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011317fi
Reid Spencera773bd52006-08-04 18:18:08 +000011318
Scott Michel96dcd2b2007-12-05 21:24:02 +000011319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011320 conftest$ac_exeext conftest.$ac_ext
11321fi
Reid Spencera773bd52006-08-04 18:18:08 +000011322ac_res=`eval echo '${'$as_ac_var'}'`
11323 { echo "$as_me:$LINENO: result: $ac_res" >&5
11324echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011325if test `eval echo '${'$as_ac_var'}'` = yes; then
11326 cat >>confdefs.h <<_ACEOF
11327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11328_ACEOF
11329
11330fi
11331done
11332
11333
Reid Spencera773bd52006-08-04 18:18:08 +000011334# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011336 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011337 case $enableval in
11338 yes) enable_shared=yes ;;
11339 no) enable_shared=no ;;
11340 *)
11341 enable_shared=no
11342 # Look at the argument we got. We use all the common list separators.
11343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11344 for pkg in $enableval; do
11345 IFS="$lt_save_ifs"
11346 if test "X$pkg" = "X$p"; then
11347 enable_shared=yes
11348 fi
11349 done
11350 IFS="$lt_save_ifs"
11351 ;;
11352 esac
11353else
11354 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011355fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011356
Reid Spencera773bd52006-08-04 18:18:08 +000011357
11358# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011359if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011360 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361 case $enableval in
11362 yes) enable_static=yes ;;
11363 no) enable_static=no ;;
11364 *)
11365 enable_static=no
11366 # Look at the argument we got. We use all the common list separators.
11367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11368 for pkg in $enableval; do
11369 IFS="$lt_save_ifs"
11370 if test "X$pkg" = "X$p"; then
11371 enable_static=yes
11372 fi
11373 done
11374 IFS="$lt_save_ifs"
11375 ;;
11376 esac
11377else
11378 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011379fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380
Reid Spencera773bd52006-08-04 18:18:08 +000011381
11382# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011383if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011384 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011385 case $enableval in
11386 yes) enable_fast_install=yes ;;
11387 no) enable_fast_install=no ;;
11388 *)
11389 enable_fast_install=no
11390 # Look at the argument we got. We use all the common list separators.
11391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11392 for pkg in $enableval; do
11393 IFS="$lt_save_ifs"
11394 if test "X$pkg" = "X$p"; then
11395 enable_fast_install=yes
11396 fi
11397 done
11398 IFS="$lt_save_ifs"
11399 ;;
11400 esac
11401else
11402 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011403fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011404
Reid Spencera773bd52006-08-04 18:18:08 +000011405
11406{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11407echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408if test "${lt_cv_path_SED+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410else
11411 # Loop through the user's path and test for sed and gsed.
11412# Then use that list of sed's as ones to test for truncation.
11413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414for as_dir in $PATH
11415do
11416 IFS=$as_save_IFS
11417 test -z "$as_dir" && as_dir=.
11418 for lt_ac_prog in sed gsed; do
11419 for ac_exec_ext in '' $ac_executable_extensions; do
11420 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11421 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11422 fi
11423 done
11424 done
11425done
11426lt_ac_max=0
11427lt_ac_count=0
11428# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11429# along with /bin/sed that truncates output.
11430for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000011431 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011432 cat /dev/null > conftest.in
11433 lt_ac_count=0
11434 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11435 # Check for GNU sed and select it if it is found.
11436 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11437 lt_cv_path_SED=$lt_ac_sed
11438 break
11439 fi
11440 while true; do
11441 cat conftest.in conftest.in >conftest.tmp
11442 mv conftest.tmp conftest.in
11443 cp conftest.in conftest.nl
11444 echo >>conftest.nl
11445 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11446 cmp -s conftest.out conftest.nl || break
11447 # 10000 chars as input seems more than enough
11448 test $lt_ac_count -gt 10 && break
11449 lt_ac_count=`expr $lt_ac_count + 1`
11450 if test $lt_ac_count -gt $lt_ac_max; then
11451 lt_ac_max=$lt_ac_count
11452 lt_cv_path_SED=$lt_ac_sed
11453 fi
11454 done
11455done
11456
11457fi
11458
11459SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000011460{ echo "$as_me:$LINENO: result: $SED" >&5
11461echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011462
11463
Reid Spencera773bd52006-08-04 18:18:08 +000011464# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011465if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011466 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467else
11468 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000011469fi
11470
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471ac_prog=ld
11472if test "$GCC" = yes; then
11473 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000011474 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11475echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476 case $host in
11477 *-*-mingw*)
11478 # gcc leaves a trailing carriage return which upsets mingw
11479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11480 *)
11481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11482 esac
11483 case $ac_prog in
11484 # Accept absolute paths.
11485 [\\/]* | ?:[\\/]*)
11486 re_direlt='/[^/][^/]*/\.\./'
11487 # Canonicalize the pathname of ld
11488 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11490 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11491 done
11492 test -z "$LD" && LD="$ac_prog"
11493 ;;
11494 "")
11495 # If it fails, then pretend we aren't using GCC.
11496 ac_prog=ld
11497 ;;
11498 *)
11499 # If it is relative, then search for the first ld in PATH.
11500 with_gnu_ld=unknown
11501 ;;
11502 esac
11503elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000011504 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11505echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011506else
Reid Spencera773bd52006-08-04 18:18:08 +000011507 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11508echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011509fi
11510if test "${lt_cv_path_LD+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512else
11513 if test -z "$LD"; then
11514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11515 for ac_dir in $PATH; do
11516 IFS="$lt_save_ifs"
11517 test -z "$ac_dir" && ac_dir=.
11518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11519 lt_cv_path_LD="$ac_dir/$ac_prog"
11520 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000011521 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522 # Break only if it was the GNU/non-GNU ld that we prefer.
11523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11524 *GNU* | *'with BFD'*)
11525 test "$with_gnu_ld" != no && break
11526 ;;
11527 *)
11528 test "$with_gnu_ld" != yes && break
11529 ;;
11530 esac
11531 fi
11532 done
11533 IFS="$lt_save_ifs"
11534else
11535 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11536fi
11537fi
11538
11539LD="$lt_cv_path_LD"
11540if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000011541 { echo "$as_me:$LINENO: result: $LD" >&5
11542echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011543else
Reid Spencera773bd52006-08-04 18:18:08 +000011544 { echo "$as_me:$LINENO: result: no" >&5
11545echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011546fi
11547test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11548echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11549 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000011550{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11551echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552if test "${lt_cv_prog_gnu_ld+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554else
Reid Spencera773bd52006-08-04 18:18:08 +000011555 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011556case `$LD -v 2>&1 </dev/null` in
11557*GNU* | *'with BFD'*)
11558 lt_cv_prog_gnu_ld=yes
11559 ;;
11560*)
11561 lt_cv_prog_gnu_ld=no
11562 ;;
11563esac
11564fi
Reid Spencera773bd52006-08-04 18:18:08 +000011565{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11566echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567with_gnu_ld=$lt_cv_prog_gnu_ld
11568
11569
Reid Spencera773bd52006-08-04 18:18:08 +000011570{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11571echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572if test "${lt_cv_ld_reload_flag+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575 lt_cv_ld_reload_flag='-r'
11576fi
Reid Spencera773bd52006-08-04 18:18:08 +000011577{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11578echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011579reload_flag=$lt_cv_ld_reload_flag
11580case $reload_flag in
11581"" | " "*) ;;
11582*) reload_flag=" $reload_flag" ;;
11583esac
11584reload_cmds='$LD$reload_flag -o $output$reload_objs'
11585case $host_os in
11586 darwin*)
11587 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000011588 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011589 else
11590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11591 fi
11592 ;;
11593esac
11594
Reid Spencera773bd52006-08-04 18:18:08 +000011595{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11596echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011597if test "${lt_cv_deplibs_check_method+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599else
11600 lt_cv_file_magic_cmd='$MAGIC_CMD'
11601lt_cv_file_magic_test_file=
11602lt_cv_deplibs_check_method='unknown'
11603# Need to set the preceding variable on all platforms that support
11604# interlibrary dependencies.
11605# 'none' -- dependencies not supported.
11606# `unknown' -- same as none, but documents that we really don't know.
11607# 'pass_all' -- all dependencies passed with no checks.
11608# 'test_compile' -- check by making test program.
11609# 'file_magic [[regex]]' -- check by looking for files in library path
11610# which responds to the $file_magic_cmd with a given extended regex.
11611# If you have `file' or equivalent on your system and you're not sure
11612# whether `pass_all' will *always* work, you probably want this one.
11613
11614case $host_os in
11615aix4* | aix5*)
11616 lt_cv_deplibs_check_method=pass_all
11617 ;;
11618
11619beos*)
11620 lt_cv_deplibs_check_method=pass_all
11621 ;;
11622
11623bsdi[45]*)
11624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11625 lt_cv_file_magic_cmd='/usr/bin/file -L'
11626 lt_cv_file_magic_test_file=/shlib/libc.so
11627 ;;
11628
11629cygwin*)
11630 # func_win32_libid is a shell function defined in ltmain.sh
11631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11632 lt_cv_file_magic_cmd='func_win32_libid'
11633 ;;
11634
11635mingw* | pw32*)
11636 # Base MSYS/MinGW do not provide the 'file' command needed by
11637 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11638 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11639 lt_cv_file_magic_cmd='$OBJDUMP -f'
11640 ;;
11641
11642darwin* | rhapsody*)
11643 lt_cv_deplibs_check_method=pass_all
11644 ;;
11645
Reid Spencera773bd52006-08-04 18:18:08 +000011646freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011647 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11648 case $host_cpu in
11649 i*86 )
11650 # Not sure whether the presence of OpenBSD here was a mistake.
11651 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000011652 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 +000011653 lt_cv_file_magic_cmd=/usr/bin/file
11654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11655 ;;
11656 esac
11657 else
11658 lt_cv_deplibs_check_method=pass_all
11659 fi
11660 ;;
11661
11662gnu*)
11663 lt_cv_deplibs_check_method=pass_all
11664 ;;
11665
11666hpux10.20* | hpux11*)
11667 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000011668 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669 ia64*)
11670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11671 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11672 ;;
11673 hppa*64*)
11674 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]'
11675 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11676 ;;
11677 *)
11678 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11679 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11680 ;;
11681 esac
11682 ;;
11683
Reid Spencera773bd52006-08-04 18:18:08 +000011684interix3*)
11685 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11687 ;;
11688
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011689irix5* | irix6* | nonstopux*)
11690 case $LD in
11691 *-32|*"-32 ") libmagic=32-bit;;
11692 *-n32|*"-n32 ") libmagic=N32;;
11693 *-64|*"-64 ") libmagic=64-bit;;
11694 *) libmagic=never-match;;
11695 esac
11696 lt_cv_deplibs_check_method=pass_all
11697 ;;
11698
11699# This must be Linux ELF.
11700linux*)
11701 lt_cv_deplibs_check_method=pass_all
11702 ;;
11703
11704netbsd*)
11705 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11707 else
11708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11709 fi
11710 ;;
11711
11712newos6*)
11713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11714 lt_cv_file_magic_cmd=/usr/bin/file
11715 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11716 ;;
11717
11718nto-qnx*)
11719 lt_cv_deplibs_check_method=unknown
11720 ;;
11721
11722openbsd*)
11723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11725 else
11726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11727 fi
11728 ;;
11729
11730osf3* | osf4* | osf5*)
11731 lt_cv_deplibs_check_method=pass_all
11732 ;;
11733
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011734solaris*)
11735 lt_cv_deplibs_check_method=pass_all
11736 ;;
11737
Reid Spencera773bd52006-08-04 18:18:08 +000011738sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011739 case $host_vendor in
11740 motorola)
11741 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]'
11742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11743 ;;
11744 ncr)
11745 lt_cv_deplibs_check_method=pass_all
11746 ;;
11747 sequent)
11748 lt_cv_file_magic_cmd='/bin/file'
11749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11750 ;;
11751 sni)
11752 lt_cv_file_magic_cmd='/bin/file'
11753 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11754 lt_cv_file_magic_test_file=/lib/libc.so
11755 ;;
11756 siemens)
11757 lt_cv_deplibs_check_method=pass_all
11758 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011759 pc)
11760 lt_cv_deplibs_check_method=pass_all
11761 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011762 esac
11763 ;;
11764
Reid Spencera773bd52006-08-04 18:18:08 +000011765sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011766 lt_cv_deplibs_check_method=pass_all
11767 ;;
11768esac
11769
11770fi
Reid Spencera773bd52006-08-04 18:18:08 +000011771{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11772echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773file_magic_cmd=$lt_cv_file_magic_cmd
11774deplibs_check_method=$lt_cv_deplibs_check_method
11775test -z "$deplibs_check_method" && deplibs_check_method=unknown
11776
11777
11778
11779# If no C compiler was specified, use CC.
11780LTCC=${LTCC-"$CC"}
11781
Reid Spencera773bd52006-08-04 18:18:08 +000011782# If no C compiler flags were specified, use CFLAGS.
11783LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11784
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011785# Allow CC to be a program name with arguments.
11786compiler=$CC
11787
Reid Spencera773bd52006-08-04 18:18:08 +000011788# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011789if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011790 enableval=$enable_libtool_lock;
11791fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011792
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011793test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11794
11795# Some flags need to be propagated to the compiler or linker for good
11796# libtool support.
11797case $host in
11798ia64-*-hpux*)
11799 # Find out which ABI we are using.
11800 echo 'int i;' > conftest.$ac_ext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802 (eval $ac_compile) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; then
11806 case `/usr/bin/file conftest.$ac_objext` in
11807 *ELF-32*)
11808 HPUX_IA64_MODE="32"
11809 ;;
11810 *ELF-64*)
11811 HPUX_IA64_MODE="64"
11812 ;;
11813 esac
11814 fi
11815 rm -rf conftest*
11816 ;;
11817*-*-irix6*)
11818 # Find out which ABI we are using.
Duncan Sands1eff7042007-12-10 17:43:13 +000011819 echo '#line 11819 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11821 (eval $ac_compile) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; then
11825 if test "$lt_cv_prog_gnu_ld" = yes; then
11826 case `/usr/bin/file conftest.$ac_objext` in
11827 *32-bit*)
11828 LD="${LD-ld} -melf32bsmip"
11829 ;;
11830 *N32*)
11831 LD="${LD-ld} -melf32bmipn32"
11832 ;;
11833 *64-bit*)
11834 LD="${LD-ld} -melf64bmip"
11835 ;;
11836 esac
11837 else
11838 case `/usr/bin/file conftest.$ac_objext` in
11839 *32-bit*)
11840 LD="${LD-ld} -32"
11841 ;;
11842 *N32*)
11843 LD="${LD-ld} -n32"
11844 ;;
11845 *64-bit*)
11846 LD="${LD-ld} -64"
11847 ;;
11848 esac
11849 fi
11850 fi
11851 rm -rf conftest*
11852 ;;
11853
11854x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11855 # Find out which ABI we are using.
11856 echo 'int i;' > conftest.$ac_ext
11857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858 (eval $ac_compile) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000011862 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863 *32-bit*)
11864 case $host in
11865 x86_64-*linux*)
11866 LD="${LD-ld} -m elf_i386"
11867 ;;
11868 ppc64-*linux*|powerpc64-*linux*)
11869 LD="${LD-ld} -m elf32ppclinux"
11870 ;;
11871 s390x-*linux*)
11872 LD="${LD-ld} -m elf_s390"
11873 ;;
11874 sparc64-*linux*)
11875 LD="${LD-ld} -m elf32_sparc"
11876 ;;
11877 esac
11878 ;;
11879 *64-bit*)
11880 case $host in
11881 x86_64-*linux*)
11882 LD="${LD-ld} -m elf_x86_64"
11883 ;;
11884 ppc*-*linux*|powerpc*-*linux*)
11885 LD="${LD-ld} -m elf64ppc"
11886 ;;
11887 s390*-*linux*)
11888 LD="${LD-ld} -m elf64_s390"
11889 ;;
11890 sparc*-*linux*)
11891 LD="${LD-ld} -m elf64_sparc"
11892 ;;
11893 esac
11894 ;;
11895 esac
11896 fi
11897 rm -rf conftest*
11898 ;;
11899
11900*-*-sco3.2v5*)
11901 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11902 SAVE_CFLAGS="$CFLAGS"
11903 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000011904 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11905echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011906if test "${lt_cv_cc_needs_belf+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 ac_ext=c
11910ac_cpp='$CPP $CPPFLAGS'
11911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11913ac_compiler_gnu=$ac_cv_c_compiler_gnu
11914
11915 cat >conftest.$ac_ext <<_ACEOF
11916/* confdefs.h. */
11917_ACEOF
11918cat confdefs.h >>conftest.$ac_ext
11919cat >>conftest.$ac_ext <<_ACEOF
11920/* end confdefs.h. */
11921
Reid Spencera773bd52006-08-04 18:18:08 +000011922int
11923main ()
11924{
11925
11926 ;
11927 return 0;
11928}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011929_ACEOF
11930rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011931if { (ac_try="$ac_link"
11932case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11935esac
11936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938 ac_status=$?
11939 grep -v '^ *+' conftest.er1 >conftest.err
11940 rm -f conftest.er1
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000011943 (exit $ac_status); } && {
11944 test -z "$ac_c_werror_flag" ||
11945 test ! -s conftest.err
11946 } && test -s conftest$ac_exeext &&
11947 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948 lt_cv_cc_needs_belf=yes
11949else
11950 echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
Reid Spencera773bd52006-08-04 18:18:08 +000011953 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011954fi
Reid Spencera773bd52006-08-04 18:18:08 +000011955
Scott Michel96dcd2b2007-12-05 21:24:02 +000011956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011957 conftest$ac_exeext conftest.$ac_ext
11958 ac_ext=c
11959ac_cpp='$CPP $CPPFLAGS'
11960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962ac_compiler_gnu=$ac_cv_c_compiler_gnu
11963
11964fi
Reid Spencera773bd52006-08-04 18:18:08 +000011965{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11966echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011967 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11968 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11969 CFLAGS="$SAVE_CFLAGS"
11970 fi
11971 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011972sparc*-*solaris*)
11973 # Find out which ABI we are using.
11974 echo 'int i;' > conftest.$ac_ext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; then
11980 case `/usr/bin/file conftest.o` in
11981 *64-bit*)
11982 case $lt_cv_prog_gnu_ld in
11983 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11984 *) LD="${LD-ld} -64" ;;
11985 esac
11986 ;;
11987 esac
11988 fi
11989 rm -rf conftest*
11990 ;;
11991
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992
11993esac
11994
11995need_locks="$enable_libtool_lock"
11996
11997
Reid Spencer2706f8c2004-09-19 23:53:36 +000011998
11999
12000if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12001 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12002 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012003 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012004ac_cpp='$CXXCPP $CPPFLAGS'
12005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012008{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12009echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012010if test -z "$CXXCPP"; then
12011 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012012 echo $ECHO_N "(cached) $ECHO_C" >&6
12013else
John Criswell47fdd832003-07-14 16:52:07 +000012014 # Double quotes because CXXCPP needs to be expanded
12015 for CXXCPP in "$CXX -E" "/lib/cpp"
12016 do
12017 ac_preproc_ok=false
12018for ac_cxx_preproc_warn_flag in '' yes
12019do
12020 # Use a header file that comes with gcc, so configuring glibc
12021 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12023 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012024 # On the NeXT, cc -E runs the code through the compiler's parser,
12025 # not just through cpp. "Syntax error" is here to catch this case.
12026 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
12032#ifdef __STDC__
12033# include <limits.h>
12034#else
12035# include <assert.h>
12036#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012037 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012038_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012039if { (ac_try="$ac_cpp conftest.$ac_ext"
12040case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012046 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012047 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012051 (exit $ac_status); } >/dev/null && {
12052 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12053 test ! -s conftest.err
12054 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012055 :
12056else
12057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012058sed 's/^/| /' conftest.$ac_ext >&5
12059
John Criswell47fdd832003-07-14 16:52:07 +000012060 # Broken: fails on valid input.
12061continue
12062fi
Reid Spencera773bd52006-08-04 18:18:08 +000012063
John Criswell47fdd832003-07-14 16:52:07 +000012064rm -f conftest.err conftest.$ac_ext
12065
Reid Spencera773bd52006-08-04 18:18:08 +000012066 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012067 # can be detected and how.
12068 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012069/* confdefs.h. */
12070_ACEOF
12071cat confdefs.h >>conftest.$ac_ext
12072cat >>conftest.$ac_ext <<_ACEOF
12073/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012074#include <ac_nonexistent.h>
12075_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012076if { (ac_try="$ac_cpp conftest.$ac_ext"
12077case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080esac
12081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012083 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012084 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012088 (exit $ac_status); } >/dev/null && {
12089 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12090 test ! -s conftest.err
12091 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012092 # Broken: success on invalid input.
12093continue
12094else
12095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012096sed 's/^/| /' conftest.$ac_ext >&5
12097
John Criswell47fdd832003-07-14 16:52:07 +000012098 # Passes both tests.
12099ac_preproc_ok=:
12100break
12101fi
Reid Spencera773bd52006-08-04 18:18:08 +000012102
John Criswell47fdd832003-07-14 16:52:07 +000012103rm -f conftest.err conftest.$ac_ext
12104
12105done
12106# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12107rm -f conftest.err conftest.$ac_ext
12108if $ac_preproc_ok; then
12109 break
John Criswell7a73b802003-06-30 21:59:07 +000012110fi
12111
John Criswell47fdd832003-07-14 16:52:07 +000012112 done
12113 ac_cv_prog_CXXCPP=$CXXCPP
12114
12115fi
12116 CXXCPP=$ac_cv_prog_CXXCPP
12117else
12118 ac_cv_prog_CXXCPP=$CXXCPP
12119fi
Reid Spencera773bd52006-08-04 18:18:08 +000012120{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12121echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012122ac_preproc_ok=false
12123for ac_cxx_preproc_warn_flag in '' yes
12124do
12125 # Use a header file that comes with gcc, so configuring glibc
12126 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12128 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012129 # On the NeXT, cc -E runs the code through the compiler's parser,
12130 # not just through cpp. "Syntax error" is here to catch this case.
12131 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012132/* confdefs.h. */
12133_ACEOF
12134cat confdefs.h >>conftest.$ac_ext
12135cat >>conftest.$ac_ext <<_ACEOF
12136/* end confdefs.h. */
12137#ifdef __STDC__
12138# include <limits.h>
12139#else
12140# include <assert.h>
12141#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012142 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012143_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012144if { (ac_try="$ac_cpp conftest.$ac_ext"
12145case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12148esac
12149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012151 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012152 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012153 rm -f conftest.er1
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012156 (exit $ac_status); } >/dev/null && {
12157 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12158 test ! -s conftest.err
12159 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012160 :
12161else
12162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012163sed 's/^/| /' conftest.$ac_ext >&5
12164
John Criswell47fdd832003-07-14 16:52:07 +000012165 # Broken: fails on valid input.
12166continue
12167fi
Reid Spencera773bd52006-08-04 18:18:08 +000012168
John Criswell47fdd832003-07-14 16:52:07 +000012169rm -f conftest.err conftest.$ac_ext
12170
Reid Spencera773bd52006-08-04 18:18:08 +000012171 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012172 # can be detected and how.
12173 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012174/* confdefs.h. */
12175_ACEOF
12176cat confdefs.h >>conftest.$ac_ext
12177cat >>conftest.$ac_ext <<_ACEOF
12178/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012179#include <ac_nonexistent.h>
12180_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012181if { (ac_try="$ac_cpp conftest.$ac_ext"
12182case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185esac
12186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012188 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012189 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012193 (exit $ac_status); } >/dev/null && {
12194 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12195 test ! -s conftest.err
12196 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012197 # Broken: success on invalid input.
12198continue
12199else
12200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012201sed 's/^/| /' conftest.$ac_ext >&5
12202
John Criswell47fdd832003-07-14 16:52:07 +000012203 # Passes both tests.
12204ac_preproc_ok=:
12205break
12206fi
Reid Spencera773bd52006-08-04 18:18:08 +000012207
John Criswell47fdd832003-07-14 16:52:07 +000012208rm -f conftest.err conftest.$ac_ext
12209
12210done
12211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12212rm -f conftest.err conftest.$ac_ext
12213if $ac_preproc_ok; then
12214 :
12215else
John Criswell0c38eaf2003-09-10 15:17:25 +000012216 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12217See \`config.log' for more details." >&5
12218echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12219See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012220 { (exit 1); exit 1; }; }
12221fi
12222
Reid Spencera773bd52006-08-04 18:18:08 +000012223ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012224ac_cpp='$CXXCPP $CPPFLAGS'
12225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12228
Reid Spencer2706f8c2004-09-19 23:53:36 +000012229fi
12230
John Criswell47fdd832003-07-14 16:52:07 +000012231
12232ac_ext=f
12233ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12234ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12235ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12236if test -n "$ac_tool_prefix"; then
Scott Michel96dcd2b2007-12-05 21:24:02 +000012237 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 +000012238 do
12239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012243if test "${ac_cv_prog_F77+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245else
12246 if test -n "$F77"; then
12247 ac_cv_prog_F77="$F77" # Let the user override the test.
12248else
12249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250for as_dir in $PATH
12251do
12252 IFS=$as_save_IFS
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012255 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 +000012256 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12258 break 2
12259 fi
12260done
12261done
Reid Spencera773bd52006-08-04 18:18:08 +000012262IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012263
12264fi
12265fi
12266F77=$ac_cv_prog_F77
12267if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012268 { echo "$as_me:$LINENO: result: $F77" >&5
12269echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012270else
Reid Spencera773bd52006-08-04 18:18:08 +000012271 { echo "$as_me:$LINENO: result: no" >&5
12272echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012273fi
12274
Reid Spencera773bd52006-08-04 18:18:08 +000012275
John Criswell47fdd832003-07-14 16:52:07 +000012276 test -n "$F77" && break
12277 done
12278fi
12279if test -z "$F77"; then
12280 ac_ct_F77=$F77
Scott Michel96dcd2b2007-12-05 21:24:02 +000012281 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 +000012282do
12283 # Extract the first word of "$ac_prog", so it can be a program name with args.
12284set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012287if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289else
12290 if test -n "$ac_ct_F77"; then
12291 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12292else
12293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294for as_dir in $PATH
12295do
12296 IFS=$as_save_IFS
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012299 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 +000012300 ac_cv_prog_ac_ct_F77="$ac_prog"
12301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 break 2
12303 fi
12304done
12305done
Reid Spencera773bd52006-08-04 18:18:08 +000012306IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012307
12308fi
12309fi
12310ac_ct_F77=$ac_cv_prog_ac_ct_F77
12311if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012312 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12313echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012314else
Reid Spencera773bd52006-08-04 18:18:08 +000012315 { echo "$as_me:$LINENO: result: no" >&5
12316echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012317fi
12318
Reid Spencera773bd52006-08-04 18:18:08 +000012319
John Criswell47fdd832003-07-14 16:52:07 +000012320 test -n "$ac_ct_F77" && break
12321done
12322
Reid Spencera773bd52006-08-04 18:18:08 +000012323 if test "x$ac_ct_F77" = x; then
12324 F77=""
12325 else
12326 case $cross_compiling:$ac_tool_warned in
12327yes:)
12328{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12329whose name does not start with the host triplet. If you think this
12330configuration is useful to you, please write to autoconf@gnu.org." >&5
12331echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12332whose name does not start with the host triplet. If you think this
12333configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12334ac_tool_warned=yes ;;
12335esac
12336 F77=$ac_ct_F77
12337 fi
John Criswell47fdd832003-07-14 16:52:07 +000012338fi
12339
12340
12341# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000012342echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012343ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000012344{ (ac_try="$ac_compiler --version >&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 --version >&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 Spencera773bd52006-08-04 18:18:08 +000012364{ (ac_try="$ac_compiler -V >&5"
12365case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12368esac
12369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000012374rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000012375
12376# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000012377# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000012378ac_save_ext=$ac_ext
12379ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000012380{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12381echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012382if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384else
12385 cat >conftest.$ac_ext <<_ACEOF
12386 program main
12387#ifndef __GNUC__
12388 choke me
12389#endif
12390
12391 end
12392_ACEOF
12393rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012394if { (ac_try="$ac_compile"
12395case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398esac
12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012401 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012406 (exit $ac_status); } && {
12407 test -z "$ac_f77_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012410 ac_compiler_gnu=yes
12411else
12412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012413sed 's/^/| /' conftest.$ac_ext >&5
12414
Reid Spencera773bd52006-08-04 18:18:08 +000012415 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000012416fi
Reid Spencera773bd52006-08-04 18:18:08 +000012417
12418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012419ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12420
12421fi
Reid Spencera773bd52006-08-04 18:18:08 +000012422{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12423echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012424ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000012425ac_test_FFLAGS=${FFLAGS+set}
12426ac_save_FFLAGS=$FFLAGS
12427FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000012428{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12429echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012430if test "${ac_cv_prog_f77_g+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12432else
12433 FFLAGS=-g
12434cat >conftest.$ac_ext <<_ACEOF
12435 program main
12436
12437 end
12438_ACEOF
12439rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012440if { (ac_try="$ac_compile"
12441case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12444esac
12445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012447 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000012452 (exit $ac_status); } && {
12453 test -z "$ac_f77_werror_flag" ||
12454 test ! -s conftest.err
12455 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012456 ac_cv_prog_f77_g=yes
12457else
12458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012459sed 's/^/| /' conftest.$ac_ext >&5
12460
Reid Spencera773bd52006-08-04 18:18:08 +000012461 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000012462fi
Reid Spencera773bd52006-08-04 18:18:08 +000012463
12464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012465
12466fi
Reid Spencera773bd52006-08-04 18:18:08 +000012467{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12468echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012469if test "$ac_test_FFLAGS" = set; then
12470 FFLAGS=$ac_save_FFLAGS
12471elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012472 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012473 FFLAGS="-g -O2"
12474 else
12475 FFLAGS="-g"
12476 fi
12477else
Reid Spencer2706f8c2004-09-19 23:53:36 +000012478 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012479 FFLAGS="-O2"
12480 else
12481 FFLAGS=
12482 fi
12483fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012484
12485G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000012486ac_ext=c
12487ac_cpp='$CPP $CPPFLAGS'
12488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12490ac_compiler_gnu=$ac_cv_c_compiler_gnu
12491
12492
12493
12494# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12495
12496# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000012497{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12498echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012499if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501else
12502 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000012503 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000012504
12505 case $build_os in
12506 msdosdjgpp*)
12507 # On DJGPP, this test can blow up pretty badly due to problems in libc
12508 # (any single argument exceeding 2000 bytes causes a buffer overrun
12509 # during glob expansion). Even if it were fixed, the result of this
12510 # check would be larger than it should be.
12511 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12512 ;;
12513
12514 gnu*)
12515 # Under GNU Hurd, this test is not required because there is
12516 # no limit to the length of command line arguments.
12517 # Libtool will interpret -1 as no limit whatsoever
12518 lt_cv_sys_max_cmd_len=-1;
12519 ;;
12520
12521 cygwin* | mingw*)
12522 # On Win9x/ME, this test blows up -- it succeeds, but takes
12523 # about 5 minutes as the teststring grows exponentially.
12524 # Worse, since 9x/ME are not pre-emptively multitasking,
12525 # you end up with a "frozen" computer, even though with patience
12526 # the test eventually succeeds (with a max line length of 256k).
12527 # Instead, let's just punt: use the minimum linelength reported by
12528 # all of the supported platforms: 8192 (on NT/2K/XP).
12529 lt_cv_sys_max_cmd_len=8192;
12530 ;;
12531
Reid Spencer2706f8c2004-09-19 23:53:36 +000012532 amigaos*)
12533 # On AmigaOS with pdksh, this test takes hours, literally.
12534 # So we just punt and use a minimum line length of 8192.
12535 lt_cv_sys_max_cmd_len=8192;
12536 ;;
12537
Reid Spencera773bd52006-08-04 18:18:08 +000012538 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012539 # This has been around since 386BSD, at least. Likely further.
12540 if test -x /sbin/sysctl; then
12541 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12542 elif test -x /usr/sbin/sysctl; then
12543 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12544 else
Reid Spencera773bd52006-08-04 18:18:08 +000012545 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000012546 fi
12547 # And add a safety zone
12548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000012549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012550 ;;
12551
Reid Spencera773bd52006-08-04 18:18:08 +000012552 interix*)
12553 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12554 lt_cv_sys_max_cmd_len=196608
12555 ;;
12556
12557 osf*)
12558 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12559 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12560 # nice to cause kernel panics so lets avoid the loop below.
12561 # First set a reasonable default.
12562 lt_cv_sys_max_cmd_len=16384
12563 #
12564 if test -x /sbin/sysconfig; then
12565 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12566 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12567 esac
12568 fi
12569 ;;
12570 sco3.2v5*)
12571 lt_cv_sys_max_cmd_len=102400
12572 ;;
12573 sysv5* | sco5v6* | sysv4.2uw2*)
12574 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12575 if test -n "$kargmax"; then
12576 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12577 else
12578 lt_cv_sys_max_cmd_len=32768
12579 fi
12580 ;;
12581 *)
John Criswell47fdd832003-07-14 16:52:07 +000012582 # If test is not a shell built-in, we'll probably end up computing a
12583 # maximum length that is only half of the actual maximum length, but
12584 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012585 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12586 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12587 = "XX$teststring") >/dev/null 2>&1 &&
12588 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000012589 lt_cv_sys_max_cmd_len=$new_result &&
12590 test $i != 17 # 1/2 MB should be enough
12591 do
12592 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012593 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000012594 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000012595 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000012596 # Add a significant safety factor because C++ compilers can tack on massive
12597 # amounts of additional arguments before passing them to the linker.
12598 # It appears as though 1/2 is a usable value.
12599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12600 ;;
12601 esac
12602
12603fi
12604
12605if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012606 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12607echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012608else
Reid Spencera773bd52006-08-04 18:18:08 +000012609 { echo "$as_me:$LINENO: result: none" >&5
12610echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012611fi
12612
12613
12614
12615
12616# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000012617{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12618echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012619if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621else
12622
12623# These are sane defaults that work on at least a few old systems.
12624# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12625
12626# Character class describing NM global symbol codes.
12627symcode='[BCDEGRST]'
12628
12629# Regexp to match symbols that can be accessed directly from C.
12630sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12631
John Criswell47fdd832003-07-14 16:52:07 +000012632# Transform an extracted symbol line into a proper C declaration
12633lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12634
12635# Transform an extracted symbol line into symbol name and symbol address
12636lt_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'"
12637
12638# Define system-specific variables.
12639case $host_os in
12640aix*)
12641 symcode='[BCDT]'
12642 ;;
12643cygwin* | mingw* | pw32*)
12644 symcode='[ABCDGISTW]'
12645 ;;
12646hpux*) # Its linker distinguishes data from code symbols
12647 if test "$host_cpu" = ia64; then
12648 symcode='[ABCDEGRST]'
12649 fi
12650 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12651 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'"
12652 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012653linux*)
12654 if test "$host_cpu" = ia64; then
12655 symcode='[ABCDGIRSTW]'
12656 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12657 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'"
12658 fi
12659 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012660irix* | nonstopux*)
12661 symcode='[BCDEGRST]'
12662 ;;
12663osf*)
12664 symcode='[BCDEGQRST]'
12665 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012666solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012667 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000012668 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012669sco3.2v5*)
12670 symcode='[DT]'
12671 ;;
12672sysv4.2uw2*)
12673 symcode='[DT]'
12674 ;;
12675sysv5* | sco5v6* | unixware* | OpenUNIX*)
12676 symcode='[ABDT]'
12677 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012678sysv4)
12679 symcode='[DFNSTU]'
12680 ;;
12681esac
12682
12683# Handle CRLF in mingw tool chain
12684opt_cr=
12685case $build_os in
12686mingw*)
12687 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12688 ;;
12689esac
12690
12691# If we're using GNU nm, then use its standard symbol codes.
12692case `$NM -V 2>&1` in
12693*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012694 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000012695esac
12696
12697# Try without a prefix undercore, then with it.
12698for ac_symprfx in "" "_"; do
12699
Reid Spencera773bd52006-08-04 18:18:08 +000012700 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12701 symxfrm="\\1 $ac_symprfx\\2 \\2"
12702
John Criswell47fdd832003-07-14 16:52:07 +000012703 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000012704 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 +000012705
12706 # Check to see that the pipe works correctly.
12707 pipe_works=no
12708
12709 rm -f conftest*
12710 cat > conftest.$ac_ext <<EOF
12711#ifdef __cplusplus
12712extern "C" {
12713#endif
12714char nm_test_var;
12715void nm_test_func(){}
12716#ifdef __cplusplus
12717}
12718#endif
12719int main(){nm_test_var='a';nm_test_func();return(0);}
12720EOF
12721
12722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; then
12727 # Now try to grab the symbols.
12728 nlist=conftest.nm
12729 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12730 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } && test -s "$nlist"; then
12734 # Try sorting and uniquifying the output.
12735 if sort "$nlist" | uniq > "$nlist"T; then
12736 mv -f "$nlist"T "$nlist"
12737 else
12738 rm -f "$nlist"T
12739 fi
12740
12741 # Make sure that we snagged all the symbols we need.
12742 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12743 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12744 cat <<EOF > conftest.$ac_ext
12745#ifdef __cplusplus
12746extern "C" {
12747#endif
12748
12749EOF
12750 # Now generate the symbol file.
12751 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12752
12753 cat <<EOF >> conftest.$ac_ext
12754#if defined (__STDC__) && __STDC__
12755# define lt_ptr_t void *
12756#else
12757# define lt_ptr_t char *
12758# define const
12759#endif
12760
12761/* The mapping between symbol names and symbols. */
12762const struct {
12763 const char *name;
12764 lt_ptr_t address;
12765}
12766lt_preloaded_symbols[] =
12767{
12768EOF
12769 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12770 cat <<\EOF >> conftest.$ac_ext
12771 {0, (lt_ptr_t) 0}
12772};
12773
12774#ifdef __cplusplus
12775}
12776#endif
12777EOF
12778 # Now try linking the two files.
12779 mv conftest.$ac_objext conftstm.$ac_objext
12780 lt_save_LIBS="$LIBS"
12781 lt_save_CFLAGS="$CFLAGS"
12782 LIBS="conftstm.$ac_objext"
12783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785 (eval $ac_link) 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12789 pipe_works=yes
12790 fi
12791 LIBS="$lt_save_LIBS"
12792 CFLAGS="$lt_save_CFLAGS"
12793 else
12794 echo "cannot find nm_test_func in $nlist" >&5
12795 fi
12796 else
12797 echo "cannot find nm_test_var in $nlist" >&5
12798 fi
12799 else
12800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12801 fi
12802 else
12803 echo "$progname: failed program was:" >&5
12804 cat conftest.$ac_ext >&5
12805 fi
12806 rm -f conftest* conftst*
12807
12808 # Do not use the global_symbol_pipe unless it works.
12809 if test "$pipe_works" = yes; then
12810 break
12811 else
12812 lt_cv_sys_global_symbol_pipe=
12813 fi
12814done
12815
12816fi
12817
12818if test -z "$lt_cv_sys_global_symbol_pipe"; then
12819 lt_cv_sys_global_symbol_to_cdecl=
12820fi
12821if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012822 { echo "$as_me:$LINENO: result: failed" >&5
12823echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012824else
Reid Spencera773bd52006-08-04 18:18:08 +000012825 { echo "$as_me:$LINENO: result: ok" >&5
12826echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012827fi
12828
Reid Spencera773bd52006-08-04 18:18:08 +000012829{ echo "$as_me:$LINENO: checking for objdir" >&5
12830echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012831if test "${lt_cv_objdir+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833else
12834 rm -f .libs 2>/dev/null
12835mkdir .libs 2>/dev/null
12836if test -d .libs; then
12837 lt_cv_objdir=.libs
12838else
12839 # MS-DOS does not allow filenames that begin with a dot.
12840 lt_cv_objdir=_libs
12841fi
12842rmdir .libs 2>/dev/null
12843fi
Reid Spencera773bd52006-08-04 18:18:08 +000012844{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12845echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012846objdir=$lt_cv_objdir
12847
12848
12849
12850
12851
12852case $host_os in
12853aix3*)
12854 # AIX sometimes has problems with the GCC collect2 program. For some
12855 # reason, if we set the COLLECT_NAMES environment variable, the problems
12856 # vanish in a puff of smoke.
12857 if test "X${COLLECT_NAMES+set}" != Xset; then
12858 COLLECT_NAMES=
12859 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000012860 fi
12861 ;;
12862esac
12863
John Criswell47fdd832003-07-14 16:52:07 +000012864# Sed substitution that helps us do robust quoting. It backslashifies
12865# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000012866Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000012867sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12868
12869# Same as above, but do not quote variable references.
12870double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12871
12872# Sed substitution to delay expansion of an escaped shell variable in a
12873# double_quote_subst'ed string.
12874delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12875
12876# Sed substitution to avoid accidental globbing in evaled expressions
12877no_glob_subst='s/\*/\\\*/g'
12878
12879# Constants:
12880rm="rm -f"
12881
12882# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000012883default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000012884can_build_shared=yes
12885
Reid Spencera773bd52006-08-04 18:18:08 +000012886# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000012887# which needs '.lib').
12888libext=a
12889ltmain="$ac_aux_dir/ltmain.sh"
12890ofile="$default_ofile"
12891with_gnu_ld="$lt_cv_prog_gnu_ld"
12892
12893if test -n "$ac_tool_prefix"; then
12894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12895set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012898if test "${ac_cv_prog_AR+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900else
12901 if test -n "$AR"; then
12902 ac_cv_prog_AR="$AR" # Let the user override the test.
12903else
12904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905for as_dir in $PATH
12906do
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012910 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 +000012911 ac_cv_prog_AR="${ac_tool_prefix}ar"
12912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 break 2
12914 fi
12915done
12916done
Reid Spencera773bd52006-08-04 18:18:08 +000012917IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012918
12919fi
12920fi
12921AR=$ac_cv_prog_AR
12922if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012923 { echo "$as_me:$LINENO: result: $AR" >&5
12924echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012925else
Reid Spencera773bd52006-08-04 18:18:08 +000012926 { echo "$as_me:$LINENO: result: no" >&5
12927echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012928fi
12929
Reid Spencera773bd52006-08-04 18:18:08 +000012930
John Criswell47fdd832003-07-14 16:52:07 +000012931fi
12932if test -z "$ac_cv_prog_AR"; then
12933 ac_ct_AR=$AR
12934 # Extract the first word of "ar", so it can be a program name with args.
12935set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012938if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12940else
12941 if test -n "$ac_ct_AR"; then
12942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12943else
12944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945for as_dir in $PATH
12946do
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000012950 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 +000012951 ac_cv_prog_ac_ct_AR="ar"
12952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 break 2
12954 fi
12955done
12956done
Reid Spencera773bd52006-08-04 18:18:08 +000012957IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012958
John Criswell47fdd832003-07-14 16:52:07 +000012959fi
12960fi
12961ac_ct_AR=$ac_cv_prog_ac_ct_AR
12962if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012963 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12964echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012965else
Reid Spencera773bd52006-08-04 18:18:08 +000012966 { echo "$as_me:$LINENO: result: no" >&5
12967echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012968fi
12969
Reid Spencera773bd52006-08-04 18:18:08 +000012970 if test "x$ac_ct_AR" = x; then
12971 AR="false"
12972 else
12973 case $cross_compiling:$ac_tool_warned in
12974yes:)
12975{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12976whose name does not start with the host triplet. If you think this
12977configuration is useful to you, please write to autoconf@gnu.org." >&5
12978echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12979whose name does not start with the host triplet. If you think this
12980configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12981ac_tool_warned=yes ;;
12982esac
12983 AR=$ac_ct_AR
12984 fi
John Criswell47fdd832003-07-14 16:52:07 +000012985else
12986 AR="$ac_cv_prog_AR"
12987fi
12988
John Criswell7a73b802003-06-30 21:59:07 +000012989if test -n "$ac_tool_prefix"; then
12990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000012994if test "${ac_cv_prog_RANLIB+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
12997 if test -n "$RANLIB"; then
12998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12999else
13000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001for as_dir in $PATH
13002do
13003 IFS=$as_save_IFS
13004 test -z "$as_dir" && as_dir=.
13005 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013006 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 +000013007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13009 break 2
13010 fi
13011done
13012done
Reid Spencera773bd52006-08-04 18:18:08 +000013013IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013014
13015fi
13016fi
13017RANLIB=$ac_cv_prog_RANLIB
13018if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013019 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13020echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013021else
Reid Spencera773bd52006-08-04 18:18:08 +000013022 { echo "$as_me:$LINENO: result: no" >&5
13023echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013024fi
13025
Reid Spencera773bd52006-08-04 18:18:08 +000013026
John Criswell7a73b802003-06-30 21:59:07 +000013027fi
13028if test -z "$ac_cv_prog_RANLIB"; then
13029 ac_ct_RANLIB=$RANLIB
13030 # Extract the first word of "ranlib", so it can be a program name with args.
13031set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013034if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13036else
13037 if test -n "$ac_ct_RANLIB"; then
13038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13039else
13040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041for as_dir in $PATH
13042do
13043 IFS=$as_save_IFS
13044 test -z "$as_dir" && as_dir=.
13045 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013046 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 +000013047 ac_cv_prog_ac_ct_RANLIB="ranlib"
13048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13049 break 2
13050 fi
13051done
13052done
Reid Spencera773bd52006-08-04 18:18:08 +000013053IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013054
John Criswell7a73b802003-06-30 21:59:07 +000013055fi
13056fi
13057ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13058if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013059 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13060echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013061else
Reid Spencera773bd52006-08-04 18:18:08 +000013062 { echo "$as_me:$LINENO: result: no" >&5
13063echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013064fi
13065
Reid Spencera773bd52006-08-04 18:18:08 +000013066 if test "x$ac_ct_RANLIB" = x; then
13067 RANLIB=":"
13068 else
13069 case $cross_compiling:$ac_tool_warned in
13070yes:)
13071{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13072whose name does not start with the host triplet. If you think this
13073configuration is useful to you, please write to autoconf@gnu.org." >&5
13074echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13075whose name does not start with the host triplet. If you think this
13076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13077ac_tool_warned=yes ;;
13078esac
13079 RANLIB=$ac_ct_RANLIB
13080 fi
John Criswell7a73b802003-06-30 21:59:07 +000013081else
13082 RANLIB="$ac_cv_prog_RANLIB"
13083fi
13084
13085if test -n "$ac_tool_prefix"; then
13086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13087set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013090if test "${ac_cv_prog_STRIP+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092else
13093 if test -n "$STRIP"; then
13094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13095else
13096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097for as_dir in $PATH
13098do
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013102 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 +000013103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13106 fi
13107done
13108done
Reid Spencera773bd52006-08-04 18:18:08 +000013109IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013110
13111fi
13112fi
13113STRIP=$ac_cv_prog_STRIP
13114if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013115 { echo "$as_me:$LINENO: result: $STRIP" >&5
13116echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013117else
Reid Spencera773bd52006-08-04 18:18:08 +000013118 { echo "$as_me:$LINENO: result: no" >&5
13119echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013120fi
13121
Reid Spencera773bd52006-08-04 18:18:08 +000013122
John Criswell7a73b802003-06-30 21:59:07 +000013123fi
13124if test -z "$ac_cv_prog_STRIP"; then
13125 ac_ct_STRIP=$STRIP
13126 # Extract the first word of "strip", so it can be a program name with args.
13127set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013130if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13132else
13133 if test -n "$ac_ct_STRIP"; then
13134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13135else
13136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137for as_dir in $PATH
13138do
13139 IFS=$as_save_IFS
13140 test -z "$as_dir" && as_dir=.
13141 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000013142 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 +000013143 ac_cv_prog_ac_ct_STRIP="strip"
13144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13145 break 2
13146 fi
13147done
13148done
Reid Spencera773bd52006-08-04 18:18:08 +000013149IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013150
John Criswell7a73b802003-06-30 21:59:07 +000013151fi
13152fi
13153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13154if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013155 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13156echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013157else
Reid Spencera773bd52006-08-04 18:18:08 +000013158 { echo "$as_me:$LINENO: result: no" >&5
13159echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013160fi
13161
Reid Spencera773bd52006-08-04 18:18:08 +000013162 if test "x$ac_ct_STRIP" = x; then
13163 STRIP=":"
13164 else
13165 case $cross_compiling:$ac_tool_warned in
13166yes:)
13167{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13168whose name does not start with the host triplet. If you think this
13169configuration is useful to you, please write to autoconf@gnu.org." >&5
13170echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13171whose name does not start with the host triplet. If you think this
13172configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13173ac_tool_warned=yes ;;
13174esac
13175 STRIP=$ac_ct_STRIP
13176 fi
John Criswell7a73b802003-06-30 21:59:07 +000013177else
13178 STRIP="$ac_cv_prog_STRIP"
13179fi
13180
13181
John Criswell7a73b802003-06-30 21:59:07 +000013182old_CC="$CC"
13183old_CFLAGS="$CFLAGS"
13184
13185# Set sane defaults for various variables
13186test -z "$AR" && AR=ar
13187test -z "$AR_FLAGS" && AR_FLAGS=cru
13188test -z "$AS" && AS=as
13189test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013190test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013191test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013192test -z "$DLLTOOL" && DLLTOOL=dlltool
13193test -z "$LD" && LD=ld
13194test -z "$LN_S" && LN_S="ln -s"
13195test -z "$MAGIC_CMD" && MAGIC_CMD=file
13196test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013197test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013198test -z "$OBJDUMP" && OBJDUMP=objdump
13199test -z "$RANLIB" && RANLIB=:
13200test -z "$STRIP" && STRIP=:
13201test -z "$ac_objext" && ac_objext=o
13202
John Criswell7a73b802003-06-30 21:59:07 +000013203# Determine commands to create old-style static archives.
13204old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13205old_postinstall_cmds='chmod 644 $oldlib'
13206old_postuninstall_cmds=
13207
13208if test -n "$RANLIB"; then
13209 case $host_os in
13210 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013211 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013212 ;;
13213 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013214 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013215 ;;
13216 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013217 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013218fi
13219
Reid Spencera773bd52006-08-04 18:18:08 +000013220for cc_temp in $compiler""; do
13221 case $cc_temp in
13222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13224 \-*) ;;
13225 *) break;;
13226 esac
13227done
13228cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13229
Reid Spencer2706f8c2004-09-19 23:53:36 +000013230
John Criswell47fdd832003-07-14 16:52:07 +000013231# Only perform the check for file, if the check method requires it
13232case $deplibs_check_method in
13233file_magic*)
13234 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013235 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13236echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013237if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013239else
John Criswell47fdd832003-07-14 16:52:07 +000013240 case $MAGIC_CMD in
13241[\\/*] | ?:[\\/]*)
13242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13243 ;;
13244*)
13245 lt_save_MAGIC_CMD="$MAGIC_CMD"
13246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13248 for ac_dir in $ac_dummy; do
13249 IFS="$lt_save_ifs"
13250 test -z "$ac_dir" && ac_dir=.
13251 if test -f $ac_dir/${ac_tool_prefix}file; then
13252 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13253 if test -n "$file_magic_test_file"; then
13254 case $deplibs_check_method in
13255 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13259 $EGREP "$file_magic_regex" > /dev/null; then
13260 :
13261 else
13262 cat <<EOF 1>&2
13263
13264*** Warning: the command libtool uses to detect shared libraries,
13265*** $file_magic_cmd, produces output that libtool cannot recognize.
13266*** The result is that libtool may fail to recognize shared libraries
13267*** as such. This will affect the creation of libtool libraries that
13268*** depend on shared libraries, but programs linked with such libtool
13269*** libraries will work regardless of this problem. Nevertheless, you
13270*** may want to report the problem to your system manager and/or to
13271*** bug-libtool@gnu.org
13272
13273EOF
13274 fi ;;
13275 esac
13276 fi
13277 break
13278 fi
13279 done
13280 IFS="$lt_save_ifs"
13281 MAGIC_CMD="$lt_save_MAGIC_CMD"
13282 ;;
13283esac
John Criswell7a73b802003-06-30 21:59:07 +000013284fi
John Criswell7a73b802003-06-30 21:59:07 +000013285
John Criswell47fdd832003-07-14 16:52:07 +000013286MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13287if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013288 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13289echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013290else
Reid Spencera773bd52006-08-04 18:18:08 +000013291 { echo "$as_me:$LINENO: result: no" >&5
13292echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013293fi
John Criswell7a73b802003-06-30 21:59:07 +000013294
John Criswell47fdd832003-07-14 16:52:07 +000013295if test -z "$lt_cv_path_MAGIC_CMD"; then
13296 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013297 { echo "$as_me:$LINENO: checking for file" >&5
13298echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013299if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301else
13302 case $MAGIC_CMD in
13303[\\/*] | ?:[\\/]*)
13304 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13305 ;;
13306*)
13307 lt_save_MAGIC_CMD="$MAGIC_CMD"
13308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13309 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13310 for ac_dir in $ac_dummy; do
13311 IFS="$lt_save_ifs"
13312 test -z "$ac_dir" && ac_dir=.
13313 if test -f $ac_dir/file; then
13314 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13315 if test -n "$file_magic_test_file"; then
13316 case $deplibs_check_method in
13317 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013318 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13320 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13321 $EGREP "$file_magic_regex" > /dev/null; then
13322 :
13323 else
13324 cat <<EOF 1>&2
13325
13326*** Warning: the command libtool uses to detect shared libraries,
13327*** $file_magic_cmd, produces output that libtool cannot recognize.
13328*** The result is that libtool may fail to recognize shared libraries
13329*** as such. This will affect the creation of libtool libraries that
13330*** depend on shared libraries, but programs linked with such libtool
13331*** libraries will work regardless of this problem. Nevertheless, you
13332*** may want to report the problem to your system manager and/or to
13333*** bug-libtool@gnu.org
13334
13335EOF
13336 fi ;;
13337 esac
13338 fi
13339 break
13340 fi
13341 done
13342 IFS="$lt_save_ifs"
13343 MAGIC_CMD="$lt_save_MAGIC_CMD"
13344 ;;
13345esac
13346fi
13347
13348MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13349if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013350 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13351echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013352else
Reid Spencera773bd52006-08-04 18:18:08 +000013353 { echo "$as_me:$LINENO: result: no" >&5
13354echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013355fi
13356
13357 else
13358 MAGIC_CMD=:
13359 fi
13360fi
13361
13362 fi
13363 ;;
13364esac
13365
Reid Spencer17795972004-11-18 09:47:37 +000013366enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000013367enable_win32_dll=no
13368
Reid Spencera773bd52006-08-04 18:18:08 +000013369# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000013370if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013371 enableval=$enable_libtool_lock;
13372fi
John Criswell47fdd832003-07-14 16:52:07 +000013373
John Criswell47fdd832003-07-14 16:52:07 +000013374test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13375
John Criswell7a73b802003-06-30 21:59:07 +000013376
Reid Spencera773bd52006-08-04 18:18:08 +000013377# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000013378if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013379 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000013380else
13381 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000013382fi
13383
John Criswell7a73b802003-06-30 21:59:07 +000013384test -z "$pic_mode" && pic_mode=default
13385
John Criswell47fdd832003-07-14 16:52:07 +000013386# Use C for the default configuration in the libtool script
13387tagname=
13388lt_save_CC="$CC"
13389ac_ext=c
13390ac_cpp='$CPP $CPPFLAGS'
13391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393ac_compiler_gnu=$ac_cv_c_compiler_gnu
13394
13395
13396# Source file extension for C test sources.
13397ac_ext=c
13398
13399# Object file extension for compiled C test sources.
13400objext=o
13401objext=$objext
13402
13403# Code to be used in simple compile tests
13404lt_simple_compile_test_code="int some_variable = 0;\n"
13405
13406# Code to be used in simple link tests
13407lt_simple_link_test_code='int main(){return(0);}\n'
13408
13409
13410# If no C compiler was specified, use CC.
13411LTCC=${LTCC-"$CC"}
13412
Reid Spencera773bd52006-08-04 18:18:08 +000013413# If no C compiler flags were specified, use CFLAGS.
13414LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13415
John Criswell47fdd832003-07-14 16:52:07 +000013416# Allow CC to be a program name with arguments.
13417compiler=$CC
13418
13419
Reid Spencera773bd52006-08-04 18:18:08 +000013420# save warnings/boilerplate of simple test code
13421ac_outfile=conftest.$ac_objext
13422printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13423eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13424_lt_compiler_boilerplate=`cat conftest.err`
13425$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013426
Reid Spencera773bd52006-08-04 18:18:08 +000013427ac_outfile=conftest.$ac_objext
13428printf "$lt_simple_link_test_code" >conftest.$ac_ext
13429eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13430_lt_linker_boilerplate=`cat conftest.err`
13431$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013432
13433
John Criswell47fdd832003-07-14 16:52:07 +000013434
13435lt_prog_compiler_no_builtin_flag=
13436
13437if test "$GCC" = yes; then
13438 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13439
Reid Spencer2706f8c2004-09-19 23:53:36 +000013440
Reid Spencera773bd52006-08-04 18:18:08 +000013441{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13442echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013443if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445else
13446 lt_cv_prog_compiler_rtti_exceptions=no
13447 ac_outfile=conftest.$ac_objext
13448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13449 lt_compiler_flag="-fno-rtti -fno-exceptions"
13450 # Insert the option either (1) after the last *FLAGS variable, or
13451 # (2) before a word containing "conftest.", or (3) at the end.
13452 # Note that $ac_compile itself does not contain backslashes and begins
13453 # with a dollar sign (not a hyphen), so the echo should work correctly.
13454 # The option is referenced via a variable to avoid confusing sed.
13455 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13458 -e 's:$: $lt_compiler_flag:'`
Duncan Sands1eff7042007-12-10 17:43:13 +000013459 (eval echo "\"\$as_me:13459: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013460 (eval "$lt_compile" 2>conftest.err)
13461 ac_status=$?
13462 cat conftest.err >&5
Duncan Sands1eff7042007-12-10 17:43:13 +000013463 echo "$as_me:13463: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013464 if (exit $ac_status) && test -s "$ac_outfile"; then
13465 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013466 # So say no if there are warnings other than the usual output.
13467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013470 lt_cv_prog_compiler_rtti_exceptions=yes
13471 fi
13472 fi
13473 $rm conftest*
13474
13475fi
Reid Spencera773bd52006-08-04 18:18:08 +000013476{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13477echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013478
13479if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13481else
13482 :
13483fi
13484
13485fi
13486
13487lt_prog_compiler_wl=
13488lt_prog_compiler_pic=
13489lt_prog_compiler_static=
13490
Reid Spencera773bd52006-08-04 18:18:08 +000013491{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13492echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013493
13494 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000013495 lt_prog_compiler_wl='-Wl,'
13496 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000013497
13498 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013499 aix*)
13500 # All AIX code is PIC.
13501 if test "$host_cpu" = ia64; then
13502 # AIX 5 now supports IA64 processor
13503 lt_prog_compiler_static='-Bstatic'
13504 fi
John Criswell7a73b802003-06-30 21:59:07 +000013505 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013506
John Criswell7a73b802003-06-30 21:59:07 +000013507 amigaos*)
13508 # FIXME: we need at least 68020 code to build shared libraries, but
13509 # adding the `-m68020' flag to GCC prevents building anything better,
13510 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000013511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000013512 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013513
13514 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000013515 # PIC is the default for these OSes.
13516 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013517
13518 mingw* | pw32* | os2*)
13519 # This hack is so that the source file can tell whether it is being
13520 # built for inclusion in a dll (and should export symbols for example).
13521 lt_prog_compiler_pic='-DDLL_EXPORT'
13522 ;;
13523
John Criswell7a73b802003-06-30 21:59:07 +000013524 darwin* | rhapsody*)
13525 # PIC is the default on this platform
13526 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000013527 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000013528 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013529
Reid Spencera773bd52006-08-04 18:18:08 +000013530 interix3*)
13531 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13532 # Instead, we relocate shared libraries at runtime.
13533 ;;
13534
John Criswell47fdd832003-07-14 16:52:07 +000013535 msdosdjgpp*)
13536 # Just because we use GCC doesn't mean we suddenly get shared libraries
13537 # on systems that don't support them.
13538 lt_prog_compiler_can_build_shared=no
13539 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013540 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013541
John Criswell7a73b802003-06-30 21:59:07 +000013542 sysv4*MP*)
13543 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000013544 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000013545 fi
13546 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013547
13548 hpux*)
13549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13550 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013551 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013552 hppa*64*|ia64*)
13553 # +Z the default
13554 ;;
13555 *)
13556 lt_prog_compiler_pic='-fPIC'
13557 ;;
13558 esac
13559 ;;
13560
John Criswell7a73b802003-06-30 21:59:07 +000013561 *)
John Criswell47fdd832003-07-14 16:52:07 +000013562 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000013563 ;;
13564 esac
13565 else
John Criswell47fdd832003-07-14 16:52:07 +000013566 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000013567 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013568 aix*)
13569 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013570 if test "$host_cpu" = ia64; then
13571 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000013572 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013573 else
John Criswell47fdd832003-07-14 16:52:07 +000013574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000013575 fi
13576 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013577 darwin*)
13578 # PIC is the default on this platform
13579 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000013580 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013581 xlc*)
13582 lt_prog_compiler_pic='-qnocommon'
13583 lt_prog_compiler_wl='-Wl,'
13584 ;;
13585 esac
13586 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013587
John Criswell47fdd832003-07-14 16:52:07 +000013588 mingw* | pw32* | os2*)
13589 # This hack is so that the source file can tell whether it is being
13590 # built for inclusion in a dll (and should export symbols for example).
13591 lt_prog_compiler_pic='-DDLL_EXPORT'
13592 ;;
13593
John Criswell7a73b802003-06-30 21:59:07 +000013594 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000013595 lt_prog_compiler_wl='-Wl,'
13596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13597 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013598 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013599 hppa*64*|ia64*)
13600 # +Z the default
13601 ;;
13602 *)
13603 lt_prog_compiler_pic='+Z'
13604 ;;
13605 esac
13606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13607 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000013608 ;;
13609
John Criswell47fdd832003-07-14 16:52:07 +000013610 irix5* | irix6* | nonstopux*)
13611 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013612 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000013613 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013614 ;;
13615
13616 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000013617 lt_prog_compiler_pic='-KPIC'
13618 lt_prog_compiler_static='-Bstatic'
13619 ;;
13620
13621 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000013622 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013623 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013624 lt_prog_compiler_wl='-Wl,'
13625 lt_prog_compiler_pic='-KPIC'
13626 lt_prog_compiler_static='-static'
13627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013628 pgcc* | pgf77* | pgf90* | pgf95*)
13629 # Portland Group compilers (*not* the Pentium gcc compiler,
13630 # which looks to be a dead project)
13631 lt_prog_compiler_wl='-Wl,'
13632 lt_prog_compiler_pic='-fpic'
13633 lt_prog_compiler_static='-Bstatic'
13634 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013635 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013636 lt_prog_compiler_wl='-Wl,'
13637 # All Alpha code is PIC.
13638 lt_prog_compiler_static='-non_shared'
13639 ;;
13640 esac
John Criswell7a73b802003-06-30 21:59:07 +000013641 ;;
13642
13643 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000013644 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013645 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000013646 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013647 ;;
13648
John Criswell7a73b802003-06-30 21:59:07 +000013649 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000013650 lt_prog_compiler_pic='-KPIC'
13651 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000013652 case $cc_basename in
13653 f77* | f90* | f95*)
13654 lt_prog_compiler_wl='-Qoption ld ';;
13655 *)
13656 lt_prog_compiler_wl='-Wl,';;
13657 esac
John Criswell7a73b802003-06-30 21:59:07 +000013658 ;;
13659
13660 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000013661 lt_prog_compiler_wl='-Qoption ld '
13662 lt_prog_compiler_pic='-PIC'
13663 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013664 ;;
13665
Reid Spencera773bd52006-08-04 18:18:08 +000013666 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000013667 lt_prog_compiler_wl='-Wl,'
13668 lt_prog_compiler_pic='-KPIC'
13669 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013670 ;;
13671
13672 sysv4*MP*)
13673 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000013674 lt_prog_compiler_pic='-Kconform_pic'
13675 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013676 fi
13677 ;;
13678
Reid Spencera773bd52006-08-04 18:18:08 +000013679 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13680 lt_prog_compiler_wl='-Wl,'
13681 lt_prog_compiler_pic='-KPIC'
13682 lt_prog_compiler_static='-Bstatic'
13683 ;;
13684
13685 unicos*)
13686 lt_prog_compiler_wl='-Wl,'
13687 lt_prog_compiler_can_build_shared=no
13688 ;;
13689
John Criswell47fdd832003-07-14 16:52:07 +000013690 uts4*)
13691 lt_prog_compiler_pic='-pic'
13692 lt_prog_compiler_static='-Bstatic'
13693 ;;
13694
John Criswell7a73b802003-06-30 21:59:07 +000013695 *)
John Criswell47fdd832003-07-14 16:52:07 +000013696 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013697 ;;
13698 esac
13699 fi
13700
Reid Spencera773bd52006-08-04 18:18:08 +000013701{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13702echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013703
John Criswell47fdd832003-07-14 16:52:07 +000013704#
13705# Check to make sure the PIC flag actually works.
13706#
13707if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013708
Reid Spencera773bd52006-08-04 18:18:08 +000013709{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13710echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013711if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713else
John Criswell47fdd832003-07-14 16:52:07 +000013714 lt_prog_compiler_pic_works=no
13715 ac_outfile=conftest.$ac_objext
13716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13718 # Insert the option either (1) after the last *FLAGS variable, or
13719 # (2) before a word containing "conftest.", or (3) at the end.
13720 # Note that $ac_compile itself does not contain backslashes and begins
13721 # with a dollar sign (not a hyphen), so the echo should work correctly.
13722 # The option is referenced via a variable to avoid confusing sed.
13723 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13726 -e 's:$: $lt_compiler_flag:'`
Duncan Sands1eff7042007-12-10 17:43:13 +000013727 (eval echo "\"\$as_me:13727: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013728 (eval "$lt_compile" 2>conftest.err)
13729 ac_status=$?
13730 cat conftest.err >&5
Duncan Sands1eff7042007-12-10 17:43:13 +000013731 echo "$as_me:13731: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013732 if (exit $ac_status) && test -s "$ac_outfile"; then
13733 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013734 # So say no if there are warnings other than the usual output.
13735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013738 lt_prog_compiler_pic_works=yes
13739 fi
13740 fi
13741 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000013742
John Criswell47fdd832003-07-14 16:52:07 +000013743fi
Reid Spencera773bd52006-08-04 18:18:08 +000013744{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13745echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013746
John Criswell47fdd832003-07-14 16:52:07 +000013747if test x"$lt_prog_compiler_pic_works" = xyes; then
13748 case $lt_prog_compiler_pic in
13749 "" | " "*) ;;
13750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13751 esac
John Criswell7a73b802003-06-30 21:59:07 +000013752else
John Criswell47fdd832003-07-14 16:52:07 +000013753 lt_prog_compiler_pic=
13754 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013755fi
13756
John Criswell7a73b802003-06-30 21:59:07 +000013757fi
Reid Spencera773bd52006-08-04 18:18:08 +000013758case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013759 # For platforms which do not support PIC, -DPIC is meaningless:
13760 *djgpp*)
13761 lt_prog_compiler_pic=
13762 ;;
13763 *)
13764 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13765 ;;
13766esac
John Criswell7a73b802003-06-30 21:59:07 +000013767
Reid Spencera773bd52006-08-04 18:18:08 +000013768#
13769# Check to make sure the static flag actually works.
13770#
13771wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13772{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13773echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13774if test "${lt_prog_compiler_static_works+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776else
13777 lt_prog_compiler_static_works=no
13778 save_LDFLAGS="$LDFLAGS"
13779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13780 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13782 # The linker can only warn and ignore the option if not recognized
13783 # So say no if there are warnings
13784 if test -s conftest.err; then
13785 # Append any errors to the config.log.
13786 cat conftest.err 1>&5
13787 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13789 if diff conftest.exp conftest.er2 >/dev/null; then
13790 lt_prog_compiler_static_works=yes
13791 fi
13792 else
13793 lt_prog_compiler_static_works=yes
13794 fi
13795 fi
13796 $rm conftest*
13797 LDFLAGS="$save_LDFLAGS"
13798
13799fi
13800{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13801echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13802
13803if test x"$lt_prog_compiler_static_works" = xyes; then
13804 :
13805else
13806 lt_prog_compiler_static=
13807fi
13808
13809
13810{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13811echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013812if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013813 echo $ECHO_N "(cached) $ECHO_C" >&6
13814else
John Criswell47fdd832003-07-14 16:52:07 +000013815 lt_cv_prog_compiler_c_o=no
13816 $rm -r conftest 2>/dev/null
13817 mkdir conftest
13818 cd conftest
13819 mkdir out
13820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013821
John Criswell47fdd832003-07-14 16:52:07 +000013822 lt_compiler_flag="-o out/conftest2.$ac_objext"
13823 # Insert the option either (1) after the last *FLAGS variable, or
13824 # (2) before a word containing "conftest.", or (3) at the end.
13825 # Note that $ac_compile itself does not contain backslashes and begins
13826 # with a dollar sign (not a hyphen), so the echo should work correctly.
13827 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13830 -e 's:$: $lt_compiler_flag:'`
Duncan Sands1eff7042007-12-10 17:43:13 +000013831 (eval echo "\"\$as_me:13831: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013832 (eval "$lt_compile" 2>out/conftest.err)
13833 ac_status=$?
13834 cat out/conftest.err >&5
Duncan Sands1eff7042007-12-10 17:43:13 +000013835 echo "$as_me:13835: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13837 then
13838 # The compiler can only warn and ignore the option if not recognized
13839 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000013840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013843 lt_cv_prog_compiler_c_o=yes
13844 fi
13845 fi
Reid Spencera773bd52006-08-04 18:18:08 +000013846 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013847 $rm conftest*
13848 # SGI C++ compiler will create directory out/ii_files/ for
13849 # template instantiation
13850 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13851 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013852 cd ..
13853 rmdir conftest
13854 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000013855
13856fi
Reid Spencera773bd52006-08-04 18:18:08 +000013857{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13858echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013859
John Criswell7a73b802003-06-30 21:59:07 +000013860
John Criswell7a73b802003-06-30 21:59:07 +000013861hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000013862if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000013863 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000013864 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13865echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013866 hard_links=yes
13867 $rm conftest*
13868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13869 touch conftest.a
13870 ln conftest.a conftest.b 2>&5 || hard_links=no
13871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000013872 { echo "$as_me:$LINENO: result: $hard_links" >&5
13873echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013874 if test "$hard_links" = no; then
13875 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13876echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13877 need_locks=warn
13878 fi
13879else
13880 need_locks=no
13881fi
John Criswell7a73b802003-06-30 21:59:07 +000013882
Reid Spencera773bd52006-08-04 18:18:08 +000013883{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13884echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013885
13886 runpath_var=
13887 allow_undefined_flag=
13888 enable_shared_with_static_runtimes=no
13889 archive_cmds=
13890 archive_expsym_cmds=
13891 old_archive_From_new_cmds=
13892 old_archive_from_expsyms_cmds=
13893 export_dynamic_flag_spec=
13894 whole_archive_flag_spec=
13895 thread_safe_flag_spec=
13896 hardcode_libdir_flag_spec=
13897 hardcode_libdir_flag_spec_ld=
13898 hardcode_libdir_separator=
13899 hardcode_direct=no
13900 hardcode_minus_L=no
13901 hardcode_shlibpath_var=unsupported
13902 link_all_deplibs=unknown
13903 hardcode_automatic=no
13904 module_cmds=
13905 module_expsym_cmds=
13906 always_export_symbols=no
13907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13908 # include_expsyms should be a list of space-separated symbols to be *always*
13909 # included in the symbol list
13910 include_expsyms=
13911 # exclude_expsyms can be an extended regexp of symbols to exclude
13912 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13913 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13914 # as well as any symbol that contains `d'.
13915 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13916 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13917 # platforms (ab)use it in PIC code, but their linkers get confused if
13918 # the symbol is explicitly referenced. Since portable code cannot
13919 # rely on this symbol name, it's probably fine to never include it in
13920 # preloaded symbol tables.
13921 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000013922 # Just being paranoid about ensuring that cc_basename is set.
13923 for cc_temp in $compiler""; do
13924 case $cc_temp in
13925 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13926 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13927 \-*) ;;
13928 *) break;;
13929 esac
13930done
13931cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000013932
13933 case $host_os in
13934 cygwin* | mingw* | pw32*)
13935 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13936 # When not using gcc, we currently assume that we are using
13937 # Microsoft Visual C++.
13938 if test "$GCC" != yes; then
13939 with_gnu_ld=no
13940 fi
13941 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013942 interix*)
13943 # we just hope/assume this is gcc and not c89 (= MSVC++)
13944 with_gnu_ld=yes
13945 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013946 openbsd*)
13947 with_gnu_ld=no
13948 ;;
13949 esac
13950
13951 ld_shlibs=yes
13952 if test "$with_gnu_ld" = yes; then
13953 # If archive_cmds runs LD, not CC, wlarc should be empty
13954 wlarc='${wl}'
13955
Reid Spencera773bd52006-08-04 18:18:08 +000013956 # Set some defaults for GNU ld with shared library support. These
13957 # are reset later if shared libraries are not supported. Putting them
13958 # here allows them to be overridden if necessary.
13959 runpath_var=LD_RUN_PATH
13960 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13961 export_dynamic_flag_spec='${wl}--export-dynamic'
13962 # ancient GNU ld didn't support --whole-archive et. al.
13963 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13964 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13965 else
13966 whole_archive_flag_spec=
13967 fi
13968 supports_anon_versioning=no
13969 case `$LD -v 2>/dev/null` in
13970 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13971 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13972 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13973 *\ 2.11.*) ;; # other 2.11 versions
13974 *) supports_anon_versioning=yes ;;
13975 esac
13976
John Criswell47fdd832003-07-14 16:52:07 +000013977 # See if GNU ld supports shared libraries.
13978 case $host_os in
13979 aix3* | aix4* | aix5*)
13980 # On AIX/PPC, the GNU linker is very broken
13981 if test "$host_cpu" != ia64; then
13982 ld_shlibs=no
13983 cat <<EOF 1>&2
13984
13985*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13986*** to be unable to reliably create shared libraries on AIX.
13987*** Therefore, libtool is disabling shared libraries support. If you
13988*** really care for shared libraries, you may want to modify your PATH
13989*** so that a non-GNU linker is found, and then restart.
13990
13991EOF
13992 fi
13993 ;;
13994
13995 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013996 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 +000013997 hardcode_libdir_flag_spec='-L$libdir'
13998 hardcode_minus_L=yes
13999
14000 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14001 # that the semantics of dynamic libraries on AmigaOS, at least up
14002 # to version 4, is to share data among multiple programs linked
14003 # with the same dynamic library. Since this doesn't match the
14004 # behavior of shared libraries on other platforms, we can't use
14005 # them.
14006 ld_shlibs=no
14007 ;;
14008
14009 beos*)
14010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14011 allow_undefined_flag=unsupported
14012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14013 # support --undefined. This deserves some investigation. FIXME
14014 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14015 else
14016 ld_shlibs=no
14017 fi
14018 ;;
14019
14020 cygwin* | mingw* | pw32*)
14021 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14022 # as there is no search path for DLLs.
14023 hardcode_libdir_flag_spec='-L$libdir'
14024 allow_undefined_flag=unsupported
14025 always_export_symbols=no
14026 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014027 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 +000014028
14029 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014030 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 +000014031 # If the export-symbols file already is a .def file (1st line
14032 # is EXPORTS), use it as is; otherwise, prepend...
14033 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14034 cp $export_symbols $output_objdir/$soname.def;
14035 else
14036 echo EXPORTS > $output_objdir/$soname.def;
14037 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014038 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14040 else
14041 ld_shlibs=no
14042 fi
14043 ;;
14044
14045 interix3*)
14046 hardcode_direct=no
14047 hardcode_shlibpath_var=no
14048 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14049 export_dynamic_flag_spec='${wl}-E'
14050 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14051 # Instead, shared libraries are loaded at an image base (0x10000000 by
14052 # default) and relocated if they conflict, which is a slow very memory
14053 # consuming and fragmenting process. To avoid this, we pick a random,
14054 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14055 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14056 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14057 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'
14058 ;;
14059
14060 linux*)
14061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14062 tmp_addflag=
14063 case $cc_basename,$host_cpu in
14064 pgcc*) # Portland Group C compiler
14065 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'
14066 tmp_addflag=' $pic_flag'
14067 ;;
14068 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14069 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'
14070 tmp_addflag=' $pic_flag -Mnomain' ;;
14071 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14072 tmp_addflag=' -i_dynamic' ;;
14073 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14074 tmp_addflag=' -i_dynamic -nofor_main' ;;
14075 ifc* | ifort*) # Intel Fortran compiler
14076 tmp_addflag=' -nofor_main' ;;
14077 esac
14078 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14079
14080 if test $supports_anon_versioning = yes; then
14081 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14082 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14083 $echo "local: *; };" >> $output_objdir/$libname.ver~
14084 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14085 fi
John Criswell47fdd832003-07-14 16:52:07 +000014086 else
14087 ld_shlibs=no
14088 fi
14089 ;;
14090
14091 netbsd*)
14092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14093 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14094 wlarc=
14095 else
14096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14098 fi
14099 ;;
14100
Reid Spencera773bd52006-08-04 18:18:08 +000014101 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014102 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14103 ld_shlibs=no
14104 cat <<EOF 1>&2
14105
14106*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14107*** create shared libraries on Solaris systems. Therefore, libtool
14108*** is disabling shared libraries support. We urge you to upgrade GNU
14109*** binutils to release 2.9.1 or newer. Another option is to modify
14110*** your PATH or compiler configuration so that the native linker is
14111*** used, and then restart.
14112
14113EOF
14114 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14117 else
14118 ld_shlibs=no
14119 fi
14120 ;;
14121
Reid Spencera773bd52006-08-04 18:18:08 +000014122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14123 case `$LD -v 2>&1` in
14124 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14125 ld_shlibs=no
14126 cat <<_LT_EOF 1>&2
14127
14128*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14129*** reliably create shared libraries on SCO systems. Therefore, libtool
14130*** is disabling shared libraries support. We urge you to upgrade GNU
14131*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14132*** your PATH or compiler configuration so that the native linker is
14133*** used, and then restart.
14134
14135_LT_EOF
14136 ;;
14137 *)
14138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14139 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14141 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14142 else
14143 ld_shlibs=no
14144 fi
14145 ;;
14146 esac
14147 ;;
14148
John Criswell47fdd832003-07-14 16:52:07 +000014149 sunos4*)
14150 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14151 wlarc=
14152 hardcode_direct=yes
14153 hardcode_shlibpath_var=no
14154 ;;
14155
14156 *)
14157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14160 else
14161 ld_shlibs=no
14162 fi
14163 ;;
14164 esac
14165
Reid Spencera773bd52006-08-04 18:18:08 +000014166 if test "$ld_shlibs" = no; then
14167 runpath_var=
14168 hardcode_libdir_flag_spec=
14169 export_dynamic_flag_spec=
14170 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014171 fi
14172 else
14173 # PORTME fill in a description of your system's linker (not GNU ld)
14174 case $host_os in
14175 aix3*)
14176 allow_undefined_flag=unsupported
14177 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014178 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 +000014179 # Note: this linker hardcodes the directories in LIBPATH if there
14180 # are no directories specified by -L.
14181 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014182 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014183 # Neither direct hardcoding nor static linking is supported with a
14184 # broken collect2.
14185 hardcode_direct=unsupported
14186 fi
14187 ;;
14188
14189 aix4* | aix5*)
14190 if test "$host_cpu" = ia64; then
14191 # On IA64, the linker does run time linking by default, so we don't
14192 # have to do anything special.
14193 aix_use_runtimelinking=no
14194 exp_sym_flag='-Bexport'
14195 no_entry_flag=""
14196 else
14197 # If we're using GNU nm, then we don't want the "-C" option.
14198 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14199 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14200 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'
14201 else
14202 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'
14203 fi
14204 aix_use_runtimelinking=no
14205
14206 # Test if we are trying to use run time linking or normal
14207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14208 # need to do runtime linking.
14209 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14210 for ld_flag in $LDFLAGS; do
14211 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14212 aix_use_runtimelinking=yes
14213 break
14214 fi
14215 done
Reid Spencera773bd52006-08-04 18:18:08 +000014216 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014217 esac
14218
14219 exp_sym_flag='-bexport'
14220 no_entry_flag='-bnoentry'
14221 fi
14222
14223 # When large executables or shared objects are built, AIX ld can
14224 # have problems creating the table of contents. If linking a library
14225 # or program results in "error TOC overflow" add -mminimal-toc to
14226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14228
14229 archive_cmds=''
14230 hardcode_direct=yes
14231 hardcode_libdir_separator=':'
14232 link_all_deplibs=yes
14233
14234 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014235 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014236 # We only want to do this on AIX 4.2 and lower, the check
14237 # below for broken collect2 doesn't work under 4.3+
14238 collect2name=`${CC} -print-prog-name=collect2`
14239 if test -f "$collect2name" && \
14240 strings "$collect2name" | grep resolve_lib_name >/dev/null
14241 then
14242 # We have reworked collect2
14243 hardcode_direct=yes
14244 else
14245 # We have old collect2
14246 hardcode_direct=unsupported
14247 # It fails to find uninstalled libraries when the uninstalled
14248 # path is not listed in the libpath. Setting hardcode_minus_L
14249 # to unsupported forces relinking
14250 hardcode_minus_L=yes
14251 hardcode_libdir_flag_spec='-L$libdir'
14252 hardcode_libdir_separator=
14253 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014254 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014255 esac
14256 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014257 if test "$aix_use_runtimelinking" = yes; then
14258 shared_flag="$shared_flag "'${wl}-G'
14259 fi
John Criswell47fdd832003-07-14 16:52:07 +000014260 else
14261 # not using gcc
14262 if test "$host_cpu" = ia64; then
14263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14264 # chokes on -Wl,-G. The following line is correct:
14265 shared_flag='-G'
14266 else
Reid Spencera773bd52006-08-04 18:18:08 +000014267 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014268 shared_flag='${wl}-G'
14269 else
14270 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014271 fi
John Criswell47fdd832003-07-14 16:52:07 +000014272 fi
14273 fi
14274
14275 # It seems that -bexpall does not export symbols beginning with
14276 # underscore (_), so it is better to generate a list of symbols to export.
14277 always_export_symbols=yes
14278 if test "$aix_use_runtimelinking" = yes; then
14279 # Warning - without using the other runtime loading flags (-brtl),
14280 # -berok will link without error, but may produce a broken library.
14281 allow_undefined_flag='-berok'
14282 # Determine the default libpath from the value encoded in an empty executable.
14283 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
14288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014289
John Criswell7a73b802003-06-30 21:59:07 +000014290int
14291main ()
14292{
John Criswell47fdd832003-07-14 16:52:07 +000014293
John Criswell7a73b802003-06-30 21:59:07 +000014294 ;
14295 return 0;
14296}
14297_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000014298rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014299if { (ac_try="$ac_link"
14300case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303esac
14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014306 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000014311 (exit $ac_status); } && {
14312 test -z "$ac_c_werror_flag" ||
14313 test ! -s conftest.err
14314 } && test -s conftest$ac_exeext &&
14315 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014316
John Criswell47fdd832003-07-14 16:52:07 +000014317aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14318}'`
14319# Check for a 64-bit object if we didn't find anything.
14320if 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; }
14321}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014322else
14323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014324sed 's/^/| /' conftest.$ac_ext >&5
14325
Reid Spencera773bd52006-08-04 18:18:08 +000014326
John Criswell7a73b802003-06-30 21:59:07 +000014327fi
Reid Spencera773bd52006-08-04 18:18:08 +000014328
Scott Michel96dcd2b2007-12-05 21:24:02 +000014329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014330 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014331if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014332
John Criswell47fdd832003-07-14 16:52:07 +000014333 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000014334 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 +000014335 else
14336 if test "$host_cpu" = ia64; then
14337 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14338 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000014339 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 +000014340 else
14341 # Determine the default libpath from the value encoded in an empty executable.
14342 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014343/* confdefs.h. */
14344_ACEOF
14345cat confdefs.h >>conftest.$ac_ext
14346cat >>conftest.$ac_ext <<_ACEOF
14347/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014348
John Criswell47fdd832003-07-14 16:52:07 +000014349int
14350main ()
14351{
John Criswell7a73b802003-06-30 21:59:07 +000014352
John Criswell47fdd832003-07-14 16:52:07 +000014353 ;
14354 return 0;
14355}
14356_ACEOF
14357rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014358if { (ac_try="$ac_link"
14359case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14362esac
14363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000014370 (exit $ac_status); } && {
14371 test -z "$ac_c_werror_flag" ||
14372 test ! -s conftest.err
14373 } && test -s conftest$ac_exeext &&
14374 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014375
John Criswell47fdd832003-07-14 16:52:07 +000014376aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14377}'`
14378# Check for a 64-bit object if we didn't find anything.
14379if 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; }
14380}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014381else
John Criswell47fdd832003-07-14 16:52:07 +000014382 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014383sed 's/^/| /' conftest.$ac_ext >&5
14384
Reid Spencera773bd52006-08-04 18:18:08 +000014385
John Criswell47fdd832003-07-14 16:52:07 +000014386fi
Reid Spencera773bd52006-08-04 18:18:08 +000014387
Scott Michel96dcd2b2007-12-05 21:24:02 +000014388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014389 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014390if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014391
John Criswell47fdd832003-07-14 16:52:07 +000014392 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14393 # Warning - without using the other run time loading flags,
14394 # -berok will link without error, but may produce a broken library.
14395 no_undefined_flag=' ${wl}-bernotok'
14396 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000014397 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000014398 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000014399 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014400 # This is similar to how AIX traditionally builds its shared libraries.
14401 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 +000014402 fi
14403 fi
John Criswell7a73b802003-06-30 21:59:07 +000014404 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014405
14406 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014407 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 +000014408 hardcode_libdir_flag_spec='-L$libdir'
14409 hardcode_minus_L=yes
14410 # see comment about different semantics on the GNU ld section
14411 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000014412 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014413
Reid Spencer2706f8c2004-09-19 23:53:36 +000014414 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014415 export_dynamic_flag_spec=-rdynamic
14416 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014417
John Criswell47fdd832003-07-14 16:52:07 +000014418 cygwin* | mingw* | pw32*)
14419 # When not using gcc, we currently assume that we are using
14420 # Microsoft Visual C++.
14421 # hardcode_libdir_flag_spec is actually meaningless, as there is
14422 # no search path for DLLs.
14423 hardcode_libdir_flag_spec=' '
14424 allow_undefined_flag=unsupported
14425 # Tell ltmain to make .lib files, not .a files.
14426 libext=lib
14427 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014428 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014429 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000014430 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000014431 # The linker will automatically build a .lib file if we build a DLL.
14432 old_archive_From_new_cmds='true'
14433 # FIXME: Should let the user specify the lib program.
14434 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14435 fix_srcfile_path='`cygpath -w "$srcfile"`'
14436 enable_shared_with_static_runtimes=yes
14437 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014438
John Criswell47fdd832003-07-14 16:52:07 +000014439 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000014440 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014441 rhapsody* | darwin1.[012])
14442 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14443 ;;
14444 *) # Darwin 1.3 on
14445 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14446 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14447 else
14448 case ${MACOSX_DEPLOYMENT_TARGET} in
14449 10.[012])
14450 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14451 ;;
14452 10.*)
14453 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14454 ;;
14455 esac
14456 fi
14457 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014458 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000014459 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014460 hardcode_direct=no
14461 hardcode_automatic=yes
14462 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014463 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000014464 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000014465 if test "$GCC" = yes ; then
14466 output_verbose_link_cmd='echo'
14467 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14468 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014469 # 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 +000014470 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}'
14471 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 +000014472 else
Reid Spencera773bd52006-08-04 18:18:08 +000014473 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014474 xlc*)
14475 output_verbose_link_cmd='echo'
14476 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14477 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014478 # 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 +000014479 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}'
14480 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 +000014481 ;;
14482 *)
14483 ld_shlibs=no
14484 ;;
14485 esac
John Criswell7a73b802003-06-30 21:59:07 +000014486 fi
John Criswell47fdd832003-07-14 16:52:07 +000014487 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014488
John Criswell47fdd832003-07-14 16:52:07 +000014489 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000014490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014491 hardcode_libdir_flag_spec='-L$libdir'
14492 hardcode_shlibpath_var=no
14493 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014494
John Criswell47fdd832003-07-14 16:52:07 +000014495 freebsd1*)
14496 ld_shlibs=no
14497 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014498
John Criswell47fdd832003-07-14 16:52:07 +000014499 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14500 # support. Future versions do this automatically, but an explicit c++rt0.o
14501 # does not break anything, and helps significantly (at the cost of a little
14502 # extra space).
14503 freebsd2.2*)
14504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14505 hardcode_libdir_flag_spec='-R$libdir'
14506 hardcode_direct=yes
14507 hardcode_shlibpath_var=no
14508 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014509
John Criswell47fdd832003-07-14 16:52:07 +000014510 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14511 freebsd2*)
14512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14513 hardcode_direct=yes
14514 hardcode_minus_L=yes
14515 hardcode_shlibpath_var=no
14516 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014517
John Criswell47fdd832003-07-14 16:52:07 +000014518 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000014519 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000014520 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14521 hardcode_libdir_flag_spec='-R$libdir'
14522 hardcode_direct=yes
14523 hardcode_shlibpath_var=no
14524 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014525
John Criswell47fdd832003-07-14 16:52:07 +000014526 hpux9*)
14527 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014528 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 +000014529 else
Reid Spencer177dbe22004-10-13 01:01:03 +000014530 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 +000014531 fi
14532 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14533 hardcode_libdir_separator=:
14534 hardcode_direct=yes
14535
14536 # hardcode_minus_L: Not really in the search PATH,
14537 # but as the default location of the library.
14538 hardcode_minus_L=yes
14539 export_dynamic_flag_spec='${wl}-E'
14540 ;;
14541
Reid Spencera773bd52006-08-04 18:18:08 +000014542 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000014543 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014544 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14545 else
14546 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14547 fi
14548 if test "$with_gnu_ld" = no; then
14549 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14550 hardcode_libdir_separator=:
14551
14552 hardcode_direct=yes
14553 export_dynamic_flag_spec='${wl}-E'
14554
14555 # hardcode_minus_L: Not really in the search PATH,
14556 # but as the default location of the library.
14557 hardcode_minus_L=yes
14558 fi
14559 ;;
14560
14561 hpux11*)
14562 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14563 case $host_cpu in
14564 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000014565 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14566 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014567 ia64*)
14568 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14569 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014570 *)
14571 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14572 ;;
14573 esac
14574 else
Reid Spencera773bd52006-08-04 18:18:08 +000014575 case $host_cpu in
14576 hppa*64*)
14577 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14578 ;;
14579 ia64*)
14580 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014581 ;;
14582 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014583 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 +000014584 ;;
14585 esac
14586 fi
14587 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14589 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000014590
Reid Spencera773bd52006-08-04 18:18:08 +000014591 case $host_cpu in
14592 hppa*64*|ia64*)
14593 hardcode_libdir_flag_spec_ld='+b $libdir'
14594 hardcode_direct=no
14595 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000014596 ;;
14597 *)
John Criswell47fdd832003-07-14 16:52:07 +000014598 hardcode_direct=yes
14599 export_dynamic_flag_spec='${wl}-E'
14600
14601 # hardcode_minus_L: Not really in the search PATH,
14602 # but as the default location of the library.
14603 hardcode_minus_L=yes
14604 ;;
14605 esac
14606 fi
14607 ;;
14608
14609 irix5* | irix6* | nonstopux*)
14610 if test "$GCC" = yes; then
14611 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'
14612 else
14613 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'
14614 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14615 fi
14616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14617 hardcode_libdir_separator=:
14618 link_all_deplibs=yes
14619 ;;
14620
14621 netbsd*)
14622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14624 else
14625 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14626 fi
14627 hardcode_libdir_flag_spec='-R$libdir'
14628 hardcode_direct=yes
14629 hardcode_shlibpath_var=no
14630 ;;
14631
14632 newsos6)
14633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634 hardcode_direct=yes
14635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14636 hardcode_libdir_separator=:
14637 hardcode_shlibpath_var=no
14638 ;;
14639
14640 openbsd*)
14641 hardcode_direct=yes
14642 hardcode_shlibpath_var=no
14643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14644 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014645 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 +000014646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14647 export_dynamic_flag_spec='${wl}-E'
14648 else
14649 case $host_os in
14650 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14652 hardcode_libdir_flag_spec='-R$libdir'
14653 ;;
14654 *)
14655 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14656 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14657 ;;
14658 esac
14659 fi
14660 ;;
14661
14662 os2*)
14663 hardcode_libdir_flag_spec='-L$libdir'
14664 hardcode_minus_L=yes
14665 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014666 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 +000014667 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14668 ;;
14669
14670 osf3*)
14671 if test "$GCC" = yes; then
14672 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14673 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'
14674 else
14675 allow_undefined_flag=' -expect_unresolved \*'
14676 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'
14677 fi
14678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14679 hardcode_libdir_separator=:
14680 ;;
14681
14682 osf4* | osf5*) # as osf3* with the addition of -msym flag
14683 if test "$GCC" = yes; then
14684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14685 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'
14686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14687 else
14688 allow_undefined_flag=' -expect_unresolved \*'
14689 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 +000014690 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 +000014691 $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 +000014692
John Criswell47fdd832003-07-14 16:52:07 +000014693 # Both c and cxx compiler support -rpath directly
14694 hardcode_libdir_flag_spec='-rpath $libdir'
14695 fi
14696 hardcode_libdir_separator=:
14697 ;;
14698
John Criswell47fdd832003-07-14 16:52:07 +000014699 solaris*)
14700 no_undefined_flag=' -z text'
14701 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014702 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000014703 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014704 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14705 $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 +000014706 else
Reid Spencera773bd52006-08-04 18:18:08 +000014707 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000014708 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014709 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14710 $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 +000014711 fi
14712 hardcode_libdir_flag_spec='-R$libdir'
14713 hardcode_shlibpath_var=no
14714 case $host_os in
14715 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014716 *)
14717 # The compiler driver will combine linker options so we
14718 # cannot just pass the convience library names through
14719 # without $wl, iff we do not link with $LD.
14720 # Luckily, gcc supports the same syntax we need for Sun Studio.
14721 # Supported since Solaris 2.6 (maybe 2.5.1?)
14722 case $wlarc in
14723 '')
14724 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14725 *)
14726 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' ;;
14727 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000014728 esac
14729 link_all_deplibs=yes
14730 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014731
John Criswell47fdd832003-07-14 16:52:07 +000014732 sunos4*)
14733 if test "x$host_vendor" = xsequent; then
14734 # Use $CC to link under sequent, because it throws in some extra .o
14735 # files that make .init and .fini sections work.
14736 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14737 else
14738 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14739 fi
14740 hardcode_libdir_flag_spec='-L$libdir'
14741 hardcode_direct=yes
14742 hardcode_minus_L=yes
14743 hardcode_shlibpath_var=no
14744 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014745
John Criswell47fdd832003-07-14 16:52:07 +000014746 sysv4)
14747 case $host_vendor in
14748 sni)
14749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14750 hardcode_direct=yes # is this really true???
14751 ;;
14752 siemens)
14753 ## LD is ld it makes a PLAMLIB
14754 ## CC just makes a GrossModule.
14755 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14756 reload_cmds='$CC -r -o $output$reload_objs'
14757 hardcode_direct=no
14758 ;;
14759 motorola)
14760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14762 ;;
14763 esac
14764 runpath_var='LD_RUN_PATH'
14765 hardcode_shlibpath_var=no
14766 ;;
14767
14768 sysv4.3*)
14769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14770 hardcode_shlibpath_var=no
14771 export_dynamic_flag_spec='-Bexport'
14772 ;;
14773
14774 sysv4*MP*)
14775 if test -d /usr/nec; then
14776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14777 hardcode_shlibpath_var=no
14778 runpath_var=LD_RUN_PATH
14779 hardcode_runpath_var=yes
14780 ld_shlibs=yes
14781 fi
14782 ;;
14783
Reid Spencera773bd52006-08-04 18:18:08 +000014784 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14785 no_undefined_flag='${wl}-z,text'
14786 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014787 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000014788 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000014789
John Criswell47fdd832003-07-14 16:52:07 +000014790 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014791 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14792 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 +000014793 else
Reid Spencera773bd52006-08-04 18:18:08 +000014794 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14795 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 +000014796 fi
John Criswell47fdd832003-07-14 16:52:07 +000014797 ;;
14798
Reid Spencera773bd52006-08-04 18:18:08 +000014799 sysv5* | sco3.2v5* | sco5v6*)
14800 # Note: We can NOT use -z defs as we might desire, because we do not
14801 # link with -lc, and that would cause any symbols used from libc to
14802 # always be unresolved, which means just about no library would
14803 # ever link correctly. If we're not using GNU ld we use -z text
14804 # though, which does catch some bad symbols but isn't as heavy-handed
14805 # as -z defs.
14806 no_undefined_flag='${wl}-z,text'
14807 allow_undefined_flag='${wl}-z,nodefs'
14808 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014809 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000014810 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14811 hardcode_libdir_separator=':'
14812 link_all_deplibs=yes
14813 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000014814 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000014815
14816 if test "$GCC" = yes; then
14817 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 else
14820 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14822 fi
John Criswell47fdd832003-07-14 16:52:07 +000014823 ;;
14824
14825 uts4*)
14826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14827 hardcode_libdir_flag_spec='-L$libdir'
14828 hardcode_shlibpath_var=no
14829 ;;
14830
14831 *)
14832 ld_shlibs=no
14833 ;;
14834 esac
14835 fi
14836
Reid Spencera773bd52006-08-04 18:18:08 +000014837{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14838echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014839test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014840
John Criswell47fdd832003-07-14 16:52:07 +000014841#
14842# Do we need to explicitly link libc?
14843#
14844case "x$archive_cmds_need_lc" in
14845x|xyes)
14846 # Assume -lc should be added
14847 archive_cmds_need_lc=yes
14848
14849 if test "$enable_shared" = yes && test "$GCC" = yes; then
14850 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014851 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000014852 # FIXME: we may have to deal with multi-command sequences.
14853 ;;
14854 '$CC '*)
14855 # Test whether the compiler implicitly links with -lc since on some
14856 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14857 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000014858 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14859echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014860 $rm conftest*
14861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14862
14863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864 (eval $ac_compile) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } 2>conftest.err; then
14868 soname=conftest
14869 lib=conftest
14870 libobjs=conftest.$ac_objext
14871 deplibs=
14872 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000014873 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000014874 compiler_flags=-v
14875 linker_flags=-v
14876 verstring=
14877 output_objdir=.
14878 libname=conftest
14879 lt_save_allow_undefined_flag=$allow_undefined_flag
14880 allow_undefined_flag=
14881 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14882 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }
14886 then
14887 archive_cmds_need_lc=no
14888 else
14889 archive_cmds_need_lc=yes
14890 fi
14891 allow_undefined_flag=$lt_save_allow_undefined_flag
14892 else
14893 cat conftest.err 1>&5
14894 fi
14895 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000014896 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14897echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014898 ;;
14899 esac
14900 fi
14901 ;;
14902esac
14903
Reid Spencera773bd52006-08-04 18:18:08 +000014904{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14905echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014906library_names_spec=
14907libname_spec='lib$name'
14908soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000014909shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000014910postinstall_cmds=
14911postuninstall_cmds=
14912finish_cmds=
14913finish_eval=
14914shlibpath_var=
14915shlibpath_overrides_runpath=unknown
14916version_type=none
14917dynamic_linker="$host_os ld.so"
14918sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014919if test "$GCC" = yes; then
14920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14921 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14922 # if the path contains ";" then we assume it to be the separator
14923 # otherwise default to the standard path separator (i.e. ":") - it is
14924 # assumed that no part of a normal pathname contains ";" but that should
14925 # okay in the real world where ";" in dirpaths is itself problematic.
14926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14927 else
14928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14929 fi
14930else
14931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14932fi
14933need_lib_prefix=unknown
14934hardcode_into_libs=no
14935
14936# when you set need_version to no, make sure it does not cause -set_version
14937# flags to be left without arguments
14938need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000014939
14940case $host_os in
14941aix3*)
14942 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000014944 shlibpath_var=LIBPATH
14945
John Criswell47fdd832003-07-14 16:52:07 +000014946 # AIX 3 has no versioning support, so we append a major version to the name.
14947 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014948 ;;
14949
14950aix4* | aix5*)
14951 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014952 need_lib_prefix=no
14953 need_version=no
14954 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000014955 if test "$host_cpu" = ia64; then
14956 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000014957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014958 shlibpath_var=LD_LIBRARY_PATH
14959 else
14960 # With GCC up to 2.95.x, collect2 would create an import file
14961 # for dependence libraries. The import file would start with
14962 # the line `#! .'. This would cause the generated library to
14963 # depend on `.', always an invalid library. This was fixed in
14964 # development snapshots of GCC prior to 3.0.
14965 case $host_os in
14966 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000014967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14968 echo ' yes '
14969 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14970 :
14971 else
14972 can_build_shared=no
14973 fi
14974 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014975 esac
John Criswell47fdd832003-07-14 16:52:07 +000014976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14977 # soname into executable. Probably we can add versioning support to
14978 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000014979 if test "$aix_use_runtimelinking" = yes; then
14980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14981 # instead of lib<name>.a to let people know that these are not
14982 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014984 else
14985 # We preserve .a as extension for shared libraries through AIX4.2
14986 # and later when we are not doing run time linking.
14987 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000014988 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014989 fi
14990 shlibpath_var=LIBPATH
14991 fi
14992 ;;
14993
14994amigaos*)
14995 library_names_spec='$libname.ixlibrary $libname.a'
14996 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014997 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 +000014998 ;;
14999
15000beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015001 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015002 dynamic_linker="$host_os ld.so"
15003 shlibpath_var=LIBRARY_PATH
15004 ;;
15005
Reid Spencer2706f8c2004-09-19 23:53:36 +000015006bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015007 version_type=linux
15008 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015011 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15012 shlibpath_var=LD_LIBRARY_PATH
15013 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15014 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015015 # the default ld.so.conf also contains /usr/contrib/lib and
15016 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15017 # libtool to hard-code these into programs
15018 ;;
15019
15020cygwin* | mingw* | pw32*)
15021 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015022 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015023 need_version=no
15024 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015025
John Criswell7a73b802003-06-30 21:59:07 +000015026 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015027 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015028 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015030 postinstall_cmds='base_file=`basename \${file}`~
15031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15032 dldir=$destdir/`dirname \$dlpath`~
15033 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015034 $install_prog $dir/$dlname \$dldir/$dlname~
15035 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15037 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015038 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015039 shlibpath_overrides_runpath=yes
15040
15041 case $host_os in
15042 cygwin*)
15043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15044 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 +000015045 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015046 ;;
15047 mingw*)
15048 # MinGW DLLs use traditional 'lib' prefix
15049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15051 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15052 # It is most probably a Windows format PATH printed by
15053 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15054 # path with ; separators, and with drive letters. We can handle the
15055 # drive letters (cygwin fileutils understands them), so leave them,
15056 # especially as we might pass files found there to a mingw objdump,
15057 # which wouldn't understand a cygwinified path. Ahh.
15058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15059 else
15060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15061 fi
15062 ;;
15063 pw32*)
15064 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015065 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 +000015066 ;;
15067 esac
John Criswell7a73b802003-06-30 21:59:07 +000015068 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015069
John Criswell7a73b802003-06-30 21:59:07 +000015070 *)
John Criswell47fdd832003-07-14 16:52:07 +000015071 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015072 ;;
15073 esac
15074 dynamic_linker='Win32 ld.exe'
15075 # FIXME: first we should search . and the directory the executable is in
15076 shlibpath_var=PATH
15077 ;;
15078
15079darwin* | rhapsody*)
15080 dynamic_linker="$host_os dyld"
15081 version_type=darwin
15082 need_lib_prefix=no
15083 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015084 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015085 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015086 shlibpath_overrides_runpath=yes
15087 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015088 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015089 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015090 if test "$GCC" = yes; then
15091 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"`
15092 else
15093 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015094 fi
15095 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15096 ;;
15097
15098dgux*)
15099 version_type=linux
15100 need_lib_prefix=no
15101 need_version=no
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15103 soname_spec='${libname}${release}${shared_ext}$major'
15104 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015105 ;;
15106
15107freebsd1*)
15108 dynamic_linker=no
15109 ;;
15110
Reid Spencer2706f8c2004-09-19 23:53:36 +000015111kfreebsd*-gnu)
15112 version_type=linux
15113 need_lib_prefix=no
15114 need_version=no
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 shlibpath_overrides_runpath=no
15119 hardcode_into_libs=yes
15120 dynamic_linker='GNU ld.so'
15121 ;;
15122
Reid Spencera773bd52006-08-04 18:18:08 +000015123freebsd* | dragonfly*)
15124 # DragonFly does not have aout. When/if they implement a new
15125 # versioning mechanism, adjust this.
15126 if test -x /usr/bin/objformat; then
15127 objformat=`/usr/bin/objformat`
15128 else
15129 case $host_os in
15130 freebsd[123]*) objformat=aout ;;
15131 *) objformat=elf ;;
15132 esac
15133 fi
John Criswell7a73b802003-06-30 21:59:07 +000015134 version_type=freebsd-$objformat
15135 case $version_type in
15136 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015138 need_version=no
15139 need_lib_prefix=no
15140 ;;
15141 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015143 need_version=yes
15144 ;;
15145 esac
15146 shlibpath_var=LD_LIBRARY_PATH
15147 case $host_os in
15148 freebsd2*)
15149 shlibpath_overrides_runpath=yes
15150 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015151 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015152 shlibpath_overrides_runpath=yes
15153 hardcode_into_libs=yes
15154 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015155 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15156 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015157 shlibpath_overrides_runpath=no
15158 hardcode_into_libs=yes
15159 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015160 freebsd*) # from 4.6 on
15161 shlibpath_overrides_runpath=yes
15162 hardcode_into_libs=yes
15163 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015164 esac
15165 ;;
15166
15167gnu*)
15168 version_type=linux
15169 need_lib_prefix=no
15170 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15172 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015173 shlibpath_var=LD_LIBRARY_PATH
15174 hardcode_into_libs=yes
15175 ;;
15176
15177hpux9* | hpux10* | hpux11*)
15178 # Give a soname corresponding to the major version so that dld.sl refuses to
15179 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015180 version_type=sunos
15181 need_lib_prefix=no
15182 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015183 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015184 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015185 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015186 hardcode_into_libs=yes
15187 dynamic_linker="$host_os dld.so"
15188 shlibpath_var=LD_LIBRARY_PATH
15189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191 soname_spec='${libname}${release}${shared_ext}$major'
15192 if test "X$HPUX_IA64_MODE" = X32; then
15193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15194 else
15195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15196 fi
15197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15198 ;;
15199 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015200 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015201 hardcode_into_libs=yes
15202 dynamic_linker="$host_os dld.sl"
15203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15209 ;;
15210 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015211 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015212 dynamic_linker="$host_os dld.sl"
15213 shlibpath_var=SHLIB_PATH
15214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15217 ;;
15218 esac
John Criswell7a73b802003-06-30 21:59:07 +000015219 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15220 postinstall_cmds='chmod 555 $lib'
15221 ;;
15222
Reid Spencera773bd52006-08-04 18:18:08 +000015223interix3*)
15224 version_type=linux
15225 need_lib_prefix=no
15226 need_version=no
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15230 shlibpath_var=LD_LIBRARY_PATH
15231 shlibpath_overrides_runpath=no
15232 hardcode_into_libs=yes
15233 ;;
15234
John Criswell47fdd832003-07-14 16:52:07 +000015235irix5* | irix6* | nonstopux*)
15236 case $host_os in
15237 nonstopux*) version_type=nonstopux ;;
15238 *)
15239 if test "$lt_cv_prog_gnu_ld" = yes; then
15240 version_type=linux
15241 else
15242 version_type=irix
15243 fi ;;
15244 esac
John Criswell7a73b802003-06-30 21:59:07 +000015245 need_lib_prefix=no
15246 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015247 soname_spec='${libname}${release}${shared_ext}$major'
15248 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 +000015249 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015250 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015251 libsuff= shlibsuff=
15252 ;;
15253 *)
15254 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015255 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15256 libsuff= shlibsuff= libmagic=32-bit;;
15257 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15258 libsuff=32 shlibsuff=N32 libmagic=N32;;
15259 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15260 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015261 *) libsuff= shlibsuff= libmagic=never-match;;
15262 esac
15263 ;;
15264 esac
15265 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15266 shlibpath_overrides_runpath=no
15267 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15268 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000015269 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015270 ;;
15271
15272# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000015273linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000015274 dynamic_linker=no
15275 ;;
15276
15277# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000015278linux*)
John Criswell7a73b802003-06-30 21:59:07 +000015279 version_type=linux
15280 need_lib_prefix=no
15281 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 shlibpath_overrides_runpath=no
15287 # This implies no fast_install, which is unacceptable.
15288 # Some rework will be needed to allow for fast_install
15289 # before this can be enabled.
15290 hardcode_into_libs=yes
15291
Reid Spencer2706f8c2004-09-19 23:53:36 +000015292 # Append ld.so.conf contents to the search path
15293 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000015294 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 +000015295 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15296 fi
15297
John Criswell7a73b802003-06-30 21:59:07 +000015298 # We used to test for /lib/ld.so.1 and disable shared libraries on
15299 # powerpc, because MkLinux only supported shared libraries with the
15300 # GNU dynamic linker. Since this was broken with cross compilers,
15301 # most powerpc-linux boxes support dynamic linking these days and
15302 # people can always --disable-shared, the test was removed, and we
15303 # assume the GNU/Linux dynamic linker is in use.
15304 dynamic_linker='GNU/Linux ld.so'
15305 ;;
15306
Reid Spencer2706f8c2004-09-19 23:53:36 +000015307knetbsd*-gnu)
15308 version_type=linux
15309 need_lib_prefix=no
15310 need_version=no
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 shlibpath_overrides_runpath=no
15315 hardcode_into_libs=yes
15316 dynamic_linker='GNU ld.so'
15317 ;;
15318
John Criswell7a73b802003-06-30 21:59:07 +000015319netbsd*)
15320 version_type=sunos
15321 need_lib_prefix=no
15322 need_version=no
15323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15326 dynamic_linker='NetBSD (a.out) ld.so'
15327 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000015328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000015329 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015330 dynamic_linker='NetBSD ld.elf_so'
15331 fi
15332 shlibpath_var=LD_LIBRARY_PATH
15333 shlibpath_overrides_runpath=yes
15334 hardcode_into_libs=yes
15335 ;;
15336
15337newsos6)
15338 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 shlibpath_overrides_runpath=yes
15342 ;;
15343
Reid Spencer2706f8c2004-09-19 23:53:36 +000015344nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000015345 version_type=linux
15346 need_lib_prefix=no
15347 need_version=no
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015350 shlibpath_var=LD_LIBRARY_PATH
15351 shlibpath_overrides_runpath=yes
15352 ;;
15353
15354openbsd*)
15355 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000015356 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015357 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000015358 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15359 case $host_os in
15360 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15361 *) need_version=no ;;
15362 esac
John Criswell47fdd832003-07-14 16:52:07 +000015363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15365 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015366 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 +000015367 case $host_os in
15368 openbsd2.[89] | openbsd2.[89].*)
15369 shlibpath_overrides_runpath=no
15370 ;;
15371 *)
15372 shlibpath_overrides_runpath=yes
15373 ;;
15374 esac
John Criswell7a73b802003-06-30 21:59:07 +000015375 else
15376 shlibpath_overrides_runpath=yes
15377 fi
John Criswell7a73b802003-06-30 21:59:07 +000015378 ;;
15379
15380os2*)
15381 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015382 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015383 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015384 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015385 dynamic_linker='OS/2 ld.exe'
15386 shlibpath_var=LIBPATH
15387 ;;
15388
15389osf3* | osf4* | osf5*)
15390 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000015391 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015392 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015393 soname_spec='${libname}${release}${shared_ext}$major'
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015395 shlibpath_var=LD_LIBRARY_PATH
15396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15398 ;;
15399
John Criswell7a73b802003-06-30 21:59:07 +000015400solaris*)
15401 version_type=linux
15402 need_lib_prefix=no
15403 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015406 shlibpath_var=LD_LIBRARY_PATH
15407 shlibpath_overrides_runpath=yes
15408 hardcode_into_libs=yes
15409 # ldd complains unless libraries are executable
15410 postinstall_cmds='chmod +x $lib'
15411 ;;
15412
15413sunos4*)
15414 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000015415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=yes
15419 if test "$with_gnu_ld" = yes; then
15420 need_lib_prefix=no
15421 fi
15422 need_version=yes
15423 ;;
15424
Reid Spencera773bd52006-08-04 18:18:08 +000015425sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000015426 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015429 shlibpath_var=LD_LIBRARY_PATH
15430 case $host_vendor in
15431 sni)
15432 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000015433 need_lib_prefix=no
15434 export_dynamic_flag_spec='${wl}-Blargedynsym'
15435 runpath_var=LD_RUN_PATH
15436 ;;
15437 siemens)
15438 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015439 ;;
15440 motorola)
15441 need_lib_prefix=no
15442 need_version=no
15443 shlibpath_overrides_runpath=no
15444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15445 ;;
15446 esac
15447 ;;
15448
John Criswell7a73b802003-06-30 21:59:07 +000015449sysv4*MP*)
15450 if test -d /usr/nec ;then
15451 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15453 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000015454 shlibpath_var=LD_LIBRARY_PATH
15455 fi
15456 ;;
15457
Reid Spencera773bd52006-08-04 18:18:08 +000015458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15459 version_type=freebsd-elf
15460 need_lib_prefix=no
15461 need_version=no
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15463 soname_spec='${libname}${release}${shared_ext}$major'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 hardcode_into_libs=yes
15466 if test "$with_gnu_ld" = yes; then
15467 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15468 shlibpath_overrides_runpath=no
15469 else
15470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15471 shlibpath_overrides_runpath=yes
15472 case $host_os in
15473 sco3.2v5*)
15474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15475 ;;
15476 esac
15477 fi
15478 sys_lib_dlsearch_path_spec='/usr/lib'
15479 ;;
15480
John Criswell47fdd832003-07-14 16:52:07 +000015481uts4*)
15482 version_type=linux
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 ;;
15487
John Criswell7a73b802003-06-30 21:59:07 +000015488*)
15489 dynamic_linker=no
15490 ;;
15491esac
Reid Spencera773bd52006-08-04 18:18:08 +000015492{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15493echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015494test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015495
Reid Spencera773bd52006-08-04 18:18:08 +000015496variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15497if test "$GCC" = yes; then
15498 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15499fi
15500
15501{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15502echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015503hardcode_action=
15504if test -n "$hardcode_libdir_flag_spec" || \
15505 test -n "$runpath_var" || \
15506 test "X$hardcode_automatic" = "Xyes" ; then
15507
15508 # We can hardcode non-existant directories.
15509 if test "$hardcode_direct" != no &&
15510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15511 # have to relink, otherwise we might link with an installed library
15512 # when we should be linking with a yet-to-be-installed one
15513 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15514 test "$hardcode_minus_L" != no; then
15515 # Linking always hardcodes the temporary library directory.
15516 hardcode_action=relink
15517 else
15518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15519 hardcode_action=immediate
15520 fi
15521else
15522 # We cannot hardcode anything, or else we can only hardcode existing
15523 # directories.
15524 hardcode_action=unsupported
15525fi
Reid Spencera773bd52006-08-04 18:18:08 +000015526{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
15527echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015528
15529if test "$hardcode_action" = relink; then
15530 # Fast installation is not supported
15531 enable_fast_install=no
15532elif test "$shlibpath_overrides_runpath" = yes ||
15533 test "$enable_shared" = no; then
15534 # Fast installation is not necessary
15535 enable_fast_install=needless
15536fi
15537
15538striplib=
15539old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000015540{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15541echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015542if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15543 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15544 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000015545 { echo "$as_me:$LINENO: result: yes" >&5
15546echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015547else
15548# FIXME - insert some real tests, host_os isn't really good enough
15549 case $host_os in
15550 darwin*)
15551 if test -n "$STRIP" ; then
15552 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000015553 { echo "$as_me:$LINENO: result: yes" >&5
15554echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015555 else
Reid Spencera773bd52006-08-04 18:18:08 +000015556 { echo "$as_me:$LINENO: result: no" >&5
15557echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015558fi
15559 ;;
15560 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015561 { echo "$as_me:$LINENO: result: no" >&5
15562echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015563 ;;
15564 esac
15565fi
15566
John Criswell7a73b802003-06-30 21:59:07 +000015567if test "x$enable_dlopen" != xyes; then
15568 enable_dlopen=unknown
15569 enable_dlopen_self=unknown
15570 enable_dlopen_self_static=unknown
15571else
15572 lt_cv_dlopen=no
15573 lt_cv_dlopen_libs=
15574
15575 case $host_os in
15576 beos*)
15577 lt_cv_dlopen="load_add_on"
15578 lt_cv_dlopen_libs=
15579 lt_cv_dlopen_self=yes
15580 ;;
15581
John Criswell47fdd832003-07-14 16:52:07 +000015582 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015583 lt_cv_dlopen="LoadLibrary"
15584 lt_cv_dlopen_libs=
15585 ;;
15586
John Criswell47fdd832003-07-14 16:52:07 +000015587 cygwin*)
15588 lt_cv_dlopen="dlopen"
15589 lt_cv_dlopen_libs=
15590 ;;
15591
15592 darwin*)
15593 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000015594 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15595echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015596if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598else
15599 ac_check_lib_save_LIBS=$LIBS
15600LIBS="-ldl $LIBS"
15601cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015602/* confdefs.h. */
15603_ACEOF
15604cat confdefs.h >>conftest.$ac_ext
15605cat >>conftest.$ac_ext <<_ACEOF
15606/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015607
Reid Spencera773bd52006-08-04 18:18:08 +000015608/* Override any GCC internal prototype to avoid an error.
15609 Use char because int might match the return type of a GCC
15610 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000015611#ifdef __cplusplus
15612extern "C"
15613#endif
John Criswell47fdd832003-07-14 16:52:07 +000015614char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015615int
15616main ()
15617{
Reid Spencera773bd52006-08-04 18:18:08 +000015618return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015619 ;
15620 return 0;
15621}
15622_ACEOF
15623rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015624if { (ac_try="$ac_link"
15625case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628esac
15629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015631 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015632 grep -v '^ *+' conftest.er1 >conftest.err
15633 rm -f conftest.er1
15634 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015636 (exit $ac_status); } && {
15637 test -z "$ac_c_werror_flag" ||
15638 test ! -s conftest.err
15639 } && test -s conftest$ac_exeext &&
15640 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000015641 ac_cv_lib_dl_dlopen=yes
15642else
15643 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015644sed 's/^/| /' conftest.$ac_ext >&5
15645
Reid Spencera773bd52006-08-04 18:18:08 +000015646 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000015647fi
Reid Spencera773bd52006-08-04 18:18:08 +000015648
Scott Michel96dcd2b2007-12-05 21:24:02 +000015649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015650 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015651LIBS=$ac_check_lib_save_LIBS
15652fi
Reid Spencera773bd52006-08-04 18:18:08 +000015653{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15654echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015655if test $ac_cv_lib_dl_dlopen = yes; then
15656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15657else
15658
15659 lt_cv_dlopen="dyld"
15660 lt_cv_dlopen_libs=
15661 lt_cv_dlopen_self=yes
15662
15663fi
15664
15665 ;;
15666
John Criswell7a73b802003-06-30 21:59:07 +000015667 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015668 { echo "$as_me:$LINENO: checking for shl_load" >&5
15669echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015670if test "${ac_cv_func_shl_load+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15672else
15673 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015674/* confdefs.h. */
15675_ACEOF
15676cat confdefs.h >>conftest.$ac_ext
15677cat >>conftest.$ac_ext <<_ACEOF
15678/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015679/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15681#define shl_load innocuous_shl_load
15682
John Criswell7a73b802003-06-30 21:59:07 +000015683/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000015684 which can conflict with char shl_load (); below.
15685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15686 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015687
John Criswell0c38eaf2003-09-10 15:17:25 +000015688#ifdef __STDC__
15689# include <limits.h>
15690#else
15691# include <assert.h>
15692#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000015693
15694#undef shl_load
15695
Reid Spencera773bd52006-08-04 18:18:08 +000015696/* Override any GCC internal prototype to avoid an error.
15697 Use char because int might match the return type of a GCC
15698 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015699#ifdef __cplusplus
15700extern "C"
15701#endif
John Criswell7a73b802003-06-30 21:59:07 +000015702char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015703/* The GNU C library defines this for functions which it implements
15704 to always fail with ENOSYS. Some functions are actually named
15705 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000015706#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000015707choke me
John Criswell7a73b802003-06-30 21:59:07 +000015708#endif
15709
John Criswell0c38eaf2003-09-10 15:17:25 +000015710int
15711main ()
15712{
Reid Spencera773bd52006-08-04 18:18:08 +000015713return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015714 ;
15715 return 0;
15716}
15717_ACEOF
15718rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015719if { (ac_try="$ac_link"
15720case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15723esac
15724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015731 (exit $ac_status); } && {
15732 test -z "$ac_c_werror_flag" ||
15733 test ! -s conftest.err
15734 } && test -s conftest$ac_exeext &&
15735 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015736 ac_cv_func_shl_load=yes
15737else
15738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015739sed 's/^/| /' conftest.$ac_ext >&5
15740
Reid Spencera773bd52006-08-04 18:18:08 +000015741 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000015742fi
Reid Spencera773bd52006-08-04 18:18:08 +000015743
Scott Michel96dcd2b2007-12-05 21:24:02 +000015744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015745 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015746fi
Reid Spencera773bd52006-08-04 18:18:08 +000015747{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15748echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015749if test $ac_cv_func_shl_load = yes; then
15750 lt_cv_dlopen="shl_load"
15751else
Reid Spencera773bd52006-08-04 18:18:08 +000015752 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15753echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015754if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15756else
15757 ac_check_lib_save_LIBS=$LIBS
15758LIBS="-ldld $LIBS"
15759cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015760/* confdefs.h. */
15761_ACEOF
15762cat confdefs.h >>conftest.$ac_ext
15763cat >>conftest.$ac_ext <<_ACEOF
15764/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015765
Reid Spencera773bd52006-08-04 18:18:08 +000015766/* Override any GCC internal prototype to avoid an error.
15767 Use char because int might match the return type of a GCC
15768 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015769#ifdef __cplusplus
15770extern "C"
15771#endif
John Criswell7a73b802003-06-30 21:59:07 +000015772char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015773int
15774main ()
15775{
Reid Spencera773bd52006-08-04 18:18:08 +000015776return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015777 ;
15778 return 0;
15779}
15780_ACEOF
15781rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015782if { (ac_try="$ac_link"
15783case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786esac
15787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015794 (exit $ac_status); } && {
15795 test -z "$ac_c_werror_flag" ||
15796 test ! -s conftest.err
15797 } && test -s conftest$ac_exeext &&
15798 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015799 ac_cv_lib_dld_shl_load=yes
15800else
15801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015802sed 's/^/| /' conftest.$ac_ext >&5
15803
Reid Spencera773bd52006-08-04 18:18:08 +000015804 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000015805fi
Reid Spencera773bd52006-08-04 18:18:08 +000015806
Scott Michel96dcd2b2007-12-05 21:24:02 +000015807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015808 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015809LIBS=$ac_check_lib_save_LIBS
15810fi
Reid Spencera773bd52006-08-04 18:18:08 +000015811{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15812echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015813if test $ac_cv_lib_dld_shl_load = yes; then
15814 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15815else
Reid Spencera773bd52006-08-04 18:18:08 +000015816 { echo "$as_me:$LINENO: checking for dlopen" >&5
15817echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015818if test "${ac_cv_func_dlopen+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820else
15821 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015822/* confdefs.h. */
15823_ACEOF
15824cat confdefs.h >>conftest.$ac_ext
15825cat >>conftest.$ac_ext <<_ACEOF
15826/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015827/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15829#define dlopen innocuous_dlopen
15830
John Criswell7a73b802003-06-30 21:59:07 +000015831/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000015832 which can conflict with char dlopen (); below.
15833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15834 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015835
John Criswell0c38eaf2003-09-10 15:17:25 +000015836#ifdef __STDC__
15837# include <limits.h>
15838#else
15839# include <assert.h>
15840#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000015841
15842#undef dlopen
15843
Reid Spencera773bd52006-08-04 18:18:08 +000015844/* Override any GCC internal prototype to avoid an error.
15845 Use char because int might match the return type of a GCC
15846 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015847#ifdef __cplusplus
15848extern "C"
15849#endif
John Criswell7a73b802003-06-30 21:59:07 +000015850char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015851/* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000015854#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000015855choke me
John Criswell7a73b802003-06-30 21:59:07 +000015856#endif
15857
John Criswell0c38eaf2003-09-10 15:17:25 +000015858int
15859main ()
15860{
Reid Spencera773bd52006-08-04 18:18:08 +000015861return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015862 ;
15863 return 0;
15864}
15865_ACEOF
15866rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015867if { (ac_try="$ac_link"
15868case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15871esac
15872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015874 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest$ac_exeext &&
15883 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015884 ac_cv_func_dlopen=yes
15885else
15886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015887sed 's/^/| /' conftest.$ac_ext >&5
15888
Reid Spencera773bd52006-08-04 18:18:08 +000015889 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000015890fi
Reid Spencera773bd52006-08-04 18:18:08 +000015891
Scott Michel96dcd2b2007-12-05 21:24:02 +000015892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015893 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015894fi
Reid Spencera773bd52006-08-04 18:18:08 +000015895{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15896echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015897if test $ac_cv_func_dlopen = yes; then
15898 lt_cv_dlopen="dlopen"
15899else
Reid Spencera773bd52006-08-04 18:18:08 +000015900 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15901echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015902if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15904else
15905 ac_check_lib_save_LIBS=$LIBS
15906LIBS="-ldl $LIBS"
15907cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015908/* confdefs.h. */
15909_ACEOF
15910cat confdefs.h >>conftest.$ac_ext
15911cat >>conftest.$ac_ext <<_ACEOF
15912/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015913
Reid Spencera773bd52006-08-04 18:18:08 +000015914/* Override any GCC internal prototype to avoid an error.
15915 Use char because int might match the return type of a GCC
15916 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015917#ifdef __cplusplus
15918extern "C"
15919#endif
John Criswell7a73b802003-06-30 21:59:07 +000015920char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015921int
15922main ()
15923{
Reid Spencera773bd52006-08-04 18:18:08 +000015924return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015925 ;
15926 return 0;
15927}
15928_ACEOF
15929rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015930if { (ac_try="$ac_link"
15931case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15934esac
15935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015937 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015938 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1
15940 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000015942 (exit $ac_status); } && {
15943 test -z "$ac_c_werror_flag" ||
15944 test ! -s conftest.err
15945 } && test -s conftest$ac_exeext &&
15946 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015947 ac_cv_lib_dl_dlopen=yes
15948else
15949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015950sed 's/^/| /' conftest.$ac_ext >&5
15951
Reid Spencera773bd52006-08-04 18:18:08 +000015952 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000015953fi
Reid Spencera773bd52006-08-04 18:18:08 +000015954
Scott Michel96dcd2b2007-12-05 21:24:02 +000015955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015956 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015957LIBS=$ac_check_lib_save_LIBS
15958fi
Reid Spencera773bd52006-08-04 18:18:08 +000015959{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15960echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015961if test $ac_cv_lib_dl_dlopen = yes; then
15962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15963else
Reid Spencera773bd52006-08-04 18:18:08 +000015964 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15965echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015966if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15968else
15969 ac_check_lib_save_LIBS=$LIBS
15970LIBS="-lsvld $LIBS"
15971cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015972/* confdefs.h. */
15973_ACEOF
15974cat confdefs.h >>conftest.$ac_ext
15975cat >>conftest.$ac_ext <<_ACEOF
15976/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015977
Reid Spencera773bd52006-08-04 18:18:08 +000015978/* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015981#ifdef __cplusplus
15982extern "C"
15983#endif
John Criswell7a73b802003-06-30 21:59:07 +000015984char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015985int
15986main ()
15987{
Reid Spencera773bd52006-08-04 18:18:08 +000015988return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000015989 ;
15990 return 0;
15991}
15992_ACEOF
15993rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015994if { (ac_try="$ac_link"
15995case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998esac
15999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016001 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000016006 (exit $ac_status); } && {
16007 test -z "$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16009 } && test -s conftest$ac_exeext &&
16010 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016011 ac_cv_lib_svld_dlopen=yes
16012else
16013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016014sed 's/^/| /' conftest.$ac_ext >&5
16015
Reid Spencera773bd52006-08-04 18:18:08 +000016016 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016017fi
Reid Spencera773bd52006-08-04 18:18:08 +000016018
Scott Michel96dcd2b2007-12-05 21:24:02 +000016019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016020 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016021LIBS=$ac_check_lib_save_LIBS
16022fi
Reid Spencera773bd52006-08-04 18:18:08 +000016023{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16024echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016025if test $ac_cv_lib_svld_dlopen = yes; then
16026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16027else
Reid Spencera773bd52006-08-04 18:18:08 +000016028 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16029echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016030if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16032else
16033 ac_check_lib_save_LIBS=$LIBS
16034LIBS="-ldld $LIBS"
16035cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016036/* confdefs.h. */
16037_ACEOF
16038cat confdefs.h >>conftest.$ac_ext
16039cat >>conftest.$ac_ext <<_ACEOF
16040/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016041
Reid Spencera773bd52006-08-04 18:18:08 +000016042/* Override any GCC internal prototype to avoid an error.
16043 Use char because int might match the return type of a GCC
16044 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016045#ifdef __cplusplus
16046extern "C"
16047#endif
John Criswell7a73b802003-06-30 21:59:07 +000016048char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016049int
16050main ()
16051{
Reid Spencera773bd52006-08-04 18:18:08 +000016052return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016053 ;
16054 return 0;
16055}
16056_ACEOF
16057rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016058if { (ac_try="$ac_link"
16059case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062esac
16063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016065 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000016070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest$ac_exeext &&
16074 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016075 ac_cv_lib_dld_dld_link=yes
16076else
16077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016078sed 's/^/| /' conftest.$ac_ext >&5
16079
Reid Spencera773bd52006-08-04 18:18:08 +000016080 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016081fi
Reid Spencera773bd52006-08-04 18:18:08 +000016082
Scott Michel96dcd2b2007-12-05 21:24:02 +000016083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016084 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016085LIBS=$ac_check_lib_save_LIBS
16086fi
Reid Spencera773bd52006-08-04 18:18:08 +000016087{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16088echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016089if test $ac_cv_lib_dld_dld_link = yes; then
16090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16091fi
16092
16093
16094fi
16095
16096
16097fi
16098
16099
16100fi
16101
16102
16103fi
16104
16105
16106fi
16107
16108 ;;
16109 esac
16110
16111 if test "x$lt_cv_dlopen" != xno; then
16112 enable_dlopen=yes
16113 else
16114 enable_dlopen=no
16115 fi
16116
16117 case $lt_cv_dlopen in
16118 dlopen)
16119 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016121
16122 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016124
16125 save_LIBS="$LIBS"
16126 LIBS="$lt_cv_dlopen_libs $LIBS"
16127
Reid Spencera773bd52006-08-04 18:18:08 +000016128 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16129echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016130if test "${lt_cv_dlopen_self+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132else
16133 if test "$cross_compiling" = yes; then :
16134 lt_cv_dlopen_self=cross
16135else
John Criswell47fdd832003-07-14 16:52:07 +000016136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016137 lt_status=$lt_dlunknown
16138 cat > conftest.$ac_ext <<EOF
Duncan Sands1eff7042007-12-10 17:43:13 +000016139#line 16139 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016140#include "confdefs.h"
16141
16142#if HAVE_DLFCN_H
16143#include <dlfcn.h>
16144#endif
16145
16146#include <stdio.h>
16147
16148#ifdef RTLD_GLOBAL
16149# define LT_DLGLOBAL RTLD_GLOBAL
16150#else
16151# ifdef DL_GLOBAL
16152# define LT_DLGLOBAL DL_GLOBAL
16153# else
16154# define LT_DLGLOBAL 0
16155# endif
16156#endif
16157
16158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16159 find out it does not work in some platform. */
16160#ifndef LT_DLLAZY_OR_NOW
16161# ifdef RTLD_LAZY
16162# define LT_DLLAZY_OR_NOW RTLD_LAZY
16163# else
16164# ifdef DL_LAZY
16165# define LT_DLLAZY_OR_NOW DL_LAZY
16166# else
16167# ifdef RTLD_NOW
16168# define LT_DLLAZY_OR_NOW RTLD_NOW
16169# else
16170# ifdef DL_NOW
16171# define LT_DLLAZY_OR_NOW DL_NOW
16172# else
16173# define LT_DLLAZY_OR_NOW 0
16174# endif
16175# endif
16176# endif
16177# endif
16178#endif
16179
16180#ifdef __cplusplus
16181extern "C" void exit (int);
16182#endif
16183
16184void fnord() { int i=42;}
16185int main ()
16186{
16187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16188 int status = $lt_dlunknown;
16189
16190 if (self)
16191 {
16192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16194 /* dlclose (self); */
16195 }
Reid Spencera773bd52006-08-04 18:18:08 +000016196 else
16197 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016198
16199 exit (status);
16200}
16201EOF
16202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16203 (eval $ac_link) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016207 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016208 lt_status=$?
16209 case x$lt_status in
16210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016213 esac
16214 else :
16215 # compilation failed
16216 lt_cv_dlopen_self=no
16217 fi
16218fi
16219rm -fr conftest*
16220
16221
16222fi
Reid Spencera773bd52006-08-04 18:18:08 +000016223{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16224echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016225
16226 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16228 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16229echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016230if test "${lt_cv_dlopen_self_static+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232else
16233 if test "$cross_compiling" = yes; then :
16234 lt_cv_dlopen_self_static=cross
16235else
John Criswell47fdd832003-07-14 16:52:07 +000016236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016237 lt_status=$lt_dlunknown
16238 cat > conftest.$ac_ext <<EOF
Duncan Sands1eff7042007-12-10 17:43:13 +000016239#line 16239 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016240#include "confdefs.h"
16241
16242#if HAVE_DLFCN_H
16243#include <dlfcn.h>
16244#endif
16245
16246#include <stdio.h>
16247
16248#ifdef RTLD_GLOBAL
16249# define LT_DLGLOBAL RTLD_GLOBAL
16250#else
16251# ifdef DL_GLOBAL
16252# define LT_DLGLOBAL DL_GLOBAL
16253# else
16254# define LT_DLGLOBAL 0
16255# endif
16256#endif
16257
16258/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16259 find out it does not work in some platform. */
16260#ifndef LT_DLLAZY_OR_NOW
16261# ifdef RTLD_LAZY
16262# define LT_DLLAZY_OR_NOW RTLD_LAZY
16263# else
16264# ifdef DL_LAZY
16265# define LT_DLLAZY_OR_NOW DL_LAZY
16266# else
16267# ifdef RTLD_NOW
16268# define LT_DLLAZY_OR_NOW RTLD_NOW
16269# else
16270# ifdef DL_NOW
16271# define LT_DLLAZY_OR_NOW DL_NOW
16272# else
16273# define LT_DLLAZY_OR_NOW 0
16274# endif
16275# endif
16276# endif
16277# endif
16278#endif
16279
16280#ifdef __cplusplus
16281extern "C" void exit (int);
16282#endif
16283
16284void fnord() { int i=42;}
16285int main ()
16286{
16287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16288 int status = $lt_dlunknown;
16289
16290 if (self)
16291 {
16292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16294 /* dlclose (self); */
16295 }
Reid Spencera773bd52006-08-04 18:18:08 +000016296 else
16297 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016298
16299 exit (status);
16300}
16301EOF
16302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16303 (eval $ac_link) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016307 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016308 lt_status=$?
16309 case x$lt_status in
16310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016313 esac
16314 else :
16315 # compilation failed
16316 lt_cv_dlopen_self_static=no
16317 fi
16318fi
16319rm -fr conftest*
16320
16321
16322fi
Reid Spencera773bd52006-08-04 18:18:08 +000016323{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16324echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016325 fi
16326
16327 CPPFLAGS="$save_CPPFLAGS"
16328 LDFLAGS="$save_LDFLAGS"
16329 LIBS="$save_LIBS"
16330 ;;
16331 esac
16332
16333 case $lt_cv_dlopen_self in
16334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16335 *) enable_dlopen_self=unknown ;;
16336 esac
16337
16338 case $lt_cv_dlopen_self_static in
16339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16340 *) enable_dlopen_self_static=unknown ;;
16341 esac
16342fi
16343
16344
Reid Spencera773bd52006-08-04 18:18:08 +000016345# Report which library types will actually be built
16346{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16347echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16348{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16349echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016350
Reid Spencera773bd52006-08-04 18:18:08 +000016351{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16352echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016353test "$can_build_shared" = "no" && enable_shared=no
16354
16355# On AIX, shared libraries and static libraries use the same namespace, and
16356# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000016357case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016358aix3*)
16359 test "$enable_shared" = yes && enable_static=no
16360 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000016362 postinstall_cmds='$RANLIB $lib'
16363 fi
16364 ;;
16365
Reid Spencer2706f8c2004-09-19 23:53:36 +000016366aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000016367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16368 test "$enable_shared" = yes && enable_static=no
16369 fi
John Criswell7a73b802003-06-30 21:59:07 +000016370 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016371esac
Reid Spencera773bd52006-08-04 18:18:08 +000016372{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16373echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016374
Reid Spencera773bd52006-08-04 18:18:08 +000016375{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16376echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016377# Make sure either enable_shared or enable_static is yes.
16378test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000016379{ echo "$as_me:$LINENO: result: $enable_static" >&5
16380echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016381
16382# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000016383# libtool distribution, otherwise you forgot to ship ltmain.sh
16384# with your package, and you will get complaints that there are
16385# no rules to generate ltmain.sh.
16386if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000016387 # See if we are running on zsh, and set the options which allow our commands through
16388 # without removal of \ escapes.
16389 if test -n "${ZSH_VERSION+set}" ; then
16390 setopt NO_GLOB_SUBST
16391 fi
John Criswell7a73b802003-06-30 21:59:07 +000016392 # Now quote all the things that may contain metacharacters while being
16393 # careful not to overquote the AC_SUBSTed values. We take copies of the
16394 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000016395 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 +000016396 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000016397 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16398 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16399 deplibs_check_method reload_flag reload_cmds need_locks \
16400 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16401 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000016402 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000016403 old_postinstall_cmds old_postuninstall_cmds \
16404 compiler \
16405 CC \
16406 LD \
16407 lt_prog_compiler_wl \
16408 lt_prog_compiler_pic \
16409 lt_prog_compiler_static \
16410 lt_prog_compiler_no_builtin_flag \
16411 export_dynamic_flag_spec \
16412 thread_safe_flag_spec \
16413 whole_archive_flag_spec \
16414 enable_shared_with_static_runtimes \
16415 old_archive_cmds \
16416 old_archive_from_new_cmds \
16417 predep_objects \
16418 postdep_objects \
16419 predeps \
16420 postdeps \
16421 compiler_lib_search_path \
16422 archive_cmds \
16423 archive_expsym_cmds \
16424 postinstall_cmds \
16425 postuninstall_cmds \
16426 old_archive_from_expsyms_cmds \
16427 allow_undefined_flag \
16428 no_undefined_flag \
16429 export_symbols_cmds \
16430 hardcode_libdir_flag_spec \
16431 hardcode_libdir_flag_spec_ld \
16432 hardcode_libdir_separator \
16433 hardcode_automatic \
16434 module_cmds \
16435 module_expsym_cmds \
16436 lt_cv_prog_compiler_c_o \
16437 exclude_expsyms \
16438 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000016439
16440 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000016441 old_archive_cmds | \
16442 old_archive_from_new_cmds | \
16443 archive_cmds | \
16444 archive_expsym_cmds | \
16445 module_cmds | \
16446 module_expsym_cmds | \
16447 old_archive_from_expsyms_cmds | \
16448 export_symbols_cmds | \
16449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000016450 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000016451 old_postinstall_cmds | old_postuninstall_cmds | \
16452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000016453 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016454 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 +000016455 ;;
16456 *)
16457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16458 ;;
16459 esac
16460 done
16461
John Criswell47fdd832003-07-14 16:52:07 +000016462 case $lt_echo in
16463 *'\$0 --fallback-echo"')
16464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16465 ;;
16466 esac
16467
16468cfgfile="${ofile}T"
16469 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16470 $rm -f "$cfgfile"
16471 { echo "$as_me:$LINENO: creating $ofile" >&5
16472echo "$as_me: creating $ofile" >&6;}
16473
16474 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000016475#! $SHELL
16476
John Criswell47fdd832003-07-14 16:52:07 +000016477# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000016478# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16479# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16480#
John Criswell47fdd832003-07-14 16:52:07 +000016481# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16482# Free Software Foundation, Inc.
16483#
16484# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000016485# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16486#
16487# This program is free software; you can redistribute it and/or modify
16488# it under the terms of the GNU General Public License as published by
16489# the Free Software Foundation; either version 2 of the License, or
16490# (at your option) any later version.
16491#
16492# This program is distributed in the hope that it will be useful, but
16493# WITHOUT ANY WARRANTY; without even the implied warranty of
16494# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16495# General Public License for more details.
16496#
16497# You should have received a copy of the GNU General Public License
16498# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000016499# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000016500#
16501# As a special exception to the GNU General Public License, if you
16502# distribute this file as part of a program that contains a
16503# configuration script generated by Autoconf, you may include it under
16504# the same distribution terms that you use for the rest of that program.
16505
John Criswell47fdd832003-07-14 16:52:07 +000016506# A sed program that does not truncate output.
16507SED=$lt_SED
16508
John Criswell7a73b802003-06-30 21:59:07 +000016509# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000016510Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000016511
16512# The HP-UX ksh and POSIX shell print the target directory to stdout
16513# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016514(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000016515
John Criswell47fdd832003-07-14 16:52:07 +000016516# The names of the tagged configurations supported by this script.
16517available_tags=
16518
John Criswell7a73b802003-06-30 21:59:07 +000016519# ### BEGIN LIBTOOL CONFIG
16520
16521# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16522
16523# Shell to use when invoking shell scripts.
16524SHELL=$lt_SHELL
16525
16526# Whether or not to build shared libraries.
16527build_libtool_libs=$enable_shared
16528
16529# Whether or not to build static libraries.
16530build_old_libs=$enable_static
16531
16532# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016533build_libtool_need_lc=$archive_cmds_need_lc
16534
16535# Whether or not to disallow shared libs when runtime libs are static
16536allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000016537
16538# Whether or not to optimize for fast installation.
16539fast_install=$enable_fast_install
16540
16541# The host system.
16542host_alias=$host_alias
16543host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000016544host_os=$host_os
16545
16546# The build system.
16547build_alias=$build_alias
16548build=$build
16549build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000016550
16551# An echo program that does not interpret backslashes.
16552echo=$lt_echo
16553
16554# The archiver.
16555AR=$lt_AR
16556AR_FLAGS=$lt_AR_FLAGS
16557
John Criswell47fdd832003-07-14 16:52:07 +000016558# A C compiler.
16559LTCC=$lt_LTCC
16560
Reid Spencera773bd52006-08-04 18:18:08 +000016561# LTCC compiler flags.
16562LTCFLAGS=$lt_LTCFLAGS
16563
John Criswell47fdd832003-07-14 16:52:07 +000016564# A language-specific compiler.
16565CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000016566
16567# Is the compiler the GNU C compiler?
16568with_gcc=$GCC
16569
John Criswell47fdd832003-07-14 16:52:07 +000016570# An ERE matcher.
16571EGREP=$lt_EGREP
16572
John Criswell7a73b802003-06-30 21:59:07 +000016573# The linker used to build libraries.
16574LD=$lt_LD
16575
16576# Whether we need hard or soft links.
16577LN_S=$lt_LN_S
16578
16579# A BSD-compatible nm program.
16580NM=$lt_NM
16581
16582# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000016583STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000016584
16585# Used to examine libraries when file_magic_cmd begins "file"
16586MAGIC_CMD=$MAGIC_CMD
16587
16588# Used on cygwin: DLL creation program.
16589DLLTOOL="$DLLTOOL"
16590
16591# Used on cygwin: object dumper.
16592OBJDUMP="$OBJDUMP"
16593
16594# Used on cygwin: assembler.
16595AS="$AS"
16596
16597# The name of the directory that contains temporary libtool files.
16598objdir=$objdir
16599
16600# How to create reloadable object files.
16601reload_flag=$lt_reload_flag
16602reload_cmds=$lt_reload_cmds
16603
16604# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000016605wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000016606
16607# Object file suffix (normally "o").
16608objext="$ac_objext"
16609
16610# Old archive suffix (normally "a").
16611libext="$libext"
16612
John Criswell47fdd832003-07-14 16:52:07 +000016613# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000016614shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000016615
John Criswell7a73b802003-06-30 21:59:07 +000016616# Executable file suffix (normally "").
16617exeext="$exeext"
16618
16619# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000016620pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000016621pic_mode=$pic_mode
16622
John Criswell47fdd832003-07-14 16:52:07 +000016623# What is the maximum length of a command?
16624max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000016625
John Criswell47fdd832003-07-14 16:52:07 +000016626# Does compiler simultaneously support -c and -o options?
16627compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000016628
Reid Spencera773bd52006-08-04 18:18:08 +000016629# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000016630need_locks=$lt_need_locks
16631
16632# Do we need the lib prefix for modules?
16633need_lib_prefix=$need_lib_prefix
16634
16635# Do we need a version for libraries?
16636need_version=$need_version
16637
16638# Whether dlopen is supported.
16639dlopen_support=$enable_dlopen
16640
16641# Whether dlopen of programs is supported.
16642dlopen_self=$enable_dlopen_self
16643
16644# Whether dlopen of statically linked programs is supported.
16645dlopen_self_static=$enable_dlopen_self_static
16646
16647# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000016648link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000016649
16650# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000016651no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000016652
16653# Compiler flag to allow reflexive dlopens.
16654export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16655
16656# Compiler flag to generate shared objects directly from archives.
16657whole_archive_flag_spec=$lt_whole_archive_flag_spec
16658
16659# Compiler flag to generate thread-safe objects.
16660thread_safe_flag_spec=$lt_thread_safe_flag_spec
16661
16662# Library versioning type.
16663version_type=$version_type
16664
16665# Format of library name prefix.
16666libname_spec=$lt_libname_spec
16667
16668# List of archive names. First name is the real one, the rest are links.
16669# The last name is the one that the linker finds with -lNAME.
16670library_names_spec=$lt_library_names_spec
16671
16672# The coded name of the library, if different from the real name.
16673soname_spec=$lt_soname_spec
16674
16675# Commands used to build and install an old-style archive.
16676RANLIB=$lt_RANLIB
16677old_archive_cmds=$lt_old_archive_cmds
16678old_postinstall_cmds=$lt_old_postinstall_cmds
16679old_postuninstall_cmds=$lt_old_postuninstall_cmds
16680
16681# Create an old-style archive from a shared archive.
16682old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16683
16684# Create a temporary old-style archive to link instead of a shared archive.
16685old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16686
16687# Commands used to build and install a shared archive.
16688archive_cmds=$lt_archive_cmds
16689archive_expsym_cmds=$lt_archive_expsym_cmds
16690postinstall_cmds=$lt_postinstall_cmds
16691postuninstall_cmds=$lt_postuninstall_cmds
16692
John Criswell47fdd832003-07-14 16:52:07 +000016693# Commands used to build a loadable module (assumed same as above if empty)
16694module_cmds=$lt_module_cmds
16695module_expsym_cmds=$lt_module_expsym_cmds
16696
John Criswell7a73b802003-06-30 21:59:07 +000016697# Commands to strip libraries.
16698old_striplib=$lt_old_striplib
16699striplib=$lt_striplib
16700
John Criswell47fdd832003-07-14 16:52:07 +000016701# Dependencies to place before the objects being linked to create a
16702# shared library.
16703predep_objects=$lt_predep_objects
16704
16705# Dependencies to place after the objects being linked to create a
16706# shared library.
16707postdep_objects=$lt_postdep_objects
16708
16709# Dependencies to place before the objects being linked to create a
16710# shared library.
16711predeps=$lt_predeps
16712
16713# Dependencies to place after the objects being linked to create a
16714# shared library.
16715postdeps=$lt_postdeps
16716
16717# The library search path used internally by the compiler when linking
16718# a shared library.
16719compiler_lib_search_path=$lt_compiler_lib_search_path
16720
John Criswell7a73b802003-06-30 21:59:07 +000016721# Method to check whether dependent libraries are shared objects.
16722deplibs_check_method=$lt_deplibs_check_method
16723
16724# Command to use when deplibs_check_method == file_magic.
16725file_magic_cmd=$lt_file_magic_cmd
16726
16727# Flag that allows shared libraries with undefined symbols to be built.
16728allow_undefined_flag=$lt_allow_undefined_flag
16729
16730# Flag that forces no undefined symbols.
16731no_undefined_flag=$lt_no_undefined_flag
16732
16733# Commands used to finish a libtool library installation in a directory.
16734finish_cmds=$lt_finish_cmds
16735
16736# Same as above, but a single script fragment to be evaled but not shown.
16737finish_eval=$lt_finish_eval
16738
16739# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000016740global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000016741
16742# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000016743global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000016744
16745# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000016746global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000016747
16748# This is the shared library runtime path variable.
16749runpath_var=$runpath_var
16750
16751# This is the shared library path variable.
16752shlibpath_var=$shlibpath_var
16753
16754# Is shlibpath searched before the hard-coded library search path?
16755shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16756
16757# How to hardcode a shared library path into an executable.
16758hardcode_action=$hardcode_action
16759
16760# Whether we should hardcode library paths into libraries.
16761hardcode_into_libs=$hardcode_into_libs
16762
16763# Flag to hardcode \$libdir into a binary during linking.
16764# This must work even if \$libdir does not exist.
16765hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16766
John Criswell47fdd832003-07-14 16:52:07 +000016767# If ld is used when linking, flag to hardcode \$libdir into
16768# a binary during linking. This must work even if \$libdir does
16769# not exist.
16770hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16771
John Criswell7a73b802003-06-30 21:59:07 +000016772# Whether we need a single -rpath flag with a separated argument.
16773hardcode_libdir_separator=$lt_hardcode_libdir_separator
16774
John Criswell47fdd832003-07-14 16:52:07 +000016775# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000016776# resulting binary.
16777hardcode_direct=$hardcode_direct
16778
16779# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16780# resulting binary.
16781hardcode_minus_L=$hardcode_minus_L
16782
16783# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16784# the resulting binary.
16785hardcode_shlibpath_var=$hardcode_shlibpath_var
16786
John Criswell47fdd832003-07-14 16:52:07 +000016787# Set to yes if building a shared library automatically hardcodes DIR into the library
16788# and all subsequent libraries and executables linked against it.
16789hardcode_automatic=$hardcode_automatic
16790
John Criswell7a73b802003-06-30 21:59:07 +000016791# Variables whose values should be saved in libtool wrapper scripts and
16792# restored at relink time.
16793variables_saved_for_relink="$variables_saved_for_relink"
16794
16795# Whether libtool must link a program against all its dependency libraries.
16796link_all_deplibs=$link_all_deplibs
16797
16798# Compile-time system search path for libraries
16799sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16800
16801# Run-time system search path for libraries
16802sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16803
16804# Fix the shell variable \$srcfile for the compiler.
16805fix_srcfile_path="$fix_srcfile_path"
16806
16807# Set to yes if exported symbols are required.
16808always_export_symbols=$always_export_symbols
16809
16810# The commands to list exported symbols.
16811export_symbols_cmds=$lt_export_symbols_cmds
16812
16813# The commands to extract the exported symbol list from a shared archive.
16814extract_expsyms_cmds=$lt_extract_expsyms_cmds
16815
16816# Symbols that should not be listed in the preloaded symbols.
16817exclude_expsyms=$lt_exclude_expsyms
16818
16819# Symbols that must always be exported.
16820include_expsyms=$lt_include_expsyms
16821
16822# ### END LIBTOOL CONFIG
16823
16824__EOF__
16825
John Criswell47fdd832003-07-14 16:52:07 +000016826
John Criswell7a73b802003-06-30 21:59:07 +000016827 case $host_os in
16828 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000016829 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000016830
16831# AIX sometimes has problems with the GCC collect2 program. For some
16832# reason, if we set the COLLECT_NAMES environment variable, the problems
16833# vanish in a puff of smoke.
16834if test "X${COLLECT_NAMES+set}" != Xset; then
16835 COLLECT_NAMES=
16836 export COLLECT_NAMES
16837fi
16838EOF
16839 ;;
16840 esac
16841
John Criswell7a73b802003-06-30 21:59:07 +000016842 # We use sed instead of cat because bash on DJGPP gets confused if
16843 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16844 # text mode, it properly converts lines to CR/LF. This bash problem
16845 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000016846 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000016847
John Criswell47fdd832003-07-14 16:52:07 +000016848 mv -f "$cfgfile" "$ofile" || \
16849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000016850 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000016851
16852else
16853 # If there is no Makefile yet, we rely on a make rule to execute
16854 # `config.status --recheck' to rerun these tests and create the
16855 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16857 if test -f "$ltmain_in"; then
16858 test -f Makefile && make "$ltmain"
16859 fi
John Criswell7a73b802003-06-30 21:59:07 +000016860fi
John Criswell7a73b802003-06-30 21:59:07 +000016861
16862
John Criswell47fdd832003-07-14 16:52:07 +000016863ac_ext=c
16864ac_cpp='$CPP $CPPFLAGS'
16865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16867ac_compiler_gnu=$ac_cv_c_compiler_gnu
16868
16869CC="$lt_save_CC"
16870
16871
Reid Spencera773bd52006-08-04 18:18:08 +000016872# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000016873if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000016874 withval=$with_tags; tagnames="$withval"
16875fi
16876
John Criswell47fdd832003-07-14 16:52:07 +000016877
16878if test -f "$ltmain" && test -n "$tagnames"; then
16879 if test ! -f "${ofile}"; then
16880 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16881echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16882 fi
16883
16884 if test -z "$LTCC"; then
16885 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16886 if test -z "$LTCC"; then
16887 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16888echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16889 else
16890 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16891echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16892 fi
16893 fi
Reid Spencera773bd52006-08-04 18:18:08 +000016894 if test -z "$LTCFLAGS"; then
16895 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16896 fi
John Criswell47fdd832003-07-14 16:52:07 +000016897
16898 # Extract list of available tagged configurations in $ofile.
16899 # Note that this assumes the entire list is on one line.
16900 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16901
16902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16903 for tagname in $tagnames; do
16904 IFS="$lt_save_ifs"
16905 # Check whether tagname contains only valid characters
16906 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16907 "") ;;
16908 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16909echo "$as_me: error: invalid tag name: $tagname" >&2;}
16910 { (exit 1); exit 1; }; }
16911 ;;
16912 esac
16913
16914 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16915 then
16916 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16917echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16918 { (exit 1); exit 1; }; }
16919 fi
16920
16921 # Update the list of available tags.
16922 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000016923 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000016924
16925 case $tagname in
16926 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016927 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16928 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16929 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000016930 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000016931ac_cpp='$CXXCPP $CPPFLAGS'
16932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16935
16936
16937
16938
16939archive_cmds_need_lc_CXX=no
16940allow_undefined_flag_CXX=
16941always_export_symbols_CXX=no
16942archive_expsym_cmds_CXX=
16943export_dynamic_flag_spec_CXX=
16944hardcode_direct_CXX=no
16945hardcode_libdir_flag_spec_CXX=
16946hardcode_libdir_flag_spec_ld_CXX=
16947hardcode_libdir_separator_CXX=
16948hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000016949hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000016950hardcode_automatic_CXX=no
16951module_cmds_CXX=
16952module_expsym_cmds_CXX=
16953link_all_deplibs_CXX=unknown
16954old_archive_cmds_CXX=$old_archive_cmds
16955no_undefined_flag_CXX=
16956whole_archive_flag_spec_CXX=
16957enable_shared_with_static_runtimes_CXX=no
16958
16959# Dependencies to place before and after the object being linked:
16960predep_objects_CXX=
16961postdep_objects_CXX=
16962predeps_CXX=
16963postdeps_CXX=
16964compiler_lib_search_path_CXX=
16965
16966# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000016967ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000016968
16969# Object file extension for compiled C++ test sources.
16970objext=o
16971objext_CXX=$objext
16972
16973# Code to be used in simple compile tests
16974lt_simple_compile_test_code="int some_variable = 0;\n"
16975
16976# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000016977lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000016978
16979# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16980
16981# If no C compiler was specified, use CC.
16982LTCC=${LTCC-"$CC"}
16983
Reid Spencera773bd52006-08-04 18:18:08 +000016984# If no C compiler flags were specified, use CFLAGS.
16985LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16986
John Criswell47fdd832003-07-14 16:52:07 +000016987# Allow CC to be a program name with arguments.
16988compiler=$CC
16989
16990
Reid Spencera773bd52006-08-04 18:18:08 +000016991# save warnings/boilerplate of simple test code
16992ac_outfile=conftest.$ac_objext
16993printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16994eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16995_lt_compiler_boilerplate=`cat conftest.err`
16996$rm conftest*
16997
16998ac_outfile=conftest.$ac_objext
16999printf "$lt_simple_link_test_code" >conftest.$ac_ext
17000eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17001_lt_linker_boilerplate=`cat conftest.err`
17002$rm conftest*
17003
17004
John Criswell47fdd832003-07-14 16:52:07 +000017005# Allow CC to be a program name with arguments.
17006lt_save_CC=$CC
17007lt_save_LD=$LD
17008lt_save_GCC=$GCC
17009GCC=$GXX
17010lt_save_with_gnu_ld=$with_gnu_ld
17011lt_save_path_LD=$lt_cv_path_LD
17012if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17013 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17014else
Reid Spencera773bd52006-08-04 18:18:08 +000017015 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017016fi
17017if test -n "${lt_cv_path_LDCXX+set}"; then
17018 lt_cv_path_LD=$lt_cv_path_LDCXX
17019else
Reid Spencera773bd52006-08-04 18:18:08 +000017020 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017021fi
17022test -z "${LDCXX+set}" || LD=$LDCXX
17023CC=${CXX-"c++"}
17024compiler=$CC
17025compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017026for cc_temp in $compiler""; do
17027 case $cc_temp in
17028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17030 \-*) ;;
17031 *) break;;
17032 esac
17033done
17034cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17035
John Criswell47fdd832003-07-14 16:52:07 +000017036
17037# We don't want -fno-exception wen compiling C++ code, so set the
17038# no_builtin_flag separately
17039if test "$GXX" = yes; then
17040 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17041else
17042 lt_prog_compiler_no_builtin_flag_CXX=
17043fi
17044
17045if test "$GXX" = yes; then
17046 # Set up default GNU C++ configuration
17047
17048
Reid Spencera773bd52006-08-04 18:18:08 +000017049# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017050if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017051 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017052else
17053 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017054fi
17055
John Criswell47fdd832003-07-14 16:52:07 +000017056ac_prog=ld
17057if test "$GCC" = yes; then
17058 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017059 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17060echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017061 case $host in
17062 *-*-mingw*)
17063 # gcc leaves a trailing carriage return which upsets mingw
17064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17065 *)
17066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17067 esac
17068 case $ac_prog in
17069 # Accept absolute paths.
17070 [\\/]* | ?:[\\/]*)
17071 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017072 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017073 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17074 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17075 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17076 done
17077 test -z "$LD" && LD="$ac_prog"
17078 ;;
17079 "")
17080 # If it fails, then pretend we aren't using GCC.
17081 ac_prog=ld
17082 ;;
17083 *)
17084 # If it is relative, then search for the first ld in PATH.
17085 with_gnu_ld=unknown
17086 ;;
17087 esac
17088elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017089 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17090echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017091else
Reid Spencera773bd52006-08-04 18:18:08 +000017092 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17093echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017094fi
17095if test "${lt_cv_path_LD+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17097else
17098 if test -z "$LD"; then
17099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17100 for ac_dir in $PATH; do
17101 IFS="$lt_save_ifs"
17102 test -z "$ac_dir" && ac_dir=.
17103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17104 lt_cv_path_LD="$ac_dir/$ac_prog"
17105 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017106 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017107 # Break only if it was the GNU/non-GNU ld that we prefer.
17108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17109 *GNU* | *'with BFD'*)
17110 test "$with_gnu_ld" != no && break
17111 ;;
17112 *)
17113 test "$with_gnu_ld" != yes && break
17114 ;;
17115 esac
17116 fi
17117 done
17118 IFS="$lt_save_ifs"
17119else
17120 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17121fi
17122fi
17123
17124LD="$lt_cv_path_LD"
17125if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017126 { echo "$as_me:$LINENO: result: $LD" >&5
17127echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017128else
Reid Spencera773bd52006-08-04 18:18:08 +000017129 { echo "$as_me:$LINENO: result: no" >&5
17130echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017131fi
17132test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17133echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17134 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017135{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17136echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017137if test "${lt_cv_prog_gnu_ld+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17139else
Reid Spencera773bd52006-08-04 18:18:08 +000017140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017141case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017142*GNU* | *'with BFD'*)
17143 lt_cv_prog_gnu_ld=yes
17144 ;;
17145*)
17146 lt_cv_prog_gnu_ld=no
17147 ;;
17148esac
17149fi
Reid Spencera773bd52006-08-04 18:18:08 +000017150{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17151echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017152with_gnu_ld=$lt_cv_prog_gnu_ld
17153
17154
17155
17156 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17157 # archiving commands below assume that GNU ld is being used.
17158 if test "$with_gnu_ld" = yes; then
17159 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17160 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'
17161
17162 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17164
17165 # If archive_cmds runs LD, not CC, wlarc should be empty
17166 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17167 # investigate it a little bit more. (MM)
17168 wlarc='${wl}'
17169
17170 # ancient GNU ld didn't support --whole-archive et. al.
17171 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17172 grep 'no-whole-archive' > /dev/null; then
17173 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17174 else
17175 whole_archive_flag_spec_CXX=
17176 fi
17177 else
17178 with_gnu_ld=no
17179 wlarc=
17180
17181 # A generic and very simple default shared library creation
17182 # command for GNU C++ for the case where it uses the native
17183 # linker, instead of GNU ld. If possible, this setting should
17184 # overridden to take advantage of the native linker features on
17185 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017186 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000017187 fi
17188
17189 # Commands to make compiler produce verbose output that lists
17190 # what "hidden" libraries, object files and flags are used when
17191 # linking a shared library.
17192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17193
17194else
17195 GXX=no
17196 with_gnu_ld=no
17197 wlarc=
17198fi
17199
17200# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000017201{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17202echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017203ld_shlibs_CXX=yes
17204case $host_os in
17205 aix3*)
17206 # FIXME: insert proper C++ library support
17207 ld_shlibs_CXX=no
17208 ;;
17209 aix4* | aix5*)
17210 if test "$host_cpu" = ia64; then
17211 # On IA64, the linker does run time linking by default, so we don't
17212 # have to do anything special.
17213 aix_use_runtimelinking=no
17214 exp_sym_flag='-Bexport'
17215 no_entry_flag=""
17216 else
17217 aix_use_runtimelinking=no
17218
17219 # Test if we are trying to use run time linking or normal
17220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17221 # need to do runtime linking.
17222 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17223 for ld_flag in $LDFLAGS; do
17224 case $ld_flag in
17225 *-brtl*)
17226 aix_use_runtimelinking=yes
17227 break
17228 ;;
17229 esac
17230 done
Reid Spencera773bd52006-08-04 18:18:08 +000017231 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017232 esac
17233
17234 exp_sym_flag='-bexport'
17235 no_entry_flag='-bnoentry'
17236 fi
17237
17238 # When large executables or shared objects are built, AIX ld can
17239 # have problems creating the table of contents. If linking a library
17240 # or program results in "error TOC overflow" add -mminimal-toc to
17241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17243
17244 archive_cmds_CXX=''
17245 hardcode_direct_CXX=yes
17246 hardcode_libdir_separator_CXX=':'
17247 link_all_deplibs_CXX=yes
17248
17249 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017250 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000017251 # We only want to do this on AIX 4.2 and lower, the check
17252 # below for broken collect2 doesn't work under 4.3+
17253 collect2name=`${CC} -print-prog-name=collect2`
17254 if test -f "$collect2name" && \
17255 strings "$collect2name" | grep resolve_lib_name >/dev/null
17256 then
17257 # We have reworked collect2
17258 hardcode_direct_CXX=yes
17259 else
17260 # We have old collect2
17261 hardcode_direct_CXX=unsupported
17262 # It fails to find uninstalled libraries when the uninstalled
17263 # path is not listed in the libpath. Setting hardcode_minus_L
17264 # to unsupported forces relinking
17265 hardcode_minus_L_CXX=yes
17266 hardcode_libdir_flag_spec_CXX='-L$libdir'
17267 hardcode_libdir_separator_CXX=
17268 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017269 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017270 esac
17271 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000017272 if test "$aix_use_runtimelinking" = yes; then
17273 shared_flag="$shared_flag "'${wl}-G'
17274 fi
John Criswell47fdd832003-07-14 16:52:07 +000017275 else
17276 # not using gcc
17277 if test "$host_cpu" = ia64; then
17278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17279 # chokes on -Wl,-G. The following line is correct:
17280 shared_flag='-G'
17281 else
17282 if test "$aix_use_runtimelinking" = yes; then
17283 shared_flag='${wl}-G'
17284 else
17285 shared_flag='${wl}-bM:SRE'
17286 fi
17287 fi
17288 fi
17289
17290 # It seems that -bexpall does not export symbols beginning with
17291 # underscore (_), so it is better to generate a list of symbols to export.
17292 always_export_symbols_CXX=yes
17293 if test "$aix_use_runtimelinking" = yes; then
17294 # Warning - without using the other runtime loading flags (-brtl),
17295 # -berok will link without error, but may produce a broken library.
17296 allow_undefined_flag_CXX='-berok'
17297 # Determine the default libpath from the value encoded in an empty executable.
17298 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017299/* confdefs.h. */
17300_ACEOF
17301cat confdefs.h >>conftest.$ac_ext
17302cat >>conftest.$ac_ext <<_ACEOF
17303/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017304
John Criswell47fdd832003-07-14 16:52:07 +000017305int
17306main ()
17307{
17308
17309 ;
17310 return 0;
17311}
17312_ACEOF
17313rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017314if { (ac_try="$ac_link"
17315case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17318esac
17319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017321 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017322 grep -v '^ *+' conftest.er1 >conftest.err
17323 rm -f conftest.er1
17324 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000017326 (exit $ac_status); } && {
17327 test -z "$ac_cxx_werror_flag" ||
17328 test ! -s conftest.err
17329 } && test -s conftest$ac_exeext &&
17330 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017331
17332aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17333}'`
17334# Check for a 64-bit object if we didn't find anything.
17335if 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; }
17336}'`; fi
17337else
17338 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017339sed 's/^/| /' conftest.$ac_ext >&5
17340
Reid Spencera773bd52006-08-04 18:18:08 +000017341
John Criswell47fdd832003-07-14 16:52:07 +000017342fi
Reid Spencera773bd52006-08-04 18:18:08 +000017343
Scott Michel96dcd2b2007-12-05 21:24:02 +000017344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017345 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017346if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17347
17348 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17349
Reid Spencera773bd52006-08-04 18:18:08 +000017350 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 +000017351 else
17352 if test "$host_cpu" = ia64; then
17353 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17354 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000017355 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 +000017356 else
17357 # Determine the default libpath from the value encoded in an empty executable.
17358 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017359/* confdefs.h. */
17360_ACEOF
17361cat confdefs.h >>conftest.$ac_ext
17362cat >>conftest.$ac_ext <<_ACEOF
17363/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017364
John Criswell47fdd832003-07-14 16:52:07 +000017365int
17366main ()
17367{
17368
17369 ;
17370 return 0;
17371}
17372_ACEOF
17373rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017374if { (ac_try="$ac_link"
17375case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378esac
17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000017386 (exit $ac_status); } && {
17387 test -z "$ac_cxx_werror_flag" ||
17388 test ! -s conftest.err
17389 } && test -s conftest$ac_exeext &&
17390 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017391
17392aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17393}'`
17394# Check for a 64-bit object if we didn't find anything.
17395if 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; }
17396}'`; fi
17397else
17398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017399sed 's/^/| /' conftest.$ac_ext >&5
17400
Reid Spencera773bd52006-08-04 18:18:08 +000017401
John Criswell47fdd832003-07-14 16:52:07 +000017402fi
Reid Spencera773bd52006-08-04 18:18:08 +000017403
Scott Michel96dcd2b2007-12-05 21:24:02 +000017404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017405 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017406if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17407
17408 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17409 # Warning - without using the other run time loading flags,
17410 # -berok will link without error, but may produce a broken library.
17411 no_undefined_flag_CXX=' ${wl}-bernotok'
17412 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000017413 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000017414 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000017415 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017416 # This is similar to how AIX traditionally builds its shared libraries.
17417 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 +000017418 fi
17419 fi
17420 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017421
17422 beos*)
17423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17424 allow_undefined_flag_CXX=unsupported
17425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17426 # support --undefined. This deserves some investigation. FIXME
17427 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17428 else
17429 ld_shlibs_CXX=no
17430 fi
17431 ;;
17432
John Criswell47fdd832003-07-14 16:52:07 +000017433 chorus*)
17434 case $cc_basename in
17435 *)
17436 # FIXME: insert proper C++ library support
17437 ld_shlibs_CXX=no
17438 ;;
17439 esac
17440 ;;
17441
17442 cygwin* | mingw* | pw32*)
17443 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17444 # as there is no search path for DLLs.
17445 hardcode_libdir_flag_spec_CXX='-L$libdir'
17446 allow_undefined_flag_CXX=unsupported
17447 always_export_symbols_CXX=no
17448 enable_shared_with_static_runtimes_CXX=yes
17449
17450 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017451 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 +000017452 # If the export-symbols file already is a .def file (1st line
17453 # is EXPORTS), use it as is; otherwise, prepend...
17454 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17455 cp $export_symbols $output_objdir/$soname.def;
17456 else
17457 echo EXPORTS > $output_objdir/$soname.def;
17458 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000017459 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000017460 $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 +000017461 else
17462 ld_shlibs_CXX=no
17463 fi
17464 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000017465 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000017466 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017467 rhapsody* | darwin1.[012])
17468 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17469 ;;
17470 *) # Darwin 1.3 on
17471 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17472 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17473 else
17474 case ${MACOSX_DEPLOYMENT_TARGET} in
17475 10.[012])
17476 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17477 ;;
17478 10.*)
17479 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17480 ;;
17481 esac
17482 fi
17483 ;;
17484 esac
17485 archive_cmds_need_lc_CXX=no
17486 hardcode_direct_CXX=no
17487 hardcode_automatic_CXX=yes
17488 hardcode_shlibpath_var_CXX=unsupported
17489 whole_archive_flag_spec_CXX=''
17490 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000017491
Reid Spencer2706f8c2004-09-19 23:53:36 +000017492 if test "$GXX" = yes ; then
17493 lt_int_apple_cc_single_mod=no
17494 output_verbose_link_cmd='echo'
17495 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17496 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000017497 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000017498 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000017499 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 +000017500 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017501 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 +000017502 fi
17503 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017504 # 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 +000017505 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017506 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 +000017507 else
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 -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 +000017509 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000017510 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 +000017511 else
Reid Spencera773bd52006-08-04 18:18:08 +000017512 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017513 xlc*)
17514 output_verbose_link_cmd='echo'
17515 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'
17516 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017517 # 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 +000017518 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}'
17519 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 +000017520 ;;
17521 *)
17522 ld_shlibs_CXX=no
17523 ;;
17524 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000017525 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017526 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017527
17528 dgux*)
17529 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017530 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000017531 # FIXME: insert proper C++ library support
17532 ld_shlibs_CXX=no
17533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017534 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000017535 # Green Hills C++ Compiler
17536 # FIXME: insert proper C++ library support
17537 ld_shlibs_CXX=no
17538 ;;
17539 *)
17540 # FIXME: insert proper C++ library support
17541 ld_shlibs_CXX=no
17542 ;;
17543 esac
17544 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017545 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000017546 # C++ shared libraries reported to be fairly broken before switch to ELF
17547 ld_shlibs_CXX=no
17548 ;;
17549 freebsd-elf*)
17550 archive_cmds_need_lc_CXX=no
17551 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017552 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000017553 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17554 # conventions
17555 ld_shlibs_CXX=yes
17556 ;;
17557 gnu*)
17558 ;;
17559 hpux9*)
17560 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17561 hardcode_libdir_separator_CXX=:
17562 export_dynamic_flag_spec_CXX='${wl}-E'
17563 hardcode_direct_CXX=yes
17564 hardcode_minus_L_CXX=yes # Not in the search PATH,
17565 # but as the default
17566 # location of the library.
17567
17568 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017569 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017570 # FIXME: insert proper C++ library support
17571 ld_shlibs_CXX=no
17572 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017573 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000017574 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 +000017575 # Commands to make compiler produce verbose output that lists
17576 # what "hidden" libraries, object files and flags are used when
17577 # linking a shared library.
17578 #
17579 # There doesn't appear to be a way to prevent this compiler from
17580 # explicitly linking system object files so we need to strip them
17581 # from the output so that they don't get included in the library
17582 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000017583 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 +000017584 ;;
17585 *)
17586 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017587 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 +000017588 else
17589 # FIXME: insert proper C++ library support
17590 ld_shlibs_CXX=no
17591 fi
17592 ;;
17593 esac
17594 ;;
17595 hpux10*|hpux11*)
17596 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17598 hardcode_libdir_separator_CXX=:
17599
17600 case $host_cpu in
17601 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017602 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000017603 ;;
17604 *)
John Criswell47fdd832003-07-14 16:52:07 +000017605 export_dynamic_flag_spec_CXX='${wl}-E'
17606 ;;
17607 esac
17608 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017609 case $host_cpu in
17610 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017611 hardcode_direct_CXX=no
17612 hardcode_shlibpath_var_CXX=no
17613 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017614 *)
17615 hardcode_direct_CXX=yes
17616 hardcode_minus_L_CXX=yes # Not in the search PATH,
17617 # but as the default
17618 # location of the library.
17619 ;;
17620 esac
17621
17622 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017623 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017624 # FIXME: insert proper C++ library support
17625 ld_shlibs_CXX=no
17626 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017627 aCC*)
17628 case $host_cpu in
17629 hppa*64*)
17630 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17631 ;;
17632 ia64*)
17633 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 +000017634 ;;
17635 *)
17636 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17637 ;;
17638 esac
17639 # Commands to make compiler produce verbose output that lists
17640 # what "hidden" libraries, object files and flags are used when
17641 # linking a shared library.
17642 #
17643 # There doesn't appear to be a way to prevent this compiler from
17644 # explicitly linking system object files so we need to strip them
17645 # from the output so that they don't get included in the library
17646 # dependencies.
17647 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'
17648 ;;
17649 *)
17650 if test "$GXX" = yes; then
17651 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017652 case $host_cpu in
17653 hppa*64*)
17654 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17655 ;;
17656 ia64*)
17657 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 +000017658 ;;
17659 *)
17660 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'
17661 ;;
17662 esac
17663 fi
17664 else
17665 # FIXME: insert proper C++ library support
17666 ld_shlibs_CXX=no
17667 fi
17668 ;;
17669 esac
17670 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017671 interix3*)
17672 hardcode_direct_CXX=no
17673 hardcode_shlibpath_var_CXX=no
17674 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17675 export_dynamic_flag_spec_CXX='${wl}-E'
17676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17677 # Instead, shared libraries are loaded at an image base (0x10000000 by
17678 # default) and relocated if they conflict, which is a slow very memory
17679 # consuming and fragmenting process. To avoid this, we pick a random,
17680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17682 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'
17683 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'
17684 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017685 irix5* | irix6*)
17686 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017687 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017688 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000017689 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 +000017690
17691 # Archives containing C++ object files must be created using
17692 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17693 # necessary to make sure instantiated templates are included
17694 # in the archive.
17695 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17696 ;;
17697 *)
17698 if test "$GXX" = yes; then
17699 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017700 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 +000017701 else
17702 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'
17703 fi
17704 fi
17705 link_all_deplibs_CXX=yes
17706 ;;
17707 esac
17708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17709 hardcode_libdir_separator_CXX=:
17710 ;;
17711 linux*)
17712 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017713 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017714 # Kuck and Associates, Inc. (KAI) C++ Compiler
17715
17716 # KCC will only create a shared library if the output file
17717 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17718 # to its proper name (with version) after linking.
17719 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'
17720 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'
17721 # Commands to make compiler produce verbose output that lists
17722 # what "hidden" libraries, object files and flags are used when
17723 # linking a shared library.
17724 #
17725 # There doesn't appear to be a way to prevent this compiler from
17726 # explicitly linking system object files so we need to strip them
17727 # from the output so that they don't get included in the library
17728 # dependencies.
17729 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'
17730
17731 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17732 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17733
17734 # Archives containing C++ object files must be created using
17735 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17736 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17737 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017738 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000017739 # Intel C++
17740 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000017741 # version 8.0 and above of icpc choke on multiply defined symbols
17742 # if we add $predep_objects and $postdep_objects, however 7.1 and
17743 # earlier do not add the objects themselves.
17744 case `$CC -V 2>&1` in
17745 *"Version 7."*)
17746 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17747 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'
17748 ;;
17749 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000017750 tmp_idyn=
17751 case $host_cpu in
17752 ia64*) tmp_idyn=' -i_dynamic';;
17753 esac
17754 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17755 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 +000017756 ;;
17757 esac
John Criswell47fdd832003-07-14 16:52:07 +000017758 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000017759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17761 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17762 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017763 pgCC*)
17764 # Portland Group C++ compiler
17765 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17766 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'
17767
17768 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17770 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'
17771 ;;
17772 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017773 # Compaq C++
17774 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17775 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'
17776
17777 runpath_var=LD_RUN_PATH
17778 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17779 hardcode_libdir_separator_CXX=:
17780
17781 # Commands to make compiler produce verbose output that lists
17782 # what "hidden" libraries, object files and flags are used when
17783 # linking a shared library.
17784 #
17785 # There doesn't appear to be a way to prevent this compiler from
17786 # explicitly linking system object files so we need to strip them
17787 # from the output so that they don't get included in the library
17788 # dependencies.
17789 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'
17790 ;;
17791 esac
17792 ;;
17793 lynxos*)
17794 # FIXME: insert proper C++ library support
17795 ld_shlibs_CXX=no
17796 ;;
17797 m88k*)
17798 # FIXME: insert proper C++ library support
17799 ld_shlibs_CXX=no
17800 ;;
17801 mvs*)
17802 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017803 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017804 # FIXME: insert proper C++ library support
17805 ld_shlibs_CXX=no
17806 ;;
17807 *)
17808 # FIXME: insert proper C++ library support
17809 ld_shlibs_CXX=no
17810 ;;
17811 esac
17812 ;;
17813 netbsd*)
17814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17815 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17816 wlarc=
17817 hardcode_libdir_flag_spec_CXX='-R$libdir'
17818 hardcode_direct_CXX=yes
17819 hardcode_shlibpath_var_CXX=no
17820 fi
17821 # Workaround some broken pre-1.5 toolchains
17822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17823 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000017824 openbsd2*)
17825 # C++ shared libraries are fairly broken
17826 ld_shlibs_CXX=no
17827 ;;
17828 openbsd*)
17829 hardcode_direct_CXX=yes
17830 hardcode_shlibpath_var_CXX=no
17831 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17833 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17834 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17835 export_dynamic_flag_spec_CXX='${wl}-E'
17836 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17837 fi
17838 output_verbose_link_cmd='echo'
17839 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017840 osf3*)
17841 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017842 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017843 # Kuck and Associates, Inc. (KAI) C++ Compiler
17844
17845 # KCC will only create a shared library if the output file
17846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17847 # to its proper name (with version) after linking.
17848 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'
17849
17850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17851 hardcode_libdir_separator_CXX=:
17852
17853 # Archives containing C++ object files must be created using
17854 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17855 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17856
17857 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017858 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017859 # Rational C++ 2.4.1
17860 # FIXME: insert proper C++ library support
17861 ld_shlibs_CXX=no
17862 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017863 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017864 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017865 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 +000017866
17867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17868 hardcode_libdir_separator_CXX=:
17869
17870 # Commands to make compiler produce verbose output that lists
17871 # what "hidden" libraries, object files and flags are used when
17872 # linking a shared library.
17873 #
17874 # There doesn't appear to be a way to prevent this compiler from
17875 # explicitly linking system object files so we need to strip them
17876 # from the output so that they don't get included in the library
17877 # dependencies.
17878 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'
17879 ;;
17880 *)
17881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017883 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 +000017884
17885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17886 hardcode_libdir_separator_CXX=:
17887
17888 # Commands to make compiler produce verbose output that lists
17889 # what "hidden" libraries, object files and flags are used when
17890 # linking a shared library.
17891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17892
17893 else
17894 # FIXME: insert proper C++ library support
17895 ld_shlibs_CXX=no
17896 fi
17897 ;;
17898 esac
17899 ;;
17900 osf4* | osf5*)
17901 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017902 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017903 # Kuck and Associates, Inc. (KAI) C++ Compiler
17904
17905 # KCC will only create a shared library if the output file
17906 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17907 # to its proper name (with version) after linking.
17908 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'
17909
17910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17911 hardcode_libdir_separator_CXX=:
17912
17913 # Archives containing C++ object files must be created using
17914 # the KAI C++ compiler.
17915 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17916 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017917 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017918 # Rational C++ 2.4.1
17919 # FIXME: insert proper C++ library support
17920 ld_shlibs_CXX=no
17921 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017922 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000017923 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000017924 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 +000017925 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17926 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000017927 $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 +000017928 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000017929
17930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17931 hardcode_libdir_separator_CXX=:
17932
17933 # Commands to make compiler produce verbose output that lists
17934 # what "hidden" libraries, object files and flags are used when
17935 # linking a shared library.
17936 #
17937 # There doesn't appear to be a way to prevent this compiler from
17938 # explicitly linking system object files so we need to strip them
17939 # from the output so that they don't get included in the library
17940 # dependencies.
17941 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'
17942 ;;
17943 *)
17944 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000017946 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 +000017947
17948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17949 hardcode_libdir_separator_CXX=:
17950
17951 # Commands to make compiler produce verbose output that lists
17952 # what "hidden" libraries, object files and flags are used when
17953 # linking a shared library.
17954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17955
17956 else
17957 # FIXME: insert proper C++ library support
17958 ld_shlibs_CXX=no
17959 fi
17960 ;;
17961 esac
17962 ;;
17963 psos*)
17964 # FIXME: insert proper C++ library support
17965 ld_shlibs_CXX=no
17966 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017967 sunos4*)
17968 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017969 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017970 # Sun C++ 4.x
17971 # FIXME: insert proper C++ library support
17972 ld_shlibs_CXX=no
17973 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017974 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000017975 # Lucid
17976 # FIXME: insert proper C++ library support
17977 ld_shlibs_CXX=no
17978 ;;
17979 *)
17980 # FIXME: insert proper C++ library support
17981 ld_shlibs_CXX=no
17982 ;;
17983 esac
17984 ;;
17985 solaris*)
17986 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017987 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017988 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000017989 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000017990 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000017991 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 +000017992 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 +000017993 $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 +000017994
17995 hardcode_libdir_flag_spec_CXX='-R$libdir'
17996 hardcode_shlibpath_var_CXX=no
17997 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000017998 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000017999 *)
18000 # The C++ compiler is used as linker so we must use $wl
18001 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018002 # linker. We must also pass each convience library through
18003 # to the system linker between allextract/defaultextract.
18004 # The C++ compiler will combine linker options so we
18005 # cannot just pass the convience library names through
18006 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018007 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018008 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 +000018009 ;;
18010 esac
18011 link_all_deplibs_CXX=yes
18012
Reid Spencera773bd52006-08-04 18:18:08 +000018013 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018014
18015 # Archives containing C++ object files must be created using
18016 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18017 # necessary to make sure instantiated templates are included
18018 # in the archive.
18019 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18020 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018021 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018022 # Green Hills C++ Compiler
18023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18024
18025 # The C++ compiler must be used to create the archive.
18026 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18027 ;;
18028 *)
18029 # GNU C++ compiler with Solaris linker
18030 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18031 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18032 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018033 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 +000018034 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18035 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18036
John Criswell47fdd832003-07-14 16:52:07 +000018037 # Commands to make compiler produce verbose output that lists
18038 # what "hidden" libraries, object files and flags are used when
18039 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018040 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018041 else
18042 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18043 # platform.
18044 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 +000018045 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18046 $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 +000018047
18048 # Commands to make compiler produce verbose output that lists
18049 # what "hidden" libraries, object files and flags are used when
18050 # linking a shared library.
18051 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18052 fi
18053
18054 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18055 fi
18056 ;;
18057 esac
18058 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18060 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018061 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018062 hardcode_shlibpath_var_CXX=no
18063 runpath_var='LD_RUN_PATH'
18064
18065 case $cc_basename in
18066 CC*)
18067 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18068 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18069 ;;
18070 *)
18071 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18072 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18073 ;;
18074 esac
18075 ;;
18076 sysv5* | sco3.2v5* | sco5v6*)
18077 # Note: We can NOT use -z defs as we might desire, because we do not
18078 # link with -lc, and that would cause any symbols used from libc to
18079 # always be unresolved, which means just about no library would
18080 # ever link correctly. If we're not using GNU ld we use -z text
18081 # though, which does catch some bad symbols but isn't as heavy-handed
18082 # as -z defs.
18083 # For security reasons, it is highly recommended that you always
18084 # use absolute paths for naming shared libraries, and exclude the
18085 # DT_RUNPATH tag from executables and libraries. But doing so
18086 # requires that you compile everything twice, which is a pain.
18087 # So that behaviour is only enabled if SCOABSPATH is set to a
18088 # non-empty value in the environment. Most likely only useful for
18089 # creating official distributions of packages.
18090 # This is a hack until libtool officially supports absolute path
18091 # names for shared libraries.
18092 no_undefined_flag_CXX='${wl}-z,text'
18093 allow_undefined_flag_CXX='${wl}-z,nodefs'
18094 archive_cmds_need_lc_CXX=no
18095 hardcode_shlibpath_var_CXX=no
18096 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18097 hardcode_libdir_separator_CXX=':'
18098 link_all_deplibs_CXX=yes
18099 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18100 runpath_var='LD_RUN_PATH'
18101
18102 case $cc_basename in
18103 CC*)
18104 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18106 ;;
18107 *)
18108 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18109 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18110 ;;
18111 esac
John Criswell47fdd832003-07-14 16:52:07 +000018112 ;;
18113 tandem*)
18114 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018115 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018116 # NonStop-UX NCC 3.20
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 ;;
18124 esac
18125 ;;
18126 vxworks*)
18127 # FIXME: insert proper C++ library support
18128 ld_shlibs_CXX=no
18129 ;;
18130 *)
18131 # FIXME: insert proper C++ library support
18132 ld_shlibs_CXX=no
18133 ;;
18134esac
Reid Spencera773bd52006-08-04 18:18:08 +000018135{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18136echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018137test "$ld_shlibs_CXX" = no && can_build_shared=no
18138
18139GCC_CXX="$GXX"
18140LD_CXX="$LD"
18141
John Criswell47fdd832003-07-14 16:52:07 +000018142
18143cat > conftest.$ac_ext <<EOF
18144class Foo
18145{
18146public:
18147 Foo (void) { a = 0; }
18148private:
18149 int a;
18150};
18151EOF
18152
18153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18154 (eval $ac_compile) 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; then
18158 # Parse the compiler output and extract the necessary
18159 # objects, libraries and library flags.
18160
18161 # Sentinel used to keep track of whether or not we are before
18162 # the conftest object file.
18163 pre_test_object_deps_done=no
18164
18165 # The `*' in the case matches for architectures that use `case' in
18166 # $output_verbose_cmd can trigger glob expansion during the loop
18167 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000018168 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000018169
18170 for p in `eval $output_verbose_link_cmd`; do
18171 case $p in
18172
18173 -L* | -R* | -l*)
18174 # Some compilers place space between "-{L,R}" and the path.
18175 # Remove the space.
18176 if test $p = "-L" \
18177 || test $p = "-R"; then
18178 prev=$p
18179 continue
18180 else
18181 prev=
18182 fi
18183
18184 if test "$pre_test_object_deps_done" = no; then
18185 case $p in
18186 -L* | -R*)
18187 # Internal compiler library paths should come after those
18188 # provided the user. The postdeps already come after the
18189 # user supplied libs so there is no need to process them.
18190 if test -z "$compiler_lib_search_path_CXX"; then
18191 compiler_lib_search_path_CXX="${prev}${p}"
18192 else
18193 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18194 fi
18195 ;;
18196 # The "-l" case would never come before the object being
18197 # linked, so don't bother handling this case.
18198 esac
18199 else
18200 if test -z "$postdeps_CXX"; then
18201 postdeps_CXX="${prev}${p}"
18202 else
18203 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18204 fi
18205 fi
18206 ;;
18207
18208 *.$objext)
18209 # This assumes that the test object file only shows up
18210 # once in the compiler output.
18211 if test "$p" = "conftest.$objext"; then
18212 pre_test_object_deps_done=yes
18213 continue
18214 fi
18215
18216 if test "$pre_test_object_deps_done" = no; then
18217 if test -z "$predep_objects_CXX"; then
18218 predep_objects_CXX="$p"
18219 else
18220 predep_objects_CXX="$predep_objects_CXX $p"
18221 fi
18222 else
18223 if test -z "$postdep_objects_CXX"; then
18224 postdep_objects_CXX="$p"
18225 else
18226 postdep_objects_CXX="$postdep_objects_CXX $p"
18227 fi
18228 fi
18229 ;;
18230
18231 *) ;; # Ignore the rest.
18232
18233 esac
18234 done
18235
18236 # Clean up.
18237 rm -f a.out a.exe
18238else
18239 echo "libtool.m4: error: problem compiling CXX test program"
18240fi
18241
18242$rm -f confest.$objext
18243
Reid Spencera773bd52006-08-04 18:18:08 +000018244# PORTME: override above test on systems where it is broken
18245case $host_os in
18246interix3*)
18247 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18248 # hack all around it, let's just trust "g++" to DTRT.
18249 predep_objects_CXX=
18250 postdep_objects_CXX=
18251 postdeps_CXX=
18252 ;;
18253
18254solaris*)
18255 case $cc_basename in
18256 CC*)
18257 # Adding this requires a known-good setup of shared libraries for
18258 # Sun compiler versions before 5.6, else PIC objects from an old
18259 # archive will be linked into the output, leading to subtle bugs.
18260 postdeps_CXX='-lCstd -lCrun'
18261 ;;
18262 esac
18263 ;;
18264esac
18265
18266
John Criswell47fdd832003-07-14 16:52:07 +000018267case " $postdeps_CXX " in
18268*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18269esac
18270
18271lt_prog_compiler_wl_CXX=
18272lt_prog_compiler_pic_CXX=
18273lt_prog_compiler_static_CXX=
18274
Reid Spencera773bd52006-08-04 18:18:08 +000018275{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18276echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018277
18278 # C++ specific cases for pic, static, wl, etc.
18279 if test "$GXX" = yes; then
18280 lt_prog_compiler_wl_CXX='-Wl,'
18281 lt_prog_compiler_static_CXX='-static'
18282
18283 case $host_os in
18284 aix*)
18285 # All AIX code is PIC.
18286 if test "$host_cpu" = ia64; then
18287 # AIX 5 now supports IA64 processor
18288 lt_prog_compiler_static_CXX='-Bstatic'
18289 fi
18290 ;;
18291 amigaos*)
18292 # FIXME: we need at least 68020 code to build shared libraries, but
18293 # adding the `-m68020' flag to GCC prevents building anything better,
18294 # like `-m68040'.
18295 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18296 ;;
18297 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18298 # PIC is the default for these OSes.
18299 ;;
18300 mingw* | os2* | pw32*)
18301 # This hack is so that the source file can tell whether it is being
18302 # built for inclusion in a dll (and should export symbols for example).
18303 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18304 ;;
18305 darwin* | rhapsody*)
18306 # PIC is the default on this platform
18307 # Common symbols not allowed in MH_DYLIB files
18308 lt_prog_compiler_pic_CXX='-fno-common'
18309 ;;
18310 *djgpp*)
18311 # DJGPP does not support shared libraries at all
18312 lt_prog_compiler_pic_CXX=
18313 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018314 interix3*)
18315 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18316 # Instead, we relocate shared libraries at runtime.
18317 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018318 sysv4*MP*)
18319 if test -d /usr/nec; then
18320 lt_prog_compiler_pic_CXX=-Kconform_pic
18321 fi
18322 ;;
18323 hpux*)
18324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18325 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000018326 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018327 hppa*64*|ia64*)
18328 ;;
18329 *)
18330 lt_prog_compiler_pic_CXX='-fPIC'
18331 ;;
18332 esac
18333 ;;
18334 *)
18335 lt_prog_compiler_pic_CXX='-fPIC'
18336 ;;
18337 esac
18338 else
18339 case $host_os in
18340 aix4* | aix5*)
18341 # All AIX code is PIC.
18342 if test "$host_cpu" = ia64; then
18343 # AIX 5 now supports IA64 processor
18344 lt_prog_compiler_static_CXX='-Bstatic'
18345 else
18346 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18347 fi
18348 ;;
18349 chorus*)
18350 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018351 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000018352 # Green Hills C++ Compiler
18353 # _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"
18354 ;;
18355 esac
18356 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018357 darwin*)
18358 # PIC is the default on this platform
18359 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000018360 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018361 xlc*)
18362 lt_prog_compiler_pic_CXX='-qnocommon'
18363 lt_prog_compiler_wl_CXX='-Wl,'
18364 ;;
18365 esac
18366 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018367 dgux*)
18368 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018369 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018370 lt_prog_compiler_pic_CXX='-KPIC'
18371 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018372 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018373 # Green Hills C++ Compiler
18374 lt_prog_compiler_pic_CXX='-pic'
18375 ;;
18376 *)
18377 ;;
18378 esac
18379 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018380 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018381 # FreeBSD uses GNU C++
18382 ;;
18383 hpux9* | hpux10* | hpux11*)
18384 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018385 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018386 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018387 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000018388 if test "$host_cpu" != ia64; then
18389 lt_prog_compiler_pic_CXX='+Z'
18390 fi
18391 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018392 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018393 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018394 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18395 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018396 hppa*64*|ia64*)
18397 # +Z the default
18398 ;;
18399 *)
18400 lt_prog_compiler_pic_CXX='+Z'
18401 ;;
18402 esac
18403 ;;
18404 *)
18405 ;;
18406 esac
18407 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018408 interix*)
18409 # This is c89, which is MS Visual C++ (no shared libs)
18410 # Anyone wants to do a port?
18411 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018412 irix5* | irix6* | nonstopux*)
18413 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018414 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018415 lt_prog_compiler_wl_CXX='-Wl,'
18416 lt_prog_compiler_static_CXX='-non_shared'
18417 # CC pic flag -KPIC is the default.
18418 ;;
18419 *)
18420 ;;
18421 esac
18422 ;;
18423 linux*)
18424 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018425 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018426 # KAI C++ Compiler
18427 lt_prog_compiler_wl_CXX='--backend -Wl,'
18428 lt_prog_compiler_pic_CXX='-fPIC'
18429 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018430 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018431 # Intel C++
18432 lt_prog_compiler_wl_CXX='-Wl,'
18433 lt_prog_compiler_pic_CXX='-KPIC'
18434 lt_prog_compiler_static_CXX='-static'
18435 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018436 pgCC*)
18437 # Portland Group C++ compiler.
18438 lt_prog_compiler_wl_CXX='-Wl,'
18439 lt_prog_compiler_pic_CXX='-fpic'
18440 lt_prog_compiler_static_CXX='-Bstatic'
18441 ;;
18442 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018443 # Compaq C++
18444 # Make sure the PIC flag is empty. It appears that all Alpha
18445 # Linux and Compaq Tru64 Unix objects are PIC.
18446 lt_prog_compiler_pic_CXX=
18447 lt_prog_compiler_static_CXX='-non_shared'
18448 ;;
18449 *)
18450 ;;
18451 esac
18452 ;;
18453 lynxos*)
18454 ;;
18455 m88k*)
18456 ;;
18457 mvs*)
18458 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018459 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018460 lt_prog_compiler_pic_CXX='-W c,exportall'
18461 ;;
18462 *)
18463 ;;
18464 esac
18465 ;;
18466 netbsd*)
18467 ;;
18468 osf3* | osf4* | osf5*)
18469 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018470 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018471 lt_prog_compiler_wl_CXX='--backend -Wl,'
18472 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018473 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018474 # Rational C++ 2.4.1
18475 lt_prog_compiler_pic_CXX='-pic'
18476 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018477 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018478 # Digital/Compaq C++
18479 lt_prog_compiler_wl_CXX='-Wl,'
18480 # Make sure the PIC flag is empty. It appears that all Alpha
18481 # Linux and Compaq Tru64 Unix objects are PIC.
18482 lt_prog_compiler_pic_CXX=
18483 lt_prog_compiler_static_CXX='-non_shared'
18484 ;;
18485 *)
18486 ;;
18487 esac
18488 ;;
18489 psos*)
18490 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018491 solaris*)
18492 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018493 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018494 # Sun C++ 4.2, 5.x and Centerline C++
18495 lt_prog_compiler_pic_CXX='-KPIC'
18496 lt_prog_compiler_static_CXX='-Bstatic'
18497 lt_prog_compiler_wl_CXX='-Qoption ld '
18498 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018499 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018500 # Green Hills C++ Compiler
18501 lt_prog_compiler_pic_CXX='-PIC'
18502 ;;
18503 *)
18504 ;;
18505 esac
18506 ;;
18507 sunos4*)
18508 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018509 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018510 # Sun C++ 4.x
18511 lt_prog_compiler_pic_CXX='-pic'
18512 lt_prog_compiler_static_CXX='-Bstatic'
18513 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018514 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018515 # Lucid
18516 lt_prog_compiler_pic_CXX='-pic'
18517 ;;
18518 *)
18519 ;;
18520 esac
18521 ;;
18522 tandem*)
18523 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018524 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018525 # NonStop-UX NCC 3.20
18526 lt_prog_compiler_pic_CXX='-KPIC'
18527 ;;
18528 *)
18529 ;;
18530 esac
18531 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018532 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18533 case $cc_basename in
18534 CC*)
18535 lt_prog_compiler_wl_CXX='-Wl,'
18536 lt_prog_compiler_pic_CXX='-KPIC'
18537 lt_prog_compiler_static_CXX='-Bstatic'
18538 ;;
18539 esac
John Criswell47fdd832003-07-14 16:52:07 +000018540 ;;
18541 vxworks*)
18542 ;;
18543 *)
18544 lt_prog_compiler_can_build_shared_CXX=no
18545 ;;
18546 esac
18547 fi
18548
Reid Spencera773bd52006-08-04 18:18:08 +000018549{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18550echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018551
18552#
18553# Check to make sure the PIC flag actually works.
18554#
18555if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018556
Reid Spencera773bd52006-08-04 18:18:08 +000018557{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18558echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018559if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561else
18562 lt_prog_compiler_pic_works_CXX=no
18563 ac_outfile=conftest.$ac_objext
18564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18565 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18566 # Insert the option either (1) after the last *FLAGS variable, or
18567 # (2) before a word containing "conftest.", or (3) at the end.
18568 # Note that $ac_compile itself does not contain backslashes and begins
18569 # with a dollar sign (not a hyphen), so the echo should work correctly.
18570 # The option is referenced via a variable to avoid confusing sed.
18571 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18574 -e 's:$: $lt_compiler_flag:'`
Duncan Sands1eff7042007-12-10 17:43:13 +000018575 (eval echo "\"\$as_me:18575: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018576 (eval "$lt_compile" 2>conftest.err)
18577 ac_status=$?
18578 cat conftest.err >&5
Duncan Sands1eff7042007-12-10 17:43:13 +000018579 echo "$as_me:18579: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018580 if (exit $ac_status) && test -s "$ac_outfile"; then
18581 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000018582 # So say no if there are warnings other than the usual output.
18583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018586 lt_prog_compiler_pic_works_CXX=yes
18587 fi
18588 fi
18589 $rm conftest*
18590
18591fi
Reid Spencera773bd52006-08-04 18:18:08 +000018592{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18593echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018594
18595if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18596 case $lt_prog_compiler_pic_CXX in
18597 "" | " "*) ;;
18598 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18599 esac
18600else
18601 lt_prog_compiler_pic_CXX=
18602 lt_prog_compiler_can_build_shared_CXX=no
18603fi
18604
18605fi
Reid Spencera773bd52006-08-04 18:18:08 +000018606case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000018607 # For platforms which do not support PIC, -DPIC is meaningless:
18608 *djgpp*)
18609 lt_prog_compiler_pic_CXX=
18610 ;;
18611 *)
18612 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18613 ;;
18614esac
18615
Reid Spencera773bd52006-08-04 18:18:08 +000018616#
18617# Check to make sure the static flag actually works.
18618#
18619wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18620{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18621echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18622if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18624else
18625 lt_prog_compiler_static_works_CXX=no
18626 save_LDFLAGS="$LDFLAGS"
18627 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18628 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18630 # The linker can only warn and ignore the option if not recognized
18631 # So say no if there are warnings
18632 if test -s conftest.err; then
18633 # Append any errors to the config.log.
18634 cat conftest.err 1>&5
18635 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18637 if diff conftest.exp conftest.er2 >/dev/null; then
18638 lt_prog_compiler_static_works_CXX=yes
18639 fi
18640 else
18641 lt_prog_compiler_static_works_CXX=yes
18642 fi
18643 fi
18644 $rm conftest*
18645 LDFLAGS="$save_LDFLAGS"
18646
18647fi
18648{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18649echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18650
18651if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18652 :
18653else
18654 lt_prog_compiler_static_CXX=
18655fi
18656
18657
18658{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18659echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018660if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18662else
18663 lt_cv_prog_compiler_c_o_CXX=no
18664 $rm -r conftest 2>/dev/null
18665 mkdir conftest
18666 cd conftest
18667 mkdir out
18668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18669
John Criswell47fdd832003-07-14 16:52:07 +000018670 lt_compiler_flag="-o out/conftest2.$ac_objext"
18671 # Insert the option either (1) after the last *FLAGS variable, or
18672 # (2) before a word containing "conftest.", or (3) at the end.
18673 # Note that $ac_compile itself does not contain backslashes and begins
18674 # with a dollar sign (not a hyphen), so the echo should work correctly.
18675 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18678 -e 's:$: $lt_compiler_flag:'`
Duncan Sands1eff7042007-12-10 17:43:13 +000018679 (eval echo "\"\$as_me:18679: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018680 (eval "$lt_compile" 2>out/conftest.err)
18681 ac_status=$?
18682 cat out/conftest.err >&5
Duncan Sands1eff7042007-12-10 17:43:13 +000018683 echo "$as_me:18683: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018684 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18685 then
18686 # The compiler can only warn and ignore the option if not recognized
18687 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000018688 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18689 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18690 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018691 lt_cv_prog_compiler_c_o_CXX=yes
18692 fi
18693 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018694 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018695 $rm conftest*
18696 # SGI C++ compiler will create directory out/ii_files/ for
18697 # template instantiation
18698 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18699 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018700 cd ..
18701 rmdir conftest
18702 $rm conftest*
18703
18704fi
Reid Spencera773bd52006-08-04 18:18:08 +000018705{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18706echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018707
18708
18709hard_links="nottested"
18710if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18711 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000018712 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18713echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018714 hard_links=yes
18715 $rm conftest*
18716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18717 touch conftest.a
18718 ln conftest.a conftest.b 2>&5 || hard_links=no
18719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000018720 { echo "$as_me:$LINENO: result: $hard_links" >&5
18721echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018722 if test "$hard_links" = no; then
18723 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18724echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18725 need_locks=warn
18726 fi
18727else
18728 need_locks=no
18729fi
18730
Reid Spencera773bd52006-08-04 18:18:08 +000018731{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18732echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018733
18734 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18735 case $host_os in
18736 aix4* | aix5*)
18737 # If we're using GNU nm, then we don't want the "-C" option.
18738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18739 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18740 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'
18741 else
18742 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'
18743 fi
18744 ;;
18745 pw32*)
18746 export_symbols_cmds_CXX="$ltdll_cmds"
18747 ;;
18748 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000018749 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 +000018750 ;;
18751 *)
18752 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18753 ;;
18754 esac
18755
Reid Spencera773bd52006-08-04 18:18:08 +000018756{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18757echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018758test "$ld_shlibs_CXX" = no && can_build_shared=no
18759
John Criswell47fdd832003-07-14 16:52:07 +000018760#
18761# Do we need to explicitly link libc?
18762#
18763case "x$archive_cmds_need_lc_CXX" in
18764x|xyes)
18765 # Assume -lc should be added
18766 archive_cmds_need_lc_CXX=yes
18767
18768 if test "$enable_shared" = yes && test "$GCC" = yes; then
18769 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018770 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000018771 # FIXME: we may have to deal with multi-command sequences.
18772 ;;
18773 '$CC '*)
18774 # Test whether the compiler implicitly links with -lc since on some
18775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18776 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000018777 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18778echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018779 $rm conftest*
18780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18781
18782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18783 (eval $ac_compile) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } 2>conftest.err; then
18787 soname=conftest
18788 lib=conftest
18789 libobjs=conftest.$ac_objext
18790 deplibs=
18791 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000018792 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000018793 compiler_flags=-v
18794 linker_flags=-v
18795 verstring=
18796 output_objdir=.
18797 libname=conftest
18798 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18799 allow_undefined_flag_CXX=
18800 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18801 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }
18805 then
18806 archive_cmds_need_lc_CXX=no
18807 else
18808 archive_cmds_need_lc_CXX=yes
18809 fi
18810 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18811 else
18812 cat conftest.err 1>&5
18813 fi
18814 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000018815 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18816echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018817 ;;
18818 esac
18819 fi
18820 ;;
18821esac
18822
Reid Spencera773bd52006-08-04 18:18:08 +000018823{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18824echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018825library_names_spec=
18826libname_spec='lib$name'
18827soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000018828shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000018829postinstall_cmds=
18830postuninstall_cmds=
18831finish_cmds=
18832finish_eval=
18833shlibpath_var=
18834shlibpath_overrides_runpath=unknown
18835version_type=none
18836dynamic_linker="$host_os ld.so"
18837sys_lib_dlsearch_path_spec="/lib /usr/lib"
18838if test "$GCC" = yes; then
18839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18840 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18841 # if the path contains ";" then we assume it to be the separator
18842 # otherwise default to the standard path separator (i.e. ":") - it is
18843 # assumed that no part of a normal pathname contains ";" but that should
18844 # okay in the real world where ";" in dirpaths is itself problematic.
18845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18846 else
18847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18848 fi
18849else
18850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18851fi
18852need_lib_prefix=unknown
18853hardcode_into_libs=no
18854
18855# when you set need_version to no, make sure it does not cause -set_version
18856# flags to be left without arguments
18857need_version=unknown
18858
18859case $host_os in
18860aix3*)
18861 version_type=linux
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18863 shlibpath_var=LIBPATH
18864
18865 # AIX 3 has no versioning support, so we append a major version to the name.
18866 soname_spec='${libname}${release}${shared_ext}$major'
18867 ;;
18868
18869aix4* | aix5*)
18870 version_type=linux
18871 need_lib_prefix=no
18872 need_version=no
18873 hardcode_into_libs=yes
18874 if test "$host_cpu" = ia64; then
18875 # AIX 5 supports IA64
18876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18877 shlibpath_var=LD_LIBRARY_PATH
18878 else
18879 # With GCC up to 2.95.x, collect2 would create an import file
18880 # for dependence libraries. The import file would start with
18881 # the line `#! .'. This would cause the generated library to
18882 # depend on `.', always an invalid library. This was fixed in
18883 # development snapshots of GCC prior to 3.0.
18884 case $host_os in
18885 aix4 | aix4.[01] | aix4.[01].*)
18886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18887 echo ' yes '
18888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18889 :
18890 else
18891 can_build_shared=no
18892 fi
18893 ;;
18894 esac
18895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18896 # soname into executable. Probably we can add versioning support to
18897 # collect2, so additional links can be useful in future.
18898 if test "$aix_use_runtimelinking" = yes; then
18899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18900 # instead of lib<name>.a to let people know that these are not
18901 # typical AIX shared libraries.
18902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18903 else
18904 # We preserve .a as extension for shared libraries through AIX4.2
18905 # and later when we are not doing run time linking.
18906 library_names_spec='${libname}${release}.a $libname.a'
18907 soname_spec='${libname}${release}${shared_ext}$major'
18908 fi
18909 shlibpath_var=LIBPATH
18910 fi
18911 ;;
18912
18913amigaos*)
18914 library_names_spec='$libname.ixlibrary $libname.a'
18915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018916 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 +000018917 ;;
18918
18919beos*)
18920 library_names_spec='${libname}${shared_ext}'
18921 dynamic_linker="$host_os ld.so"
18922 shlibpath_var=LIBRARY_PATH
18923 ;;
18924
Reid Spencer2706f8c2004-09-19 23:53:36 +000018925bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000018926 version_type=linux
18927 need_version=no
18928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929 soname_spec='${libname}${release}${shared_ext}$major'
18930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18931 shlibpath_var=LD_LIBRARY_PATH
18932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18934 # the default ld.so.conf also contains /usr/contrib/lib and
18935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18936 # libtool to hard-code these into programs
18937 ;;
18938
18939cygwin* | mingw* | pw32*)
18940 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000018941 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000018942 need_version=no
18943 need_lib_prefix=no
18944
18945 case $GCC,$host_os in
18946 yes,cygwin* | yes,mingw* | yes,pw32*)
18947 library_names_spec='$libname.dll.a'
18948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000018949 postinstall_cmds='base_file=`basename \${file}`~
18950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18951 dldir=$destdir/`dirname \$dlpath`~
18952 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000018953 $install_prog $dir/$dlname \$dldir/$dlname~
18954 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000018955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18956 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000018957 $rm \$dlpath'
18958 shlibpath_overrides_runpath=yes
18959
18960 case $host_os in
18961 cygwin*)
18962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18963 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 +000018964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000018965 ;;
18966 mingw*)
18967 # MinGW DLLs use traditional 'lib' prefix
18968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18970 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18971 # It is most probably a Windows format PATH printed by
18972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18973 # path with ; separators, and with drive letters. We can handle the
18974 # drive letters (cygwin fileutils understands them), so leave them,
18975 # especially as we might pass files found there to a mingw objdump,
18976 # which wouldn't understand a cygwinified path. Ahh.
18977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18978 else
18979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18980 fi
18981 ;;
18982 pw32*)
18983 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000018984 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 +000018985 ;;
18986 esac
18987 ;;
18988
18989 *)
18990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18991 ;;
18992 esac
18993 dynamic_linker='Win32 ld.exe'
18994 # FIXME: first we should search . and the directory the executable is in
18995 shlibpath_var=PATH
18996 ;;
18997
18998darwin* | rhapsody*)
18999 dynamic_linker="$host_os dyld"
19000 version_type=darwin
19001 need_lib_prefix=no
19002 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019003 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019004 soname_spec='${libname}${release}${major}$shared_ext'
19005 shlibpath_overrides_runpath=yes
19006 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000019007 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000019008 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019009 if test "$GCC" = yes; then
19010 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"`
19011 else
19012 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019013 fi
19014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19015 ;;
19016
19017dgux*)
19018 version_type=linux
19019 need_lib_prefix=no
19020 need_version=no
19021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19022 soname_spec='${libname}${release}${shared_ext}$major'
19023 shlibpath_var=LD_LIBRARY_PATH
19024 ;;
19025
19026freebsd1*)
19027 dynamic_linker=no
19028 ;;
19029
Reid Spencer2706f8c2004-09-19 23:53:36 +000019030kfreebsd*-gnu)
19031 version_type=linux
19032 need_lib_prefix=no
19033 need_version=no
19034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19035 soname_spec='${libname}${release}${shared_ext}$major'
19036 shlibpath_var=LD_LIBRARY_PATH
19037 shlibpath_overrides_runpath=no
19038 hardcode_into_libs=yes
19039 dynamic_linker='GNU ld.so'
19040 ;;
19041
Reid Spencera773bd52006-08-04 18:18:08 +000019042freebsd* | dragonfly*)
19043 # DragonFly does not have aout. When/if they implement a new
19044 # versioning mechanism, adjust this.
19045 if test -x /usr/bin/objformat; then
19046 objformat=`/usr/bin/objformat`
19047 else
19048 case $host_os in
19049 freebsd[123]*) objformat=aout ;;
19050 *) objformat=elf ;;
19051 esac
19052 fi
John Criswell47fdd832003-07-14 16:52:07 +000019053 version_type=freebsd-$objformat
19054 case $version_type in
19055 freebsd-elf*)
19056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19057 need_version=no
19058 need_lib_prefix=no
19059 ;;
19060 freebsd-*)
19061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19062 need_version=yes
19063 ;;
19064 esac
19065 shlibpath_var=LD_LIBRARY_PATH
19066 case $host_os in
19067 freebsd2*)
19068 shlibpath_overrides_runpath=yes
19069 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019070 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019071 shlibpath_overrides_runpath=yes
19072 hardcode_into_libs=yes
19073 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019074 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19075 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019076 shlibpath_overrides_runpath=no
19077 hardcode_into_libs=yes
19078 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019079 freebsd*) # from 4.6 on
19080 shlibpath_overrides_runpath=yes
19081 hardcode_into_libs=yes
19082 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019083 esac
19084 ;;
19085
19086gnu*)
19087 version_type=linux
19088 need_lib_prefix=no
19089 need_version=no
19090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19091 soname_spec='${libname}${release}${shared_ext}$major'
19092 shlibpath_var=LD_LIBRARY_PATH
19093 hardcode_into_libs=yes
19094 ;;
19095
19096hpux9* | hpux10* | hpux11*)
19097 # Give a soname corresponding to the major version so that dld.sl refuses to
19098 # link against other versions.
19099 version_type=sunos
19100 need_lib_prefix=no
19101 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019102 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019103 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019104 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019105 hardcode_into_libs=yes
19106 dynamic_linker="$host_os dld.so"
19107 shlibpath_var=LD_LIBRARY_PATH
19108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19110 soname_spec='${libname}${release}${shared_ext}$major'
19111 if test "X$HPUX_IA64_MODE" = X32; then
19112 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19113 else
19114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19115 fi
19116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19117 ;;
19118 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019119 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019120 hardcode_into_libs=yes
19121 dynamic_linker="$host_os dld.sl"
19122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19128 ;;
19129 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019130 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019131 dynamic_linker="$host_os dld.sl"
19132 shlibpath_var=SHLIB_PATH
19133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19135 soname_spec='${libname}${release}${shared_ext}$major'
19136 ;;
19137 esac
19138 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19139 postinstall_cmds='chmod 555 $lib'
19140 ;;
19141
Reid Spencera773bd52006-08-04 18:18:08 +000019142interix3*)
19143 version_type=linux
19144 need_lib_prefix=no
19145 need_version=no
19146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19147 soname_spec='${libname}${release}${shared_ext}$major'
19148 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19149 shlibpath_var=LD_LIBRARY_PATH
19150 shlibpath_overrides_runpath=no
19151 hardcode_into_libs=yes
19152 ;;
19153
John Criswell47fdd832003-07-14 16:52:07 +000019154irix5* | irix6* | nonstopux*)
19155 case $host_os in
19156 nonstopux*) version_type=nonstopux ;;
19157 *)
19158 if test "$lt_cv_prog_gnu_ld" = yes; then
19159 version_type=linux
19160 else
19161 version_type=irix
19162 fi ;;
19163 esac
19164 need_lib_prefix=no
19165 need_version=no
19166 soname_spec='${libname}${release}${shared_ext}$major'
19167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19168 case $host_os in
19169 irix5* | nonstopux*)
19170 libsuff= shlibsuff=
19171 ;;
19172 *)
19173 case $LD in # libtool.m4 will add one of these switches to LD
19174 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19175 libsuff= shlibsuff= libmagic=32-bit;;
19176 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19177 libsuff=32 shlibsuff=N32 libmagic=N32;;
19178 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19179 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19180 *) libsuff= shlibsuff= libmagic=never-match;;
19181 esac
19182 ;;
19183 esac
19184 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19185 shlibpath_overrides_runpath=no
19186 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19187 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19188 hardcode_into_libs=yes
19189 ;;
19190
19191# No shared lib support for Linux oldld, aout, or coff.
19192linux*oldld* | linux*aout* | linux*coff*)
19193 dynamic_linker=no
19194 ;;
19195
19196# This must be Linux ELF.
19197linux*)
19198 version_type=linux
19199 need_lib_prefix=no
19200 need_version=no
19201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19202 soname_spec='${libname}${release}${shared_ext}$major'
19203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19204 shlibpath_var=LD_LIBRARY_PATH
19205 shlibpath_overrides_runpath=no
19206 # This implies no fast_install, which is unacceptable.
19207 # Some rework will be needed to allow for fast_install
19208 # before this can be enabled.
19209 hardcode_into_libs=yes
19210
Reid Spencer2706f8c2004-09-19 23:53:36 +000019211 # Append ld.so.conf contents to the search path
19212 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000019213 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 +000019214 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19215 fi
19216
John Criswell47fdd832003-07-14 16:52:07 +000019217 # We used to test for /lib/ld.so.1 and disable shared libraries on
19218 # powerpc, because MkLinux only supported shared libraries with the
19219 # GNU dynamic linker. Since this was broken with cross compilers,
19220 # most powerpc-linux boxes support dynamic linking these days and
19221 # people can always --disable-shared, the test was removed, and we
19222 # assume the GNU/Linux dynamic linker is in use.
19223 dynamic_linker='GNU/Linux ld.so'
19224 ;;
19225
Reid Spencer2706f8c2004-09-19 23:53:36 +000019226knetbsd*-gnu)
19227 version_type=linux
19228 need_lib_prefix=no
19229 need_version=no
19230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19231 soname_spec='${libname}${release}${shared_ext}$major'
19232 shlibpath_var=LD_LIBRARY_PATH
19233 shlibpath_overrides_runpath=no
19234 hardcode_into_libs=yes
19235 dynamic_linker='GNU ld.so'
19236 ;;
19237
John Criswell47fdd832003-07-14 16:52:07 +000019238netbsd*)
19239 version_type=sunos
19240 need_lib_prefix=no
19241 need_version=no
19242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19245 dynamic_linker='NetBSD (a.out) ld.so'
19246 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000019248 soname_spec='${libname}${release}${shared_ext}$major'
19249 dynamic_linker='NetBSD ld.elf_so'
19250 fi
19251 shlibpath_var=LD_LIBRARY_PATH
19252 shlibpath_overrides_runpath=yes
19253 hardcode_into_libs=yes
19254 ;;
19255
19256newsos6)
19257 version_type=linux
19258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19259 shlibpath_var=LD_LIBRARY_PATH
19260 shlibpath_overrides_runpath=yes
19261 ;;
19262
Reid Spencer2706f8c2004-09-19 23:53:36 +000019263nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000019264 version_type=linux
19265 need_lib_prefix=no
19266 need_version=no
19267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19268 soname_spec='${libname}${release}${shared_ext}$major'
19269 shlibpath_var=LD_LIBRARY_PATH
19270 shlibpath_overrides_runpath=yes
19271 ;;
19272
19273openbsd*)
19274 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000019275 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019276 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000019277 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19278 case $host_os in
19279 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19280 *) need_version=no ;;
19281 esac
John Criswell47fdd832003-07-14 16:52:07 +000019282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19284 shlibpath_var=LD_LIBRARY_PATH
19285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19286 case $host_os in
19287 openbsd2.[89] | openbsd2.[89].*)
19288 shlibpath_overrides_runpath=no
19289 ;;
19290 *)
19291 shlibpath_overrides_runpath=yes
19292 ;;
19293 esac
19294 else
19295 shlibpath_overrides_runpath=yes
19296 fi
19297 ;;
19298
19299os2*)
19300 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019301 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019302 need_lib_prefix=no
19303 library_names_spec='$libname${shared_ext} $libname.a'
19304 dynamic_linker='OS/2 ld.exe'
19305 shlibpath_var=LIBPATH
19306 ;;
19307
19308osf3* | osf4* | osf5*)
19309 version_type=osf
19310 need_lib_prefix=no
19311 need_version=no
19312 soname_spec='${libname}${release}${shared_ext}$major'
19313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19314 shlibpath_var=LD_LIBRARY_PATH
19315 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19316 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19317 ;;
19318
John Criswell47fdd832003-07-14 16:52:07 +000019319solaris*)
19320 version_type=linux
19321 need_lib_prefix=no
19322 need_version=no
19323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19324 soname_spec='${libname}${release}${shared_ext}$major'
19325 shlibpath_var=LD_LIBRARY_PATH
19326 shlibpath_overrides_runpath=yes
19327 hardcode_into_libs=yes
19328 # ldd complains unless libraries are executable
19329 postinstall_cmds='chmod +x $lib'
19330 ;;
19331
19332sunos4*)
19333 version_type=sunos
19334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19336 shlibpath_var=LD_LIBRARY_PATH
19337 shlibpath_overrides_runpath=yes
19338 if test "$with_gnu_ld" = yes; then
19339 need_lib_prefix=no
19340 fi
19341 need_version=yes
19342 ;;
19343
Reid Spencera773bd52006-08-04 18:18:08 +000019344sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000019345 version_type=linux
19346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19347 soname_spec='${libname}${release}${shared_ext}$major'
19348 shlibpath_var=LD_LIBRARY_PATH
19349 case $host_vendor in
19350 sni)
19351 shlibpath_overrides_runpath=no
19352 need_lib_prefix=no
19353 export_dynamic_flag_spec='${wl}-Blargedynsym'
19354 runpath_var=LD_RUN_PATH
19355 ;;
19356 siemens)
19357 need_lib_prefix=no
19358 ;;
19359 motorola)
19360 need_lib_prefix=no
19361 need_version=no
19362 shlibpath_overrides_runpath=no
19363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19364 ;;
19365 esac
19366 ;;
19367
19368sysv4*MP*)
19369 if test -d /usr/nec ;then
19370 version_type=linux
19371 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19372 soname_spec='$libname${shared_ext}.$major'
19373 shlibpath_var=LD_LIBRARY_PATH
19374 fi
19375 ;;
19376
Reid Spencera773bd52006-08-04 18:18:08 +000019377sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19378 version_type=freebsd-elf
19379 need_lib_prefix=no
19380 need_version=no
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19382 soname_spec='${libname}${release}${shared_ext}$major'
19383 shlibpath_var=LD_LIBRARY_PATH
19384 hardcode_into_libs=yes
19385 if test "$with_gnu_ld" = yes; then
19386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19387 shlibpath_overrides_runpath=no
19388 else
19389 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19390 shlibpath_overrides_runpath=yes
19391 case $host_os in
19392 sco3.2v5*)
19393 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19394 ;;
19395 esac
19396 fi
19397 sys_lib_dlsearch_path_spec='/usr/lib'
19398 ;;
19399
John Criswell47fdd832003-07-14 16:52:07 +000019400uts4*)
19401 version_type=linux
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19403 soname_spec='${libname}${release}${shared_ext}$major'
19404 shlibpath_var=LD_LIBRARY_PATH
19405 ;;
19406
19407*)
19408 dynamic_linker=no
19409 ;;
19410esac
Reid Spencera773bd52006-08-04 18:18:08 +000019411{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19412echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019413test "$dynamic_linker" = no && can_build_shared=no
19414
Reid Spencera773bd52006-08-04 18:18:08 +000019415variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19416if test "$GCC" = yes; then
19417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19418fi
19419
19420{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19421echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019422hardcode_action_CXX=
19423if test -n "$hardcode_libdir_flag_spec_CXX" || \
19424 test -n "$runpath_var_CXX" || \
19425 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19426
19427 # We can hardcode non-existant directories.
19428 if test "$hardcode_direct_CXX" != no &&
19429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19430 # have to relink, otherwise we might link with an installed library
19431 # when we should be linking with a yet-to-be-installed one
19432 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19433 test "$hardcode_minus_L_CXX" != no; then
19434 # Linking always hardcodes the temporary library directory.
19435 hardcode_action_CXX=relink
19436 else
19437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19438 hardcode_action_CXX=immediate
19439 fi
19440else
19441 # We cannot hardcode anything, or else we can only hardcode existing
19442 # directories.
19443 hardcode_action_CXX=unsupported
19444fi
Reid Spencera773bd52006-08-04 18:18:08 +000019445{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19446echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019447
19448if test "$hardcode_action_CXX" = relink; then
19449 # Fast installation is not supported
19450 enable_fast_install=no
19451elif test "$shlibpath_overrides_runpath" = yes ||
19452 test "$enable_shared" = no; then
19453 # Fast installation is not necessary
19454 enable_fast_install=needless
19455fi
19456
John Criswell47fdd832003-07-14 16:52:07 +000019457
19458# The else clause should only fire when bootstrapping the
19459# libtool distribution, otherwise you forgot to ship ltmain.sh
19460# with your package, and you will get complaints that there are
19461# no rules to generate ltmain.sh.
19462if test -f "$ltmain"; then
19463 # See if we are running on zsh, and set the options which allow our commands through
19464 # without removal of \ escapes.
19465 if test -n "${ZSH_VERSION+set}" ; then
19466 setopt NO_GLOB_SUBST
19467 fi
19468 # Now quote all the things that may contain metacharacters while being
19469 # careful not to overquote the AC_SUBSTed values. We take copies of the
19470 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000019471 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 +000019472 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000019473 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19474 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19475 deplibs_check_method reload_flag reload_cmds need_locks \
19476 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19477 lt_cv_sys_global_symbol_to_c_name_address \
19478 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19479 old_postinstall_cmds old_postuninstall_cmds \
19480 compiler_CXX \
19481 CC_CXX \
19482 LD_CXX \
19483 lt_prog_compiler_wl_CXX \
19484 lt_prog_compiler_pic_CXX \
19485 lt_prog_compiler_static_CXX \
19486 lt_prog_compiler_no_builtin_flag_CXX \
19487 export_dynamic_flag_spec_CXX \
19488 thread_safe_flag_spec_CXX \
19489 whole_archive_flag_spec_CXX \
19490 enable_shared_with_static_runtimes_CXX \
19491 old_archive_cmds_CXX \
19492 old_archive_from_new_cmds_CXX \
19493 predep_objects_CXX \
19494 postdep_objects_CXX \
19495 predeps_CXX \
19496 postdeps_CXX \
19497 compiler_lib_search_path_CXX \
19498 archive_cmds_CXX \
19499 archive_expsym_cmds_CXX \
19500 postinstall_cmds_CXX \
19501 postuninstall_cmds_CXX \
19502 old_archive_from_expsyms_cmds_CXX \
19503 allow_undefined_flag_CXX \
19504 no_undefined_flag_CXX \
19505 export_symbols_cmds_CXX \
19506 hardcode_libdir_flag_spec_CXX \
19507 hardcode_libdir_flag_spec_ld_CXX \
19508 hardcode_libdir_separator_CXX \
19509 hardcode_automatic_CXX \
19510 module_cmds_CXX \
19511 module_expsym_cmds_CXX \
19512 lt_cv_prog_compiler_c_o_CXX \
19513 exclude_expsyms_CXX \
19514 include_expsyms_CXX; do
19515
19516 case $var in
19517 old_archive_cmds_CXX | \
19518 old_archive_from_new_cmds_CXX | \
19519 archive_cmds_CXX | \
19520 archive_expsym_cmds_CXX | \
19521 module_cmds_CXX | \
19522 module_expsym_cmds_CXX | \
19523 old_archive_from_expsyms_cmds_CXX | \
19524 export_symbols_cmds_CXX | \
19525 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19526 postinstall_cmds | postuninstall_cmds | \
19527 old_postinstall_cmds | old_postuninstall_cmds | \
19528 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19529 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019530 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 +000019531 ;;
19532 *)
19533 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19534 ;;
19535 esac
19536 done
19537
19538 case $lt_echo in
19539 *'\$0 --fallback-echo"')
19540 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19541 ;;
19542 esac
19543
19544cfgfile="$ofile"
19545
19546 cat <<__EOF__ >> "$cfgfile"
19547# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19548
19549# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19550
19551# Shell to use when invoking shell scripts.
19552SHELL=$lt_SHELL
19553
19554# Whether or not to build shared libraries.
19555build_libtool_libs=$enable_shared
19556
19557# Whether or not to build static libraries.
19558build_old_libs=$enable_static
19559
19560# Whether or not to add -lc for building shared libraries.
19561build_libtool_need_lc=$archive_cmds_need_lc_CXX
19562
19563# Whether or not to disallow shared libs when runtime libs are static
19564allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19565
19566# Whether or not to optimize for fast installation.
19567fast_install=$enable_fast_install
19568
19569# The host system.
19570host_alias=$host_alias
19571host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000019572host_os=$host_os
19573
19574# The build system.
19575build_alias=$build_alias
19576build=$build
19577build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000019578
19579# An echo program that does not interpret backslashes.
19580echo=$lt_echo
19581
19582# The archiver.
19583AR=$lt_AR
19584AR_FLAGS=$lt_AR_FLAGS
19585
19586# A C compiler.
19587LTCC=$lt_LTCC
19588
Reid Spencera773bd52006-08-04 18:18:08 +000019589# LTCC compiler flags.
19590LTCFLAGS=$lt_LTCFLAGS
19591
John Criswell47fdd832003-07-14 16:52:07 +000019592# A language-specific compiler.
19593CC=$lt_compiler_CXX
19594
19595# Is the compiler the GNU C compiler?
19596with_gcc=$GCC_CXX
19597
19598# An ERE matcher.
19599EGREP=$lt_EGREP
19600
19601# The linker used to build libraries.
19602LD=$lt_LD_CXX
19603
19604# Whether we need hard or soft links.
19605LN_S=$lt_LN_S
19606
19607# A BSD-compatible nm program.
19608NM=$lt_NM
19609
19610# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000019611STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000019612
19613# Used to examine libraries when file_magic_cmd begins "file"
19614MAGIC_CMD=$MAGIC_CMD
19615
19616# Used on cygwin: DLL creation program.
19617DLLTOOL="$DLLTOOL"
19618
19619# Used on cygwin: object dumper.
19620OBJDUMP="$OBJDUMP"
19621
19622# Used on cygwin: assembler.
19623AS="$AS"
19624
19625# The name of the directory that contains temporary libtool files.
19626objdir=$objdir
19627
19628# How to create reloadable object files.
19629reload_flag=$lt_reload_flag
19630reload_cmds=$lt_reload_cmds
19631
19632# How to pass a linker flag through the compiler.
19633wl=$lt_lt_prog_compiler_wl_CXX
19634
19635# Object file suffix (normally "o").
19636objext="$ac_objext"
19637
19638# Old archive suffix (normally "a").
19639libext="$libext"
19640
19641# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000019642shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000019643
19644# Executable file suffix (normally "").
19645exeext="$exeext"
19646
19647# Additional compiler flags for building library objects.
19648pic_flag=$lt_lt_prog_compiler_pic_CXX
19649pic_mode=$pic_mode
19650
19651# What is the maximum length of a command?
19652max_cmd_len=$lt_cv_sys_max_cmd_len
19653
19654# Does compiler simultaneously support -c and -o options?
19655compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19656
Reid Spencera773bd52006-08-04 18:18:08 +000019657# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000019658need_locks=$lt_need_locks
19659
19660# Do we need the lib prefix for modules?
19661need_lib_prefix=$need_lib_prefix
19662
19663# Do we need a version for libraries?
19664need_version=$need_version
19665
19666# Whether dlopen is supported.
19667dlopen_support=$enable_dlopen
19668
19669# Whether dlopen of programs is supported.
19670dlopen_self=$enable_dlopen_self
19671
19672# Whether dlopen of statically linked programs is supported.
19673dlopen_self_static=$enable_dlopen_self_static
19674
19675# Compiler flag to prevent dynamic linking.
19676link_static_flag=$lt_lt_prog_compiler_static_CXX
19677
19678# Compiler flag to turn off builtin functions.
19679no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19680
19681# Compiler flag to allow reflexive dlopens.
19682export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19683
19684# Compiler flag to generate shared objects directly from archives.
19685whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19686
19687# Compiler flag to generate thread-safe objects.
19688thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19689
19690# Library versioning type.
19691version_type=$version_type
19692
19693# Format of library name prefix.
19694libname_spec=$lt_libname_spec
19695
19696# List of archive names. First name is the real one, the rest are links.
19697# The last name is the one that the linker finds with -lNAME.
19698library_names_spec=$lt_library_names_spec
19699
19700# The coded name of the library, if different from the real name.
19701soname_spec=$lt_soname_spec
19702
19703# Commands used to build and install an old-style archive.
19704RANLIB=$lt_RANLIB
19705old_archive_cmds=$lt_old_archive_cmds_CXX
19706old_postinstall_cmds=$lt_old_postinstall_cmds
19707old_postuninstall_cmds=$lt_old_postuninstall_cmds
19708
19709# Create an old-style archive from a shared archive.
19710old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19711
19712# Create a temporary old-style archive to link instead of a shared archive.
19713old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19714
19715# Commands used to build and install a shared archive.
19716archive_cmds=$lt_archive_cmds_CXX
19717archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19718postinstall_cmds=$lt_postinstall_cmds
19719postuninstall_cmds=$lt_postuninstall_cmds
19720
19721# Commands used to build a loadable module (assumed same as above if empty)
19722module_cmds=$lt_module_cmds_CXX
19723module_expsym_cmds=$lt_module_expsym_cmds_CXX
19724
19725# Commands to strip libraries.
19726old_striplib=$lt_old_striplib
19727striplib=$lt_striplib
19728
19729# Dependencies to place before the objects being linked to create a
19730# shared library.
19731predep_objects=$lt_predep_objects_CXX
19732
19733# Dependencies to place after the objects being linked to create a
19734# shared library.
19735postdep_objects=$lt_postdep_objects_CXX
19736
19737# Dependencies to place before the objects being linked to create a
19738# shared library.
19739predeps=$lt_predeps_CXX
19740
19741# Dependencies to place after the objects being linked to create a
19742# shared library.
19743postdeps=$lt_postdeps_CXX
19744
19745# The library search path used internally by the compiler when linking
19746# a shared library.
19747compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19748
19749# Method to check whether dependent libraries are shared objects.
19750deplibs_check_method=$lt_deplibs_check_method
19751
19752# Command to use when deplibs_check_method == file_magic.
19753file_magic_cmd=$lt_file_magic_cmd
19754
19755# Flag that allows shared libraries with undefined symbols to be built.
19756allow_undefined_flag=$lt_allow_undefined_flag_CXX
19757
19758# Flag that forces no undefined symbols.
19759no_undefined_flag=$lt_no_undefined_flag_CXX
19760
19761# Commands used to finish a libtool library installation in a directory.
19762finish_cmds=$lt_finish_cmds
19763
19764# Same as above, but a single script fragment to be evaled but not shown.
19765finish_eval=$lt_finish_eval
19766
19767# Take the output of nm and produce a listing of raw symbols and C names.
19768global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19769
19770# Transform the output of nm in a proper C declaration
19771global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19772
19773# Transform the output of nm in a C name address pair
19774global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19775
19776# This is the shared library runtime path variable.
19777runpath_var=$runpath_var
19778
19779# This is the shared library path variable.
19780shlibpath_var=$shlibpath_var
19781
19782# Is shlibpath searched before the hard-coded library search path?
19783shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19784
19785# How to hardcode a shared library path into an executable.
19786hardcode_action=$hardcode_action_CXX
19787
19788# Whether we should hardcode library paths into libraries.
19789hardcode_into_libs=$hardcode_into_libs
19790
19791# Flag to hardcode \$libdir into a binary during linking.
19792# This must work even if \$libdir does not exist.
19793hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19794
19795# If ld is used when linking, flag to hardcode \$libdir into
19796# a binary during linking. This must work even if \$libdir does
19797# not exist.
19798hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19799
19800# Whether we need a single -rpath flag with a separated argument.
19801hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19802
19803# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19804# resulting binary.
19805hardcode_direct=$hardcode_direct_CXX
19806
19807# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19808# resulting binary.
19809hardcode_minus_L=$hardcode_minus_L_CXX
19810
19811# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19812# the resulting binary.
19813hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19814
19815# Set to yes if building a shared library automatically hardcodes DIR into the library
19816# and all subsequent libraries and executables linked against it.
19817hardcode_automatic=$hardcode_automatic_CXX
19818
19819# Variables whose values should be saved in libtool wrapper scripts and
19820# restored at relink time.
19821variables_saved_for_relink="$variables_saved_for_relink"
19822
19823# Whether libtool must link a program against all its dependency libraries.
19824link_all_deplibs=$link_all_deplibs_CXX
19825
19826# Compile-time system search path for libraries
19827sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19828
19829# Run-time system search path for libraries
19830sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19831
19832# Fix the shell variable \$srcfile for the compiler.
19833fix_srcfile_path="$fix_srcfile_path_CXX"
19834
19835# Set to yes if exported symbols are required.
19836always_export_symbols=$always_export_symbols_CXX
19837
19838# The commands to list exported symbols.
19839export_symbols_cmds=$lt_export_symbols_cmds_CXX
19840
19841# The commands to extract the exported symbol list from a shared archive.
19842extract_expsyms_cmds=$lt_extract_expsyms_cmds
19843
19844# Symbols that should not be listed in the preloaded symbols.
19845exclude_expsyms=$lt_exclude_expsyms_CXX
19846
19847# Symbols that must always be exported.
19848include_expsyms=$lt_include_expsyms_CXX
19849
19850# ### END LIBTOOL TAG CONFIG: $tagname
19851
19852__EOF__
19853
19854
19855else
19856 # If there is no Makefile yet, we rely on a make rule to execute
19857 # `config.status --recheck' to rerun these tests and create the
19858 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019859 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19860 if test -f "$ltmain_in"; then
19861 test -f Makefile && make "$ltmain"
19862 fi
John Criswell47fdd832003-07-14 16:52:07 +000019863fi
19864
19865
19866ac_ext=c
19867ac_cpp='$CPP $CPPFLAGS'
19868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19870ac_compiler_gnu=$ac_cv_c_compiler_gnu
19871
19872CC=$lt_save_CC
19873LDCXX=$LD
19874LD=$lt_save_LD
19875GCC=$lt_save_GCC
19876with_gnu_ldcxx=$with_gnu_ld
19877with_gnu_ld=$lt_save_with_gnu_ld
19878lt_cv_path_LDCXX=$lt_cv_path_LD
19879lt_cv_path_LD=$lt_save_path_LD
19880lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19881lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19882
19883 else
19884 tagname=""
19885 fi
19886 ;;
19887
19888 F77)
19889 if test -n "$F77" && test "X$F77" != "Xno"; then
19890
19891ac_ext=f
19892ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19893ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19895
19896
19897archive_cmds_need_lc_F77=no
19898allow_undefined_flag_F77=
19899always_export_symbols_F77=no
19900archive_expsym_cmds_F77=
19901export_dynamic_flag_spec_F77=
19902hardcode_direct_F77=no
19903hardcode_libdir_flag_spec_F77=
19904hardcode_libdir_flag_spec_ld_F77=
19905hardcode_libdir_separator_F77=
19906hardcode_minus_L_F77=no
19907hardcode_automatic_F77=no
19908module_cmds_F77=
19909module_expsym_cmds_F77=
19910link_all_deplibs_F77=unknown
19911old_archive_cmds_F77=$old_archive_cmds
19912no_undefined_flag_F77=
19913whole_archive_flag_spec_F77=
19914enable_shared_with_static_runtimes_F77=no
19915
19916# Source file extension for f77 test sources.
19917ac_ext=f
19918
19919# Object file extension for compiled f77 test sources.
19920objext=o
19921objext_F77=$objext
19922
19923# Code to be used in simple compile tests
19924lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19925
19926# Code to be used in simple link tests
19927lt_simple_link_test_code=" program t\n end\n"
19928
19929# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19930
19931# If no C compiler was specified, use CC.
19932LTCC=${LTCC-"$CC"}
19933
Reid Spencera773bd52006-08-04 18:18:08 +000019934# If no C compiler flags were specified, use CFLAGS.
19935LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19936
John Criswell47fdd832003-07-14 16:52:07 +000019937# Allow CC to be a program name with arguments.
19938compiler=$CC
19939
19940
Reid Spencera773bd52006-08-04 18:18:08 +000019941# save warnings/boilerplate of simple test code
19942ac_outfile=conftest.$ac_objext
19943printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19944eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19945_lt_compiler_boilerplate=`cat conftest.err`
19946$rm conftest*
19947
19948ac_outfile=conftest.$ac_objext
19949printf "$lt_simple_link_test_code" >conftest.$ac_ext
19950eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19951_lt_linker_boilerplate=`cat conftest.err`
19952$rm conftest*
19953
19954
John Criswell47fdd832003-07-14 16:52:07 +000019955# Allow CC to be a program name with arguments.
19956lt_save_CC="$CC"
19957CC=${F77-"f77"}
19958compiler=$CC
19959compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000019960for cc_temp in $compiler""; do
19961 case $cc_temp in
19962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19964 \-*) ;;
19965 *) break;;
19966 esac
19967done
19968cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000019969
John Criswell47fdd832003-07-14 16:52:07 +000019970
Reid Spencera773bd52006-08-04 18:18:08 +000019971{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19972echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19973{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
19974echo "${ECHO_T}$can_build_shared" >&6; }
19975
19976{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19977echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019978test "$can_build_shared" = "no" && enable_shared=no
19979
19980# On AIX, shared libraries and static libraries use the same namespace, and
19981# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000019982case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019983aix3*)
19984 test "$enable_shared" = yes && enable_static=no
19985 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019986 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000019987 postinstall_cmds='$RANLIB $lib'
19988 fi
19989 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019990aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000019991 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19992 test "$enable_shared" = yes && enable_static=no
19993 fi
John Criswell47fdd832003-07-14 16:52:07 +000019994 ;;
19995esac
Reid Spencera773bd52006-08-04 18:18:08 +000019996{ echo "$as_me:$LINENO: result: $enable_shared" >&5
19997echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019998
Reid Spencera773bd52006-08-04 18:18:08 +000019999{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20000echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020001# Make sure either enable_shared or enable_static is yes.
20002test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020003{ echo "$as_me:$LINENO: result: $enable_static" >&5
20004echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020005
20006GCC_F77="$G77"
20007LD_F77="$LD"
20008
20009lt_prog_compiler_wl_F77=
20010lt_prog_compiler_pic_F77=
20011lt_prog_compiler_static_F77=
20012
Reid Spencera773bd52006-08-04 18:18:08 +000020013{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20014echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020015
20016 if test "$GCC" = yes; then
20017 lt_prog_compiler_wl_F77='-Wl,'
20018 lt_prog_compiler_static_F77='-static'
20019
20020 case $host_os in
20021 aix*)
20022 # All AIX code is PIC.
20023 if test "$host_cpu" = ia64; then
20024 # AIX 5 now supports IA64 processor
20025 lt_prog_compiler_static_F77='-Bstatic'
20026 fi
20027 ;;
20028
20029 amigaos*)
20030 # FIXME: we need at least 68020 code to build shared libraries, but
20031 # adding the `-m68020' flag to GCC prevents building anything better,
20032 # like `-m68040'.
20033 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20034 ;;
20035
20036 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20037 # PIC is the default for these OSes.
20038 ;;
20039
20040 mingw* | pw32* | os2*)
20041 # This hack is so that the source file can tell whether it is being
20042 # built for inclusion in a dll (and should export symbols for example).
20043 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20044 ;;
20045
20046 darwin* | rhapsody*)
20047 # PIC is the default on this platform
20048 # Common symbols not allowed in MH_DYLIB files
20049 lt_prog_compiler_pic_F77='-fno-common'
20050 ;;
20051
Reid Spencera773bd52006-08-04 18:18:08 +000020052 interix3*)
20053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20054 # Instead, we relocate shared libraries at runtime.
20055 ;;
20056
John Criswell47fdd832003-07-14 16:52:07 +000020057 msdosdjgpp*)
20058 # Just because we use GCC doesn't mean we suddenly get shared libraries
20059 # on systems that don't support them.
20060 lt_prog_compiler_can_build_shared_F77=no
20061 enable_shared=no
20062 ;;
20063
20064 sysv4*MP*)
20065 if test -d /usr/nec; then
20066 lt_prog_compiler_pic_F77=-Kconform_pic
20067 fi
20068 ;;
20069
20070 hpux*)
20071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20072 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020073 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020074 hppa*64*|ia64*)
20075 # +Z the default
20076 ;;
20077 *)
20078 lt_prog_compiler_pic_F77='-fPIC'
20079 ;;
20080 esac
20081 ;;
20082
20083 *)
20084 lt_prog_compiler_pic_F77='-fPIC'
20085 ;;
20086 esac
20087 else
20088 # PORTME Check for flag to pass linker flags through the system compiler.
20089 case $host_os in
20090 aix*)
20091 lt_prog_compiler_wl_F77='-Wl,'
20092 if test "$host_cpu" = ia64; then
20093 # AIX 5 now supports IA64 processor
20094 lt_prog_compiler_static_F77='-Bstatic'
20095 else
20096 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20097 fi
20098 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020099 darwin*)
20100 # PIC is the default on this platform
20101 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020102 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020103 xlc*)
20104 lt_prog_compiler_pic_F77='-qnocommon'
20105 lt_prog_compiler_wl_F77='-Wl,'
20106 ;;
20107 esac
20108 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020109
20110 mingw* | pw32* | os2*)
20111 # This hack is so that the source file can tell whether it is being
20112 # built for inclusion in a dll (and should export symbols for example).
20113 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20114 ;;
20115
20116 hpux9* | hpux10* | hpux11*)
20117 lt_prog_compiler_wl_F77='-Wl,'
20118 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20119 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020120 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020121 hppa*64*|ia64*)
20122 # +Z the default
20123 ;;
20124 *)
20125 lt_prog_compiler_pic_F77='+Z'
20126 ;;
20127 esac
20128 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20129 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20130 ;;
20131
20132 irix5* | irix6* | nonstopux*)
20133 lt_prog_compiler_wl_F77='-Wl,'
20134 # PIC (with -KPIC) is the default.
20135 lt_prog_compiler_static_F77='-non_shared'
20136 ;;
20137
20138 newsos6)
20139 lt_prog_compiler_pic_F77='-KPIC'
20140 lt_prog_compiler_static_F77='-Bstatic'
20141 ;;
20142
20143 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000020144 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020145 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000020146 lt_prog_compiler_wl_F77='-Wl,'
20147 lt_prog_compiler_pic_F77='-KPIC'
20148 lt_prog_compiler_static_F77='-static'
20149 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020150 pgcc* | pgf77* | pgf90* | pgf95*)
20151 # Portland Group compilers (*not* the Pentium gcc compiler,
20152 # which looks to be a dead project)
20153 lt_prog_compiler_wl_F77='-Wl,'
20154 lt_prog_compiler_pic_F77='-fpic'
20155 lt_prog_compiler_static_F77='-Bstatic'
20156 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020157 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000020158 lt_prog_compiler_wl_F77='-Wl,'
20159 # All Alpha code is PIC.
20160 lt_prog_compiler_static_F77='-non_shared'
20161 ;;
20162 esac
20163 ;;
20164
20165 osf3* | osf4* | osf5*)
20166 lt_prog_compiler_wl_F77='-Wl,'
20167 # All OSF/1 code is PIC.
20168 lt_prog_compiler_static_F77='-non_shared'
20169 ;;
20170
John Criswell47fdd832003-07-14 16:52:07 +000020171 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020172 lt_prog_compiler_pic_F77='-KPIC'
20173 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000020174 case $cc_basename in
20175 f77* | f90* | f95*)
20176 lt_prog_compiler_wl_F77='-Qoption ld ';;
20177 *)
20178 lt_prog_compiler_wl_F77='-Wl,';;
20179 esac
John Criswell47fdd832003-07-14 16:52:07 +000020180 ;;
20181
20182 sunos4*)
20183 lt_prog_compiler_wl_F77='-Qoption ld '
20184 lt_prog_compiler_pic_F77='-PIC'
20185 lt_prog_compiler_static_F77='-Bstatic'
20186 ;;
20187
Reid Spencera773bd52006-08-04 18:18:08 +000020188 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020189 lt_prog_compiler_wl_F77='-Wl,'
20190 lt_prog_compiler_pic_F77='-KPIC'
20191 lt_prog_compiler_static_F77='-Bstatic'
20192 ;;
20193
20194 sysv4*MP*)
20195 if test -d /usr/nec ;then
20196 lt_prog_compiler_pic_F77='-Kconform_pic'
20197 lt_prog_compiler_static_F77='-Bstatic'
20198 fi
20199 ;;
20200
Reid Spencera773bd52006-08-04 18:18:08 +000020201 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20202 lt_prog_compiler_wl_F77='-Wl,'
20203 lt_prog_compiler_pic_F77='-KPIC'
20204 lt_prog_compiler_static_F77='-Bstatic'
20205 ;;
20206
20207 unicos*)
20208 lt_prog_compiler_wl_F77='-Wl,'
20209 lt_prog_compiler_can_build_shared_F77=no
20210 ;;
20211
John Criswell47fdd832003-07-14 16:52:07 +000020212 uts4*)
20213 lt_prog_compiler_pic_F77='-pic'
20214 lt_prog_compiler_static_F77='-Bstatic'
20215 ;;
20216
20217 *)
20218 lt_prog_compiler_can_build_shared_F77=no
20219 ;;
20220 esac
20221 fi
20222
Reid Spencera773bd52006-08-04 18:18:08 +000020223{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20224echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020225
20226#
20227# Check to make sure the PIC flag actually works.
20228#
20229if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020230
Reid Spencera773bd52006-08-04 18:18:08 +000020231{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20232echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020233if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20235else
20236 lt_prog_compiler_pic_works_F77=no
20237 ac_outfile=conftest.$ac_objext
20238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20239 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20240 # Insert the option either (1) after the last *FLAGS variable, or
20241 # (2) before a word containing "conftest.", or (3) at the end.
20242 # Note that $ac_compile itself does not contain backslashes and begins
20243 # with a dollar sign (not a hyphen), so the echo should work correctly.
20244 # The option is referenced via a variable to avoid confusing sed.
20245 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20248 -e 's:$: $lt_compiler_flag:'`
Duncan Sands1eff7042007-12-10 17:43:13 +000020249 (eval echo "\"\$as_me:20249: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020250 (eval "$lt_compile" 2>conftest.err)
20251 ac_status=$?
20252 cat conftest.err >&5
Duncan Sands1eff7042007-12-10 17:43:13 +000020253 echo "$as_me:20253: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020254 if (exit $ac_status) && test -s "$ac_outfile"; then
20255 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020256 # So say no if there are warnings other than the usual output.
20257 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20259 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020260 lt_prog_compiler_pic_works_F77=yes
20261 fi
20262 fi
20263 $rm conftest*
20264
20265fi
Reid Spencera773bd52006-08-04 18:18:08 +000020266{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20267echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020268
20269if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20270 case $lt_prog_compiler_pic_F77 in
20271 "" | " "*) ;;
20272 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20273 esac
20274else
20275 lt_prog_compiler_pic_F77=
20276 lt_prog_compiler_can_build_shared_F77=no
20277fi
20278
20279fi
Reid Spencera773bd52006-08-04 18:18:08 +000020280case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020281 # For platforms which do not support PIC, -DPIC is meaningless:
20282 *djgpp*)
20283 lt_prog_compiler_pic_F77=
20284 ;;
20285 *)
20286 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20287 ;;
20288esac
20289
Reid Spencera773bd52006-08-04 18:18:08 +000020290#
20291# Check to make sure the static flag actually works.
20292#
20293wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20294{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20295echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20296if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298else
20299 lt_prog_compiler_static_works_F77=no
20300 save_LDFLAGS="$LDFLAGS"
20301 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20302 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20304 # The linker can only warn and ignore the option if not recognized
20305 # So say no if there are warnings
20306 if test -s conftest.err; then
20307 # Append any errors to the config.log.
20308 cat conftest.err 1>&5
20309 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20311 if diff conftest.exp conftest.er2 >/dev/null; then
20312 lt_prog_compiler_static_works_F77=yes
20313 fi
20314 else
20315 lt_prog_compiler_static_works_F77=yes
20316 fi
20317 fi
20318 $rm conftest*
20319 LDFLAGS="$save_LDFLAGS"
20320
20321fi
20322{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20323echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20324
20325if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20326 :
20327else
20328 lt_prog_compiler_static_F77=
20329fi
20330
20331
20332{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20333echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020334if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20336else
20337 lt_cv_prog_compiler_c_o_F77=no
20338 $rm -r conftest 2>/dev/null
20339 mkdir conftest
20340 cd conftest
20341 mkdir out
20342 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20343
John Criswell47fdd832003-07-14 16:52:07 +000020344 lt_compiler_flag="-o out/conftest2.$ac_objext"
20345 # Insert the option either (1) after the last *FLAGS variable, or
20346 # (2) before a word containing "conftest.", or (3) at the end.
20347 # Note that $ac_compile itself does not contain backslashes and begins
20348 # with a dollar sign (not a hyphen), so the echo should work correctly.
20349 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20352 -e 's:$: $lt_compiler_flag:'`
Duncan Sands1eff7042007-12-10 17:43:13 +000020353 (eval echo "\"\$as_me:20353: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020354 (eval "$lt_compile" 2>out/conftest.err)
20355 ac_status=$?
20356 cat out/conftest.err >&5
Duncan Sands1eff7042007-12-10 17:43:13 +000020357 echo "$as_me:20357: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20359 then
20360 # The compiler can only warn and ignore the option if not recognized
20361 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020362 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020365 lt_cv_prog_compiler_c_o_F77=yes
20366 fi
20367 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020368 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020369 $rm conftest*
20370 # SGI C++ compiler will create directory out/ii_files/ for
20371 # template instantiation
20372 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20373 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020374 cd ..
20375 rmdir conftest
20376 $rm conftest*
20377
20378fi
Reid Spencera773bd52006-08-04 18:18:08 +000020379{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20380echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020381
20382
20383hard_links="nottested"
20384if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20385 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020386 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20387echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020388 hard_links=yes
20389 $rm conftest*
20390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20391 touch conftest.a
20392 ln conftest.a conftest.b 2>&5 || hard_links=no
20393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020394 { echo "$as_me:$LINENO: result: $hard_links" >&5
20395echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020396 if test "$hard_links" = no; then
20397 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20398echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20399 need_locks=warn
20400 fi
20401else
20402 need_locks=no
20403fi
20404
Reid Spencera773bd52006-08-04 18:18:08 +000020405{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20406echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020407
20408 runpath_var=
20409 allow_undefined_flag_F77=
20410 enable_shared_with_static_runtimes_F77=no
20411 archive_cmds_F77=
20412 archive_expsym_cmds_F77=
20413 old_archive_From_new_cmds_F77=
20414 old_archive_from_expsyms_cmds_F77=
20415 export_dynamic_flag_spec_F77=
20416 whole_archive_flag_spec_F77=
20417 thread_safe_flag_spec_F77=
20418 hardcode_libdir_flag_spec_F77=
20419 hardcode_libdir_flag_spec_ld_F77=
20420 hardcode_libdir_separator_F77=
20421 hardcode_direct_F77=no
20422 hardcode_minus_L_F77=no
20423 hardcode_shlibpath_var_F77=unsupported
20424 link_all_deplibs_F77=unknown
20425 hardcode_automatic_F77=no
20426 module_cmds_F77=
20427 module_expsym_cmds_F77=
20428 always_export_symbols_F77=no
20429 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20430 # include_expsyms should be a list of space-separated symbols to be *always*
20431 # included in the symbol list
20432 include_expsyms_F77=
20433 # exclude_expsyms can be an extended regexp of symbols to exclude
20434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20436 # as well as any symbol that contains `d'.
20437 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20439 # platforms (ab)use it in PIC code, but their linkers get confused if
20440 # the symbol is explicitly referenced. Since portable code cannot
20441 # rely on this symbol name, it's probably fine to never include it in
20442 # preloaded symbol tables.
20443 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000020444 # Just being paranoid about ensuring that cc_basename is set.
20445 for cc_temp in $compiler""; do
20446 case $cc_temp in
20447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20449 \-*) ;;
20450 *) break;;
20451 esac
20452done
20453cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020454
20455 case $host_os in
20456 cygwin* | mingw* | pw32*)
20457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20458 # When not using gcc, we currently assume that we are using
20459 # Microsoft Visual C++.
20460 if test "$GCC" != yes; then
20461 with_gnu_ld=no
20462 fi
20463 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020464 interix*)
20465 # we just hope/assume this is gcc and not c89 (= MSVC++)
20466 with_gnu_ld=yes
20467 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020468 openbsd*)
20469 with_gnu_ld=no
20470 ;;
20471 esac
20472
20473 ld_shlibs_F77=yes
20474 if test "$with_gnu_ld" = yes; then
20475 # If archive_cmds runs LD, not CC, wlarc should be empty
20476 wlarc='${wl}'
20477
Reid Spencera773bd52006-08-04 18:18:08 +000020478 # Set some defaults for GNU ld with shared library support. These
20479 # are reset later if shared libraries are not supported. Putting them
20480 # here allows them to be overridden if necessary.
20481 runpath_var=LD_RUN_PATH
20482 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20483 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20484 # ancient GNU ld didn't support --whole-archive et. al.
20485 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20486 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20487 else
20488 whole_archive_flag_spec_F77=
20489 fi
20490 supports_anon_versioning=no
20491 case `$LD -v 2>/dev/null` in
20492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20495 *\ 2.11.*) ;; # other 2.11 versions
20496 *) supports_anon_versioning=yes ;;
20497 esac
20498
John Criswell47fdd832003-07-14 16:52:07 +000020499 # See if GNU ld supports shared libraries.
20500 case $host_os in
20501 aix3* | aix4* | aix5*)
20502 # On AIX/PPC, the GNU linker is very broken
20503 if test "$host_cpu" != ia64; then
20504 ld_shlibs_F77=no
20505 cat <<EOF 1>&2
20506
20507*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20508*** to be unable to reliably create shared libraries on AIX.
20509*** Therefore, libtool is disabling shared libraries support. If you
20510*** really care for shared libraries, you may want to modify your PATH
20511*** so that a non-GNU linker is found, and then restart.
20512
20513EOF
20514 fi
20515 ;;
20516
20517 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000020518 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 +000020519 hardcode_libdir_flag_spec_F77='-L$libdir'
20520 hardcode_minus_L_F77=yes
20521
20522 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20523 # that the semantics of dynamic libraries on AmigaOS, at least up
20524 # to version 4, is to share data among multiple programs linked
20525 # with the same dynamic library. Since this doesn't match the
20526 # behavior of shared libraries on other platforms, we can't use
20527 # them.
20528 ld_shlibs_F77=no
20529 ;;
20530
20531 beos*)
20532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20533 allow_undefined_flag_F77=unsupported
20534 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20535 # support --undefined. This deserves some investigation. FIXME
20536 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20537 else
20538 ld_shlibs_F77=no
20539 fi
20540 ;;
20541
20542 cygwin* | mingw* | pw32*)
20543 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20544 # as there is no search path for DLLs.
20545 hardcode_libdir_flag_spec_F77='-L$libdir'
20546 allow_undefined_flag_F77=unsupported
20547 always_export_symbols_F77=no
20548 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020549 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 +000020550
20551 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000020552 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 +000020553 # If the export-symbols file already is a .def file (1st line
20554 # is EXPORTS), use it as is; otherwise, prepend...
20555 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20556 cp $export_symbols $output_objdir/$soname.def;
20557 else
20558 echo EXPORTS > $output_objdir/$soname.def;
20559 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000020560 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000020561 $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 +000020562 else
Reid Spencera773bd52006-08-04 18:18:08 +000020563 ld_shlibs_F77=no
20564 fi
20565 ;;
20566
20567 interix3*)
20568 hardcode_direct_F77=no
20569 hardcode_shlibpath_var_F77=no
20570 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20571 export_dynamic_flag_spec_F77='${wl}-E'
20572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20573 # Instead, shared libraries are loaded at an image base (0x10000000 by
20574 # default) and relocated if they conflict, which is a slow very memory
20575 # consuming and fragmenting process. To avoid this, we pick a random,
20576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20577 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20578 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'
20579 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'
20580 ;;
20581
20582 linux*)
20583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20584 tmp_addflag=
20585 case $cc_basename,$host_cpu in
20586 pgcc*) # Portland Group C compiler
20587 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'
20588 tmp_addflag=' $pic_flag'
20589 ;;
20590 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20591 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'
20592 tmp_addflag=' $pic_flag -Mnomain' ;;
20593 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20594 tmp_addflag=' -i_dynamic' ;;
20595 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20596 tmp_addflag=' -i_dynamic -nofor_main' ;;
20597 ifc* | ifort*) # Intel Fortran compiler
20598 tmp_addflag=' -nofor_main' ;;
20599 esac
20600 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20601
20602 if test $supports_anon_versioning = yes; then
20603 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20605 $echo "local: *; };" >> $output_objdir/$libname.ver~
20606 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20607 fi
20608 else
20609 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020610 fi
20611 ;;
20612
20613 netbsd*)
20614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20615 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20616 wlarc=
20617 else
20618 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20619 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20620 fi
20621 ;;
20622
Reid Spencera773bd52006-08-04 18:18:08 +000020623 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020624 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20625 ld_shlibs_F77=no
20626 cat <<EOF 1>&2
20627
20628*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20629*** create shared libraries on Solaris systems. Therefore, libtool
20630*** is disabling shared libraries support. We urge you to upgrade GNU
20631*** binutils to release 2.9.1 or newer. Another option is to modify
20632*** your PATH or compiler configuration so that the native linker is
20633*** used, and then restart.
20634
20635EOF
20636 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20637 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20638 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20639 else
20640 ld_shlibs_F77=no
20641 fi
20642 ;;
20643
Reid Spencera773bd52006-08-04 18:18:08 +000020644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20645 case `$LD -v 2>&1` in
20646 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20647 ld_shlibs_F77=no
20648 cat <<_LT_EOF 1>&2
20649
20650*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20651*** reliably create shared libraries on SCO systems. Therefore, libtool
20652*** is disabling shared libraries support. We urge you to upgrade GNU
20653*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20654*** your PATH or compiler configuration so that the native linker is
20655*** used, and then restart.
20656
20657_LT_EOF
20658 ;;
20659 *)
20660 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20661 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20662 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20663 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20664 else
20665 ld_shlibs_F77=no
20666 fi
20667 ;;
20668 esac
20669 ;;
20670
John Criswell47fdd832003-07-14 16:52:07 +000020671 sunos4*)
20672 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20673 wlarc=
20674 hardcode_direct_F77=yes
20675 hardcode_shlibpath_var_F77=no
20676 ;;
20677
20678 *)
20679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20680 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20681 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20682 else
20683 ld_shlibs_F77=no
20684 fi
20685 ;;
20686 esac
20687
Reid Spencera773bd52006-08-04 18:18:08 +000020688 if test "$ld_shlibs_F77" = no; then
20689 runpath_var=
20690 hardcode_libdir_flag_spec_F77=
20691 export_dynamic_flag_spec_F77=
20692 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000020693 fi
20694 else
20695 # PORTME fill in a description of your system's linker (not GNU ld)
20696 case $host_os in
20697 aix3*)
20698 allow_undefined_flag_F77=unsupported
20699 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000020700 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 +000020701 # Note: this linker hardcodes the directories in LIBPATH if there
20702 # are no directories specified by -L.
20703 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020704 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000020705 # Neither direct hardcoding nor static linking is supported with a
20706 # broken collect2.
20707 hardcode_direct_F77=unsupported
20708 fi
20709 ;;
20710
20711 aix4* | aix5*)
20712 if test "$host_cpu" = ia64; then
20713 # On IA64, the linker does run time linking by default, so we don't
20714 # have to do anything special.
20715 aix_use_runtimelinking=no
20716 exp_sym_flag='-Bexport'
20717 no_entry_flag=""
20718 else
20719 # If we're using GNU nm, then we don't want the "-C" option.
20720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20721 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20722 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'
20723 else
20724 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'
20725 fi
20726 aix_use_runtimelinking=no
20727
20728 # Test if we are trying to use run time linking or normal
20729 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20730 # need to do runtime linking.
20731 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20732 for ld_flag in $LDFLAGS; do
20733 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20734 aix_use_runtimelinking=yes
20735 break
20736 fi
20737 done
Reid Spencera773bd52006-08-04 18:18:08 +000020738 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020739 esac
20740
20741 exp_sym_flag='-bexport'
20742 no_entry_flag='-bnoentry'
20743 fi
20744
20745 # When large executables or shared objects are built, AIX ld can
20746 # have problems creating the table of contents. If linking a library
20747 # or program results in "error TOC overflow" add -mminimal-toc to
20748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20750
20751 archive_cmds_F77=''
20752 hardcode_direct_F77=yes
20753 hardcode_libdir_separator_F77=':'
20754 link_all_deplibs_F77=yes
20755
20756 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000020757 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000020758 # We only want to do this on AIX 4.2 and lower, the check
20759 # below for broken collect2 doesn't work under 4.3+
20760 collect2name=`${CC} -print-prog-name=collect2`
20761 if test -f "$collect2name" && \
20762 strings "$collect2name" | grep resolve_lib_name >/dev/null
20763 then
20764 # We have reworked collect2
20765 hardcode_direct_F77=yes
20766 else
20767 # We have old collect2
20768 hardcode_direct_F77=unsupported
20769 # It fails to find uninstalled libraries when the uninstalled
20770 # path is not listed in the libpath. Setting hardcode_minus_L
20771 # to unsupported forces relinking
20772 hardcode_minus_L_F77=yes
20773 hardcode_libdir_flag_spec_F77='-L$libdir'
20774 hardcode_libdir_separator_F77=
20775 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020776 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020777 esac
20778 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000020779 if test "$aix_use_runtimelinking" = yes; then
20780 shared_flag="$shared_flag "'${wl}-G'
20781 fi
John Criswell47fdd832003-07-14 16:52:07 +000020782 else
20783 # not using gcc
20784 if test "$host_cpu" = ia64; then
20785 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20786 # chokes on -Wl,-G. The following line is correct:
20787 shared_flag='-G'
20788 else
Reid Spencera773bd52006-08-04 18:18:08 +000020789 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000020790 shared_flag='${wl}-G'
20791 else
20792 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000020793 fi
John Criswell47fdd832003-07-14 16:52:07 +000020794 fi
20795 fi
20796
20797 # It seems that -bexpall does not export symbols beginning with
20798 # underscore (_), so it is better to generate a list of symbols to export.
20799 always_export_symbols_F77=yes
20800 if test "$aix_use_runtimelinking" = yes; then
20801 # Warning - without using the other runtime loading flags (-brtl),
20802 # -berok will link without error, but may produce a broken library.
20803 allow_undefined_flag_F77='-berok'
20804 # Determine the default libpath from the value encoded in an empty executable.
20805 cat >conftest.$ac_ext <<_ACEOF
20806 program main
20807
20808 end
20809_ACEOF
20810rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000020811if { (ac_try="$ac_link"
20812case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20815esac
20816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000020818 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020819 grep -v '^ *+' conftest.er1 >conftest.err
20820 rm -f conftest.er1
20821 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000020822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000020823 (exit $ac_status); } && {
20824 test -z "$ac_f77_werror_flag" ||
20825 test ! -s conftest.err
20826 } && test -s conftest$ac_exeext &&
20827 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000020828
20829aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20830}'`
20831# Check for a 64-bit object if we didn't find anything.
20832if 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; }
20833}'`; fi
20834else
20835 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020836sed 's/^/| /' conftest.$ac_ext >&5
20837
Reid Spencera773bd52006-08-04 18:18:08 +000020838
John Criswell47fdd832003-07-14 16:52:07 +000020839fi
Reid Spencera773bd52006-08-04 18:18:08 +000020840
Scott Michel96dcd2b2007-12-05 21:24:02 +000020841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020842 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000020843if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20844
20845 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000020846 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 +000020847 else
20848 if test "$host_cpu" = ia64; then
20849 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20850 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000020851 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 +000020852 else
20853 # Determine the default libpath from the value encoded in an empty executable.
20854 cat >conftest.$ac_ext <<_ACEOF
20855 program main
20856
20857 end
20858_ACEOF
20859rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000020860if { (ac_try="$ac_link"
20861case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864esac
20865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000020867 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000020871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000020872 (exit $ac_status); } && {
20873 test -z "$ac_f77_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest$ac_exeext &&
20876 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000020877
20878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20879}'`
20880# Check for a 64-bit object if we didn't find anything.
20881if 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; }
20882}'`; fi
20883else
20884 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020885sed 's/^/| /' conftest.$ac_ext >&5
20886
Reid Spencera773bd52006-08-04 18:18:08 +000020887
John Criswell47fdd832003-07-14 16:52:07 +000020888fi
Reid Spencera773bd52006-08-04 18:18:08 +000020889
Scott Michel96dcd2b2007-12-05 21:24:02 +000020890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020891 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000020892if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20893
20894 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20895 # Warning - without using the other run time loading flags,
20896 # -berok will link without error, but may produce a broken library.
20897 no_undefined_flag_F77=' ${wl}-bernotok'
20898 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000020899 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000020900 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000020901 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020902 # This is similar to how AIX traditionally builds its shared libraries.
20903 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 +000020904 fi
20905 fi
20906 ;;
20907
20908 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000020909 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 +000020910 hardcode_libdir_flag_spec_F77='-L$libdir'
20911 hardcode_minus_L_F77=yes
20912 # see comment about different semantics on the GNU ld section
20913 ld_shlibs_F77=no
20914 ;;
20915
Reid Spencer2706f8c2004-09-19 23:53:36 +000020916 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020917 export_dynamic_flag_spec_F77=-rdynamic
20918 ;;
20919
20920 cygwin* | mingw* | pw32*)
20921 # When not using gcc, we currently assume that we are using
20922 # Microsoft Visual C++.
20923 # hardcode_libdir_flag_spec is actually meaningless, as there is
20924 # no search path for DLLs.
20925 hardcode_libdir_flag_spec_F77=' '
20926 allow_undefined_flag_F77=unsupported
20927 # Tell ltmain to make .lib files, not .a files.
20928 libext=lib
20929 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020930 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020931 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000020932 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 +000020933 # The linker will automatically build a .lib file if we build a DLL.
20934 old_archive_From_new_cmds_F77='true'
20935 # FIXME: Should let the user specify the lib program.
20936 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000020937 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000020938 enable_shared_with_static_runtimes_F77=yes
20939 ;;
20940
20941 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000020942 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020943 rhapsody* | darwin1.[012])
20944 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20945 ;;
20946 *) # Darwin 1.3 on
20947 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20948 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20949 else
20950 case ${MACOSX_DEPLOYMENT_TARGET} in
20951 10.[012])
20952 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20953 ;;
20954 10.*)
20955 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20956 ;;
20957 esac
20958 fi
20959 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020960 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000020961 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020962 hardcode_direct_F77=no
20963 hardcode_automatic_F77=yes
20964 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000020965 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000020966 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000020967 if test "$GCC" = yes ; then
20968 output_verbose_link_cmd='echo'
20969 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20970 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000020971 # 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 +000020972 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}'
20973 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 +000020974 else
Reid Spencera773bd52006-08-04 18:18:08 +000020975 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020976 xlc*)
20977 output_verbose_link_cmd='echo'
20978 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20979 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000020980 # 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 +000020981 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}'
20982 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 +000020983 ;;
20984 *)
20985 ld_shlibs_F77=no
20986 ;;
20987 esac
John Criswell47fdd832003-07-14 16:52:07 +000020988 fi
20989 ;;
20990
20991 dgux*)
20992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20993 hardcode_libdir_flag_spec_F77='-L$libdir'
20994 hardcode_shlibpath_var_F77=no
20995 ;;
20996
20997 freebsd1*)
20998 ld_shlibs_F77=no
20999 ;;
21000
21001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21002 # support. Future versions do this automatically, but an explicit c++rt0.o
21003 # does not break anything, and helps significantly (at the cost of a little
21004 # extra space).
21005 freebsd2.2*)
21006 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21007 hardcode_libdir_flag_spec_F77='-R$libdir'
21008 hardcode_direct_F77=yes
21009 hardcode_shlibpath_var_F77=no
21010 ;;
21011
21012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21013 freebsd2*)
21014 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21015 hardcode_direct_F77=yes
21016 hardcode_minus_L_F77=yes
21017 hardcode_shlibpath_var_F77=no
21018 ;;
21019
21020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021021 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021022 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21023 hardcode_libdir_flag_spec_F77='-R$libdir'
21024 hardcode_direct_F77=yes
21025 hardcode_shlibpath_var_F77=no
21026 ;;
21027
21028 hpux9*)
21029 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021030 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 +000021031 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021032 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 +000021033 fi
21034 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21035 hardcode_libdir_separator_F77=:
21036 hardcode_direct_F77=yes
21037
21038 # hardcode_minus_L: Not really in the search PATH,
21039 # but as the default location of the library.
21040 hardcode_minus_L_F77=yes
21041 export_dynamic_flag_spec_F77='${wl}-E'
21042 ;;
21043
Reid Spencera773bd52006-08-04 18:18:08 +000021044 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021046 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21047 else
21048 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21049 fi
21050 if test "$with_gnu_ld" = no; then
21051 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21052 hardcode_libdir_separator_F77=:
21053
21054 hardcode_direct_F77=yes
21055 export_dynamic_flag_spec_F77='${wl}-E'
21056
21057 # hardcode_minus_L: Not really in the search PATH,
21058 # but as the default location of the library.
21059 hardcode_minus_L_F77=yes
21060 fi
21061 ;;
21062
21063 hpux11*)
21064 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21065 case $host_cpu in
21066 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021067 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021069 ia64*)
21070 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21071 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021072 *)
21073 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21074 ;;
21075 esac
21076 else
Reid Spencera773bd52006-08-04 18:18:08 +000021077 case $host_cpu in
21078 hppa*64*)
21079 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21080 ;;
21081 ia64*)
21082 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021083 ;;
21084 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021085 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 +000021086 ;;
21087 esac
21088 fi
21089 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021090 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21091 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000021092
Reid Spencera773bd52006-08-04 18:18:08 +000021093 case $host_cpu in
21094 hppa*64*|ia64*)
21095 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21096 hardcode_direct_F77=no
21097 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021098 ;;
21099 *)
John Criswell47fdd832003-07-14 16:52:07 +000021100 hardcode_direct_F77=yes
21101 export_dynamic_flag_spec_F77='${wl}-E'
21102
21103 # hardcode_minus_L: Not really in the search PATH,
21104 # but as the default location of the library.
21105 hardcode_minus_L_F77=yes
21106 ;;
21107 esac
21108 fi
21109 ;;
21110
21111 irix5* | irix6* | nonstopux*)
21112 if test "$GCC" = yes; then
21113 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'
21114 else
21115 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'
21116 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21117 fi
21118 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21119 hardcode_libdir_separator_F77=:
21120 link_all_deplibs_F77=yes
21121 ;;
21122
21123 netbsd*)
21124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21125 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21126 else
21127 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21128 fi
21129 hardcode_libdir_flag_spec_F77='-R$libdir'
21130 hardcode_direct_F77=yes
21131 hardcode_shlibpath_var_F77=no
21132 ;;
21133
21134 newsos6)
21135 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21136 hardcode_direct_F77=yes
21137 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21138 hardcode_libdir_separator_F77=:
21139 hardcode_shlibpath_var_F77=no
21140 ;;
21141
21142 openbsd*)
21143 hardcode_direct_F77=yes
21144 hardcode_shlibpath_var_F77=no
21145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21146 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021147 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 +000021148 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21149 export_dynamic_flag_spec_F77='${wl}-E'
21150 else
21151 case $host_os in
21152 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21153 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21154 hardcode_libdir_flag_spec_F77='-R$libdir'
21155 ;;
21156 *)
21157 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21158 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21159 ;;
21160 esac
21161 fi
21162 ;;
21163
21164 os2*)
21165 hardcode_libdir_flag_spec_F77='-L$libdir'
21166 hardcode_minus_L_F77=yes
21167 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000021168 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 +000021169 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21170 ;;
21171
21172 osf3*)
21173 if test "$GCC" = yes; then
21174 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21175 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'
21176 else
21177 allow_undefined_flag_F77=' -expect_unresolved \*'
21178 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'
21179 fi
21180 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21181 hardcode_libdir_separator_F77=:
21182 ;;
21183
21184 osf4* | osf5*) # as osf3* with the addition of -msym flag
21185 if test "$GCC" = yes; then
21186 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21187 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'
21188 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21189 else
21190 allow_undefined_flag_F77=' -expect_unresolved \*'
21191 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 +000021192 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 +000021193 $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 +000021194
John Criswell47fdd832003-07-14 16:52:07 +000021195 # Both c and cxx compiler support -rpath directly
21196 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21197 fi
21198 hardcode_libdir_separator_F77=:
21199 ;;
21200
John Criswell47fdd832003-07-14 16:52:07 +000021201 solaris*)
21202 no_undefined_flag_F77=' -z text'
21203 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021204 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000021205 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021206 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21207 $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 +000021208 else
Reid Spencera773bd52006-08-04 18:18:08 +000021209 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000021210 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021211 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21212 $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 +000021213 fi
21214 hardcode_libdir_flag_spec_F77='-R$libdir'
21215 hardcode_shlibpath_var_F77=no
21216 case $host_os in
21217 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021218 *)
21219 # The compiler driver will combine linker options so we
21220 # cannot just pass the convience library names through
21221 # without $wl, iff we do not link with $LD.
21222 # Luckily, gcc supports the same syntax we need for Sun Studio.
21223 # Supported since Solaris 2.6 (maybe 2.5.1?)
21224 case $wlarc in
21225 '')
21226 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21227 *)
21228 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' ;;
21229 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000021230 esac
21231 link_all_deplibs_F77=yes
21232 ;;
21233
21234 sunos4*)
21235 if test "x$host_vendor" = xsequent; then
21236 # Use $CC to link under sequent, because it throws in some extra .o
21237 # files that make .init and .fini sections work.
21238 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21239 else
21240 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21241 fi
21242 hardcode_libdir_flag_spec_F77='-L$libdir'
21243 hardcode_direct_F77=yes
21244 hardcode_minus_L_F77=yes
21245 hardcode_shlibpath_var_F77=no
21246 ;;
21247
21248 sysv4)
21249 case $host_vendor in
21250 sni)
21251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21252 hardcode_direct_F77=yes # is this really true???
21253 ;;
21254 siemens)
21255 ## LD is ld it makes a PLAMLIB
21256 ## CC just makes a GrossModule.
21257 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21258 reload_cmds_F77='$CC -r -o $output$reload_objs'
21259 hardcode_direct_F77=no
21260 ;;
21261 motorola)
21262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21263 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21264 ;;
21265 esac
21266 runpath_var='LD_RUN_PATH'
21267 hardcode_shlibpath_var_F77=no
21268 ;;
21269
21270 sysv4.3*)
21271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21272 hardcode_shlibpath_var_F77=no
21273 export_dynamic_flag_spec_F77='-Bexport'
21274 ;;
21275
21276 sysv4*MP*)
21277 if test -d /usr/nec; then
21278 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21279 hardcode_shlibpath_var_F77=no
21280 runpath_var=LD_RUN_PATH
21281 hardcode_runpath_var=yes
21282 ld_shlibs_F77=yes
21283 fi
21284 ;;
21285
Reid Spencera773bd52006-08-04 18:18:08 +000021286 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21287 no_undefined_flag_F77='${wl}-z,text'
21288 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021289 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021290 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000021291
John Criswell47fdd832003-07-14 16:52:07 +000021292 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021293 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21294 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 +000021295 else
Reid Spencera773bd52006-08-04 18:18:08 +000021296 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21297 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 +000021298 fi
John Criswell47fdd832003-07-14 16:52:07 +000021299 ;;
21300
Reid Spencera773bd52006-08-04 18:18:08 +000021301 sysv5* | sco3.2v5* | sco5v6*)
21302 # Note: We can NOT use -z defs as we might desire, because we do not
21303 # link with -lc, and that would cause any symbols used from libc to
21304 # always be unresolved, which means just about no library would
21305 # ever link correctly. If we're not using GNU ld we use -z text
21306 # though, which does catch some bad symbols but isn't as heavy-handed
21307 # as -z defs.
21308 no_undefined_flag_F77='${wl}-z,text'
21309 allow_undefined_flag_F77='${wl}-z,nodefs'
21310 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021311 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021312 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21313 hardcode_libdir_separator_F77=':'
21314 link_all_deplibs_F77=yes
21315 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000021316 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000021317
21318 if test "$GCC" = yes; then
21319 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21320 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21321 else
21322 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21323 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21324 fi
John Criswell47fdd832003-07-14 16:52:07 +000021325 ;;
21326
21327 uts4*)
21328 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21329 hardcode_libdir_flag_spec_F77='-L$libdir'
21330 hardcode_shlibpath_var_F77=no
21331 ;;
21332
21333 *)
21334 ld_shlibs_F77=no
21335 ;;
21336 esac
21337 fi
21338
Reid Spencera773bd52006-08-04 18:18:08 +000021339{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21340echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021341test "$ld_shlibs_F77" = no && can_build_shared=no
21342
John Criswell47fdd832003-07-14 16:52:07 +000021343#
21344# Do we need to explicitly link libc?
21345#
21346case "x$archive_cmds_need_lc_F77" in
21347x|xyes)
21348 # Assume -lc should be added
21349 archive_cmds_need_lc_F77=yes
21350
21351 if test "$enable_shared" = yes && test "$GCC" = yes; then
21352 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021353 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000021354 # FIXME: we may have to deal with multi-command sequences.
21355 ;;
21356 '$CC '*)
21357 # Test whether the compiler implicitly links with -lc since on some
21358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21359 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000021360 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21361echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021362 $rm conftest*
21363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21364
21365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21366 (eval $ac_compile) 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } 2>conftest.err; then
21370 soname=conftest
21371 lib=conftest
21372 libobjs=conftest.$ac_objext
21373 deplibs=
21374 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000021375 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000021376 compiler_flags=-v
21377 linker_flags=-v
21378 verstring=
21379 output_objdir=.
21380 libname=conftest
21381 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21382 allow_undefined_flag_F77=
21383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21384 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }
21388 then
21389 archive_cmds_need_lc_F77=no
21390 else
21391 archive_cmds_need_lc_F77=yes
21392 fi
21393 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21394 else
21395 cat conftest.err 1>&5
21396 fi
21397 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000021398 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21399echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021400 ;;
21401 esac
21402 fi
21403 ;;
21404esac
21405
Reid Spencera773bd52006-08-04 18:18:08 +000021406{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21407echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021408library_names_spec=
21409libname_spec='lib$name'
21410soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000021411shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000021412postinstall_cmds=
21413postuninstall_cmds=
21414finish_cmds=
21415finish_eval=
21416shlibpath_var=
21417shlibpath_overrides_runpath=unknown
21418version_type=none
21419dynamic_linker="$host_os ld.so"
21420sys_lib_dlsearch_path_spec="/lib /usr/lib"
21421if test "$GCC" = yes; then
21422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21423 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21424 # if the path contains ";" then we assume it to be the separator
21425 # otherwise default to the standard path separator (i.e. ":") - it is
21426 # assumed that no part of a normal pathname contains ";" but that should
21427 # okay in the real world where ";" in dirpaths is itself problematic.
21428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21429 else
21430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21431 fi
21432else
21433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21434fi
21435need_lib_prefix=unknown
21436hardcode_into_libs=no
21437
21438# when you set need_version to no, make sure it does not cause -set_version
21439# flags to be left without arguments
21440need_version=unknown
21441
21442case $host_os in
21443aix3*)
21444 version_type=linux
21445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21446 shlibpath_var=LIBPATH
21447
21448 # AIX 3 has no versioning support, so we append a major version to the name.
21449 soname_spec='${libname}${release}${shared_ext}$major'
21450 ;;
21451
21452aix4* | aix5*)
21453 version_type=linux
21454 need_lib_prefix=no
21455 need_version=no
21456 hardcode_into_libs=yes
21457 if test "$host_cpu" = ia64; then
21458 # AIX 5 supports IA64
21459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21460 shlibpath_var=LD_LIBRARY_PATH
21461 else
21462 # With GCC up to 2.95.x, collect2 would create an import file
21463 # for dependence libraries. The import file would start with
21464 # the line `#! .'. This would cause the generated library to
21465 # depend on `.', always an invalid library. This was fixed in
21466 # development snapshots of GCC prior to 3.0.
21467 case $host_os in
21468 aix4 | aix4.[01] | aix4.[01].*)
21469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21470 echo ' yes '
21471 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21472 :
21473 else
21474 can_build_shared=no
21475 fi
21476 ;;
21477 esac
21478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21479 # soname into executable. Probably we can add versioning support to
21480 # collect2, so additional links can be useful in future.
21481 if test "$aix_use_runtimelinking" = yes; then
21482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21483 # instead of lib<name>.a to let people know that these are not
21484 # typical AIX shared libraries.
21485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21486 else
21487 # We preserve .a as extension for shared libraries through AIX4.2
21488 # and later when we are not doing run time linking.
21489 library_names_spec='${libname}${release}.a $libname.a'
21490 soname_spec='${libname}${release}${shared_ext}$major'
21491 fi
21492 shlibpath_var=LIBPATH
21493 fi
21494 ;;
21495
21496amigaos*)
21497 library_names_spec='$libname.ixlibrary $libname.a'
21498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021499 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 +000021500 ;;
21501
21502beos*)
21503 library_names_spec='${libname}${shared_ext}'
21504 dynamic_linker="$host_os ld.so"
21505 shlibpath_var=LIBRARY_PATH
21506 ;;
21507
Reid Spencer2706f8c2004-09-19 23:53:36 +000021508bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021509 version_type=linux
21510 need_version=no
21511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21512 soname_spec='${libname}${release}${shared_ext}$major'
21513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21514 shlibpath_var=LD_LIBRARY_PATH
21515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21517 # the default ld.so.conf also contains /usr/contrib/lib and
21518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21519 # libtool to hard-code these into programs
21520 ;;
21521
21522cygwin* | mingw* | pw32*)
21523 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000021524 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021525 need_version=no
21526 need_lib_prefix=no
21527
21528 case $GCC,$host_os in
21529 yes,cygwin* | yes,mingw* | yes,pw32*)
21530 library_names_spec='$libname.dll.a'
21531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000021532 postinstall_cmds='base_file=`basename \${file}`~
21533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21534 dldir=$destdir/`dirname \$dlpath`~
21535 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000021536 $install_prog $dir/$dlname \$dldir/$dlname~
21537 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000021538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21539 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000021540 $rm \$dlpath'
21541 shlibpath_overrides_runpath=yes
21542
21543 case $host_os in
21544 cygwin*)
21545 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21546 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 +000021547 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000021548 ;;
21549 mingw*)
21550 # MinGW DLLs use traditional 'lib' prefix
21551 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21552 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21553 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21554 # It is most probably a Windows format PATH printed by
21555 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21556 # path with ; separators, and with drive letters. We can handle the
21557 # drive letters (cygwin fileutils understands them), so leave them,
21558 # especially as we might pass files found there to a mingw objdump,
21559 # which wouldn't understand a cygwinified path. Ahh.
21560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21561 else
21562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21563 fi
21564 ;;
21565 pw32*)
21566 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000021567 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 +000021568 ;;
21569 esac
21570 ;;
21571
21572 *)
21573 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21574 ;;
21575 esac
21576 dynamic_linker='Win32 ld.exe'
21577 # FIXME: first we should search . and the directory the executable is in
21578 shlibpath_var=PATH
21579 ;;
21580
21581darwin* | rhapsody*)
21582 dynamic_linker="$host_os dyld"
21583 version_type=darwin
21584 need_lib_prefix=no
21585 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000021586 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000021587 soname_spec='${libname}${release}${major}$shared_ext'
21588 shlibpath_overrides_runpath=yes
21589 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000021590 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000021591 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021592 if test "$GCC" = yes; then
21593 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"`
21594 else
21595 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000021596 fi
21597 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21598 ;;
21599
21600dgux*)
21601 version_type=linux
21602 need_lib_prefix=no
21603 need_version=no
21604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21605 soname_spec='${libname}${release}${shared_ext}$major'
21606 shlibpath_var=LD_LIBRARY_PATH
21607 ;;
21608
21609freebsd1*)
21610 dynamic_linker=no
21611 ;;
21612
Reid Spencer2706f8c2004-09-19 23:53:36 +000021613kfreebsd*-gnu)
21614 version_type=linux
21615 need_lib_prefix=no
21616 need_version=no
21617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21618 soname_spec='${libname}${release}${shared_ext}$major'
21619 shlibpath_var=LD_LIBRARY_PATH
21620 shlibpath_overrides_runpath=no
21621 hardcode_into_libs=yes
21622 dynamic_linker='GNU ld.so'
21623 ;;
21624
Reid Spencera773bd52006-08-04 18:18:08 +000021625freebsd* | dragonfly*)
21626 # DragonFly does not have aout. When/if they implement a new
21627 # versioning mechanism, adjust this.
21628 if test -x /usr/bin/objformat; then
21629 objformat=`/usr/bin/objformat`
21630 else
21631 case $host_os in
21632 freebsd[123]*) objformat=aout ;;
21633 *) objformat=elf ;;
21634 esac
21635 fi
John Criswell47fdd832003-07-14 16:52:07 +000021636 version_type=freebsd-$objformat
21637 case $version_type in
21638 freebsd-elf*)
21639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21640 need_version=no
21641 need_lib_prefix=no
21642 ;;
21643 freebsd-*)
21644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21645 need_version=yes
21646 ;;
21647 esac
21648 shlibpath_var=LD_LIBRARY_PATH
21649 case $host_os in
21650 freebsd2*)
21651 shlibpath_overrides_runpath=yes
21652 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021653 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000021654 shlibpath_overrides_runpath=yes
21655 hardcode_into_libs=yes
21656 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021657 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21658 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000021659 shlibpath_overrides_runpath=no
21660 hardcode_into_libs=yes
21661 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021662 freebsd*) # from 4.6 on
21663 shlibpath_overrides_runpath=yes
21664 hardcode_into_libs=yes
21665 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021666 esac
21667 ;;
21668
21669gnu*)
21670 version_type=linux
21671 need_lib_prefix=no
21672 need_version=no
21673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21674 soname_spec='${libname}${release}${shared_ext}$major'
21675 shlibpath_var=LD_LIBRARY_PATH
21676 hardcode_into_libs=yes
21677 ;;
21678
21679hpux9* | hpux10* | hpux11*)
21680 # Give a soname corresponding to the major version so that dld.sl refuses to
21681 # link against other versions.
21682 version_type=sunos
21683 need_lib_prefix=no
21684 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000021685 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021686 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021687 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000021688 hardcode_into_libs=yes
21689 dynamic_linker="$host_os dld.so"
21690 shlibpath_var=LD_LIBRARY_PATH
21691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21693 soname_spec='${libname}${release}${shared_ext}$major'
21694 if test "X$HPUX_IA64_MODE" = X32; then
21695 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21696 else
21697 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21698 fi
21699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21700 ;;
21701 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021702 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021703 hardcode_into_libs=yes
21704 dynamic_linker="$host_os dld.sl"
21705 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21711 ;;
21712 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021713 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021714 dynamic_linker="$host_os dld.sl"
21715 shlibpath_var=SHLIB_PATH
21716 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21718 soname_spec='${libname}${release}${shared_ext}$major'
21719 ;;
21720 esac
21721 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21722 postinstall_cmds='chmod 555 $lib'
21723 ;;
21724
Reid Spencera773bd52006-08-04 18:18:08 +000021725interix3*)
21726 version_type=linux
21727 need_lib_prefix=no
21728 need_version=no
21729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21730 soname_spec='${libname}${release}${shared_ext}$major'
21731 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21732 shlibpath_var=LD_LIBRARY_PATH
21733 shlibpath_overrides_runpath=no
21734 hardcode_into_libs=yes
21735 ;;
21736
John Criswell47fdd832003-07-14 16:52:07 +000021737irix5* | irix6* | nonstopux*)
21738 case $host_os in
21739 nonstopux*) version_type=nonstopux ;;
21740 *)
21741 if test "$lt_cv_prog_gnu_ld" = yes; then
21742 version_type=linux
21743 else
21744 version_type=irix
21745 fi ;;
21746 esac
21747 need_lib_prefix=no
21748 need_version=no
21749 soname_spec='${libname}${release}${shared_ext}$major'
21750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21751 case $host_os in
21752 irix5* | nonstopux*)
21753 libsuff= shlibsuff=
21754 ;;
21755 *)
21756 case $LD in # libtool.m4 will add one of these switches to LD
21757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21758 libsuff= shlibsuff= libmagic=32-bit;;
21759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21760 libsuff=32 shlibsuff=N32 libmagic=N32;;
21761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21763 *) libsuff= shlibsuff= libmagic=never-match;;
21764 esac
21765 ;;
21766 esac
21767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21768 shlibpath_overrides_runpath=no
21769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21771 hardcode_into_libs=yes
21772 ;;
21773
21774# No shared lib support for Linux oldld, aout, or coff.
21775linux*oldld* | linux*aout* | linux*coff*)
21776 dynamic_linker=no
21777 ;;
21778
21779# This must be Linux ELF.
21780linux*)
21781 version_type=linux
21782 need_lib_prefix=no
21783 need_version=no
21784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21785 soname_spec='${libname}${release}${shared_ext}$major'
21786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21787 shlibpath_var=LD_LIBRARY_PATH
21788 shlibpath_overrides_runpath=no
21789 # This implies no fast_install, which is unacceptable.
21790 # Some rework will be needed to allow for fast_install
21791 # before this can be enabled.
21792 hardcode_into_libs=yes
21793
Reid Spencer2706f8c2004-09-19 23:53:36 +000021794 # Append ld.so.conf contents to the search path
21795 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000021796 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 +000021797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21798 fi
21799
John Criswell47fdd832003-07-14 16:52:07 +000021800 # We used to test for /lib/ld.so.1 and disable shared libraries on
21801 # powerpc, because MkLinux only supported shared libraries with the
21802 # GNU dynamic linker. Since this was broken with cross compilers,
21803 # most powerpc-linux boxes support dynamic linking these days and
21804 # people can always --disable-shared, the test was removed, and we
21805 # assume the GNU/Linux dynamic linker is in use.
21806 dynamic_linker='GNU/Linux ld.so'
21807 ;;
21808
Reid Spencer2706f8c2004-09-19 23:53:36 +000021809knetbsd*-gnu)
21810 version_type=linux
21811 need_lib_prefix=no
21812 need_version=no
21813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21814 soname_spec='${libname}${release}${shared_ext}$major'
21815 shlibpath_var=LD_LIBRARY_PATH
21816 shlibpath_overrides_runpath=no
21817 hardcode_into_libs=yes
21818 dynamic_linker='GNU ld.so'
21819 ;;
21820
John Criswell47fdd832003-07-14 16:52:07 +000021821netbsd*)
21822 version_type=sunos
21823 need_lib_prefix=no
21824 need_version=no
21825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21828 dynamic_linker='NetBSD (a.out) ld.so'
21829 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000021831 soname_spec='${libname}${release}${shared_ext}$major'
21832 dynamic_linker='NetBSD ld.elf_so'
21833 fi
21834 shlibpath_var=LD_LIBRARY_PATH
21835 shlibpath_overrides_runpath=yes
21836 hardcode_into_libs=yes
21837 ;;
21838
21839newsos6)
21840 version_type=linux
21841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21842 shlibpath_var=LD_LIBRARY_PATH
21843 shlibpath_overrides_runpath=yes
21844 ;;
21845
Reid Spencer2706f8c2004-09-19 23:53:36 +000021846nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000021847 version_type=linux
21848 need_lib_prefix=no
21849 need_version=no
21850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21851 soname_spec='${libname}${release}${shared_ext}$major'
21852 shlibpath_var=LD_LIBRARY_PATH
21853 shlibpath_overrides_runpath=yes
21854 ;;
21855
21856openbsd*)
21857 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000021858 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000021859 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000021860 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21861 case $host_os in
21862 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21863 *) need_version=no ;;
21864 esac
John Criswell47fdd832003-07-14 16:52:07 +000021865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21867 shlibpath_var=LD_LIBRARY_PATH
21868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21869 case $host_os in
21870 openbsd2.[89] | openbsd2.[89].*)
21871 shlibpath_overrides_runpath=no
21872 ;;
21873 *)
21874 shlibpath_overrides_runpath=yes
21875 ;;
21876 esac
21877 else
21878 shlibpath_overrides_runpath=yes
21879 fi
21880 ;;
21881
21882os2*)
21883 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021884 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021885 need_lib_prefix=no
21886 library_names_spec='$libname${shared_ext} $libname.a'
21887 dynamic_linker='OS/2 ld.exe'
21888 shlibpath_var=LIBPATH
21889 ;;
21890
21891osf3* | osf4* | osf5*)
21892 version_type=osf
21893 need_lib_prefix=no
21894 need_version=no
21895 soname_spec='${libname}${release}${shared_ext}$major'
21896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21897 shlibpath_var=LD_LIBRARY_PATH
21898 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21899 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21900 ;;
21901
John Criswell47fdd832003-07-14 16:52:07 +000021902solaris*)
21903 version_type=linux
21904 need_lib_prefix=no
21905 need_version=no
21906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21907 soname_spec='${libname}${release}${shared_ext}$major'
21908 shlibpath_var=LD_LIBRARY_PATH
21909 shlibpath_overrides_runpath=yes
21910 hardcode_into_libs=yes
21911 # ldd complains unless libraries are executable
21912 postinstall_cmds='chmod +x $lib'
21913 ;;
21914
21915sunos4*)
21916 version_type=sunos
21917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21918 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21919 shlibpath_var=LD_LIBRARY_PATH
21920 shlibpath_overrides_runpath=yes
21921 if test "$with_gnu_ld" = yes; then
21922 need_lib_prefix=no
21923 fi
21924 need_version=yes
21925 ;;
21926
Reid Spencera773bd52006-08-04 18:18:08 +000021927sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021928 version_type=linux
21929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21930 soname_spec='${libname}${release}${shared_ext}$major'
21931 shlibpath_var=LD_LIBRARY_PATH
21932 case $host_vendor in
21933 sni)
21934 shlibpath_overrides_runpath=no
21935 need_lib_prefix=no
21936 export_dynamic_flag_spec='${wl}-Blargedynsym'
21937 runpath_var=LD_RUN_PATH
21938 ;;
21939 siemens)
21940 need_lib_prefix=no
21941 ;;
21942 motorola)
21943 need_lib_prefix=no
21944 need_version=no
21945 shlibpath_overrides_runpath=no
21946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21947 ;;
21948 esac
21949 ;;
21950
21951sysv4*MP*)
21952 if test -d /usr/nec ;then
21953 version_type=linux
21954 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21955 soname_spec='$libname${shared_ext}.$major'
21956 shlibpath_var=LD_LIBRARY_PATH
21957 fi
21958 ;;
21959
Reid Spencera773bd52006-08-04 18:18:08 +000021960sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21961 version_type=freebsd-elf
21962 need_lib_prefix=no
21963 need_version=no
21964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21965 soname_spec='${libname}${release}${shared_ext}$major'
21966 shlibpath_var=LD_LIBRARY_PATH
21967 hardcode_into_libs=yes
21968 if test "$with_gnu_ld" = yes; then
21969 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21970 shlibpath_overrides_runpath=no
21971 else
21972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21973 shlibpath_overrides_runpath=yes
21974 case $host_os in
21975 sco3.2v5*)
21976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21977 ;;
21978 esac
21979 fi
21980 sys_lib_dlsearch_path_spec='/usr/lib'
21981 ;;
21982
John Criswell47fdd832003-07-14 16:52:07 +000021983uts4*)
21984 version_type=linux
21985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21986 soname_spec='${libname}${release}${shared_ext}$major'
21987 shlibpath_var=LD_LIBRARY_PATH
21988 ;;
21989
21990*)
21991 dynamic_linker=no
21992 ;;
21993esac
Reid Spencera773bd52006-08-04 18:18:08 +000021994{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21995echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021996test "$dynamic_linker" = no && can_build_shared=no
21997
Reid Spencera773bd52006-08-04 18:18:08 +000021998variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21999if test "$GCC" = yes; then
22000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22001fi
22002
22003{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22004echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022005hardcode_action_F77=
22006if test -n "$hardcode_libdir_flag_spec_F77" || \
22007 test -n "$runpath_var_F77" || \
22008 test "X$hardcode_automatic_F77" = "Xyes" ; then
22009
22010 # We can hardcode non-existant directories.
22011 if test "$hardcode_direct_F77" != no &&
22012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22013 # have to relink, otherwise we might link with an installed library
22014 # when we should be linking with a yet-to-be-installed one
22015 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22016 test "$hardcode_minus_L_F77" != no; then
22017 # Linking always hardcodes the temporary library directory.
22018 hardcode_action_F77=relink
22019 else
22020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22021 hardcode_action_F77=immediate
22022 fi
22023else
22024 # We cannot hardcode anything, or else we can only hardcode existing
22025 # directories.
22026 hardcode_action_F77=unsupported
22027fi
Reid Spencera773bd52006-08-04 18:18:08 +000022028{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22029echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022030
22031if test "$hardcode_action_F77" = relink; then
22032 # Fast installation is not supported
22033 enable_fast_install=no
22034elif test "$shlibpath_overrides_runpath" = yes ||
22035 test "$enable_shared" = no; then
22036 # Fast installation is not necessary
22037 enable_fast_install=needless
22038fi
22039
John Criswell47fdd832003-07-14 16:52:07 +000022040
22041# The else clause should only fire when bootstrapping the
22042# libtool distribution, otherwise you forgot to ship ltmain.sh
22043# with your package, and you will get complaints that there are
22044# no rules to generate ltmain.sh.
22045if test -f "$ltmain"; then
22046 # See if we are running on zsh, and set the options which allow our commands through
22047 # without removal of \ escapes.
22048 if test -n "${ZSH_VERSION+set}" ; then
22049 setopt NO_GLOB_SUBST
22050 fi
22051 # Now quote all the things that may contain metacharacters while being
22052 # careful not to overquote the AC_SUBSTed values. We take copies of the
22053 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022054 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 +000022055 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022056 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22057 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22058 deplibs_check_method reload_flag reload_cmds need_locks \
22059 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22060 lt_cv_sys_global_symbol_to_c_name_address \
22061 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22062 old_postinstall_cmds old_postuninstall_cmds \
22063 compiler_F77 \
22064 CC_F77 \
22065 LD_F77 \
22066 lt_prog_compiler_wl_F77 \
22067 lt_prog_compiler_pic_F77 \
22068 lt_prog_compiler_static_F77 \
22069 lt_prog_compiler_no_builtin_flag_F77 \
22070 export_dynamic_flag_spec_F77 \
22071 thread_safe_flag_spec_F77 \
22072 whole_archive_flag_spec_F77 \
22073 enable_shared_with_static_runtimes_F77 \
22074 old_archive_cmds_F77 \
22075 old_archive_from_new_cmds_F77 \
22076 predep_objects_F77 \
22077 postdep_objects_F77 \
22078 predeps_F77 \
22079 postdeps_F77 \
22080 compiler_lib_search_path_F77 \
22081 archive_cmds_F77 \
22082 archive_expsym_cmds_F77 \
22083 postinstall_cmds_F77 \
22084 postuninstall_cmds_F77 \
22085 old_archive_from_expsyms_cmds_F77 \
22086 allow_undefined_flag_F77 \
22087 no_undefined_flag_F77 \
22088 export_symbols_cmds_F77 \
22089 hardcode_libdir_flag_spec_F77 \
22090 hardcode_libdir_flag_spec_ld_F77 \
22091 hardcode_libdir_separator_F77 \
22092 hardcode_automatic_F77 \
22093 module_cmds_F77 \
22094 module_expsym_cmds_F77 \
22095 lt_cv_prog_compiler_c_o_F77 \
22096 exclude_expsyms_F77 \
22097 include_expsyms_F77; do
22098
22099 case $var in
22100 old_archive_cmds_F77 | \
22101 old_archive_from_new_cmds_F77 | \
22102 archive_cmds_F77 | \
22103 archive_expsym_cmds_F77 | \
22104 module_cmds_F77 | \
22105 module_expsym_cmds_F77 | \
22106 old_archive_from_expsyms_cmds_F77 | \
22107 export_symbols_cmds_F77 | \
22108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22109 postinstall_cmds | postuninstall_cmds | \
22110 old_postinstall_cmds | old_postuninstall_cmds | \
22111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22112 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022113 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 +000022114 ;;
22115 *)
22116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22117 ;;
22118 esac
22119 done
22120
22121 case $lt_echo in
22122 *'\$0 --fallback-echo"')
22123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22124 ;;
22125 esac
22126
22127cfgfile="$ofile"
22128
22129 cat <<__EOF__ >> "$cfgfile"
22130# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22131
22132# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22133
22134# Shell to use when invoking shell scripts.
22135SHELL=$lt_SHELL
22136
22137# Whether or not to build shared libraries.
22138build_libtool_libs=$enable_shared
22139
22140# Whether or not to build static libraries.
22141build_old_libs=$enable_static
22142
22143# Whether or not to add -lc for building shared libraries.
22144build_libtool_need_lc=$archive_cmds_need_lc_F77
22145
22146# Whether or not to disallow shared libs when runtime libs are static
22147allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22148
22149# Whether or not to optimize for fast installation.
22150fast_install=$enable_fast_install
22151
22152# The host system.
22153host_alias=$host_alias
22154host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000022155host_os=$host_os
22156
22157# The build system.
22158build_alias=$build_alias
22159build=$build
22160build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000022161
22162# An echo program that does not interpret backslashes.
22163echo=$lt_echo
22164
22165# The archiver.
22166AR=$lt_AR
22167AR_FLAGS=$lt_AR_FLAGS
22168
22169# A C compiler.
22170LTCC=$lt_LTCC
22171
Reid Spencera773bd52006-08-04 18:18:08 +000022172# LTCC compiler flags.
22173LTCFLAGS=$lt_LTCFLAGS
22174
John Criswell47fdd832003-07-14 16:52:07 +000022175# A language-specific compiler.
22176CC=$lt_compiler_F77
22177
22178# Is the compiler the GNU C compiler?
22179with_gcc=$GCC_F77
22180
22181# An ERE matcher.
22182EGREP=$lt_EGREP
22183
22184# The linker used to build libraries.
22185LD=$lt_LD_F77
22186
22187# Whether we need hard or soft links.
22188LN_S=$lt_LN_S
22189
22190# A BSD-compatible nm program.
22191NM=$lt_NM
22192
22193# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000022194STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000022195
22196# Used to examine libraries when file_magic_cmd begins "file"
22197MAGIC_CMD=$MAGIC_CMD
22198
22199# Used on cygwin: DLL creation program.
22200DLLTOOL="$DLLTOOL"
22201
22202# Used on cygwin: object dumper.
22203OBJDUMP="$OBJDUMP"
22204
22205# Used on cygwin: assembler.
22206AS="$AS"
22207
22208# The name of the directory that contains temporary libtool files.
22209objdir=$objdir
22210
22211# How to create reloadable object files.
22212reload_flag=$lt_reload_flag
22213reload_cmds=$lt_reload_cmds
22214
22215# How to pass a linker flag through the compiler.
22216wl=$lt_lt_prog_compiler_wl_F77
22217
22218# Object file suffix (normally "o").
22219objext="$ac_objext"
22220
22221# Old archive suffix (normally "a").
22222libext="$libext"
22223
22224# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000022225shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000022226
22227# Executable file suffix (normally "").
22228exeext="$exeext"
22229
22230# Additional compiler flags for building library objects.
22231pic_flag=$lt_lt_prog_compiler_pic_F77
22232pic_mode=$pic_mode
22233
22234# What is the maximum length of a command?
22235max_cmd_len=$lt_cv_sys_max_cmd_len
22236
22237# Does compiler simultaneously support -c and -o options?
22238compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22239
Reid Spencera773bd52006-08-04 18:18:08 +000022240# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000022241need_locks=$lt_need_locks
22242
22243# Do we need the lib prefix for modules?
22244need_lib_prefix=$need_lib_prefix
22245
22246# Do we need a version for libraries?
22247need_version=$need_version
22248
22249# Whether dlopen is supported.
22250dlopen_support=$enable_dlopen
22251
22252# Whether dlopen of programs is supported.
22253dlopen_self=$enable_dlopen_self
22254
22255# Whether dlopen of statically linked programs is supported.
22256dlopen_self_static=$enable_dlopen_self_static
22257
22258# Compiler flag to prevent dynamic linking.
22259link_static_flag=$lt_lt_prog_compiler_static_F77
22260
22261# Compiler flag to turn off builtin functions.
22262no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22263
22264# Compiler flag to allow reflexive dlopens.
22265export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22266
22267# Compiler flag to generate shared objects directly from archives.
22268whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22269
22270# Compiler flag to generate thread-safe objects.
22271thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22272
22273# Library versioning type.
22274version_type=$version_type
22275
22276# Format of library name prefix.
22277libname_spec=$lt_libname_spec
22278
22279# List of archive names. First name is the real one, the rest are links.
22280# The last name is the one that the linker finds with -lNAME.
22281library_names_spec=$lt_library_names_spec
22282
22283# The coded name of the library, if different from the real name.
22284soname_spec=$lt_soname_spec
22285
22286# Commands used to build and install an old-style archive.
22287RANLIB=$lt_RANLIB
22288old_archive_cmds=$lt_old_archive_cmds_F77
22289old_postinstall_cmds=$lt_old_postinstall_cmds
22290old_postuninstall_cmds=$lt_old_postuninstall_cmds
22291
22292# Create an old-style archive from a shared archive.
22293old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22294
22295# Create a temporary old-style archive to link instead of a shared archive.
22296old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22297
22298# Commands used to build and install a shared archive.
22299archive_cmds=$lt_archive_cmds_F77
22300archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22301postinstall_cmds=$lt_postinstall_cmds
22302postuninstall_cmds=$lt_postuninstall_cmds
22303
22304# Commands used to build a loadable module (assumed same as above if empty)
22305module_cmds=$lt_module_cmds_F77
22306module_expsym_cmds=$lt_module_expsym_cmds_F77
22307
22308# Commands to strip libraries.
22309old_striplib=$lt_old_striplib
22310striplib=$lt_striplib
22311
22312# Dependencies to place before the objects being linked to create a
22313# shared library.
22314predep_objects=$lt_predep_objects_F77
22315
22316# Dependencies to place after the objects being linked to create a
22317# shared library.
22318postdep_objects=$lt_postdep_objects_F77
22319
22320# Dependencies to place before the objects being linked to create a
22321# shared library.
22322predeps=$lt_predeps_F77
22323
22324# Dependencies to place after the objects being linked to create a
22325# shared library.
22326postdeps=$lt_postdeps_F77
22327
22328# The library search path used internally by the compiler when linking
22329# a shared library.
22330compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22331
22332# Method to check whether dependent libraries are shared objects.
22333deplibs_check_method=$lt_deplibs_check_method
22334
22335# Command to use when deplibs_check_method == file_magic.
22336file_magic_cmd=$lt_file_magic_cmd
22337
22338# Flag that allows shared libraries with undefined symbols to be built.
22339allow_undefined_flag=$lt_allow_undefined_flag_F77
22340
22341# Flag that forces no undefined symbols.
22342no_undefined_flag=$lt_no_undefined_flag_F77
22343
22344# Commands used to finish a libtool library installation in a directory.
22345finish_cmds=$lt_finish_cmds
22346
22347# Same as above, but a single script fragment to be evaled but not shown.
22348finish_eval=$lt_finish_eval
22349
22350# Take the output of nm and produce a listing of raw symbols and C names.
22351global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22352
22353# Transform the output of nm in a proper C declaration
22354global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22355
22356# Transform the output of nm in a C name address pair
22357global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22358
22359# This is the shared library runtime path variable.
22360runpath_var=$runpath_var
22361
22362# This is the shared library path variable.
22363shlibpath_var=$shlibpath_var
22364
22365# Is shlibpath searched before the hard-coded library search path?
22366shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22367
22368# How to hardcode a shared library path into an executable.
22369hardcode_action=$hardcode_action_F77
22370
22371# Whether we should hardcode library paths into libraries.
22372hardcode_into_libs=$hardcode_into_libs
22373
22374# Flag to hardcode \$libdir into a binary during linking.
22375# This must work even if \$libdir does not exist.
22376hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22377
22378# If ld is used when linking, flag to hardcode \$libdir into
22379# a binary during linking. This must work even if \$libdir does
22380# not exist.
22381hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22382
22383# Whether we need a single -rpath flag with a separated argument.
22384hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22385
22386# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22387# resulting binary.
22388hardcode_direct=$hardcode_direct_F77
22389
22390# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22391# resulting binary.
22392hardcode_minus_L=$hardcode_minus_L_F77
22393
22394# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22395# the resulting binary.
22396hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22397
22398# Set to yes if building a shared library automatically hardcodes DIR into the library
22399# and all subsequent libraries and executables linked against it.
22400hardcode_automatic=$hardcode_automatic_F77
22401
22402# Variables whose values should be saved in libtool wrapper scripts and
22403# restored at relink time.
22404variables_saved_for_relink="$variables_saved_for_relink"
22405
22406# Whether libtool must link a program against all its dependency libraries.
22407link_all_deplibs=$link_all_deplibs_F77
22408
22409# Compile-time system search path for libraries
22410sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22411
22412# Run-time system search path for libraries
22413sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22414
22415# Fix the shell variable \$srcfile for the compiler.
22416fix_srcfile_path="$fix_srcfile_path_F77"
22417
22418# Set to yes if exported symbols are required.
22419always_export_symbols=$always_export_symbols_F77
22420
22421# The commands to list exported symbols.
22422export_symbols_cmds=$lt_export_symbols_cmds_F77
22423
22424# The commands to extract the exported symbol list from a shared archive.
22425extract_expsyms_cmds=$lt_extract_expsyms_cmds
22426
22427# Symbols that should not be listed in the preloaded symbols.
22428exclude_expsyms=$lt_exclude_expsyms_F77
22429
22430# Symbols that must always be exported.
22431include_expsyms=$lt_include_expsyms_F77
22432
22433# ### END LIBTOOL TAG CONFIG: $tagname
22434
22435__EOF__
22436
22437
22438else
22439 # If there is no Makefile yet, we rely on a make rule to execute
22440 # `config.status --recheck' to rerun these tests and create the
22441 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022442 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22443 if test -f "$ltmain_in"; then
22444 test -f Makefile && make "$ltmain"
22445 fi
John Criswell47fdd832003-07-14 16:52:07 +000022446fi
22447
22448
22449ac_ext=c
22450ac_cpp='$CPP $CPPFLAGS'
22451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22453ac_compiler_gnu=$ac_cv_c_compiler_gnu
22454
22455CC="$lt_save_CC"
22456
22457 else
22458 tagname=""
22459 fi
22460 ;;
22461
22462 GCJ)
22463 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000022464 ac_ext=c
22465ac_cpp='$CPP $CPPFLAGS'
22466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22468ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000022469
22470
22471# Source file extension for Java test sources.
22472ac_ext=java
22473
22474# Object file extension for compiled Java test sources.
22475objext=o
22476objext_GCJ=$objext
22477
22478# Code to be used in simple compile tests
22479lt_simple_compile_test_code="class foo {}\n"
22480
22481# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000022482lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000022483
22484# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22485
22486# If no C compiler was specified, use CC.
22487LTCC=${LTCC-"$CC"}
22488
Reid Spencera773bd52006-08-04 18:18:08 +000022489# If no C compiler flags were specified, use CFLAGS.
22490LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22491
John Criswell47fdd832003-07-14 16:52:07 +000022492# Allow CC to be a program name with arguments.
22493compiler=$CC
22494
22495
Reid Spencera773bd52006-08-04 18:18:08 +000022496# save warnings/boilerplate of simple test code
22497ac_outfile=conftest.$ac_objext
22498printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22499eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22500_lt_compiler_boilerplate=`cat conftest.err`
22501$rm conftest*
22502
22503ac_outfile=conftest.$ac_objext
22504printf "$lt_simple_link_test_code" >conftest.$ac_ext
22505eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22506_lt_linker_boilerplate=`cat conftest.err`
22507$rm conftest*
22508
22509
John Criswell47fdd832003-07-14 16:52:07 +000022510# Allow CC to be a program name with arguments.
22511lt_save_CC="$CC"
22512CC=${GCJ-"gcj"}
22513compiler=$CC
22514compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000022515for cc_temp in $compiler""; do
22516 case $cc_temp in
22517 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22518 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22519 \-*) ;;
22520 *) break;;
22521 esac
22522done
22523cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22524
John Criswell47fdd832003-07-14 16:52:07 +000022525
22526# GCJ did not exist at the time GCC didn't implicitly link libc in.
22527archive_cmds_need_lc_GCJ=no
22528
Reid Spencera773bd52006-08-04 18:18:08 +000022529old_archive_cmds_GCJ=$old_archive_cmds
22530
John Criswell47fdd832003-07-14 16:52:07 +000022531
22532lt_prog_compiler_no_builtin_flag_GCJ=
22533
22534if test "$GCC" = yes; then
22535 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22536
Reid Spencer2706f8c2004-09-19 23:53:36 +000022537
Reid Spencera773bd52006-08-04 18:18:08 +000022538{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22539echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022540if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22541 echo $ECHO_N "(cached) $ECHO_C" >&6
22542else
22543 lt_cv_prog_compiler_rtti_exceptions=no
22544 ac_outfile=conftest.$ac_objext
22545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22546 lt_compiler_flag="-fno-rtti -fno-exceptions"
22547 # Insert the option either (1) after the last *FLAGS variable, or
22548 # (2) before a word containing "conftest.", or (3) at the end.
22549 # Note that $ac_compile itself does not contain backslashes and begins
22550 # with a dollar sign (not a hyphen), so the echo should work correctly.
22551 # The option is referenced via a variable to avoid confusing sed.
22552 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22555 -e 's:$: $lt_compiler_flag:'`
Duncan Sands1eff7042007-12-10 17:43:13 +000022556 (eval echo "\"\$as_me:22556: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022557 (eval "$lt_compile" 2>conftest.err)
22558 ac_status=$?
22559 cat conftest.err >&5
Duncan Sands1eff7042007-12-10 17:43:13 +000022560 echo "$as_me:22560: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022561 if (exit $ac_status) && test -s "$ac_outfile"; then
22562 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000022563 # So say no if there are warnings other than the usual output.
22564 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22566 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022567 lt_cv_prog_compiler_rtti_exceptions=yes
22568 fi
22569 fi
22570 $rm conftest*
22571
22572fi
Reid Spencera773bd52006-08-04 18:18:08 +000022573{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22574echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022575
22576if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22577 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22578else
22579 :
22580fi
22581
22582fi
22583
22584lt_prog_compiler_wl_GCJ=
22585lt_prog_compiler_pic_GCJ=
22586lt_prog_compiler_static_GCJ=
22587
Reid Spencera773bd52006-08-04 18:18:08 +000022588{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22589echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022590
22591 if test "$GCC" = yes; then
22592 lt_prog_compiler_wl_GCJ='-Wl,'
22593 lt_prog_compiler_static_GCJ='-static'
22594
22595 case $host_os in
22596 aix*)
22597 # All AIX code is PIC.
22598 if test "$host_cpu" = ia64; then
22599 # AIX 5 now supports IA64 processor
22600 lt_prog_compiler_static_GCJ='-Bstatic'
22601 fi
22602 ;;
22603
22604 amigaos*)
22605 # FIXME: we need at least 68020 code to build shared libraries, but
22606 # adding the `-m68020' flag to GCC prevents building anything better,
22607 # like `-m68040'.
22608 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22609 ;;
22610
22611 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22612 # PIC is the default for these OSes.
22613 ;;
22614
22615 mingw* | pw32* | os2*)
22616 # This hack is so that the source file can tell whether it is being
22617 # built for inclusion in a dll (and should export symbols for example).
22618 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22619 ;;
22620
22621 darwin* | rhapsody*)
22622 # PIC is the default on this platform
22623 # Common symbols not allowed in MH_DYLIB files
22624 lt_prog_compiler_pic_GCJ='-fno-common'
22625 ;;
22626
Reid Spencera773bd52006-08-04 18:18:08 +000022627 interix3*)
22628 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22629 # Instead, we relocate shared libraries at runtime.
22630 ;;
22631
John Criswell47fdd832003-07-14 16:52:07 +000022632 msdosdjgpp*)
22633 # Just because we use GCC doesn't mean we suddenly get shared libraries
22634 # on systems that don't support them.
22635 lt_prog_compiler_can_build_shared_GCJ=no
22636 enable_shared=no
22637 ;;
22638
22639 sysv4*MP*)
22640 if test -d /usr/nec; then
22641 lt_prog_compiler_pic_GCJ=-Kconform_pic
22642 fi
22643 ;;
22644
22645 hpux*)
22646 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22647 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022648 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022649 hppa*64*|ia64*)
22650 # +Z the default
22651 ;;
22652 *)
22653 lt_prog_compiler_pic_GCJ='-fPIC'
22654 ;;
22655 esac
22656 ;;
22657
22658 *)
22659 lt_prog_compiler_pic_GCJ='-fPIC'
22660 ;;
22661 esac
22662 else
22663 # PORTME Check for flag to pass linker flags through the system compiler.
22664 case $host_os in
22665 aix*)
22666 lt_prog_compiler_wl_GCJ='-Wl,'
22667 if test "$host_cpu" = ia64; then
22668 # AIX 5 now supports IA64 processor
22669 lt_prog_compiler_static_GCJ='-Bstatic'
22670 else
22671 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22672 fi
22673 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022674 darwin*)
22675 # PIC is the default on this platform
22676 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000022677 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022678 xlc*)
22679 lt_prog_compiler_pic_GCJ='-qnocommon'
22680 lt_prog_compiler_wl_GCJ='-Wl,'
22681 ;;
22682 esac
22683 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022684
22685 mingw* | pw32* | os2*)
22686 # This hack is so that the source file can tell whether it is being
22687 # built for inclusion in a dll (and should export symbols for example).
22688 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22689 ;;
22690
22691 hpux9* | hpux10* | hpux11*)
22692 lt_prog_compiler_wl_GCJ='-Wl,'
22693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22694 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022695 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022696 hppa*64*|ia64*)
22697 # +Z the default
22698 ;;
22699 *)
22700 lt_prog_compiler_pic_GCJ='+Z'
22701 ;;
22702 esac
22703 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22704 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22705 ;;
22706
22707 irix5* | irix6* | nonstopux*)
22708 lt_prog_compiler_wl_GCJ='-Wl,'
22709 # PIC (with -KPIC) is the default.
22710 lt_prog_compiler_static_GCJ='-non_shared'
22711 ;;
22712
22713 newsos6)
22714 lt_prog_compiler_pic_GCJ='-KPIC'
22715 lt_prog_compiler_static_GCJ='-Bstatic'
22716 ;;
22717
22718 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000022719 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022720 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000022721 lt_prog_compiler_wl_GCJ='-Wl,'
22722 lt_prog_compiler_pic_GCJ='-KPIC'
22723 lt_prog_compiler_static_GCJ='-static'
22724 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022725 pgcc* | pgf77* | pgf90* | pgf95*)
22726 # Portland Group compilers (*not* the Pentium gcc compiler,
22727 # which looks to be a dead project)
22728 lt_prog_compiler_wl_GCJ='-Wl,'
22729 lt_prog_compiler_pic_GCJ='-fpic'
22730 lt_prog_compiler_static_GCJ='-Bstatic'
22731 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022732 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000022733 lt_prog_compiler_wl_GCJ='-Wl,'
22734 # All Alpha code is PIC.
22735 lt_prog_compiler_static_GCJ='-non_shared'
22736 ;;
22737 esac
22738 ;;
22739
22740 osf3* | osf4* | osf5*)
22741 lt_prog_compiler_wl_GCJ='-Wl,'
22742 # All OSF/1 code is PIC.
22743 lt_prog_compiler_static_GCJ='-non_shared'
22744 ;;
22745
John Criswell47fdd832003-07-14 16:52:07 +000022746 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022747 lt_prog_compiler_pic_GCJ='-KPIC'
22748 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000022749 case $cc_basename in
22750 f77* | f90* | f95*)
22751 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22752 *)
22753 lt_prog_compiler_wl_GCJ='-Wl,';;
22754 esac
John Criswell47fdd832003-07-14 16:52:07 +000022755 ;;
22756
22757 sunos4*)
22758 lt_prog_compiler_wl_GCJ='-Qoption ld '
22759 lt_prog_compiler_pic_GCJ='-PIC'
22760 lt_prog_compiler_static_GCJ='-Bstatic'
22761 ;;
22762
Reid Spencera773bd52006-08-04 18:18:08 +000022763 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022764 lt_prog_compiler_wl_GCJ='-Wl,'
22765 lt_prog_compiler_pic_GCJ='-KPIC'
22766 lt_prog_compiler_static_GCJ='-Bstatic'
22767 ;;
22768
22769 sysv4*MP*)
22770 if test -d /usr/nec ;then
22771 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22772 lt_prog_compiler_static_GCJ='-Bstatic'
22773 fi
22774 ;;
22775
Reid Spencera773bd52006-08-04 18:18:08 +000022776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22777 lt_prog_compiler_wl_GCJ='-Wl,'
22778 lt_prog_compiler_pic_GCJ='-KPIC'
22779 lt_prog_compiler_static_GCJ='-Bstatic'
22780 ;;
22781
22782 unicos*)
22783 lt_prog_compiler_wl_GCJ='-Wl,'
22784 lt_prog_compiler_can_build_shared_GCJ=no
22785 ;;
22786
John Criswell47fdd832003-07-14 16:52:07 +000022787 uts4*)
22788 lt_prog_compiler_pic_GCJ='-pic'
22789 lt_prog_compiler_static_GCJ='-Bstatic'
22790 ;;
22791
22792 *)
22793 lt_prog_compiler_can_build_shared_GCJ=no
22794 ;;
22795 esac
22796 fi
22797
Reid Spencera773bd52006-08-04 18:18:08 +000022798{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22799echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022800
22801#
22802# Check to make sure the PIC flag actually works.
22803#
22804if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000022805
Reid Spencera773bd52006-08-04 18:18:08 +000022806{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22807echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022808if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22809 echo $ECHO_N "(cached) $ECHO_C" >&6
22810else
22811 lt_prog_compiler_pic_works_GCJ=no
22812 ac_outfile=conftest.$ac_objext
22813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22814 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22815 # Insert the option either (1) after the last *FLAGS variable, or
22816 # (2) before a word containing "conftest.", or (3) at the end.
22817 # Note that $ac_compile itself does not contain backslashes and begins
22818 # with a dollar sign (not a hyphen), so the echo should work correctly.
22819 # The option is referenced via a variable to avoid confusing sed.
22820 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22823 -e 's:$: $lt_compiler_flag:'`
Duncan Sands1eff7042007-12-10 17:43:13 +000022824 (eval echo "\"\$as_me:22824: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022825 (eval "$lt_compile" 2>conftest.err)
22826 ac_status=$?
22827 cat conftest.err >&5
Duncan Sands1eff7042007-12-10 17:43:13 +000022828 echo "$as_me:22828: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022829 if (exit $ac_status) && test -s "$ac_outfile"; then
22830 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000022831 # So say no if there are warnings other than the usual output.
22832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022835 lt_prog_compiler_pic_works_GCJ=yes
22836 fi
22837 fi
22838 $rm conftest*
22839
22840fi
Reid Spencera773bd52006-08-04 18:18:08 +000022841{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22842echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022843
22844if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22845 case $lt_prog_compiler_pic_GCJ in
22846 "" | " "*) ;;
22847 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22848 esac
22849else
22850 lt_prog_compiler_pic_GCJ=
22851 lt_prog_compiler_can_build_shared_GCJ=no
22852fi
22853
22854fi
Reid Spencera773bd52006-08-04 18:18:08 +000022855case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000022856 # For platforms which do not support PIC, -DPIC is meaningless:
22857 *djgpp*)
22858 lt_prog_compiler_pic_GCJ=
22859 ;;
22860 *)
22861 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22862 ;;
22863esac
22864
Reid Spencera773bd52006-08-04 18:18:08 +000022865#
22866# Check to make sure the static flag actually works.
22867#
22868wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22869{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22870echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22871if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22873else
22874 lt_prog_compiler_static_works_GCJ=no
22875 save_LDFLAGS="$LDFLAGS"
22876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22877 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22879 # The linker can only warn and ignore the option if not recognized
22880 # So say no if there are warnings
22881 if test -s conftest.err; then
22882 # Append any errors to the config.log.
22883 cat conftest.err 1>&5
22884 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22886 if diff conftest.exp conftest.er2 >/dev/null; then
22887 lt_prog_compiler_static_works_GCJ=yes
22888 fi
22889 else
22890 lt_prog_compiler_static_works_GCJ=yes
22891 fi
22892 fi
22893 $rm conftest*
22894 LDFLAGS="$save_LDFLAGS"
22895
22896fi
22897{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22898echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22899
22900if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22901 :
22902else
22903 lt_prog_compiler_static_GCJ=
22904fi
22905
22906
22907{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22908echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022909if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22910 echo $ECHO_N "(cached) $ECHO_C" >&6
22911else
22912 lt_cv_prog_compiler_c_o_GCJ=no
22913 $rm -r conftest 2>/dev/null
22914 mkdir conftest
22915 cd conftest
22916 mkdir out
22917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22918
John Criswell47fdd832003-07-14 16:52:07 +000022919 lt_compiler_flag="-o out/conftest2.$ac_objext"
22920 # Insert the option either (1) after the last *FLAGS variable, or
22921 # (2) before a word containing "conftest.", or (3) at the end.
22922 # Note that $ac_compile itself does not contain backslashes and begins
22923 # with a dollar sign (not a hyphen), so the echo should work correctly.
22924 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22927 -e 's:$: $lt_compiler_flag:'`
Duncan Sands1eff7042007-12-10 17:43:13 +000022928 (eval echo "\"\$as_me:22928: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022929 (eval "$lt_compile" 2>out/conftest.err)
22930 ac_status=$?
22931 cat out/conftest.err >&5
Duncan Sands1eff7042007-12-10 17:43:13 +000022932 echo "$as_me:22932: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22934 then
22935 # The compiler can only warn and ignore the option if not recognized
22936 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000022937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022940 lt_cv_prog_compiler_c_o_GCJ=yes
22941 fi
22942 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022943 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022944 $rm conftest*
22945 # SGI C++ compiler will create directory out/ii_files/ for
22946 # template instantiation
22947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22948 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000022949 cd ..
22950 rmdir conftest
22951 $rm conftest*
22952
22953fi
Reid Spencera773bd52006-08-04 18:18:08 +000022954{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22955echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022956
22957
22958hard_links="nottested"
22959if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22960 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000022961 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22962echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022963 hard_links=yes
22964 $rm conftest*
22965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22966 touch conftest.a
22967 ln conftest.a conftest.b 2>&5 || hard_links=no
22968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000022969 { echo "$as_me:$LINENO: result: $hard_links" >&5
22970echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022971 if test "$hard_links" = no; then
22972 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22973echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22974 need_locks=warn
22975 fi
22976else
22977 need_locks=no
22978fi
22979
Reid Spencera773bd52006-08-04 18:18:08 +000022980{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22981echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022982
22983 runpath_var=
22984 allow_undefined_flag_GCJ=
22985 enable_shared_with_static_runtimes_GCJ=no
22986 archive_cmds_GCJ=
22987 archive_expsym_cmds_GCJ=
22988 old_archive_From_new_cmds_GCJ=
22989 old_archive_from_expsyms_cmds_GCJ=
22990 export_dynamic_flag_spec_GCJ=
22991 whole_archive_flag_spec_GCJ=
22992 thread_safe_flag_spec_GCJ=
22993 hardcode_libdir_flag_spec_GCJ=
22994 hardcode_libdir_flag_spec_ld_GCJ=
22995 hardcode_libdir_separator_GCJ=
22996 hardcode_direct_GCJ=no
22997 hardcode_minus_L_GCJ=no
22998 hardcode_shlibpath_var_GCJ=unsupported
22999 link_all_deplibs_GCJ=unknown
23000 hardcode_automatic_GCJ=no
23001 module_cmds_GCJ=
23002 module_expsym_cmds_GCJ=
23003 always_export_symbols_GCJ=no
23004 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23005 # include_expsyms should be a list of space-separated symbols to be *always*
23006 # included in the symbol list
23007 include_expsyms_GCJ=
23008 # exclude_expsyms can be an extended regexp of symbols to exclude
23009 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23011 # as well as any symbol that contains `d'.
23012 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23014 # platforms (ab)use it in PIC code, but their linkers get confused if
23015 # the symbol is explicitly referenced. Since portable code cannot
23016 # rely on this symbol name, it's probably fine to never include it in
23017 # preloaded symbol tables.
23018 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023019 # Just being paranoid about ensuring that cc_basename is set.
23020 for cc_temp in $compiler""; do
23021 case $cc_temp in
23022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23024 \-*) ;;
23025 *) break;;
23026 esac
23027done
23028cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023029
23030 case $host_os in
23031 cygwin* | mingw* | pw32*)
23032 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23033 # When not using gcc, we currently assume that we are using
23034 # Microsoft Visual C++.
23035 if test "$GCC" != yes; then
23036 with_gnu_ld=no
23037 fi
23038 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023039 interix*)
23040 # we just hope/assume this is gcc and not c89 (= MSVC++)
23041 with_gnu_ld=yes
23042 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023043 openbsd*)
23044 with_gnu_ld=no
23045 ;;
23046 esac
23047
23048 ld_shlibs_GCJ=yes
23049 if test "$with_gnu_ld" = yes; then
23050 # If archive_cmds runs LD, not CC, wlarc should be empty
23051 wlarc='${wl}'
23052
Reid Spencera773bd52006-08-04 18:18:08 +000023053 # Set some defaults for GNU ld with shared library support. These
23054 # are reset later if shared libraries are not supported. Putting them
23055 # here allows them to be overridden if necessary.
23056 runpath_var=LD_RUN_PATH
23057 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23058 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23059 # ancient GNU ld didn't support --whole-archive et. al.
23060 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23061 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23062 else
23063 whole_archive_flag_spec_GCJ=
23064 fi
23065 supports_anon_versioning=no
23066 case `$LD -v 2>/dev/null` in
23067 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23068 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23069 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23070 *\ 2.11.*) ;; # other 2.11 versions
23071 *) supports_anon_versioning=yes ;;
23072 esac
23073
John Criswell47fdd832003-07-14 16:52:07 +000023074 # See if GNU ld supports shared libraries.
23075 case $host_os in
23076 aix3* | aix4* | aix5*)
23077 # On AIX/PPC, the GNU linker is very broken
23078 if test "$host_cpu" != ia64; then
23079 ld_shlibs_GCJ=no
23080 cat <<EOF 1>&2
23081
23082*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23083*** to be unable to reliably create shared libraries on AIX.
23084*** Therefore, libtool is disabling shared libraries support. If you
23085*** really care for shared libraries, you may want to modify your PATH
23086*** so that a non-GNU linker is found, and then restart.
23087
23088EOF
23089 fi
23090 ;;
23091
23092 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023093 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 +000023094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23095 hardcode_minus_L_GCJ=yes
23096
23097 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23098 # that the semantics of dynamic libraries on AmigaOS, at least up
23099 # to version 4, is to share data among multiple programs linked
23100 # with the same dynamic library. Since this doesn't match the
23101 # behavior of shared libraries on other platforms, we can't use
23102 # them.
23103 ld_shlibs_GCJ=no
23104 ;;
23105
23106 beos*)
23107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23108 allow_undefined_flag_GCJ=unsupported
23109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23110 # support --undefined. This deserves some investigation. FIXME
23111 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23112 else
23113 ld_shlibs_GCJ=no
23114 fi
23115 ;;
23116
23117 cygwin* | mingw* | pw32*)
23118 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23119 # as there is no search path for DLLs.
23120 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23121 allow_undefined_flag_GCJ=unsupported
23122 always_export_symbols_GCJ=no
23123 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023124 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 +000023125
23126 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000023127 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 +000023128 # If the export-symbols file already is a .def file (1st line
23129 # is EXPORTS), use it as is; otherwise, prepend...
23130 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23131 cp $export_symbols $output_objdir/$soname.def;
23132 else
23133 echo EXPORTS > $output_objdir/$soname.def;
23134 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000023135 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000023136 $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 +000023137 else
Reid Spencera773bd52006-08-04 18:18:08 +000023138 ld_shlibs_GCJ=no
23139 fi
23140 ;;
23141
23142 interix3*)
23143 hardcode_direct_GCJ=no
23144 hardcode_shlibpath_var_GCJ=no
23145 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23146 export_dynamic_flag_spec_GCJ='${wl}-E'
23147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23148 # Instead, shared libraries are loaded at an image base (0x10000000 by
23149 # default) and relocated if they conflict, which is a slow very memory
23150 # consuming and fragmenting process. To avoid this, we pick a random,
23151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23152 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23153 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'
23154 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'
23155 ;;
23156
23157 linux*)
23158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23159 tmp_addflag=
23160 case $cc_basename,$host_cpu in
23161 pgcc*) # Portland Group C compiler
23162 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'
23163 tmp_addflag=' $pic_flag'
23164 ;;
23165 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23166 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'
23167 tmp_addflag=' $pic_flag -Mnomain' ;;
23168 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23169 tmp_addflag=' -i_dynamic' ;;
23170 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23171 tmp_addflag=' -i_dynamic -nofor_main' ;;
23172 ifc* | ifort*) # Intel Fortran compiler
23173 tmp_addflag=' -nofor_main' ;;
23174 esac
23175 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23176
23177 if test $supports_anon_versioning = yes; then
23178 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23179 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23180 $echo "local: *; };" >> $output_objdir/$libname.ver~
23181 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23182 fi
23183 else
23184 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023185 fi
23186 ;;
23187
23188 netbsd*)
23189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23190 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23191 wlarc=
23192 else
23193 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23194 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23195 fi
23196 ;;
23197
Reid Spencera773bd52006-08-04 18:18:08 +000023198 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023199 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23200 ld_shlibs_GCJ=no
23201 cat <<EOF 1>&2
23202
23203*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23204*** create shared libraries on Solaris systems. Therefore, libtool
23205*** is disabling shared libraries support. We urge you to upgrade GNU
23206*** binutils to release 2.9.1 or newer. Another option is to modify
23207*** your PATH or compiler configuration so that the native linker is
23208*** used, and then restart.
23209
23210EOF
23211 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23212 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23213 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23214 else
23215 ld_shlibs_GCJ=no
23216 fi
23217 ;;
23218
Reid Spencera773bd52006-08-04 18:18:08 +000023219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23220 case `$LD -v 2>&1` in
23221 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23222 ld_shlibs_GCJ=no
23223 cat <<_LT_EOF 1>&2
23224
23225*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23226*** reliably create shared libraries on SCO systems. Therefore, libtool
23227*** is disabling shared libraries support. We urge you to upgrade GNU
23228*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23229*** your PATH or compiler configuration so that the native linker is
23230*** used, and then restart.
23231
23232_LT_EOF
23233 ;;
23234 *)
23235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23236 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23237 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23238 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23239 else
23240 ld_shlibs_GCJ=no
23241 fi
23242 ;;
23243 esac
23244 ;;
23245
John Criswell47fdd832003-07-14 16:52:07 +000023246 sunos4*)
23247 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23248 wlarc=
23249 hardcode_direct_GCJ=yes
23250 hardcode_shlibpath_var_GCJ=no
23251 ;;
23252
23253 *)
23254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23255 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23256 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23257 else
23258 ld_shlibs_GCJ=no
23259 fi
23260 ;;
23261 esac
23262
Reid Spencera773bd52006-08-04 18:18:08 +000023263 if test "$ld_shlibs_GCJ" = no; then
23264 runpath_var=
23265 hardcode_libdir_flag_spec_GCJ=
23266 export_dynamic_flag_spec_GCJ=
23267 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000023268 fi
23269 else
23270 # PORTME fill in a description of your system's linker (not GNU ld)
23271 case $host_os in
23272 aix3*)
23273 allow_undefined_flag_GCJ=unsupported
23274 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000023275 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 +000023276 # Note: this linker hardcodes the directories in LIBPATH if there
23277 # are no directories specified by -L.
23278 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023279 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000023280 # Neither direct hardcoding nor static linking is supported with a
23281 # broken collect2.
23282 hardcode_direct_GCJ=unsupported
23283 fi
23284 ;;
23285
23286 aix4* | aix5*)
23287 if test "$host_cpu" = ia64; then
23288 # On IA64, the linker does run time linking by default, so we don't
23289 # have to do anything special.
23290 aix_use_runtimelinking=no
23291 exp_sym_flag='-Bexport'
23292 no_entry_flag=""
23293 else
23294 # If we're using GNU nm, then we don't want the "-C" option.
23295 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23296 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23297 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'
23298 else
23299 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'
23300 fi
23301 aix_use_runtimelinking=no
23302
23303 # Test if we are trying to use run time linking or normal
23304 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23305 # need to do runtime linking.
23306 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23307 for ld_flag in $LDFLAGS; do
23308 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23309 aix_use_runtimelinking=yes
23310 break
23311 fi
23312 done
Reid Spencera773bd52006-08-04 18:18:08 +000023313 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023314 esac
23315
23316 exp_sym_flag='-bexport'
23317 no_entry_flag='-bnoentry'
23318 fi
23319
23320 # When large executables or shared objects are built, AIX ld can
23321 # have problems creating the table of contents. If linking a library
23322 # or program results in "error TOC overflow" add -mminimal-toc to
23323 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23324 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23325
23326 archive_cmds_GCJ=''
23327 hardcode_direct_GCJ=yes
23328 hardcode_libdir_separator_GCJ=':'
23329 link_all_deplibs_GCJ=yes
23330
23331 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023332 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000023333 # We only want to do this on AIX 4.2 and lower, the check
23334 # below for broken collect2 doesn't work under 4.3+
23335 collect2name=`${CC} -print-prog-name=collect2`
23336 if test -f "$collect2name" && \
23337 strings "$collect2name" | grep resolve_lib_name >/dev/null
23338 then
23339 # We have reworked collect2
23340 hardcode_direct_GCJ=yes
23341 else
23342 # We have old collect2
23343 hardcode_direct_GCJ=unsupported
23344 # It fails to find uninstalled libraries when the uninstalled
23345 # path is not listed in the libpath. Setting hardcode_minus_L
23346 # to unsupported forces relinking
23347 hardcode_minus_L_GCJ=yes
23348 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23349 hardcode_libdir_separator_GCJ=
23350 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023351 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023352 esac
23353 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000023354 if test "$aix_use_runtimelinking" = yes; then
23355 shared_flag="$shared_flag "'${wl}-G'
23356 fi
John Criswell47fdd832003-07-14 16:52:07 +000023357 else
23358 # not using gcc
23359 if test "$host_cpu" = ia64; then
23360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23361 # chokes on -Wl,-G. The following line is correct:
23362 shared_flag='-G'
23363 else
Reid Spencera773bd52006-08-04 18:18:08 +000023364 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000023365 shared_flag='${wl}-G'
23366 else
23367 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000023368 fi
John Criswell47fdd832003-07-14 16:52:07 +000023369 fi
23370 fi
23371
23372 # It seems that -bexpall does not export symbols beginning with
23373 # underscore (_), so it is better to generate a list of symbols to export.
23374 always_export_symbols_GCJ=yes
23375 if test "$aix_use_runtimelinking" = yes; then
23376 # Warning - without using the other runtime loading flags (-brtl),
23377 # -berok will link without error, but may produce a broken library.
23378 allow_undefined_flag_GCJ='-berok'
23379 # Determine the default libpath from the value encoded in an empty executable.
23380 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023381/* confdefs.h. */
23382_ACEOF
23383cat confdefs.h >>conftest.$ac_ext
23384cat >>conftest.$ac_ext <<_ACEOF
23385/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023386
John Criswell47fdd832003-07-14 16:52:07 +000023387int
23388main ()
23389{
23390
23391 ;
23392 return 0;
23393}
23394_ACEOF
23395rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023396if { (ac_try="$ac_link"
23397case "(($ac_try" in
23398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23399 *) ac_try_echo=$ac_try;;
23400esac
23401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23402 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023404 grep -v '^ *+' conftest.er1 >conftest.err
23405 rm -f conftest.er1
23406 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000023408 (exit $ac_status); } && {
23409 test -z "$ac_c_werror_flag" ||
23410 test ! -s conftest.err
23411 } && test -s conftest$ac_exeext &&
23412 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023413
23414aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23415}'`
23416# Check for a 64-bit object if we didn't find anything.
23417if 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; }
23418}'`; fi
23419else
23420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023421sed 's/^/| /' conftest.$ac_ext >&5
23422
Reid Spencera773bd52006-08-04 18:18:08 +000023423
John Criswell47fdd832003-07-14 16:52:07 +000023424fi
Reid Spencera773bd52006-08-04 18:18:08 +000023425
Scott Michel96dcd2b2007-12-05 21:24:02 +000023426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023427 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23429
23430 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000023431 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 +000023432 else
23433 if test "$host_cpu" = ia64; then
23434 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23435 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000023436 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 +000023437 else
23438 # Determine the default libpath from the value encoded in an empty executable.
23439 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023440/* confdefs.h. */
23441_ACEOF
23442cat confdefs.h >>conftest.$ac_ext
23443cat >>conftest.$ac_ext <<_ACEOF
23444/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023445
John Criswell47fdd832003-07-14 16:52:07 +000023446int
23447main ()
23448{
23449
23450 ;
23451 return 0;
23452}
23453_ACEOF
23454rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023455if { (ac_try="$ac_link"
23456case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23459esac
23460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023462 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023463 grep -v '^ *+' conftest.er1 >conftest.err
23464 rm -f conftest.er1
23465 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000023467 (exit $ac_status); } && {
23468 test -z "$ac_c_werror_flag" ||
23469 test ! -s conftest.err
23470 } && test -s conftest$ac_exeext &&
23471 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023472
23473aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23474}'`
23475# Check for a 64-bit object if we didn't find anything.
23476if 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; }
23477}'`; fi
23478else
23479 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023480sed 's/^/| /' conftest.$ac_ext >&5
23481
Reid Spencera773bd52006-08-04 18:18:08 +000023482
John Criswell47fdd832003-07-14 16:52:07 +000023483fi
Reid Spencera773bd52006-08-04 18:18:08 +000023484
Scott Michel96dcd2b2007-12-05 21:24:02 +000023485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023486 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023487if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23488
23489 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23490 # Warning - without using the other run time loading flags,
23491 # -berok will link without error, but may produce a broken library.
23492 no_undefined_flag_GCJ=' ${wl}-bernotok'
23493 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000023494 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000023495 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000023496 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023497 # This is similar to how AIX traditionally builds its shared libraries.
23498 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 +000023499 fi
23500 fi
23501 ;;
23502
23503 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023504 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 +000023505 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23506 hardcode_minus_L_GCJ=yes
23507 # see comment about different semantics on the GNU ld section
23508 ld_shlibs_GCJ=no
23509 ;;
23510
Reid Spencer2706f8c2004-09-19 23:53:36 +000023511 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023512 export_dynamic_flag_spec_GCJ=-rdynamic
23513 ;;
23514
23515 cygwin* | mingw* | pw32*)
23516 # When not using gcc, we currently assume that we are using
23517 # Microsoft Visual C++.
23518 # hardcode_libdir_flag_spec is actually meaningless, as there is
23519 # no search path for DLLs.
23520 hardcode_libdir_flag_spec_GCJ=' '
23521 allow_undefined_flag_GCJ=unsupported
23522 # Tell ltmain to make .lib files, not .a files.
23523 libext=lib
23524 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023525 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023526 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000023527 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 +000023528 # The linker will automatically build a .lib file if we build a DLL.
23529 old_archive_From_new_cmds_GCJ='true'
23530 # FIXME: Should let the user specify the lib program.
23531 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000023532 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000023533 enable_shared_with_static_runtimes_GCJ=yes
23534 ;;
23535
23536 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000023537 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023538 rhapsody* | darwin1.[012])
23539 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23540 ;;
23541 *) # Darwin 1.3 on
23542 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23543 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23544 else
23545 case ${MACOSX_DEPLOYMENT_TARGET} in
23546 10.[012])
23547 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23548 ;;
23549 10.*)
23550 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23551 ;;
23552 esac
23553 fi
23554 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023555 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000023556 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023557 hardcode_direct_GCJ=no
23558 hardcode_automatic_GCJ=yes
23559 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000023560 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000023561 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000023562 if test "$GCC" = yes ; then
23563 output_verbose_link_cmd='echo'
23564 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23565 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023566 # 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 +000023567 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}'
23568 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 +000023569 else
Reid Spencera773bd52006-08-04 18:18:08 +000023570 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023571 xlc*)
23572 output_verbose_link_cmd='echo'
23573 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23574 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023575 # 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 +000023576 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}'
23577 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 +000023578 ;;
23579 *)
23580 ld_shlibs_GCJ=no
23581 ;;
23582 esac
John Criswell47fdd832003-07-14 16:52:07 +000023583 fi
23584 ;;
23585
23586 dgux*)
23587 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23588 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23589 hardcode_shlibpath_var_GCJ=no
23590 ;;
23591
23592 freebsd1*)
23593 ld_shlibs_GCJ=no
23594 ;;
23595
23596 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23597 # support. Future versions do this automatically, but an explicit c++rt0.o
23598 # does not break anything, and helps significantly (at the cost of a little
23599 # extra space).
23600 freebsd2.2*)
23601 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23602 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23603 hardcode_direct_GCJ=yes
23604 hardcode_shlibpath_var_GCJ=no
23605 ;;
23606
23607 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23608 freebsd2*)
23609 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23610 hardcode_direct_GCJ=yes
23611 hardcode_minus_L_GCJ=yes
23612 hardcode_shlibpath_var_GCJ=no
23613 ;;
23614
23615 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000023616 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000023617 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23618 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23619 hardcode_direct_GCJ=yes
23620 hardcode_shlibpath_var_GCJ=no
23621 ;;
23622
23623 hpux9*)
23624 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000023625 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 +000023626 else
Reid Spencer177dbe22004-10-13 01:01:03 +000023627 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 +000023628 fi
23629 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23630 hardcode_libdir_separator_GCJ=:
23631 hardcode_direct_GCJ=yes
23632
23633 # hardcode_minus_L: Not really in the search PATH,
23634 # but as the default location of the library.
23635 hardcode_minus_L_GCJ=yes
23636 export_dynamic_flag_spec_GCJ='${wl}-E'
23637 ;;
23638
Reid Spencera773bd52006-08-04 18:18:08 +000023639 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000023640 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023641 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23642 else
23643 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23644 fi
23645 if test "$with_gnu_ld" = no; then
23646 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23647 hardcode_libdir_separator_GCJ=:
23648
23649 hardcode_direct_GCJ=yes
23650 export_dynamic_flag_spec_GCJ='${wl}-E'
23651
23652 # hardcode_minus_L: Not really in the search PATH,
23653 # but as the default location of the library.
23654 hardcode_minus_L_GCJ=yes
23655 fi
23656 ;;
23657
23658 hpux11*)
23659 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23660 case $host_cpu in
23661 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000023662 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023664 ia64*)
23665 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23666 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023667 *)
23668 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23669 ;;
23670 esac
23671 else
Reid Spencera773bd52006-08-04 18:18:08 +000023672 case $host_cpu in
23673 hppa*64*)
23674 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23675 ;;
23676 ia64*)
23677 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000023678 ;;
23679 *)
Reid Spencera773bd52006-08-04 18:18:08 +000023680 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 +000023681 ;;
23682 esac
23683 fi
23684 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023685 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23686 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000023687
Reid Spencera773bd52006-08-04 18:18:08 +000023688 case $host_cpu in
23689 hppa*64*|ia64*)
23690 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23691 hardcode_direct_GCJ=no
23692 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023693 ;;
23694 *)
John Criswell47fdd832003-07-14 16:52:07 +000023695 hardcode_direct_GCJ=yes
23696 export_dynamic_flag_spec_GCJ='${wl}-E'
23697
23698 # hardcode_minus_L: Not really in the search PATH,
23699 # but as the default location of the library.
23700 hardcode_minus_L_GCJ=yes
23701 ;;
23702 esac
23703 fi
23704 ;;
23705
23706 irix5* | irix6* | nonstopux*)
23707 if test "$GCC" = yes; then
23708 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'
23709 else
23710 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'
23711 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23712 fi
23713 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23714 hardcode_libdir_separator_GCJ=:
23715 link_all_deplibs_GCJ=yes
23716 ;;
23717
23718 netbsd*)
23719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23720 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23721 else
23722 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23723 fi
23724 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23725 hardcode_direct_GCJ=yes
23726 hardcode_shlibpath_var_GCJ=no
23727 ;;
23728
23729 newsos6)
23730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23731 hardcode_direct_GCJ=yes
23732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23733 hardcode_libdir_separator_GCJ=:
23734 hardcode_shlibpath_var_GCJ=no
23735 ;;
23736
23737 openbsd*)
23738 hardcode_direct_GCJ=yes
23739 hardcode_shlibpath_var_GCJ=no
23740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23741 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023742 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 +000023743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23744 export_dynamic_flag_spec_GCJ='${wl}-E'
23745 else
23746 case $host_os in
23747 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23748 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23749 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23750 ;;
23751 *)
23752 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23754 ;;
23755 esac
23756 fi
23757 ;;
23758
23759 os2*)
23760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23761 hardcode_minus_L_GCJ=yes
23762 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000023763 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 +000023764 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23765 ;;
23766
23767 osf3*)
23768 if test "$GCC" = yes; then
23769 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23770 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'
23771 else
23772 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23773 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'
23774 fi
23775 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23776 hardcode_libdir_separator_GCJ=:
23777 ;;
23778
23779 osf4* | osf5*) # as osf3* with the addition of -msym flag
23780 if test "$GCC" = yes; then
23781 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23782 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'
23783 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23784 else
23785 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23786 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 +000023787 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 +000023788 $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 +000023789
John Criswell47fdd832003-07-14 16:52:07 +000023790 # Both c and cxx compiler support -rpath directly
23791 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23792 fi
23793 hardcode_libdir_separator_GCJ=:
23794 ;;
23795
John Criswell47fdd832003-07-14 16:52:07 +000023796 solaris*)
23797 no_undefined_flag_GCJ=' -z text'
23798 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023799 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000023800 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000023801 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23802 $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 +000023803 else
Reid Spencera773bd52006-08-04 18:18:08 +000023804 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000023805 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000023806 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23807 $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 +000023808 fi
23809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23810 hardcode_shlibpath_var_GCJ=no
23811 case $host_os in
23812 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023813 *)
23814 # The compiler driver will combine linker options so we
23815 # cannot just pass the convience library names through
23816 # without $wl, iff we do not link with $LD.
23817 # Luckily, gcc supports the same syntax we need for Sun Studio.
23818 # Supported since Solaris 2.6 (maybe 2.5.1?)
23819 case $wlarc in
23820 '')
23821 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23822 *)
23823 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' ;;
23824 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000023825 esac
23826 link_all_deplibs_GCJ=yes
23827 ;;
23828
23829 sunos4*)
23830 if test "x$host_vendor" = xsequent; then
23831 # Use $CC to link under sequent, because it throws in some extra .o
23832 # files that make .init and .fini sections work.
23833 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23834 else
23835 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23836 fi
23837 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23838 hardcode_direct_GCJ=yes
23839 hardcode_minus_L_GCJ=yes
23840 hardcode_shlibpath_var_GCJ=no
23841 ;;
23842
23843 sysv4)
23844 case $host_vendor in
23845 sni)
23846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23847 hardcode_direct_GCJ=yes # is this really true???
23848 ;;
23849 siemens)
23850 ## LD is ld it makes a PLAMLIB
23851 ## CC just makes a GrossModule.
23852 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23853 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23854 hardcode_direct_GCJ=no
23855 ;;
23856 motorola)
23857 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23858 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23859 ;;
23860 esac
23861 runpath_var='LD_RUN_PATH'
23862 hardcode_shlibpath_var_GCJ=no
23863 ;;
23864
23865 sysv4.3*)
23866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23867 hardcode_shlibpath_var_GCJ=no
23868 export_dynamic_flag_spec_GCJ='-Bexport'
23869 ;;
23870
23871 sysv4*MP*)
23872 if test -d /usr/nec; then
23873 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23874 hardcode_shlibpath_var_GCJ=no
23875 runpath_var=LD_RUN_PATH
23876 hardcode_runpath_var=yes
23877 ld_shlibs_GCJ=yes
23878 fi
23879 ;;
23880
Reid Spencera773bd52006-08-04 18:18:08 +000023881 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23882 no_undefined_flag_GCJ='${wl}-z,text'
23883 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023884 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000023885 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000023886
John Criswell47fdd832003-07-14 16:52:07 +000023887 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023888 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23889 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 +000023890 else
Reid Spencera773bd52006-08-04 18:18:08 +000023891 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23892 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 +000023893 fi
John Criswell47fdd832003-07-14 16:52:07 +000023894 ;;
23895
Reid Spencera773bd52006-08-04 18:18:08 +000023896 sysv5* | sco3.2v5* | sco5v6*)
23897 # Note: We can NOT use -z defs as we might desire, because we do not
23898 # link with -lc, and that would cause any symbols used from libc to
23899 # always be unresolved, which means just about no library would
23900 # ever link correctly. If we're not using GNU ld we use -z text
23901 # though, which does catch some bad symbols but isn't as heavy-handed
23902 # as -z defs.
23903 no_undefined_flag_GCJ='${wl}-z,text'
23904 allow_undefined_flag_GCJ='${wl}-z,nodefs'
23905 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023906 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000023907 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23908 hardcode_libdir_separator_GCJ=':'
23909 link_all_deplibs_GCJ=yes
23910 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000023911 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000023912
23913 if test "$GCC" = yes; then
23914 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23915 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23916 else
23917 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23918 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23919 fi
John Criswell47fdd832003-07-14 16:52:07 +000023920 ;;
23921
23922 uts4*)
23923 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23925 hardcode_shlibpath_var_GCJ=no
23926 ;;
23927
23928 *)
23929 ld_shlibs_GCJ=no
23930 ;;
23931 esac
23932 fi
23933
Reid Spencera773bd52006-08-04 18:18:08 +000023934{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23935echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023936test "$ld_shlibs_GCJ" = no && can_build_shared=no
23937
John Criswell47fdd832003-07-14 16:52:07 +000023938#
23939# Do we need to explicitly link libc?
23940#
23941case "x$archive_cmds_need_lc_GCJ" in
23942x|xyes)
23943 # Assume -lc should be added
23944 archive_cmds_need_lc_GCJ=yes
23945
23946 if test "$enable_shared" = yes && test "$GCC" = yes; then
23947 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023948 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000023949 # FIXME: we may have to deal with multi-command sequences.
23950 ;;
23951 '$CC '*)
23952 # Test whether the compiler implicitly links with -lc since on some
23953 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23954 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000023955 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23956echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023957 $rm conftest*
23958 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23959
23960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23961 (eval $ac_compile) 2>&5
23962 ac_status=$?
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } 2>conftest.err; then
23965 soname=conftest
23966 lib=conftest
23967 libobjs=conftest.$ac_objext
23968 deplibs=
23969 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000023970 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000023971 compiler_flags=-v
23972 linker_flags=-v
23973 verstring=
23974 output_objdir=.
23975 libname=conftest
23976 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23977 allow_undefined_flag_GCJ=
23978 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23979 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23980 ac_status=$?
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); }
23983 then
23984 archive_cmds_need_lc_GCJ=no
23985 else
23986 archive_cmds_need_lc_GCJ=yes
23987 fi
23988 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23989 else
23990 cat conftest.err 1>&5
23991 fi
23992 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023993 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23994echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023995 ;;
23996 esac
23997 fi
23998 ;;
23999esac
24000
Reid Spencera773bd52006-08-04 18:18:08 +000024001{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24002echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024003library_names_spec=
24004libname_spec='lib$name'
24005soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024006shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024007postinstall_cmds=
24008postuninstall_cmds=
24009finish_cmds=
24010finish_eval=
24011shlibpath_var=
24012shlibpath_overrides_runpath=unknown
24013version_type=none
24014dynamic_linker="$host_os ld.so"
24015sys_lib_dlsearch_path_spec="/lib /usr/lib"
24016if test "$GCC" = yes; then
24017 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24018 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24019 # if the path contains ";" then we assume it to be the separator
24020 # otherwise default to the standard path separator (i.e. ":") - it is
24021 # assumed that no part of a normal pathname contains ";" but that should
24022 # okay in the real world where ";" in dirpaths is itself problematic.
24023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24024 else
24025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24026 fi
24027else
24028 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24029fi
24030need_lib_prefix=unknown
24031hardcode_into_libs=no
24032
24033# when you set need_version to no, make sure it does not cause -set_version
24034# flags to be left without arguments
24035need_version=unknown
24036
24037case $host_os in
24038aix3*)
24039 version_type=linux
24040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24041 shlibpath_var=LIBPATH
24042
24043 # AIX 3 has no versioning support, so we append a major version to the name.
24044 soname_spec='${libname}${release}${shared_ext}$major'
24045 ;;
24046
24047aix4* | aix5*)
24048 version_type=linux
24049 need_lib_prefix=no
24050 need_version=no
24051 hardcode_into_libs=yes
24052 if test "$host_cpu" = ia64; then
24053 # AIX 5 supports IA64
24054 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24055 shlibpath_var=LD_LIBRARY_PATH
24056 else
24057 # With GCC up to 2.95.x, collect2 would create an import file
24058 # for dependence libraries. The import file would start with
24059 # the line `#! .'. This would cause the generated library to
24060 # depend on `.', always an invalid library. This was fixed in
24061 # development snapshots of GCC prior to 3.0.
24062 case $host_os in
24063 aix4 | aix4.[01] | aix4.[01].*)
24064 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24065 echo ' yes '
24066 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24067 :
24068 else
24069 can_build_shared=no
24070 fi
24071 ;;
24072 esac
24073 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24074 # soname into executable. Probably we can add versioning support to
24075 # collect2, so additional links can be useful in future.
24076 if test "$aix_use_runtimelinking" = yes; then
24077 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24078 # instead of lib<name>.a to let people know that these are not
24079 # typical AIX shared libraries.
24080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24081 else
24082 # We preserve .a as extension for shared libraries through AIX4.2
24083 # and later when we are not doing run time linking.
24084 library_names_spec='${libname}${release}.a $libname.a'
24085 soname_spec='${libname}${release}${shared_ext}$major'
24086 fi
24087 shlibpath_var=LIBPATH
24088 fi
24089 ;;
24090
24091amigaos*)
24092 library_names_spec='$libname.ixlibrary $libname.a'
24093 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024094 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 +000024095 ;;
24096
24097beos*)
24098 library_names_spec='${libname}${shared_ext}'
24099 dynamic_linker="$host_os ld.so"
24100 shlibpath_var=LIBRARY_PATH
24101 ;;
24102
Reid Spencer2706f8c2004-09-19 23:53:36 +000024103bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024104 version_type=linux
24105 need_version=no
24106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24107 soname_spec='${libname}${release}${shared_ext}$major'
24108 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24109 shlibpath_var=LD_LIBRARY_PATH
24110 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24111 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24112 # the default ld.so.conf also contains /usr/contrib/lib and
24113 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24114 # libtool to hard-code these into programs
24115 ;;
24116
24117cygwin* | mingw* | pw32*)
24118 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000024119 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024120 need_version=no
24121 need_lib_prefix=no
24122
24123 case $GCC,$host_os in
24124 yes,cygwin* | yes,mingw* | yes,pw32*)
24125 library_names_spec='$libname.dll.a'
24126 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000024127 postinstall_cmds='base_file=`basename \${file}`~
24128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24129 dldir=$destdir/`dirname \$dlpath`~
24130 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000024131 $install_prog $dir/$dlname \$dldir/$dlname~
24132 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000024133 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24134 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000024135 $rm \$dlpath'
24136 shlibpath_overrides_runpath=yes
24137
24138 case $host_os in
24139 cygwin*)
24140 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24141 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 +000024142 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024143 ;;
24144 mingw*)
24145 # MinGW DLLs use traditional 'lib' prefix
24146 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24147 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24148 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24149 # It is most probably a Windows format PATH printed by
24150 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24151 # path with ; separators, and with drive letters. We can handle the
24152 # drive letters (cygwin fileutils understands them), so leave them,
24153 # especially as we might pass files found there to a mingw objdump,
24154 # which wouldn't understand a cygwinified path. Ahh.
24155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24156 else
24157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24158 fi
24159 ;;
24160 pw32*)
24161 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000024162 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 +000024163 ;;
24164 esac
24165 ;;
24166
24167 *)
24168 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24169 ;;
24170 esac
24171 dynamic_linker='Win32 ld.exe'
24172 # FIXME: first we should search . and the directory the executable is in
24173 shlibpath_var=PATH
24174 ;;
24175
24176darwin* | rhapsody*)
24177 dynamic_linker="$host_os dyld"
24178 version_type=darwin
24179 need_lib_prefix=no
24180 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000024181 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000024182 soname_spec='${libname}${release}${major}$shared_ext'
24183 shlibpath_overrides_runpath=yes
24184 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000024185 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000024186 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024187 if test "$GCC" = yes; then
24188 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"`
24189 else
24190 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000024191 fi
24192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24193 ;;
24194
24195dgux*)
24196 version_type=linux
24197 need_lib_prefix=no
24198 need_version=no
24199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24200 soname_spec='${libname}${release}${shared_ext}$major'
24201 shlibpath_var=LD_LIBRARY_PATH
24202 ;;
24203
24204freebsd1*)
24205 dynamic_linker=no
24206 ;;
24207
Reid Spencer2706f8c2004-09-19 23:53:36 +000024208kfreebsd*-gnu)
24209 version_type=linux
24210 need_lib_prefix=no
24211 need_version=no
24212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24213 soname_spec='${libname}${release}${shared_ext}$major'
24214 shlibpath_var=LD_LIBRARY_PATH
24215 shlibpath_overrides_runpath=no
24216 hardcode_into_libs=yes
24217 dynamic_linker='GNU ld.so'
24218 ;;
24219
Reid Spencera773bd52006-08-04 18:18:08 +000024220freebsd* | dragonfly*)
24221 # DragonFly does not have aout. When/if they implement a new
24222 # versioning mechanism, adjust this.
24223 if test -x /usr/bin/objformat; then
24224 objformat=`/usr/bin/objformat`
24225 else
24226 case $host_os in
24227 freebsd[123]*) objformat=aout ;;
24228 *) objformat=elf ;;
24229 esac
24230 fi
John Criswell47fdd832003-07-14 16:52:07 +000024231 version_type=freebsd-$objformat
24232 case $version_type in
24233 freebsd-elf*)
24234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24235 need_version=no
24236 need_lib_prefix=no
24237 ;;
24238 freebsd-*)
24239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24240 need_version=yes
24241 ;;
24242 esac
24243 shlibpath_var=LD_LIBRARY_PATH
24244 case $host_os in
24245 freebsd2*)
24246 shlibpath_overrides_runpath=yes
24247 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024248 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000024249 shlibpath_overrides_runpath=yes
24250 hardcode_into_libs=yes
24251 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024252 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24253 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000024254 shlibpath_overrides_runpath=no
24255 hardcode_into_libs=yes
24256 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024257 freebsd*) # from 4.6 on
24258 shlibpath_overrides_runpath=yes
24259 hardcode_into_libs=yes
24260 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024261 esac
24262 ;;
24263
24264gnu*)
24265 version_type=linux
24266 need_lib_prefix=no
24267 need_version=no
24268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24269 soname_spec='${libname}${release}${shared_ext}$major'
24270 shlibpath_var=LD_LIBRARY_PATH
24271 hardcode_into_libs=yes
24272 ;;
24273
24274hpux9* | hpux10* | hpux11*)
24275 # Give a soname corresponding to the major version so that dld.sl refuses to
24276 # link against other versions.
24277 version_type=sunos
24278 need_lib_prefix=no
24279 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000024280 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024281 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024282 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000024283 hardcode_into_libs=yes
24284 dynamic_linker="$host_os dld.so"
24285 shlibpath_var=LD_LIBRARY_PATH
24286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24288 soname_spec='${libname}${release}${shared_ext}$major'
24289 if test "X$HPUX_IA64_MODE" = X32; then
24290 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24291 else
24292 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24293 fi
24294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24295 ;;
24296 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024297 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024298 hardcode_into_libs=yes
24299 dynamic_linker="$host_os dld.sl"
24300 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24306 ;;
24307 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024308 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024309 dynamic_linker="$host_os dld.sl"
24310 shlibpath_var=SHLIB_PATH
24311 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24313 soname_spec='${libname}${release}${shared_ext}$major'
24314 ;;
24315 esac
24316 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24317 postinstall_cmds='chmod 555 $lib'
24318 ;;
24319
Reid Spencera773bd52006-08-04 18:18:08 +000024320interix3*)
24321 version_type=linux
24322 need_lib_prefix=no
24323 need_version=no
24324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24325 soname_spec='${libname}${release}${shared_ext}$major'
24326 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24327 shlibpath_var=LD_LIBRARY_PATH
24328 shlibpath_overrides_runpath=no
24329 hardcode_into_libs=yes
24330 ;;
24331
John Criswell47fdd832003-07-14 16:52:07 +000024332irix5* | irix6* | nonstopux*)
24333 case $host_os in
24334 nonstopux*) version_type=nonstopux ;;
24335 *)
24336 if test "$lt_cv_prog_gnu_ld" = yes; then
24337 version_type=linux
24338 else
24339 version_type=irix
24340 fi ;;
24341 esac
24342 need_lib_prefix=no
24343 need_version=no
24344 soname_spec='${libname}${release}${shared_ext}$major'
24345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24346 case $host_os in
24347 irix5* | nonstopux*)
24348 libsuff= shlibsuff=
24349 ;;
24350 *)
24351 case $LD in # libtool.m4 will add one of these switches to LD
24352 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24353 libsuff= shlibsuff= libmagic=32-bit;;
24354 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24355 libsuff=32 shlibsuff=N32 libmagic=N32;;
24356 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24357 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24358 *) libsuff= shlibsuff= libmagic=never-match;;
24359 esac
24360 ;;
24361 esac
24362 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24363 shlibpath_overrides_runpath=no
24364 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24365 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24366 hardcode_into_libs=yes
24367 ;;
24368
24369# No shared lib support for Linux oldld, aout, or coff.
24370linux*oldld* | linux*aout* | linux*coff*)
24371 dynamic_linker=no
24372 ;;
24373
24374# This must be Linux ELF.
24375linux*)
24376 version_type=linux
24377 need_lib_prefix=no
24378 need_version=no
24379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24380 soname_spec='${libname}${release}${shared_ext}$major'
24381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24382 shlibpath_var=LD_LIBRARY_PATH
24383 shlibpath_overrides_runpath=no
24384 # This implies no fast_install, which is unacceptable.
24385 # Some rework will be needed to allow for fast_install
24386 # before this can be enabled.
24387 hardcode_into_libs=yes
24388
Reid Spencer2706f8c2004-09-19 23:53:36 +000024389 # Append ld.so.conf contents to the search path
24390 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000024391 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 +000024392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24393 fi
24394
John Criswell47fdd832003-07-14 16:52:07 +000024395 # We used to test for /lib/ld.so.1 and disable shared libraries on
24396 # powerpc, because MkLinux only supported shared libraries with the
24397 # GNU dynamic linker. Since this was broken with cross compilers,
24398 # most powerpc-linux boxes support dynamic linking these days and
24399 # people can always --disable-shared, the test was removed, and we
24400 # assume the GNU/Linux dynamic linker is in use.
24401 dynamic_linker='GNU/Linux ld.so'
24402 ;;
24403
Reid Spencer2706f8c2004-09-19 23:53:36 +000024404knetbsd*-gnu)
24405 version_type=linux
24406 need_lib_prefix=no
24407 need_version=no
24408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24409 soname_spec='${libname}${release}${shared_ext}$major'
24410 shlibpath_var=LD_LIBRARY_PATH
24411 shlibpath_overrides_runpath=no
24412 hardcode_into_libs=yes
24413 dynamic_linker='GNU ld.so'
24414 ;;
24415
John Criswell47fdd832003-07-14 16:52:07 +000024416netbsd*)
24417 version_type=sunos
24418 need_lib_prefix=no
24419 need_version=no
24420 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24423 dynamic_linker='NetBSD (a.out) ld.so'
24424 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000024426 soname_spec='${libname}${release}${shared_ext}$major'
24427 dynamic_linker='NetBSD ld.elf_so'
24428 fi
24429 shlibpath_var=LD_LIBRARY_PATH
24430 shlibpath_overrides_runpath=yes
24431 hardcode_into_libs=yes
24432 ;;
24433
24434newsos6)
24435 version_type=linux
24436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24437 shlibpath_var=LD_LIBRARY_PATH
24438 shlibpath_overrides_runpath=yes
24439 ;;
24440
Reid Spencer2706f8c2004-09-19 23:53:36 +000024441nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000024442 version_type=linux
24443 need_lib_prefix=no
24444 need_version=no
24445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24446 soname_spec='${libname}${release}${shared_ext}$major'
24447 shlibpath_var=LD_LIBRARY_PATH
24448 shlibpath_overrides_runpath=yes
24449 ;;
24450
24451openbsd*)
24452 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000024453 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024454 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000024455 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24456 case $host_os in
24457 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24458 *) need_version=no ;;
24459 esac
John Criswell47fdd832003-07-14 16:52:07 +000024460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24462 shlibpath_var=LD_LIBRARY_PATH
24463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24464 case $host_os in
24465 openbsd2.[89] | openbsd2.[89].*)
24466 shlibpath_overrides_runpath=no
24467 ;;
24468 *)
24469 shlibpath_overrides_runpath=yes
24470 ;;
24471 esac
24472 else
24473 shlibpath_overrides_runpath=yes
24474 fi
24475 ;;
24476
24477os2*)
24478 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024479 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024480 need_lib_prefix=no
24481 library_names_spec='$libname${shared_ext} $libname.a'
24482 dynamic_linker='OS/2 ld.exe'
24483 shlibpath_var=LIBPATH
24484 ;;
24485
24486osf3* | osf4* | osf5*)
24487 version_type=osf
24488 need_lib_prefix=no
24489 need_version=no
24490 soname_spec='${libname}${release}${shared_ext}$major'
24491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24492 shlibpath_var=LD_LIBRARY_PATH
24493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24495 ;;
24496
John Criswell47fdd832003-07-14 16:52:07 +000024497solaris*)
24498 version_type=linux
24499 need_lib_prefix=no
24500 need_version=no
24501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24502 soname_spec='${libname}${release}${shared_ext}$major'
24503 shlibpath_var=LD_LIBRARY_PATH
24504 shlibpath_overrides_runpath=yes
24505 hardcode_into_libs=yes
24506 # ldd complains unless libraries are executable
24507 postinstall_cmds='chmod +x $lib'
24508 ;;
24509
24510sunos4*)
24511 version_type=sunos
24512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24514 shlibpath_var=LD_LIBRARY_PATH
24515 shlibpath_overrides_runpath=yes
24516 if test "$with_gnu_ld" = yes; then
24517 need_lib_prefix=no
24518 fi
24519 need_version=yes
24520 ;;
24521
Reid Spencera773bd52006-08-04 18:18:08 +000024522sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024523 version_type=linux
24524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24525 soname_spec='${libname}${release}${shared_ext}$major'
24526 shlibpath_var=LD_LIBRARY_PATH
24527 case $host_vendor in
24528 sni)
24529 shlibpath_overrides_runpath=no
24530 need_lib_prefix=no
24531 export_dynamic_flag_spec='${wl}-Blargedynsym'
24532 runpath_var=LD_RUN_PATH
24533 ;;
24534 siemens)
24535 need_lib_prefix=no
24536 ;;
24537 motorola)
24538 need_lib_prefix=no
24539 need_version=no
24540 shlibpath_overrides_runpath=no
24541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24542 ;;
24543 esac
24544 ;;
24545
24546sysv4*MP*)
24547 if test -d /usr/nec ;then
24548 version_type=linux
24549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24550 soname_spec='$libname${shared_ext}.$major'
24551 shlibpath_var=LD_LIBRARY_PATH
24552 fi
24553 ;;
24554
Reid Spencera773bd52006-08-04 18:18:08 +000024555sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24556 version_type=freebsd-elf
24557 need_lib_prefix=no
24558 need_version=no
24559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24560 soname_spec='${libname}${release}${shared_ext}$major'
24561 shlibpath_var=LD_LIBRARY_PATH
24562 hardcode_into_libs=yes
24563 if test "$with_gnu_ld" = yes; then
24564 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24565 shlibpath_overrides_runpath=no
24566 else
24567 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24568 shlibpath_overrides_runpath=yes
24569 case $host_os in
24570 sco3.2v5*)
24571 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24572 ;;
24573 esac
24574 fi
24575 sys_lib_dlsearch_path_spec='/usr/lib'
24576 ;;
24577
John Criswell47fdd832003-07-14 16:52:07 +000024578uts4*)
24579 version_type=linux
24580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24581 soname_spec='${libname}${release}${shared_ext}$major'
24582 shlibpath_var=LD_LIBRARY_PATH
24583 ;;
24584
24585*)
24586 dynamic_linker=no
24587 ;;
24588esac
Reid Spencera773bd52006-08-04 18:18:08 +000024589{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24590echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024591test "$dynamic_linker" = no && can_build_shared=no
24592
Reid Spencera773bd52006-08-04 18:18:08 +000024593variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24594if test "$GCC" = yes; then
24595 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24596fi
24597
24598{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24599echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024600hardcode_action_GCJ=
24601if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24602 test -n "$runpath_var_GCJ" || \
24603 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24604
24605 # We can hardcode non-existant directories.
24606 if test "$hardcode_direct_GCJ" != no &&
24607 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24608 # have to relink, otherwise we might link with an installed library
24609 # when we should be linking with a yet-to-be-installed one
24610 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24611 test "$hardcode_minus_L_GCJ" != no; then
24612 # Linking always hardcodes the temporary library directory.
24613 hardcode_action_GCJ=relink
24614 else
24615 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24616 hardcode_action_GCJ=immediate
24617 fi
24618else
24619 # We cannot hardcode anything, or else we can only hardcode existing
24620 # directories.
24621 hardcode_action_GCJ=unsupported
24622fi
Reid Spencera773bd52006-08-04 18:18:08 +000024623{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24624echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024625
24626if test "$hardcode_action_GCJ" = relink; then
24627 # Fast installation is not supported
24628 enable_fast_install=no
24629elif test "$shlibpath_overrides_runpath" = yes ||
24630 test "$enable_shared" = no; then
24631 # Fast installation is not necessary
24632 enable_fast_install=needless
24633fi
24634
John Criswell47fdd832003-07-14 16:52:07 +000024635
24636# The else clause should only fire when bootstrapping the
24637# libtool distribution, otherwise you forgot to ship ltmain.sh
24638# with your package, and you will get complaints that there are
24639# no rules to generate ltmain.sh.
24640if test -f "$ltmain"; then
24641 # See if we are running on zsh, and set the options which allow our commands through
24642 # without removal of \ escapes.
24643 if test -n "${ZSH_VERSION+set}" ; then
24644 setopt NO_GLOB_SUBST
24645 fi
24646 # Now quote all the things that may contain metacharacters while being
24647 # careful not to overquote the AC_SUBSTed values. We take copies of the
24648 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000024649 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 +000024650 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024651 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24652 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24653 deplibs_check_method reload_flag reload_cmds need_locks \
24654 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24655 lt_cv_sys_global_symbol_to_c_name_address \
24656 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24657 old_postinstall_cmds old_postuninstall_cmds \
24658 compiler_GCJ \
24659 CC_GCJ \
24660 LD_GCJ \
24661 lt_prog_compiler_wl_GCJ \
24662 lt_prog_compiler_pic_GCJ \
24663 lt_prog_compiler_static_GCJ \
24664 lt_prog_compiler_no_builtin_flag_GCJ \
24665 export_dynamic_flag_spec_GCJ \
24666 thread_safe_flag_spec_GCJ \
24667 whole_archive_flag_spec_GCJ \
24668 enable_shared_with_static_runtimes_GCJ \
24669 old_archive_cmds_GCJ \
24670 old_archive_from_new_cmds_GCJ \
24671 predep_objects_GCJ \
24672 postdep_objects_GCJ \
24673 predeps_GCJ \
24674 postdeps_GCJ \
24675 compiler_lib_search_path_GCJ \
24676 archive_cmds_GCJ \
24677 archive_expsym_cmds_GCJ \
24678 postinstall_cmds_GCJ \
24679 postuninstall_cmds_GCJ \
24680 old_archive_from_expsyms_cmds_GCJ \
24681 allow_undefined_flag_GCJ \
24682 no_undefined_flag_GCJ \
24683 export_symbols_cmds_GCJ \
24684 hardcode_libdir_flag_spec_GCJ \
24685 hardcode_libdir_flag_spec_ld_GCJ \
24686 hardcode_libdir_separator_GCJ \
24687 hardcode_automatic_GCJ \
24688 module_cmds_GCJ \
24689 module_expsym_cmds_GCJ \
24690 lt_cv_prog_compiler_c_o_GCJ \
24691 exclude_expsyms_GCJ \
24692 include_expsyms_GCJ; do
24693
24694 case $var in
24695 old_archive_cmds_GCJ | \
24696 old_archive_from_new_cmds_GCJ | \
24697 archive_cmds_GCJ | \
24698 archive_expsym_cmds_GCJ | \
24699 module_cmds_GCJ | \
24700 module_expsym_cmds_GCJ | \
24701 old_archive_from_expsyms_cmds_GCJ | \
24702 export_symbols_cmds_GCJ | \
24703 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24704 postinstall_cmds | postuninstall_cmds | \
24705 old_postinstall_cmds | old_postuninstall_cmds | \
24706 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24707 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024708 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 +000024709 ;;
24710 *)
24711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24712 ;;
24713 esac
24714 done
24715
24716 case $lt_echo in
24717 *'\$0 --fallback-echo"')
24718 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24719 ;;
24720 esac
24721
24722cfgfile="$ofile"
24723
24724 cat <<__EOF__ >> "$cfgfile"
24725# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24726
24727# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24728
24729# Shell to use when invoking shell scripts.
24730SHELL=$lt_SHELL
24731
24732# Whether or not to build shared libraries.
24733build_libtool_libs=$enable_shared
24734
24735# Whether or not to build static libraries.
24736build_old_libs=$enable_static
24737
24738# Whether or not to add -lc for building shared libraries.
24739build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24740
24741# Whether or not to disallow shared libs when runtime libs are static
24742allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24743
24744# Whether or not to optimize for fast installation.
24745fast_install=$enable_fast_install
24746
24747# The host system.
24748host_alias=$host_alias
24749host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000024750host_os=$host_os
24751
24752# The build system.
24753build_alias=$build_alias
24754build=$build
24755build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000024756
24757# An echo program that does not interpret backslashes.
24758echo=$lt_echo
24759
24760# The archiver.
24761AR=$lt_AR
24762AR_FLAGS=$lt_AR_FLAGS
24763
24764# A C compiler.
24765LTCC=$lt_LTCC
24766
Reid Spencera773bd52006-08-04 18:18:08 +000024767# LTCC compiler flags.
24768LTCFLAGS=$lt_LTCFLAGS
24769
John Criswell47fdd832003-07-14 16:52:07 +000024770# A language-specific compiler.
24771CC=$lt_compiler_GCJ
24772
24773# Is the compiler the GNU C compiler?
24774with_gcc=$GCC_GCJ
24775
24776# An ERE matcher.
24777EGREP=$lt_EGREP
24778
24779# The linker used to build libraries.
24780LD=$lt_LD_GCJ
24781
24782# Whether we need hard or soft links.
24783LN_S=$lt_LN_S
24784
24785# A BSD-compatible nm program.
24786NM=$lt_NM
24787
24788# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024789STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024790
24791# Used to examine libraries when file_magic_cmd begins "file"
24792MAGIC_CMD=$MAGIC_CMD
24793
24794# Used on cygwin: DLL creation program.
24795DLLTOOL="$DLLTOOL"
24796
24797# Used on cygwin: object dumper.
24798OBJDUMP="$OBJDUMP"
24799
24800# Used on cygwin: assembler.
24801AS="$AS"
24802
24803# The name of the directory that contains temporary libtool files.
24804objdir=$objdir
24805
24806# How to create reloadable object files.
24807reload_flag=$lt_reload_flag
24808reload_cmds=$lt_reload_cmds
24809
24810# How to pass a linker flag through the compiler.
24811wl=$lt_lt_prog_compiler_wl_GCJ
24812
24813# Object file suffix (normally "o").
24814objext="$ac_objext"
24815
24816# Old archive suffix (normally "a").
24817libext="$libext"
24818
24819# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024820shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024821
24822# Executable file suffix (normally "").
24823exeext="$exeext"
24824
24825# Additional compiler flags for building library objects.
24826pic_flag=$lt_lt_prog_compiler_pic_GCJ
24827pic_mode=$pic_mode
24828
24829# What is the maximum length of a command?
24830max_cmd_len=$lt_cv_sys_max_cmd_len
24831
24832# Does compiler simultaneously support -c and -o options?
24833compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24834
Reid Spencera773bd52006-08-04 18:18:08 +000024835# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000024836need_locks=$lt_need_locks
24837
24838# Do we need the lib prefix for modules?
24839need_lib_prefix=$need_lib_prefix
24840
24841# Do we need a version for libraries?
24842need_version=$need_version
24843
24844# Whether dlopen is supported.
24845dlopen_support=$enable_dlopen
24846
24847# Whether dlopen of programs is supported.
24848dlopen_self=$enable_dlopen_self
24849
24850# Whether dlopen of statically linked programs is supported.
24851dlopen_self_static=$enable_dlopen_self_static
24852
24853# Compiler flag to prevent dynamic linking.
24854link_static_flag=$lt_lt_prog_compiler_static_GCJ
24855
24856# Compiler flag to turn off builtin functions.
24857no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24858
24859# Compiler flag to allow reflexive dlopens.
24860export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24861
24862# Compiler flag to generate shared objects directly from archives.
24863whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24864
24865# Compiler flag to generate thread-safe objects.
24866thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24867
24868# Library versioning type.
24869version_type=$version_type
24870
24871# Format of library name prefix.
24872libname_spec=$lt_libname_spec
24873
24874# List of archive names. First name is the real one, the rest are links.
24875# The last name is the one that the linker finds with -lNAME.
24876library_names_spec=$lt_library_names_spec
24877
24878# The coded name of the library, if different from the real name.
24879soname_spec=$lt_soname_spec
24880
24881# Commands used to build and install an old-style archive.
24882RANLIB=$lt_RANLIB
24883old_archive_cmds=$lt_old_archive_cmds_GCJ
24884old_postinstall_cmds=$lt_old_postinstall_cmds
24885old_postuninstall_cmds=$lt_old_postuninstall_cmds
24886
24887# Create an old-style archive from a shared archive.
24888old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24889
24890# Create a temporary old-style archive to link instead of a shared archive.
24891old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24892
24893# Commands used to build and install a shared archive.
24894archive_cmds=$lt_archive_cmds_GCJ
24895archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24896postinstall_cmds=$lt_postinstall_cmds
24897postuninstall_cmds=$lt_postuninstall_cmds
24898
24899# Commands used to build a loadable module (assumed same as above if empty)
24900module_cmds=$lt_module_cmds_GCJ
24901module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24902
24903# Commands to strip libraries.
24904old_striplib=$lt_old_striplib
24905striplib=$lt_striplib
24906
24907# Dependencies to place before the objects being linked to create a
24908# shared library.
24909predep_objects=$lt_predep_objects_GCJ
24910
24911# Dependencies to place after the objects being linked to create a
24912# shared library.
24913postdep_objects=$lt_postdep_objects_GCJ
24914
24915# Dependencies to place before the objects being linked to create a
24916# shared library.
24917predeps=$lt_predeps_GCJ
24918
24919# Dependencies to place after the objects being linked to create a
24920# shared library.
24921postdeps=$lt_postdeps_GCJ
24922
24923# The library search path used internally by the compiler when linking
24924# a shared library.
24925compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24926
24927# Method to check whether dependent libraries are shared objects.
24928deplibs_check_method=$lt_deplibs_check_method
24929
24930# Command to use when deplibs_check_method == file_magic.
24931file_magic_cmd=$lt_file_magic_cmd
24932
24933# Flag that allows shared libraries with undefined symbols to be built.
24934allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24935
24936# Flag that forces no undefined symbols.
24937no_undefined_flag=$lt_no_undefined_flag_GCJ
24938
24939# Commands used to finish a libtool library installation in a directory.
24940finish_cmds=$lt_finish_cmds
24941
24942# Same as above, but a single script fragment to be evaled but not shown.
24943finish_eval=$lt_finish_eval
24944
24945# Take the output of nm and produce a listing of raw symbols and C names.
24946global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24947
24948# Transform the output of nm in a proper C declaration
24949global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24950
24951# Transform the output of nm in a C name address pair
24952global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24953
24954# This is the shared library runtime path variable.
24955runpath_var=$runpath_var
24956
24957# This is the shared library path variable.
24958shlibpath_var=$shlibpath_var
24959
24960# Is shlibpath searched before the hard-coded library search path?
24961shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24962
24963# How to hardcode a shared library path into an executable.
24964hardcode_action=$hardcode_action_GCJ
24965
24966# Whether we should hardcode library paths into libraries.
24967hardcode_into_libs=$hardcode_into_libs
24968
24969# Flag to hardcode \$libdir into a binary during linking.
24970# This must work even if \$libdir does not exist.
24971hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24972
24973# If ld is used when linking, flag to hardcode \$libdir into
24974# a binary during linking. This must work even if \$libdir does
24975# not exist.
24976hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24977
24978# Whether we need a single -rpath flag with a separated argument.
24979hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24980
24981# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24982# resulting binary.
24983hardcode_direct=$hardcode_direct_GCJ
24984
24985# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24986# resulting binary.
24987hardcode_minus_L=$hardcode_minus_L_GCJ
24988
24989# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24990# the resulting binary.
24991hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24992
24993# Set to yes if building a shared library automatically hardcodes DIR into the library
24994# and all subsequent libraries and executables linked against it.
24995hardcode_automatic=$hardcode_automatic_GCJ
24996
24997# Variables whose values should be saved in libtool wrapper scripts and
24998# restored at relink time.
24999variables_saved_for_relink="$variables_saved_for_relink"
25000
25001# Whether libtool must link a program against all its dependency libraries.
25002link_all_deplibs=$link_all_deplibs_GCJ
25003
25004# Compile-time system search path for libraries
25005sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25006
25007# Run-time system search path for libraries
25008sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25009
25010# Fix the shell variable \$srcfile for the compiler.
25011fix_srcfile_path="$fix_srcfile_path_GCJ"
25012
25013# Set to yes if exported symbols are required.
25014always_export_symbols=$always_export_symbols_GCJ
25015
25016# The commands to list exported symbols.
25017export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25018
25019# The commands to extract the exported symbol list from a shared archive.
25020extract_expsyms_cmds=$lt_extract_expsyms_cmds
25021
25022# Symbols that should not be listed in the preloaded symbols.
25023exclude_expsyms=$lt_exclude_expsyms_GCJ
25024
25025# Symbols that must always be exported.
25026include_expsyms=$lt_include_expsyms_GCJ
25027
25028# ### END LIBTOOL TAG CONFIG: $tagname
25029
25030__EOF__
25031
25032
25033else
25034 # If there is no Makefile yet, we rely on a make rule to execute
25035 # `config.status --recheck' to rerun these tests and create the
25036 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025037 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25038 if test -f "$ltmain_in"; then
25039 test -f Makefile && make "$ltmain"
25040 fi
John Criswell47fdd832003-07-14 16:52:07 +000025041fi
25042
25043
25044ac_ext=c
25045ac_cpp='$CPP $CPPFLAGS'
25046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25048ac_compiler_gnu=$ac_cv_c_compiler_gnu
25049
25050CC="$lt_save_CC"
25051
25052 else
25053 tagname=""
25054 fi
25055 ;;
25056
25057 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025058 ac_ext=c
25059ac_cpp='$CPP $CPPFLAGS'
25060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25062ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000025063
25064
25065# Source file extension for RC test sources.
25066ac_ext=rc
25067
25068# Object file extension for compiled RC test sources.
25069objext=o
25070objext_RC=$objext
25071
25072# Code to be used in simple compile tests
25073lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25074
25075# Code to be used in simple link tests
25076lt_simple_link_test_code="$lt_simple_compile_test_code"
25077
25078# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25079
25080# If no C compiler was specified, use CC.
25081LTCC=${LTCC-"$CC"}
25082
Reid Spencera773bd52006-08-04 18:18:08 +000025083# If no C compiler flags were specified, use CFLAGS.
25084LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25085
John Criswell47fdd832003-07-14 16:52:07 +000025086# Allow CC to be a program name with arguments.
25087compiler=$CC
25088
25089
Reid Spencera773bd52006-08-04 18:18:08 +000025090# save warnings/boilerplate of simple test code
25091ac_outfile=conftest.$ac_objext
25092printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25093eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25094_lt_compiler_boilerplate=`cat conftest.err`
25095$rm conftest*
25096
25097ac_outfile=conftest.$ac_objext
25098printf "$lt_simple_link_test_code" >conftest.$ac_ext
25099eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25100_lt_linker_boilerplate=`cat conftest.err`
25101$rm conftest*
25102
25103
John Criswell47fdd832003-07-14 16:52:07 +000025104# Allow CC to be a program name with arguments.
25105lt_save_CC="$CC"
25106CC=${RC-"windres"}
25107compiler=$CC
25108compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000025109for cc_temp in $compiler""; do
25110 case $cc_temp in
25111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25113 \-*) ;;
25114 *) break;;
25115 esac
25116done
25117cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25118
John Criswell47fdd832003-07-14 16:52:07 +000025119lt_cv_prog_compiler_c_o_RC=yes
25120
25121# The else clause should only fire when bootstrapping the
25122# libtool distribution, otherwise you forgot to ship ltmain.sh
25123# with your package, and you will get complaints that there are
25124# no rules to generate ltmain.sh.
25125if test -f "$ltmain"; then
25126 # See if we are running on zsh, and set the options which allow our commands through
25127 # without removal of \ escapes.
25128 if test -n "${ZSH_VERSION+set}" ; then
25129 setopt NO_GLOB_SUBST
25130 fi
25131 # Now quote all the things that may contain metacharacters while being
25132 # careful not to overquote the AC_SUBSTed values. We take copies of the
25133 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025134 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 +000025135 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025136 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25137 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25138 deplibs_check_method reload_flag reload_cmds need_locks \
25139 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25140 lt_cv_sys_global_symbol_to_c_name_address \
25141 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25142 old_postinstall_cmds old_postuninstall_cmds \
25143 compiler_RC \
25144 CC_RC \
25145 LD_RC \
25146 lt_prog_compiler_wl_RC \
25147 lt_prog_compiler_pic_RC \
25148 lt_prog_compiler_static_RC \
25149 lt_prog_compiler_no_builtin_flag_RC \
25150 export_dynamic_flag_spec_RC \
25151 thread_safe_flag_spec_RC \
25152 whole_archive_flag_spec_RC \
25153 enable_shared_with_static_runtimes_RC \
25154 old_archive_cmds_RC \
25155 old_archive_from_new_cmds_RC \
25156 predep_objects_RC \
25157 postdep_objects_RC \
25158 predeps_RC \
25159 postdeps_RC \
25160 compiler_lib_search_path_RC \
25161 archive_cmds_RC \
25162 archive_expsym_cmds_RC \
25163 postinstall_cmds_RC \
25164 postuninstall_cmds_RC \
25165 old_archive_from_expsyms_cmds_RC \
25166 allow_undefined_flag_RC \
25167 no_undefined_flag_RC \
25168 export_symbols_cmds_RC \
25169 hardcode_libdir_flag_spec_RC \
25170 hardcode_libdir_flag_spec_ld_RC \
25171 hardcode_libdir_separator_RC \
25172 hardcode_automatic_RC \
25173 module_cmds_RC \
25174 module_expsym_cmds_RC \
25175 lt_cv_prog_compiler_c_o_RC \
25176 exclude_expsyms_RC \
25177 include_expsyms_RC; do
25178
25179 case $var in
25180 old_archive_cmds_RC | \
25181 old_archive_from_new_cmds_RC | \
25182 archive_cmds_RC | \
25183 archive_expsym_cmds_RC | \
25184 module_cmds_RC | \
25185 module_expsym_cmds_RC | \
25186 old_archive_from_expsyms_cmds_RC | \
25187 export_symbols_cmds_RC | \
25188 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25189 postinstall_cmds | postuninstall_cmds | \
25190 old_postinstall_cmds | old_postuninstall_cmds | \
25191 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25192 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025193 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 +000025194 ;;
25195 *)
25196 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25197 ;;
25198 esac
25199 done
25200
25201 case $lt_echo in
25202 *'\$0 --fallback-echo"')
25203 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25204 ;;
25205 esac
25206
25207cfgfile="$ofile"
25208
25209 cat <<__EOF__ >> "$cfgfile"
25210# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25211
25212# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25213
25214# Shell to use when invoking shell scripts.
25215SHELL=$lt_SHELL
25216
25217# Whether or not to build shared libraries.
25218build_libtool_libs=$enable_shared
25219
25220# Whether or not to build static libraries.
25221build_old_libs=$enable_static
25222
25223# Whether or not to add -lc for building shared libraries.
25224build_libtool_need_lc=$archive_cmds_need_lc_RC
25225
25226# Whether or not to disallow shared libs when runtime libs are static
25227allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25228
25229# Whether or not to optimize for fast installation.
25230fast_install=$enable_fast_install
25231
25232# The host system.
25233host_alias=$host_alias
25234host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025235host_os=$host_os
25236
25237# The build system.
25238build_alias=$build_alias
25239build=$build
25240build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025241
25242# An echo program that does not interpret backslashes.
25243echo=$lt_echo
25244
25245# The archiver.
25246AR=$lt_AR
25247AR_FLAGS=$lt_AR_FLAGS
25248
25249# A C compiler.
25250LTCC=$lt_LTCC
25251
Reid Spencera773bd52006-08-04 18:18:08 +000025252# LTCC compiler flags.
25253LTCFLAGS=$lt_LTCFLAGS
25254
John Criswell47fdd832003-07-14 16:52:07 +000025255# A language-specific compiler.
25256CC=$lt_compiler_RC
25257
25258# Is the compiler the GNU C compiler?
25259with_gcc=$GCC_RC
25260
25261# An ERE matcher.
25262EGREP=$lt_EGREP
25263
25264# The linker used to build libraries.
25265LD=$lt_LD_RC
25266
25267# Whether we need hard or soft links.
25268LN_S=$lt_LN_S
25269
25270# A BSD-compatible nm program.
25271NM=$lt_NM
25272
25273# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025274STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025275
25276# Used to examine libraries when file_magic_cmd begins "file"
25277MAGIC_CMD=$MAGIC_CMD
25278
25279# Used on cygwin: DLL creation program.
25280DLLTOOL="$DLLTOOL"
25281
25282# Used on cygwin: object dumper.
25283OBJDUMP="$OBJDUMP"
25284
25285# Used on cygwin: assembler.
25286AS="$AS"
25287
25288# The name of the directory that contains temporary libtool files.
25289objdir=$objdir
25290
25291# How to create reloadable object files.
25292reload_flag=$lt_reload_flag
25293reload_cmds=$lt_reload_cmds
25294
25295# How to pass a linker flag through the compiler.
25296wl=$lt_lt_prog_compiler_wl_RC
25297
25298# Object file suffix (normally "o").
25299objext="$ac_objext"
25300
25301# Old archive suffix (normally "a").
25302libext="$libext"
25303
25304# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025305shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025306
25307# Executable file suffix (normally "").
25308exeext="$exeext"
25309
25310# Additional compiler flags for building library objects.
25311pic_flag=$lt_lt_prog_compiler_pic_RC
25312pic_mode=$pic_mode
25313
25314# What is the maximum length of a command?
25315max_cmd_len=$lt_cv_sys_max_cmd_len
25316
25317# Does compiler simultaneously support -c and -o options?
25318compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25319
Reid Spencera773bd52006-08-04 18:18:08 +000025320# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025321need_locks=$lt_need_locks
25322
25323# Do we need the lib prefix for modules?
25324need_lib_prefix=$need_lib_prefix
25325
25326# Do we need a version for libraries?
25327need_version=$need_version
25328
25329# Whether dlopen is supported.
25330dlopen_support=$enable_dlopen
25331
25332# Whether dlopen of programs is supported.
25333dlopen_self=$enable_dlopen_self
25334
25335# Whether dlopen of statically linked programs is supported.
25336dlopen_self_static=$enable_dlopen_self_static
25337
25338# Compiler flag to prevent dynamic linking.
25339link_static_flag=$lt_lt_prog_compiler_static_RC
25340
25341# Compiler flag to turn off builtin functions.
25342no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25343
25344# Compiler flag to allow reflexive dlopens.
25345export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25346
25347# Compiler flag to generate shared objects directly from archives.
25348whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25349
25350# Compiler flag to generate thread-safe objects.
25351thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25352
25353# Library versioning type.
25354version_type=$version_type
25355
25356# Format of library name prefix.
25357libname_spec=$lt_libname_spec
25358
25359# List of archive names. First name is the real one, the rest are links.
25360# The last name is the one that the linker finds with -lNAME.
25361library_names_spec=$lt_library_names_spec
25362
25363# The coded name of the library, if different from the real name.
25364soname_spec=$lt_soname_spec
25365
25366# Commands used to build and install an old-style archive.
25367RANLIB=$lt_RANLIB
25368old_archive_cmds=$lt_old_archive_cmds_RC
25369old_postinstall_cmds=$lt_old_postinstall_cmds
25370old_postuninstall_cmds=$lt_old_postuninstall_cmds
25371
25372# Create an old-style archive from a shared archive.
25373old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25374
25375# Create a temporary old-style archive to link instead of a shared archive.
25376old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25377
25378# Commands used to build and install a shared archive.
25379archive_cmds=$lt_archive_cmds_RC
25380archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25381postinstall_cmds=$lt_postinstall_cmds
25382postuninstall_cmds=$lt_postuninstall_cmds
25383
25384# Commands used to build a loadable module (assumed same as above if empty)
25385module_cmds=$lt_module_cmds_RC
25386module_expsym_cmds=$lt_module_expsym_cmds_RC
25387
25388# Commands to strip libraries.
25389old_striplib=$lt_old_striplib
25390striplib=$lt_striplib
25391
25392# Dependencies to place before the objects being linked to create a
25393# shared library.
25394predep_objects=$lt_predep_objects_RC
25395
25396# Dependencies to place after the objects being linked to create a
25397# shared library.
25398postdep_objects=$lt_postdep_objects_RC
25399
25400# Dependencies to place before the objects being linked to create a
25401# shared library.
25402predeps=$lt_predeps_RC
25403
25404# Dependencies to place after the objects being linked to create a
25405# shared library.
25406postdeps=$lt_postdeps_RC
25407
25408# The library search path used internally by the compiler when linking
25409# a shared library.
25410compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25411
25412# Method to check whether dependent libraries are shared objects.
25413deplibs_check_method=$lt_deplibs_check_method
25414
25415# Command to use when deplibs_check_method == file_magic.
25416file_magic_cmd=$lt_file_magic_cmd
25417
25418# Flag that allows shared libraries with undefined symbols to be built.
25419allow_undefined_flag=$lt_allow_undefined_flag_RC
25420
25421# Flag that forces no undefined symbols.
25422no_undefined_flag=$lt_no_undefined_flag_RC
25423
25424# Commands used to finish a libtool library installation in a directory.
25425finish_cmds=$lt_finish_cmds
25426
25427# Same as above, but a single script fragment to be evaled but not shown.
25428finish_eval=$lt_finish_eval
25429
25430# Take the output of nm and produce a listing of raw symbols and C names.
25431global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25432
25433# Transform the output of nm in a proper C declaration
25434global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25435
25436# Transform the output of nm in a C name address pair
25437global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25438
25439# This is the shared library runtime path variable.
25440runpath_var=$runpath_var
25441
25442# This is the shared library path variable.
25443shlibpath_var=$shlibpath_var
25444
25445# Is shlibpath searched before the hard-coded library search path?
25446shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25447
25448# How to hardcode a shared library path into an executable.
25449hardcode_action=$hardcode_action_RC
25450
25451# Whether we should hardcode library paths into libraries.
25452hardcode_into_libs=$hardcode_into_libs
25453
25454# Flag to hardcode \$libdir into a binary during linking.
25455# This must work even if \$libdir does not exist.
25456hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25457
25458# If ld is used when linking, flag to hardcode \$libdir into
25459# a binary during linking. This must work even if \$libdir does
25460# not exist.
25461hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25462
25463# Whether we need a single -rpath flag with a separated argument.
25464hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25465
25466# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25467# resulting binary.
25468hardcode_direct=$hardcode_direct_RC
25469
25470# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25471# resulting binary.
25472hardcode_minus_L=$hardcode_minus_L_RC
25473
25474# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25475# the resulting binary.
25476hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25477
25478# Set to yes if building a shared library automatically hardcodes DIR into the library
25479# and all subsequent libraries and executables linked against it.
25480hardcode_automatic=$hardcode_automatic_RC
25481
25482# Variables whose values should be saved in libtool wrapper scripts and
25483# restored at relink time.
25484variables_saved_for_relink="$variables_saved_for_relink"
25485
25486# Whether libtool must link a program against all its dependency libraries.
25487link_all_deplibs=$link_all_deplibs_RC
25488
25489# Compile-time system search path for libraries
25490sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25491
25492# Run-time system search path for libraries
25493sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25494
25495# Fix the shell variable \$srcfile for the compiler.
25496fix_srcfile_path="$fix_srcfile_path_RC"
25497
25498# Set to yes if exported symbols are required.
25499always_export_symbols=$always_export_symbols_RC
25500
25501# The commands to list exported symbols.
25502export_symbols_cmds=$lt_export_symbols_cmds_RC
25503
25504# The commands to extract the exported symbol list from a shared archive.
25505extract_expsyms_cmds=$lt_extract_expsyms_cmds
25506
25507# Symbols that should not be listed in the preloaded symbols.
25508exclude_expsyms=$lt_exclude_expsyms_RC
25509
25510# Symbols that must always be exported.
25511include_expsyms=$lt_include_expsyms_RC
25512
25513# ### END LIBTOOL TAG CONFIG: $tagname
25514
25515__EOF__
25516
25517
25518else
25519 # If there is no Makefile yet, we rely on a make rule to execute
25520 # `config.status --recheck' to rerun these tests and create the
25521 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025522 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25523 if test -f "$ltmain_in"; then
25524 test -f Makefile && make "$ltmain"
25525 fi
John Criswell47fdd832003-07-14 16:52:07 +000025526fi
25527
25528
25529ac_ext=c
25530ac_cpp='$CPP $CPPFLAGS'
25531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25533ac_compiler_gnu=$ac_cv_c_compiler_gnu
25534
25535CC="$lt_save_CC"
25536
25537 ;;
25538
25539 *)
25540 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25541echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25542 { (exit 1); exit 1; }; }
25543 ;;
25544 esac
25545
25546 # Append the new tag name to the list of available tags.
25547 if test -n "$tagname" ; then
25548 available_tags="$available_tags $tagname"
25549 fi
25550 fi
25551 done
25552 IFS="$lt_save_ifs"
25553
25554 # Now substitute the updated list of available tags.
25555 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25556 mv "${ofile}T" "$ofile"
25557 chmod +x "$ofile"
25558 else
25559 rm -f "${ofile}T"
25560 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25561echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25562 { (exit 1); exit 1; }; }
25563 fi
25564fi
John Criswell7a73b802003-06-30 21:59:07 +000025565
25566
25567
25568# This can be used to rebuild libtool when needed
25569LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25570
25571# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025572LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000025573
25574# Prevent multiple expansion
25575
25576
25577
John Criswell47fdd832003-07-14 16:52:07 +000025578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025595
Reid Spencer582a23c2004-12-29 07:07:57 +000025596if test "$lt_cv_dlopen_self" = "yes" ; then
25597
25598cat >>confdefs.h <<\_ACEOF
25599#define CAN_DLOPEN_SELF 1
25600_ACEOF
25601
25602fi
25603
Reid Spencer7931a782004-12-27 06:15:02 +000025604if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000025605 LLVMGCC="llvm-gcc${EXEEXT}"
25606 LLVMGXX="llvm-g++${EXEEXT}"
25607 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25608set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025611if test "${ac_cv_path_LLVMGCC+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25613else
25614 case $LLVMGCC in
25615 [\\/]* | ?:[\\/]*)
25616 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25617 ;;
25618 *)
25619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25620for as_dir in $PATH
25621do
25622 IFS=$as_save_IFS
25623 test -z "$as_dir" && as_dir=.
25624 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000025625 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 +000025626 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25628 break 2
25629 fi
25630done
25631done
Reid Spencera773bd52006-08-04 18:18:08 +000025632IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025633
Reid Spencer59473af2004-12-25 07:31:29 +000025634 ;;
25635esac
25636fi
25637LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000025638if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025639 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25640echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025641else
Reid Spencera773bd52006-08-04 18:18:08 +000025642 { echo "$as_me:$LINENO: result: no" >&5
25643echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025644fi
25645
Reid Spencera773bd52006-08-04 18:18:08 +000025646
Reid Spencerc84492c2005-06-02 22:34:49 +000025647 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25648set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025651if test "${ac_cv_path_LLVMGXX+set}" = set; then
25652 echo $ECHO_N "(cached) $ECHO_C" >&6
25653else
25654 case $LLVMGXX in
25655 [\\/]* | ?:[\\/]*)
25656 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25657 ;;
25658 *)
25659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25660for as_dir in $PATH
25661do
25662 IFS=$as_save_IFS
25663 test -z "$as_dir" && as_dir=.
25664 for ac_exec_ext in '' $ac_executable_extensions; do
Scott Michel96dcd2b2007-12-05 21:24:02 +000025665 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 +000025666 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25668 break 2
25669 fi
25670done
25671done
Reid Spencera773bd52006-08-04 18:18:08 +000025672IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025673
Reid Spencer59473af2004-12-25 07:31:29 +000025674 ;;
25675esac
25676fi
25677LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000025678if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025679 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25680echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025681else
Reid Spencera773bd52006-08-04 18:18:08 +000025682 { echo "$as_me:$LINENO: result: no" >&5
25683echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025684fi
25685
Reid Spencera773bd52006-08-04 18:18:08 +000025686
Reid Spencer59473af2004-12-25 07:31:29 +000025687else
Devang Patel5d28b882007-12-04 22:54:47 +000025688 if test -z "$LLVMGCC"; then
25689 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25690 fi
25691 if test -z "$LLVMGXX"; then
25692 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25693 fi
Reid Spencer59473af2004-12-25 07:31:29 +000025694 LLVMGCC=$LLVMGCC
25695
25696 LLVMGXX=$LLVMGXX
25697
25698fi
25699
Reid Spencera773bd52006-08-04 18:18:08 +000025700{ echo "$as_me:$LINENO: checking tool compatibility" >&5
25701echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025702
Reid Spencer86901802004-12-08 23:07:27 +000025703ICC=no
25704IXX=no
25705case $CC in
25706 icc*|icpc*)
25707 ICC=yes
25708 IXX=yes
25709 ;;
25710 *)
25711 ;;
25712esac
25713
Duraid Madina937c60a2006-02-15 07:57:42 +000025714if test "$GCC" != "yes" && test "$ICC" != "yes"
25715then
25716 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25717echo "$as_me: error: gcc|icc required but not found" >&2;}
25718 { (exit 1); exit 1; }; }
25719fi
25720
25721if test "$GXX" != "yes" && test "$IXX" != "yes"
25722then
25723 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25724echo "$as_me: error: g++|icc required but not found" >&2;}
25725 { (exit 1); exit 1; }; }
25726fi
25727
Reid Spencer86901802004-12-08 23:07:27 +000025728if test "$GCC" = "yes"
25729then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000025730 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000025731 if test "$gccmajor" -lt "3"
25732 then
25733 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025734echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25735 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000025736 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025737fi
25738
25739if test -z "$llvm_cv_gnu_make_command"
25740then
25741 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25742echo "$as_me: error: GNU Make required but not found" >&2;}
25743 { (exit 1); exit 1; }; }
25744fi
25745
Reid Spencera773bd52006-08-04 18:18:08 +000025746{ echo "$as_me:$LINENO: result: ok" >&5
25747echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025748
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025749
John Criswell7a73b802003-06-30 21:59:07 +000025750
Reid Spencera773bd52006-08-04 18:18:08 +000025751{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25752echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000025753if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25754 echo $ECHO_N "(cached) $ECHO_C" >&6
25755else
25756 ac_check_lib_save_LIBS=$LIBS
25757LIBS="-lelf $LIBS"
25758cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025759/* confdefs.h. */
25760_ACEOF
25761cat confdefs.h >>conftest.$ac_ext
25762cat >>conftest.$ac_ext <<_ACEOF
25763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025764
Reid Spencera773bd52006-08-04 18:18:08 +000025765/* Override any GCC internal prototype to avoid an error.
25766 Use char because int might match the return type of a GCC
25767 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000025768#ifdef __cplusplus
25769extern "C"
25770#endif
John Criswell7a73b802003-06-30 21:59:07 +000025771char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025772int
25773main ()
25774{
Reid Spencera773bd52006-08-04 18:18:08 +000025775return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025776 ;
25777 return 0;
25778}
25779_ACEOF
25780rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025781if { (ac_try="$ac_link"
25782case "(($ac_try" in
25783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25784 *) ac_try_echo=$ac_try;;
25785esac
25786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25787 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025788 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025789 grep -v '^ *+' conftest.er1 >conftest.err
25790 rm -f conftest.er1
25791 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025793 (exit $ac_status); } && {
25794 test -z "$ac_c_werror_flag" ||
25795 test ! -s conftest.err
25796 } && test -s conftest$ac_exeext &&
25797 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000025798 ac_cv_lib_elf_elf_begin=yes
25799else
25800 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025801sed 's/^/| /' conftest.$ac_ext >&5
25802
Reid Spencera773bd52006-08-04 18:18:08 +000025803 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000025804fi
Reid Spencera773bd52006-08-04 18:18:08 +000025805
Scott Michel96dcd2b2007-12-05 21:24:02 +000025806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025807 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025808LIBS=$ac_check_lib_save_LIBS
25809fi
Reid Spencera773bd52006-08-04 18:18:08 +000025810{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25811echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000025812if test $ac_cv_lib_elf_elf_begin = yes; then
25813 cat >>confdefs.h <<_ACEOF
25814#define HAVE_LIBELF 1
25815_ACEOF
25816
25817 LIBS="-lelf $LIBS"
25818
25819fi
25820
25821
Reid Spencera773bd52006-08-04 18:18:08 +000025822{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
25823echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000025824if test "${ac_cv_lib_m_sin+set}" = set; then
25825 echo $ECHO_N "(cached) $ECHO_C" >&6
25826else
25827 ac_check_lib_save_LIBS=$LIBS
25828LIBS="-lm $LIBS"
25829cat >conftest.$ac_ext <<_ACEOF
25830/* confdefs.h. */
25831_ACEOF
25832cat confdefs.h >>conftest.$ac_ext
25833cat >>conftest.$ac_ext <<_ACEOF
25834/* end confdefs.h. */
25835
Reid Spencera773bd52006-08-04 18:18:08 +000025836/* Override any GCC internal prototype to avoid an error.
25837 Use char because int might match the return type of a GCC
25838 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000025839#ifdef __cplusplus
25840extern "C"
25841#endif
Reid Spencer3484a992006-01-19 08:31:08 +000025842char sin ();
25843int
25844main ()
25845{
Reid Spencera773bd52006-08-04 18:18:08 +000025846return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000025847 ;
25848 return 0;
25849}
25850_ACEOF
25851rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025852if { (ac_try="$ac_link"
25853case "(($ac_try" in
25854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855 *) ac_try_echo=$ac_try;;
25856esac
25857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000025859 ac_status=$?
25860 grep -v '^ *+' conftest.er1 >conftest.err
25861 rm -f conftest.er1
25862 cat conftest.err >&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025864 (exit $ac_status); } && {
25865 test -z "$ac_c_werror_flag" ||
25866 test ! -s conftest.err
25867 } && test -s conftest$ac_exeext &&
25868 $as_test_x conftest$ac_exeext; then
Reid Spencer3484a992006-01-19 08:31:08 +000025869 ac_cv_lib_m_sin=yes
25870else
25871 echo "$as_me: failed program was:" >&5
25872sed 's/^/| /' conftest.$ac_ext >&5
25873
Reid Spencera773bd52006-08-04 18:18:08 +000025874 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000025875fi
Reid Spencera773bd52006-08-04 18:18:08 +000025876
Scott Michel96dcd2b2007-12-05 21:24:02 +000025877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer3484a992006-01-19 08:31:08 +000025878 conftest$ac_exeext conftest.$ac_ext
25879LIBS=$ac_check_lib_save_LIBS
25880fi
Reid Spencera773bd52006-08-04 18:18:08 +000025881{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25882echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000025883if test $ac_cv_lib_m_sin = yes; then
25884 cat >>confdefs.h <<_ACEOF
25885#define HAVE_LIBM 1
25886_ACEOF
25887
25888 LIBS="-lm $LIBS"
25889
25890fi
25891
Jeff Cohen28783c32007-01-12 18:22:38 +000025892if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025893
Reid Spencera773bd52006-08-04 18:18:08 +000025894{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25895echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025896if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025897 echo $ECHO_N "(cached) $ECHO_C" >&6
25898else
25899 ac_check_lib_save_LIBS=$LIBS
25900LIBS="-limagehlp $LIBS"
25901cat >conftest.$ac_ext <<_ACEOF
25902/* confdefs.h. */
25903_ACEOF
25904cat confdefs.h >>conftest.$ac_ext
25905cat >>conftest.$ac_ext <<_ACEOF
25906/* end confdefs.h. */
25907
Reid Spencer48fdf912006-06-01 19:03:21 +000025908
Reid Spencer484fc8e2006-06-01 16:55:59 +000025909int
25910main ()
25911{
Reid Spencera773bd52006-08-04 18:18:08 +000025912return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025913 ;
25914 return 0;
25915}
25916_ACEOF
25917rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025918if { (ac_try="$ac_link"
25919case "(($ac_try" in
25920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921 *) ac_try_echo=$ac_try;;
25922esac
25923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25924 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000025925 ac_status=$?
25926 grep -v '^ *+' conftest.er1 >conftest.err
25927 rm -f conftest.er1
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025930 (exit $ac_status); } && {
25931 test -z "$ac_c_werror_flag" ||
25932 test ! -s conftest.err
25933 } && test -s conftest$ac_exeext &&
25934 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025935 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025936else
25937 echo "$as_me: failed program was:" >&5
25938sed 's/^/| /' conftest.$ac_ext >&5
25939
Reid Spencera773bd52006-08-04 18:18:08 +000025940 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025941fi
Reid Spencera773bd52006-08-04 18:18:08 +000025942
Scott Michel96dcd2b2007-12-05 21:24:02 +000025943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000025944 conftest$ac_exeext conftest.$ac_ext
25945LIBS=$ac_check_lib_save_LIBS
25946fi
Reid Spencera773bd52006-08-04 18:18:08 +000025947{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25948echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025949if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025950 cat >>confdefs.h <<_ACEOF
25951#define HAVE_LIBIMAGEHLP 1
25952_ACEOF
25953
25954 LIBS="-limagehlp $LIBS"
25955
25956fi
25957
25958
Reid Spencera773bd52006-08-04 18:18:08 +000025959{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25960echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000025961if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025962 echo $ECHO_N "(cached) $ECHO_C" >&6
25963else
25964 ac_check_lib_save_LIBS=$LIBS
25965LIBS="-lpsapi $LIBS"
25966cat >conftest.$ac_ext <<_ACEOF
25967/* confdefs.h. */
25968_ACEOF
25969cat confdefs.h >>conftest.$ac_ext
25970cat >>conftest.$ac_ext <<_ACEOF
25971/* end confdefs.h. */
25972
Reid Spencer48fdf912006-06-01 19:03:21 +000025973
Reid Spencer484fc8e2006-06-01 16:55:59 +000025974int
25975main ()
25976{
Reid Spencera773bd52006-08-04 18:18:08 +000025977return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025978 ;
25979 return 0;
25980}
25981_ACEOF
25982rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025983if { (ac_try="$ac_link"
25984case "(($ac_try" in
25985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25987esac
25988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000025990 ac_status=$?
25991 grep -v '^ *+' conftest.er1 >conftest.err
25992 rm -f conftest.er1
25993 cat conftest.err >&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000025995 (exit $ac_status); } && {
25996 test -z "$ac_c_werror_flag" ||
25997 test ! -s conftest.err
25998 } && test -s conftest$ac_exeext &&
25999 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026000 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026001else
26002 echo "$as_me: failed program was:" >&5
26003sed 's/^/| /' conftest.$ac_ext >&5
26004
Reid Spencera773bd52006-08-04 18:18:08 +000026005 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026006fi
Reid Spencera773bd52006-08-04 18:18:08 +000026007
Scott Michel96dcd2b2007-12-05 21:24:02 +000026008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026009 conftest$ac_exeext conftest.$ac_ext
26010LIBS=$ac_check_lib_save_LIBS
26011fi
Reid Spencera773bd52006-08-04 18:18:08 +000026012{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26013echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026014if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026015 cat >>confdefs.h <<_ACEOF
26016#define HAVE_LIBPSAPI 1
26017_ACEOF
26018
26019 LIBS="-lpsapi $LIBS"
26020
26021fi
26022
26023fi
Reid Spencer22177fe2005-07-12 15:24:20 +000026024
Reid Spencera773bd52006-08-04 18:18:08 +000026025{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26026echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000026027if test "${ac_cv_search_lt_dlopen+set}" = set; then
26028 echo $ECHO_N "(cached) $ECHO_C" >&6
26029else
26030 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000026031cat >conftest.$ac_ext <<_ACEOF
26032/* confdefs.h. */
26033_ACEOF
26034cat confdefs.h >>conftest.$ac_ext
26035cat >>conftest.$ac_ext <<_ACEOF
26036/* end confdefs.h. */
26037
Reid Spencera773bd52006-08-04 18:18:08 +000026038/* Override any GCC internal prototype to avoid an error.
26039 Use char because int might match the return type of a GCC
26040 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000026041#ifdef __cplusplus
26042extern "C"
26043#endif
Reid Spencer17795972004-11-18 09:47:37 +000026044char lt_dlopen ();
26045int
26046main ()
26047{
Reid Spencera773bd52006-08-04 18:18:08 +000026048return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000026049 ;
26050 return 0;
26051}
26052_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026053for ac_lib in '' ltdl; do
26054 if test -z "$ac_lib"; then
26055 ac_res="none required"
26056 else
26057 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000026058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026059 fi
26060 rm -f conftest.$ac_objext conftest$ac_exeext
26061if { (ac_try="$ac_link"
26062case "(($ac_try" in
26063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26064 *) ac_try_echo=$ac_try;;
26065esac
26066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000026068 ac_status=$?
26069 grep -v '^ *+' conftest.er1 >conftest.err
26070 rm -f conftest.er1
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026073 (exit $ac_status); } && {
26074 test -z "$ac_c_werror_flag" ||
26075 test ! -s conftest.err
26076 } && test -s conftest$ac_exeext &&
26077 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026078 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000026079else
26080 echo "$as_me: failed program was:" >&5
26081sed 's/^/| /' conftest.$ac_ext >&5
26082
Reid Spencera773bd52006-08-04 18:18:08 +000026083
Reid Spencer17795972004-11-18 09:47:37 +000026084fi
Reid Spencera773bd52006-08-04 18:18:08 +000026085
Scott Michel96dcd2b2007-12-05 21:24:02 +000026086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026087 conftest$ac_exeext
26088 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26089 break
Reid Spencer17795972004-11-18 09:47:37 +000026090fi
Reid Spencera773bd52006-08-04 18:18:08 +000026091done
26092if test "${ac_cv_search_lt_dlopen+set}" = set; then
26093 :
26094else
26095 ac_cv_search_lt_dlopen=no
26096fi
26097rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000026098LIBS=$ac_func_search_save_LIBS
26099fi
Reid Spencera773bd52006-08-04 18:18:08 +000026100{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26101echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26102ac_res=$ac_cv_search_lt_dlopen
26103if test "$ac_res" != no; then
26104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000026105
26106cat >>confdefs.h <<\_ACEOF
26107#define HAVE_LT_DLOPEN 1
26108_ACEOF
26109
26110else
26111 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26112 not be available" >&5
26113echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26114 not be available" >&2;}
26115fi
26116
26117
Reid Spencera773bd52006-08-04 18:18:08 +000026118{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26119echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026120if test "${ac_cv_search_dlopen+set}" = set; then
26121 echo $ECHO_N "(cached) $ECHO_C" >&6
26122else
26123 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026124cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026125/* confdefs.h. */
26126_ACEOF
26127cat confdefs.h >>conftest.$ac_ext
26128cat >>conftest.$ac_ext <<_ACEOF
26129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026130
Reid Spencera773bd52006-08-04 18:18:08 +000026131/* Override any GCC internal prototype to avoid an error.
26132 Use char because int might match the return type of a GCC
26133 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026134#ifdef __cplusplus
26135extern "C"
26136#endif
John Criswell7a73b802003-06-30 21:59:07 +000026137char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026138int
26139main ()
26140{
Reid Spencera773bd52006-08-04 18:18:08 +000026141return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026142 ;
26143 return 0;
26144}
26145_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026146for ac_lib in '' dl; do
26147 if test -z "$ac_lib"; then
26148 ac_res="none required"
26149 else
26150 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026152 fi
26153 rm -f conftest.$ac_objext conftest$ac_exeext
26154if { (ac_try="$ac_link"
26155case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26158esac
26159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026161 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026162 grep -v '^ *+' conftest.er1 >conftest.err
26163 rm -f conftest.er1
26164 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026166 (exit $ac_status); } && {
26167 test -z "$ac_c_werror_flag" ||
26168 test ! -s conftest.err
26169 } && test -s conftest$ac_exeext &&
26170 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026171 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026172else
26173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026174sed 's/^/| /' conftest.$ac_ext >&5
26175
Reid Spencera773bd52006-08-04 18:18:08 +000026176
John Criswell7a73b802003-06-30 21:59:07 +000026177fi
Reid Spencera773bd52006-08-04 18:18:08 +000026178
Scott Michel96dcd2b2007-12-05 21:24:02 +000026179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026180 conftest$ac_exeext
26181 if test "${ac_cv_search_dlopen+set}" = set; then
26182 break
John Criswell7a73b802003-06-30 21:59:07 +000026183fi
Reid Spencera773bd52006-08-04 18:18:08 +000026184done
26185if test "${ac_cv_search_dlopen+set}" = set; then
26186 :
26187else
26188 ac_cv_search_dlopen=no
26189fi
26190rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026191LIBS=$ac_func_search_save_LIBS
26192fi
Reid Spencera773bd52006-08-04 18:18:08 +000026193{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26194echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26195ac_res=$ac_cv_search_dlopen
26196if test "$ac_res" != no; then
26197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026198
26199cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000026200#define HAVE_DLOPEN 1
26201_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026202
26203else
Brian Gaekec45be042003-10-07 06:01:34 +000026204 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26205echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000026206fi
26207
26208
Reid Spencera773bd52006-08-04 18:18:08 +000026209{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26210echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026211if test "${ac_cv_search_mallinfo+set}" = set; then
26212 echo $ECHO_N "(cached) $ECHO_C" >&6
26213else
26214 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026215cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026216/* confdefs.h. */
26217_ACEOF
26218cat confdefs.h >>conftest.$ac_ext
26219cat >>conftest.$ac_ext <<_ACEOF
26220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026221
Reid Spencera773bd52006-08-04 18:18:08 +000026222/* Override any GCC internal prototype to avoid an error.
26223 Use char because int might match the return type of a GCC
26224 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026225#ifdef __cplusplus
26226extern "C"
26227#endif
John Criswell7a73b802003-06-30 21:59:07 +000026228char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026229int
26230main ()
26231{
Reid Spencera773bd52006-08-04 18:18:08 +000026232return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026233 ;
26234 return 0;
26235}
26236_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026237for ac_lib in '' malloc; do
26238 if test -z "$ac_lib"; then
26239 ac_res="none required"
26240 else
26241 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026243 fi
26244 rm -f conftest.$ac_objext conftest$ac_exeext
26245if { (ac_try="$ac_link"
26246case "(($ac_try" in
26247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26248 *) ac_try_echo=$ac_try;;
26249esac
26250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26251 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026252 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026253 grep -v '^ *+' conftest.er1 >conftest.err
26254 rm -f conftest.er1
26255 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026257 (exit $ac_status); } && {
26258 test -z "$ac_c_werror_flag" ||
26259 test ! -s conftest.err
26260 } && test -s conftest$ac_exeext &&
26261 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026262 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026263else
26264 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026265sed 's/^/| /' conftest.$ac_ext >&5
26266
Reid Spencera773bd52006-08-04 18:18:08 +000026267
John Criswell7a73b802003-06-30 21:59:07 +000026268fi
Reid Spencera773bd52006-08-04 18:18:08 +000026269
Scott Michel96dcd2b2007-12-05 21:24:02 +000026270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026271 conftest$ac_exeext
26272 if test "${ac_cv_search_mallinfo+set}" = set; then
26273 break
John Criswell7a73b802003-06-30 21:59:07 +000026274fi
Reid Spencera773bd52006-08-04 18:18:08 +000026275done
26276if test "${ac_cv_search_mallinfo+set}" = set; then
26277 :
26278else
26279 ac_cv_search_mallinfo=no
26280fi
26281rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026282LIBS=$ac_func_search_save_LIBS
26283fi
Reid Spencera773bd52006-08-04 18:18:08 +000026284{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26285echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26286ac_res=$ac_cv_search_mallinfo
26287if test "$ac_res" != no; then
26288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026289
26290cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026291#define HAVE_MALLINFO 1
26292_ACEOF
26293
26294fi
26295
26296
Reid Spencer0a262ba2005-08-24 10:07:20 +000026297if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026298
Reid Spencera773bd52006-08-04 18:18:08 +000026299{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26300echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026301if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26302 echo $ECHO_N "(cached) $ECHO_C" >&6
26303else
26304 ac_check_lib_save_LIBS=$LIBS
26305LIBS="-lpthread $LIBS"
26306cat >conftest.$ac_ext <<_ACEOF
26307/* confdefs.h. */
26308_ACEOF
26309cat confdefs.h >>conftest.$ac_ext
26310cat >>conftest.$ac_ext <<_ACEOF
26311/* end confdefs.h. */
26312
Reid Spencera773bd52006-08-04 18:18:08 +000026313/* Override any GCC internal prototype to avoid an error.
26314 Use char because int might match the return type of a GCC
26315 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000026316#ifdef __cplusplus
26317extern "C"
26318#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000026319char pthread_mutex_init ();
26320int
26321main ()
26322{
Reid Spencera773bd52006-08-04 18:18:08 +000026323return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000026324 ;
26325 return 0;
26326}
26327_ACEOF
26328rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026329if { (ac_try="$ac_link"
26330case "(($ac_try" in
26331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332 *) ac_try_echo=$ac_try;;
26333esac
26334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000026336 ac_status=$?
26337 grep -v '^ *+' conftest.er1 >conftest.err
26338 rm -f conftest.er1
26339 cat conftest.err >&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026341 (exit $ac_status); } && {
26342 test -z "$ac_c_werror_flag" ||
26343 test ! -s conftest.err
26344 } && test -s conftest$ac_exeext &&
26345 $as_test_x conftest$ac_exeext; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026346 ac_cv_lib_pthread_pthread_mutex_init=yes
26347else
26348 echo "$as_me: failed program was:" >&5
26349sed 's/^/| /' conftest.$ac_ext >&5
26350
Reid Spencera773bd52006-08-04 18:18:08 +000026351 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000026352fi
Reid Spencera773bd52006-08-04 18:18:08 +000026353
Scott Michel96dcd2b2007-12-05 21:24:02 +000026354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer22177fe2005-07-12 15:24:20 +000026355 conftest$ac_exeext conftest.$ac_ext
26356LIBS=$ac_check_lib_save_LIBS
26357fi
Reid Spencera773bd52006-08-04 18:18:08 +000026358{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26359echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026360if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26361 cat >>confdefs.h <<_ACEOF
26362#define HAVE_LIBPTHREAD 1
26363_ACEOF
26364
26365 LIBS="-lpthread $LIBS"
26366
26367fi
26368
Reid Spencera773bd52006-08-04 18:18:08 +000026369 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26370echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000026371if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26372 echo $ECHO_N "(cached) $ECHO_C" >&6
26373else
26374 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000026375cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000026376/* confdefs.h. */
26377_ACEOF
26378cat confdefs.h >>conftest.$ac_ext
26379cat >>conftest.$ac_ext <<_ACEOF
26380/* end confdefs.h. */
26381
Reid Spencera773bd52006-08-04 18:18:08 +000026382/* Override any GCC internal prototype to avoid an error.
26383 Use char because int might match the return type of a GCC
26384 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000026385#ifdef __cplusplus
26386extern "C"
26387#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000026388char pthread_mutex_lock ();
26389int
26390main ()
26391{
Reid Spencera773bd52006-08-04 18:18:08 +000026392return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000026393 ;
26394 return 0;
26395}
26396_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026397for ac_lib in '' pthread; do
26398 if test -z "$ac_lib"; then
26399 ac_res="none required"
26400 else
26401 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000026402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026403 fi
26404 rm -f conftest.$ac_objext conftest$ac_exeext
26405if { (ac_try="$ac_link"
26406case "(($ac_try" in
26407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26408 *) ac_try_echo=$ac_try;;
26409esac
26410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26411 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000026412 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026413 grep -v '^ *+' conftest.er1 >conftest.err
26414 rm -f conftest.er1
26415 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026417 (exit $ac_status); } && {
26418 test -z "$ac_c_werror_flag" ||
26419 test ! -s conftest.err
26420 } && test -s conftest$ac_exeext &&
26421 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026422 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000026423else
26424 echo "$as_me: failed program was:" >&5
26425sed 's/^/| /' conftest.$ac_ext >&5
26426
Reid Spencera773bd52006-08-04 18:18:08 +000026427
Brian Gaeke5f268f72003-12-05 19:29:01 +000026428fi
Reid Spencera773bd52006-08-04 18:18:08 +000026429
Scott Michel96dcd2b2007-12-05 21:24:02 +000026430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026431 conftest$ac_exeext
26432 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26433 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000026434fi
Reid Spencera773bd52006-08-04 18:18:08 +000026435done
26436if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26437 :
26438else
26439 ac_cv_search_pthread_mutex_lock=no
26440fi
26441rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000026442LIBS=$ac_func_search_save_LIBS
26443fi
Reid Spencera773bd52006-08-04 18:18:08 +000026444{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26445echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26446ac_res=$ac_cv_search_pthread_mutex_lock
26447if test "$ac_res" != no; then
26448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000026449
John Criswell40468462004-09-24 21:19:06 +000026450cat >>confdefs.h <<\_ACEOF
26451#define HAVE_PTHREAD_MUTEX_LOCK 1
26452_ACEOF
26453
26454fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000026455
Reid Spencer0a262ba2005-08-24 10:07:20 +000026456fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000026457
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026458
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026459# Check whether --with-udis86 was given.
26460if test "${with_udis86+set}" = set; then
26461 withval=$with_udis86;
26462 USE_UDIS86=1
26463
26464 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000026465 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026466 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26467 esac
26468
26469{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26470echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26471if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26472 echo $ECHO_N "(cached) $ECHO_C" >&6
26473else
26474 ac_check_lib_save_LIBS=$LIBS
26475LIBS="-ludis86 $LIBS"
26476cat >conftest.$ac_ext <<_ACEOF
26477/* confdefs.h. */
26478_ACEOF
26479cat confdefs.h >>conftest.$ac_ext
26480cat >>conftest.$ac_ext <<_ACEOF
26481/* end confdefs.h. */
26482
26483/* Override any GCC internal prototype to avoid an error.
26484 Use char because int might match the return type of a GCC
26485 builtin and then its argument prototype would still apply. */
26486#ifdef __cplusplus
26487extern "C"
26488#endif
26489char ud_init ();
26490int
26491main ()
26492{
26493return ud_init ();
26494 ;
26495 return 0;
26496}
26497_ACEOF
26498rm -f conftest.$ac_objext conftest$ac_exeext
26499if { (ac_try="$ac_link"
26500case "(($ac_try" in
26501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502 *) ac_try_echo=$ac_try;;
26503esac
26504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26505 (eval "$ac_link") 2>conftest.er1
26506 ac_status=$?
26507 grep -v '^ *+' conftest.er1 >conftest.err
26508 rm -f conftest.er1
26509 cat conftest.err >&5
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026511 (exit $ac_status); } && {
26512 test -z "$ac_c_werror_flag" ||
26513 test ! -s conftest.err
26514 } && test -s conftest$ac_exeext &&
26515 $as_test_x conftest$ac_exeext; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026516 ac_cv_lib_udis86_ud_init=yes
26517else
26518 echo "$as_me: failed program was:" >&5
26519sed 's/^/| /' conftest.$ac_ext >&5
26520
26521 ac_cv_lib_udis86_ud_init=no
26522fi
26523
Scott Michel96dcd2b2007-12-05 21:24:02 +000026524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026525 conftest$ac_exeext conftest.$ac_ext
26526LIBS=$ac_check_lib_save_LIBS
26527fi
26528{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26529echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26530if test $ac_cv_lib_udis86_ud_init = yes; then
26531 cat >>confdefs.h <<_ACEOF
26532#define HAVE_LIBUDIS86 1
26533_ACEOF
26534
26535 LIBS="-ludis86 $LIBS"
26536
26537else
26538
26539 echo "Error! You need to have libudis86 around."
26540 exit -1
26541
26542fi
26543
26544
26545else
26546 USE_UDIS86=0
26547
26548fi
26549
26550
26551cat >>confdefs.h <<_ACEOF
26552#define USE_UDIS86 $USE_UDIS86
26553_ACEOF
26554
26555
26556
Reid Spencer59473af2004-12-25 07:31:29 +000026557
26558
26559
26560
26561
26562ac_header_dirent=no
26563for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26564 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000026565{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26566echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026568 echo $ECHO_N "(cached) $ECHO_C" >&6
26569else
26570 cat >conftest.$ac_ext <<_ACEOF
26571/* confdefs.h. */
26572_ACEOF
26573cat confdefs.h >>conftest.$ac_ext
26574cat >>conftest.$ac_ext <<_ACEOF
26575/* end confdefs.h. */
26576#include <sys/types.h>
26577#include <$ac_hdr>
26578
26579int
26580main ()
26581{
26582if ((DIR *) 0)
26583return 0;
26584 ;
26585 return 0;
26586}
26587_ACEOF
26588rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026589if { (ac_try="$ac_compile"
26590case "(($ac_try" in
26591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592 *) ac_try_echo=$ac_try;;
26593esac
26594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26595 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026596 ac_status=$?
26597 grep -v '^ *+' conftest.er1 >conftest.err
26598 rm -f conftest.er1
26599 cat conftest.err >&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026601 (exit $ac_status); } && {
26602 test -z "$ac_c_werror_flag" ||
26603 test ! -s conftest.err
26604 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026605 eval "$as_ac_Header=yes"
26606else
26607 echo "$as_me: failed program was:" >&5
26608sed 's/^/| /' conftest.$ac_ext >&5
26609
Reid Spencera773bd52006-08-04 18:18:08 +000026610 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000026611fi
Reid Spencera773bd52006-08-04 18:18:08 +000026612
26613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026614fi
Reid Spencera773bd52006-08-04 18:18:08 +000026615ac_res=`eval echo '${'$as_ac_Header'}'`
26616 { echo "$as_me:$LINENO: result: $ac_res" >&5
26617echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026618if test `eval echo '${'$as_ac_Header'}'` = yes; then
26619 cat >>confdefs.h <<_ACEOF
26620#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26621_ACEOF
26622
26623ac_header_dirent=$ac_hdr; break
26624fi
26625
26626done
26627# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26628if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000026629 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26630echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026631if test "${ac_cv_search_opendir+set}" = set; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26633else
26634 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026635cat >conftest.$ac_ext <<_ACEOF
26636/* confdefs.h. */
26637_ACEOF
26638cat confdefs.h >>conftest.$ac_ext
26639cat >>conftest.$ac_ext <<_ACEOF
26640/* end confdefs.h. */
26641
Reid Spencera773bd52006-08-04 18:18:08 +000026642/* Override any GCC internal prototype to avoid an error.
26643 Use char because int might match the return type of a GCC
26644 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026645#ifdef __cplusplus
26646extern "C"
26647#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026648char opendir ();
26649int
26650main ()
26651{
Reid Spencera773bd52006-08-04 18:18:08 +000026652return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026653 ;
26654 return 0;
26655}
26656_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026657for ac_lib in '' dir; do
26658 if test -z "$ac_lib"; then
26659 ac_res="none required"
26660 else
26661 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026663 fi
26664 rm -f conftest.$ac_objext conftest$ac_exeext
26665if { (ac_try="$ac_link"
26666case "(($ac_try" in
26667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668 *) ac_try_echo=$ac_try;;
26669esac
26670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26671 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026672 ac_status=$?
26673 grep -v '^ *+' conftest.er1 >conftest.err
26674 rm -f conftest.er1
26675 cat conftest.err >&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026677 (exit $ac_status); } && {
26678 test -z "$ac_c_werror_flag" ||
26679 test ! -s conftest.err
26680 } && test -s conftest$ac_exeext &&
26681 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026682 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026683else
26684 echo "$as_me: failed program was:" >&5
26685sed 's/^/| /' conftest.$ac_ext >&5
26686
Reid Spencera773bd52006-08-04 18:18:08 +000026687
Reid Spencer59473af2004-12-25 07:31:29 +000026688fi
Reid Spencera773bd52006-08-04 18:18:08 +000026689
Scott Michel96dcd2b2007-12-05 21:24:02 +000026690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026691 conftest$ac_exeext
26692 if test "${ac_cv_search_opendir+set}" = set; then
26693 break
Reid Spencer59473af2004-12-25 07:31:29 +000026694fi
Reid Spencera773bd52006-08-04 18:18:08 +000026695done
26696if test "${ac_cv_search_opendir+set}" = set; then
26697 :
26698else
26699 ac_cv_search_opendir=no
26700fi
26701rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026702LIBS=$ac_func_search_save_LIBS
26703fi
Reid Spencera773bd52006-08-04 18:18:08 +000026704{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26705echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26706ac_res=$ac_cv_search_opendir
26707if test "$ac_res" != no; then
26708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026709
26710fi
26711
26712else
Reid Spencera773bd52006-08-04 18:18:08 +000026713 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26714echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026715if test "${ac_cv_search_opendir+set}" = set; then
26716 echo $ECHO_N "(cached) $ECHO_C" >&6
26717else
26718 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026719cat >conftest.$ac_ext <<_ACEOF
26720/* confdefs.h. */
26721_ACEOF
26722cat confdefs.h >>conftest.$ac_ext
26723cat >>conftest.$ac_ext <<_ACEOF
26724/* end confdefs.h. */
26725
Reid Spencera773bd52006-08-04 18:18:08 +000026726/* Override any GCC internal prototype to avoid an error.
26727 Use char because int might match the return type of a GCC
26728 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026729#ifdef __cplusplus
26730extern "C"
26731#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026732char opendir ();
26733int
26734main ()
26735{
Reid Spencera773bd52006-08-04 18:18:08 +000026736return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026737 ;
26738 return 0;
26739}
26740_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026741for ac_lib in '' x; do
26742 if test -z "$ac_lib"; then
26743 ac_res="none required"
26744 else
26745 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026747 fi
26748 rm -f conftest.$ac_objext conftest$ac_exeext
26749if { (ac_try="$ac_link"
26750case "(($ac_try" in
26751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752 *) ac_try_echo=$ac_try;;
26753esac
26754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26755 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026756 ac_status=$?
26757 grep -v '^ *+' conftest.er1 >conftest.err
26758 rm -f conftest.er1
26759 cat conftest.err >&5
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026761 (exit $ac_status); } && {
26762 test -z "$ac_c_werror_flag" ||
26763 test ! -s conftest.err
26764 } && test -s conftest$ac_exeext &&
26765 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026766 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026767else
26768 echo "$as_me: failed program was:" >&5
26769sed 's/^/| /' conftest.$ac_ext >&5
26770
Reid Spencera773bd52006-08-04 18:18:08 +000026771
Reid Spencer59473af2004-12-25 07:31:29 +000026772fi
Reid Spencera773bd52006-08-04 18:18:08 +000026773
Scott Michel96dcd2b2007-12-05 21:24:02 +000026774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026775 conftest$ac_exeext
26776 if test "${ac_cv_search_opendir+set}" = set; then
26777 break
Reid Spencer59473af2004-12-25 07:31:29 +000026778fi
Reid Spencera773bd52006-08-04 18:18:08 +000026779done
26780if test "${ac_cv_search_opendir+set}" = set; then
26781 :
26782else
26783 ac_cv_search_opendir=no
26784fi
26785rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026786LIBS=$ac_func_search_save_LIBS
26787fi
Reid Spencera773bd52006-08-04 18:18:08 +000026788{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26789echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26790ac_res=$ac_cv_search_opendir
26791if test "$ac_res" != no; then
26792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026793
26794fi
26795
26796fi
26797
Reid Spencera773bd52006-08-04 18:18:08 +000026798{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26799echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026800if test "${ac_cv_header_mmap_anon+set}" = set; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26802else
26803 ac_ext=c
26804ac_cpp='$CPP $CPPFLAGS'
26805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26807ac_compiler_gnu=$ac_cv_c_compiler_gnu
26808
26809 cat >conftest.$ac_ext <<_ACEOF
26810/* confdefs.h. */
26811_ACEOF
26812cat confdefs.h >>conftest.$ac_ext
26813cat >>conftest.$ac_ext <<_ACEOF
26814/* end confdefs.h. */
26815#include <sys/mman.h>
26816#include <unistd.h>
26817#include <fcntl.h>
26818int
26819main ()
26820{
26821mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26822 ;
26823 return 0;
26824}
26825_ACEOF
26826rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026827if { (ac_try="$ac_compile"
26828case "(($ac_try" in
26829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26830 *) ac_try_echo=$ac_try;;
26831esac
26832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26833 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026834 ac_status=$?
26835 grep -v '^ *+' conftest.er1 >conftest.err
26836 rm -f conftest.er1
26837 cat conftest.err >&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026839 (exit $ac_status); } && {
26840 test -z "$ac_c_werror_flag" ||
26841 test ! -s conftest.err
26842 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026843 ac_cv_header_mmap_anon=yes
26844else
26845 echo "$as_me: failed program was:" >&5
26846sed 's/^/| /' conftest.$ac_ext >&5
26847
Reid Spencera773bd52006-08-04 18:18:08 +000026848 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000026849fi
Reid Spencera773bd52006-08-04 18:18:08 +000026850
26851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026852 ac_ext=c
26853ac_cpp='$CPP $CPPFLAGS'
26854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26856ac_compiler_gnu=$ac_cv_c_compiler_gnu
26857
26858
26859fi
Reid Spencera773bd52006-08-04 18:18:08 +000026860{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26861echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026862if test "$ac_cv_header_mmap_anon" = yes; then
26863
26864cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026865#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026866_ACEOF
26867
26868fi
26869
Reid Spencera773bd52006-08-04 18:18:08 +000026870{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26871echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026872if test "${ac_cv_header_stat_broken+set}" = set; then
26873 echo $ECHO_N "(cached) $ECHO_C" >&6
26874else
26875 cat >conftest.$ac_ext <<_ACEOF
26876/* confdefs.h. */
26877_ACEOF
26878cat confdefs.h >>conftest.$ac_ext
26879cat >>conftest.$ac_ext <<_ACEOF
26880/* end confdefs.h. */
26881#include <sys/types.h>
26882#include <sys/stat.h>
26883
Reid Spencera773bd52006-08-04 18:18:08 +000026884#if defined S_ISBLK && defined S_IFDIR
Scott Michel96dcd2b2007-12-05 21:24:02 +000026885extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026886#endif
26887
Reid Spencera773bd52006-08-04 18:18:08 +000026888#if defined S_ISBLK && defined S_IFCHR
Scott Michel96dcd2b2007-12-05 21:24:02 +000026889extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026890#endif
26891
Reid Spencera773bd52006-08-04 18:18:08 +000026892#if defined S_ISLNK && defined S_IFREG
Scott Michel96dcd2b2007-12-05 21:24:02 +000026893extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026894#endif
26895
Reid Spencera773bd52006-08-04 18:18:08 +000026896#if defined S_ISSOCK && defined S_IFREG
Scott Michel96dcd2b2007-12-05 21:24:02 +000026897extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000026898#endif
26899
26900_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +000026901rm -f conftest.$ac_objext
26902if { (ac_try="$ac_compile"
26903case "(($ac_try" in
26904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905 *) ac_try_echo=$ac_try;;
26906esac
26907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908 (eval "$ac_compile") 2>conftest.er1
26909 ac_status=$?
26910 grep -v '^ *+' conftest.er1 >conftest.err
26911 rm -f conftest.er1
26912 cat conftest.err >&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } && {
26915 test -z "$ac_c_werror_flag" ||
26916 test ! -s conftest.err
26917 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026918 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000026919else
26920 echo "$as_me: failed program was:" >&5
26921sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer59473af2004-12-25 07:31:29 +000026922
Scott Michel96dcd2b2007-12-05 21:24:02 +000026923 ac_cv_header_stat_broken=yes
26924fi
26925
26926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026927fi
Reid Spencera773bd52006-08-04 18:18:08 +000026928{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26929echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026930if test $ac_cv_header_stat_broken = yes; then
26931
26932cat >>confdefs.h <<\_ACEOF
26933#define STAT_MACROS_BROKEN 1
26934_ACEOF
26935
26936fi
26937
Reid Spencera773bd52006-08-04 18:18:08 +000026938{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26939echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026940if test "${ac_cv_header_stdc+set}" = set; then
26941 echo $ECHO_N "(cached) $ECHO_C" >&6
26942else
26943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026944/* confdefs.h. */
26945_ACEOF
26946cat confdefs.h >>conftest.$ac_ext
26947cat >>conftest.$ac_ext <<_ACEOF
26948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026949#include <stdlib.h>
26950#include <stdarg.h>
26951#include <string.h>
26952#include <float.h>
26953
John Criswell0c38eaf2003-09-10 15:17:25 +000026954int
26955main ()
26956{
26957
26958 ;
26959 return 0;
26960}
John Criswell7a73b802003-06-30 21:59:07 +000026961_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026962rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026963if { (ac_try="$ac_compile"
26964case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26967esac
26968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026970 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026971 grep -v '^ *+' conftest.er1 >conftest.err
26972 rm -f conftest.er1
26973 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000026975 (exit $ac_status); } && {
26976 test -z "$ac_c_werror_flag" ||
26977 test ! -s conftest.err
26978 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000026979 ac_cv_header_stdc=yes
26980else
26981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026982sed 's/^/| /' conftest.$ac_ext >&5
26983
Reid Spencera773bd52006-08-04 18:18:08 +000026984 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026985fi
Reid Spencera773bd52006-08-04 18:18:08 +000026986
26987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026988
26989if test $ac_cv_header_stdc = yes; then
26990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26991 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026992/* confdefs.h. */
26993_ACEOF
26994cat confdefs.h >>conftest.$ac_ext
26995cat >>conftest.$ac_ext <<_ACEOF
26996/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026997#include <string.h>
26998
26999_ACEOF
27000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000027001 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000027002 :
27003else
27004 ac_cv_header_stdc=no
27005fi
27006rm -f conftest*
27007
27008fi
27009
27010if test $ac_cv_header_stdc = yes; then
27011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27012 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027013/* confdefs.h. */
27014_ACEOF
27015cat confdefs.h >>conftest.$ac_ext
27016cat >>conftest.$ac_ext <<_ACEOF
27017/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027018#include <stdlib.h>
27019
27020_ACEOF
27021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000027022 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000027023 :
27024else
27025 ac_cv_header_stdc=no
27026fi
27027rm -f conftest*
27028
27029fi
27030
27031if test $ac_cv_header_stdc = yes; then
27032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27033 if test "$cross_compiling" = yes; then
27034 :
27035else
27036 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027037/* confdefs.h. */
27038_ACEOF
27039cat confdefs.h >>conftest.$ac_ext
27040cat >>conftest.$ac_ext <<_ACEOF
27041/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027042#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000027043#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000027044#if ((' ' & 0x0FF) == 0x020)
27045# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27046# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27047#else
John Criswell0c38eaf2003-09-10 15:17:25 +000027048# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027049 (('a' <= (c) && (c) <= 'i') \
27050 || ('j' <= (c) && (c) <= 'r') \
27051 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000027052# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27053#endif
27054
27055#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27056int
27057main ()
27058{
27059 int i;
27060 for (i = 0; i < 256; i++)
27061 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000027062 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000027063 return 2;
27064 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000027065}
27066_ACEOF
27067rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027068if { (ac_try="$ac_link"
27069case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27072esac
27073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027078 { (case "(($ac_try" in
27079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27080 *) ac_try_echo=$ac_try;;
27081esac
27082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27083 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027084 ac_status=$?
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); }; }; then
27087 :
27088else
27089 echo "$as_me: program exited with status $ac_status" >&5
27090echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027091sed 's/^/| /' conftest.$ac_ext >&5
27092
John Criswell7a73b802003-06-30 21:59:07 +000027093( exit $ac_status )
27094ac_cv_header_stdc=no
27095fi
Reid Spencera773bd52006-08-04 18:18:08 +000027096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27097fi
27098
27099
John Criswell7a73b802003-06-30 21:59:07 +000027100fi
27101fi
Reid Spencera773bd52006-08-04 18:18:08 +000027102{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27103echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027104if test $ac_cv_header_stdc = yes; then
27105
27106cat >>confdefs.h <<\_ACEOF
27107#define STDC_HEADERS 1
27108_ACEOF
27109
27110fi
27111
Reid Spencera773bd52006-08-04 18:18:08 +000027112{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27113echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027114if test "${ac_cv_header_sys_wait_h+set}" = set; then
27115 echo $ECHO_N "(cached) $ECHO_C" >&6
27116else
27117 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027118/* confdefs.h. */
27119_ACEOF
27120cat confdefs.h >>conftest.$ac_ext
27121cat >>conftest.$ac_ext <<_ACEOF
27122/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027123#include <sys/types.h>
27124#include <sys/wait.h>
27125#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000027126# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000027127#endif
27128#ifndef WIFEXITED
27129# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27130#endif
27131
John Criswell7a73b802003-06-30 21:59:07 +000027132int
27133main ()
27134{
27135 int s;
27136 wait (&s);
27137 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27138 ;
27139 return 0;
27140}
27141_ACEOF
27142rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027143if { (ac_try="$ac_compile"
27144case "(($ac_try" in
27145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27146 *) ac_try_echo=$ac_try;;
27147esac
27148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27149 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027150 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027151 grep -v '^ *+' conftest.er1 >conftest.err
27152 rm -f conftest.er1
27153 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027155 (exit $ac_status); } && {
27156 test -z "$ac_c_werror_flag" ||
27157 test ! -s conftest.err
27158 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000027159 ac_cv_header_sys_wait_h=yes
27160else
27161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027162sed 's/^/| /' conftest.$ac_ext >&5
27163
Reid Spencera773bd52006-08-04 18:18:08 +000027164 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000027165fi
Reid Spencera773bd52006-08-04 18:18:08 +000027166
27167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027168fi
Reid Spencera773bd52006-08-04 18:18:08 +000027169{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27170echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027171if test $ac_cv_header_sys_wait_h = yes; then
27172
27173cat >>confdefs.h <<\_ACEOF
27174#define HAVE_SYS_WAIT_H 1
27175_ACEOF
27176
27177fi
27178
Reid Spencera773bd52006-08-04 18:18:08 +000027179{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27180echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027181if test "${ac_cv_header_time+set}" = set; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27183else
27184 cat >conftest.$ac_ext <<_ACEOF
27185/* confdefs.h. */
27186_ACEOF
27187cat confdefs.h >>conftest.$ac_ext
27188cat >>conftest.$ac_ext <<_ACEOF
27189/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027190#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027191#include <sys/time.h>
27192#include <time.h>
27193
27194int
27195main ()
27196{
27197if ((struct tm *) 0)
27198return 0;
27199 ;
27200 return 0;
27201}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027202_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027203rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027204if { (ac_try="$ac_compile"
27205case "(($ac_try" in
27206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207 *) ac_try_echo=$ac_try;;
27208esac
27209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027211 ac_status=$?
27212 grep -v '^ *+' conftest.er1 >conftest.err
27213 rm -f conftest.er1
27214 cat conftest.err >&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027216 (exit $ac_status); } && {
27217 test -z "$ac_c_werror_flag" ||
27218 test ! -s conftest.err
27219 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027220 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027221else
27222 echo "$as_me: failed program was:" >&5
27223sed 's/^/| /' conftest.$ac_ext >&5
27224
Reid Spencera773bd52006-08-04 18:18:08 +000027225 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027226fi
Reid Spencera773bd52006-08-04 18:18:08 +000027227
27228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027229fi
Reid Spencera773bd52006-08-04 18:18:08 +000027230{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27231echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027232if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027233
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027234cat >>confdefs.h <<\_ACEOF
27235#define TIME_WITH_SYS_TIME 1
27236_ACEOF
27237
27238fi
27239
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027240
Reid Spencer59473af2004-12-25 07:31:29 +000027241
27242
27243
27244
27245
27246
27247for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27248do
27249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027254 echo $ECHO_N "(cached) $ECHO_C" >&6
27255fi
Reid Spencera773bd52006-08-04 18:18:08 +000027256ac_res=`eval echo '${'$as_ac_Header'}'`
27257 { echo "$as_me:$LINENO: result: $ac_res" >&5
27258echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027259else
27260 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027261{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27262echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027263cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027264/* confdefs.h. */
27265_ACEOF
27266cat confdefs.h >>conftest.$ac_ext
27267cat >>conftest.$ac_ext <<_ACEOF
27268/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000027269$ac_includes_default
27270#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027271_ACEOF
27272rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027273if { (ac_try="$ac_compile"
27274case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27277esac
27278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027280 ac_status=$?
27281 grep -v '^ *+' conftest.er1 >conftest.err
27282 rm -f conftest.er1
27283 cat conftest.err >&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027285 (exit $ac_status); } && {
27286 test -z "$ac_c_werror_flag" ||
27287 test ! -s conftest.err
27288 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027289 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027290else
27291 echo "$as_me: failed program was:" >&5
27292sed 's/^/| /' conftest.$ac_ext >&5
27293
Reid Spencera773bd52006-08-04 18:18:08 +000027294 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027295fi
Reid Spencera773bd52006-08-04 18:18:08 +000027296
27297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27298{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27299echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027300
Reid Spencer59473af2004-12-25 07:31:29 +000027301# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027302{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027304cat >conftest.$ac_ext <<_ACEOF
27305/* confdefs.h. */
27306_ACEOF
27307cat confdefs.h >>conftest.$ac_ext
27308cat >>conftest.$ac_ext <<_ACEOF
27309/* end confdefs.h. */
27310#include <$ac_header>
27311_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027312if { (ac_try="$ac_cpp conftest.$ac_ext"
27313case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27316esac
27317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027319 ac_status=$?
27320 grep -v '^ *+' conftest.er1 >conftest.err
27321 rm -f conftest.er1
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027324 (exit $ac_status); } >/dev/null && {
27325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27326 test ! -s conftest.err
27327 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027328 ac_header_preproc=yes
27329else
27330 echo "$as_me: failed program was:" >&5
27331sed 's/^/| /' conftest.$ac_ext >&5
27332
27333 ac_header_preproc=no
27334fi
Reid Spencera773bd52006-08-04 18:18:08 +000027335
Reid Spencer59473af2004-12-25 07:31:29 +000027336rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027337{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27338echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027339
27340# So? What about this header?
27341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27342 yes:no: )
27343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27347 ac_header_preproc=yes
27348 ;;
27349 no:yes:* )
27350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027362 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027363## ----------------------------------- ##
27364## Report this to llvmbugs@cs.uiuc.edu ##
27365## ----------------------------------- ##
27366_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027367 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027368 ;;
27369esac
Reid Spencera773bd52006-08-04 18:18:08 +000027370{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027373 echo $ECHO_N "(cached) $ECHO_C" >&6
27374else
27375 eval "$as_ac_Header=\$ac_header_preproc"
27376fi
Reid Spencera773bd52006-08-04 18:18:08 +000027377ac_res=`eval echo '${'$as_ac_Header'}'`
27378 { echo "$as_me:$LINENO: result: $ac_res" >&5
27379echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027380
27381fi
Reid Spencer59473af2004-12-25 07:31:29 +000027382if test `eval echo '${'$as_ac_Header'}'` = yes; then
27383 cat >>confdefs.h <<_ACEOF
27384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027385_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027386
27387fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027388
Reid Spencer59473af2004-12-25 07:31:29 +000027389done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027390
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027391
27392
Reid Spencer59473af2004-12-25 07:31:29 +000027393
27394
27395
27396
Reid Spencercdb08a32006-06-05 16:11:07 +000027397for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000027398do
27399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027404 echo $ECHO_N "(cached) $ECHO_C" >&6
27405fi
Reid Spencera773bd52006-08-04 18:18:08 +000027406ac_res=`eval echo '${'$as_ac_Header'}'`
27407 { echo "$as_me:$LINENO: result: $ac_res" >&5
27408echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027409else
27410 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027411{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027413cat >conftest.$ac_ext <<_ACEOF
27414/* confdefs.h. */
27415_ACEOF
27416cat confdefs.h >>conftest.$ac_ext
27417cat >>conftest.$ac_ext <<_ACEOF
27418/* end confdefs.h. */
27419$ac_includes_default
27420#include <$ac_header>
27421_ACEOF
27422rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027423if { (ac_try="$ac_compile"
27424case "(($ac_try" in
27425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426 *) ac_try_echo=$ac_try;;
27427esac
27428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027430 ac_status=$?
27431 grep -v '^ *+' conftest.er1 >conftest.err
27432 rm -f conftest.er1
27433 cat conftest.err >&5
27434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027435 (exit $ac_status); } && {
27436 test -z "$ac_c_werror_flag" ||
27437 test ! -s conftest.err
27438 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027439 ac_header_compiler=yes
27440else
27441 echo "$as_me: failed program was:" >&5
27442sed 's/^/| /' conftest.$ac_ext >&5
27443
Reid Spencera773bd52006-08-04 18:18:08 +000027444 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000027445fi
Reid Spencera773bd52006-08-04 18:18:08 +000027446
27447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27448{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27449echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027450
27451# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027452{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027454cat >conftest.$ac_ext <<_ACEOF
27455/* confdefs.h. */
27456_ACEOF
27457cat confdefs.h >>conftest.$ac_ext
27458cat >>conftest.$ac_ext <<_ACEOF
27459/* end confdefs.h. */
27460#include <$ac_header>
27461_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027462if { (ac_try="$ac_cpp conftest.$ac_ext"
27463case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27466esac
27467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027469 ac_status=$?
27470 grep -v '^ *+' conftest.er1 >conftest.err
27471 rm -f conftest.er1
27472 cat conftest.err >&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027474 (exit $ac_status); } >/dev/null && {
27475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27476 test ! -s conftest.err
27477 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027478 ac_header_preproc=yes
27479else
27480 echo "$as_me: failed program was:" >&5
27481sed 's/^/| /' conftest.$ac_ext >&5
27482
27483 ac_header_preproc=no
27484fi
Reid Spencera773bd52006-08-04 18:18:08 +000027485
Reid Spencer59473af2004-12-25 07:31:29 +000027486rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027487{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27488echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027489
27490# So? What about this header?
27491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27492 yes:no: )
27493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27494echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27496echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27497 ac_header_preproc=yes
27498 ;;
27499 no:yes:* )
27500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27503echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27505echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27507echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27511echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027512 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027513## ----------------------------------- ##
27514## Report this to llvmbugs@cs.uiuc.edu ##
27515## ----------------------------------- ##
27516_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027517 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027518 ;;
27519esac
Reid Spencera773bd52006-08-04 18:18:08 +000027520{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027523 echo $ECHO_N "(cached) $ECHO_C" >&6
27524else
27525 eval "$as_ac_Header=\$ac_header_preproc"
27526fi
Reid Spencera773bd52006-08-04 18:18:08 +000027527ac_res=`eval echo '${'$as_ac_Header'}'`
27528 { echo "$as_me:$LINENO: result: $ac_res" >&5
27529echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027530
27531fi
27532if test `eval echo '${'$as_ac_Header'}'` = yes; then
27533 cat >>confdefs.h <<_ACEOF
27534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27535_ACEOF
27536
27537fi
27538
27539done
27540
27541
Reid Spencerbe3e4192007-08-17 05:45:26 +000027542for ac_header in windows.h
27543do
27544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27549 echo $ECHO_N "(cached) $ECHO_C" >&6
27550fi
27551ac_res=`eval echo '${'$as_ac_Header'}'`
27552 { echo "$as_me:$LINENO: result: $ac_res" >&5
27553echo "${ECHO_T}$ac_res" >&6; }
27554else
27555 # Is the header compilable?
27556{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27557echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27558cat >conftest.$ac_ext <<_ACEOF
27559/* confdefs.h. */
27560_ACEOF
27561cat confdefs.h >>conftest.$ac_ext
27562cat >>conftest.$ac_ext <<_ACEOF
27563/* end confdefs.h. */
27564$ac_includes_default
27565#include <$ac_header>
27566_ACEOF
27567rm -f conftest.$ac_objext
27568if { (ac_try="$ac_compile"
27569case "(($ac_try" in
27570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571 *) ac_try_echo=$ac_try;;
27572esac
27573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574 (eval "$ac_compile") 2>conftest.er1
27575 ac_status=$?
27576 grep -v '^ *+' conftest.er1 >conftest.err
27577 rm -f conftest.er1
27578 cat conftest.err >&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027580 (exit $ac_status); } && {
27581 test -z "$ac_c_werror_flag" ||
27582 test ! -s conftest.err
27583 } && test -s conftest.$ac_objext; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027584 ac_header_compiler=yes
27585else
27586 echo "$as_me: failed program was:" >&5
27587sed 's/^/| /' conftest.$ac_ext >&5
27588
27589 ac_header_compiler=no
27590fi
27591
27592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27593{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27594echo "${ECHO_T}$ac_header_compiler" >&6; }
27595
27596# Is the header present?
27597{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27599cat >conftest.$ac_ext <<_ACEOF
27600/* confdefs.h. */
27601_ACEOF
27602cat confdefs.h >>conftest.$ac_ext
27603cat >>conftest.$ac_ext <<_ACEOF
27604/* end confdefs.h. */
27605#include <$ac_header>
27606_ACEOF
27607if { (ac_try="$ac_cpp conftest.$ac_ext"
27608case "(($ac_try" in
27609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610 *) ac_try_echo=$ac_try;;
27611esac
27612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27614 ac_status=$?
27615 grep -v '^ *+' conftest.er1 >conftest.err
27616 rm -f conftest.er1
27617 cat conftest.err >&5
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027619 (exit $ac_status); } >/dev/null && {
27620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27621 test ! -s conftest.err
27622 }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027623 ac_header_preproc=yes
27624else
27625 echo "$as_me: failed program was:" >&5
27626sed 's/^/| /' conftest.$ac_ext >&5
27627
27628 ac_header_preproc=no
27629fi
27630
27631rm -f conftest.err conftest.$ac_ext
27632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27633echo "${ECHO_T}$ac_header_preproc" >&6; }
27634
27635# So? What about this header?
27636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27637 yes:no: )
27638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27642 ac_header_preproc=yes
27643 ;;
27644 no:yes:* )
27645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27648echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27652echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27657 ( cat <<\_ASBOX
27658## ----------------------------------- ##
27659## Report this to llvmbugs@cs.uiuc.edu ##
27660## ----------------------------------- ##
27661_ASBOX
27662 ) | sed "s/^/$as_me: WARNING: /" >&2
27663 ;;
27664esac
27665{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27668 echo $ECHO_N "(cached) $ECHO_C" >&6
27669else
27670 eval "$as_ac_Header=\$ac_header_preproc"
27671fi
27672ac_res=`eval echo '${'$as_ac_Header'}'`
27673 { echo "$as_me:$LINENO: result: $ac_res" >&5
27674echo "${ECHO_T}$ac_res" >&6; }
27675
27676fi
27677if test `eval echo '${'$as_ac_Header'}'` = yes; then
27678 cat >>confdefs.h <<_ACEOF
27679#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27680_ACEOF
27681
27682fi
27683
27684done
Reid Spencer59473af2004-12-25 07:31:29 +000027685
27686
27687
27688
Reid Spencerbe3e4192007-08-17 05:45:26 +000027689
27690for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027691do
27692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027697 echo $ECHO_N "(cached) $ECHO_C" >&6
27698fi
Reid Spencera773bd52006-08-04 18:18:08 +000027699ac_res=`eval echo '${'$as_ac_Header'}'`
27700 { echo "$as_me:$LINENO: result: $ac_res" >&5
27701echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027702else
27703 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027704{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027706cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027707/* confdefs.h. */
27708_ACEOF
27709cat confdefs.h >>conftest.$ac_ext
27710cat >>conftest.$ac_ext <<_ACEOF
27711/* end confdefs.h. */
27712$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027713#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027714_ACEOF
27715rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027716if { (ac_try="$ac_compile"
27717case "(($ac_try" in
27718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719 *) ac_try_echo=$ac_try;;
27720esac
27721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027723 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027724 grep -v '^ *+' conftest.er1 >conftest.err
27725 rm -f conftest.er1
27726 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027728 (exit $ac_status); } && {
27729 test -z "$ac_c_werror_flag" ||
27730 test ! -s conftest.err
27731 } && test -s conftest.$ac_objext; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027732 ac_header_compiler=yes
27733else
27734 echo "$as_me: failed program was:" >&5
27735sed 's/^/| /' conftest.$ac_ext >&5
27736
Reid Spencera773bd52006-08-04 18:18:08 +000027737 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027738fi
Reid Spencera773bd52006-08-04 18:18:08 +000027739
27740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27741{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27742echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027743
27744# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027745{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027747cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027748/* confdefs.h. */
27749_ACEOF
27750cat confdefs.h >>conftest.$ac_ext
27751cat >>conftest.$ac_ext <<_ACEOF
27752/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027753#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027754_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027755if { (ac_try="$ac_cpp conftest.$ac_ext"
27756case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27759esac
27760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027762 ac_status=$?
27763 grep -v '^ *+' conftest.er1 >conftest.err
27764 rm -f conftest.er1
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027767 (exit $ac_status); } >/dev/null && {
27768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27769 test ! -s conftest.err
27770 }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027771 ac_header_preproc=yes
27772else
27773 echo "$as_me: failed program was:" >&5
27774sed 's/^/| /' conftest.$ac_ext >&5
27775
27776 ac_header_preproc=no
27777fi
Reid Spencera773bd52006-08-04 18:18:08 +000027778
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027779rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027780{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27781echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027782
27783# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27785 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027790 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027791 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027792 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27800echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027805 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027806## ----------------------------------- ##
27807## Report this to llvmbugs@cs.uiuc.edu ##
27808## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027809_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027810 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027811 ;;
27812esac
Reid Spencera773bd52006-08-04 18:18:08 +000027813{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027816 echo $ECHO_N "(cached) $ECHO_C" >&6
27817else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027818 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027819fi
Reid Spencera773bd52006-08-04 18:18:08 +000027820ac_res=`eval echo '${'$as_ac_Header'}'`
27821 { echo "$as_me:$LINENO: result: $ac_res" >&5
27822echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027823
27824fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027825if test `eval echo '${'$as_ac_Header'}'` = yes; then
27826 cat >>confdefs.h <<_ACEOF
27827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000027828_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000027829
27830fi
John Criswell7ed43ad2004-07-19 16:12:29 +000027831
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027832done
27833
John Criswell7ed43ad2004-07-19 16:12:29 +000027834
Reid Spencercdb08a32006-06-05 16:11:07 +000027835
Reid Spencera6d990a2006-09-14 06:17:21 +000027836
27837for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000027838do
27839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027844 echo $ECHO_N "(cached) $ECHO_C" >&6
27845fi
Reid Spencera773bd52006-08-04 18:18:08 +000027846ac_res=`eval echo '${'$as_ac_Header'}'`
27847 { echo "$as_me:$LINENO: result: $ac_res" >&5
27848echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027849else
27850 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027851{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27852echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027853cat >conftest.$ac_ext <<_ACEOF
27854/* confdefs.h. */
27855_ACEOF
27856cat confdefs.h >>conftest.$ac_ext
27857cat >>conftest.$ac_ext <<_ACEOF
27858/* end confdefs.h. */
27859$ac_includes_default
27860#include <$ac_header>
27861_ACEOF
27862rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027863if { (ac_try="$ac_compile"
27864case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27867esac
27868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000027870 ac_status=$?
27871 grep -v '^ *+' conftest.er1 >conftest.err
27872 rm -f conftest.er1
27873 cat conftest.err >&5
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027875 (exit $ac_status); } && {
27876 test -z "$ac_c_werror_flag" ||
27877 test ! -s conftest.err
27878 } && test -s conftest.$ac_objext; then
Chris Lattner0b142592005-11-14 06:57:34 +000027879 ac_header_compiler=yes
27880else
27881 echo "$as_me: failed program was:" >&5
27882sed 's/^/| /' conftest.$ac_ext >&5
27883
Reid Spencera773bd52006-08-04 18:18:08 +000027884 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000027885fi
Reid Spencera773bd52006-08-04 18:18:08 +000027886
27887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27888{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27889echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027890
27891# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027892{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27893echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027894cat >conftest.$ac_ext <<_ACEOF
27895/* confdefs.h. */
27896_ACEOF
27897cat confdefs.h >>conftest.$ac_ext
27898cat >>conftest.$ac_ext <<_ACEOF
27899/* end confdefs.h. */
27900#include <$ac_header>
27901_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027902if { (ac_try="$ac_cpp conftest.$ac_ext"
27903case "(($ac_try" in
27904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905 *) ac_try_echo=$ac_try;;
27906esac
27907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000027909 ac_status=$?
27910 grep -v '^ *+' conftest.er1 >conftest.err
27911 rm -f conftest.er1
27912 cat conftest.err >&5
27913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000027914 (exit $ac_status); } >/dev/null && {
27915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27916 test ! -s conftest.err
27917 }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027918 ac_header_preproc=yes
27919else
27920 echo "$as_me: failed program was:" >&5
27921sed 's/^/| /' conftest.$ac_ext >&5
27922
27923 ac_header_preproc=no
27924fi
Reid Spencera773bd52006-08-04 18:18:08 +000027925
Chris Lattner0b142592005-11-14 06:57:34 +000027926rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027927{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27928echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027929
27930# So? What about this header?
27931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27932 yes:no: )
27933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27937 ac_header_preproc=yes
27938 ;;
27939 no:yes:* )
27940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027952 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000027953## ----------------------------------- ##
27954## Report this to llvmbugs@cs.uiuc.edu ##
27955## ----------------------------------- ##
27956_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027957 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000027958 ;;
27959esac
Reid Spencera773bd52006-08-04 18:18:08 +000027960{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000027963 echo $ECHO_N "(cached) $ECHO_C" >&6
27964else
27965 eval "$as_ac_Header=\$ac_header_preproc"
27966fi
Reid Spencera773bd52006-08-04 18:18:08 +000027967ac_res=`eval echo '${'$as_ac_Header'}'`
27968 { echo "$as_me:$LINENO: result: $ac_res" >&5
27969echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000027970
27971fi
27972if test `eval echo '${'$as_ac_Header'}'` = yes; then
27973 cat >>confdefs.h <<_ACEOF
27974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27975_ACEOF
27976
27977fi
27978
27979done
27980
Reid Spencer0a262ba2005-08-24 10:07:20 +000027981if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027982
27983for ac_header in pthread.h
27984do
27985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000027990 echo $ECHO_N "(cached) $ECHO_C" >&6
27991fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000027992ac_res=`eval echo '${'$as_ac_Header'}'`
27993 { echo "$as_me:$LINENO: result: $ac_res" >&5
27994echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000027995else
27996 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000027997{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27998echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000027999cat >conftest.$ac_ext <<_ACEOF
28000/* confdefs.h. */
28001_ACEOF
28002cat confdefs.h >>conftest.$ac_ext
28003cat >>conftest.$ac_ext <<_ACEOF
28004/* end confdefs.h. */
28005$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000028006#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000028007_ACEOF
28008rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028009if { (ac_try="$ac_compile"
28010case "(($ac_try" in
28011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28012 *) ac_try_echo=$ac_try;;
28013esac
28014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28015 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028016 ac_status=$?
28017 grep -v '^ *+' conftest.er1 >conftest.err
28018 rm -f conftest.er1
28019 cat conftest.err >&5
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028021 (exit $ac_status); } && {
28022 test -z "$ac_c_werror_flag" ||
28023 test ! -s conftest.err
28024 } && test -s conftest.$ac_objext; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028025 ac_header_compiler=yes
28026else
28027 echo "$as_me: failed program was:" >&5
28028sed 's/^/| /' conftest.$ac_ext >&5
28029
Reid Spencera773bd52006-08-04 18:18:08 +000028030 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000028031fi
Reid Spencera773bd52006-08-04 18:18:08 +000028032
28033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28034{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28035echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028036
28037# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000028038{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028040cat >conftest.$ac_ext <<_ACEOF
28041/* confdefs.h. */
28042_ACEOF
28043cat confdefs.h >>conftest.$ac_ext
28044cat >>conftest.$ac_ext <<_ACEOF
28045/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000028046#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000028047_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028048if { (ac_try="$ac_cpp conftest.$ac_ext"
28049case "(($ac_try" in
28050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051 *) ac_try_echo=$ac_try;;
28052esac
28053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028055 ac_status=$?
28056 grep -v '^ *+' conftest.er1 >conftest.err
28057 rm -f conftest.er1
28058 cat conftest.err >&5
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028060 (exit $ac_status); } >/dev/null && {
28061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28062 test ! -s conftest.err
28063 }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028064 ac_header_preproc=yes
28065else
28066 echo "$as_me: failed program was:" >&5
28067sed 's/^/| /' conftest.$ac_ext >&5
28068
28069 ac_header_preproc=no
28070fi
Reid Spencera773bd52006-08-04 18:18:08 +000028071
Reid Spencer0a262ba2005-08-24 10:07:20 +000028072rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028073{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28074echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028075
28076# So? What about this header?
28077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28078 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000028083 ac_header_preproc=yes
28084 ;;
28085 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028098 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000028099## ----------------------------------- ##
28100## Report this to llvmbugs@cs.uiuc.edu ##
28101## ----------------------------------- ##
28102_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028103 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000028104 ;;
28105esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000028106{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028109 echo $ECHO_N "(cached) $ECHO_C" >&6
28110else
Reid Spencerbe3e4192007-08-17 05:45:26 +000028111 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000028112fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028113ac_res=`eval echo '${'$as_ac_Header'}'`
28114 { echo "$as_me:$LINENO: result: $ac_res" >&5
28115echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028116
28117fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028118if test `eval echo '${'$as_ac_Header'}'` = yes; then
28119 cat >>confdefs.h <<_ACEOF
28120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28121_ACEOF
28122 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000028123
28124else
28125 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028126
28127fi
28128
Reid Spencerbe3e4192007-08-17 05:45:26 +000028129done
Reid Spencer1000b732006-12-01 00:37:14 +000028130
28131else
28132 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028133
28134fi
Reid Spencer8085cff2005-01-16 02:58:39 +000028135
28136
Reid Spencerb2ed05262006-11-03 18:04:08 +000028137
28138 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28139echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28140if test "${ac_cv_huge_val_sanity+set}" = set; then
28141 echo $ECHO_N "(cached) $ECHO_C" >&6
28142else
28143
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028144 ac_ext=cpp
28145ac_cpp='$CXXCPP $CPPFLAGS'
28146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000028149
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028150 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000028151 if test "$cross_compiling" = yes; then
28152 ac_cv_huge_val_sanity=yes
28153else
28154 cat >conftest.$ac_ext <<_ACEOF
28155/* confdefs.h. */
28156_ACEOF
28157cat confdefs.h >>conftest.$ac_ext
28158cat >>conftest.$ac_ext <<_ACEOF
28159/* end confdefs.h. */
28160#include <math.h>
28161int
28162main ()
28163{
28164double x = HUGE_VAL; return x != x;
28165 ;
28166 return 0;
28167}
28168_ACEOF
28169rm -f conftest$ac_exeext
28170if { (ac_try="$ac_link"
28171case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_link") 2>&5
28177 ac_status=$?
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28180 { (case "(($ac_try" in
28181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182 *) ac_try_echo=$ac_try;;
28183esac
28184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185 (eval "$ac_try") 2>&5
28186 ac_status=$?
28187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188 (exit $ac_status); }; }; then
28189 ac_cv_huge_val_sanity=yes
28190else
28191 echo "$as_me: program exited with status $ac_status" >&5
28192echo "$as_me: failed program was:" >&5
28193sed 's/^/| /' conftest.$ac_ext >&5
28194
28195( exit $ac_status )
28196ac_cv_huge_val_sanity=no
28197fi
28198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28199fi
28200
28201
28202 ac_ext=c
28203ac_cpp='$CPP $CPPFLAGS'
28204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28206ac_compiler_gnu=$ac_cv_c_compiler_gnu
28207
28208
28209fi
28210{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28211echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28212 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28213
28214
Reid Spencera773bd52006-08-04 18:18:08 +000028215{ echo "$as_me:$LINENO: checking for pid_t" >&5
28216echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028217if test "${ac_cv_type_pid_t+set}" = set; then
28218 echo $ECHO_N "(cached) $ECHO_C" >&6
28219else
28220 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028221/* confdefs.h. */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028226$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028227typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028228int
28229main ()
28230{
Reid Spencera773bd52006-08-04 18:18:08 +000028231if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028232 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028233if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028234 return 0;
28235 ;
28236 return 0;
28237}
28238_ACEOF
28239rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028240if { (ac_try="$ac_compile"
28241case "(($ac_try" in
28242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243 *) ac_try_echo=$ac_try;;
28244esac
28245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028247 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028248 grep -v '^ *+' conftest.er1 >conftest.err
28249 rm -f conftest.er1
28250 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028252 (exit $ac_status); } && {
28253 test -z "$ac_c_werror_flag" ||
28254 test ! -s conftest.err
28255 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028256 ac_cv_type_pid_t=yes
28257else
28258 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028259sed 's/^/| /' conftest.$ac_ext >&5
28260
Reid Spencera773bd52006-08-04 18:18:08 +000028261 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028262fi
Reid Spencera773bd52006-08-04 18:18:08 +000028263
28264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028265fi
Reid Spencera773bd52006-08-04 18:18:08 +000028266{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28267echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028268if test $ac_cv_type_pid_t = yes; then
28269 :
28270else
28271
28272cat >>confdefs.h <<_ACEOF
28273#define pid_t int
28274_ACEOF
28275
28276fi
28277
Reid Spencera773bd52006-08-04 18:18:08 +000028278{ echo "$as_me:$LINENO: checking for size_t" >&5
28279echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028280if test "${ac_cv_type_size_t+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28282else
28283 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028284/* confdefs.h. */
28285_ACEOF
28286cat confdefs.h >>conftest.$ac_ext
28287cat >>conftest.$ac_ext <<_ACEOF
28288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028289$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028290typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028291int
28292main ()
28293{
Reid Spencera773bd52006-08-04 18:18:08 +000028294if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028295 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028296if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028297 return 0;
28298 ;
28299 return 0;
28300}
28301_ACEOF
28302rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028303if { (ac_try="$ac_compile"
28304case "(($ac_try" in
28305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306 *) ac_try_echo=$ac_try;;
28307esac
28308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028310 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028311 grep -v '^ *+' conftest.er1 >conftest.err
28312 rm -f conftest.er1
28313 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028315 (exit $ac_status); } && {
28316 test -z "$ac_c_werror_flag" ||
28317 test ! -s conftest.err
28318 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028319 ac_cv_type_size_t=yes
28320else
28321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028322sed 's/^/| /' conftest.$ac_ext >&5
28323
Reid Spencera773bd52006-08-04 18:18:08 +000028324 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028325fi
Reid Spencera773bd52006-08-04 18:18:08 +000028326
28327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028328fi
Reid Spencera773bd52006-08-04 18:18:08 +000028329{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28330echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028331if test $ac_cv_type_size_t = yes; then
28332 :
28333else
28334
28335cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028336#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000028337_ACEOF
28338
28339fi
28340
Reid Spencera773bd52006-08-04 18:18:08 +000028341{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28342echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028343if test "${ac_cv_type_signal+set}" = set; then
28344 echo $ECHO_N "(cached) $ECHO_C" >&6
28345else
28346 cat >conftest.$ac_ext <<_ACEOF
28347/* confdefs.h. */
28348_ACEOF
28349cat confdefs.h >>conftest.$ac_ext
28350cat >>conftest.$ac_ext <<_ACEOF
28351/* end confdefs.h. */
28352#include <sys/types.h>
28353#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028354
28355int
28356main ()
28357{
Reid Spencera773bd52006-08-04 18:18:08 +000028358return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028359 ;
28360 return 0;
28361}
28362_ACEOF
28363rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028364if { (ac_try="$ac_compile"
28365case "(($ac_try" in
28366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28367 *) ac_try_echo=$ac_try;;
28368esac
28369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28370 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028371 ac_status=$?
28372 grep -v '^ *+' conftest.er1 >conftest.err
28373 rm -f conftest.er1
28374 cat conftest.err >&5
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028376 (exit $ac_status); } && {
28377 test -z "$ac_c_werror_flag" ||
28378 test ! -s conftest.err
28379 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +000028380 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028381else
28382 echo "$as_me: failed program was:" >&5
28383sed 's/^/| /' conftest.$ac_ext >&5
28384
Reid Spencera773bd52006-08-04 18:18:08 +000028385 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028386fi
Reid Spencera773bd52006-08-04 18:18:08 +000028387
28388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028389fi
Reid Spencera773bd52006-08-04 18:18:08 +000028390{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28391echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028392
28393cat >>confdefs.h <<_ACEOF
28394#define RETSIGTYPE $ac_cv_type_signal
28395_ACEOF
28396
28397
Reid Spencera773bd52006-08-04 18:18:08 +000028398{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28399echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028400if test "${ac_cv_struct_tm+set}" = set; then
28401 echo $ECHO_N "(cached) $ECHO_C" >&6
28402else
28403 cat >conftest.$ac_ext <<_ACEOF
28404/* confdefs.h. */
28405_ACEOF
28406cat confdefs.h >>conftest.$ac_ext
28407cat >>conftest.$ac_ext <<_ACEOF
28408/* end confdefs.h. */
28409#include <sys/types.h>
28410#include <time.h>
28411
28412int
28413main ()
28414{
Scott Michel96dcd2b2007-12-05 21:24:02 +000028415struct tm tm;
28416 int *p = &tm.tm_sec;
28417 return !p;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028418 ;
28419 return 0;
28420}
28421_ACEOF
28422rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028423if { (ac_try="$ac_compile"
28424case "(($ac_try" in
28425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426 *) ac_try_echo=$ac_try;;
28427esac
28428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028430 ac_status=$?
28431 grep -v '^ *+' conftest.er1 >conftest.err
28432 rm -f conftest.er1
28433 cat conftest.err >&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028435 (exit $ac_status); } && {
28436 test -z "$ac_c_werror_flag" ||
28437 test ! -s conftest.err
28438 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028439 ac_cv_struct_tm=time.h
28440else
28441 echo "$as_me: failed program was:" >&5
28442sed 's/^/| /' conftest.$ac_ext >&5
28443
Reid Spencera773bd52006-08-04 18:18:08 +000028444 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028445fi
Reid Spencera773bd52006-08-04 18:18:08 +000028446
28447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028448fi
Reid Spencera773bd52006-08-04 18:18:08 +000028449{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28450echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028451if test $ac_cv_struct_tm = sys/time.h; then
28452
28453cat >>confdefs.h <<\_ACEOF
28454#define TM_IN_SYS_TIME 1
28455_ACEOF
28456
28457fi
28458
Reid Spencera773bd52006-08-04 18:18:08 +000028459{ echo "$as_me:$LINENO: checking for int64_t" >&5
28460echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028461if test "${ac_cv_type_int64_t+set}" = set; then
28462 echo $ECHO_N "(cached) $ECHO_C" >&6
28463else
28464 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028465/* confdefs.h. */
28466_ACEOF
28467cat confdefs.h >>conftest.$ac_ext
28468cat >>conftest.$ac_ext <<_ACEOF
28469/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028470$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028471typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028472int
28473main ()
28474{
Reid Spencera773bd52006-08-04 18:18:08 +000028475if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028476 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028477if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028478 return 0;
28479 ;
28480 return 0;
28481}
28482_ACEOF
28483rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028484if { (ac_try="$ac_compile"
28485case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28488esac
28489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028491 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028492 grep -v '^ *+' conftest.er1 >conftest.err
28493 rm -f conftest.er1
28494 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028496 (exit $ac_status); } && {
28497 test -z "$ac_c_werror_flag" ||
28498 test ! -s conftest.err
28499 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028500 ac_cv_type_int64_t=yes
28501else
28502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028503sed 's/^/| /' conftest.$ac_ext >&5
28504
Reid Spencera773bd52006-08-04 18:18:08 +000028505 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028506fi
Reid Spencera773bd52006-08-04 18:18:08 +000028507
28508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028509fi
Reid Spencera773bd52006-08-04 18:18:08 +000028510{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28511echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028512if test $ac_cv_type_int64_t = yes; then
28513
28514cat >>confdefs.h <<_ACEOF
28515#define HAVE_INT64_T 1
28516_ACEOF
28517
28518
28519else
28520 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28521echo "$as_me: error: Type int64_t required but not found" >&2;}
28522 { (exit 1); exit 1; }; }
28523fi
28524
Reid Spencera773bd52006-08-04 18:18:08 +000028525{ echo "$as_me:$LINENO: checking for uint64_t" >&5
28526echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028527if test "${ac_cv_type_uint64_t+set}" = set; then
28528 echo $ECHO_N "(cached) $ECHO_C" >&6
28529else
28530 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028531/* confdefs.h. */
28532_ACEOF
28533cat confdefs.h >>conftest.$ac_ext
28534cat >>conftest.$ac_ext <<_ACEOF
28535/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028536$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028537typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028538int
28539main ()
28540{
Reid Spencera773bd52006-08-04 18:18:08 +000028541if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028542 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028543if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028544 return 0;
28545 ;
28546 return 0;
28547}
28548_ACEOF
28549rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028550if { (ac_try="$ac_compile"
28551case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28554esac
28555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028557 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028558 grep -v '^ *+' conftest.er1 >conftest.err
28559 rm -f conftest.er1
28560 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028562 (exit $ac_status); } && {
28563 test -z "$ac_c_werror_flag" ||
28564 test ! -s conftest.err
28565 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028566 ac_cv_type_uint64_t=yes
28567else
28568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028569sed 's/^/| /' conftest.$ac_ext >&5
28570
Reid Spencera773bd52006-08-04 18:18:08 +000028571 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028572fi
Reid Spencera773bd52006-08-04 18:18:08 +000028573
28574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028575fi
Reid Spencera773bd52006-08-04 18:18:08 +000028576{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28577echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028578if test $ac_cv_type_uint64_t = yes; then
28579
28580cat >>confdefs.h <<_ACEOF
28581#define HAVE_UINT64_T 1
28582_ACEOF
28583
28584
28585else
Reid Spencera773bd52006-08-04 18:18:08 +000028586 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28587echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000028588if test "${ac_cv_type_u_int64_t+set}" = set; then
28589 echo $ECHO_N "(cached) $ECHO_C" >&6
28590else
28591 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000028592/* confdefs.h. */
28593_ACEOF
28594cat confdefs.h >>conftest.$ac_ext
28595cat >>conftest.$ac_ext <<_ACEOF
28596/* end confdefs.h. */
28597$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028598typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000028599int
28600main ()
28601{
Reid Spencera773bd52006-08-04 18:18:08 +000028602if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000028603 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028604if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000028605 return 0;
28606 ;
28607 return 0;
28608}
28609_ACEOF
28610rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028611if { (ac_try="$ac_compile"
28612case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28615esac
28616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000028618 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028619 grep -v '^ *+' conftest.er1 >conftest.err
28620 rm -f conftest.er1
28621 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000028622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028623 (exit $ac_status); } && {
28624 test -z "$ac_c_werror_flag" ||
28625 test ! -s conftest.err
28626 } && test -s conftest.$ac_objext; then
John Criswell679ff312004-09-02 18:44:44 +000028627 ac_cv_type_u_int64_t=yes
28628else
28629 echo "$as_me: failed program was:" >&5
28630sed 's/^/| /' conftest.$ac_ext >&5
28631
Reid Spencera773bd52006-08-04 18:18:08 +000028632 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000028633fi
Reid Spencera773bd52006-08-04 18:18:08 +000028634
28635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000028636fi
Reid Spencera773bd52006-08-04 18:18:08 +000028637{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28638echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000028639if test $ac_cv_type_u_int64_t = yes; then
28640
28641cat >>confdefs.h <<_ACEOF
28642#define HAVE_U_INT64_T 1
28643_ACEOF
28644
28645
Misha Brukmanceca9042004-09-02 23:02:30 +000028646else
28647 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28648echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28649 { (exit 1); exit 1; }; }
28650fi
28651
John Criswell679ff312004-09-02 18:44:44 +000028652fi
28653
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028654
28655
28656
28657
28658
28659
28660
Reid Spencerf4bb9b12006-01-19 08:22:40 +000028661
28662
Reid Spencerdf3be822006-01-23 08:15:53 +000028663for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028664do
28665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028666{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28668if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028669 echo $ECHO_N "(cached) $ECHO_C" >&6
28670else
28671 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028672/* confdefs.h. */
28673_ACEOF
28674cat confdefs.h >>conftest.$ac_ext
28675cat >>conftest.$ac_ext <<_ACEOF
28676/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28679#define $ac_func innocuous_$ac_func
28680
28681/* System header to define __stub macros and hopefully few prototypes,
28682 which can conflict with char $ac_func (); below.
28683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28684 <limits.h> exists even on freestanding compilers. */
28685
28686#ifdef __STDC__
28687# include <limits.h>
28688#else
28689# include <assert.h>
28690#endif
28691
28692#undef $ac_func
28693
Reid Spencera773bd52006-08-04 18:18:08 +000028694/* Override any GCC internal prototype to avoid an error.
28695 Use char because int might match the return type of a GCC
28696 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028697#ifdef __cplusplus
28698extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028699#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028700char $ac_func ();
28701/* The GNU C library defines this for functions which it implements
28702 to always fail with ENOSYS. Some functions are actually named
28703 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000028704#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028705choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028706#endif
John Criswell7a73b802003-06-30 21:59:07 +000028707
John Criswell7a73b802003-06-30 21:59:07 +000028708int
28709main ()
28710{
Reid Spencera773bd52006-08-04 18:18:08 +000028711return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028712 ;
28713 return 0;
28714}
28715_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028716rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028717if { (ac_try="$ac_link"
28718case "(($ac_try" in
28719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28720 *) ac_try_echo=$ac_try;;
28721esac
28722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28723 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028724 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028725 grep -v '^ *+' conftest.er1 >conftest.err
28726 rm -f conftest.er1
28727 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028729 (exit $ac_status); } && {
28730 test -z "$ac_c_werror_flag" ||
28731 test ! -s conftest.err
28732 } && test -s conftest$ac_exeext &&
28733 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028734 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028735else
28736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028737sed 's/^/| /' conftest.$ac_ext >&5
28738
Reid Spencera773bd52006-08-04 18:18:08 +000028739 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028740fi
Reid Spencera773bd52006-08-04 18:18:08 +000028741
Scott Michel96dcd2b2007-12-05 21:24:02 +000028742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028743 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028744fi
Reid Spencera773bd52006-08-04 18:18:08 +000028745ac_res=`eval echo '${'$as_ac_var'}'`
28746 { echo "$as_me:$LINENO: result: $ac_res" >&5
28747echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028748if test `eval echo '${'$as_ac_var'}'` = yes; then
28749 cat >>confdefs.h <<_ACEOF
28750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028751_ACEOF
28752
28753fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028754done
John Criswell7a73b802003-06-30 21:59:07 +000028755
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028756
28757
28758
Reid Spencer6af3d262004-12-15 04:01:48 +000028759
Reid Spencer96cf5872007-07-13 10:05:30 +000028760for ac_func in powf fmodf strtof round
28761do
28762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28763{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28765if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28766 echo $ECHO_N "(cached) $ECHO_C" >&6
28767else
28768 cat >conftest.$ac_ext <<_ACEOF
28769/* confdefs.h. */
28770_ACEOF
28771cat confdefs.h >>conftest.$ac_ext
28772cat >>conftest.$ac_ext <<_ACEOF
28773/* end confdefs.h. */
28774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28776#define $ac_func innocuous_$ac_func
28777
28778/* System header to define __stub macros and hopefully few prototypes,
28779 which can conflict with char $ac_func (); below.
28780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28781 <limits.h> exists even on freestanding compilers. */
28782
28783#ifdef __STDC__
28784# include <limits.h>
28785#else
28786# include <assert.h>
28787#endif
28788
28789#undef $ac_func
28790
28791/* Override any GCC internal prototype to avoid an error.
28792 Use char because int might match the return type of a GCC
28793 builtin and then its argument prototype would still apply. */
28794#ifdef __cplusplus
28795extern "C"
28796#endif
28797char $ac_func ();
28798/* The GNU C library defines this for functions which it implements
28799 to always fail with ENOSYS. Some functions are actually named
28800 something starting with __ and the normal name is an alias. */
28801#if defined __stub_$ac_func || defined __stub___$ac_func
28802choke me
28803#endif
28804
28805int
28806main ()
28807{
28808return $ac_func ();
28809 ;
28810 return 0;
28811}
28812_ACEOF
28813rm -f conftest.$ac_objext conftest$ac_exeext
28814if { (ac_try="$ac_link"
28815case "(($ac_try" in
28816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28817 *) ac_try_echo=$ac_try;;
28818esac
28819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28820 (eval "$ac_link") 2>conftest.er1
28821 ac_status=$?
28822 grep -v '^ *+' conftest.er1 >conftest.err
28823 rm -f conftest.er1
28824 cat conftest.err >&5
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028826 (exit $ac_status); } && {
28827 test -z "$ac_c_werror_flag" ||
28828 test ! -s conftest.err
28829 } && test -s conftest$ac_exeext &&
28830 $as_test_x conftest$ac_exeext; then
Reid Spencer96cf5872007-07-13 10:05:30 +000028831 eval "$as_ac_var=yes"
28832else
28833 echo "$as_me: failed program was:" >&5
28834sed 's/^/| /' conftest.$ac_ext >&5
28835
28836 eval "$as_ac_var=no"
28837fi
28838
Scott Michel96dcd2b2007-12-05 21:24:02 +000028839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer96cf5872007-07-13 10:05:30 +000028840 conftest$ac_exeext conftest.$ac_ext
28841fi
28842ac_res=`eval echo '${'$as_ac_var'}'`
28843 { echo "$as_me:$LINENO: result: $ac_res" >&5
28844echo "${ECHO_T}$ac_res" >&6; }
28845if test `eval echo '${'$as_ac_var'}'` = yes; then
28846 cat >>confdefs.h <<_ACEOF
28847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28848_ACEOF
28849
28850fi
28851done
28852
28853
28854
28855
28856
Reid Spencer6af3d262004-12-15 04:01:48 +000028857
Reid Spencerb90645c2007-02-16 19:17:20 +000028858for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28859do
28860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28861{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28863if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28864 echo $ECHO_N "(cached) $ECHO_C" >&6
28865else
28866 cat >conftest.$ac_ext <<_ACEOF
28867/* confdefs.h. */
28868_ACEOF
28869cat confdefs.h >>conftest.$ac_ext
28870cat >>conftest.$ac_ext <<_ACEOF
28871/* end confdefs.h. */
28872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28874#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000028875
Reid Spencerb90645c2007-02-16 19:17:20 +000028876/* System header to define __stub macros and hopefully few prototypes,
28877 which can conflict with char $ac_func (); below.
28878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28879 <limits.h> exists even on freestanding compilers. */
28880
28881#ifdef __STDC__
28882# include <limits.h>
28883#else
28884# include <assert.h>
28885#endif
28886
28887#undef $ac_func
28888
28889/* Override any GCC internal prototype to avoid an error.
28890 Use char because int might match the return type of a GCC
28891 builtin and then its argument prototype would still apply. */
28892#ifdef __cplusplus
28893extern "C"
28894#endif
28895char $ac_func ();
28896/* The GNU C library defines this for functions which it implements
28897 to always fail with ENOSYS. Some functions are actually named
28898 something starting with __ and the normal name is an alias. */
28899#if defined __stub_$ac_func || defined __stub___$ac_func
28900choke me
28901#endif
28902
28903int
28904main ()
28905{
28906return $ac_func ();
28907 ;
28908 return 0;
28909}
28910_ACEOF
28911rm -f conftest.$ac_objext conftest$ac_exeext
28912if { (ac_try="$ac_link"
28913case "(($ac_try" in
28914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915 *) ac_try_echo=$ac_try;;
28916esac
28917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918 (eval "$ac_link") 2>conftest.er1
28919 ac_status=$?
28920 grep -v '^ *+' conftest.er1 >conftest.err
28921 rm -f conftest.er1
28922 cat conftest.err >&5
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000028924 (exit $ac_status); } && {
28925 test -z "$ac_c_werror_flag" ||
28926 test ! -s conftest.err
28927 } && test -s conftest$ac_exeext &&
28928 $as_test_x conftest$ac_exeext; then
Reid Spencerb90645c2007-02-16 19:17:20 +000028929 eval "$as_ac_var=yes"
28930else
28931 echo "$as_me: failed program was:" >&5
28932sed 's/^/| /' conftest.$ac_ext >&5
28933
28934 eval "$as_ac_var=no"
28935fi
28936
Scott Michel96dcd2b2007-12-05 21:24:02 +000028937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb90645c2007-02-16 19:17:20 +000028938 conftest$ac_exeext conftest.$ac_ext
28939fi
28940ac_res=`eval echo '${'$as_ac_var'}'`
28941 { echo "$as_me:$LINENO: result: $ac_res" >&5
28942echo "${ECHO_T}$ac_res" >&6; }
28943if test `eval echo '${'$as_ac_var'}'` = yes; then
28944 cat >>confdefs.h <<_ACEOF
28945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28946_ACEOF
28947
28948fi
28949done
28950
28951
28952
28953
28954for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000028955do
28956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000028960 echo $ECHO_N "(cached) $ECHO_C" >&6
28961else
28962 cat >conftest.$ac_ext <<_ACEOF
28963/* confdefs.h. */
28964_ACEOF
28965cat confdefs.h >>conftest.$ac_ext
28966cat >>conftest.$ac_ext <<_ACEOF
28967/* end confdefs.h. */
28968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28970#define $ac_func innocuous_$ac_func
28971
28972/* System header to define __stub macros and hopefully few prototypes,
28973 which can conflict with char $ac_func (); below.
28974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28975 <limits.h> exists even on freestanding compilers. */
28976
28977#ifdef __STDC__
28978# include <limits.h>
28979#else
28980# include <assert.h>
28981#endif
28982
28983#undef $ac_func
28984
Reid Spencera773bd52006-08-04 18:18:08 +000028985/* Override any GCC internal prototype to avoid an error.
28986 Use char because int might match the return type of a GCC
28987 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000028988#ifdef __cplusplus
28989extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000028990#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000028991char $ac_func ();
28992/* The GNU C library defines this for functions which it implements
28993 to always fail with ENOSYS. Some functions are actually named
28994 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000028995#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000028996choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000028997#endif
28998
28999int
29000main ()
29001{
Reid Spencera773bd52006-08-04 18:18:08 +000029002return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000029003 ;
29004 return 0;
29005}
29006_ACEOF
29007rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029008if { (ac_try="$ac_link"
29009case "(($ac_try" in
29010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011 *) ac_try_echo=$ac_try;;
29012esac
29013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29014 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000029015 ac_status=$?
29016 grep -v '^ *+' conftest.er1 >conftest.err
29017 rm -f conftest.er1
29018 cat conftest.err >&5
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029020 (exit $ac_status); } && {
29021 test -z "$ac_c_werror_flag" ||
29022 test ! -s conftest.err
29023 } && test -s conftest$ac_exeext &&
29024 $as_test_x conftest$ac_exeext; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029025 eval "$as_ac_var=yes"
29026else
29027 echo "$as_me: failed program was:" >&5
29028sed 's/^/| /' conftest.$ac_ext >&5
29029
Reid Spencera773bd52006-08-04 18:18:08 +000029030 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000029031fi
Reid Spencera773bd52006-08-04 18:18:08 +000029032
Scott Michel96dcd2b2007-12-05 21:24:02 +000029033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerdf3be822006-01-23 08:15:53 +000029034 conftest$ac_exeext conftest.$ac_ext
29035fi
Reid Spencera773bd52006-08-04 18:18:08 +000029036ac_res=`eval echo '${'$as_ac_var'}'`
29037 { echo "$as_me:$LINENO: result: $ac_res" >&5
29038echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000029039if test `eval echo '${'$as_ac_var'}'` = yes; then
29040 cat >>confdefs.h <<_ACEOF
29041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29042_ACEOF
29043
29044fi
29045done
29046
29047
29048
29049
29050
29051
29052
29053
29054for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000029055do
29056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029057{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29059if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000029060 echo $ECHO_N "(cached) $ECHO_C" >&6
29061else
29062 cat >conftest.$ac_ext <<_ACEOF
29063/* confdefs.h. */
29064_ACEOF
29065cat confdefs.h >>conftest.$ac_ext
29066cat >>conftest.$ac_ext <<_ACEOF
29067/* end confdefs.h. */
29068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29070#define $ac_func innocuous_$ac_func
29071
29072/* System header to define __stub macros and hopefully few prototypes,
29073 which can conflict with char $ac_func (); below.
29074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29075 <limits.h> exists even on freestanding compilers. */
29076
29077#ifdef __STDC__
29078# include <limits.h>
29079#else
29080# include <assert.h>
29081#endif
29082
29083#undef $ac_func
29084
Reid Spencera773bd52006-08-04 18:18:08 +000029085/* Override any GCC internal prototype to avoid an error.
29086 Use char because int might match the return type of a GCC
29087 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000029088#ifdef __cplusplus
29089extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000029090#endif
Reid Spencer7931a782004-12-27 06:15:02 +000029091char $ac_func ();
29092/* The GNU C library defines this for functions which it implements
29093 to always fail with ENOSYS. Some functions are actually named
29094 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029095#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000029096choke me
Reid Spencer7931a782004-12-27 06:15:02 +000029097#endif
29098
29099int
29100main ()
29101{
Reid Spencera773bd52006-08-04 18:18:08 +000029102return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000029103 ;
29104 return 0;
29105}
29106_ACEOF
29107rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029108if { (ac_try="$ac_link"
29109case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29112esac
29113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000029115 ac_status=$?
29116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029120 (exit $ac_status); } && {
29121 test -z "$ac_c_werror_flag" ||
29122 test ! -s conftest.err
29123 } && test -s conftest$ac_exeext &&
29124 $as_test_x conftest$ac_exeext; then
Reid Spencer7931a782004-12-27 06:15:02 +000029125 eval "$as_ac_var=yes"
29126else
29127 echo "$as_me: failed program was:" >&5
29128sed 's/^/| /' conftest.$ac_ext >&5
29129
Reid Spencera773bd52006-08-04 18:18:08 +000029130 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000029131fi
Reid Spencera773bd52006-08-04 18:18:08 +000029132
Scott Michel96dcd2b2007-12-05 21:24:02 +000029133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer7931a782004-12-27 06:15:02 +000029134 conftest$ac_exeext conftest.$ac_ext
29135fi
Reid Spencera773bd52006-08-04 18:18:08 +000029136ac_res=`eval echo '${'$as_ac_var'}'`
29137 { echo "$as_me:$LINENO: result: $ac_res" >&5
29138echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000029139if test `eval echo '${'$as_ac_var'}'` = yes; then
29140 cat >>confdefs.h <<_ACEOF
29141#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29142_ACEOF
29143
29144fi
29145done
29146
29147
Reid Spencerba46ca32004-12-31 05:49:15 +000029148
29149
Chris Lattner0b142592005-11-14 06:57:34 +000029150
Chris Lattner511f11d2005-11-14 07:25:50 +000029151for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029152do
29153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029154{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29156if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029157 echo $ECHO_N "(cached) $ECHO_C" >&6
29158else
29159 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029160/* confdefs.h. */
29161_ACEOF
29162cat confdefs.h >>conftest.$ac_ext
29163cat >>conftest.$ac_ext <<_ACEOF
29164/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29167#define $ac_func innocuous_$ac_func
29168
29169/* System header to define __stub macros and hopefully few prototypes,
29170 which can conflict with char $ac_func (); below.
29171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29172 <limits.h> exists even on freestanding compilers. */
29173
29174#ifdef __STDC__
29175# include <limits.h>
29176#else
29177# include <assert.h>
29178#endif
29179
29180#undef $ac_func
29181
Reid Spencera773bd52006-08-04 18:18:08 +000029182/* Override any GCC internal prototype to avoid an error.
29183 Use char because int might match the return type of a GCC
29184 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029185#ifdef __cplusplus
29186extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029187#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029188char $ac_func ();
29189/* The GNU C library defines this for functions which it implements
29190 to always fail with ENOSYS. Some functions are actually named
29191 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029192#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029193choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029194#endif
John Criswell7a73b802003-06-30 21:59:07 +000029195
John Criswell7a73b802003-06-30 21:59:07 +000029196int
29197main ()
29198{
Reid Spencera773bd52006-08-04 18:18:08 +000029199return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029200 ;
29201 return 0;
29202}
29203_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029204rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029205if { (ac_try="$ac_link"
29206case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29209esac
29210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029212 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029213 grep -v '^ *+' conftest.er1 >conftest.err
29214 rm -f conftest.er1
29215 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029217 (exit $ac_status); } && {
29218 test -z "$ac_c_werror_flag" ||
29219 test ! -s conftest.err
29220 } && test -s conftest$ac_exeext &&
29221 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029222 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029223else
29224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029225sed 's/^/| /' conftest.$ac_ext >&5
29226
Reid Spencera773bd52006-08-04 18:18:08 +000029227 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029228fi
Reid Spencera773bd52006-08-04 18:18:08 +000029229
Scott Michel96dcd2b2007-12-05 21:24:02 +000029230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029231 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029232fi
Reid Spencera773bd52006-08-04 18:18:08 +000029233ac_res=`eval echo '${'$as_ac_var'}'`
29234 { echo "$as_me:$LINENO: result: $ac_res" >&5
29235echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029236if test `eval echo '${'$as_ac_var'}'` = yes; then
29237 cat >>confdefs.h <<_ACEOF
29238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029239_ACEOF
29240
29241fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029242done
John Criswell7a73b802003-06-30 21:59:07 +000029243
Reid Spencercdb08a32006-06-05 16:11:07 +000029244
29245
29246
29247
Reid Spencerafa22e22006-12-10 23:29:19 +000029248for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000029249do
29250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029251{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29253if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000029254 echo $ECHO_N "(cached) $ECHO_C" >&6
29255else
29256 cat >conftest.$ac_ext <<_ACEOF
29257/* confdefs.h. */
29258_ACEOF
29259cat confdefs.h >>conftest.$ac_ext
29260cat >>conftest.$ac_ext <<_ACEOF
29261/* end confdefs.h. */
29262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29264#define $ac_func innocuous_$ac_func
29265
29266/* System header to define __stub macros and hopefully few prototypes,
29267 which can conflict with char $ac_func (); below.
29268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29269 <limits.h> exists even on freestanding compilers. */
29270
29271#ifdef __STDC__
29272# include <limits.h>
29273#else
29274# include <assert.h>
29275#endif
29276
29277#undef $ac_func
29278
Reid Spencera773bd52006-08-04 18:18:08 +000029279/* Override any GCC internal prototype to avoid an error.
29280 Use char because int might match the return type of a GCC
29281 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000029282#ifdef __cplusplus
29283extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000029284#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000029285char $ac_func ();
29286/* The GNU C library defines this for functions which it implements
29287 to always fail with ENOSYS. Some functions are actually named
29288 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029289#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000029290choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000029291#endif
29292
29293int
29294main ()
29295{
Reid Spencera773bd52006-08-04 18:18:08 +000029296return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000029297 ;
29298 return 0;
29299}
29300_ACEOF
29301rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029302if { (ac_try="$ac_link"
29303case "(($ac_try" in
29304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305 *) ac_try_echo=$ac_try;;
29306esac
29307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29308 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000029309 ac_status=$?
29310 grep -v '^ *+' conftest.er1 >conftest.err
29311 rm -f conftest.er1
29312 cat conftest.err >&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029314 (exit $ac_status); } && {
29315 test -z "$ac_c_werror_flag" ||
29316 test ! -s conftest.err
29317 } && test -s conftest$ac_exeext &&
29318 $as_test_x conftest$ac_exeext; then
Reid Spencercdb08a32006-06-05 16:11:07 +000029319 eval "$as_ac_var=yes"
29320else
29321 echo "$as_me: failed program was:" >&5
29322sed 's/^/| /' conftest.$ac_ext >&5
29323
Reid Spencera773bd52006-08-04 18:18:08 +000029324 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000029325fi
Reid Spencera773bd52006-08-04 18:18:08 +000029326
Scott Michel96dcd2b2007-12-05 21:24:02 +000029327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencercdb08a32006-06-05 16:11:07 +000029328 conftest$ac_exeext conftest.$ac_ext
29329fi
Reid Spencera773bd52006-08-04 18:18:08 +000029330ac_res=`eval echo '${'$as_ac_var'}'`
29331 { echo "$as_me:$LINENO: result: $ac_res" >&5
29332echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000029333if test `eval echo '${'$as_ac_var'}'` = yes; then
29334 cat >>confdefs.h <<_ACEOF
29335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29336_ACEOF
29337
29338fi
29339done
29340
Reid Spencera773bd52006-08-04 18:18:08 +000029341{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29342echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029343if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029344 echo $ECHO_N "(cached) $ECHO_C" >&6
29345else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029346 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029347ac_cpp='$CPP $CPPFLAGS'
29348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29350ac_compiler_gnu=$ac_cv_c_compiler_gnu
29351
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029352 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029353 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029354else
29355 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000029356
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029357 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000029358_ACEOF
29359cat confdefs.h >>conftest.$ac_ext
29360cat >>conftest.$ac_ext <<_ACEOF
29361/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029362
John Criswella0137d32003-10-13 16:22:01 +000029363#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000029364#include <stdlib.h>
29365
John Criswella0137d32003-10-13 16:22:01 +000029366int
29367main ()
29368{
29369
Reid Spencer2706f8c2004-09-19 23:53:36 +000029370volatile double A, B;
29371char Buffer[100];
29372A = 1;
29373A /= 10.0;
29374sprintf(Buffer, "%a", A);
29375B = atof(Buffer);
29376if (A != B)
29377 return (1);
29378if (A != 0x1.999999999999ap-4)
29379 return (1);
29380return (0);
John Criswella0137d32003-10-13 16:22:01 +000029381 ;
29382 return 0;
29383}
29384_ACEOF
29385rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029386if { (ac_try="$ac_link"
29387case "(($ac_try" in
29388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29390esac
29391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029393 ac_status=$?
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029396 { (case "(($ac_try" in
29397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29398 *) ac_try_echo=$ac_try;;
29399esac
29400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29401 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029402 ac_status=$?
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029405 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000029406else
29407 echo "$as_me: program exited with status $ac_status" >&5
29408echo "$as_me: failed program was:" >&5
29409sed 's/^/| /' conftest.$ac_ext >&5
29410
29411( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000029412llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029413fi
Reid Spencera773bd52006-08-04 18:18:08 +000029414rm -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 +000029415fi
Reid Spencera773bd52006-08-04 18:18:08 +000029416
29417
Reid Spencer2706f8c2004-09-19 23:53:36 +000029418 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029419ac_cpp='$CPP $CPPFLAGS'
29420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29422ac_compiler_gnu=$ac_cv_c_compiler_gnu
29423
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029424fi
Reid Spencera773bd52006-08-04 18:18:08 +000029425{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29426echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029427 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000029428
29429cat >>confdefs.h <<\_ACEOF
29430#define HAVE_PRINTF_A 1
29431_ACEOF
29432
Reid Spencer2706f8c2004-09-19 23:53:36 +000029433 fi
John Criswella0137d32003-10-13 16:22:01 +000029434
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029435# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29436# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000029437{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
29438echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029439if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000029440 echo $ECHO_N "(cached) $ECHO_C" >&6
29441else
John Criswell0021c312004-02-13 21:57:29 +000029442 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000029443/* confdefs.h. */
29444_ACEOF
29445cat confdefs.h >>conftest.$ac_ext
29446cat >>conftest.$ac_ext <<_ACEOF
29447/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029448#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000029449int
29450main ()
29451{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029452char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000029453 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000029454 ;
29455 return 0;
29456}
29457_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029458rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029459if { (ac_try="$ac_link"
29460case "(($ac_try" in
29461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462 *) ac_try_echo=$ac_try;;
29463esac
29464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000029466 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029467 grep -v '^ *+' conftest.er1 >conftest.err
29468 rm -f conftest.er1
29469 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000029470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029471 (exit $ac_status); } && {
29472 test -z "$ac_c_werror_flag" ||
29473 test ! -s conftest.err
29474 } && test -s conftest$ac_exeext &&
29475 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029476 ac_cv_working_alloca_h=yes
29477else
29478 echo "$as_me: failed program was:" >&5
29479sed 's/^/| /' conftest.$ac_ext >&5
29480
Reid Spencera773bd52006-08-04 18:18:08 +000029481 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000029482fi
Reid Spencera773bd52006-08-04 18:18:08 +000029483
Scott Michel96dcd2b2007-12-05 21:24:02 +000029484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029485 conftest$ac_exeext conftest.$ac_ext
29486fi
Reid Spencera773bd52006-08-04 18:18:08 +000029487{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29488echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029489if test $ac_cv_working_alloca_h = yes; then
29490
29491cat >>confdefs.h <<\_ACEOF
29492#define HAVE_ALLOCA_H 1
29493_ACEOF
29494
29495fi
29496
Reid Spencera773bd52006-08-04 18:18:08 +000029497{ echo "$as_me:$LINENO: checking for alloca" >&5
29498echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029499if test "${ac_cv_func_alloca_works+set}" = set; then
29500 echo $ECHO_N "(cached) $ECHO_C" >&6
29501else
29502 cat >conftest.$ac_ext <<_ACEOF
29503/* confdefs.h. */
29504_ACEOF
29505cat confdefs.h >>conftest.$ac_ext
29506cat >>conftest.$ac_ext <<_ACEOF
29507/* end confdefs.h. */
29508#ifdef __GNUC__
29509# define alloca __builtin_alloca
29510#else
29511# ifdef _MSC_VER
29512# include <malloc.h>
29513# define alloca _alloca
29514# else
Scott Michel96dcd2b2007-12-05 21:24:02 +000029515# ifdef HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029516# include <alloca.h>
29517# else
29518# ifdef _AIX
29519 #pragma alloca
29520# else
29521# ifndef alloca /* predefined by HP cc +Olibcalls */
29522char *alloca ();
29523# endif
29524# endif
29525# endif
29526# endif
29527#endif
29528
29529int
29530main ()
29531{
29532char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000029533 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029534 ;
29535 return 0;
29536}
29537_ACEOF
29538rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029539if { (ac_try="$ac_link"
29540case "(($ac_try" in
29541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542 *) ac_try_echo=$ac_try;;
29543esac
29544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029546 ac_status=$?
29547 grep -v '^ *+' conftest.er1 >conftest.err
29548 rm -f conftest.er1
29549 cat conftest.err >&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029551 (exit $ac_status); } && {
29552 test -z "$ac_c_werror_flag" ||
29553 test ! -s conftest.err
29554 } && test -s conftest$ac_exeext &&
29555 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029556 ac_cv_func_alloca_works=yes
29557else
29558 echo "$as_me: failed program was:" >&5
29559sed 's/^/| /' conftest.$ac_ext >&5
29560
Reid Spencera773bd52006-08-04 18:18:08 +000029561 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029562fi
Reid Spencera773bd52006-08-04 18:18:08 +000029563
Scott Michel96dcd2b2007-12-05 21:24:02 +000029564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029565 conftest$ac_exeext conftest.$ac_ext
29566fi
Reid Spencera773bd52006-08-04 18:18:08 +000029567{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29568echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029569
29570if test $ac_cv_func_alloca_works = yes; then
29571
29572cat >>confdefs.h <<\_ACEOF
29573#define HAVE_ALLOCA 1
29574_ACEOF
29575
29576else
29577 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29578# that cause trouble. Some versions do not even contain alloca or
29579# contain a buggy version. If you still want to use their alloca,
29580# use ar to extract alloca.o from them instead of compiling alloca.c.
29581
Reid Spencera773bd52006-08-04 18:18:08 +000029582ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029583
29584cat >>confdefs.h <<\_ACEOF
29585#define C_ALLOCA 1
29586_ACEOF
29587
29588
Reid Spencera773bd52006-08-04 18:18:08 +000029589{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29590echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029591if test "${ac_cv_os_cray+set}" = set; then
29592 echo $ECHO_N "(cached) $ECHO_C" >&6
29593else
29594 cat >conftest.$ac_ext <<_ACEOF
29595/* confdefs.h. */
29596_ACEOF
29597cat confdefs.h >>conftest.$ac_ext
29598cat >>conftest.$ac_ext <<_ACEOF
29599/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000029600#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029601webecray
29602#else
29603wenotbecray
29604#endif
29605
29606_ACEOF
29607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29608 $EGREP "webecray" >/dev/null 2>&1; then
29609 ac_cv_os_cray=yes
29610else
29611 ac_cv_os_cray=no
29612fi
29613rm -f conftest*
29614
29615fi
Reid Spencera773bd52006-08-04 18:18:08 +000029616{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29617echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029618if test $ac_cv_os_cray = yes; then
29619 for ac_func in _getb67 GETB67 getb67; do
29620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029621{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029624 echo $ECHO_N "(cached) $ECHO_C" >&6
29625else
29626 cat >conftest.$ac_ext <<_ACEOF
29627/* confdefs.h. */
29628_ACEOF
29629cat confdefs.h >>conftest.$ac_ext
29630cat >>conftest.$ac_ext <<_ACEOF
29631/* end confdefs.h. */
29632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29634#define $ac_func innocuous_$ac_func
29635
29636/* System header to define __stub macros and hopefully few prototypes,
29637 which can conflict with char $ac_func (); below.
29638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29639 <limits.h> exists even on freestanding compilers. */
29640
29641#ifdef __STDC__
29642# include <limits.h>
29643#else
29644# include <assert.h>
29645#endif
29646
29647#undef $ac_func
29648
Reid Spencera773bd52006-08-04 18:18:08 +000029649/* Override any GCC internal prototype to avoid an error.
29650 Use char because int might match the return type of a GCC
29651 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029652#ifdef __cplusplus
29653extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029654#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029655char $ac_func ();
29656/* The GNU C library defines this for functions which it implements
29657 to always fail with ENOSYS. Some functions are actually named
29658 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029659#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029660choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029661#endif
29662
29663int
29664main ()
29665{
Reid Spencera773bd52006-08-04 18:18:08 +000029666return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029667 ;
29668 return 0;
29669}
29670_ACEOF
29671rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029672if { (ac_try="$ac_link"
29673case "(($ac_try" in
29674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675 *) ac_try_echo=$ac_try;;
29676esac
29677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029679 ac_status=$?
29680 grep -v '^ *+' conftest.er1 >conftest.err
29681 rm -f conftest.er1
29682 cat conftest.err >&5
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029684 (exit $ac_status); } && {
29685 test -z "$ac_c_werror_flag" ||
29686 test ! -s conftest.err
29687 } && test -s conftest$ac_exeext &&
29688 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029689 eval "$as_ac_var=yes"
29690else
29691 echo "$as_me: failed program was:" >&5
29692sed 's/^/| /' conftest.$ac_ext >&5
29693
Reid Spencera773bd52006-08-04 18:18:08 +000029694 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029695fi
Reid Spencera773bd52006-08-04 18:18:08 +000029696
Scott Michel96dcd2b2007-12-05 21:24:02 +000029697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029698 conftest$ac_exeext conftest.$ac_ext
29699fi
Reid Spencera773bd52006-08-04 18:18:08 +000029700ac_res=`eval echo '${'$as_ac_var'}'`
29701 { echo "$as_me:$LINENO: result: $ac_res" >&5
29702echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029703if test `eval echo '${'$as_ac_var'}'` = yes; then
29704
29705cat >>confdefs.h <<_ACEOF
29706#define CRAY_STACKSEG_END $ac_func
29707_ACEOF
29708
29709 break
29710fi
29711
29712 done
29713fi
29714
Reid Spencera773bd52006-08-04 18:18:08 +000029715{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29716echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029717if test "${ac_cv_c_stack_direction+set}" = set; then
29718 echo $ECHO_N "(cached) $ECHO_C" >&6
29719else
29720 if test "$cross_compiling" = yes; then
29721 ac_cv_c_stack_direction=0
29722else
29723 cat >conftest.$ac_ext <<_ACEOF
29724/* confdefs.h. */
29725_ACEOF
29726cat confdefs.h >>conftest.$ac_ext
29727cat >>conftest.$ac_ext <<_ACEOF
29728/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000029729$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029730int
29731find_stack_direction ()
29732{
29733 static char *addr = 0;
29734 auto char dummy;
29735 if (addr == 0)
29736 {
29737 addr = &dummy;
29738 return find_stack_direction ();
29739 }
John Criswell0021c312004-02-13 21:57:29 +000029740 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029741 return (&dummy > addr) ? 1 : -1;
29742}
John Criswell0021c312004-02-13 21:57:29 +000029743
John Criswell0021c312004-02-13 21:57:29 +000029744int
29745main ()
29746{
Reid Spencera773bd52006-08-04 18:18:08 +000029747 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000029748}
29749_ACEOF
29750rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029751if { (ac_try="$ac_link"
29752case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29755esac
29756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000029758 ac_status=$?
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029761 { (case "(($ac_try" in
29762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763 *) ac_try_echo=$ac_try;;
29764esac
29765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000029767 ac_status=$?
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029770 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000029771else
29772 echo "$as_me: program exited with status $ac_status" >&5
29773echo "$as_me: failed program was:" >&5
29774sed 's/^/| /' conftest.$ac_ext >&5
29775
29776( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029777ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000029778fi
Reid Spencera773bd52006-08-04 18:18:08 +000029779rm -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 +000029780fi
Reid Spencera773bd52006-08-04 18:18:08 +000029781
29782
John Criswell0021c312004-02-13 21:57:29 +000029783fi
Reid Spencera773bd52006-08-04 18:18:08 +000029784{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29785echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029786
29787cat >>confdefs.h <<_ACEOF
29788#define STACK_DIRECTION $ac_cv_c_stack_direction
29789_ACEOF
29790
29791
John Criswell0021c312004-02-13 21:57:29 +000029792fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029793
29794
Reid Spencera773bd52006-08-04 18:18:08 +000029795{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29796echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029797if test "${ac_cv_func_rand48+set}" = set; then
29798 echo $ECHO_N "(cached) $ECHO_C" >&6
29799else
Reid Spencera773bd52006-08-04 18:18:08 +000029800 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029801ac_cpp='$CXXCPP $CPPFLAGS'
29802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29805
29806 cat >conftest.$ac_ext <<_ACEOF
29807/* confdefs.h. */
29808_ACEOF
29809cat confdefs.h >>conftest.$ac_ext
29810cat >>conftest.$ac_ext <<_ACEOF
29811/* end confdefs.h. */
29812#include <stdlib.h>
29813int
29814main ()
29815{
29816srand48(0);lrand48();drand48();
29817 ;
29818 return 0;
29819}
29820_ACEOF
29821rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029822if { (ac_try="$ac_compile"
29823case "(($ac_try" in
29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29826esac
29827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029829 ac_status=$?
29830 grep -v '^ *+' conftest.er1 >conftest.err
29831 rm -f conftest.er1
29832 cat conftest.err >&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029834 (exit $ac_status); } && {
29835 test -z "$ac_cxx_werror_flag" ||
29836 test ! -s conftest.err
29837 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029838 ac_cv_func_rand48=yes
29839else
29840 echo "$as_me: failed program was:" >&5
29841sed 's/^/| /' conftest.$ac_ext >&5
29842
Reid Spencera773bd52006-08-04 18:18:08 +000029843 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029844fi
Reid Spencera773bd52006-08-04 18:18:08 +000029845
29846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029847 ac_ext=c
29848ac_cpp='$CPP $CPPFLAGS'
29849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29851ac_compiler_gnu=$ac_cv_c_compiler_gnu
29852
29853fi
Reid Spencera773bd52006-08-04 18:18:08 +000029854{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29855echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029856
29857if test "$ac_cv_func_rand48" = "yes" ; then
29858
29859cat >>confdefs.h <<\_ACEOF
29860#define HAVE_RAND48 1
29861_ACEOF
29862
29863fi
John Criswell0021c312004-02-13 21:57:29 +000029864
29865
Reid Spencera773bd52006-08-04 18:18:08 +000029866{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29867echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029868if test "${ac_cv_cxx_namespaces+set}" = set; then
29869 echo $ECHO_N "(cached) $ECHO_C" >&6
29870else
Reid Spencera773bd52006-08-04 18:18:08 +000029871 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000029872ac_cpp='$CXXCPP $CPPFLAGS'
29873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29876
29877 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029878/* confdefs.h. */
29879_ACEOF
29880cat confdefs.h >>conftest.$ac_ext
29881cat >>conftest.$ac_ext <<_ACEOF
29882/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029883namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000029884int
29885main ()
29886{
29887using namespace Outer::Inner; return i;
29888 ;
29889 return 0;
29890}
29891_ACEOF
29892rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029893if { (ac_try="$ac_compile"
29894case "(($ac_try" in
29895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29896 *) ac_try_echo=$ac_try;;
29897esac
29898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29899 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029900 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029901 grep -v '^ *+' conftest.er1 >conftest.err
29902 rm -f conftest.er1
29903 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029905 (exit $ac_status); } && {
29906 test -z "$ac_cxx_werror_flag" ||
29907 test ! -s conftest.err
29908 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000029909 ac_cv_cxx_namespaces=yes
29910else
29911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029912sed 's/^/| /' conftest.$ac_ext >&5
29913
Reid Spencera773bd52006-08-04 18:18:08 +000029914 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000029915fi
Reid Spencera773bd52006-08-04 18:18:08 +000029916
29917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029918 ac_ext=c
29919ac_cpp='$CPP $CPPFLAGS'
29920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29922ac_compiler_gnu=$ac_cv_c_compiler_gnu
29923
29924
29925fi
Reid Spencera773bd52006-08-04 18:18:08 +000029926{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29927echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029928if test "$ac_cv_cxx_namespaces" = yes; then
29929
29930cat >>confdefs.h <<\_ACEOF
29931#define HAVE_NAMESPACES
29932_ACEOF
29933
29934fi
29935
Reid Spencera773bd52006-08-04 18:18:08 +000029936{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29937echo $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 +000029938if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029939 echo $ECHO_N "(cached) $ECHO_C" >&6
29940else
29941
Reid Spencera773bd52006-08-04 18:18:08 +000029942 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000029943ac_cpp='$CXXCPP $CPPFLAGS'
29944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29947
29948 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029949/* confdefs.h. */
29950_ACEOF
29951cat confdefs.h >>conftest.$ac_ext
29952cat >>conftest.$ac_ext <<_ACEOF
29953/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029954#include <ext/hash_map>
29955#ifdef HAVE_NAMESPACES
29956using namespace std;
29957#endif
John Criswell7a73b802003-06-30 21:59:07 +000029958int
29959main ()
29960{
Brian Gaeke90583492003-11-10 03:06:28 +000029961hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029962 ;
29963 return 0;
29964}
29965_ACEOF
29966rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029967if { (ac_try="$ac_compile"
29968case "(($ac_try" in
29969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970 *) ac_try_echo=$ac_try;;
29971esac
29972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29973 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029974 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029975 grep -v '^ *+' conftest.er1 >conftest.err
29976 rm -f conftest.er1
29977 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000029979 (exit $ac_status); } && {
29980 test -z "$ac_cxx_werror_flag" ||
29981 test ! -s conftest.err
29982 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000029983 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000029984else
29985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029986sed 's/^/| /' conftest.$ac_ext >&5
29987
Reid Spencera773bd52006-08-04 18:18:08 +000029988 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029989fi
Reid Spencera773bd52006-08-04 18:18:08 +000029990
29991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029992 ac_ext=c
29993ac_cpp='$CPP $CPPFLAGS'
29994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29996ac_compiler_gnu=$ac_cv_c_compiler_gnu
29997
John Criswell7a73b802003-06-30 21:59:07 +000029998fi
Reid Spencera773bd52006-08-04 18:18:08 +000029999{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
30000echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030001 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
30002 then
John Criswell9f011862004-09-24 18:28:00 +000030003
30004cat >>confdefs.h <<\_ACEOF
30005#define HAVE_STD_EXT_HASH_MAP 1
30006_ACEOF
30007
30008 else
30009
30010cat >>confdefs.h <<\_ACEOF
30011#define HAVE_STD_EXT_HASH_MAP 0
30012_ACEOF
30013
Brian Gaeke90583492003-11-10 03:06:28 +000030014 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030015
Reid Spencera773bd52006-08-04 18:18:08 +000030016 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30017echo $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 +000030018if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30019 echo $ECHO_N "(cached) $ECHO_C" >&6
30020else
30021
Reid Spencera773bd52006-08-04 18:18:08 +000030022 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030023ac_cpp='$CXXCPP $CPPFLAGS'
30024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30027
30028 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030029/* confdefs.h. */
30030_ACEOF
30031cat confdefs.h >>conftest.$ac_ext
30032cat >>conftest.$ac_ext <<_ACEOF
30033/* end confdefs.h. */
30034#include <ext/hash_map>
30035#ifdef HAVE_NAMESPACES
30036using namespace __gnu_cxx;
30037#endif
30038int
30039main ()
30040{
30041hash_map<int,int> t;
30042 ;
30043 return 0;
30044}
30045_ACEOF
30046rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030047if { (ac_try="$ac_compile"
30048case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30051esac
30052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030054 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030055 grep -v '^ *+' conftest.er1 >conftest.err
30056 rm -f conftest.er1
30057 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030059 (exit $ac_status); } && {
30060 test -z "$ac_cxx_werror_flag" ||
30061 test ! -s conftest.err
30062 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030063 ac_cv_cxx_have_gnu_ext_hash_map=yes
30064else
30065 echo "$as_me: failed program was:" >&5
30066sed 's/^/| /' conftest.$ac_ext >&5
30067
Reid Spencera773bd52006-08-04 18:18:08 +000030068 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000030069fi
Reid Spencera773bd52006-08-04 18:18:08 +000030070
30071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030072 ac_ext=c
30073ac_cpp='$CPP $CPPFLAGS'
30074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30076ac_compiler_gnu=$ac_cv_c_compiler_gnu
30077
30078fi
Reid Spencera773bd52006-08-04 18:18:08 +000030079{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30080echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030081 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30082 then
John Criswell9f011862004-09-24 18:28:00 +000030083
30084cat >>confdefs.h <<\_ACEOF
30085#define HAVE_GNU_EXT_HASH_MAP 1
30086_ACEOF
30087
30088 else
30089
30090cat >>confdefs.h <<\_ACEOF
30091#define HAVE_GNU_EXT_HASH_MAP 0
30092_ACEOF
30093
Brian Gaeke90583492003-11-10 03:06:28 +000030094 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030095
Reid Spencera773bd52006-08-04 18:18:08 +000030096 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30097echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030098if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30099 echo $ECHO_N "(cached) $ECHO_C" >&6
30100else
John Criswell7a73b802003-06-30 21:59:07 +000030101
Reid Spencera773bd52006-08-04 18:18:08 +000030102 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030103ac_cpp='$CXXCPP $CPPFLAGS'
30104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30107
30108 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030109/* confdefs.h. */
30110_ACEOF
30111cat confdefs.h >>conftest.$ac_ext
30112cat >>conftest.$ac_ext <<_ACEOF
30113/* end confdefs.h. */
30114#include <hash_map>
30115int
30116main ()
30117{
30118hash_map<int,int> t;
30119 ;
30120 return 0;
30121}
30122_ACEOF
30123rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030124if { (ac_try="$ac_compile"
30125case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30128esac
30129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030131 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030132 grep -v '^ *+' conftest.er1 >conftest.err
30133 rm -f conftest.er1
30134 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030136 (exit $ac_status); } && {
30137 test -z "$ac_cxx_werror_flag" ||
30138 test ! -s conftest.err
30139 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030140 ac_cv_cxx_have_global_hash_map=yes
30141else
30142 echo "$as_me: failed program was:" >&5
30143sed 's/^/| /' conftest.$ac_ext >&5
30144
Reid Spencera773bd52006-08-04 18:18:08 +000030145 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000030146fi
Reid Spencera773bd52006-08-04 18:18:08 +000030147
30148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030149 ac_ext=c
30150ac_cpp='$CPP $CPPFLAGS'
30151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30153ac_compiler_gnu=$ac_cv_c_compiler_gnu
30154
30155fi
Reid Spencera773bd52006-08-04 18:18:08 +000030156{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30157echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030158 if test "$ac_cv_cxx_have_global_hash_map" = yes
30159 then
John Criswell9f011862004-09-24 18:28:00 +000030160
30161cat >>confdefs.h <<\_ACEOF
30162#define HAVE_GLOBAL_HASH_MAP 1
30163_ACEOF
30164
30165 else
30166
30167cat >>confdefs.h <<\_ACEOF
30168#define HAVE_GLOBAL_HASH_MAP 0
30169_ACEOF
30170
Brian Gaeke90583492003-11-10 03:06:28 +000030171 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030172
Reid Spencera773bd52006-08-04 18:18:08 +000030173{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30174echo $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 +000030175if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000030176 echo $ECHO_N "(cached) $ECHO_C" >&6
30177else
30178
Reid Spencera773bd52006-08-04 18:18:08 +000030179 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030180ac_cpp='$CXXCPP $CPPFLAGS'
30181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30184
30185 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030186/* confdefs.h. */
30187_ACEOF
30188cat confdefs.h >>conftest.$ac_ext
30189cat >>conftest.$ac_ext <<_ACEOF
30190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030191#include <ext/hash_set>
30192#ifdef HAVE_NAMESPACES
30193using namespace std;
30194#endif
John Criswell7a73b802003-06-30 21:59:07 +000030195int
30196main ()
30197{
Brian Gaeke90583492003-11-10 03:06:28 +000030198hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000030199 ;
30200 return 0;
30201}
30202_ACEOF
30203rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030204if { (ac_try="$ac_compile"
30205case "(($ac_try" in
30206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207 *) ac_try_echo=$ac_try;;
30208esac
30209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030211 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030212 grep -v '^ *+' conftest.er1 >conftest.err
30213 rm -f conftest.er1
30214 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030216 (exit $ac_status); } && {
30217 test -z "$ac_cxx_werror_flag" ||
30218 test ! -s conftest.err
30219 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030220 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030221else
30222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030223sed 's/^/| /' conftest.$ac_ext >&5
30224
Reid Spencera773bd52006-08-04 18:18:08 +000030225 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030226fi
Reid Spencera773bd52006-08-04 18:18:08 +000030227
30228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030229 ac_ext=c
30230ac_cpp='$CPP $CPPFLAGS'
30231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30233ac_compiler_gnu=$ac_cv_c_compiler_gnu
30234
30235fi
Reid Spencera773bd52006-08-04 18:18:08 +000030236{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30237echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030238 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30239 then
John Criswell9f011862004-09-24 18:28:00 +000030240
30241cat >>confdefs.h <<\_ACEOF
30242#define HAVE_STD_EXT_HASH_SET 1
30243_ACEOF
30244
30245 else
30246
30247cat >>confdefs.h <<\_ACEOF
30248#define HAVE_STD_EXT_HASH_SET 0
30249_ACEOF
30250
Brian Gaeke90583492003-11-10 03:06:28 +000030251 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030252
Reid Spencera773bd52006-08-04 18:18:08 +000030253 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30254echo $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 +000030255if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30256 echo $ECHO_N "(cached) $ECHO_C" >&6
30257else
30258
Reid Spencera773bd52006-08-04 18:18:08 +000030259 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030260ac_cpp='$CXXCPP $CPPFLAGS'
30261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30264
John Criswell7a73b802003-06-30 21:59:07 +000030265 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030266/* confdefs.h. */
30267_ACEOF
30268cat confdefs.h >>conftest.$ac_ext
30269cat >>conftest.$ac_ext <<_ACEOF
30270/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030271#include <ext/hash_set>
30272#ifdef HAVE_NAMESPACES
30273using namespace __gnu_cxx;
30274#endif
John Criswell7a73b802003-06-30 21:59:07 +000030275int
30276main ()
30277{
Brian Gaeke90583492003-11-10 03:06:28 +000030278hash_set<int> t;
30279 ;
30280 return 0;
30281}
30282_ACEOF
30283rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030284if { (ac_try="$ac_compile"
30285case "(($ac_try" in
30286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287 *) ac_try_echo=$ac_try;;
30288esac
30289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030291 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030292 grep -v '^ *+' conftest.er1 >conftest.err
30293 rm -f conftest.er1
30294 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030296 (exit $ac_status); } && {
30297 test -z "$ac_cxx_werror_flag" ||
30298 test ! -s conftest.err
30299 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030300 ac_cv_cxx_have_gnu_ext_hash_set=yes
30301else
30302 echo "$as_me: failed program was:" >&5
30303sed 's/^/| /' conftest.$ac_ext >&5
30304
Reid Spencera773bd52006-08-04 18:18:08 +000030305 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000030306fi
Reid Spencera773bd52006-08-04 18:18:08 +000030307
30308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030309 ac_ext=c
30310ac_cpp='$CPP $CPPFLAGS'
30311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30313ac_compiler_gnu=$ac_cv_c_compiler_gnu
30314
30315fi
Reid Spencera773bd52006-08-04 18:18:08 +000030316{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30317echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030318 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30319 then
John Criswell9f011862004-09-24 18:28:00 +000030320
30321cat >>confdefs.h <<\_ACEOF
30322#define HAVE_GNU_EXT_HASH_SET 1
30323_ACEOF
30324
30325 else
30326
30327cat >>confdefs.h <<\_ACEOF
30328#define HAVE_GNU_EXT_HASH_SET 0
30329_ACEOF
30330
Brian Gaeke90583492003-11-10 03:06:28 +000030331 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030332
Reid Spencera773bd52006-08-04 18:18:08 +000030333 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30334echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030335if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30336 echo $ECHO_N "(cached) $ECHO_C" >&6
30337else
30338
Reid Spencera773bd52006-08-04 18:18:08 +000030339 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030340ac_cpp='$CXXCPP $CPPFLAGS'
30341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30344
30345 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030346/* confdefs.h. */
30347_ACEOF
30348cat confdefs.h >>conftest.$ac_ext
30349cat >>conftest.$ac_ext <<_ACEOF
30350/* end confdefs.h. */
30351#include <hash_set>
30352int
30353main ()
30354{
John Criswell7a73b802003-06-30 21:59:07 +000030355hash_set<int> t; return 0;
30356 ;
30357 return 0;
30358}
30359_ACEOF
30360rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030361if { (ac_try="$ac_compile"
30362case "(($ac_try" in
30363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364 *) ac_try_echo=$ac_try;;
30365esac
30366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030368 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030369 grep -v '^ *+' conftest.er1 >conftest.err
30370 rm -f conftest.er1
30371 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030373 (exit $ac_status); } && {
30374 test -z "$ac_cxx_werror_flag" ||
30375 test ! -s conftest.err
30376 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030377 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030378else
30379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030380sed 's/^/| /' conftest.$ac_ext >&5
30381
Reid Spencera773bd52006-08-04 18:18:08 +000030382 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030383fi
Reid Spencera773bd52006-08-04 18:18:08 +000030384
30385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030386 ac_ext=c
30387ac_cpp='$CPP $CPPFLAGS'
30388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30390ac_compiler_gnu=$ac_cv_c_compiler_gnu
30391
John Criswell7a73b802003-06-30 21:59:07 +000030392fi
Reid Spencera773bd52006-08-04 18:18:08 +000030393{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30394echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030395 if test "$ac_cv_cxx_have_global_hash_set" = yes
30396 then
John Criswell9f011862004-09-24 18:28:00 +000030397
30398cat >>confdefs.h <<\_ACEOF
30399#define HAVE_GLOBAL_HASH_SET 1
30400_ACEOF
30401
30402 else
30403
30404cat >>confdefs.h <<\_ACEOF
30405#define HAVE_GLOBAL_HASH_SET 0
30406_ACEOF
30407
Brian Gaeke90583492003-11-10 03:06:28 +000030408 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030409
Reid Spencera773bd52006-08-04 18:18:08 +000030410{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30411echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030412if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30413 echo $ECHO_N "(cached) $ECHO_C" >&6
30414else
30415
Reid Spencera773bd52006-08-04 18:18:08 +000030416 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030417ac_cpp='$CXXCPP $CPPFLAGS'
30418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30421
30422 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030423/* confdefs.h. */
30424_ACEOF
30425cat confdefs.h >>conftest.$ac_ext
30426cat >>conftest.$ac_ext <<_ACEOF
30427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030428#include <iterator>
30429#ifdef HAVE_NAMESPACES
30430using namespace std;
30431#endif
John Criswell7a73b802003-06-30 21:59:07 +000030432int
30433main ()
30434{
30435iterator<int,int,int> t; return 0;
30436 ;
30437 return 0;
30438}
30439_ACEOF
30440rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030441if { (ac_try="$ac_compile"
30442case "(($ac_try" in
30443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444 *) ac_try_echo=$ac_try;;
30445esac
30446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030449 grep -v '^ *+' conftest.er1 >conftest.err
30450 rm -f conftest.er1
30451 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030453 (exit $ac_status); } && {
30454 test -z "$ac_cxx_werror_flag" ||
30455 test ! -s conftest.err
30456 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030457 ac_cv_cxx_have_std_iterator=yes
30458else
30459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030460sed 's/^/| /' conftest.$ac_ext >&5
30461
Reid Spencera773bd52006-08-04 18:18:08 +000030462 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030463fi
Reid Spencera773bd52006-08-04 18:18:08 +000030464
30465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030466 ac_ext=c
30467ac_cpp='$CPP $CPPFLAGS'
30468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30470ac_compiler_gnu=$ac_cv_c_compiler_gnu
30471
30472
30473fi
Reid Spencera773bd52006-08-04 18:18:08 +000030474{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30475echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030476if test "$ac_cv_cxx_have_std_iterator" = yes
30477then
John Criswell40468462004-09-24 21:19:06 +000030478
30479cat >>confdefs.h <<\_ACEOF
30480#define HAVE_STD_ITERATOR 1
30481_ACEOF
30482
30483else
30484
30485cat >>confdefs.h <<\_ACEOF
30486#define HAVE_STD_ITERATOR 0
30487_ACEOF
30488
John Criswell7a73b802003-06-30 21:59:07 +000030489fi
30490
Reid Spencera773bd52006-08-04 18:18:08 +000030491{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30492echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030493if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30494 echo $ECHO_N "(cached) $ECHO_C" >&6
30495else
30496
Reid Spencera773bd52006-08-04 18:18:08 +000030497 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030498ac_cpp='$CXXCPP $CPPFLAGS'
30499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30502
30503 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030504/* confdefs.h. */
30505_ACEOF
30506cat confdefs.h >>conftest.$ac_ext
30507cat >>conftest.$ac_ext <<_ACEOF
30508/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030509#include <iterator>
30510#ifdef HAVE_NAMESPACES
30511using namespace std;
30512#endif
John Criswell7a73b802003-06-30 21:59:07 +000030513int
30514main ()
30515{
John Criswellc78022e2003-07-29 19:11:58 +000030516bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030517 ;
30518 return 0;
30519}
30520_ACEOF
30521rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030522if { (ac_try="$ac_compile"
30523case "(($ac_try" in
30524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525 *) ac_try_echo=$ac_try;;
30526esac
30527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030529 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030530 grep -v '^ *+' conftest.er1 >conftest.err
30531 rm -f conftest.er1
30532 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030534 (exit $ac_status); } && {
30535 test -z "$ac_cxx_werror_flag" ||
30536 test ! -s conftest.err
30537 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030538 ac_cv_cxx_have_bi_iterator=yes
30539else
30540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030541sed 's/^/| /' conftest.$ac_ext >&5
30542
Reid Spencera773bd52006-08-04 18:18:08 +000030543 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030544fi
Reid Spencera773bd52006-08-04 18:18:08 +000030545
30546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030547 ac_ext=c
30548ac_cpp='$CPP $CPPFLAGS'
30549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30551ac_compiler_gnu=$ac_cv_c_compiler_gnu
30552
30553
30554fi
Reid Spencera773bd52006-08-04 18:18:08 +000030555{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30556echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030557if test "$ac_cv_cxx_have_bi_iterator" = yes
30558then
John Criswell40468462004-09-24 21:19:06 +000030559
30560cat >>confdefs.h <<\_ACEOF
30561#define HAVE_BI_ITERATOR 1
30562_ACEOF
30563
30564else
30565
30566cat >>confdefs.h <<\_ACEOF
30567#define HAVE_BI_ITERATOR 0
30568_ACEOF
30569
John Criswell7a73b802003-06-30 21:59:07 +000030570fi
30571
Reid Spencera773bd52006-08-04 18:18:08 +000030572{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30573echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030574if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30575 echo $ECHO_N "(cached) $ECHO_C" >&6
30576else
30577
Reid Spencera773bd52006-08-04 18:18:08 +000030578 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030579ac_cpp='$CXXCPP $CPPFLAGS'
30580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30583
30584 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030585/* confdefs.h. */
30586_ACEOF
30587cat confdefs.h >>conftest.$ac_ext
30588cat >>conftest.$ac_ext <<_ACEOF
30589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030590#include <iterator>
30591#ifdef HAVE_NAMESPACES
30592using namespace std;
30593#endif
John Criswell7a73b802003-06-30 21:59:07 +000030594int
30595main ()
30596{
John Criswellc78022e2003-07-29 19:11:58 +000030597forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030598 ;
30599 return 0;
30600}
30601_ACEOF
30602rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030603if { (ac_try="$ac_compile"
30604case "(($ac_try" in
30605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606 *) ac_try_echo=$ac_try;;
30607esac
30608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030610 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030611 grep -v '^ *+' conftest.er1 >conftest.err
30612 rm -f conftest.er1
30613 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030615 (exit $ac_status); } && {
30616 test -z "$ac_cxx_werror_flag" ||
30617 test ! -s conftest.err
30618 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000030619 ac_cv_cxx_have_fwd_iterator=yes
30620else
30621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030622sed 's/^/| /' conftest.$ac_ext >&5
30623
Reid Spencera773bd52006-08-04 18:18:08 +000030624 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000030625fi
Reid Spencera773bd52006-08-04 18:18:08 +000030626
30627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030628 ac_ext=c
30629ac_cpp='$CPP $CPPFLAGS'
30630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30632ac_compiler_gnu=$ac_cv_c_compiler_gnu
30633
30634
30635fi
Reid Spencera773bd52006-08-04 18:18:08 +000030636{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30637echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000030638if test "$ac_cv_cxx_have_fwd_iterator" = yes
30639then
John Criswell40468462004-09-24 21:19:06 +000030640
30641cat >>confdefs.h <<\_ACEOF
30642#define HAVE_FWD_ITERATOR 1
30643_ACEOF
30644
30645else
30646
30647cat >>confdefs.h <<\_ACEOF
30648#define HAVE_FWD_ITERATOR 0
30649_ACEOF
30650
John Criswell7a73b802003-06-30 21:59:07 +000030651fi
30652
30653
Reid Spencera773bd52006-08-04 18:18:08 +000030654{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30655echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030656if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30657 echo $ECHO_N "(cached) $ECHO_C" >&6
30658else
Reid Spencera773bd52006-08-04 18:18:08 +000030659 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030660ac_cpp='$CXXCPP $CPPFLAGS'
30661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30664
Reid Spencerabec8f92004-10-27 23:03:44 +000030665 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030666/* confdefs.h. */
30667_ACEOF
30668cat confdefs.h >>conftest.$ac_ext
30669cat >>conftest.$ac_ext <<_ACEOF
30670/* end confdefs.h. */
30671#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030672int
30673main ()
30674{
30675float f; isnan(f);
30676 ;
30677 return 0;
30678}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030679_ACEOF
30680rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030681if { (ac_try="$ac_compile"
30682case "(($ac_try" in
30683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684 *) ac_try_echo=$ac_try;;
30685esac
30686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030688 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030689 grep -v '^ *+' conftest.er1 >conftest.err
30690 rm -f conftest.er1
30691 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030693 (exit $ac_status); } && {
30694 test -z "$ac_cxx_werror_flag" ||
30695 test ! -s conftest.err
30696 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030697 ac_cv_func_isnan_in_math_h=yes
30698else
30699 echo "$as_me: failed program was:" >&5
30700sed 's/^/| /' conftest.$ac_ext >&5
30701
Reid Spencera773bd52006-08-04 18:18:08 +000030702 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030703fi
Reid Spencera773bd52006-08-04 18:18:08 +000030704
30705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030706 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030707ac_cpp='$CPP $CPPFLAGS'
30708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30710ac_compiler_gnu=$ac_cv_c_compiler_gnu
30711
30712fi
Reid Spencera773bd52006-08-04 18:18:08 +000030713{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30714echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030715
30716
30717if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030718
30719cat >>confdefs.h <<\_ACEOF
30720#define HAVE_ISNAN_IN_MATH_H 1
30721_ACEOF
30722
Reid Spencerabec8f92004-10-27 23:03:44 +000030723fi
30724
Reid Spencera773bd52006-08-04 18:18:08 +000030725{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30726echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030727if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30728 echo $ECHO_N "(cached) $ECHO_C" >&6
30729else
Reid Spencera773bd52006-08-04 18:18:08 +000030730 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030731ac_cpp='$CXXCPP $CPPFLAGS'
30732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30735
Reid Spencerabec8f92004-10-27 23:03:44 +000030736 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030737/* confdefs.h. */
30738_ACEOF
30739cat confdefs.h >>conftest.$ac_ext
30740cat >>conftest.$ac_ext <<_ACEOF
30741/* end confdefs.h. */
30742#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030743int
30744main ()
30745{
30746float f; isnan(f);
30747 ;
30748 return 0;
30749}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030750_ACEOF
30751rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030752if { (ac_try="$ac_compile"
30753case "(($ac_try" in
30754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755 *) ac_try_echo=$ac_try;;
30756esac
30757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030760 grep -v '^ *+' conftest.er1 >conftest.err
30761 rm -f conftest.er1
30762 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030764 (exit $ac_status); } && {
30765 test -z "$ac_cxx_werror_flag" ||
30766 test ! -s conftest.err
30767 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030768 ac_cv_func_isnan_in_cmath=yes
30769else
30770 echo "$as_me: failed program was:" >&5
30771sed 's/^/| /' conftest.$ac_ext >&5
30772
Reid Spencera773bd52006-08-04 18:18:08 +000030773 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030774fi
Reid Spencera773bd52006-08-04 18:18:08 +000030775
30776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030777 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030778ac_cpp='$CPP $CPPFLAGS'
30779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30781ac_compiler_gnu=$ac_cv_c_compiler_gnu
30782
30783fi
Reid Spencera773bd52006-08-04 18:18:08 +000030784{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30785echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030786
30787if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030788
30789cat >>confdefs.h <<\_ACEOF
30790#define HAVE_ISNAN_IN_CMATH 1
30791_ACEOF
30792
Reid Spencerabec8f92004-10-27 23:03:44 +000030793fi
30794
Reid Spencera773bd52006-08-04 18:18:08 +000030795{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30796echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030797if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30799else
Reid Spencera773bd52006-08-04 18:18:08 +000030800 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030801ac_cpp='$CXXCPP $CPPFLAGS'
30802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30805
Reid Spencerabec8f92004-10-27 23:03:44 +000030806 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030807/* confdefs.h. */
30808_ACEOF
30809cat confdefs.h >>conftest.$ac_ext
30810cat >>conftest.$ac_ext <<_ACEOF
30811/* end confdefs.h. */
30812#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030813int
30814main ()
30815{
30816float f; std::isnan(f);
30817 ;
30818 return 0;
30819}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030820_ACEOF
30821rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030822if { (ac_try="$ac_compile"
30823case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30826esac
30827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030829 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030830 grep -v '^ *+' conftest.er1 >conftest.err
30831 rm -f conftest.er1
30832 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030834 (exit $ac_status); } && {
30835 test -z "$ac_cxx_werror_flag" ||
30836 test ! -s conftest.err
30837 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030838 ac_cv_func_std_isnan_in_cmath=yes
30839else
30840 echo "$as_me: failed program was:" >&5
30841sed 's/^/| /' conftest.$ac_ext >&5
30842
Reid Spencera773bd52006-08-04 18:18:08 +000030843 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030844fi
Reid Spencera773bd52006-08-04 18:18:08 +000030845
30846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030847 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030848ac_cpp='$CPP $CPPFLAGS'
30849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30851ac_compiler_gnu=$ac_cv_c_compiler_gnu
30852
30853fi
Reid Spencera773bd52006-08-04 18:18:08 +000030854{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30855echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030856
30857if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030858
30859cat >>confdefs.h <<\_ACEOF
30860#define HAVE_STD_ISNAN_IN_CMATH 1
30861_ACEOF
30862
Reid Spencerabec8f92004-10-27 23:03:44 +000030863fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030864
30865
Reid Spencera773bd52006-08-04 18:18:08 +000030866{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30867echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030868if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30869 echo $ECHO_N "(cached) $ECHO_C" >&6
30870else
Reid Spencera773bd52006-08-04 18:18:08 +000030871 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000030872ac_cpp='$CXXCPP $CPPFLAGS'
30873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30876
Reid Spencerabec8f92004-10-27 23:03:44 +000030877 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030878/* confdefs.h. */
30879_ACEOF
30880cat confdefs.h >>conftest.$ac_ext
30881cat >>conftest.$ac_ext <<_ACEOF
30882/* end confdefs.h. */
30883#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030884int
30885main ()
30886{
30887float f; isinf(f);
30888 ;
30889 return 0;
30890}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030891_ACEOF
30892rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030893if { (ac_try="$ac_compile"
30894case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30897esac
30898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030900 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030901 grep -v '^ *+' conftest.er1 >conftest.err
30902 rm -f conftest.er1
30903 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030905 (exit $ac_status); } && {
30906 test -z "$ac_cxx_werror_flag" ||
30907 test ! -s conftest.err
30908 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030909 ac_cv_func_isinf_in_math_h=yes
30910else
30911 echo "$as_me: failed program was:" >&5
30912sed 's/^/| /' conftest.$ac_ext >&5
30913
Reid Spencera773bd52006-08-04 18:18:08 +000030914 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000030915fi
Reid Spencera773bd52006-08-04 18:18:08 +000030916
30917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030918 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030919ac_cpp='$CPP $CPPFLAGS'
30920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30922ac_compiler_gnu=$ac_cv_c_compiler_gnu
30923
30924fi
Reid Spencera773bd52006-08-04 18:18:08 +000030925{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30926echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030927
30928if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030929
30930cat >>confdefs.h <<\_ACEOF
30931#define HAVE_ISINF_IN_MATH_H 1
30932_ACEOF
30933
Reid Spencerabec8f92004-10-27 23:03:44 +000030934fi
30935
Reid Spencera773bd52006-08-04 18:18:08 +000030936{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30937echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000030938if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30939 echo $ECHO_N "(cached) $ECHO_C" >&6
30940else
Reid Spencera773bd52006-08-04 18:18:08 +000030941 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000030942ac_cpp='$CXXCPP $CPPFLAGS'
30943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30946
Reid Spencerabec8f92004-10-27 23:03:44 +000030947 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030948/* confdefs.h. */
30949_ACEOF
30950cat confdefs.h >>conftest.$ac_ext
30951cat >>conftest.$ac_ext <<_ACEOF
30952/* end confdefs.h. */
30953#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030954int
30955main ()
30956{
30957float f; isinf(f);
30958 ;
30959 return 0;
30960}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030961_ACEOF
30962rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030963if { (ac_try="$ac_compile"
30964case "(($ac_try" in
30965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966 *) ac_try_echo=$ac_try;;
30967esac
30968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30969 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030970 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030971 grep -v '^ *+' conftest.er1 >conftest.err
30972 rm -f conftest.er1
30973 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000030975 (exit $ac_status); } && {
30976 test -z "$ac_cxx_werror_flag" ||
30977 test ! -s conftest.err
30978 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030979 ac_cv_func_isinf_in_cmath=yes
30980else
30981 echo "$as_me: failed program was:" >&5
30982sed 's/^/| /' conftest.$ac_ext >&5
30983
Reid Spencera773bd52006-08-04 18:18:08 +000030984 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000030985fi
Reid Spencera773bd52006-08-04 18:18:08 +000030986
30987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030988 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030989ac_cpp='$CPP $CPPFLAGS'
30990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30992ac_compiler_gnu=$ac_cv_c_compiler_gnu
30993
30994fi
Reid Spencera773bd52006-08-04 18:18:08 +000030995{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30996echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000030997
30998if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030999
31000cat >>confdefs.h <<\_ACEOF
31001#define HAVE_ISINF_IN_CMATH 1
31002_ACEOF
31003
Reid Spencerabec8f92004-10-27 23:03:44 +000031004fi
31005
Reid Spencera773bd52006-08-04 18:18:08 +000031006{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
31007echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000031008if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31010else
Reid Spencera773bd52006-08-04 18:18:08 +000031011 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000031012ac_cpp='$CXXCPP $CPPFLAGS'
31013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31016
Reid Spencerabec8f92004-10-27 23:03:44 +000031017 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000031018/* confdefs.h. */
31019_ACEOF
31020cat confdefs.h >>conftest.$ac_ext
31021cat >>conftest.$ac_ext <<_ACEOF
31022/* end confdefs.h. */
31023#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031024int
31025main ()
31026{
31027float f; std::isinf(f)}
31028 ;
31029 return 0;
31030}
Brian Gaeke52a551d2004-07-21 03:14:12 +000031031_ACEOF
31032rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031033if { (ac_try="$ac_compile"
31034case "(($ac_try" in
31035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036 *) ac_try_echo=$ac_try;;
31037esac
31038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000031040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031041 grep -v '^ *+' conftest.er1 >conftest.err
31042 rm -f conftest.er1
31043 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000031044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031045 (exit $ac_status); } && {
31046 test -z "$ac_cxx_werror_flag" ||
31047 test ! -s conftest.err
31048 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031049 ac_cv_func_std_isinf_in_cmath=yes
31050else
31051 echo "$as_me: failed program was:" >&5
31052sed 's/^/| /' conftest.$ac_ext >&5
31053
Reid Spencera773bd52006-08-04 18:18:08 +000031054 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000031055fi
Reid Spencera773bd52006-08-04 18:18:08 +000031056
31057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031058 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000031059ac_cpp='$CPP $CPPFLAGS'
31060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31062ac_compiler_gnu=$ac_cv_c_compiler_gnu
31063
31064fi
Reid Spencera773bd52006-08-04 18:18:08 +000031065{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31066echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031067
31068if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031069
31070cat >>confdefs.h <<\_ACEOF
31071#define HAVE_STD_ISINF_IN_CMATH 1
31072_ACEOF
31073
Reid Spencerabec8f92004-10-27 23:03:44 +000031074fi
31075
Reid Spencera773bd52006-08-04 18:18:08 +000031076{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31077echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000031078if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31079 echo $ECHO_N "(cached) $ECHO_C" >&6
31080else
Reid Spencera773bd52006-08-04 18:18:08 +000031081 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000031082ac_cpp='$CXXCPP $CPPFLAGS'
31083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31086
Reid Spencerabec8f92004-10-27 23:03:44 +000031087 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000031088/* confdefs.h. */
31089_ACEOF
31090cat confdefs.h >>conftest.$ac_ext
31091cat >>conftest.$ac_ext <<_ACEOF
31092/* end confdefs.h. */
31093#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031094int
31095main ()
31096{
31097float f; finite(f);
31098 ;
31099 return 0;
31100}
Brian Gaeked59a6472004-07-21 03:33:58 +000031101_ACEOF
31102rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031103if { (ac_try="$ac_compile"
31104case "(($ac_try" in
31105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106 *) ac_try_echo=$ac_try;;
31107esac
31108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31109 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000031110 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031111 grep -v '^ *+' conftest.er1 >conftest.err
31112 rm -f conftest.er1
31113 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000031114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031115 (exit $ac_status); } && {
31116 test -z "$ac_cxx_werror_flag" ||
31117 test ! -s conftest.err
31118 } && test -s conftest.$ac_objext; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031119 ac_cv_func_finite_in_ieeefp_h=yes
31120else
31121 echo "$as_me: failed program was:" >&5
31122sed 's/^/| /' conftest.$ac_ext >&5
31123
Reid Spencera773bd52006-08-04 18:18:08 +000031124 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000031125fi
Reid Spencera773bd52006-08-04 18:18:08 +000031126
31127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031128 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000031129ac_cpp='$CPP $CPPFLAGS'
31130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31132ac_compiler_gnu=$ac_cv_c_compiler_gnu
31133
31134fi
Reid Spencera773bd52006-08-04 18:18:08 +000031135{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31136echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031137
Brian Gaeke6802b552004-10-28 05:06:45 +000031138if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031139
31140cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000031141#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000031142_ACEOF
31143
Reid Spencerabec8f92004-10-27 23:03:44 +000031144fi
31145
31146
31147
Reid Spencer30fe5262007-01-20 07:48:49 +000031148if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000031149
31150
31151for ac_header in stdlib.h unistd.h
31152do
31153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031158 echo $ECHO_N "(cached) $ECHO_C" >&6
31159fi
Reid Spencera773bd52006-08-04 18:18:08 +000031160ac_res=`eval echo '${'$as_ac_Header'}'`
31161 { echo "$as_me:$LINENO: result: $ac_res" >&5
31162echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031163else
31164 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000031165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031167cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031168/* confdefs.h. */
31169_ACEOF
31170cat confdefs.h >>conftest.$ac_ext
31171cat >>conftest.$ac_ext <<_ACEOF
31172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031173$ac_includes_default
31174#include <$ac_header>
31175_ACEOF
31176rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031177if { (ac_try="$ac_compile"
31178case "(($ac_try" in
31179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31181esac
31182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031185 grep -v '^ *+' conftest.er1 >conftest.err
31186 rm -f conftest.er1
31187 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031189 (exit $ac_status); } && {
31190 test -z "$ac_c_werror_flag" ||
31191 test ! -s conftest.err
31192 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000031193 ac_header_compiler=yes
31194else
31195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031196sed 's/^/| /' conftest.$ac_ext >&5
31197
Reid Spencera773bd52006-08-04 18:18:08 +000031198 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000031199fi
Reid Spencera773bd52006-08-04 18:18:08 +000031200
31201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31202{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31203echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031204
31205# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000031206{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031208cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031209/* confdefs.h. */
31210_ACEOF
31211cat confdefs.h >>conftest.$ac_ext
31212cat >>conftest.$ac_ext <<_ACEOF
31213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031214#include <$ac_header>
31215_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031216if { (ac_try="$ac_cpp conftest.$ac_ext"
31217case "(($ac_try" in
31218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219 *) ac_try_echo=$ac_try;;
31220esac
31221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031223 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000031224 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000031225 rm -f conftest.er1
31226 cat conftest.err >&5
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031228 (exit $ac_status); } >/dev/null && {
31229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31230 test ! -s conftest.err
31231 }; then
John Criswell7a73b802003-06-30 21:59:07 +000031232 ac_header_preproc=yes
31233else
31234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031235sed 's/^/| /' conftest.$ac_ext >&5
31236
John Criswell7a73b802003-06-30 21:59:07 +000031237 ac_header_preproc=no
31238fi
Reid Spencera773bd52006-08-04 18:18:08 +000031239
John Criswell7a73b802003-06-30 21:59:07 +000031240rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000031241{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31242echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031243
31244# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31246 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000031247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31248echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31250echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31251 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000031252 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031253 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000031254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31255echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31257echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31259echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31261echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000031262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31263echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31265echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000031266 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000031267## ----------------------------------- ##
31268## Report this to llvmbugs@cs.uiuc.edu ##
31269## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000031270_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000031271 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000031272 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031273esac
Reid Spencera773bd52006-08-04 18:18:08 +000031274{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031277 echo $ECHO_N "(cached) $ECHO_C" >&6
31278else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031279 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000031280fi
Reid Spencera773bd52006-08-04 18:18:08 +000031281ac_res=`eval echo '${'$as_ac_Header'}'`
31282 { echo "$as_me:$LINENO: result: $ac_res" >&5
31283echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031284
31285fi
31286if test `eval echo '${'$as_ac_Header'}'` = yes; then
31287 cat >>confdefs.h <<_ACEOF
31288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31289_ACEOF
31290
31291fi
31292
31293done
31294
31295
31296for ac_func in getpagesize
31297do
31298as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031299{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31300echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31301if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031302 echo $ECHO_N "(cached) $ECHO_C" >&6
31303else
31304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031305/* confdefs.h. */
31306_ACEOF
31307cat confdefs.h >>conftest.$ac_ext
31308cat >>conftest.$ac_ext <<_ACEOF
31309/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31312#define $ac_func innocuous_$ac_func
31313
John Criswell7a73b802003-06-30 21:59:07 +000031314/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000031315 which can conflict with char $ac_func (); below.
31316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31317 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031318
John Criswell0c38eaf2003-09-10 15:17:25 +000031319#ifdef __STDC__
31320# include <limits.h>
31321#else
31322# include <assert.h>
31323#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000031324
31325#undef $ac_func
31326
Reid Spencera773bd52006-08-04 18:18:08 +000031327/* Override any GCC internal prototype to avoid an error.
31328 Use char because int might match the return type of a GCC
31329 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000031330#ifdef __cplusplus
31331extern "C"
31332#endif
John Criswell7a73b802003-06-30 21:59:07 +000031333char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031334/* The GNU C library defines this for functions which it implements
31335 to always fail with ENOSYS. Some functions are actually named
31336 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031337#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000031338choke me
John Criswell7a73b802003-06-30 21:59:07 +000031339#endif
31340
John Criswell0c38eaf2003-09-10 15:17:25 +000031341int
31342main ()
31343{
Reid Spencera773bd52006-08-04 18:18:08 +000031344return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031345 ;
31346 return 0;
31347}
31348_ACEOF
31349rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031350if { (ac_try="$ac_link"
31351case "(($ac_try" in
31352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353 *) ac_try_echo=$ac_try;;
31354esac
31355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031358 grep -v '^ *+' conftest.er1 >conftest.err
31359 rm -f conftest.er1
31360 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031362 (exit $ac_status); } && {
31363 test -z "$ac_c_werror_flag" ||
31364 test ! -s conftest.err
31365 } && test -s conftest$ac_exeext &&
31366 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000031367 eval "$as_ac_var=yes"
31368else
31369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031370sed 's/^/| /' conftest.$ac_ext >&5
31371
Reid Spencera773bd52006-08-04 18:18:08 +000031372 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031373fi
Reid Spencera773bd52006-08-04 18:18:08 +000031374
Scott Michel96dcd2b2007-12-05 21:24:02 +000031375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031376 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031377fi
Reid Spencera773bd52006-08-04 18:18:08 +000031378ac_res=`eval echo '${'$as_ac_var'}'`
31379 { echo "$as_me:$LINENO: result: $ac_res" >&5
31380echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031381if test `eval echo '${'$as_ac_var'}'` = yes; then
31382 cat >>confdefs.h <<_ACEOF
31383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31384_ACEOF
31385
31386fi
31387done
31388
Reid Spencera773bd52006-08-04 18:18:08 +000031389{ echo "$as_me:$LINENO: checking for working mmap" >&5
31390echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031391if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31392 echo $ECHO_N "(cached) $ECHO_C" >&6
31393else
31394 if test "$cross_compiling" = yes; then
31395 ac_cv_func_mmap_fixed_mapped=no
31396else
31397 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031398/* confdefs.h. */
31399_ACEOF
31400cat confdefs.h >>conftest.$ac_ext
31401cat >>conftest.$ac_ext <<_ACEOF
31402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031403$ac_includes_default
31404/* malloc might have been renamed as rpl_malloc. */
31405#undef malloc
31406
31407/* Thanks to Mike Haertel and Jim Avera for this test.
31408 Here is a matrix of mmap possibilities:
31409 mmap private not fixed
31410 mmap private fixed at somewhere currently unmapped
31411 mmap private fixed at somewhere already mapped
31412 mmap shared not fixed
31413 mmap shared fixed at somewhere currently unmapped
31414 mmap shared fixed at somewhere already mapped
31415 For private mappings, we should verify that changes cannot be read()
31416 back from the file, nor mmap's back from the file at a different
31417 address. (There have been systems where private was not correctly
31418 implemented like the infamous i386 svr4.0, and systems where the
31419 VM page cache was not coherent with the file system buffer cache
31420 like early versions of FreeBSD and possibly contemporary NetBSD.)
31421 For shared mappings, we should conversely verify that changes get
31422 propagated back to all the places they're supposed to be.
31423
31424 Grep wants private fixed already mapped.
31425 The main things grep needs to know about mmap are:
31426 * does it exist and is it safe to write into the mmap'd area
31427 * how to use it (BSD variants) */
31428
31429#include <fcntl.h>
31430#include <sys/mman.h>
31431
Scott Michel96dcd2b2007-12-05 21:24:02 +000031432#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000031433char *malloc ();
31434#endif
31435
31436/* This mess was copied from the GNU getpagesize.h. */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031437#ifndef HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000031438/* Assume that all systems that can run configure have sys/param.h. */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031439# ifndef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031440# define HAVE_SYS_PARAM_H 1
31441# endif
31442
31443# ifdef _SC_PAGESIZE
31444# define getpagesize() sysconf(_SC_PAGESIZE)
31445# else /* no _SC_PAGESIZE */
Scott Michel96dcd2b2007-12-05 21:24:02 +000031446# ifdef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031447# include <sys/param.h>
31448# ifdef EXEC_PAGESIZE
31449# define getpagesize() EXEC_PAGESIZE
31450# else /* no EXEC_PAGESIZE */
31451# ifdef NBPG
31452# define getpagesize() NBPG * CLSIZE
31453# ifndef CLSIZE
31454# define CLSIZE 1
31455# endif /* no CLSIZE */
31456# else /* no NBPG */
31457# ifdef NBPC
31458# define getpagesize() NBPC
31459# else /* no NBPC */
31460# ifdef PAGESIZE
31461# define getpagesize() PAGESIZE
31462# endif /* PAGESIZE */
31463# endif /* no NBPC */
31464# endif /* no NBPG */
31465# endif /* no EXEC_PAGESIZE */
31466# else /* no HAVE_SYS_PARAM_H */
31467# define getpagesize() 8192 /* punt totally */
31468# endif /* no HAVE_SYS_PARAM_H */
31469# endif /* no _SC_PAGESIZE */
31470
31471#endif /* no HAVE_GETPAGESIZE */
31472
31473int
31474main ()
31475{
31476 char *data, *data2, *data3;
31477 int i, pagesize;
31478 int fd;
31479
31480 pagesize = getpagesize ();
31481
31482 /* First, make a file with some known garbage in it. */
31483 data = (char *) malloc (pagesize);
31484 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000031485 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031486 for (i = 0; i < pagesize; ++i)
31487 *(data + i) = rand ();
31488 umask (0);
31489 fd = creat ("conftest.mmap", 0600);
31490 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000031491 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031492 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000031493 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031494 close (fd);
31495
31496 /* Next, try to mmap the file at a fixed address which already has
31497 something else allocated at it. If we can, also make sure that
31498 we see the same garbage. */
31499 fd = open ("conftest.mmap", O_RDWR);
31500 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000031501 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031502 data2 = (char *) malloc (2 * pagesize);
31503 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000031504 return 1;
31505 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000031506 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000031507 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000031508 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031509 for (i = 0; i < pagesize; ++i)
31510 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000031511 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031512
31513 /* Finally, make sure that changes to the mapped area do not
31514 percolate back to the file as seen by read(). (This is a bug on
31515 some variants of i386 svr4.0.) */
31516 for (i = 0; i < pagesize; ++i)
31517 *(data2 + i) = *(data2 + i) + 1;
31518 data3 = (char *) malloc (pagesize);
31519 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000031520 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031521 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000031522 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031523 for (i = 0; i < pagesize; ++i)
31524 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000031525 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000031526 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000031527 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031528}
31529_ACEOF
31530rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031531if { (ac_try="$ac_link"
31532case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31535esac
31536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031538 ac_status=$?
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031541 { (case "(($ac_try" in
31542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543 *) ac_try_echo=$ac_try;;
31544esac
31545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031547 ac_status=$?
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; }; then
31550 ac_cv_func_mmap_fixed_mapped=yes
31551else
31552 echo "$as_me: program exited with status $ac_status" >&5
31553echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031554sed 's/^/| /' conftest.$ac_ext >&5
31555
John Criswell7a73b802003-06-30 21:59:07 +000031556( exit $ac_status )
31557ac_cv_func_mmap_fixed_mapped=no
31558fi
Reid Spencera773bd52006-08-04 18:18:08 +000031559rm -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 +000031560fi
Reid Spencera773bd52006-08-04 18:18:08 +000031561
31562
John Criswell7a73b802003-06-30 21:59:07 +000031563fi
Reid Spencera773bd52006-08-04 18:18:08 +000031564{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31565echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031566if test $ac_cv_func_mmap_fixed_mapped = yes; then
31567
31568cat >>confdefs.h <<\_ACEOF
31569#define HAVE_MMAP 1
31570_ACEOF
31571
31572fi
31573rm -f conftest.mmap
31574
Reid Spencer30fe5262007-01-20 07:48:49 +000031575 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000031576echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031577if test "${ac_cv_func_mmap_file+set}" = set; then
31578 echo $ECHO_N "(cached) $ECHO_C" >&6
31579else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031580 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000031581ac_cpp='$CPP $CPPFLAGS'
31582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31584ac_compiler_gnu=$ac_cv_c_compiler_gnu
31585
31586 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031587 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000031588else
31589 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031590
Reid Spencer777ce172004-09-20 04:09:56 +000031591 /* confdefs.h. */
31592_ACEOF
31593cat confdefs.h >>conftest.$ac_ext
31594cat >>conftest.$ac_ext <<_ACEOF
31595/* end confdefs.h. */
31596
John Criswell7a73b802003-06-30 21:59:07 +000031597#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000031598#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000031599#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000031600
31601int
31602main ()
31603{
John Criswell7a73b802003-06-30 21:59:07 +000031604
31605 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000031606 fd = creat ("foo",0777);
31607 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31608 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031609 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000031610 ;
31611 return 0;
31612}
John Criswell7a73b802003-06-30 21:59:07 +000031613_ACEOF
31614rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031615if { (ac_try="$ac_link"
31616case "(($ac_try" in
31617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618 *) ac_try_echo=$ac_try;;
31619esac
31620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031622 ac_status=$?
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031625 { (case "(($ac_try" in
31626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31627 *) ac_try_echo=$ac_try;;
31628esac
31629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31630 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031631 ac_status=$?
31632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633 (exit $ac_status); }; }; then
31634 ac_cv_func_mmap_file=yes
31635else
31636 echo "$as_me: program exited with status $ac_status" >&5
31637echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031638sed 's/^/| /' conftest.$ac_ext >&5
31639
John Criswell7a73b802003-06-30 21:59:07 +000031640( exit $ac_status )
31641ac_cv_func_mmap_file=no
31642fi
Reid Spencera773bd52006-08-04 18:18:08 +000031643rm -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 +000031644fi
Reid Spencera773bd52006-08-04 18:18:08 +000031645
31646
John Criswell7a73b802003-06-30 21:59:07 +000031647 ac_ext=c
31648ac_cpp='$CPP $CPPFLAGS'
31649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31651ac_compiler_gnu=$ac_cv_c_compiler_gnu
31652
31653
31654fi
Reid Spencera773bd52006-08-04 18:18:08 +000031655{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31656echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031657if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000031658
31659cat >>confdefs.h <<\_ACEOF
31660#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000031661_ACEOF
31662
31663 MMAP_FILE=yes
31664
31665fi
31666
Reid Spencer30fe5262007-01-20 07:48:49 +000031667 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000031668echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031669if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31670 echo $ECHO_N "(cached) $ECHO_C" >&6
31671else
Reid Spencer582a23c2004-12-29 07:07:57 +000031672 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000031673 ac_cv_need_dev_zero_for_mmap=yes
31674 else
31675 ac_cv_need_dev_zero_for_mmap=no
31676 fi
31677
31678fi
Reid Spencera773bd52006-08-04 18:18:08 +000031679{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31680echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031681if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31682
31683cat >>confdefs.h <<\_ACEOF
31684#define NEED_DEV_ZERO_FOR_MMAP 1
31685_ACEOF
31686
31687fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031688
Reid Spencer30fe5262007-01-20 07:48:49 +000031689 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31690 then
31691 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000031692echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000031693 fi
31694 if test "$ac_cv_func_mmap_file" = "no"
31695 then
31696 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031697echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000031698 fi
John Criswellb13092b2003-07-22 21:00:24 +000031699fi
John Criswell7a73b802003-06-30 21:59:07 +000031700
31701
Reid Spencer9372f152007-07-30 20:13:24 +000031702
31703for ac_func in __dso_handle
31704do
31705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31706{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31708if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31709 echo $ECHO_N "(cached) $ECHO_C" >&6
31710else
31711 cat >conftest.$ac_ext <<_ACEOF
31712/* confdefs.h. */
31713_ACEOF
31714cat confdefs.h >>conftest.$ac_ext
31715cat >>conftest.$ac_ext <<_ACEOF
31716/* end confdefs.h. */
31717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31719#define $ac_func innocuous_$ac_func
31720
31721/* System header to define __stub macros and hopefully few prototypes,
31722 which can conflict with char $ac_func (); below.
31723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31724 <limits.h> exists even on freestanding compilers. */
31725
31726#ifdef __STDC__
31727# include <limits.h>
31728#else
31729# include <assert.h>
31730#endif
31731
31732#undef $ac_func
31733
31734/* Override any GCC internal prototype to avoid an error.
31735 Use char because int might match the return type of a GCC
31736 builtin and then its argument prototype would still apply. */
31737#ifdef __cplusplus
31738extern "C"
31739#endif
31740char $ac_func ();
31741/* The GNU C library defines this for functions which it implements
31742 to always fail with ENOSYS. Some functions are actually named
31743 something starting with __ and the normal name is an alias. */
31744#if defined __stub_$ac_func || defined __stub___$ac_func
31745choke me
31746#endif
31747
31748int
31749main ()
31750{
31751return $ac_func ();
31752 ;
31753 return 0;
31754}
31755_ACEOF
31756rm -f conftest.$ac_objext conftest$ac_exeext
31757if { (ac_try="$ac_link"
31758case "(($ac_try" in
31759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760 *) ac_try_echo=$ac_try;;
31761esac
31762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31763 (eval "$ac_link") 2>conftest.er1
31764 ac_status=$?
31765 grep -v '^ *+' conftest.er1 >conftest.err
31766 rm -f conftest.er1
31767 cat conftest.err >&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +000031769 (exit $ac_status); } && {
31770 test -z "$ac_c_werror_flag" ||
31771 test ! -s conftest.err
31772 } && test -s conftest$ac_exeext &&
31773 $as_test_x conftest$ac_exeext; then
Reid Spencer9372f152007-07-30 20:13:24 +000031774 eval "$as_ac_var=yes"
31775else
31776 echo "$as_me: failed program was:" >&5
31777sed 's/^/| /' conftest.$ac_ext >&5
31778
31779 eval "$as_ac_var=no"
31780fi
31781
Scott Michel96dcd2b2007-12-05 21:24:02 +000031782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer9372f152007-07-30 20:13:24 +000031783 conftest$ac_exeext conftest.$ac_ext
31784fi
31785ac_res=`eval echo '${'$as_ac_var'}'`
31786 { echo "$as_me:$LINENO: result: $ac_res" >&5
31787echo "${ECHO_T}$ac_res" >&6; }
31788if test `eval echo '${'$as_ac_var'}'` = yes; then
31789 cat >>confdefs.h <<_ACEOF
31790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31791_ACEOF
31792
31793fi
31794done
31795
31796
Reid Spencera773bd52006-08-04 18:18:08 +000031797{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31798echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031799if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31800 echo $ECHO_N "(cached) $ECHO_C" >&6
31801else
31802 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000031803if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031804 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000031805 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31806 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031807 if test $? -eq 0 ; then
31808 llvm_cv_llvmgcc_sanity="yes"
31809 fi
31810 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000031811fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031812fi
Reid Spencera773bd52006-08-04 18:18:08 +000031813{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31814echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031815
31816if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000031817 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31818echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000031819 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031820 LLVMCC1=$llvmcc1path
31821
Reid Spencer502935f2004-12-22 05:56:56 +000031822 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031823 LLVMCC1PLUS=$llvmcc1pluspath
31824
Reid Spencer502935f2004-12-22 05:56:56 +000031825 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31826 LLVMGCCDIR=$llvmgccdir
31827
Reid Spencer282d8c12006-12-21 22:55:41 +000031828 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31829 LLVMGCCLIBEXEC=$llvmgcclibexec
31830
Reid Spencerb5d75b82006-05-09 00:31:01 +000031831 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000031832 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31833 LLVMGCC_VERSION=$llvmgccversion
31834
31835 LLVMGCC_MAJVERS=$llvmgccmajvers
31836
Reid Spencer0d238182007-04-21 21:28:52 +000031837 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31838 LLVMGCC_LANGS=$llvmgcclangs
31839
31840 { echo "$as_me:$LINENO: result: ok" >&5
31841echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000031842fi
31843
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031844SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000031845
31846
Reid Spencere9de0912004-08-20 09:03:57 +000031847# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031848# information into substitutions that will end up in Makefile.config.in
31849# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000031850if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000031851 prefix="/usr/local"
31852fi
Reid Spencere9de0912004-08-20 09:03:57 +000031853eval LLVM_PREFIX="${prefix}";
31854eval LLVM_BINDIR="${prefix}/bin";
31855eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000031856eval LLVM_DATADIR="${prefix}/share/llvm";
31857eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31858eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000031859eval LLVM_INCLUDEDIR="${prefix}/include";
31860eval LLVM_INFODIR="${prefix}/info";
31861eval LLVM_MANDIR="${prefix}/man";
31862LLVM_CONFIGTIME=`date`
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031874# Place the various directores into the config.h file as #defines so that we
31875# can know about the installation paths within LLVM.
31876
Reid Spencere9de0912004-08-20 09:03:57 +000031877cat >>confdefs.h <<_ACEOF
31878#define LLVM_PREFIX "$LLVM_PREFIX"
31879_ACEOF
31880
31881
31882cat >>confdefs.h <<_ACEOF
31883#define LLVM_BINDIR "$LLVM_BINDIR"
31884_ACEOF
31885
31886
31887cat >>confdefs.h <<_ACEOF
31888#define LLVM_LIBDIR "$LLVM_LIBDIR"
31889_ACEOF
31890
31891
31892cat >>confdefs.h <<_ACEOF
31893#define LLVM_DATADIR "$LLVM_DATADIR"
31894_ACEOF
31895
31896
31897cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000031898#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031899_ACEOF
31900
31901
31902cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000031903#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031904_ACEOF
31905
31906
31907cat >>confdefs.h <<_ACEOF
31908#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31909_ACEOF
31910
31911
31912cat >>confdefs.h <<_ACEOF
31913#define LLVM_INFODIR "$LLVM_INFODIR"
31914_ACEOF
31915
31916
31917cat >>confdefs.h <<_ACEOF
31918#define LLVM_MANDIR "$LLVM_MANDIR"
31919_ACEOF
31920
31921
31922cat >>confdefs.h <<_ACEOF
31923#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31924_ACEOF
31925
31926
Eric Christopher790e11c2007-12-01 00:34:39 +000031927cat >>confdefs.h <<_ACEOF
31928#define LLVM_HOSTTRIPLE "$host"
31929_ACEOF
31930
31931
Gordon Henriksenc0efff82007-10-02 09:50:32 +000031932# Determine which bindings to build.
31933if test "$BINDINGS_TO_BUILD" = auto ; then
31934 BINDINGS_TO_BUILD=""
31935 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31936 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31937 fi
31938fi
31939BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31940
31941
31942# This isn't really configurey, but it avoids having to repeat the list in
31943# other files.
31944ALL_BINDINGS=ocaml
31945
31946
Gordon Henriksenf0915682007-10-02 16:42:22 +000031947# Do any work necessary to ensure that bindings have what they need.
31948binding_prereqs_failed=0
31949for a_binding in $BINDINGS_TO_BUILD ; do
31950 case "$a_binding" in
31951 ocaml)
31952 if test "x$OCAMLC" = x ; then
31953 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31954echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31955 binding_prereqs_failed=1
31956 fi
31957 if test "x$OCAMLDEP" = x ; then
31958 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31959echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31960 binding_prereqs_failed=1
31961 fi
31962 if test "x$OCAMLOPT" = x ; then
31963 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31964echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31965 fi
31966 if test "x$with_ocaml_libdir" != xauto ; then
31967 OCAML_LIBDIR=$with_ocaml_libdir
31968
31969 else
31970 ocaml_stdlib="`"$OCAMLC" -where`"
31971 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31972 then
31973 # ocaml stdlib is beneath our prefix; use stdlib
31974 OCAML_LIBDIR=$ocaml_stdlib
31975
31976 else
31977 # ocaml stdlib is outside our prefix; use libdir/ocaml
31978 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31979
31980 fi
31981 fi
31982 ;;
31983 esac
31984done
31985if test "$binding_prereqs_failed" = 1 ; then
31986 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31987echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31988 { (exit 1); exit 1; }; }
31989fi
31990
31991
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031992
Reid Spencera773bd52006-08-04 18:18:08 +000031993ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031994
Reid Spencera773bd52006-08-04 18:18:08 +000031995ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031996
Reid Spencera773bd52006-08-04 18:18:08 +000031997ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031998
Reid Spencera773bd52006-08-04 18:18:08 +000031999ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032000
Reid Spencera773bd52006-08-04 18:18:08 +000032001ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032002
32003
Reid Spencera773bd52006-08-04 18:18:08 +000032004ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032005
32006
Reid Spencerea949cf2006-08-16 00:45:38 +000032007ac_config_files="$ac_config_files llvm.spec"
32008
32009
Reid Spencera773bd52006-08-04 18:18:08 +000032010ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000032011
32012
Reid Spencera773bd52006-08-04 18:18:08 +000032013ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000032014
32015
Reid Spencera773bd52006-08-04 18:18:08 +000032016ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000032017
Reid Spencera773bd52006-08-04 18:18:08 +000032018ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032019
32020
Reid Spencera773bd52006-08-04 18:18:08 +000032021ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032022
32023
Reid Spencera773bd52006-08-04 18:18:08 +000032024ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032025
32026
Reid Spencera773bd52006-08-04 18:18:08 +000032027ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032028
32029
Reid Spencer8b2e1412006-11-17 03:32:33 +000032030ac_config_commands="$ac_config_commands runtime/Makefile"
32031
32032
Reid Spencera773bd52006-08-04 18:18:08 +000032033ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032034
32035
Reid Spencera773bd52006-08-04 18:18:08 +000032036ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032037
32038
Reid Spencera773bd52006-08-04 18:18:08 +000032039ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032040
32041
Reid Spencera773bd52006-08-04 18:18:08 +000032042ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032043
32044
Reid Spencera773bd52006-08-04 18:18:08 +000032045ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032046
32047
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032048ac_config_commands="$ac_config_commands bindings/Makefile"
32049
32050
32051ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32052
32053
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032054
John Criswell7a73b802003-06-30 21:59:07 +000032055cat >confcache <<\_ACEOF
32056# This file is a shell script that caches the results of configure
32057# tests run on this system so they can be shared between configure
32058# scripts and configure runs, see configure's option --config-cache.
32059# It is not useful on other systems. If it contains results you don't
32060# want to keep, you may remove or edit it.
32061#
32062# config.status only pays attention to the cache file if you give it
32063# the --recheck option to rerun configure.
32064#
John Criswell0c38eaf2003-09-10 15:17:25 +000032065# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000032066# loading this file, other *unset* `ac_cv_foo' will be assigned the
32067# following values.
32068
32069_ACEOF
32070
32071# The following way of writing the cache mishandles newlines in values,
32072# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000032073# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000032074# Ultrix sh set writes to stderr and can't be redirected directly,
32075# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000032076(
32077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32078 eval ac_val=\$$ac_var
32079 case $ac_val in #(
32080 *${as_nl}*)
32081 case $ac_var in #(
32082 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32083echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32084 esac
32085 case $ac_var in #(
32086 _ | IFS | as_nl) ;; #(
32087 *) $as_unset $ac_var ;;
32088 esac ;;
32089 esac
32090 done
32091
John Criswell7a73b802003-06-30 21:59:07 +000032092 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000032093 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32094 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000032095 # `set' does not quote correctly, so add quotes (double-quote
32096 # substitution turns \\\\ into \\, and sed turns \\ into \).
32097 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032098 "s/'/'\\\\''/g;
32099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000032100 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000032101 *)
32102 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000032103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000032104 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032105 esac |
32106 sort
32107) |
John Criswell7a73b802003-06-30 21:59:07 +000032108 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032109 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000032110 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000032111 :clear
John Criswell7a73b802003-06-30 21:59:07 +000032112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32113 t end
Reid Spencera773bd52006-08-04 18:18:08 +000032114 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32115 :end' >>confcache
32116if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32117 if test -w "$cache_file"; then
32118 test "x$cache_file" != "x/dev/null" &&
32119 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32120echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032121 cat confcache >$cache_file
32122 else
Reid Spencera773bd52006-08-04 18:18:08 +000032123 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32124echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032125 fi
32126fi
32127rm -f confcache
32128
32129test "x$prefix" = xNONE && prefix=$ac_default_prefix
32130# Let make expand exec_prefix.
32131test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32132
John Criswell7a73b802003-06-30 21:59:07 +000032133DEFS=-DHAVE_CONFIG_H
32134
John Criswell0c38eaf2003-09-10 15:17:25 +000032135ac_libobjs=
32136ac_ltlibobjs=
32137for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32138 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000032139 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32140 ac_i=`echo "$ac_i" | sed "$ac_script"`
32141 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32142 # will be set to the directory where LIBOBJS objects are built.
32143 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32144 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000032145done
32146LIBOBJS=$ac_libobjs
32147
32148LTLIBOBJS=$ac_ltlibobjs
32149
32150
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032151if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32152 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32153Usually this means the macro was only invoked conditionally." >&5
32154echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32155Usually this means the macro was only invoked conditionally." >&2;}
32156 { (exit 1); exit 1; }; }
32157fi
32158if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32159 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32160Usually this means the macro was only invoked conditionally." >&5
32161echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32162Usually this means the macro was only invoked conditionally." >&2;}
32163 { (exit 1); exit 1; }; }
32164fi
John Criswell7a73b802003-06-30 21:59:07 +000032165
32166: ${CONFIG_STATUS=./config.status}
32167ac_clean_files_save=$ac_clean_files
32168ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32169{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32170echo "$as_me: creating $CONFIG_STATUS" >&6;}
32171cat >$CONFIG_STATUS <<_ACEOF
32172#! $SHELL
32173# Generated by $as_me.
32174# Run this file to recreate the current configuration.
32175# Compiler output produced by configure, useful for debugging
32176# configure, is in config.log if it exists.
32177
32178debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000032179ac_cs_recheck=false
32180ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000032181SHELL=\${CONFIG_SHELL-$SHELL}
32182_ACEOF
32183
32184cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032185## --------------------- ##
32186## M4sh Initialization. ##
32187## --------------------- ##
32188
Scott Michel96dcd2b2007-12-05 21:24:02 +000032189# Be more Bourne compatible
32190DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000032191if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32192 emulate sh
32193 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032194 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32195 # is contrary to our usage. Disable this feature.
32196 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000032197 setopt NO_GLOB_SUBST
32198else
Scott Michel96dcd2b2007-12-05 21:24:02 +000032199 case `(set -o) 2>/dev/null` in
32200 *posix*) set -o posix ;;
32201esac
32202
John Criswell7a73b802003-06-30 21:59:07 +000032203fi
Scott Michel96dcd2b2007-12-05 21:24:02 +000032204
32205
John Criswell7a73b802003-06-30 21:59:07 +000032206
John Criswell7a73b802003-06-30 21:59:07 +000032207
Reid Spencera773bd52006-08-04 18:18:08 +000032208# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000032209# Avoid depending upon Character Ranges.
32210as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32211as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32212as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32213as_cr_digits='0123456789'
32214as_cr_alnum=$as_cr_Letters$as_cr_digits
32215
32216# The user is always right.
32217if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032218 echo "#! /bin/sh" >conf$$.sh
32219 echo "exit 0" >>conf$$.sh
32220 chmod +x conf$$.sh
32221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032222 PATH_SEPARATOR=';'
32223 else
32224 PATH_SEPARATOR=:
32225 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000032226 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000032227fi
32228
Reid Spencera773bd52006-08-04 18:18:08 +000032229# Support unset when possible.
32230if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32231 as_unset=unset
32232else
32233 as_unset=false
32234fi
John Criswell7a73b802003-06-30 21:59:07 +000032235
Reid Spencera773bd52006-08-04 18:18:08 +000032236
32237# IFS
32238# We need space, tab and new line, in precisely that order. Quoting is
32239# there to prevent editors from complaining about space-tab.
32240# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32241# splitting by setting IFS to empty value.)
32242as_nl='
32243'
32244IFS=" "" $as_nl"
32245
32246# Find who we are. Look in the path if we contain no directory separator.
32247case $0 in
32248 *[\\/]* ) as_myself=$0 ;;
32249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000032250for as_dir in $PATH
32251do
32252 IFS=$as_save_IFS
32253 test -z "$as_dir" && as_dir=.
32254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32255done
Reid Spencera773bd52006-08-04 18:18:08 +000032256IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000032257
Reid Spencera773bd52006-08-04 18:18:08 +000032258 ;;
32259esac
32260# We did not find ourselves, most probably we were run as `sh COMMAND'
32261# in which case we are not to be found in the path.
32262if test "x$as_myself" = x; then
32263 as_myself=$0
32264fi
32265if test ! -f "$as_myself"; then
32266 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32267 { (exit 1); exit 1; }
32268fi
32269
32270# Work around bugs in pre-3.0 UWIN ksh.
32271for as_var in ENV MAIL MAILPATH
32272do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32273done
32274PS1='$ '
32275PS2='> '
32276PS4='+ '
32277
32278# NLS nuisances.
32279for as_var in \
32280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32282 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000032283do
Reid Spencera773bd52006-08-04 18:18:08 +000032284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32285 eval $as_var=C; export $as_var
32286 else
32287 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32288 fi
32289done
32290
32291# Required to use basename.
32292if expr a : '\(a\)' >/dev/null 2>&1 &&
32293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32294 as_expr=expr
32295else
32296 as_expr=false
32297fi
32298
32299if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32300 as_basename=basename
32301else
32302 as_basename=false
32303fi
32304
32305
32306# Name of the executable.
32307as_me=`$as_basename -- "$0" ||
32308$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32309 X"$0" : 'X\(//\)$' \| \
32310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32311echo X/"$0" |
32312 sed '/^.*\/\([^/][^/]*\)\/*$/{
32313 s//\1/
32314 q
32315 }
32316 /^X\/\(\/\/\)$/{
32317 s//\1/
32318 q
32319 }
32320 /^X\/\(\/\).*/{
32321 s//\1/
32322 q
32323 }
32324 s/.*/./; q'`
32325
32326# CDPATH.
32327$as_unset CDPATH
32328
32329
32330
John Criswell7a73b802003-06-30 21:59:07 +000032331 as_lineno_1=$LINENO
32332 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000032333 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000032334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000032335
32336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32337 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000032338 # line-number line after each line using $LINENO; the second 'sed'
32339 # does the real work. The second script uses 'N' to pair each
32340 # line-number line with the line containing $LINENO, and appends
32341 # trailing '-' during substitution so that $LINENO is not a special
32342 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000032343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000032344 # scripts with optimization help from Paolo Bonzini. Blame Lee
32345 # E. McMahon (1931-1989) for sed's syntax. :-)
32346 sed -n '
32347 p
32348 /[$]LINENO/=
32349 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000032350 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032351 s/[$]LINENO.*/&-/
32352 t lineno
32353 b
32354 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000032355 N
Reid Spencera773bd52006-08-04 18:18:08 +000032356 :loop
32357 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000032358 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000032359 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000032360 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000032361 chmod +x "$as_me.lineno" ||
32362 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000032363 { (exit 1); exit 1; }; }
32364
32365 # Don't try to exec as it changes $[0], causing all sort of problems
32366 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000032367 # original and so on. Autoconf is especially sensitive to this).
32368 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000032369 # Exit status is that of the last command.
32370 exit
32371}
32372
32373
Reid Spencera773bd52006-08-04 18:18:08 +000032374if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32375 as_dirname=dirname
32376else
32377 as_dirname=false
32378fi
32379
32380ECHO_C= ECHO_N= ECHO_T=
32381case `echo -n x` in
32382-n*)
32383 case `echo 'x\c'` in
32384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32385 *) ECHO_C='\c';;
32386 esac;;
32387*)
32388 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000032389esac
32390
Reid Spencera773bd52006-08-04 18:18:08 +000032391if expr a : '\(a\)' >/dev/null 2>&1 &&
32392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000032393 as_expr=expr
32394else
32395 as_expr=false
32396fi
32397
32398rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000032399if test -d conf$$.dir; then
32400 rm -f conf$$.dir/conf$$.file
32401else
32402 rm -f conf$$.dir
32403 mkdir conf$$.dir
32404fi
John Criswell7a73b802003-06-30 21:59:07 +000032405echo >conf$$.file
32406if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000032407 as_ln_s='ln -s'
32408 # ... but there are two gotchas:
32409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32411 # In both cases, we have to default to `cp -p'.
32412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000032413 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000032414elif ln conf$$.file conf$$ 2>/dev/null; then
32415 as_ln_s=ln
32416else
32417 as_ln_s='cp -p'
32418fi
Reid Spencera773bd52006-08-04 18:18:08 +000032419rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32420rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000032421
John Criswell0c38eaf2003-09-10 15:17:25 +000032422if mkdir -p . 2>/dev/null; then
32423 as_mkdir_p=:
32424else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032425 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000032426 as_mkdir_p=false
32427fi
32428
Scott Michel96dcd2b2007-12-05 21:24:02 +000032429if test -x / >/dev/null 2>&1; then
32430 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +000032431else
Scott Michel96dcd2b2007-12-05 21:24:02 +000032432 if ls -dL / >/dev/null 2>&1; then
32433 as_ls_L_option=L
32434 else
32435 as_ls_L_option=
32436 fi
32437 as_test_x='
32438 eval sh -c '\''
32439 if test -d "$1"; then
32440 test -d "$1/.";
32441 else
32442 case $1 in
32443 -*)set "./$1";;
32444 esac;
32445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32446 ???[sx]*):;;*)false;;esac;fi
32447 '\'' sh
32448 '
Reid Spencera773bd52006-08-04 18:18:08 +000032449fi
Scott Michel96dcd2b2007-12-05 21:24:02 +000032450as_executable_p=$as_test_x
John Criswell7a73b802003-06-30 21:59:07 +000032451
32452# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032453as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000032454
32455# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032456as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000032457
32458
John Criswell7a73b802003-06-30 21:59:07 +000032459exec 6>&1
32460
Reid Spencera773bd52006-08-04 18:18:08 +000032461# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000032462# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000032463# values after options handling.
32464ac_log="
Tanya Lattner5c709542007-09-14 01:24:13 +000032465This file was extended by llvm $as_me 2.2svn, which was
Scott Michel96dcd2b2007-12-05 21:24:02 +000032466generated by GNU Autoconf 2.61. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000032467
32468 CONFIG_FILES = $CONFIG_FILES
32469 CONFIG_HEADERS = $CONFIG_HEADERS
32470 CONFIG_LINKS = $CONFIG_LINKS
32471 CONFIG_COMMANDS = $CONFIG_COMMANDS
32472 $ $0 $@
32473
Reid Spencera773bd52006-08-04 18:18:08 +000032474on `(hostname || uname -n) 2>/dev/null | sed 1q`
32475"
32476
John Criswell7a73b802003-06-30 21:59:07 +000032477_ACEOF
32478
Reid Spencera773bd52006-08-04 18:18:08 +000032479cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032480# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000032481config_files="$ac_config_files"
32482config_headers="$ac_config_headers"
32483config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000032484
Reid Spencera773bd52006-08-04 18:18:08 +000032485_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032486
32487cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032488ac_cs_usage="\
32489\`$as_me' instantiates files from templates according to the
32490current configuration.
32491
32492Usage: $0 [OPTIONS] [FILE]...
32493
32494 -h, --help print this help, then exit
Scott Michel96dcd2b2007-12-05 21:24:02 +000032495 -V, --version print version number and configuration settings, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000032496 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000032497 -d, --debug don't remove temporary files
32498 --recheck update $as_me by reconfiguring in the same conditions
32499 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000032500 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000032501 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000032502 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000032503
32504Configuration files:
32505$config_files
32506
32507Configuration headers:
32508$config_headers
32509
John Criswellc764fbc2003-09-06 15:17:13 +000032510Configuration commands:
32511$config_commands
32512
John Criswell7a73b802003-06-30 21:59:07 +000032513Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000032514
Reid Spencera773bd52006-08-04 18:18:08 +000032515_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032516cat >>$CONFIG_STATUS <<_ACEOF
32517ac_cs_version="\\
Tanya Lattner5c709542007-09-14 01:24:13 +000032518llvm config.status 2.2svn
Scott Michel96dcd2b2007-12-05 21:24:02 +000032519configured by $0, generated by GNU Autoconf 2.61,
Reid Spencera773bd52006-08-04 18:18:08 +000032520 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000032521
Reid Spencera773bd52006-08-04 18:18:08 +000032522Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000032523This config.status script is free software; the Free Software Foundation
32524gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000032525
32526ac_pwd='$ac_pwd'
32527srcdir='$srcdir'
32528INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000032529_ACEOF
32530
32531cat >>$CONFIG_STATUS <<\_ACEOF
32532# If no file are specified by the user, then we need to provide default
32533# value. By we need to know if files were specified by the user.
32534ac_need_defaults=:
32535while test $# != 0
32536do
32537 case $1 in
32538 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000032539 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32540 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032541 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000032542 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032543 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000032544 ac_option=$1
32545 ac_optarg=$2
32546 ac_shift=shift
32547 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032548 esac
32549
John Criswell0c38eaf2003-09-10 15:17:25 +000032550 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000032551 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000032552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32553 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032554 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32555 echo "$ac_cs_version"; exit ;;
32556 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000032557 debug=: ;;
32558 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000032559 $ac_shift
32560 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000032561 ac_need_defaults=false;;
32562 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000032563 $ac_shift
32564 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000032565 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000032566 --he | --h)
32567 # Conflict between --help and --header
32568 { echo "$as_me: error: ambiguous option: $1
32569Try \`$0 --help' for more information." >&2
32570 { (exit 1); exit 1; }; };;
32571 --help | --hel | -h )
32572 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000032573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32575 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000032576
32577 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000032578 -*) { echo "$as_me: error: unrecognized option: $1
32579Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032580 { (exit 1); exit 1; }; } ;;
32581
Reid Spencera773bd52006-08-04 18:18:08 +000032582 *) ac_config_targets="$ac_config_targets $1"
32583 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000032584
32585 esac
32586 shift
32587done
32588
John Criswell0c38eaf2003-09-10 15:17:25 +000032589ac_configure_extra_args=
32590
32591if $ac_cs_silent; then
32592 exec 6>/dev/null
32593 ac_configure_extra_args="$ac_configure_extra_args --silent"
32594fi
32595
32596_ACEOF
32597cat >>$CONFIG_STATUS <<_ACEOF
32598if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000032599 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32600 CONFIG_SHELL=$SHELL
32601 export CONFIG_SHELL
32602 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000032603fi
32604
John Criswell7a73b802003-06-30 21:59:07 +000032605_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032606cat >>$CONFIG_STATUS <<\_ACEOF
32607exec 5>>config.log
32608{
32609 echo
32610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32611## Running $as_me. ##
32612_ASBOX
32613 echo "$ac_log"
32614} >&5
John Criswell7a73b802003-06-30 21:59:07 +000032615
Reid Spencera773bd52006-08-04 18:18:08 +000032616_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032617cat >>$CONFIG_STATUS <<_ACEOF
32618#
Reid Spencera773bd52006-08-04 18:18:08 +000032619# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000032620#
Reid Spencerc0682832005-02-24 19:05:19 +000032621llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000032622
32623_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032624
John Criswell7a73b802003-06-30 21:59:07 +000032625cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032626
32627# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000032628for ac_config_target in $ac_config_targets
32629do
Reid Spencera773bd52006-08-04 18:18:08 +000032630 case $ac_config_target in
32631 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32632 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32633 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32634 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32635 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32636 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000032637 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032638 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32639 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32640 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32641 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32642 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32643 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32644 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000032645 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032646 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32647 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32648 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32649 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32650 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032651 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32652 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032653
John Criswell7a73b802003-06-30 21:59:07 +000032654 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32655echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32656 { (exit 1); exit 1; }; };;
32657 esac
32658done
32659
Reid Spencera773bd52006-08-04 18:18:08 +000032660
John Criswell7a73b802003-06-30 21:59:07 +000032661# If the user did not use the arguments to specify the items to instantiate,
32662# then the envvar interface is used. Set only those that are not.
32663# We use the long form for the default assignment because of an extremely
32664# bizarre bug on SunOS 4.1.3.
32665if $ac_need_defaults; then
32666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32667 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000032668 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000032669fi
32670
John Criswell0c38eaf2003-09-10 15:17:25 +000032671# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000032672# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000032673# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000032674# Hook for its removal unless debugging.
32675# Note that there is a small window in which the directory will not be cleaned:
32676# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000032677$debug ||
32678{
Reid Spencera773bd52006-08-04 18:18:08 +000032679 tmp=
32680 trap 'exit_status=$?
32681 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32682' 0
John Criswell7a73b802003-06-30 21:59:07 +000032683 trap '{ (exit 1); exit 1; }' 1 2 13 15
32684}
John Criswell7a73b802003-06-30 21:59:07 +000032685# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000032686
John Criswell7a73b802003-06-30 21:59:07 +000032687{
Reid Spencera773bd52006-08-04 18:18:08 +000032688 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000032689 test -n "$tmp" && test -d "$tmp"
32690} ||
32691{
Reid Spencera773bd52006-08-04 18:18:08 +000032692 tmp=./conf$$-$RANDOM
32693 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000032694} ||
32695{
John Criswell0c38eaf2003-09-10 15:17:25 +000032696 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032697 { (exit 1); exit 1; }
32698}
32699
John Criswell7a73b802003-06-30 21:59:07 +000032700#
Reid Spencera773bd52006-08-04 18:18:08 +000032701# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000032702#
32703
32704# No need to generate the scripts if there are no CONFIG_FILES.
32705# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000032706if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000032707
32708_ACEOF
32709
Reid Spencera773bd52006-08-04 18:18:08 +000032710
32711
32712ac_delim='%!_!# '
32713for ac_last_try in false false false false false :; do
32714 cat >conf$$subs.sed <<_ACEOF
32715SHELL!$SHELL$ac_delim
32716PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32717PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32718PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32719PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32720PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32721PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32722exec_prefix!$exec_prefix$ac_delim
32723prefix!$prefix$ac_delim
32724program_transform_name!$program_transform_name$ac_delim
32725bindir!$bindir$ac_delim
32726sbindir!$sbindir$ac_delim
32727libexecdir!$libexecdir$ac_delim
32728datarootdir!$datarootdir$ac_delim
32729datadir!$datadir$ac_delim
32730sysconfdir!$sysconfdir$ac_delim
32731sharedstatedir!$sharedstatedir$ac_delim
32732localstatedir!$localstatedir$ac_delim
32733includedir!$includedir$ac_delim
32734oldincludedir!$oldincludedir$ac_delim
32735docdir!$docdir$ac_delim
32736infodir!$infodir$ac_delim
32737htmldir!$htmldir$ac_delim
32738dvidir!$dvidir$ac_delim
32739pdfdir!$pdfdir$ac_delim
32740psdir!$psdir$ac_delim
32741libdir!$libdir$ac_delim
32742localedir!$localedir$ac_delim
32743mandir!$mandir$ac_delim
32744DEFS!$DEFS$ac_delim
32745ECHO_C!$ECHO_C$ac_delim
32746ECHO_N!$ECHO_N$ac_delim
32747ECHO_T!$ECHO_T$ac_delim
32748LIBS!$LIBS$ac_delim
32749build_alias!$build_alias$ac_delim
32750host_alias!$host_alias$ac_delim
32751target_alias!$target_alias$ac_delim
32752LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32753subdirs!$subdirs$ac_delim
32754build!$build$ac_delim
32755build_cpu!$build_cpu$ac_delim
32756build_vendor!$build_vendor$ac_delim
32757build_os!$build_os$ac_delim
32758host!$host$ac_delim
32759host_cpu!$host_cpu$ac_delim
32760host_vendor!$host_vendor$ac_delim
32761host_os!$host_os$ac_delim
32762target!$target$ac_delim
32763target_cpu!$target_cpu$ac_delim
32764target_vendor!$target_vendor$ac_delim
32765target_os!$target_os$ac_delim
32766OS!$OS$ac_delim
32767LINKALL!$LINKALL$ac_delim
32768NOLINKALL!$NOLINKALL$ac_delim
32769LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32770LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32771ARCH!$ARCH$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032772CC!$CC$ac_delim
32773CFLAGS!$CFLAGS$ac_delim
32774LDFLAGS!$LDFLAGS$ac_delim
32775CPPFLAGS!$CPPFLAGS$ac_delim
32776ac_ct_CC!$ac_ct_CC$ac_delim
32777EXEEXT!$EXEEXT$ac_delim
32778OBJEXT!$OBJEXT$ac_delim
32779CPP!$CPP$ac_delim
32780GREP!$GREP$ac_delim
32781EGREP!$EGREP$ac_delim
Duncan Sands1eff7042007-12-10 17:43:13 +000032782ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032783LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32784BUILD_CC!$BUILD_CC$ac_delim
32785BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32786CVSBUILD!$CVSBUILD$ac_delim
32787ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32788DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000032789ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32790EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000032791DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032792JIT!$JIT$ac_delim
32793TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32794ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32795ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000032796ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032797TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000032798ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032799EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32800CXX!$CXX$ac_delim
32801CXXFLAGS!$CXXFLAGS$ac_delim
32802ac_ct_CXX!$ac_ct_CXX$ac_delim
32803LEX!$LEX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032804LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000032805LEXLIB!$LEXLIB$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032806FLEX!$FLEX$ac_delim
32807YACC!$YACC$ac_delim
32808YFLAGS!$YFLAGS$ac_delim
32809BISON!$BISON$ac_delim
32810NM!$NM$ac_delim
32811ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032812_ACEOF
32813
32814 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32815 break
32816 elif $ac_last_try; then
32817 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32818echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32819 { (exit 1); exit 1; }; }
32820 else
32821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000032822 fi
Reid Spencera773bd52006-08-04 18:18:08 +000032823done
32824
32825ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32826if test -n "$ac_eof"; then
32827 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32828 ac_eof=`expr $ac_eof + 1`
32829fi
32830
32831cat >>$CONFIG_STATUS <<_ACEOF
32832cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32833/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32834_ACEOF
32835sed '
32836s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32837s/^/s,@/; s/!/@,|#_!!_#|/
32838:n
32839t n
32840s/'"$ac_delim"'$/,g/; t
32841s/$/\\/; p
32842N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32843' >>$CONFIG_STATUS <conf$$subs.sed
32844rm -f conf$$subs.sed
32845cat >>$CONFIG_STATUS <<_ACEOF
32846CEOF$ac_eof
32847_ACEOF
32848
32849
32850ac_delim='%!_!# '
32851for ac_last_try in false false false false false :; do
32852 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000032853LN_S!$LN_S$ac_delim
32854CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000032855CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000032856DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032857FIND!$FIND$ac_delim
32858MKDIR!$MKDIR$ac_delim
32859MV!$MV$ac_delim
32860RANLIB!$RANLIB$ac_delim
32861RM!$RM$ac_delim
32862SED!$SED$ac_delim
32863TAR!$TAR$ac_delim
32864BINPWD!$BINPWD$ac_delim
32865GRAPHVIZ!$GRAPHVIZ$ac_delim
32866DOT!$DOT$ac_delim
32867GV!$GV$ac_delim
32868DOTTY!$DOTTY$ac_delim
32869PERL!$PERL$ac_delim
32870HAVE_PERL!$HAVE_PERL$ac_delim
32871INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32872INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32873INSTALL_DATA!$INSTALL_DATA$ac_delim
32874BZIP2!$BZIP2$ac_delim
32875DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032876GROFF!$GROFF$ac_delim
32877GZIP!$GZIP$ac_delim
32878POD2HTML!$POD2HTML$ac_delim
32879POD2MAN!$POD2MAN$ac_delim
32880RUNTEST!$RUNTEST$ac_delim
32881TCLSH!$TCLSH$ac_delim
32882ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000032883OCAMLC!$OCAMLC$ac_delim
32884OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000032885OCAMLDEP!$OCAMLDEP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032886INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32887INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32888CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32889CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32890LIBADD_DL!$LIBADD_DL$ac_delim
32891ECHO!$ECHO$ac_delim
32892AR!$AR$ac_delim
32893STRIP!$STRIP$ac_delim
32894CXXCPP!$CXXCPP$ac_delim
32895F77!$F77$ac_delim
32896FFLAGS!$FFLAGS$ac_delim
32897ac_ct_F77!$ac_ct_F77$ac_delim
32898LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032899LLVMGCC!$LLVMGCC$ac_delim
32900LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000032901USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000032902HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000032903HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032904ALLOCA!$ALLOCA$ac_delim
32905MMAP_FILE!$MMAP_FILE$ac_delim
32906LLVMCC1!$LLVMCC1$ac_delim
32907LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32908LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000032909LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032910LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32911LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000032912LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032913SHLIBEXT!$SHLIBEXT$ac_delim
32914LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32915LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32916LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32917LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32918LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32919LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32920LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32921LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32922LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32923LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000032924BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32925ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000032926OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000032927LIBOBJS!$LIBOBJS$ac_delim
32928LTLIBOBJS!$LTLIBOBJS$ac_delim
32929_ACEOF
32930
Gordon Henriksenf0915682007-10-02 16:42:22 +000032931 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Reid Spencera773bd52006-08-04 18:18:08 +000032932 break
32933 elif $ac_last_try; then
32934 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32935echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32936 { (exit 1); exit 1; }; }
32937 else
32938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32939 fi
32940done
32941
32942ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32943if test -n "$ac_eof"; then
32944 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32945 ac_eof=`expr $ac_eof + 1`
32946fi
32947
32948cat >>$CONFIG_STATUS <<_ACEOF
32949cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32950/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32951_ACEOF
32952sed '
32953s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32954s/^/s,@/; s/!/@,|#_!!_#|/
32955:n
32956t n
32957s/'"$ac_delim"'$/,g/; t
32958s/$/\\/; p
32959N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32960' >>$CONFIG_STATUS <conf$$subs.sed
32961rm -f conf$$subs.sed
32962cat >>$CONFIG_STATUS <<_ACEOF
32963:end
32964s/|#_!!_#|//g
32965CEOF$ac_eof
32966_ACEOF
32967
32968
32969# VPATH may cause trouble with some makes, so we remove $(srcdir),
32970# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32971# trailing colons and then remove the whole line if VPATH becomes empty
32972# (actually we leave an empty line to preserve line numbers).
32973if test "x$srcdir" = x.; then
32974 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32975s/:*\$(srcdir):*/:/
32976s/:*\${srcdir}:*/:/
32977s/:*@srcdir@:*/:/
32978s/^\([^=]*=[ ]*\):*/\1/
32979s/:*$//
32980s/^[^=]*=[ ]*$//
32981}'
32982fi
32983
32984cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032985fi # test -n "$CONFIG_FILES"
32986
Reid Spencera773bd52006-08-04 18:18:08 +000032987
32988for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32989do
32990 case $ac_tag in
32991 :[FHLC]) ac_mode=$ac_tag; continue;;
32992 esac
32993 case $ac_mode$ac_tag in
32994 :[FHL]*:*);;
32995 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32996echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32997 { (exit 1); exit 1; }; };;
32998 :[FH]-) ac_tag=-:-;;
32999 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33000 esac
33001 ac_save_IFS=$IFS
33002 IFS=:
33003 set x $ac_tag
33004 IFS=$ac_save_IFS
33005 shift
33006 ac_file=$1
33007 shift
33008
33009 case $ac_mode in
33010 :L) ac_source=$1;;
33011 :[FH])
33012 ac_file_inputs=
33013 for ac_f
33014 do
33015 case $ac_f in
33016 -) ac_f="$tmp/stdin";;
33017 *) # Look for the file first in the build tree, then in the source tree
33018 # (if the path is not absolute). The absolute path cannot be DOS-style,
33019 # because $ac_f cannot contain `:'.
33020 test -f "$ac_f" ||
33021 case $ac_f in
33022 [\\/$]*) false;;
33023 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33024 esac ||
33025 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33026echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33027 { (exit 1); exit 1; }; };;
33028 esac
33029 ac_file_inputs="$ac_file_inputs $ac_f"
33030 done
33031
33032 # Let's still pretend it is `configure' which instantiates (i.e., don't
33033 # use $as_me), people would be surprised to read:
33034 # /* config.h. Generated by config.status. */
33035 configure_input="Generated from "`IFS=:
33036 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33037 if test x"$ac_file" != x-; then
33038 configure_input="$ac_file. $configure_input"
33039 { echo "$as_me:$LINENO: creating $ac_file" >&5
33040echo "$as_me: creating $ac_file" >&6;}
33041 fi
33042
33043 case $ac_tag in
33044 *:-:* | *:-) cat >"$tmp/stdin";;
33045 esac
33046 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033047 esac
33048
Reid Spencera773bd52006-08-04 18:18:08 +000033049 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000033050$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033051 X"$ac_file" : 'X\(//\)[^/]' \| \
33052 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033053 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000033054echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000033055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33056 s//\1/
33057 q
33058 }
33059 /^X\(\/\/\)[^/].*/{
33060 s//\1/
33061 q
33062 }
33063 /^X\(\/\/\)$/{
33064 s//\1/
33065 q
33066 }
33067 /^X\(\/\).*/{
33068 s//\1/
33069 q
33070 }
33071 s/.*/./; q'`
33072 { as_dir="$ac_dir"
33073 case $as_dir in #(
33074 -*) as_dir=./$as_dir;;
33075 esac
33076 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000033077 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033078 while :; do
33079 case $as_dir in #(
33080 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33081 *) as_qdir=$as_dir;;
33082 esac
33083 as_dirs="'$as_qdir' $as_dirs"
33084 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033085$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033086 X"$as_dir" : 'X\(//\)[^/]' \| \
33087 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033089echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33091 s//\1/
33092 q
33093 }
33094 /^X\(\/\/\)[^/].*/{
33095 s//\1/
33096 q
33097 }
33098 /^X\(\/\/\)$/{
33099 s//\1/
33100 q
33101 }
33102 /^X\(\/\).*/{
33103 s//\1/
33104 q
33105 }
33106 s/.*/./; q'`
33107 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000033108 done
Reid Spencera773bd52006-08-04 18:18:08 +000033109 test -z "$as_dirs" || eval "mkdir $as_dirs"
33110 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33111echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000033112 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000033113 ac_builddir=.
33114
Reid Spencera773bd52006-08-04 18:18:08 +000033115case "$ac_dir" in
33116.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33117*)
John Criswell7a73b802003-06-30 21:59:07 +000033118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033119 # A ".." for each directory in $ac_dir_suffix.
33120 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33121 case $ac_top_builddir_sub in
33122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33124 esac ;;
33125esac
33126ac_abs_top_builddir=$ac_pwd
33127ac_abs_builddir=$ac_pwd$ac_dir_suffix
33128# for backward compatibility:
33129ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000033130
33131case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033132 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000033133 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033134 ac_top_srcdir=$ac_top_builddir_sub
33135 ac_abs_top_srcdir=$ac_pwd ;;
33136 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000033137 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033138 ac_top_srcdir=$srcdir
33139 ac_abs_top_srcdir=$srcdir ;;
33140 *) # Relative name.
33141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33142 ac_top_srcdir=$ac_top_build_prefix$srcdir
33143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000033144esac
Reid Spencera773bd52006-08-04 18:18:08 +000033145ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000033146
John Criswell7a73b802003-06-30 21:59:07 +000033147
Reid Spencera773bd52006-08-04 18:18:08 +000033148 case $ac_mode in
33149 :F)
33150 #
33151 # CONFIG_FILE
33152 #
John Criswell7a73b802003-06-30 21:59:07 +000033153
33154 case $INSTALL in
33155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033156 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000033157 esac
John Criswell7a73b802003-06-30 21:59:07 +000033158_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033159
33160cat >>$CONFIG_STATUS <<\_ACEOF
33161# If the template does not know about datarootdir, expand it.
33162# FIXME: This hack should be removed a few years after 2.60.
33163ac_datarootdir_hack=; ac_datarootdir_seen=
33164
33165case `sed -n '/datarootdir/ {
33166 p
33167 q
33168}
33169/@datadir@/p
33170/@docdir@/p
33171/@infodir@/p
33172/@localedir@/p
33173/@mandir@/p
33174' $ac_file_inputs` in
33175*datarootdir*) ac_datarootdir_seen=yes;;
33176*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33177 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33178echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33179_ACEOF
33180cat >>$CONFIG_STATUS <<_ACEOF
33181 ac_datarootdir_hack='
33182 s&@datadir@&$datadir&g
33183 s&@docdir@&$docdir&g
33184 s&@infodir@&$infodir&g
33185 s&@localedir@&$localedir&g
33186 s&@mandir@&$mandir&g
33187 s&\\\${datarootdir}&$datarootdir&g' ;;
33188esac
33189_ACEOF
33190
33191# Neutralize VPATH when `$srcdir' = `.'.
33192# Shell code in configure.ac might set extrasub.
33193# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000033194cat >>$CONFIG_STATUS <<_ACEOF
33195 sed "$ac_vpsub
33196$extrasub
33197_ACEOF
33198cat >>$CONFIG_STATUS <<\_ACEOF
33199:t
33200/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000033201s&@configure_input@&$configure_input&;t t
33202s&@top_builddir@&$ac_top_builddir_sub&;t t
33203s&@srcdir@&$ac_srcdir&;t t
33204s&@abs_srcdir@&$ac_abs_srcdir&;t t
33205s&@top_srcdir@&$ac_top_srcdir&;t t
33206s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33207s&@builddir@&$ac_builddir&;t t
33208s&@abs_builddir@&$ac_abs_builddir&;t t
33209s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33210s&@INSTALL@&$ac_INSTALL&;t t
33211$ac_datarootdir_hack
33212" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000033213
Reid Spencera773bd52006-08-04 18:18:08 +000033214test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33215 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33217 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33218which seems to be undefined. Please make sure it is defined." >&5
33219echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33220which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000033221
Reid Spencera773bd52006-08-04 18:18:08 +000033222 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000033223 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000033224 -) cat "$tmp/out"; rm -f "$tmp/out";;
33225 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000033226 esac
Reid Spencera773bd52006-08-04 18:18:08 +000033227 ;;
33228 :H)
33229 #
33230 # CONFIG_HEADER
33231 #
John Criswell7a73b802003-06-30 21:59:07 +000033232_ACEOF
33233
Reid Spencera773bd52006-08-04 18:18:08 +000033234# Transform confdefs.h into a sed script `conftest.defines', that
33235# substitutes the proper values into config.h.in to produce config.h.
33236rm -f conftest.defines conftest.tail
33237# First, append a space to every undef/define line, to ease matching.
33238echo 's/$/ /' >conftest.defines
33239# Then, protect against being on the right side of a sed subst, or in
33240# an unquoted here document, in config.status. If some macros were
33241# called several times there might be several #defines for the same
33242# symbol, which is useless. But do not sort them, since the last
33243# AC_DEFINE must be honored.
33244ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33245# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33246# NAME is the cpp macro being defined, VALUE is the value it is being given.
33247# PARAMS is the parameter list in the macro definition--in most cases, it's
33248# just an empty string.
33249ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33250ac_dB='\\)[ (].*,\\1define\\2'
33251ac_dC=' '
33252ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000033253
Reid Spencera773bd52006-08-04 18:18:08 +000033254uniq confdefs.h |
33255 sed -n '
33256 t rset
33257 :rset
33258 s/^[ ]*#[ ]*define[ ][ ]*//
33259 t ok
33260 d
33261 :ok
33262 s/[\\&,]/\\&/g
33263 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33264 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33265 ' >>conftest.defines
33266
33267# Remove the space that was appended to ease matching.
33268# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000033269# example, in the case of _POSIX_SOURCE, which is predefined and required
33270# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000033271# (The regexp can be short, since the line contains either #define or #undef.)
33272echo 's/ $//
33273s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000033274
Reid Spencera773bd52006-08-04 18:18:08 +000033275# Break up conftest.defines:
33276ac_max_sed_lines=50
33277
33278# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33279# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33280# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33281# et cetera.
33282ac_in='$ac_file_inputs'
33283ac_out='"$tmp/out1"'
33284ac_nxt='"$tmp/out2"'
33285
33286while :
John Criswell7a73b802003-06-30 21:59:07 +000033287do
Reid Spencera773bd52006-08-04 18:18:08 +000033288 # Write a here document:
33289 cat >>$CONFIG_STATUS <<_ACEOF
33290 # First, check the format of the line:
33291 cat >"\$tmp/defines.sed" <<\\CEOF
33292/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33293/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33294b
33295:def
33296_ACEOF
33297 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033298 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033299 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33300 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33301 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33302 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000033303 rm -f conftest.defines
33304 mv conftest.tail conftest.defines
33305done
Reid Spencera773bd52006-08-04 18:18:08 +000033306rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000033307
Reid Spencera773bd52006-08-04 18:18:08 +000033308echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033309cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033310 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000033311 echo "/* $configure_input */" >"$tmp/config.h"
33312 cat "$ac_result" >>"$tmp/config.h"
33313 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33315echo "$as_me: $ac_file is unchanged" >&6;}
33316 else
John Criswell7a73b802003-06-30 21:59:07 +000033317 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000033318 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000033319 fi
33320 else
Reid Spencera773bd52006-08-04 18:18:08 +000033321 echo "/* $configure_input */"
33322 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000033323 fi
Reid Spencera773bd52006-08-04 18:18:08 +000033324 rm -f "$tmp/out12"
33325 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033326
Reid Spencera773bd52006-08-04 18:18:08 +000033327 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33328echo "$as_me: executing $ac_file commands" >&6;}
33329 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033330 esac
John Criswell7a73b802003-06-30 21:59:07 +000033331
Reid Spencera773bd52006-08-04 18:18:08 +000033332
33333 case $ac_file$ac_mode in
33334 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33335 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33336 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33337 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33338 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33339 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33340 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33341 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000033342 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33343 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033344 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33345 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33346 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33347 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33348 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33349 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33350 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33351 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33352 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33353 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000033354 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33355 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33356 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33357 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033358
33359 esac
33360done # for ac_tag
33361
John Criswell7a73b802003-06-30 21:59:07 +000033362
33363{ (exit 0); exit 0; }
33364_ACEOF
33365chmod +x $CONFIG_STATUS
33366ac_clean_files=$ac_clean_files_save
33367
33368
33369# configure is writing to config.log, and then calls config.status.
33370# config.status does its own redirection, appending to config.log.
33371# Unfortunately, on DOS this fails, as config.log is still kept open
33372# by configure, so config.status won't be able to write to it; its
33373# output is simply discarded. So we exec the FD to /dev/null,
33374# effectively closing config.log, so it can be properly (re)opened and
33375# appended to by config.status. When coming back to configure, we
33376# need to make the FD available again.
33377if test "$no_create" != yes; then
33378 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033379 ac_config_status_args=
33380 test "$silent" = yes &&
33381 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000033382 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000033383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000033384 exec 5>>config.log
33385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33386 # would make configure fail if this is the last instruction.
33387 $ac_cs_success || { (exit 1); exit 1; }
33388fi
33389
John Criswell12399a12003-09-30 15:55:44 +000033390#
33391# CONFIG_SUBDIRS section.
33392#
33393if test "$no_recursion" != yes; then
33394
33395 # Remove --cache-file and --srcdir arguments so they do not pile up.
33396 ac_sub_configure_args=
33397 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000033398 eval "set x $ac_configure_args"
33399 shift
33400 for ac_arg
33401 do
John Criswell12399a12003-09-30 15:55:44 +000033402 if test -n "$ac_prev"; then
33403 ac_prev=
33404 continue
33405 fi
33406 case $ac_arg in
33407 -cache-file | --cache-file | --cache-fil | --cache-fi \
33408 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33409 ac_prev=cache_file ;;
33410 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33411 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33412 | --c=*)
33413 ;;
33414 --config-cache | -C)
33415 ;;
33416 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33417 ac_prev=srcdir ;;
33418 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33419 ;;
33420 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33421 ac_prev=prefix ;;
33422 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33423 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033424 *)
33425 case $ac_arg in
33426 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33427 esac
33428 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000033429 esac
33430 done
33431
33432 # Always prepend --prefix to ensure using the same prefix
33433 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000033434 ac_arg="--prefix=$prefix"
33435 case $ac_arg in
33436 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33437 esac
Scott Michel96dcd2b2007-12-05 21:24:02 +000033438 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33439
33440 # Pass --silent
33441 if test "$silent" = yes; then
33442 ac_sub_configure_args="--silent $ac_sub_configure_args"
33443 fi
John Criswell12399a12003-09-30 15:55:44 +000033444
33445 ac_popdir=`pwd`
33446 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33447
33448 # Do not complain, so a configure script can configure whichever
33449 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000033450 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000033451
Reid Spencera773bd52006-08-04 18:18:08 +000033452 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33453 echo "$as_me:$LINENO: $ac_msg" >&5
33454 echo "$ac_msg" >&6
33455 { as_dir="$ac_dir"
33456 case $as_dir in #(
33457 -*) as_dir=./$as_dir;;
33458 esac
33459 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000033460 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033461 while :; do
33462 case $as_dir in #(
33463 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33464 *) as_qdir=$as_dir;;
33465 esac
33466 as_dirs="'$as_qdir' $as_dirs"
33467 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000033468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033469 X"$as_dir" : 'X\(//\)[^/]' \| \
33470 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000033472echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33474 s//\1/
33475 q
33476 }
33477 /^X\(\/\/\)[^/].*/{
33478 s//\1/
33479 q
33480 }
33481 /^X\(\/\/\)$/{
33482 s//\1/
33483 q
33484 }
33485 /^X\(\/\).*/{
33486 s//\1/
33487 q
33488 }
33489 s/.*/./; q'`
33490 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000033491 done
Reid Spencera773bd52006-08-04 18:18:08 +000033492 test -z "$as_dirs" || eval "mkdir $as_dirs"
33493 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33494echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000033495 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000033496 ac_builddir=.
33497
Reid Spencera773bd52006-08-04 18:18:08 +000033498case "$ac_dir" in
33499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33500*)
John Criswell12399a12003-09-30 15:55:44 +000033501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033502 # A ".." for each directory in $ac_dir_suffix.
33503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33504 case $ac_top_builddir_sub in
33505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33507 esac ;;
33508esac
33509ac_abs_top_builddir=$ac_pwd
33510ac_abs_builddir=$ac_pwd$ac_dir_suffix
33511# for backward compatibility:
33512ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000033513
33514case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033515 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000033516 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033517 ac_top_srcdir=$ac_top_builddir_sub
33518 ac_abs_top_srcdir=$ac_pwd ;;
33519 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000033520 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033521 ac_top_srcdir=$srcdir
33522 ac_abs_top_srcdir=$srcdir ;;
33523 *) # Relative name.
33524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33525 ac_top_srcdir=$ac_top_build_prefix$srcdir
33526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000033527esac
Reid Spencera773bd52006-08-04 18:18:08 +000033528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000033529
33530
Reid Spencera773bd52006-08-04 18:18:08 +000033531 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000033532
33533 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000033534 if test -f "$ac_srcdir/configure.gnu"; then
33535 ac_sub_configure=$ac_srcdir/configure.gnu
33536 elif test -f "$ac_srcdir/configure"; then
33537 ac_sub_configure=$ac_srcdir/configure
33538 elif test -f "$ac_srcdir/configure.in"; then
33539 # This should be Cygnus configure.
33540 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000033541 else
33542 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33543echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33544 ac_sub_configure=
33545 fi
33546
33547 # The recursion is here.
33548 if test -n "$ac_sub_configure"; then
33549 # Make the cache file name correct relative to the subdirectory.
33550 case $cache_file in
33551 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033552 *) # Relative name.
33553 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000033554 esac
33555
Reid Spencera773bd52006-08-04 18:18:08 +000033556 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33557echo "$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 +000033558 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000033559 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33560 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000033561 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000033562echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33563 { (exit 1); exit 1; }; }
33564 fi
33565
Reid Spencera773bd52006-08-04 18:18:08 +000033566 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000033567 done
33568fi
33569