blob: 517fe93ce23b1860d98c052ddcc4dae211c8ab4f [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003# Generated by GNU Autoconf 2.61 for llvm 2.5svn.
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#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Nick Lewycky2ab1d862009-01-20 00:52:24 +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
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29esac
30
John Criswell0c38eaf2003-09-10 15:17:25 +000031fi
Nick Lewycky2ab1d862009-01-20 00:52:24 +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
Nick Lewycky2ab1d862009-01-20 00:52:24 +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
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254esac
255
Reid Spencera773bd52006-08-04 18:18:08 +0000256fi
Nick Lewycky2ab1d862009-01-20 00:52:24 +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
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275esac
276
Reid Spencera773bd52006-08-04 18:18:08 +0000277fi
Nick Lewycky2ab1d862009-01-20 00:52:24 +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
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000525if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +0000527else
Nick Lewycky2ab1d862009-01-20 00:52:24 +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
Nick Lewycky2ab1d862009-01-20 00:52:24 +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 Lattnerd53b4d32008-10-07 04:35:08 +0000733PACKAGE_VERSION='2.5svn'
734PACKAGE_STRING='llvm 2.5svn'
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>
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000741#ifdef HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <sys/types.h>
743#endif
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000744#ifdef HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000745# include <sys/stat.h>
746#endif
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000747#ifdef STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000748# include <stdlib.h>
749# include <stddef.h>
750#else
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000751# ifdef HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000752# include <stdlib.h>
753# endif
754#endif
Nick Lewycky2ab1d862009-01-20 00:52:24 +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
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000761#ifdef HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000762# include <strings.h>
763#endif
Nick Lewycky2ab1d862009-01-20 00:52:24 +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
Nick Lewycky2ab1d862009-01-20 00:52:24 +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
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000770#ifdef HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000771# include <unistd.h>
772#endif"
773
Reid Spencera773bd52006-08-04 18:18:08 +0000774ac_subst_vars='SHELL
775PATH_SEPARATOR
776PACKAGE_NAME
777PACKAGE_TARNAME
778PACKAGE_VERSION
779PACKAGE_STRING
780PACKAGE_BUGREPORT
781exec_prefix
782prefix
783program_transform_name
784bindir
785sbindir
786libexecdir
787datarootdir
788datadir
789sysconfdir
790sharedstatedir
791localstatedir
792includedir
793oldincludedir
794docdir
795infodir
796htmldir
797dvidir
798pdfdir
799psdir
800libdir
801localedir
802mandir
803DEFS
804ECHO_C
805ECHO_N
806ECHO_T
807LIBS
808build_alias
809host_alias
810target_alias
811LLVM_COPYRIGHT
812subdirs
813build
814build_cpu
815build_vendor
816build_os
817host
818host_cpu
819host_vendor
820host_os
821target
822target_cpu
823target_vendor
824target_os
825OS
826LINKALL
827NOLINKALL
828LLVM_ON_UNIX
829LLVM_ON_WIN32
830ARCH
Duncan Sands67f1c492007-12-12 23:03:45 +0000831ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839CPP
840GREP
841EGREP
842LLVM_CROSS_COMPILING
843BUILD_CC
844BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000845BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000846CVSBUILD
847ENABLE_OPTIMIZED
848DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000849ENABLE_EXPENSIVE_CHECKS
850EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000851DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000852JIT
853TARGET_HAS_JIT
854ENABLE_DOXYGEN
855ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000856ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000857TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000858ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000859EXTRA_OPTIONS
860CXX
861CXXFLAGS
862ac_ct_CXX
863LEX
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000864LEX_OUTPUT_ROOT
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000865LEXLIB
Reid Spencera773bd52006-08-04 18:18:08 +0000866FLEX
867YACC
868YFLAGS
869BISON
870NM
871ifGNUmake
872LN_S
873CMP
874CP
875DATE
876FIND
877MKDIR
878MV
879RANLIB
880RM
881SED
882TAR
883BINPWD
884GRAPHVIZ
885DOT
886GV
887DOTTY
888PERL
889HAVE_PERL
890INSTALL_PROGRAM
891INSTALL_SCRIPT
892INSTALL_DATA
893BZIP2
894DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000895GROFF
896GZIP
897POD2HTML
898POD2MAN
899RUNTEST
900TCLSH
901ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000902OCAMLC
903OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000904OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000905OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000906GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000907INSTALL_LTDL_TRUE
908INSTALL_LTDL_FALSE
909CONVENIENCE_LTDL_TRUE
910CONVENIENCE_LTDL_FALSE
911LIBADD_DL
912ECHO
913AR
914STRIP
915CXXCPP
916F77
917FFLAGS
918ac_ct_F77
919LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000920LLVMGCC
921LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000922USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000923HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000924HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000925ALLOCA
926MMAP_FILE
927LLVMCC1
928LLVMCC1PLUS
929LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000930LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000931LLVMGCC_VERSION
932LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000933LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000934SHLIBEXT
935LLVM_PREFIX
936LLVM_BINDIR
937LLVM_LIBDIR
938LLVM_DATADIR
939LLVM_DOCSDIR
940LLVM_ETCDIR
941LLVM_INCLUDEDIR
942LLVM_INFODIR
943LLVM_MANDIR
944LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000945BINDINGS_TO_BUILD
946ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000947OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000948ENABLE_VISIBILITY_INLINES_HIDDEN
Reid Spencera773bd52006-08-04 18:18:08 +0000949LIBOBJS
950LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000951ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000952 ac_precious_vars='build_alias
953host_alias
954target_alias
955CC
956CFLAGS
957LDFLAGS
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000958LIBS
Reid Spencera773bd52006-08-04 18:18:08 +0000959CPPFLAGS
960CPP
961CXX
962CXXFLAGS
963CCC
964YACC
965YFLAGS
966CXXCPP
967F77
968FFLAGS'
969ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000970projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000971projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000972projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000973projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000974projects/llvm-reopt
975projects/llvm-gcc
976projects/llvm-java
977projects/llvm-tv
978projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000979projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000980projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000981
982# Initialize some variables set by options.
983ac_init_help=
984ac_init_version=false
985# The variables have the same names as the options, with
986# dashes changed to underlines.
987cache_file=/dev/null
988exec_prefix=NONE
989no_create=
990no_recursion=
991prefix=NONE
992program_prefix=NONE
993program_suffix=NONE
994program_transform_name=s,x,x,
995silent=
996site=
997srcdir=
998verbose=
999x_includes=NONE
1000x_libraries=NONE
1001
1002# Installation directory options.
1003# These are left unexpanded so users can "make install exec_prefix=/foo"
1004# and all the variables that are supposed to be based on exec_prefix
1005# by default will actually change.
1006# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001007# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001008bindir='${exec_prefix}/bin'
1009sbindir='${exec_prefix}/sbin'
1010libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001011datarootdir='${prefix}/share'
1012datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001013sysconfdir='${prefix}/etc'
1014sharedstatedir='${prefix}/com'
1015localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001016includedir='${prefix}/include'
1017oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001018docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1019infodir='${datarootdir}/info'
1020htmldir='${docdir}'
1021dvidir='${docdir}'
1022pdfdir='${docdir}'
1023psdir='${docdir}'
1024libdir='${exec_prefix}/lib'
1025localedir='${datarootdir}/locale'
1026mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001027
1028ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001029ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001030for ac_option
1031do
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001034 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001035 ac_prev=
1036 continue
1037 fi
1038
Reid Spencera773bd52006-08-04 18:18:08 +00001039 case $ac_option in
1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 *) ac_optarg=yes ;;
1042 esac
John Criswell7a73b802003-06-30 21:59:07 +00001043
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1045
Reid Spencera773bd52006-08-04 18:18:08 +00001046 case $ac_dashdash$ac_option in
1047 --)
1048 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001049
1050 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051 ac_prev=bindir ;;
1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053 bindir=$ac_optarg ;;
1054
1055 -build | --build | --buil | --bui | --bu)
1056 ac_prev=build_alias ;;
1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058 build_alias=$ac_optarg ;;
1059
1060 -cache-file | --cache-file | --cache-fil | --cache-fi \
1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062 ac_prev=cache_file ;;
1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065 cache_file=$ac_optarg ;;
1066
1067 --config-cache | -C)
1068 cache_file=config.cache ;;
1069
Reid Spencera773bd52006-08-04 18:18:08 +00001070 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001071 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001072 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001073 datadir=$ac_optarg ;;
1074
Reid Spencera773bd52006-08-04 18:18:08 +00001075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076 | --dataroo | --dataro | --datar)
1077 ac_prev=datarootdir ;;
1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080 datarootdir=$ac_optarg ;;
1081
John Criswell7a73b802003-06-30 21:59:07 +00001082 -disable-* | --disable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001085 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001088 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001089 eval enable_$ac_feature=no ;;
1090
1091 -docdir | --docdir | --docdi | --doc | --do)
1092 ac_prev=docdir ;;
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1095
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 ac_prev=dvidir ;;
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001100
1101 -enable-* | --enable-*)
1102 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001104 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001105 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1106 { (exit 1); exit 1; }; }
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001107 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001108 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001109
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1113 ac_prev=exec_prefix ;;
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1117 exec_prefix=$ac_optarg ;;
1118
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1121 with_gas=yes ;;
1122
1123 -help | --help | --hel | --he | -h)
1124 ac_init_help=long ;;
1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126 ac_init_help=recursive ;;
1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128 ac_init_help=short ;;
1129
1130 -host | --host | --hos | --ho)
1131 ac_prev=host_alias ;;
1132 -host=* | --host=* | --hos=* | --ho=*)
1133 host_alias=$ac_optarg ;;
1134
Reid Spencera773bd52006-08-04 18:18:08 +00001135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136 ac_prev=htmldir ;;
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138 | --ht=*)
1139 htmldir=$ac_optarg ;;
1140
John Criswell7a73b802003-06-30 21:59:07 +00001141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1143 ac_prev=includedir ;;
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1146 includedir=$ac_optarg ;;
1147
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1149 ac_prev=infodir ;;
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151 infodir=$ac_optarg ;;
1152
1153 -libdir | --libdir | --libdi | --libd)
1154 ac_prev=libdir ;;
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156 libdir=$ac_optarg ;;
1157
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1160 ac_prev=libexecdir ;;
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1163 libexecdir=$ac_optarg ;;
1164
Reid Spencera773bd52006-08-04 18:18:08 +00001165 -localedir | --localedir | --localedi | --localed | --locale)
1166 ac_prev=localedir ;;
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168 localedir=$ac_optarg ;;
1169
John Criswell7a73b802003-06-30 21:59:07 +00001170 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001171 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001172 ac_prev=localstatedir ;;
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001175 localstatedir=$ac_optarg ;;
1176
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178 ac_prev=mandir ;;
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180 mandir=$ac_optarg ;;
1181
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1184 with_fp=no ;;
1185
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1188 no_create=yes ;;
1189
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192 no_recursion=yes ;;
1193
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1197 ac_prev=oldincludedir ;;
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201 oldincludedir=$ac_optarg ;;
1202
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204 ac_prev=prefix ;;
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206 prefix=$ac_optarg ;;
1207
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1210 ac_prev=program_prefix ;;
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213 program_prefix=$ac_optarg ;;
1214
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1217 ac_prev=program_suffix ;;
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220 program_suffix=$ac_optarg ;;
1221
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1229 ac_prev=program_transform_name ;;
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1237 program_transform_name=$ac_optarg ;;
1238
Reid Spencera773bd52006-08-04 18:18:08 +00001239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240 ac_prev=pdfdir ;;
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242 pdfdir=$ac_optarg ;;
1243
1244 -psdir | --psdir | --psdi | --psd | --ps)
1245 ac_prev=psdir ;;
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247 psdir=$ac_optarg ;;
1248
John Criswell7a73b802003-06-30 21:59:07 +00001249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1251 silent=yes ;;
1252
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254 ac_prev=sbindir ;;
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256 | --sbi=* | --sb=*)
1257 sbindir=$ac_optarg ;;
1258
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1262 | --sha | --sh)
1263 ac_prev=sharedstatedir ;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267 | --sha=* | --sh=*)
1268 sharedstatedir=$ac_optarg ;;
1269
1270 -site | --site | --sit)
1271 ac_prev=site ;;
1272 -site=* | --site=* | --sit=*)
1273 site=$ac_optarg ;;
1274
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276 ac_prev=srcdir ;;
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir=$ac_optarg ;;
1279
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev=sysconfdir ;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir=$ac_optarg ;;
1286
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev=target_alias ;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias=$ac_optarg ;;
1291
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293 verbose=yes ;;
1294
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version=: ;;
1297
1298 -with-* | --with-*)
1299 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001301 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001304 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001305 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001306
1307 -without-* | --without-*)
1308 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001310 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001311 { echo "$as_me: error: invalid package name: $ac_package" >&2
1312 { (exit 1); exit 1; }; }
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001313 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001314 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001315
1316 --x)
1317 # Obsolete; use --with-x.
1318 with_x=yes ;;
1319
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1326
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1333
1334 -*) { echo "$as_me: error: unrecognized option: $ac_option
1335Try \`$0 --help' for more information." >&2
1336 { (exit 1); exit 1; }; }
1337 ;;
1338
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1343 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1344 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001345 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001346 export $ac_envvar ;;
1347
1348 *)
1349 # FIXME: should be removed in autoconf 3.0.
1350 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 ;;
1355
1356 esac
1357done
1358
1359if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 { echo "$as_me: error: missing argument to $ac_option" >&2
1362 { (exit 1); exit 1; }; }
1363fi
1364
Reid Spencera773bd52006-08-04 18:18:08 +00001365# Be sure to have absolute directory names.
1366for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001370do
Reid Spencera773bd52006-08-04 18:18:08 +00001371 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001372 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001373 [\\/$]* | ?:[\\/]* ) continue;;
1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001375 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001376 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1377 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001378done
1379
1380# There might be people who depend on the old broken behavior: `$host'
1381# used to hold the argument of --host etc.
1382# FIXME: To remove some day.
1383build=$build_alias
1384host=$host_alias
1385target=$target_alias
1386
1387# FIXME: To remove some day.
1388if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1394 cross_compiling=yes
1395 fi
1396fi
1397
1398ac_tool_prefix=
1399test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400
1401test "$silent" = yes && exec 6>/dev/null
1402
1403
Reid Spencera773bd52006-08-04 18:18:08 +00001404ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405ac_ls_di=`ls -di .` &&
1406ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 { echo "$as_me: error: Working directory cannot be determined" >&2
1408 { (exit 1); exit 1; }; }
1409test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 { echo "$as_me: error: pwd does not report name of working directory" >&2
1411 { (exit 1); exit 1; }; }
1412
1413
John Criswell7a73b802003-06-30 21:59:07 +00001414# Find the source files, if location was not specified.
1415if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001419$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001420 X"$0" : 'X\(//\)[^/]' \| \
1421 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001423echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\).*/{
1437 s//\1/
1438 q
1439 }
1440 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001441 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001442 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001443 srcdir=..
1444 fi
1445else
1446 ac_srcdir_defaulted=no
1447fi
Reid Spencera773bd52006-08-04 18:18:08 +00001448if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001451 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001452fi
Reid Spencera773bd52006-08-04 18:18:08 +00001453ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001456 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001457 pwd)`
1458# When building in place, set srcdir=.
1459if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1461fi
1462# Remove unnecessary trailing slashes from srcdir.
1463# Double slashes in file names in object file debugging info
1464# mess up M-x gdb in Emacs.
1465case $srcdir in
1466*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467esac
1468for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473done
John Criswell7a73b802003-06-30 21:59:07 +00001474
1475#
1476# Report the --help message.
1477#
1478if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001482\`configure' configures llvm 2.5svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001483
1484Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487VAR=VALUE. See below for descriptions of some of the useful variables.
1488
1489Defaults for the options are specified in brackets.
1490
1491Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501
John Criswell7a73b802003-06-30 21:59:07 +00001502Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001504 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001506 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001507
1508By default, \`make install' will install all the files in
1509\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511for instance \`--prefix=\$HOME'.
1512
1513For better control, use the options below.
1514
1515Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001535_ACEOF
1536
1537 cat <<\_ACEOF
1538
1539System types:
1540 --build=BUILD configure for building on BUILD [guessed]
1541 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1542 --target=TARGET configure for building compilers for TARGET [HOST]
1543_ACEOF
1544fi
1545
1546if test -n "$ac_init_help"; then
1547 case $ac_init_help in
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001548 short | recursive ) echo "Configuration of llvm 2.5svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001549 esac
1550 cat <<\_ACEOF
1551
1552Optional Features:
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001555 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001556 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001557 --enable-expensive-checks
1558
Reid Spencer8b2e1412006-11-17 03:32:33 +00001559 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001560 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001561 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001562 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001563 --enable-pic Build LLVM with Position Independent Code (default
1564 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001565 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001566 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001567 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1568 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001569 --enable-bindings Build specific language bindings:
1570 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001571 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001572 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001573 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001574 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001575 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001576 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001577 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001578 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001579 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001580
1581Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001584 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1585 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001586 --with-llvmgcc Specify location of llvm-gcc driver (default
1587 searches PATH)
1588 --with-llvmgxx Specify location of llvm-g++ driver (default
1589 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001590 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001591 --with-ocaml-libdir Specify install location for ocaml bindings (default
1592 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001593 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001594 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595 --with-pic try to use only PIC/non-PIC objects [default=use
1596 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001597 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001598 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001599
1600Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001601 CC C compiler command
1602 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1604 nonstandard directory <lib dir>
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001605 LIBS libraries to pass to the linker, e.g. -l<library>
Reid Spencera773bd52006-08-04 18:18:08 +00001606 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1607 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001608 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001609 CXX C++ compiler command
1610 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001611 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1612 the first program found out of: `bison -y', `byacc', `yacc'.
1613 YFLAGS The list of arguments that will be passed by default to $YACC.
1614 This script will default YFLAGS to the empty string to avoid a
1615 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001616 CXXCPP C++ preprocessor
1617 F77 Fortran 77 compiler command
1618 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001619
1620Use these variables to override the choices made by `configure' or to help
1621it to find libraries and programs with nonstandard names/locations.
1622
1623Report bugs to <llvmbugs@cs.uiuc.edu>.
1624_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001625ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001626fi
1627
1628if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001631 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001632 ac_builddir=.
1633
Reid Spencera773bd52006-08-04 18:18:08 +00001634case "$ac_dir" in
1635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636*)
John Criswell7a73b802003-06-30 21:59:07 +00001637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644esac
1645ac_abs_top_builddir=$ac_pwd
1646ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647# for backward compatibility:
1648ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001649
1650case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001651 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001652 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001656 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001663esac
Reid Spencera773bd52006-08-04 18:18:08 +00001664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001665
Reid Spencera773bd52006-08-04 18:18:08 +00001666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001674 else
1675 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001678 done
1679fi
1680
Reid Spencera773bd52006-08-04 18:18:08 +00001681test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001682if $ac_init_version; then
1683 cat <<\_ACEOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001684llvm configure 2.5svn
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001685generated by GNU Autoconf 2.61
John Criswell7a73b802003-06-30 21:59:07 +00001686
Reid Spencera773bd52006-08-04 18:18:08 +00001687Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16882002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001689This configure script is free software; the Free Software Foundation
1690gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001691
Tanya Lattnercf067672008-01-17 05:57:22 +00001692Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001693_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001694 exit
John Criswell7a73b802003-06-30 21:59:07 +00001695fi
Reid Spencera773bd52006-08-04 18:18:08 +00001696cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001697This file contains any messages produced by compilers while
1698running configure, to aid debugging if configure makes a mistake.
1699
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001700It was created by llvm $as_me 2.5svn, which was
Nick Lewycky2ab1d862009-01-20 00:52:24 +00001701generated by GNU Autoconf 2.61. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001702
1703 $ $0 $@
1704
1705_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001706exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001707{
1708cat <<_ASUNAME
1709## --------- ##
1710## Platform. ##
1711## --------- ##
1712
1713hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721
1722/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001725/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001726/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1729
1730_ASUNAME
1731
1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 echo "PATH: $as_dir"
1738done
Reid Spencera773bd52006-08-04 18:18:08 +00001739IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001740
1741} >&5
1742
1743cat >&5 <<_ACEOF
1744
1745
1746## ----------- ##
1747## Core tests. ##
1748## ----------- ##
1749
1750_ACEOF
1751
1752
1753# Keep a trace of the command line.
1754# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001755# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001756# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001757# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001758ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001759ac_configure_args0=
1760ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001761ac_must_keep_next=false
1762for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001763do
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 for ac_arg
1765 do
1766 case $ac_arg in
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1770 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001771 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 esac
1774 case $ac_pass in
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776 2)
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001779 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001780 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001781 case $ac_arg in
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 esac
1789 ;;
1790 -* ) ac_must_keep_next=true ;;
1791 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001792 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001793 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001794 ;;
1795 esac
1796 done
John Criswell7a73b802003-06-30 21:59:07 +00001797done
John Criswell0c38eaf2003-09-10 15:17:25 +00001798$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799$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 +00001800
1801# When interrupted or exit'd, cleanup temporary files, and complete
1802# config.log. We remove comments because anyway the quotes in there
1803# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001804# WARNING: Use '\'' to represent an apostrophe within the trap.
1805# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001806trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1808 {
1809 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001810
John Criswell7a73b802003-06-30 21:59:07 +00001811 cat <<\_ASBOX
1812## ---------------- ##
1813## Cache variables. ##
1814## ---------------- ##
1815_ASBOX
1816 echo
1817 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001818(
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in #(
1822 *${as_nl}*)
1823 case $ac_var in #(
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826 esac
1827 case $ac_var in #(
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1830 esac ;;
1831 esac
1832 done
John Criswell7a73b802003-06-30 21:59:07 +00001833 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001836 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001840 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001842 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001843 esac |
1844 sort
1845)
John Criswell7a73b802003-06-30 21:59:07 +00001846 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001847
1848 cat <<\_ASBOX
1849## ----------------- ##
1850## Output variables. ##
1851## ----------------- ##
1852_ASBOX
1853 echo
1854 for ac_var in $ac_subst_vars
1855 do
Reid Spencera773bd52006-08-04 18:18:08 +00001856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001861 done | sort
1862 echo
1863
1864 if test -n "$ac_subst_files"; then
1865 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001866## ------------------- ##
1867## File substitutions. ##
1868## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001869_ASBOX
1870 echo
1871 for ac_var in $ac_subst_files
1872 do
Reid Spencera773bd52006-08-04 18:18:08 +00001873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001878 done | sort
1879 echo
1880 fi
1881
John Criswell7a73b802003-06-30 21:59:07 +00001882 if test -s confdefs.h; then
1883 cat <<\_ASBOX
1884## ----------- ##
1885## confdefs.h. ##
1886## ----------- ##
1887_ASBOX
1888 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001889 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001890 echo
1891 fi
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1895 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001898 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001899' 0
John Criswell7a73b802003-06-30 21:59:07 +00001900for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902done
1903ac_signal=0
1904
1905# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001906rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001907
1908# Predefined preprocessor variables.
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_NAME "$PACKAGE_NAME"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_VERSION "$PACKAGE_VERSION"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_STRING "$PACKAGE_STRING"
1927_ACEOF
1928
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932_ACEOF
1933
1934
1935# Let the site file select an alternate cache file if it wants to.
1936# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001937if test -n "$CONFIG_SITE"; then
1938 set x "$CONFIG_SITE"
1939elif test "x$prefix" != xNONE; then
1940 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941else
1942 set x "$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001944fi
Reid Spencera773bd52006-08-04 18:18:08 +00001945shift
1946for ac_site_file
1947do
John Criswell7a73b802003-06-30 21:59:07 +00001948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1952 . "$ac_site_file"
1953 fi
1954done
1955
1956if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961echo "$as_me: loading cache $cache_file" >&6;}
1962 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001965 esac
1966 fi
1967else
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969echo "$as_me: creating cache $cache_file" >&6;}
1970 >$cache_file
1971fi
1972
1973# Check that the precious variables saved in the cache have kept the same
1974# value.
1975ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001976for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001981 case $ac_old_set,$ac_new_set in
1982 set,)
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1986 ,set)
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1990 ,);;
1991 *)
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001994echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001996echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001998echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001999 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002000 fi;;
2001 esac
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011 esac
2012 fi
2013done
2014if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2020fi
2021
Reid Spencera773bd52006-08-04 18:18:08 +00002022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
John Criswell7a73b802003-06-30 21:59:07 +00002046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
Tanya Lattnercf067672008-01-17 05:57:22 +00002054LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002055
2056
2057
2058
2059
2060
2061
John Criswell7a73b802003-06-30 21:59:07 +00002062ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002063for ac_dir in autoconf "$srcdir"/autoconf; do
2064 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install-sh -c"
2067 break
Reid Spencera773bd52006-08-04 18:18:08 +00002068 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/install.sh -c"
2071 break
Reid Spencera773bd52006-08-04 18:18:08 +00002072 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002073 ac_aux_dir=$ac_dir
2074 ac_install_sh="$ac_aux_dir/shtool install -c"
2075 break
2076 fi
2077done
2078if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002079 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2080echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002081 { (exit 1); exit 1; }; }
2082fi
Reid Spencera773bd52006-08-04 18:18:08 +00002083
2084# These three variables are undocumented and unsupported,
2085# and are intended to be withdrawn in a future Autoconf release.
2086# They can cause serious problems if a builder's source tree is in a directory
2087# whose full name contains unusual characters.
2088ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2089ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2090ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2091
John Criswell7a73b802003-06-30 21:59:07 +00002092
John Criswell392aaa32003-07-22 19:18:09 +00002093
Reid Spencer2706f8c2004-09-19 23:53:36 +00002094if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002095 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2096 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002097echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2098 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002099 fi
John Criswell93e1c722003-09-15 17:04:06 +00002100fi
2101
John Criswell33a911a2003-11-25 20:36:46 +00002102for i in `ls ${srcdir}/projects`
2103do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104 if test -d ${srcdir}/projects/${i} ; then
2105 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 CVS) ;;
2107 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002110 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002111 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002112 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002113 # llvm-test is the old name of the test-suite, kept here for backwards
2114 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002115 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002116 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002117 test-suite) subdirs="$subdirs projects/test-suite"
2118 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002119 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002120;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002121 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002122 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002123 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002124 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002125 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002126 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002127 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002128 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002129 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002130 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002131 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002132 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002133 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002134 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2135echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002136 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002137 esac
John Criswell33a911a2003-11-25 20:36:46 +00002138 fi
2139done
John Criswell559a6c12003-09-30 16:31:48 +00002140
John Criswell7a73b802003-06-30 21:59:07 +00002141
2142# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002143$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002146 { (exit 1); exit 1; }; }
2147
Reid Spencera773bd52006-08-04 18:18:08 +00002148{ echo "$as_me:$LINENO: checking build system type" >&5
2149echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002150if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
Reid Spencera773bd52006-08-04 18:18:08 +00002153 ac_build_alias=$build_alias
2154test "x$ac_build_alias" = x &&
2155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002160ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002163 { (exit 1); exit 1; }; }
2164
2165fi
Reid Spencera773bd52006-08-04 18:18:08 +00002166{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167echo "${ECHO_T}$ac_cv_build" >&6; }
2168case $ac_cv_build in
2169*-*-*) ;;
2170*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2173esac
John Criswell7a73b802003-06-30 21:59:07 +00002174build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002175ac_save_IFS=$IFS; IFS='-'
2176set x $ac_cv_build
2177shift
2178build_cpu=$1
2179build_vendor=$2
2180shift; shift
2181# Remember, the first character of IFS is used to create $*,
2182# except with old shells:
2183build_os=$*
2184IFS=$ac_save_IFS
2185case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002186
2187
Reid Spencera773bd52006-08-04 18:18:08 +00002188{ echo "$as_me:$LINENO: checking host system type" >&5
2189echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002190if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
Reid Spencera773bd52006-08-04 18:18:08 +00002193 if test "x$host_alias" = x; then
2194 ac_cv_host=$ac_cv_build
2195else
2196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002199 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002200fi
John Criswell7a73b802003-06-30 21:59:07 +00002201
2202fi
Reid Spencera773bd52006-08-04 18:18:08 +00002203{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204echo "${ECHO_T}$ac_cv_host" >&6; }
2205case $ac_cv_host in
2206*-*-*) ;;
2207*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2210esac
John Criswell7a73b802003-06-30 21:59:07 +00002211host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002212ac_save_IFS=$IFS; IFS='-'
2213set x $ac_cv_host
2214shift
2215host_cpu=$1
2216host_vendor=$2
2217shift; shift
2218# Remember, the first character of IFS is used to create $*,
2219# except with old shells:
2220host_os=$*
2221IFS=$ac_save_IFS
2222case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002223
2224
Reid Spencera773bd52006-08-04 18:18:08 +00002225{ echo "$as_me:$LINENO: checking target system type" >&5
2226echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002227if test "${ac_cv_target+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
Reid Spencera773bd52006-08-04 18:18:08 +00002230 if test "x$target_alias" = x; then
2231 ac_cv_target=$ac_cv_host
2232else
2233 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2234 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002236 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002237fi
John Criswell7a73b802003-06-30 21:59:07 +00002238
2239fi
Reid Spencera773bd52006-08-04 18:18:08 +00002240{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241echo "${ECHO_T}$ac_cv_target" >&6; }
2242case $ac_cv_target in
2243*-*-*) ;;
2244*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245echo "$as_me: error: invalid value of canonical target" >&2;}
2246 { (exit 1); exit 1; }; };;
2247esac
John Criswell7a73b802003-06-30 21:59:07 +00002248target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002249ac_save_IFS=$IFS; IFS='-'
2250set x $ac_cv_target
2251shift
2252target_cpu=$1
2253target_vendor=$2
2254shift; shift
2255# Remember, the first character of IFS is used to create $*,
2256# except with old shells:
2257target_os=$*
2258IFS=$ac_save_IFS
2259case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002260
2261
2262# The aliases save the names the user supplied, while $host etc.
2263# will get canonicalized.
2264test -n "$target_alias" &&
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2266 NONENONEs,x,x, &&
2267 program_prefix=${target_alias}-
2268
Reid Spencera773bd52006-08-04 18:18:08 +00002269{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2270echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002274 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002278 llvm_cv_os_type="AIX"
2279 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002280 *-*-irix*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="IRIX"
2284 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002285 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 llvm_cv_os_type="Cygwin"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002292 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 llvm_cv_os_type="Darwin"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 llvm_cv_os_type="FreeBSD"
2299 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002300 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002303 llvm_cv_os_type="OpenBSD"
2304 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002305 *-*-netbsd*)
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="NetBSD"
2309 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002310 *-*-dragonfly*)
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="DragonFly"
2314 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002315 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002318 llvm_cv_os_type="HP-UX"
2319 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002323 llvm_cv_os_type="Interix"
2324 llvm_cv_platform_type="Unix" ;;
2325 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328 llvm_cv_os_type="Linux"
2329 llvm_cv_platform_type="Unix" ;;
2330 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002331 llvm_cv_link_all_option="-Wl,-z,allextract"
2332 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002333 llvm_cv_os_type="SunOS"
2334 llvm_cv_platform_type="Unix" ;;
2335 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002336 llvm_cv_link_all_option="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338 llvm_cv_os_type="Win32"
2339 llvm_cv_platform_type="Win32" ;;
2340 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002341 llvm_cv_link_all_option="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343 llvm_cv_os_type="MingW"
2344 llvm_cv_platform_type="Win32" ;;
2345 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002346 llvm_cv_link_all_option=""
2347 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002348 llvm_cv_os_type="Unknown"
2349 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002350esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002351fi
Reid Spencera773bd52006-08-04 18:18:08 +00002352{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2353echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002354
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355if test "$llvm_cv_os_type" = "Unknown" ; then
2356 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2357echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002358 { (exit 1); exit 1; }; }
2359fi
2360
Reid Spencer7b3e8512004-12-24 06:29:05 +00002361OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002362
2363
Reid Spencera773bd52006-08-04 18:18:08 +00002364LINKALL=$llvm_cv_link_all_option
2365
2366NOLINKALL=$llvm_cv_no_link_all_option
2367
2368
Reid Spencer7b3e8512004-12-24 06:29:05 +00002369case $llvm_cv_platform_type in
2370 Unix)
2371
2372cat >>confdefs.h <<\_ACEOF
2373#define LLVM_ON_UNIX 1
2374_ACEOF
2375
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002376 LLVM_ON_UNIX=1
2377
2378 LLVM_ON_WIN32=0
2379
Reid Spencer7b3e8512004-12-24 06:29:05 +00002380 ;;
2381 Win32)
2382
2383cat >>confdefs.h <<\_ACEOF
2384#define LLVM_ON_WIN32 1
2385_ACEOF
2386
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002387 LLVM_ON_UNIX=0
2388
2389 LLVM_ON_WIN32=1
2390
Reid Spencer7b3e8512004-12-24 06:29:05 +00002391 ;;
2392esac
2393
Reid Spencera773bd52006-08-04 18:18:08 +00002394{ echo "$as_me:$LINENO: checking target architecture" >&5
2395echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002400 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002402 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002404 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002405 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002406 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002407 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002408 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002409 xcore-*) llvm_cv_target_arch="XCore" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002410 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002411esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412fi
Reid Spencera773bd52006-08-04 18:18:08 +00002413{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2414echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002415
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416if test "$llvm_cv_target_arch" = "Unknown" ; then
2417 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2418echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2419fi
John Criswell76595452003-07-01 22:07:39 +00002420
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002422
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424ac_ext=c
2425ac_cpp='$CPP $CPPFLAGS'
2426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002429if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2431set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439else
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00002446 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 +00002447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451done
2452done
Reid Spencera773bd52006-08-04 18:18:08 +00002453IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454
2455fi
2456fi
2457CC=$ac_cv_prog_CC
2458if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002459 { echo "$as_me:$LINENO: result: $CC" >&5
2460echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461else
Reid Spencera773bd52006-08-04 18:18:08 +00002462 { echo "$as_me:$LINENO: result: no" >&5
2463echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464fi
2465
Reid Spencera773bd52006-08-04 18:18:08 +00002466
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467fi
2468if test -z "$ac_cv_prog_CC"; then
2469 ac_ct_CC=$CC
2470 # Extract the first word of "gcc", so it can be a program name with args.
2471set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00002486 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 +00002487 ac_cv_prog_ac_ct_CC="gcc"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491done
2492done
Reid Spencera773bd52006-08-04 18:18:08 +00002493IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494
2495fi
2496fi
2497ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501else
Reid Spencera773bd52006-08-04 18:18:08 +00002502 { echo "$as_me:$LINENO: result: no" >&5
2503echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504fi
2505
Reid Spencera773bd52006-08-04 18:18:08 +00002506 if test "x$ac_ct_CC" = x; then
2507 CC=""
2508 else
2509 case $cross_compiling:$ac_tool_warned in
2510yes:)
2511{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2512whose name does not start with the host triplet. If you think this
2513configuration is useful to you, please write to autoconf@gnu.org." >&5
2514echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2515whose name does not start with the host triplet. If you think this
2516configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2517ac_tool_warned=yes ;;
2518esac
2519 CC=$ac_ct_CC
2520 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002521else
2522 CC="$ac_cv_prog_CC"
2523fi
2524
2525if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002526 if test -n "$ac_tool_prefix"; then
2527 # 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 +00002528set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531if test "${ac_cv_prog_CC+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536else
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00002543 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 +00002544 ac_cv_prog_CC="${ac_tool_prefix}cc"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548done
2549done
Reid Spencera773bd52006-08-04 18:18:08 +00002550IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002551
2552fi
2553fi
2554CC=$ac_cv_prog_CC
2555if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002556 { echo "$as_me:$LINENO: result: $CC" >&5
2557echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558else
Reid Spencera773bd52006-08-04 18:18:08 +00002559 { echo "$as_me:$LINENO: result: no" >&5
2560echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561fi
2562
Reid Spencera773bd52006-08-04 18:18:08 +00002563
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565fi
2566if test -z "$CC"; then
2567 # Extract the first word of "cc", so it can be a program name with args.
2568set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571if test "${ac_cv_prog_CC+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2573else
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2576else
2577 ac_prog_rejected=no
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00002584 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 +00002585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2586 ac_prog_rejected=yes
2587 continue
2588 fi
2589 ac_cv_prog_CC="cc"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593done
2594done
Reid Spencera773bd52006-08-04 18:18:08 +00002595IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002596
2597if test $ac_prog_rejected = yes; then
2598 # We found a bogon in the path, so make sure we never use it.
2599 set dummy $ac_cv_prog_CC
2600 shift
2601 if test $# != 0; then
2602 # We chose a different compiler from the bogus one.
2603 # However, it has the same basename, so the bogon will be chosen
2604 # first if we set CC to just the basename; use the full file name.
2605 shift
2606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2607 fi
2608fi
2609fi
2610fi
2611CC=$ac_cv_prog_CC
2612if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002613 { echo "$as_me:$LINENO: result: $CC" >&5
2614echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002615else
Reid Spencera773bd52006-08-04 18:18:08 +00002616 { echo "$as_me:$LINENO: result: no" >&5
2617echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002618fi
2619
Reid Spencera773bd52006-08-04 18:18:08 +00002620
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621fi
2622if test -z "$CC"; then
2623 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002624 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002625 do
2626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2627set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00002642 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 +00002643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2646 fi
2647done
2648done
Reid Spencera773bd52006-08-04 18:18:08 +00002649IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002650
2651fi
2652fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653CC=$ac_cv_prog_CC
2654if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002655 { echo "$as_me:$LINENO: result: $CC" >&5
2656echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002657else
Reid Spencera773bd52006-08-04 18:18:08 +00002658 { echo "$as_me:$LINENO: result: no" >&5
2659echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002660fi
2661
Reid Spencera773bd52006-08-04 18:18:08 +00002662
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002664 done
2665fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666if test -z "$CC"; then
2667 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002668 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002669do
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002674if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00002686 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 +00002687 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691done
2692done
Reid Spencera773bd52006-08-04 18:18:08 +00002693IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002694
2695fi
2696fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002699 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002701else
Reid Spencera773bd52006-08-04 18:18:08 +00002702 { echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002704fi
2705
Reid Spencera773bd52006-08-04 18:18:08 +00002706
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002707 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002708done
John Criswell7a73b802003-06-30 21:59:07 +00002709
Reid Spencera773bd52006-08-04 18:18:08 +00002710 if test "x$ac_ct_CC" = x; then
2711 CC=""
2712 else
2713 case $cross_compiling:$ac_tool_warned in
2714yes:)
2715{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2716whose name does not start with the host triplet. If you think this
2717configuration is useful to you, please write to autoconf@gnu.org." >&5
2718echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2719whose name does not start with the host triplet. If you think this
2720configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2721ac_tool_warned=yes ;;
2722esac
2723 CC=$ac_ct_CC
2724 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002725fi
2726
John Criswell7a73b802003-06-30 21:59:07 +00002727fi
2728
2729
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002730test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2731See \`config.log' for more details." >&5
2732echo "$as_me: error: no acceptable C compiler found in \$PATH
2733See \`config.log' for more details." >&2;}
2734 { (exit 1); exit 1; }; }
2735
John Criswell7a73b802003-06-30 21:59:07 +00002736# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002737echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002738ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002739{ (ac_try="$ac_compiler --version >&5"
2740case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743esac
2744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002749{ (ac_try="$ac_compiler -v >&5"
2750case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753esac
2754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002759{ (ac_try="$ac_compiler -V >&5"
2760case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763esac
2764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2769
2770cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002771/* confdefs.h. */
2772_ACEOF
2773cat confdefs.h >>conftest.$ac_ext
2774cat >>conftest.$ac_ext <<_ACEOF
2775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002776
John Criswell7a73b802003-06-30 21:59:07 +00002777int
2778main ()
2779{
2780
2781 ;
2782 return 0;
2783}
2784_ACEOF
2785ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002786ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002787# Try to create an executable without -o first, disregard a.out.
2788# It will help us diagnose broken compilers, and finding out an intuition
2789# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002790{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2791echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002792ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002793#
2794# List of possible output files, starting from the most likely.
2795# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2796# only as a last resort. b.out is created by i960 compilers.
2797ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2798#
2799# The IRIX 6 linker writes into existing files which may not be
2800# executable, retaining their permissions. Remove them first so a
2801# subsequent execution test works.
2802ac_rmfiles=
2803for ac_file in $ac_files
2804do
2805 case $ac_file in
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2807 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2808 esac
2809done
2810rm -f $ac_rmfiles
2811
2812if { (ac_try="$ac_link_default"
2813case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824# in a Makefile. We should not override ac_cv_exeext if it was cached,
2825# so that the user can short-circuit this test for compilers unknown to
2826# Autoconf.
Nick Lewycky2ab1d862009-01-20 00:52:24 +00002827for ac_file in $ac_files ''
John Criswell0c38eaf2003-09-10 15:17:25 +00002828do
2829 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002830 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002832 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002833 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002834 # We found the default executable, but exeext='' is most
2835 # certainly right.
2836 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002837 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839 then :; else
2840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841 fi
2842 # We set ac_cv_exeext here because the later test for it is not
2843 # safe: cross compilers may not add the suffix if given an `-o'
2844 # argument, so we may need to know it at that point already.
2845 # Even if this section looks crufty: it has the advantage of
2846 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002847 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002848 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002849 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002850 esac
2851done
Reid Spencera773bd52006-08-04 18:18:08 +00002852test "$ac_cv_exeext" = no && ac_cv_exeext=
2853
John Criswell7a73b802003-06-30 21:59:07 +00002854else
Nick Lewycky2ab1d862009-01-20 00:52:24 +00002855 ac_file=''
2856fi
2857
2858{ echo "$as_me:$LINENO: result: $ac_file" >&5
2859echo "${ECHO_T}$ac_file" >&6; }
2860if test -z "$ac_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00002861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002862sed 's/^/| /' conftest.$ac_ext >&5
2863
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002864{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002865See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002866echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002867See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002868 { (exit 77); exit 77; }; }
2869fi
2870
2871ac_exeext=$ac_cv_exeext
John Criswell7a73b802003-06-30 21:59:07 +00002872
Reid Spencera773bd52006-08-04 18:18:08 +00002873# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002874# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002875{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2876echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002877# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2878# If not cross compiling, check that we can run a simple program.
2879if test "$cross_compiling" != yes; then
2880 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002881 { (case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884esac
2885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 cross_compiling=no
2891 else
2892 if test "$cross_compiling" = maybe; then
2893 cross_compiling=yes
2894 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002896If you meant to cross compile, use \`--host'.
2897See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002898echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002899If you meant to cross compile, use \`--host'.
2900See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002901 { (exit 1); exit 1; }; }
2902 fi
2903 fi
2904fi
Reid Spencera773bd52006-08-04 18:18:08 +00002905{ echo "$as_me:$LINENO: result: yes" >&5
2906echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002907
John Criswell0c38eaf2003-09-10 15:17:25 +00002908rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002909ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002910# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002911# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002912{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2913echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2914{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2915echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002916
Reid Spencera773bd52006-08-04 18:18:08 +00002917{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2918echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2919if { (ac_try="$ac_link"
2920case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923esac
2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; then
2929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2930# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2931# work properly (i.e., refer to `conftest.exe'), while it won't with
2932# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002933for ac_file in conftest.exe conftest conftest.*; do
2934 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002935 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002938 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002939 * ) break;;
2940 esac
2941done
2942else
John Criswell0c38eaf2003-09-10 15:17:25 +00002943 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2944See \`config.log' for more details." >&5
2945echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2946See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002947 { (exit 1); exit 1; }; }
2948fi
2949
2950rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002951{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2952echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002953
2954rm -f conftest.$ac_ext
2955EXEEXT=$ac_cv_exeext
2956ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002957{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2958echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002959if test "${ac_cv_objext+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002963/* confdefs.h. */
2964_ACEOF
2965cat confdefs.h >>conftest.$ac_ext
2966cat >>conftest.$ac_ext <<_ACEOF
2967/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002968
John Criswell7a73b802003-06-30 21:59:07 +00002969int
2970main ()
2971{
2972
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002978if { (ac_try="$ac_compile"
2979case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002990 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2993 break;;
2994 esac
2995done
2996else
2997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002998sed 's/^/| /' conftest.$ac_ext >&5
2999
3000{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3001See \`config.log' for more details." >&5
3002echo "$as_me: error: cannot compute suffix of object files: cannot compile
3003See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003004 { (exit 1); exit 1; }; }
3005fi
3006
3007rm -f conftest.$ac_cv_objext conftest.$ac_ext
3008fi
Reid Spencera773bd52006-08-04 18:18:08 +00003009{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3010echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003011OBJEXT=$ac_cv_objext
3012ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003013{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3014echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003015if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003019/* confdefs.h. */
3020_ACEOF
3021cat confdefs.h >>conftest.$ac_ext
3022cat >>conftest.$ac_ext <<_ACEOF
3023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003024
John Criswell7a73b802003-06-30 21:59:07 +00003025int
3026main ()
3027{
3028#ifndef __GNUC__
3029 choke me
3030#endif
3031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003037if { (ac_try="$ac_compile"
3038case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003044 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003045 grep -v '^ *+' conftest.er1 >conftest.err
3046 rm -f conftest.er1
3047 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003049 (exit $ac_status); } && {
3050 test -z "$ac_c_werror_flag" ||
3051 test ! -s conftest.err
3052 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +00003053 ac_compiler_gnu=yes
3054else
3055 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003056sed 's/^/| /' conftest.$ac_ext >&5
3057
Reid Spencera773bd52006-08-04 18:18:08 +00003058 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003059fi
Reid Spencera773bd52006-08-04 18:18:08 +00003060
3061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003062ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003063
3064fi
Reid Spencera773bd52006-08-04 18:18:08 +00003065{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3066echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003067GCC=`test $ac_compiler_gnu = yes && echo yes`
3068ac_test_CFLAGS=${CFLAGS+set}
3069ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003070{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003072if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
Reid Spencera773bd52006-08-04 18:18:08 +00003075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3077 ac_cv_prog_cc_g=no
3078 CFLAGS="-g"
3079 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003085
John Criswell7a73b802003-06-30 21:59:07 +00003086int
3087main ()
3088{
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
3094rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003095if { (ac_try="$ac_compile"
3096case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003102 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003111 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003112else
3113 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003114sed 's/^/| /' conftest.$ac_ext >&5
3115
Reid Spencera773bd52006-08-04 18:18:08 +00003116 CFLAGS=""
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123
3124int
3125main ()
3126{
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (ac_try="$ac_compile"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003149 :
3150else
3151 echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3155 CFLAGS="-g"
3156 cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
3162
3163int
3164main ()
3165{
3166
3167 ;
3168 return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext
3172if { (ac_try="$ac_compile"
3173case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176esac
3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003188 ac_cv_prog_cc_g=yes
3189else
3190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193
John Criswell7a73b802003-06-30 21:59:07 +00003194fi
Reid Spencera773bd52006-08-04 18:18:08 +00003195
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003197fi
Reid Spencera773bd52006-08-04 18:18:08 +00003198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200fi
3201
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3204fi
3205{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3206echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003207if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3211 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003212 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003213 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003214 fi
3215else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003216 if test "$GCC" = yes; then
3217 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003218 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003220 fi
3221fi
Reid Spencera773bd52006-08-04 18:18:08 +00003222{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3223echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3224if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
Reid Spencera773bd52006-08-04 18:18:08 +00003227 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003228ac_save_CC=$CC
3229cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
3235#include <stdarg.h>
3236#include <stdio.h>
3237#include <sys/types.h>
3238#include <sys/stat.h>
3239/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240struct buf { int x; };
3241FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242static char *e (p, i)
3243 char **p;
3244 int i;
3245{
3246 return p[i];
3247}
3248static char *f (char * (*g) (char **, int), char **p, ...)
3249{
3250 char *s;
3251 va_list v;
3252 va_start (v,p);
3253 s = g (p, va_arg (v,int));
3254 va_end (v);
3255 return s;
3256}
3257
3258/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003261 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003264 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266
Reid Spencera773bd52006-08-04 18:18:08 +00003267/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3269#define FOO(x) 'x'
3270int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272int test (int i, double x);
3273struct s1 {int (*f) (int a);};
3274struct s2 {int (*f) (double a);};
3275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276int argc;
3277char **argv;
3278int
3279main ()
3280{
3281return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3282 ;
3283 return 0;
3284}
3285_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288do
3289 CC="$ac_save_CC $ac_arg"
3290 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003291if { (ac_try="$ac_compile"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003303 (exit $ac_status); } && {
3304 test -z "$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003307 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308else
3309 echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
Reid Spencera773bd52006-08-04 18:18:08 +00003312
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313fi
Reid Spencera773bd52006-08-04 18:18:08 +00003314
3315rm -f core conftest.err conftest.$ac_objext
3316 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317done
Reid Spencera773bd52006-08-04 18:18:08 +00003318rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319CC=$ac_save_CC
3320
3321fi
Reid Spencera773bd52006-08-04 18:18:08 +00003322# AC_CACHE_VAL
3323case "x$ac_cv_prog_cc_c89" in
3324 x)
3325 { echo "$as_me:$LINENO: result: none needed" >&5
3326echo "${ECHO_T}none needed" >&6; } ;;
3327 xno)
3328 { echo "$as_me:$LINENO: result: unsupported" >&5
3329echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003331 CC="$CC $ac_cv_prog_cc_c89"
3332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3333echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334esac
3335
John Criswell0c38eaf2003-09-10 15:17:25 +00003336
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337ac_ext=c
3338ac_cpp='$CPP $CPPFLAGS'
3339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342
3343
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344ac_ext=c
3345ac_cpp='$CPP $CPPFLAGS'
3346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003349{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003351# On Suns, sometimes $CPP names a directory.
3352if test -n "$CPP" && test -d "$CPP"; then
3353 CPP=
3354fi
3355if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3361 do
3362 ac_preproc_ok=false
3363for ac_c_preproc_warn_flag in '' yes
3364do
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h. */
3377#ifdef __STDC__
3378# include <limits.h>
3379#else
3380# include <assert.h>
3381#endif
3382 Syntax error
3383_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003384if { (ac_try="$ac_cpp conftest.$ac_ext"
3385case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003396 (exit $ac_status); } >/dev/null && {
3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400 :
3401else
3402 echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 # Broken: fails on valid input.
3406continue
3407fi
Reid Spencera773bd52006-08-04 18:18:08 +00003408
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003409rm -f conftest.err conftest.$ac_ext
3410
Reid Spencera773bd52006-08-04 18:18:08 +00003411 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412 # can be detected and how.
3413 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h. */
3419#include <ac_nonexistent.h>
3420_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003421if { (ac_try="$ac_cpp conftest.$ac_ext"
3422case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425esac
3426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003433 (exit $ac_status); } >/dev/null && {
3434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437 # Broken: success on invalid input.
3438continue
3439else
3440 echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 # Passes both tests.
3444ac_preproc_ok=:
3445break
3446fi
Reid Spencera773bd52006-08-04 18:18:08 +00003447
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003448rm -f conftest.err conftest.$ac_ext
3449
3450done
3451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452rm -f conftest.err conftest.$ac_ext
3453if $ac_preproc_ok; then
3454 break
3455fi
3456
3457 done
3458 ac_cv_prog_CPP=$CPP
3459
3460fi
3461 CPP=$ac_cv_prog_CPP
3462else
3463 ac_cv_prog_CPP=$CPP
3464fi
Reid Spencera773bd52006-08-04 18:18:08 +00003465{ echo "$as_me:$LINENO: result: $CPP" >&5
3466echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467ac_preproc_ok=false
3468for ac_c_preproc_warn_flag in '' yes
3469do
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
3482#ifdef __STDC__
3483# include <limits.h>
3484#else
3485# include <assert.h>
3486#endif
3487 Syntax error
3488_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003489if { (ac_try="$ac_cpp conftest.$ac_ext"
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
3494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505 :
3506else
3507 echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 # Broken: fails on valid input.
3511continue
3512fi
Reid Spencera773bd52006-08-04 18:18:08 +00003513
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003514rm -f conftest.err conftest.$ac_ext
3515
Reid Spencera773bd52006-08-04 18:18:08 +00003516 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
3524#include <ac_nonexistent.h>
3525_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003526if { (ac_try="$ac_cpp conftest.$ac_ext"
3527case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530esac
3531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003538 (exit $ac_status); } >/dev/null && {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003542 # Broken: success on invalid input.
3543continue
3544else
3545 echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548 # Passes both tests.
3549ac_preproc_ok=:
3550break
3551fi
Reid Spencera773bd52006-08-04 18:18:08 +00003552
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003553rm -f conftest.err conftest.$ac_ext
3554
3555done
3556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557rm -f conftest.err conftest.$ac_ext
3558if $ac_preproc_ok; then
3559 :
3560else
3561 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3562See \`config.log' for more details." >&5
3563echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3564See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }
3566fi
3567
John Criswell7a73b802003-06-30 21:59:07 +00003568ac_ext=c
3569ac_cpp='$CPP $CPPFLAGS'
3570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573
John Criswell7a73b802003-06-30 21:59:07 +00003574
Reid Spencera773bd52006-08-04 18:18:08 +00003575{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3576echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003577if test "${ac_cv_path_GREP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
Reid Spencera773bd52006-08-04 18:18:08 +00003580 # Extract the first word of "grep ggrep" to use in msg output
3581if test -z "$GREP"; then
3582set dummy grep ggrep; ac_prog_name=$2
3583if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
Reid Spencera773bd52006-08-04 18:18:08 +00003586 ac_path_GREP_found=false
3587# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003589for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003590do
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003593 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003594 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003595 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003596 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003597 # Check for GNU ac_path_GREP and select it if it is found.
3598 # Check for GNU $ac_path_GREP
3599case `"$ac_path_GREP" --version 2>&1` in
3600*GNU*)
3601 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3602*)
3603 ac_count=0
3604 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3605 while :
3606 do
3607 cat "conftest.in" "conftest.in" >"conftest.tmp"
3608 mv "conftest.tmp" "conftest.in"
3609 cp "conftest.in" "conftest.nl"
3610 echo 'GREP' >> "conftest.nl"
3611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3613 ac_count=`expr $ac_count + 1`
3614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3615 # Best one so far, save it but keep looking for a better one
3616 ac_cv_path_GREP="$ac_path_GREP"
3617 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003618 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003619 # 10*(2^10) chars as input seems more than enough
3620 test $ac_count -gt 10 && break
3621 done
3622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3623esac
3624
3625
3626 $ac_path_GREP_found && break 3
3627 done
3628done
3629
3630done
3631IFS=$as_save_IFS
3632
3633
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003634fi
Reid Spencera773bd52006-08-04 18:18:08 +00003635
3636GREP="$ac_cv_path_GREP"
3637if test -z "$GREP"; then
3638 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3639echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3640 { (exit 1); exit 1; }; }
3641fi
3642
3643else
3644 ac_cv_path_GREP=$GREP
3645fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003646
John Criswell7a73b802003-06-30 21:59:07 +00003647
Reid Spencera773bd52006-08-04 18:18:08 +00003648fi
3649{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3650echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3651 GREP="$ac_cv_path_GREP"
3652
3653
3654{ echo "$as_me:$LINENO: checking for egrep" >&5
3655echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3656if test "${ac_cv_path_EGREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658else
3659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3660 then ac_cv_path_EGREP="$GREP -E"
3661 else
3662 # Extract the first word of "egrep" to use in msg output
3663if test -z "$EGREP"; then
3664set dummy egrep; ac_prog_name=$2
3665if test "${ac_cv_path_EGREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668 ac_path_EGREP_found=false
3669# Loop through the user's path and test for each of PROGNAME-LIST
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_prog in egrep; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003679 # Check for GNU ac_path_EGREP and select it if it is found.
3680 # Check for GNU $ac_path_EGREP
3681case `"$ac_path_EGREP" --version 2>&1` in
3682*GNU*)
3683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3684*)
3685 ac_count=0
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687 while :
3688 do
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'EGREP' >> "conftest.nl"
3693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695 ac_count=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_EGREP="$ac_path_EGREP"
3699 ac_path_EGREP_max=$ac_count
3700 fi
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3703 done
3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705esac
3706
3707
3708 $ac_path_EGREP_found && break 3
3709 done
3710done
3711
3712done
3713IFS=$as_save_IFS
3714
3715
3716fi
3717
3718EGREP="$ac_cv_path_EGREP"
3719if test -z "$EGREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3723fi
3724
3725else
3726 ac_cv_path_EGREP=$EGREP
3727fi
3728
3729
3730 fi
3731fi
3732{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3733echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3734 EGREP="$ac_cv_path_EGREP"
3735
3736
3737{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3738echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003739if test "${ac_cv_header_stdc+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003743/* confdefs.h. */
3744_ACEOF
3745cat confdefs.h >>conftest.$ac_ext
3746cat >>conftest.$ac_ext <<_ACEOF
3747/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003748#include <stdlib.h>
3749#include <stdarg.h>
3750#include <string.h>
3751#include <float.h>
3752
John Criswell0c38eaf2003-09-10 15:17:25 +00003753int
3754main ()
3755{
3756
3757 ;
3758 return 0;
3759}
John Criswell7a73b802003-06-30 21:59:07 +00003760_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003761rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003762if { (ac_try="$ac_compile"
3763case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
3767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003769 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003774 (exit $ac_status); } && {
3775 test -z "$ac_c_werror_flag" ||
3776 test ! -s conftest.err
3777 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +00003778 ac_cv_header_stdc=yes
3779else
3780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003781sed 's/^/| /' conftest.$ac_ext >&5
3782
Reid Spencera773bd52006-08-04 18:18:08 +00003783 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003784fi
Reid Spencera773bd52006-08-04 18:18:08 +00003785
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003787
3788if test $ac_cv_header_stdc = yes; then
3789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3790 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003791/* confdefs.h. */
3792_ACEOF
3793cat confdefs.h >>conftest.$ac_ext
3794cat >>conftest.$ac_ext <<_ACEOF
3795/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003796#include <string.h>
3797
3798_ACEOF
3799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003800 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003801 :
3802else
3803 ac_cv_header_stdc=no
3804fi
3805rm -f conftest*
3806
3807fi
3808
3809if test $ac_cv_header_stdc = yes; then
3810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3811 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003812/* confdefs.h. */
3813_ACEOF
3814cat confdefs.h >>conftest.$ac_ext
3815cat >>conftest.$ac_ext <<_ACEOF
3816/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003817#include <stdlib.h>
3818
3819_ACEOF
3820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003821 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003822 :
3823else
3824 ac_cv_header_stdc=no
3825fi
3826rm -f conftest*
3827
3828fi
3829
3830if test $ac_cv_header_stdc = yes; then
3831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3832 if test "$cross_compiling" = yes; then
3833 :
3834else
3835 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003836/* confdefs.h. */
3837_ACEOF
3838cat confdefs.h >>conftest.$ac_ext
3839cat >>conftest.$ac_ext <<_ACEOF
3840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003841#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003842#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003843#if ((' ' & 0x0FF) == 0x020)
3844# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3845# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3846#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003847# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003848 (('a' <= (c) && (c) <= 'i') \
3849 || ('j' <= (c) && (c) <= 'r') \
3850 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003851# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3852#endif
3853
3854#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3855int
3856main ()
3857{
3858 int i;
3859 for (i = 0; i < 256; i++)
3860 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003861 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003862 return 2;
3863 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003864}
3865_ACEOF
3866rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003867if { (ac_try="$ac_link"
3868case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871esac
3872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003877 { (case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880esac
3881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 :
3887else
3888 echo "$as_me: program exited with status $ac_status" >&5
3889echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003890sed 's/^/| /' conftest.$ac_ext >&5
3891
John Criswell7a73b802003-06-30 21:59:07 +00003892( exit $ac_status )
3893ac_cv_header_stdc=no
3894fi
Reid Spencera773bd52006-08-04 18:18:08 +00003895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3896fi
3897
3898
John Criswell7a73b802003-06-30 21:59:07 +00003899fi
3900fi
Reid Spencera773bd52006-08-04 18:18:08 +00003901{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3902echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003903if test $ac_cv_header_stdc = yes; then
3904
3905cat >>confdefs.h <<\_ACEOF
3906#define STDC_HEADERS 1
3907_ACEOF
3908
3909fi
3910
Reid Spencera773bd52006-08-04 18:18:08 +00003911# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3922 inttypes.h stdint.h unistd.h
3923do
3924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3925{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930 cat >conftest.$ac_ext <<_ACEOF
3931/* confdefs.h. */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
3935/* end confdefs.h. */
3936$ac_includes_default
3937
3938#include <$ac_header>
3939_ACEOF
3940rm -f conftest.$ac_objext
3941if { (ac_try="$ac_compile"
3942case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945esac
3946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00003957 eval "$as_ac_Header=yes"
3958else
3959 echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962 eval "$as_ac_Header=no"
3963fi
3964
3965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966fi
3967ac_res=`eval echo '${'$as_ac_Header'}'`
3968 { echo "$as_me:$LINENO: result: $ac_res" >&5
3969echo "${ECHO_T}$ac_res" >&6; }
3970if test `eval echo '${'$as_ac_Header'}'` = yes; then
3971 cat >>confdefs.h <<_ACEOF
3972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3973_ACEOF
3974
3975fi
3976
3977done
3978
3979
3980{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3981echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3982if test "${ac_cv_c_bigendian+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984else
3985 # See if sys/param.h defines the BYTE_ORDER macro.
3986cat >conftest.$ac_ext <<_ACEOF
3987/* confdefs.h. */
3988_ACEOF
3989cat confdefs.h >>conftest.$ac_ext
3990cat >>conftest.$ac_ext <<_ACEOF
3991/* end confdefs.h. */
3992#include <sys/types.h>
3993#include <sys/param.h>
3994
3995int
3996main ()
3997{
Nick Lewycky2ab1d862009-01-20 00:52:24 +00003998#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3999 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Reid Spencera773bd52006-08-04 18:18:08 +00004000 bogus endian macros
4001#endif
4002
4003 ;
4004 return 0;
4005}
4006_ACEOF
4007rm -f conftest.$ac_objext
4008if { (ac_try="$ac_compile"
4009case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012esac
4013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_compile") 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004020 (exit $ac_status); } && {
4021 test -z "$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4023 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004024 # It does; now see whether it defined to BIG_ENDIAN or not.
4025cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
4031#include <sys/types.h>
4032#include <sys/param.h>
4033
4034int
4035main ()
4036{
4037#if BYTE_ORDER != BIG_ENDIAN
4038 not big endian
4039#endif
4040
4041 ;
4042 return 0;
4043}
4044_ACEOF
4045rm -f conftest.$ac_objext
4046if { (ac_try="$ac_compile"
4047case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004058 (exit $ac_status); } && {
4059 test -z "$ac_c_werror_flag" ||
4060 test ! -s conftest.err
4061 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004062 ac_cv_c_bigendian=yes
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 ac_cv_c_bigendian=no
4068fi
4069
4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071else
4072 echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075 # It does not; compile a test program.
4076if test "$cross_compiling" = yes; then
4077 # try to guess the endianness by grepping values into an object file
4078 ac_cv_c_bigendian=unknown
4079 cat >conftest.$ac_ext <<_ACEOF
4080/* confdefs.h. */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4084/* end confdefs.h. */
4085short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4086short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4087void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4088short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4089short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4090void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4091int
4092main ()
4093{
4094 _ascii (); _ebcdic ();
4095 ;
4096 return 0;
4097}
4098_ACEOF
4099rm -f conftest.$ac_objext
4100if { (ac_try="$ac_compile"
4101case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004112 (exit $ac_status); } && {
4113 test -z "$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00004116 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4117 ac_cv_c_bigendian=yes
4118fi
4119if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4120 if test "$ac_cv_c_bigendian" = unknown; then
4121 ac_cv_c_bigendian=no
4122 else
4123 # finding both strings is unlikely to happen, but who knows?
4124 ac_cv_c_bigendian=unknown
4125 fi
4126fi
4127else
4128 echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
4130
4131
4132fi
4133
4134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135else
4136 cat >conftest.$ac_ext <<_ACEOF
4137/* confdefs.h. */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
4141/* end confdefs.h. */
4142$ac_includes_default
4143int
4144main ()
4145{
4146
4147 /* Are we little or big endian? From Harbison&Steele. */
4148 union
4149 {
4150 long int l;
4151 char c[sizeof (long int)];
4152 } u;
4153 u.l = 1;
4154 return u.c[sizeof (long int) - 1] == 1;
4155
4156 ;
4157 return 0;
4158}
4159_ACEOF
4160rm -f conftest$ac_exeext
4161if { (ac_try="$ac_link"
4162case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165esac
4166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_link") 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4171 { (case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174esac
4175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_try") 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 ac_cv_c_bigendian=no
4181else
4182 echo "$as_me: program exited with status $ac_status" >&5
4183echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186( exit $ac_status )
4187ac_cv_c_bigendian=yes
4188fi
4189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4190fi
4191
4192
4193fi
4194
4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196fi
4197{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4198echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4199case $ac_cv_c_bigendian in
4200 yes)
4201 ENDIAN=big
4202 ;;
4203 no)
4204 ENDIAN=little
4205 ;;
4206 *)
4207 { { echo "$as_me:$LINENO: error: unknown endianness
4208presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4209echo "$as_me: error: unknown endianness
4210presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4211 { (exit 1); exit 1; }; } ;;
4212esac
4213
4214
4215if test "$cross_compiling" = yes; then
4216 LLVM_CROSS_COMPILING=1
4217
4218
4219{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4220echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4221if test "${ac_cv_build_exeext+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223else
4224 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4225 ac_cv_build_exeext=.exe
4226else
4227 ac_build_prefix=${build_alias}-
4228
4229 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4230set dummy ${ac_build_prefix}gcc; ac_word=$2
4231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4233if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235else
4236 if test -n "$BUILD_CC"; then
4237 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4238else
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004245 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 +00004246 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4249 fi
4250done
4251done
4252IFS=$as_save_IFS
4253
4254fi
4255fi
4256BUILD_CC=$ac_cv_prog_BUILD_CC
4257if test -n "$BUILD_CC"; then
4258 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4259echo "${ECHO_T}$BUILD_CC" >&6; }
4260else
4261 { echo "$as_me:$LINENO: result: no" >&5
4262echo "${ECHO_T}no" >&6; }
4263fi
4264
4265
4266 if test -z "$BUILD_CC"; then
4267 # Extract the first word of "gcc", so it can be a program name with args.
4268set dummy gcc; ac_word=$2
4269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4271if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273else
4274 if test -n "$BUILD_CC"; then
4275 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004283 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 +00004284 ac_cv_prog_BUILD_CC="gcc"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288done
4289done
4290IFS=$as_save_IFS
4291
4292fi
4293fi
4294BUILD_CC=$ac_cv_prog_BUILD_CC
4295if test -n "$BUILD_CC"; then
4296 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4297echo "${ECHO_T}$BUILD_CC" >&6; }
4298else
4299 { echo "$as_me:$LINENO: result: no" >&5
4300echo "${ECHO_T}no" >&6; }
4301fi
4302
4303
4304 if test -z "$BUILD_CC"; then
4305 # Extract the first word of "cc", so it can be a program name with args.
4306set dummy cc; ac_word=$2
4307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312 if test -n "$BUILD_CC"; then
4313 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4314else
4315 ac_prog_rejected=no
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004322 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 +00004323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4324 ac_prog_rejected=yes
4325 continue
4326 fi
4327 ac_cv_prog_BUILD_CC="cc"
4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4330 fi
4331done
4332done
4333IFS=$as_save_IFS
4334
4335if test $ac_prog_rejected = yes; then
4336 # We found a bogon in the path, so make sure we never use it.
4337 set dummy $ac_cv_prog_BUILD_CC
4338 shift
4339 if test $# != 0; then
4340 # We chose a different compiler from the bogus one.
4341 # However, it has the same basename, so the bogon will be chosen
4342 # first if we set BUILD_CC to just the basename; use the full file name.
4343 shift
4344 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4345 fi
4346fi
4347fi
4348fi
4349BUILD_CC=$ac_cv_prog_BUILD_CC
4350if test -n "$BUILD_CC"; then
4351 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4352echo "${ECHO_T}$BUILD_CC" >&6; }
4353else
4354 { echo "$as_me:$LINENO: result: no" >&5
4355echo "${ECHO_T}no" >&6; }
4356fi
4357
4358
4359 fi
4360 fi
4361 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4362echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4363 { (exit 1); exit 1; }; }
4364 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4365 rm -f conftest*
4366 echo 'int main () { return 0; }' > conftest.$ac_ext
4367 ac_cv_build_exeext=
4368 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4369 (eval $ac_build_link) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; then
4373 for file in conftest.*; do
4374 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004375 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004376 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4377 esac
4378 done
4379 else
4380 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4381echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4382 { (exit 1); exit 1; }; }
4383 fi
4384 rm -f conftest*
4385 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4386fi
4387fi
4388
4389BUILD_EXEEXT=""
4390test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4391{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4392echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4393ac_build_exeext=$BUILD_EXEEXT
4394
Jim Grosbach673612e2008-10-02 22:56:44 +00004395 ac_build_prefix=${build_alias}-
4396 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4397set dummy ${ac_build_prefix}g++; ac_word=$2
4398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 if test -n "$BUILD_CXX"; then
4404 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004413 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423BUILD_CXX=$ac_cv_prog_BUILD_CXX
4424if test -n "$BUILD_CXX"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4426echo "${ECHO_T}$BUILD_CXX" >&6; }
4427else
4428 { echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6; }
4430fi
4431
4432
4433 if test -z "$BUILD_CXX"; then
4434 # Extract the first word of "g++", so it can be a program name with args.
4435set dummy g++; ac_word=$2
4436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 if test -n "$BUILD_CXX"; then
4442 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004451 ac_cv_prog_BUILD_CXX="g++"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4454 fi
4455done
4456done
4457IFS=$as_save_IFS
4458
4459fi
4460fi
4461BUILD_CXX=$ac_cv_prog_BUILD_CXX
4462if test -n "$BUILD_CXX"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4464echo "${ECHO_T}$BUILD_CXX" >&6; }
4465else
4466 { echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6; }
4468fi
4469
4470
4471 if test -z "$BUILD_CXX"; then
4472 # Extract the first word of "c++", so it can be a program name with args.
4473set dummy c++; ac_word=$2
4474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 if test -n "$BUILD_CXX"; then
4480 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4481else
4482 ac_prog_rejected=no
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4491 ac_prog_rejected=yes
4492 continue
4493 fi
4494 ac_cv_prog_BUILD_CXX="c++"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498done
4499done
4500IFS=$as_save_IFS
4501
4502if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_BUILD_CXX
4505 shift
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set BUILD_CXX to just the basename; use the full file name.
4510 shift
4511 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4512 fi
4513fi
4514fi
4515fi
4516BUILD_CXX=$ac_cv_prog_BUILD_CXX
4517if test -n "$BUILD_CXX"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4519echo "${ECHO_T}$BUILD_CXX" >&6; }
4520else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6; }
4523fi
4524
4525
4526 fi
4527 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004528else
4529 LLVM_CROSS_COMPILING=0
4530
4531fi
4532
Reid Spencer0b1e4662007-04-02 15:41:39 +00004533if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004534 cvsbuild="yes"
4535 optimize="no"
4536 CVSBUILD=CVSBUILD=1
4537
4538else
4539 cvsbuild="no"
4540 optimize="yes"
4541fi
4542
4543
4544# Check whether --enable-optimized was given.
4545if test "${enable_optimized+set}" = set; then
4546 enableval=$enable_optimized;
4547else
4548 enableval=$optimize
4549fi
4550
4551if test ${enableval} = "no" ; then
4552 ENABLE_OPTIMIZED=
4553
4554else
4555 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4556
4557fi
4558
4559# Check whether --enable-assertions was given.
4560if test "${enable_assertions+set}" = set; then
4561 enableval=$enable_assertions;
4562else
4563 enableval="yes"
4564fi
4565
4566if test ${enableval} = "yes" ; then
4567 DISABLE_ASSERTIONS=
4568
4569else
4570 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4571
4572fi
4573
David Greenea696d242007-06-28 19:36:08 +00004574# Check whether --enable-expensive-checks was given.
4575if test "${enable_expensive_checks+set}" = set; then
4576 enableval=$enable_expensive_checks;
4577else
4578 enableval="no"
4579fi
4580
4581if test ${enableval} = "yes" ; then
4582 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4583
4584 EXPENSIVE_CHECKS=yes
4585
4586else
4587 ENABLE_EXPENSIVE_CHECKS=
4588
4589 EXPENSIVE_CHECKS=no
4590
4591fi
4592
Reid Spencer8b2e1412006-11-17 03:32:33 +00004593# Check whether --enable-debug-runtime was given.
4594if test "${enable_debug_runtime+set}" = set; then
4595 enableval=$enable_debug_runtime;
4596else
4597 enableval=no
4598fi
4599
4600if test ${enableval} = "no" ; then
4601 DEBUG_RUNTIME=
4602
4603else
4604 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4605
4606fi
4607
Reid Spencera773bd52006-08-04 18:18:08 +00004608# Check whether --enable-jit was given.
4609if test "${enable_jit+set}" = set; then
4610 enableval=$enable_jit;
4611else
4612 enableval=default
4613fi
4614
4615if test ${enableval} = "no"
4616then
4617 JIT=
4618
4619else
4620 case "$llvm_cv_target_arch" in
4621 x86) TARGET_HAS_JIT=1
4622 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004623 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004624 ;;
4625 PowerPC) TARGET_HAS_JIT=1
4626 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004627 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004628 ;;
4629 Alpha) TARGET_HAS_JIT=1
4630 ;;
4631 IA64) TARGET_HAS_JIT=0
4632 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004633 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004634 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004635 Mips) TARGET_HAS_JIT=0
4636 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004637 PIC16) TARGET_HAS_JIT=0
4638 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004639 XCore) TARGET_HAS_JIT=0
4640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004641 *) TARGET_HAS_JIT=0
4642 ;;
4643 esac
4644fi
4645
4646# Check whether --enable-doxygen was given.
4647if test "${enable_doxygen+set}" = set; then
4648 enableval=$enable_doxygen;
4649else
4650 enableval=default
4651fi
4652
4653case "$enableval" in
4654 yes) ENABLE_DOXYGEN=1
4655 ;;
4656 no) ENABLE_DOXYGEN=0
4657 ;;
4658 default) ENABLE_DOXYGEN=0
4659 ;;
4660 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4661echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4662 { (exit 1); exit 1; }; } ;;
4663esac
4664
4665# Check whether --enable-threads was given.
4666if test "${enable_threads+set}" = set; then
4667 enableval=$enable_threads;
4668else
Reid Spencer65c5d752006-11-05 17:08:18 +00004669 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004670fi
4671
4672case "$enableval" in
4673 yes) ENABLE_THREADS=1
4674 ;;
4675 no) ENABLE_THREADS=0
4676 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004677 default) ENABLE_THREADS=1
4678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004679 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4680echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4681 { (exit 1); exit 1; }; } ;;
4682esac
4683
4684cat >>confdefs.h <<_ACEOF
4685#define ENABLE_THREADS $ENABLE_THREADS
4686_ACEOF
4687
4688
Reid Spencer89b0d992006-12-16 22:07:52 +00004689# Check whether --enable-pic was given.
4690if test "${enable_pic+set}" = set; then
4691 enableval=$enable_pic;
4692else
4693 enableval=default
4694fi
4695
4696case "$enableval" in
4697 yes) ENABLE_PIC=1
4698 ;;
4699 no) ENABLE_PIC=0
4700 ;;
4701 default) ENABLE_PIC=0
4702 ;;
4703 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4704echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4705 { (exit 1); exit 1; }; } ;;
4706esac
4707
4708cat >>confdefs.h <<_ACEOF
4709#define ENABLE_PIC $ENABLE_PIC
4710_ACEOF
4711
4712
Reid Spencera773bd52006-08-04 18:18:08 +00004713TARGETS_TO_BUILD=""
4714# Check whether --enable-targets was given.
4715if test "${enable_targets+set}" = set; then
4716 enableval=$enable_targets;
4717else
4718 enableval=all
4719fi
4720
4721case "$enableval" in
Richard Osborneb25baef2008-11-07 10:59:00 +00004722 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004723 host-only)
4724 case "$llvm_cv_target_arch" in
4725 x86) TARGETS_TO_BUILD="X86" ;;
4726 x86_64) TARGETS_TO_BUILD="X86" ;;
4727 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4728 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4729 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4730 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004731 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004732 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004733 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004734 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004735 XCore) TARGETS_TO_BUILD="XCore" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004736 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4737echo "$as_me: error: Can not set target to build" >&2;}
4738 { (exit 1); exit 1; }; } ;;
4739 esac
4740 ;;
4741 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4742 case "$a_target" in
4743 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4744 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4745 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4746 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4747 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4748 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004749 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004750 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004751 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004752 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004753 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004754 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4755 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004756 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004757 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4758echo "$as_me: error: Unrecognized target $a_target" >&2;}
4759 { (exit 1); exit 1; }; } ;;
4760 esac
4761 done
4762 ;;
4763esac
Reid Spencera773bd52006-08-04 18:18:08 +00004764TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4765
4766
Reid Spencer65c5d752006-11-05 17:08:18 +00004767# Check whether --enable-cbe-printf-a was given.
4768if test "${enable_cbe_printf_a+set}" = set; then
4769 enableval=$enable_cbe_printf_a;
4770else
4771 enableval=default
4772fi
4773
4774case "$enableval" in
4775 yes) ENABLE_CBE_PRINTF_A=1
4776 ;;
4777 no) ENABLE_CBE_PRINTF_A=0
4778 ;;
4779 default) ENABLE_CBE_PRINTF_A=1
4780 ;;
4781 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4782echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4783 { (exit 1); exit 1; }; } ;;
4784esac
4785
4786cat >>confdefs.h <<_ACEOF
4787#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4788_ACEOF
4789
4790
Reid Spencera773bd52006-08-04 18:18:08 +00004791
4792# Check whether --with-llvmgccdir was given.
4793if test "${with_llvmgccdir+set}" = set; then
4794 withval=$with_llvmgccdir;
4795else
4796 withval=default
4797fi
4798
4799case "$withval" in
4800 default) WITH_LLVMGCCDIR=default ;;
4801 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4802 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4803echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4804 { (exit 1); exit 1; }; } ;;
4805esac
4806
4807
Devang Patel5d28b882007-12-04 22:54:47 +00004808# Check whether --with-llvmgcc was given.
4809if test "${with_llvmgcc+set}" = set; then
4810 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4811 WITH_LLVMGCCDIR=""
4812fi
4813
4814
4815
4816# Check whether --with-llvmgxx was given.
4817if test "${with_llvmgxx+set}" = set; then
4818 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4819 WITH_LLVMGCCDIR=""
4820fi
4821
4822
4823if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4824 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4825echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4826 { (exit 1); exit 1; }; };
4827fi
4828
4829if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4830 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4831echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4832 { (exit 1); exit 1; }; };
4833fi
4834
4835
Reid Spencera773bd52006-08-04 18:18:08 +00004836# Check whether --with-extra-options was given.
4837if test "${with_extra_options+set}" = set; then
4838 withval=$with_extra_options;
4839else
4840 withval=default
4841fi
4842
4843case "$withval" in
4844 default) EXTRA_OPTIONS= ;;
4845 *) EXTRA_OPTIONS=$withval ;;
4846esac
4847EXTRA_OPTIONS=$EXTRA_OPTIONS
4848
4849
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004850# Check whether --enable-bindings was given.
4851if test "${enable_bindings+set}" = set; then
4852 enableval=$enable_bindings;
4853else
4854 enableval=default
4855fi
4856
4857BINDINGS_TO_BUILD=""
4858case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004859 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004860 all ) BINDINGS_TO_BUILD="ocaml" ;;
4861 none | no) BINDINGS_TO_BUILD="" ;;
4862 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4863 case "$a_binding" in
4864 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4865 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4866echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4867 { (exit 1); exit 1; }; } ;;
4868 esac
4869 done
4870 ;;
4871esac
4872
Reid Spencera773bd52006-08-04 18:18:08 +00004873
Gordon Henriksenf0915682007-10-02 16:42:22 +00004874# Check whether --with-ocaml-libdir was given.
4875if test "${with_ocaml_libdir+set}" = set; then
4876 withval=$with_ocaml_libdir;
4877else
4878 withval=auto
4879fi
4880
4881case "$withval" in
4882 auto) with_ocaml_libdir="$withval" ;;
4883 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4884 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4885echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4886 { (exit 1); exit 1; }; } ;;
4887esac
4888
4889
Reid Spencera773bd52006-08-04 18:18:08 +00004890ac_ext=c
4891ac_cpp='$CPP $CPPFLAGS'
4892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4896echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4897# On Suns, sometimes $CPP names a directory.
4898if test -n "$CPP" && test -d "$CPP"; then
4899 CPP=
4900fi
4901if test -z "$CPP"; then
4902 if test "${ac_cv_prog_CPP+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 # Double quotes because CPP needs to be expanded
4906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4907 do
4908 ac_preproc_ok=false
4909for ac_c_preproc_warn_flag in '' yes
4910do
4911 # Use a header file that comes with gcc, so configuring glibc
4912 # with a fresh cross-compiler works.
4913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4914 # <limits.h> exists even on freestanding compilers.
4915 # On the NeXT, cc -E runs the code through the compiler's parser,
4916 # not just through cpp. "Syntax error" is here to catch this case.
4917 cat >conftest.$ac_ext <<_ACEOF
4918/* confdefs.h. */
4919_ACEOF
4920cat confdefs.h >>conftest.$ac_ext
4921cat >>conftest.$ac_ext <<_ACEOF
4922/* end confdefs.h. */
4923#ifdef __STDC__
4924# include <limits.h>
4925#else
4926# include <assert.h>
4927#endif
4928 Syntax error
4929_ACEOF
4930if { (ac_try="$ac_cpp conftest.$ac_ext"
4931case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934esac
4935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004942 (exit $ac_status); } >/dev/null && {
4943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4944 test ! -s conftest.err
4945 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004946 :
4947else
4948 echo "$as_me: failed program was:" >&5
4949sed 's/^/| /' conftest.$ac_ext >&5
4950
4951 # Broken: fails on valid input.
4952continue
4953fi
4954
4955rm -f conftest.err conftest.$ac_ext
4956
4957 # OK, works on sane cases. Now check whether nonexistent headers
4958 # can be detected and how.
4959 cat >conftest.$ac_ext <<_ACEOF
4960/* confdefs.h. */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h. */
4965#include <ac_nonexistent.h>
4966_ACEOF
4967if { (ac_try="$ac_cpp conftest.$ac_ext"
4968case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971esac
4972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00004979 (exit $ac_status); } >/dev/null && {
4980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004983 # Broken: success on invalid input.
4984continue
4985else
4986 echo "$as_me: failed program was:" >&5
4987sed 's/^/| /' conftest.$ac_ext >&5
4988
4989 # Passes both tests.
4990ac_preproc_ok=:
4991break
4992fi
4993
4994rm -f conftest.err conftest.$ac_ext
4995
4996done
4997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4998rm -f conftest.err conftest.$ac_ext
4999if $ac_preproc_ok; then
5000 break
5001fi
5002
5003 done
5004 ac_cv_prog_CPP=$CPP
5005
5006fi
5007 CPP=$ac_cv_prog_CPP
5008else
5009 ac_cv_prog_CPP=$CPP
5010fi
5011{ echo "$as_me:$LINENO: result: $CPP" >&5
5012echo "${ECHO_T}$CPP" >&6; }
5013ac_preproc_ok=false
5014for ac_c_preproc_warn_flag in '' yes
5015do
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h. */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h. */
5028#ifdef __STDC__
5029# include <limits.h>
5030#else
5031# include <assert.h>
5032#endif
5033 Syntax error
5034_ACEOF
5035if { (ac_try="$ac_cpp conftest.$ac_ext"
5036case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039esac
5040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005047 (exit $ac_status); } >/dev/null && {
5048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005051 :
5052else
5053 echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056 # Broken: fails on valid input.
5057continue
5058fi
5059
5060rm -f conftest.err conftest.$ac_ext
5061
5062 # OK, works on sane cases. Now check whether nonexistent headers
5063 # can be detected and how.
5064 cat >conftest.$ac_ext <<_ACEOF
5065/* confdefs.h. */
5066_ACEOF
5067cat confdefs.h >>conftest.$ac_ext
5068cat >>conftest.$ac_ext <<_ACEOF
5069/* end confdefs.h. */
5070#include <ac_nonexistent.h>
5071_ACEOF
5072if { (ac_try="$ac_cpp conftest.$ac_ext"
5073case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076esac
5077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005084 (exit $ac_status); } >/dev/null && {
5085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5087 }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005088 # Broken: success on invalid input.
5089continue
5090else
5091 echo "$as_me: failed program was:" >&5
5092sed 's/^/| /' conftest.$ac_ext >&5
5093
5094 # Passes both tests.
5095ac_preproc_ok=:
5096break
5097fi
5098
5099rm -f conftest.err conftest.$ac_ext
5100
5101done
5102# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103rm -f conftest.err conftest.$ac_ext
5104if $ac_preproc_ok; then
5105 :
5106else
5107 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5108See \`config.log' for more details." >&5
5109echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5110See \`config.log' for more details." >&2;}
5111 { (exit 1); exit 1; }; }
5112fi
5113
5114ac_ext=c
5115ac_cpp='$CPP $CPPFLAGS'
5116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119
5120ac_ext=c
5121ac_cpp='$CPP $CPPFLAGS'
5122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125if test -n "$ac_tool_prefix"; then
5126 for ac_prog in gcc
5127 do
5128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5129set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5132if test "${ac_cv_prog_CC+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135 if test -n "$CC"; then
5136 ac_cv_prog_CC="$CC" # Let the user override the test.
5137else
5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005144 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 +00005145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149done
5150done
5151IFS=$as_save_IFS
5152
5153fi
5154fi
5155CC=$ac_cv_prog_CC
5156if test -n "$CC"; then
5157 { echo "$as_me:$LINENO: result: $CC" >&5
5158echo "${ECHO_T}$CC" >&6; }
5159else
5160 { echo "$as_me:$LINENO: result: no" >&5
5161echo "${ECHO_T}no" >&6; }
5162fi
5163
5164
5165 test -n "$CC" && break
5166 done
5167fi
5168if test -z "$CC"; then
5169 ac_ct_CC=$CC
5170 for ac_prog in gcc
5171do
5172 # Extract the first word of "$ac_prog", so it can be a program name with args.
5173set dummy $ac_prog; ac_word=$2
5174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5176if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179 if test -n "$ac_ct_CC"; then
5180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005188 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 +00005189 ac_cv_prog_ac_ct_CC="$ac_prog"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193done
5194done
5195IFS=$as_save_IFS
5196
5197fi
5198fi
5199ac_ct_CC=$ac_cv_prog_ac_ct_CC
5200if test -n "$ac_ct_CC"; then
5201 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5202echo "${ECHO_T}$ac_ct_CC" >&6; }
5203else
5204 { echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6; }
5206fi
5207
5208
5209 test -n "$ac_ct_CC" && break
5210done
5211
5212 if test "x$ac_ct_CC" = x; then
5213 CC=""
5214 else
5215 case $cross_compiling:$ac_tool_warned in
5216yes:)
5217{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5218whose name does not start with the host triplet. If you think this
5219configuration is useful to you, please write to autoconf@gnu.org." >&5
5220echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5221whose name does not start with the host triplet. If you think this
5222configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5223ac_tool_warned=yes ;;
5224esac
5225 CC=$ac_ct_CC
5226 fi
5227fi
5228
5229
5230test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5231See \`config.log' for more details." >&5
5232echo "$as_me: error: no acceptable C compiler found in \$PATH
5233See \`config.log' for more details." >&2;}
5234 { (exit 1); exit 1; }; }
5235
5236# Provide some information about the compiler.
5237echo "$as_me:$LINENO: checking for C compiler version" >&5
5238ac_compiler=`set X $ac_compile; echo $2`
5239{ (ac_try="$ac_compiler --version >&5"
5240case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243esac
5244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_compiler --version >&5") 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }
5249{ (ac_try="$ac_compiler -v >&5"
5250case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253esac
5254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_compiler -v >&5") 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }
5259{ (ac_try="$ac_compiler -V >&5"
5260case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263esac
5264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compiler -V >&5") 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }
5269
5270{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5271echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5272if test "${ac_cv_c_compiler_gnu+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275 cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h. */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h. */
5281
5282int
5283main ()
5284{
5285#ifndef __GNUC__
5286 choke me
5287#endif
5288
5289 ;
5290 return 0;
5291}
5292_ACEOF
5293rm -f conftest.$ac_objext
5294if { (ac_try="$ac_compile"
5295case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298esac
5299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_compile") 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005306 (exit $ac_status); } && {
5307 test -z "$ac_c_werror_flag" ||
5308 test ! -s conftest.err
5309 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005310 ac_compiler_gnu=yes
5311else
5312 echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 ac_compiler_gnu=no
5316fi
5317
5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319ac_cv_c_compiler_gnu=$ac_compiler_gnu
5320
5321fi
5322{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5323echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5324GCC=`test $ac_compiler_gnu = yes && echo yes`
5325ac_test_CFLAGS=${CFLAGS+set}
5326ac_save_CFLAGS=$CFLAGS
5327{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5328echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5329if test "${ac_cv_prog_cc_g+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332 ac_save_c_werror_flag=$ac_c_werror_flag
5333 ac_c_werror_flag=yes
5334 ac_cv_prog_cc_g=no
5335 CFLAGS="-g"
5336 cat >conftest.$ac_ext <<_ACEOF
5337/* confdefs.h. */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h. */
5342
5343int
5344main ()
5345{
5346
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351rm -f conftest.$ac_objext
5352if { (ac_try="$ac_compile"
5353case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356esac
5357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005368 ac_cv_prog_cc_g=yes
5369else
5370 echo "$as_me: failed program was:" >&5
5371sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 CFLAGS=""
5374 cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h. */
5380
5381int
5382main ()
5383{
5384
5385 ;
5386 return 0;
5387}
5388_ACEOF
5389rm -f conftest.$ac_objext
5390if { (ac_try="$ac_compile"
5391case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394esac
5395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_compile") 2>conftest.er1
5397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005402 (exit $ac_status); } && {
5403 test -z "$ac_c_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005406 :
5407else
5408 echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 ac_c_werror_flag=$ac_save_c_werror_flag
5412 CFLAGS="-g"
5413 cat >conftest.$ac_ext <<_ACEOF
5414/* confdefs.h. */
5415_ACEOF
5416cat confdefs.h >>conftest.$ac_ext
5417cat >>conftest.$ac_ext <<_ACEOF
5418/* end confdefs.h. */
5419
5420int
5421main ()
5422{
5423
5424 ;
5425 return 0;
5426}
5427_ACEOF
5428rm -f conftest.$ac_objext
5429if { (ac_try="$ac_compile"
5430case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433esac
5434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_compile") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005445 ac_cv_prog_cc_g=yes
5446else
5447 echo "$as_me: failed program was:" >&5
5448sed 's/^/| /' conftest.$ac_ext >&5
5449
5450
5451fi
5452
5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454fi
5455
5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457fi
5458
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_c_werror_flag=$ac_save_c_werror_flag
5461fi
5462{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5463echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5464if test "$ac_test_CFLAGS" = set; then
5465 CFLAGS=$ac_save_CFLAGS
5466elif test $ac_cv_prog_cc_g = yes; then
5467 if test "$GCC" = yes; then
5468 CFLAGS="-g -O2"
5469 else
5470 CFLAGS="-g"
5471 fi
5472else
5473 if test "$GCC" = yes; then
5474 CFLAGS="-O2"
5475 else
5476 CFLAGS=
5477 fi
5478fi
5479{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5480echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5481if test "${ac_cv_prog_cc_c89+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 ac_cv_prog_cc_c89=no
5485ac_save_CC=$CC
5486cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
5492#include <stdarg.h>
5493#include <stdio.h>
5494#include <sys/types.h>
5495#include <sys/stat.h>
5496/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5497struct buf { int x; };
5498FILE * (*rcsopen) (struct buf *, struct stat *, int);
5499static char *e (p, i)
5500 char **p;
5501 int i;
5502{
5503 return p[i];
5504}
5505static char *f (char * (*g) (char **, int), char **p, ...)
5506{
5507 char *s;
5508 va_list v;
5509 va_start (v,p);
5510 s = g (p, va_arg (v,int));
5511 va_end (v);
5512 return s;
5513}
5514
5515/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5516 function prototypes and stuff, but not '\xHH' hex character constants.
5517 These don't provoke an error unfortunately, instead are silently treated
5518 as 'x'. The following induces an error, until -std is added to get
5519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5520 array size at least. It's necessary to write '\x00'==0 to get something
5521 that's true only with -std. */
5522int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5523
5524/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5525 inside strings and character constants. */
5526#define FOO(x) 'x'
5527int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5528
5529int test (int i, double x);
5530struct s1 {int (*f) (int a);};
5531struct s2 {int (*f) (double a);};
5532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5533int argc;
5534char **argv;
5535int
5536main ()
5537{
5538return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5539 ;
5540 return 0;
5541}
5542_ACEOF
5543for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5545do
5546 CC="$ac_save_CC $ac_arg"
5547 rm -f conftest.$ac_objext
5548if { (ac_try="$ac_compile"
5549case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005564 ac_cv_prog_cc_c89=$ac_arg
5565else
5566 echo "$as_me: failed program was:" >&5
5567sed 's/^/| /' conftest.$ac_ext >&5
5568
5569
5570fi
5571
5572rm -f core conftest.err conftest.$ac_objext
5573 test "x$ac_cv_prog_cc_c89" != "xno" && break
5574done
5575rm -f conftest.$ac_ext
5576CC=$ac_save_CC
5577
5578fi
5579# AC_CACHE_VAL
5580case "x$ac_cv_prog_cc_c89" in
5581 x)
5582 { echo "$as_me:$LINENO: result: none needed" >&5
5583echo "${ECHO_T}none needed" >&6; } ;;
5584 xno)
5585 { echo "$as_me:$LINENO: result: unsupported" >&5
5586echo "${ECHO_T}unsupported" >&6; } ;;
5587 *)
5588 CC="$CC $ac_cv_prog_cc_c89"
5589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5590echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5591esac
5592
5593
5594ac_ext=c
5595ac_cpp='$CPP $CPPFLAGS'
5596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5598ac_compiler_gnu=$ac_cv_c_compiler_gnu
5599
5600ac_ext=cpp
5601ac_cpp='$CXXCPP $CPPFLAGS'
5602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5605if test -z "$CXX"; then
5606 if test -n "$CCC"; then
5607 CXX=$CCC
5608 else
5609 if test -n "$ac_tool_prefix"; then
5610 for ac_prog in g++
5611 do
5612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5616if test "${ac_cv_prog_CXX+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619 if test -n "$CXX"; then
5620 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5621else
5622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623for as_dir in $PATH
5624do
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005628 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 +00005629 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5632 fi
5633done
5634done
5635IFS=$as_save_IFS
5636
5637fi
5638fi
5639CXX=$ac_cv_prog_CXX
5640if test -n "$CXX"; then
5641 { echo "$as_me:$LINENO: result: $CXX" >&5
5642echo "${ECHO_T}$CXX" >&6; }
5643else
5644 { echo "$as_me:$LINENO: result: no" >&5
5645echo "${ECHO_T}no" >&6; }
5646fi
5647
5648
5649 test -n "$CXX" && break
5650 done
5651fi
5652if test -z "$CXX"; then
5653 ac_ct_CXX=$CXX
5654 for ac_prog in g++
5655do
5656 # Extract the first word of "$ac_prog", so it can be a program name with args.
5657set dummy $ac_prog; ac_word=$2
5658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5660if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663 if test -n "$ac_ct_CXX"; then
5664 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005672 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 +00005673 ac_cv_prog_ac_ct_CXX="$ac_prog"
5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677done
5678done
5679IFS=$as_save_IFS
5680
5681fi
5682fi
5683ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5684if test -n "$ac_ct_CXX"; then
5685 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5686echo "${ECHO_T}$ac_ct_CXX" >&6; }
5687else
5688 { echo "$as_me:$LINENO: result: no" >&5
5689echo "${ECHO_T}no" >&6; }
5690fi
5691
5692
5693 test -n "$ac_ct_CXX" && break
5694done
5695
5696 if test "x$ac_ct_CXX" = x; then
5697 CXX="g++"
5698 else
5699 case $cross_compiling:$ac_tool_warned in
5700yes:)
5701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5702whose name does not start with the host triplet. If you think this
5703configuration is useful to you, please write to autoconf@gnu.org." >&5
5704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5705whose name does not start with the host triplet. If you think this
5706configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5707ac_tool_warned=yes ;;
5708esac
5709 CXX=$ac_ct_CXX
5710 fi
5711fi
5712
5713 fi
5714fi
5715# Provide some information about the compiler.
5716echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5717ac_compiler=`set X $ac_compile; echo $2`
5718{ (ac_try="$ac_compiler --version >&5"
5719case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compiler --version >&5") 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }
5728{ (ac_try="$ac_compiler -v >&5"
5729case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732esac
5733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compiler -v >&5") 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }
5738{ (ac_try="$ac_compiler -V >&5"
5739case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_compiler -V >&5") 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }
5748
5749{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5750echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5751if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753else
5754 cat >conftest.$ac_ext <<_ACEOF
5755/* confdefs.h. */
5756_ACEOF
5757cat confdefs.h >>conftest.$ac_ext
5758cat >>conftest.$ac_ext <<_ACEOF
5759/* end confdefs.h. */
5760
5761int
5762main ()
5763{
5764#ifndef __GNUC__
5765 choke me
5766#endif
5767
5768 ;
5769 return 0;
5770}
5771_ACEOF
5772rm -f conftest.$ac_objext
5773if { (ac_try="$ac_compile"
5774case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777esac
5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005785 (exit $ac_status); } && {
5786 test -z "$ac_cxx_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005789 ac_compiler_gnu=yes
5790else
5791 echo "$as_me: failed program was:" >&5
5792sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 ac_compiler_gnu=no
5795fi
5796
5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5799
5800fi
5801{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5802echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5803GXX=`test $ac_compiler_gnu = yes && echo yes`
5804ac_test_CXXFLAGS=${CXXFLAGS+set}
5805ac_save_CXXFLAGS=$CXXFLAGS
5806{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5807echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5808if test "${ac_cv_prog_cxx_g+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5812 ac_cxx_werror_flag=yes
5813 ac_cv_prog_cxx_g=no
5814 CXXFLAGS="-g"
5815 cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
5821
5822int
5823main ()
5824{
5825
5826 ;
5827 return 0;
5828}
5829_ACEOF
5830rm -f conftest.$ac_objext
5831if { (ac_try="$ac_compile"
5832case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835esac
5836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005843 (exit $ac_status); } && {
5844 test -z "$ac_cxx_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005847 ac_cv_prog_cxx_g=yes
5848else
5849 echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 CXXFLAGS=""
5853 cat >conftest.$ac_ext <<_ACEOF
5854/* confdefs.h. */
5855_ACEOF
5856cat confdefs.h >>conftest.$ac_ext
5857cat >>conftest.$ac_ext <<_ACEOF
5858/* end confdefs.h. */
5859
5860int
5861main ()
5862{
5863
5864 ;
5865 return 0;
5866}
5867_ACEOF
5868rm -f conftest.$ac_objext
5869if { (ac_try="$ac_compile"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005881 (exit $ac_status); } && {
5882 test -z "$ac_cxx_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005885 :
5886else
5887 echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5891 CXXFLAGS="-g"
5892 cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
5898
5899int
5900main ()
5901{
5902
5903 ;
5904 return 0;
5905}
5906_ACEOF
5907rm -f conftest.$ac_objext
5908if { (ac_try="$ac_compile"
5909case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5912esac
5913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005920 (exit $ac_status); } && {
5921 test -z "$ac_cxx_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00005924 ac_cv_prog_cxx_g=yes
5925else
5926 echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929
5930fi
5931
5932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933fi
5934
5935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936fi
5937
5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5940fi
5941{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5942echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5943if test "$ac_test_CXXFLAGS" = set; then
5944 CXXFLAGS=$ac_save_CXXFLAGS
5945elif test $ac_cv_prog_cxx_g = yes; then
5946 if test "$GXX" = yes; then
5947 CXXFLAGS="-g -O2"
5948 else
5949 CXXFLAGS="-g"
5950 fi
5951else
5952 if test "$GXX" = yes; then
5953 CXXFLAGS="-O2"
5954 else
5955 CXXFLAGS=
5956 fi
5957fi
5958ac_ext=c
5959ac_cpp='$CPP $CPPFLAGS'
5960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962ac_compiler_gnu=$ac_cv_c_compiler_gnu
5963
5964{ echo "$as_me:$LINENO: checking " >&5
5965echo $ECHO_N "checking ... $ECHO_C" >&6; }
5966if test "${ac_cv_has_flex+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 for ac_prog in flex lex
5970do
5971 # Extract the first word of "$ac_prog", so it can be a program name with args.
5972set dummy $ac_prog; ac_word=$2
5973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975if test "${ac_cv_prog_LEX+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978 if test -n "$LEX"; then
5979 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5980else
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00005987 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 +00005988 ac_cv_prog_LEX="$ac_prog"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992done
5993done
5994IFS=$as_save_IFS
5995
5996fi
5997fi
5998LEX=$ac_cv_prog_LEX
5999if test -n "$LEX"; then
6000 { echo "$as_me:$LINENO: result: $LEX" >&5
6001echo "${ECHO_T}$LEX" >&6; }
6002else
6003 { echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6; }
6005fi
6006
6007
6008 test -n "$LEX" && break
6009done
6010test -n "$LEX" || LEX=":"
6011
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006012if test "x$LEX" != "x:"; then
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006013 cat >conftest.l <<_ACEOF
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006014%%
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006015a { ECHO; }
6016b { REJECT; }
6017c { yymore (); }
6018d { yyless (1); }
6019e { yyless (input () != 0); }
6020f { unput (yytext[0]); }
6021. { BEGIN INITIAL; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006022%%
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006023#ifdef YYTEXT_POINTER
6024extern char *yytext;
6025#endif
6026int
6027main (void)
6028{
6029 return ! yylex () + ! yywrap ();
6030}
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006031_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006032{ (ac_try="$LEX conftest.l"
6033case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$LEX conftest.l") 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006042{ echo "$as_me:$LINENO: checking lex output file root" >&5
6043echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6044if test "${ac_cv_prog_lex_root+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047
Reid Spencera773bd52006-08-04 18:18:08 +00006048if test -f lex.yy.c; then
6049 ac_cv_prog_lex_root=lex.yy
6050elif test -f lexyy.c; then
6051 ac_cv_prog_lex_root=lexyy
6052else
6053 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6054echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6055 { (exit 1); exit 1; }; }
6056fi
6057fi
6058{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6059echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006060LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6061
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006062if test -z "${LEXLIB+set}"; then
6063 { echo "$as_me:$LINENO: checking lex library" >&5
6064echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
6065if test "${ac_cv_lib_lex+set}" = set; then
Torok Edwincc499a42008-10-22 09:56:27 +00006066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006068
6069 ac_save_LIBS=$LIBS
6070 ac_cv_lib_lex='none needed'
6071 for ac_lib in '' -lfl -ll; do
6072 LIBS="$ac_lib $ac_save_LIBS"
6073 cat >conftest.$ac_ext <<_ACEOF
Torok Edwincc499a42008-10-22 09:56:27 +00006074`cat $LEX_OUTPUT_ROOT.c`
6075_ACEOF
6076rm -f conftest.$ac_objext conftest$ac_exeext
6077if { (ac_try="$ac_link"
6078case "(($ac_try" in
Tanya Lattnercf067672008-01-17 05:57:22 +00006079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Torok Edwincc499a42008-10-22 09:56:27 +00006083 (eval "$ac_link") 2>conftest.er1
Tanya Lattnercf067672008-01-17 05:57:22 +00006084 ac_status=$?
Torok Edwincc499a42008-10-22 09:56:27 +00006085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest$ac_exeext &&
6093 $as_test_x conftest$ac_exeext; then
6094 ac_cv_lib_lex=$ac_lib
6095else
6096 echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
6098
6099
6100fi
6101
6102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6103 conftest$ac_exeext conftest.$ac_ext
6104 test "$ac_cv_lib_lex" != 'none needed' && break
6105 done
6106 LIBS=$ac_save_LIBS
6107
6108fi
6109{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
6110echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
6111 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6112fi
6113
6114
6115{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6116echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6117if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
6120 # POSIX says lex can declare yytext either as a pointer or an array; the
6121# default is implementation-dependent. Figure out which it is, since
6122# not all implementations provide the %pointer and %array declarations.
6123ac_cv_prog_lex_yytext_pointer=no
6124ac_save_LIBS=$LIBS
6125LIBS="$LEXLIB $ac_save_LIBS"
6126cat >conftest.$ac_ext <<_ACEOF
6127#define YYTEXT_POINTER 1
6128`cat $LEX_OUTPUT_ROOT.c`
6129_ACEOF
6130rm -f conftest.$ac_objext conftest$ac_exeext
6131if { (ac_try="$ac_link"
6132case "(($ac_try" in
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006137 (eval "$ac_link") 2>conftest.er1
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006138 ac_status=$?
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest$ac_exeext &&
6147 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00006148 ac_cv_prog_lex_yytext_pointer=yes
6149else
6150 echo "$as_me: failed program was:" >&5
6151sed 's/^/| /' conftest.$ac_ext >&5
6152
6153
6154fi
6155
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00006157 conftest$ac_exeext conftest.$ac_ext
6158LIBS=$ac_save_LIBS
Reid Spencera773bd52006-08-04 18:18:08 +00006159
6160fi
6161{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6162echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6163if test $ac_cv_prog_lex_yytext_pointer = yes; then
6164
6165cat >>confdefs.h <<\_ACEOF
6166#define YYTEXT_POINTER 1
6167_ACEOF
6168
6169fi
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006170rm -f conftest.l $LEX_OUTPUT_ROOT.c
Reid Spencera773bd52006-08-04 18:18:08 +00006171
6172fi
6173
6174fi
6175{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6176echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6177if test "$LEX" != "flex"; then
6178 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6179echo "$as_me: error: flex not found but required" >&2;}
6180 { (exit 1); exit 1; }; }
6181else
6182 FLEX=flex
6183
6184fi
6185
6186{ echo "$as_me:$LINENO: checking " >&5
6187echo $ECHO_N "checking ... $ECHO_C" >&6; }
6188if test "${llvm_cv_has_bison+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191 for ac_prog in 'bison -y' byacc
6192do
6193 # Extract the first word of "$ac_prog", so it can be a program name with args.
6194set dummy $ac_prog; ac_word=$2
6195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197if test "${ac_cv_prog_YACC+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 if test -n "$YACC"; then
6201 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006209 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 +00006210 ac_cv_prog_YACC="$ac_prog"
6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214done
6215done
6216IFS=$as_save_IFS
6217
6218fi
6219fi
6220YACC=$ac_cv_prog_YACC
6221if test -n "$YACC"; then
6222 { echo "$as_me:$LINENO: result: $YACC" >&5
6223echo "${ECHO_T}$YACC" >&6; }
6224else
6225 { echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6; }
6227fi
6228
6229
6230 test -n "$YACC" && break
6231done
6232test -n "$YACC" || YACC="yacc"
6233
6234fi
6235{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6236echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6237if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006238
6239 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6240echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006241else
6242 BISON=bison
6243
6244fi
6245
6246{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6247echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6248if test "${lt_cv_path_NM+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250else
6251 if test -n "$NM"; then
6252 # Let the user override the test.
6253 lt_cv_path_NM="$NM"
6254else
6255 lt_nm_to_check="${ac_tool_prefix}nm"
6256 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6257 lt_nm_to_check="$lt_nm_to_check nm"
6258 fi
6259 for lt_tmp_nm in $lt_nm_to_check; do
6260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6261 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6262 IFS="$lt_save_ifs"
6263 test -z "$ac_dir" && ac_dir=.
6264 tmp_nm="$ac_dir/$lt_tmp_nm"
6265 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6266 # Check to see if the nm accepts a BSD-compat flag.
6267 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6268 # nm: unknown option "B" ignored
6269 # Tru64's nm complains that /dev/null is an invalid object file
6270 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6271 */dev/null* | *'Invalid file or object type'*)
6272 lt_cv_path_NM="$tmp_nm -B"
6273 break
6274 ;;
6275 *)
6276 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6277 */dev/null*)
6278 lt_cv_path_NM="$tmp_nm -p"
6279 break
6280 ;;
6281 *)
6282 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6283 continue # so that we can try to find one that supports BSD flags
6284 ;;
6285 esac
6286 ;;
6287 esac
6288 fi
6289 done
6290 IFS="$lt_save_ifs"
6291 done
6292 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6293fi
6294fi
6295{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6296echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6297NM="$lt_cv_path_NM"
6298
6299
6300
6301{ echo "$as_me:$LINENO: checking for GNU make" >&5
6302echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6303if test "${llvm_cv_gnu_make_command+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306 llvm_cv_gnu_make_command=''
6307 for a in "$MAKE" make gmake gnumake ; do
6308 if test -z "$a" ; then continue ; fi ;
6309 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6310 then
6311 llvm_cv_gnu_make_command=$a ;
6312 break;
6313 fi
6314 done
6315fi
6316{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6317echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6318 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6319 ifGNUmake='' ;
6320 else
6321 ifGNUmake='#' ;
6322 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6323echo "${ECHO_T}\"Not found\"" >&6; };
6324 fi
6325
6326
6327{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6328echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6329LN_S=$as_ln_s
6330if test "$LN_S" = "ln -s"; then
6331 { echo "$as_me:$LINENO: result: yes" >&5
6332echo "${ECHO_T}yes" >&6; }
6333else
6334 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6335echo "${ECHO_T}no, using $LN_S" >&6; }
6336fi
6337
6338# Extract the first word of "cmp", so it can be a program name with args.
6339set dummy cmp; ac_word=$2
6340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342if test "${ac_cv_path_CMP+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344else
6345 case $CMP in
6346 [\\/]* | ?:[\\/]*)
6347 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6348 ;;
6349 *)
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006356 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 +00006357 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361done
6362done
6363IFS=$as_save_IFS
6364
6365 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6366 ;;
6367esac
6368fi
6369CMP=$ac_cv_path_CMP
6370if test -n "$CMP"; then
6371 { echo "$as_me:$LINENO: result: $CMP" >&5
6372echo "${ECHO_T}$CMP" >&6; }
6373else
6374 { echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6; }
6376fi
6377
6378
6379# Extract the first word of "cp", so it can be a program name with args.
6380set dummy cp; ac_word=$2
6381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383if test "${ac_cv_path_CP+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386 case $CP in
6387 [\\/]* | ?:[\\/]*)
6388 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6389 ;;
6390 *)
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006397 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 +00006398 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6401 fi
6402done
6403done
6404IFS=$as_save_IFS
6405
6406 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6407 ;;
6408esac
6409fi
6410CP=$ac_cv_path_CP
6411if test -n "$CP"; then
6412 { echo "$as_me:$LINENO: result: $CP" >&5
6413echo "${ECHO_T}$CP" >&6; }
6414else
6415 { echo "$as_me:$LINENO: result: no" >&5
6416echo "${ECHO_T}no" >&6; }
6417fi
6418
6419
6420# Extract the first word of "date", so it can be a program name with args.
6421set dummy date; ac_word=$2
6422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6424if test "${ac_cv_path_DATE+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427 case $DATE in
6428 [\\/]* | ?:[\\/]*)
6429 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6430 ;;
6431 *)
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433for as_dir in $PATH
6434do
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006438 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 +00006439 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 break 2
6442 fi
6443done
6444done
6445IFS=$as_save_IFS
6446
6447 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6448 ;;
6449esac
6450fi
6451DATE=$ac_cv_path_DATE
6452if test -n "$DATE"; then
6453 { echo "$as_me:$LINENO: result: $DATE" >&5
6454echo "${ECHO_T}$DATE" >&6; }
6455else
6456 { echo "$as_me:$LINENO: result: no" >&5
6457echo "${ECHO_T}no" >&6; }
6458fi
6459
6460
6461# Extract the first word of "find", so it can be a program name with args.
6462set dummy find; ac_word=$2
6463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465if test "${ac_cv_path_FIND+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467else
6468 case $FIND in
6469 [\\/]* | ?:[\\/]*)
6470 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6471 ;;
6472 *)
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006479 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 +00006480 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
6484done
6485done
6486IFS=$as_save_IFS
6487
6488 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6489 ;;
6490esac
6491fi
6492FIND=$ac_cv_path_FIND
6493if test -n "$FIND"; then
6494 { echo "$as_me:$LINENO: result: $FIND" >&5
6495echo "${ECHO_T}$FIND" >&6; }
6496else
6497 { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6; }
6499fi
6500
6501
6502# Extract the first word of "grep", so it can be a program name with args.
6503set dummy grep; ac_word=$2
6504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506if test "${ac_cv_path_GREP+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 case $GREP in
6510 [\\/]* | ?:[\\/]*)
6511 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6512 ;;
6513 *)
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006520 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 +00006521 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6524 fi
6525done
6526done
6527IFS=$as_save_IFS
6528
6529 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6530 ;;
6531esac
6532fi
6533GREP=$ac_cv_path_GREP
6534if test -n "$GREP"; then
6535 { echo "$as_me:$LINENO: result: $GREP" >&5
6536echo "${ECHO_T}$GREP" >&6; }
6537else
6538 { echo "$as_me:$LINENO: result: no" >&5
6539echo "${ECHO_T}no" >&6; }
6540fi
6541
6542
6543# Extract the first word of "mkdir", so it can be a program name with args.
6544set dummy mkdir; ac_word=$2
6545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547if test "${ac_cv_path_MKDIR+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549else
6550 case $MKDIR in
6551 [\\/]* | ?:[\\/]*)
6552 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6553 ;;
6554 *)
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006561 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 +00006562 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566done
6567done
6568IFS=$as_save_IFS
6569
6570 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6571 ;;
6572esac
6573fi
6574MKDIR=$ac_cv_path_MKDIR
6575if test -n "$MKDIR"; then
6576 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6577echo "${ECHO_T}$MKDIR" >&6; }
6578else
6579 { echo "$as_me:$LINENO: result: no" >&5
6580echo "${ECHO_T}no" >&6; }
6581fi
6582
6583
6584# Extract the first word of "mv", so it can be a program name with args.
6585set dummy mv; ac_word=$2
6586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588if test "${ac_cv_path_MV+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590else
6591 case $MV in
6592 [\\/]* | ?:[\\/]*)
6593 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6594 ;;
6595 *)
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006602 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 +00006603 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607done
6608done
6609IFS=$as_save_IFS
6610
6611 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6612 ;;
6613esac
6614fi
6615MV=$ac_cv_path_MV
6616if test -n "$MV"; then
6617 { echo "$as_me:$LINENO: result: $MV" >&5
6618echo "${ECHO_T}$MV" >&6; }
6619else
6620 { echo "$as_me:$LINENO: result: no" >&5
6621echo "${ECHO_T}no" >&6; }
6622fi
6623
6624
6625if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6627set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630if test "${ac_cv_prog_RANLIB+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633 if test -n "$RANLIB"; then
6634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006642 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 +00006643 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647done
6648done
6649IFS=$as_save_IFS
6650
6651fi
6652fi
6653RANLIB=$ac_cv_prog_RANLIB
6654if test -n "$RANLIB"; then
6655 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6656echo "${ECHO_T}$RANLIB" >&6; }
6657else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
6660fi
6661
6662
6663fi
6664if test -z "$ac_cv_prog_RANLIB"; then
6665 ac_ct_RANLIB=$RANLIB
6666 # Extract the first word of "ranlib", so it can be a program name with args.
6667set dummy ranlib; ac_word=$2
6668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673 if test -n "$ac_ct_RANLIB"; then
6674 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006682 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 +00006683 ac_cv_prog_ac_ct_RANLIB="ranlib"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687done
6688done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6694if test -n "$ac_ct_RANLIB"; then
6695 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6696echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6697else
6698 { echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6; }
6700fi
6701
6702 if test "x$ac_ct_RANLIB" = x; then
6703 RANLIB=":"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706yes:)
6707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708whose name does not start with the host triplet. If you think this
6709configuration is useful to you, please write to autoconf@gnu.org." >&5
6710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711whose name does not start with the host triplet. If you think this
6712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713ac_tool_warned=yes ;;
6714esac
6715 RANLIB=$ac_ct_RANLIB
6716 fi
6717else
6718 RANLIB="$ac_cv_prog_RANLIB"
6719fi
6720
6721# Extract the first word of "rm", so it can be a program name with args.
6722set dummy rm; ac_word=$2
6723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725if test "${ac_cv_path_RM+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727else
6728 case $RM in
6729 [\\/]* | ?:[\\/]*)
6730 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6731 ;;
6732 *)
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006739 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 +00006740 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744done
6745done
6746IFS=$as_save_IFS
6747
6748 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6749 ;;
6750esac
6751fi
6752RM=$ac_cv_path_RM
6753if test -n "$RM"; then
6754 { echo "$as_me:$LINENO: result: $RM" >&5
6755echo "${ECHO_T}$RM" >&6; }
6756else
6757 { echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6; }
6759fi
6760
6761
6762# Extract the first word of "sed", so it can be a program name with args.
6763set dummy sed; ac_word=$2
6764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766if test "${ac_cv_path_SED+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769 case $SED in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6772 ;;
6773 *)
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006780 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 +00006781 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785done
6786done
6787IFS=$as_save_IFS
6788
6789 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6790 ;;
6791esac
6792fi
6793SED=$ac_cv_path_SED
6794if test -n "$SED"; then
6795 { echo "$as_me:$LINENO: result: $SED" >&5
6796echo "${ECHO_T}$SED" >&6; }
6797else
6798 { echo "$as_me:$LINENO: result: no" >&5
6799echo "${ECHO_T}no" >&6; }
6800fi
6801
6802
6803# Extract the first word of "tar", so it can be a program name with args.
6804set dummy tar; ac_word=$2
6805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807if test "${ac_cv_path_TAR+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809else
6810 case $TAR in
6811 [\\/]* | ?:[\\/]*)
6812 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6813 ;;
6814 *)
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006821 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 +00006822 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826done
6827done
6828IFS=$as_save_IFS
6829
6830 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6831 ;;
6832esac
6833fi
6834TAR=$ac_cv_path_TAR
6835if test -n "$TAR"; then
6836 { echo "$as_me:$LINENO: result: $TAR" >&5
6837echo "${ECHO_T}$TAR" >&6; }
6838else
6839 { echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6; }
6841fi
6842
6843
6844# Extract the first word of "pwd", so it can be a program name with args.
6845set dummy pwd; ac_word=$2
6846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848if test "${ac_cv_path_BINPWD+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851 case $BINPWD in
6852 [\\/]* | ?:[\\/]*)
6853 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6854 ;;
6855 *)
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006862 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 +00006863 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867done
6868done
6869IFS=$as_save_IFS
6870
6871 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6872 ;;
6873esac
6874fi
6875BINPWD=$ac_cv_path_BINPWD
6876if test -n "$BINPWD"; then
6877 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6878echo "${ECHO_T}$BINPWD" >&6; }
6879else
6880 { echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6; }
6882fi
6883
6884
6885
6886# Extract the first word of "Graphviz", so it can be a program name with args.
6887set dummy Graphviz; ac_word=$2
6888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893 case $GRAPHVIZ in
6894 [\\/]* | ?:[\\/]*)
6895 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6896 ;;
6897 *)
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006904 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 +00006905 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910done
6911IFS=$as_save_IFS
6912
6913 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6914 ;;
6915esac
6916fi
6917GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6918if test -n "$GRAPHVIZ"; then
6919 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6920echo "${ECHO_T}$GRAPHVIZ" >&6; }
6921else
6922 { echo "$as_me:$LINENO: result: no" >&5
6923echo "${ECHO_T}no" >&6; }
6924fi
6925
6926
6927if test "$GRAPHVIZ" != "echo Graphviz" ; then
6928
6929cat >>confdefs.h <<\_ACEOF
6930#define HAVE_GRAPHVIZ 1
6931_ACEOF
6932
Jeff Cohen28783c32007-01-12 18:22:38 +00006933 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006934 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6935 fi
6936
6937cat >>confdefs.h <<_ACEOF
6938#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6939_ACEOF
6940
6941fi
6942# Extract the first word of "dot", so it can be a program name with args.
6943set dummy dot; ac_word=$2
6944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946if test "${ac_cv_path_DOT+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949 case $DOT in
6950 [\\/]* | ?:[\\/]*)
6951 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6952 ;;
6953 *)
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006960 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 +00006961 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965done
6966done
6967IFS=$as_save_IFS
6968
6969 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6970 ;;
6971esac
6972fi
6973DOT=$ac_cv_path_DOT
6974if test -n "$DOT"; then
6975 { echo "$as_me:$LINENO: result: $DOT" >&5
6976echo "${ECHO_T}$DOT" >&6; }
6977else
6978 { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
6980fi
6981
6982
6983if test "$DOT" != "echo dot" ; then
6984
6985cat >>confdefs.h <<\_ACEOF
6986#define HAVE_DOT 1
6987_ACEOF
6988
Jeff Cohen28783c32007-01-12 18:22:38 +00006989 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006990 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6991 fi
6992
6993cat >>confdefs.h <<_ACEOF
6994#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6995_ACEOF
6996
6997fi
6998for ac_prog in gv gsview32
6999do
7000 # Extract the first word of "$ac_prog", so it can be a program name with args.
7001set dummy $ac_prog; ac_word=$2
7002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004if test "${ac_cv_path_GV+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006else
7007 case $GV in
7008 [\\/]* | ?:[\\/]*)
7009 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7010 ;;
7011 *)
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007018 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 +00007019 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023done
7024done
7025IFS=$as_save_IFS
7026
7027 ;;
7028esac
7029fi
7030GV=$ac_cv_path_GV
7031if test -n "$GV"; then
7032 { echo "$as_me:$LINENO: result: $GV" >&5
7033echo "${ECHO_T}$GV" >&6; }
7034else
7035 { echo "$as_me:$LINENO: result: no" >&5
7036echo "${ECHO_T}no" >&6; }
7037fi
7038
7039
7040 test -n "$GV" && break
7041done
7042test -n "$GV" || GV="echo gv"
7043
7044if test "$GV" != "echo gv" ; then
7045
7046cat >>confdefs.h <<\_ACEOF
7047#define HAVE_GV 1
7048_ACEOF
7049
Jeff Cohen28783c32007-01-12 18:22:38 +00007050 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007051 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7052 fi
7053
7054cat >>confdefs.h <<_ACEOF
7055#define LLVM_PATH_GV "$GV${EXEEXT}"
7056_ACEOF
7057
7058fi
7059# Extract the first word of "dotty", so it can be a program name with args.
7060set dummy dotty; ac_word=$2
7061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063if test "${ac_cv_path_DOTTY+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065else
7066 case $DOTTY in
7067 [\\/]* | ?:[\\/]*)
7068 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7069 ;;
7070 *)
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007077 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 +00007078 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082done
7083done
7084IFS=$as_save_IFS
7085
7086 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7087 ;;
7088esac
7089fi
7090DOTTY=$ac_cv_path_DOTTY
7091if test -n "$DOTTY"; then
7092 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7093echo "${ECHO_T}$DOTTY" >&6; }
7094else
7095 { echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6; }
7097fi
7098
7099
7100if test "$DOTTY" != "echo dotty" ; then
7101
7102cat >>confdefs.h <<\_ACEOF
7103#define HAVE_DOTTY 1
7104_ACEOF
7105
Jeff Cohen28783c32007-01-12 18:22:38 +00007106 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007107 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7108 fi
7109
7110cat >>confdefs.h <<_ACEOF
7111#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7112_ACEOF
7113
7114fi
7115
7116
7117# Extract the first word of "perl", so it can be a program name with args.
7118set dummy perl; ac_word=$2
7119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121if test "${ac_cv_path_PERL+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124 case $PERL in
7125 [\\/]* | ?:[\\/]*)
7126 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7127 ;;
7128 *)
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007135 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 +00007136 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140done
7141done
7142IFS=$as_save_IFS
7143
7144 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7145 ;;
7146esac
7147fi
7148PERL=$ac_cv_path_PERL
7149if test -n "$PERL"; then
7150 { echo "$as_me:$LINENO: result: $PERL" >&5
7151echo "${ECHO_T}$PERL" >&6; }
7152else
7153 { echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6; }
7155fi
7156
7157
7158if test "$PERL" != "none"; then
7159 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7160echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7161 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7162 { echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6; }
7164 else
7165 PERL=none
7166 { echo "$as_me:$LINENO: result: not found" >&5
7167echo "${ECHO_T}not found" >&6; }
7168 fi
7169fi
7170
7171
7172if test x"$PERL" = xnone; then
7173 HAVE_PERL=0
7174
Reid Spencer59807fa2007-05-17 18:11:03 +00007175 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7176echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7177 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007178else
7179 HAVE_PERL=1
7180
7181fi
7182
7183# Find a good install program. We prefer a C program (faster),
7184# so one script is as good as another. But avoid the broken or
7185# incompatible versions:
7186# SysV /etc/install, /usr/sbin/install
7187# SunOS /usr/etc/install
7188# IRIX /sbin/install
7189# AIX /bin/install
7190# AmigaOS /C/install, which installs bootblocks on floppy discs
7191# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7192# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7193# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7194# OS/2's system install, which has a completely different semantic
7195# ./install, which can be erroneously created by make from ./install.sh.
7196{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7197echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7198if test -z "$INSTALL"; then
7199if test "${ac_cv_path_install+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 # Account for people who put trailing slashes in PATH elements.
7208case $as_dir/ in
7209 ./ | .// | /cC/* | \
7210 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7211 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7212 /usr/ucb/* ) ;;
7213 *)
7214 # OSF1 and SCO ODT 3.0 have their own names for install.
7215 # Don't use installbsd from OSF since it installs stuff as root
7216 # by default.
7217 for ac_prog in ginstall scoinst install; do
7218 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007219 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 +00007220 if test $ac_prog = install &&
7221 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7222 # AIX install. It has an incompatible calling convention.
7223 :
7224 elif test $ac_prog = install &&
7225 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7226 # program-specific install script used by HP pwplus--don't use.
7227 :
7228 else
7229 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7230 break 3
7231 fi
7232 fi
7233 done
7234 done
7235 ;;
7236esac
7237done
7238IFS=$as_save_IFS
7239
7240
7241fi
7242 if test "${ac_cv_path_install+set}" = set; then
7243 INSTALL=$ac_cv_path_install
7244 else
7245 # As a last resort, use the slow shell script. Don't cache a
7246 # value for INSTALL within a source directory, because that will
7247 # break other packages using the cache if that directory is
7248 # removed, or if the value is a relative name.
7249 INSTALL=$ac_install_sh
7250 fi
7251fi
7252{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7253echo "${ECHO_T}$INSTALL" >&6; }
7254
7255# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7256# It thinks the first close brace ends the variable substitution.
7257test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7258
7259test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7260
7261test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7262
7263
7264# Extract the first word of "bzip2", so it can be a program name with args.
7265set dummy bzip2; ac_word=$2
7266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268if test "${ac_cv_path_BZIP2+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271 case $BZIP2 in
7272 [\\/]* | ?:[\\/]*)
7273 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7274 ;;
7275 *)
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007282 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 +00007283 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7286 fi
7287done
7288done
7289IFS=$as_save_IFS
7290
Reid Spencera773bd52006-08-04 18:18:08 +00007291 ;;
7292esac
7293fi
7294BZIP2=$ac_cv_path_BZIP2
7295if test -n "$BZIP2"; then
7296 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7297echo "${ECHO_T}$BZIP2" >&6; }
7298else
7299 { echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6; }
7301fi
7302
7303
7304# Extract the first word of "doxygen", so it can be a program name with args.
7305set dummy doxygen; ac_word=$2
7306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308if test "${ac_cv_path_DOXYGEN+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 case $DOXYGEN in
7312 [\\/]* | ?:[\\/]*)
7313 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7314 ;;
7315 *)
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007322 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 +00007323 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7326 fi
7327done
7328done
7329IFS=$as_save_IFS
7330
Reid Spencera773bd52006-08-04 18:18:08 +00007331 ;;
7332esac
7333fi
7334DOXYGEN=$ac_cv_path_DOXYGEN
7335if test -n "$DOXYGEN"; then
7336 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7337echo "${ECHO_T}$DOXYGEN" >&6; }
7338else
7339 { echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6; }
7341fi
7342
7343
Reid Spencera773bd52006-08-04 18:18:08 +00007344# Extract the first word of "groff", so it can be a program name with args.
7345set dummy groff; ac_word=$2
7346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348if test "${ac_cv_path_GROFF+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 case $GROFF in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7354 ;;
7355 *)
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007362 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 +00007363 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367done
7368done
7369IFS=$as_save_IFS
7370
Reid Spencera773bd52006-08-04 18:18:08 +00007371 ;;
7372esac
7373fi
7374GROFF=$ac_cv_path_GROFF
7375if test -n "$GROFF"; then
7376 { echo "$as_me:$LINENO: result: $GROFF" >&5
7377echo "${ECHO_T}$GROFF" >&6; }
7378else
7379 { echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6; }
7381fi
7382
7383
7384# Extract the first word of "gzip", so it can be a program name with args.
7385set dummy gzip; ac_word=$2
7386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388if test "${ac_cv_path_GZIP+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391 case $GZIP in
7392 [\\/]* | ?:[\\/]*)
7393 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7394 ;;
7395 *)
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007402 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 +00007403 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407done
7408done
7409IFS=$as_save_IFS
7410
Reid Spencera773bd52006-08-04 18:18:08 +00007411 ;;
7412esac
7413fi
7414GZIP=$ac_cv_path_GZIP
7415if test -n "$GZIP"; then
7416 { echo "$as_me:$LINENO: result: $GZIP" >&5
7417echo "${ECHO_T}$GZIP" >&6; }
7418else
7419 { echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6; }
7421fi
7422
7423
7424# Extract the first word of "pod2html", so it can be a program name with args.
7425set dummy pod2html; ac_word=$2
7426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428if test "${ac_cv_path_POD2HTML+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431 case $POD2HTML in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7434 ;;
7435 *)
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007442 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 +00007443 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447done
7448done
7449IFS=$as_save_IFS
7450
Reid Spencera773bd52006-08-04 18:18:08 +00007451 ;;
7452esac
7453fi
7454POD2HTML=$ac_cv_path_POD2HTML
7455if test -n "$POD2HTML"; then
7456 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7457echo "${ECHO_T}$POD2HTML" >&6; }
7458else
7459 { echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6; }
7461fi
7462
7463
7464# Extract the first word of "pod2man", so it can be a program name with args.
7465set dummy pod2man; ac_word=$2
7466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468if test "${ac_cv_path_POD2MAN+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 case $POD2MAN in
7472 [\\/]* | ?:[\\/]*)
7473 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7474 ;;
7475 *)
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007482 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 +00007483 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487done
7488done
7489IFS=$as_save_IFS
7490
Reid Spencera773bd52006-08-04 18:18:08 +00007491 ;;
7492esac
7493fi
7494POD2MAN=$ac_cv_path_POD2MAN
7495if test -n "$POD2MAN"; then
7496 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7497echo "${ECHO_T}$POD2MAN" >&6; }
7498else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
7501fi
7502
7503
7504# Extract the first word of "runtest", so it can be a program name with args.
7505set dummy runtest; ac_word=$2
7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_RUNTEST+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 case $RUNTEST in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7514 ;;
7515 *)
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007522 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 +00007523 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528done
7529IFS=$as_save_IFS
7530
Reid Spencera773bd52006-08-04 18:18:08 +00007531 ;;
7532esac
7533fi
7534RUNTEST=$ac_cv_path_RUNTEST
7535if test -n "$RUNTEST"; then
7536 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7537echo "${ECHO_T}$RUNTEST" >&6; }
7538else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6; }
7541fi
7542
7543
7544
7545no_itcl=true
7546{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7547echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7548
7549# Check whether --with-tclinclude was given.
7550if test "${with_tclinclude+set}" = set; then
7551 withval=$with_tclinclude; with_tclinclude=${withval}
7552else
7553 with_tclinclude=''
7554fi
7555
7556if test "${ac_cv_path_tclsh+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558else
7559
7560if test x"${with_tclinclude}" != x ; then
7561 if test -f ${with_tclinclude}/tclsh ; then
7562 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7563 elif test -f ${with_tclinclude}/src/tclsh ; then
7564 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7565 else
7566 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7567echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7568 { (exit 1); exit 1; }; }
7569 fi
7570fi
7571
7572if test x"${ac_cv_path_tclsh}" = x ; then
7573 { echo "$as_me:$LINENO: result: none" >&5
7574echo "${ECHO_T}none" >&6; }
7575 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
7576do
7577 # Extract the first word of "$ac_prog", so it can be a program name with args.
7578set dummy $ac_prog; ac_word=$2
7579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581if test "${ac_cv_path_TCLSH+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583else
7584 case $TCLSH in
7585 [\\/]* | ?:[\\/]*)
7586 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7587 ;;
7588 *)
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007595 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 +00007596 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7599 fi
7600done
7601done
7602IFS=$as_save_IFS
7603
7604 ;;
7605esac
7606fi
7607TCLSH=$ac_cv_path_TCLSH
7608if test -n "$TCLSH"; then
7609 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7610echo "${ECHO_T}$TCLSH" >&6; }
7611else
7612 { echo "$as_me:$LINENO: result: no" >&5
7613echo "${ECHO_T}no" >&6; }
7614fi
7615
7616
7617 test -n "$TCLSH" && break
7618done
7619
7620 if test x"${TCLSH}" = x ; then
7621 ac_cv_path_tclsh='';
7622 else
7623 ac_cv_path_tclsh="${TCLSH}";
7624 fi
7625else
7626 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7627echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7628 TCLSH="${ac_cv_path_tclsh}"
7629
7630fi
7631
7632fi
7633
7634# Extract the first word of "zip", so it can be a program name with args.
7635set dummy zip; ac_word=$2
7636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638if test "${ac_cv_path_ZIP+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641 case $ZIP in
7642 [\\/]* | ?:[\\/]*)
7643 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7644 ;;
7645 *)
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007652 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 +00007653 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7656 fi
7657done
7658done
7659IFS=$as_save_IFS
7660
Reid Spencera773bd52006-08-04 18:18:08 +00007661 ;;
7662esac
7663fi
7664ZIP=$ac_cv_path_ZIP
7665if test -n "$ZIP"; then
7666 { echo "$as_me:$LINENO: result: $ZIP" >&5
7667echo "${ECHO_T}$ZIP" >&6; }
7668else
7669 { echo "$as_me:$LINENO: result: no" >&5
7670echo "${ECHO_T}no" >&6; }
7671fi
7672
7673
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007674for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007675do
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680if test "${ac_cv_path_OCAMLC+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683 case $OCAMLC in
7684 [\\/]* | ?:[\\/]*)
7685 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7686 ;;
7687 *)
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007694 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 +00007695 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7698 fi
7699done
7700done
7701IFS=$as_save_IFS
7702
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007703 ;;
7704esac
7705fi
7706OCAMLC=$ac_cv_path_OCAMLC
7707if test -n "$OCAMLC"; then
7708 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7709echo "${ECHO_T}$OCAMLC" >&6; }
7710else
7711 { echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6; }
7713fi
7714
7715
Gordon Henriksene7072162008-03-07 18:20:01 +00007716 test -n "$OCAMLC" && break
7717done
7718
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007719for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007720do
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else
7728 case $OCAMLOPT in
7729 [\\/]* | ?:[\\/]*)
7730 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7731 ;;
7732 *)
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007739 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 +00007740 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744done
7745done
7746IFS=$as_save_IFS
7747
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007748 ;;
7749esac
7750fi
7751OCAMLOPT=$ac_cv_path_OCAMLOPT
7752if test -n "$OCAMLOPT"; then
7753 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7754echo "${ECHO_T}$OCAMLOPT" >&6; }
7755else
7756 { echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6; }
7758fi
7759
7760
Gordon Henriksene7072162008-03-07 18:20:01 +00007761 test -n "$OCAMLOPT" && break
7762done
7763
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007764for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007765do
7766 # Extract the first word of "$ac_prog", so it can be a program name with args.
7767set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7770if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7772else
7773 case $OCAMLDEP in
7774 [\\/]* | ?:[\\/]*)
7775 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7776 ;;
7777 *)
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007784 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 +00007785 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789done
7790done
7791IFS=$as_save_IFS
7792
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007793 ;;
7794esac
7795fi
7796OCAMLDEP=$ac_cv_path_OCAMLDEP
7797if test -n "$OCAMLDEP"; then
7798 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7799echo "${ECHO_T}$OCAMLDEP" >&6; }
7800else
7801 { echo "$as_me:$LINENO: result: no" >&5
7802echo "${ECHO_T}no" >&6; }
7803fi
7804
7805
Gordon Henriksene7072162008-03-07 18:20:01 +00007806 test -n "$OCAMLDEP" && break
7807done
7808
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007809for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007810do
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812set dummy $ac_prog; ac_word=$2
7813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7815if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817else
7818 case $OCAMLDOC in
7819 [\\/]* | ?:[\\/]*)
7820 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7821 ;;
7822 *)
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824for as_dir in $PATH
7825do
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007830 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7833 fi
7834done
7835done
7836IFS=$as_save_IFS
7837
7838 ;;
7839esac
7840fi
7841OCAMLDOC=$ac_cv_path_OCAMLDOC
7842if test -n "$OCAMLDOC"; then
7843 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7844echo "${ECHO_T}$OCAMLDOC" >&6; }
7845else
7846 { echo "$as_me:$LINENO: result: no" >&5
7847echo "${ECHO_T}no" >&6; }
7848fi
7849
7850
7851 test -n "$OCAMLDOC" && break
7852done
7853
Torok Edwincc499a42008-10-22 09:56:27 +00007854for ac_prog in gas as
7855do
7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
7857set dummy $ac_prog; ac_word=$2
7858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7860if test "${ac_cv_path_GAS+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862else
7863 case $GAS in
7864 [\\/]* | ?:[\\/]*)
7865 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7866 ;;
7867 *)
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869for as_dir in $PATH
7870do
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00007875 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7878 fi
7879done
7880done
7881IFS=$as_save_IFS
7882
7883 ;;
7884esac
7885fi
7886GAS=$ac_cv_path_GAS
7887if test -n "$GAS"; then
7888 { echo "$as_me:$LINENO: result: $GAS" >&5
7889echo "${ECHO_T}$GAS" >&6; }
7890else
7891 { echo "$as_me:$LINENO: result: no" >&5
7892echo "${ECHO_T}no" >&6; }
7893fi
7894
7895
7896 test -n "$GAS" && break
7897done
7898
Reid Spencera773bd52006-08-04 18:18:08 +00007899
7900{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7901echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7902if test "${llvm_cv_link_use_r+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904else
7905 ac_ext=c
7906ac_cpp='$CPP $CPPFLAGS'
7907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910
7911 oldcflags="$CFLAGS"
7912 CFLAGS="$CFLAGS -Wl,-R."
7913 cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h. */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h. */
7919
7920int
7921main ()
7922{
7923int main() { return 0; }
7924 ;
7925 return 0;
7926}
7927_ACEOF
7928rm -f conftest.$ac_objext conftest$ac_exeext
7929if { (ac_try="$ac_link"
7930case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest$ac_exeext &&
7945 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00007946 llvm_cv_link_use_r=yes
7947else
7948 echo "$as_me: failed program was:" >&5
7949sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 llvm_cv_link_use_r=no
7952fi
7953
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00007955 conftest$ac_exeext conftest.$ac_ext
7956 CFLAGS="$oldcflags"
7957 ac_ext=c
7958ac_cpp='$CPP $CPPFLAGS'
7959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961ac_compiler_gnu=$ac_cv_c_compiler_gnu
7962
7963
7964fi
7965{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7966echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7967if test "$llvm_cv_link_use_r" = yes ; then
7968
7969cat >>confdefs.h <<\_ACEOF
7970#define HAVE_LINK_R 1
7971_ACEOF
7972
7973 fi
7974
7975
7976
7977
7978{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7979echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7980if test "${ac_cv_c_const+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983 cat >conftest.$ac_ext <<_ACEOF
7984/* confdefs.h. */
7985_ACEOF
7986cat confdefs.h >>conftest.$ac_ext
7987cat >>conftest.$ac_ext <<_ACEOF
7988/* end confdefs.h. */
7989
7990int
7991main ()
7992{
7993/* FIXME: Include the comments suggested by Paul. */
7994#ifndef __cplusplus
7995 /* Ultrix mips cc rejects this. */
7996 typedef int charset[2];
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007997 const charset cs;
Reid Spencera773bd52006-08-04 18:18:08 +00007998 /* SunOS 4.1.1 cc rejects this. */
Nick Lewycky2ab1d862009-01-20 00:52:24 +00007999 char const *const *pcpcc;
8000 char **ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00008001 /* NEC SVR4.0.2 mips cc rejects this. */
8002 struct point {int x, y;};
8003 static struct point const zero = {0,0};
8004 /* AIX XL C 1.02.0.0 rejects this.
8005 It does not let you subtract one const X* pointer from another in
8006 an arm of an if-expression whose if-part is not a constant
8007 expression */
8008 const char *g = "string";
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008009 pcpcc = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008010 /* HPUX 7.0 cc rejects these. */
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008011 ++pcpcc;
8012 ppc = (char**) pcpcc;
8013 pcpcc = (char const *const *) ppc;
Reid Spencera773bd52006-08-04 18:18:08 +00008014 { /* SCO 3.2v4 cc rejects this. */
8015 char *t;
8016 char const *s = 0 ? (char *) 0 : (char const *) 0;
8017
8018 *t++ = 0;
8019 if (s) return 0;
8020 }
8021 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8022 int x[] = {25, 17};
8023 const int *foo = &x[0];
8024 ++foo;
8025 }
8026 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8027 typedef const int *iptr;
8028 iptr p = 0;
8029 ++p;
8030 }
8031 { /* AIX XL C 1.02.0.0 rejects this saying
8032 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8033 struct s { int j; const int *ap[3]; };
8034 struct s *b; b->j = 5;
8035 }
8036 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8037 const int foo = 10;
8038 if (!foo) return 0;
8039 }
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008040 return !cs[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008041#endif
8042
8043 ;
8044 return 0;
8045}
8046_ACEOF
8047rm -f conftest.$ac_objext
8048if { (ac_try="$ac_compile"
8049case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052esac
8053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +00008064 ac_cv_c_const=yes
8065else
8066 echo "$as_me: failed program was:" >&5
8067sed 's/^/| /' conftest.$ac_ext >&5
8068
8069 ac_cv_c_const=no
8070fi
8071
8072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073fi
8074{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8075echo "${ECHO_T}$ac_cv_c_const" >&6; }
8076if test $ac_cv_c_const = no; then
8077
8078cat >>confdefs.h <<\_ACEOF
8079#define const
8080_ACEOF
8081
8082fi
8083
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008084
8085
8086
8087
8088
8089ac_header_dirent=no
8090for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8091 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008092{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8093echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 cat >conftest.$ac_ext <<_ACEOF
8098/* confdefs.h. */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h. */
8103#include <sys/types.h>
8104#include <$ac_hdr>
8105
8106int
8107main ()
8108{
8109if ((DIR *) 0)
8110return 0;
8111 ;
8112 return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008116if { (ac_try="$ac_compile"
8117case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120esac
8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008132 eval "$as_ac_Header=yes"
8133else
8134 echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
Reid Spencera773bd52006-08-04 18:18:08 +00008137 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008138fi
Reid Spencera773bd52006-08-04 18:18:08 +00008139
8140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008141fi
Reid Spencera773bd52006-08-04 18:18:08 +00008142ac_res=`eval echo '${'$as_ac_Header'}'`
8143 { echo "$as_me:$LINENO: result: $ac_res" >&5
8144echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008145if test `eval echo '${'$as_ac_Header'}'` = yes; then
8146 cat >>confdefs.h <<_ACEOF
8147#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8148_ACEOF
8149
8150ac_header_dirent=$ac_hdr; break
8151fi
8152
8153done
8154# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8155if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008156 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8157echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008158if test "${ac_cv_search_opendir+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8160else
8161 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008162cat >conftest.$ac_ext <<_ACEOF
8163/* confdefs.h. */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h. */
8168
Reid Spencera773bd52006-08-04 18:18:08 +00008169/* Override any GCC internal prototype to avoid an error.
8170 Use char because int might match the return type of a GCC
8171 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008172#ifdef __cplusplus
8173extern "C"
8174#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008175char opendir ();
8176int
8177main ()
8178{
Reid Spencera773bd52006-08-04 18:18:08 +00008179return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008180 ;
8181 return 0;
8182}
8183_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008184for ac_lib in '' dir; do
8185 if test -z "$ac_lib"; then
8186 ac_res="none required"
8187 else
8188 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008190 fi
8191 rm -f conftest.$ac_objext conftest$ac_exeext
8192if { (ac_try="$ac_link"
8193case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196esac
8197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest$ac_exeext &&
8208 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00008209 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008210else
8211 echo "$as_me: failed program was:" >&5
8212sed 's/^/| /' conftest.$ac_ext >&5
8213
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008214
8215fi
8216
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00008218 conftest$ac_exeext
8219 if test "${ac_cv_search_opendir+set}" = set; then
8220 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008221fi
John Criswell7a73b802003-06-30 21:59:07 +00008222done
Reid Spencera773bd52006-08-04 18:18:08 +00008223if test "${ac_cv_search_opendir+set}" = set; then
8224 :
8225else
8226 ac_cv_search_opendir=no
8227fi
8228rm conftest.$ac_ext
8229LIBS=$ac_func_search_save_LIBS
8230fi
8231{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8232echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8233ac_res=$ac_cv_search_opendir
8234if test "$ac_res" != no; then
8235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008236
Reid Spencera773bd52006-08-04 18:18:08 +00008237fi
8238
8239else
8240 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8241echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8242if test "${ac_cv_search_opendir+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244else
8245 ac_func_search_save_LIBS=$LIBS
8246cat >conftest.$ac_ext <<_ACEOF
8247/* confdefs.h. */
8248_ACEOF
8249cat confdefs.h >>conftest.$ac_ext
8250cat >>conftest.$ac_ext <<_ACEOF
8251/* end confdefs.h. */
8252
8253/* Override any GCC internal prototype to avoid an error.
8254 Use char because int might match the return type of a GCC
8255 builtin and then its argument prototype would still apply. */
8256#ifdef __cplusplus
8257extern "C"
8258#endif
8259char opendir ();
8260int
8261main ()
8262{
8263return opendir ();
8264 ;
8265 return 0;
8266}
8267_ACEOF
8268for ac_lib in '' x; do
8269 if test -z "$ac_lib"; then
8270 ac_res="none required"
8271 else
8272 ac_res=-l$ac_lib
8273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8274 fi
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276if { (ac_try="$ac_link"
8277case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_link") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest$ac_exeext &&
8292 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +00008293 ac_cv_search_opendir=$ac_res
8294else
8295 echo "$as_me: failed program was:" >&5
8296sed 's/^/| /' conftest.$ac_ext >&5
8297
8298
8299fi
8300
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +00008302 conftest$ac_exeext
8303 if test "${ac_cv_search_opendir+set}" = set; then
8304 break
8305fi
8306done
8307if test "${ac_cv_search_opendir+set}" = set; then
8308 :
8309else
8310 ac_cv_search_opendir=no
8311fi
8312rm conftest.$ac_ext
8313LIBS=$ac_func_search_save_LIBS
8314fi
8315{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8316echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8317ac_res=$ac_cv_search_opendir
8318if test "$ac_res" != no; then
8319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8320
8321fi
8322
8323fi
John Criswell7a73b802003-06-30 21:59:07 +00008324
8325
8326for ac_header in dlfcn.h
8327do
8328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008333 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008334fi
Reid Spencera773bd52006-08-04 18:18:08 +00008335ac_res=`eval echo '${'$as_ac_Header'}'`
8336 { echo "$as_me:$LINENO: result: $ac_res" >&5
8337echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008338else
Brian Gaeke0a621332004-09-08 20:38:05 +00008339 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008340{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008342cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008343/* confdefs.h. */
8344_ACEOF
8345cat confdefs.h >>conftest.$ac_ext
8346cat >>conftest.$ac_ext <<_ACEOF
8347/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008348$ac_includes_default
8349#include <$ac_header>
8350_ACEOF
8351rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008352if { (ac_try="$ac_compile"
8353case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008359 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008368 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008369else
8370 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008371sed 's/^/| /' conftest.$ac_ext >&5
8372
Reid Spencera773bd52006-08-04 18:18:08 +00008373 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008374fi
Reid Spencera773bd52006-08-04 18:18:08 +00008375
8376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008379
8380# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008381{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8382echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008383cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008384/* confdefs.h. */
8385_ACEOF
8386cat confdefs.h >>conftest.$ac_ext
8387cat >>conftest.$ac_ext <<_ACEOF
8388/* end confdefs.h. */
8389#include <$ac_header>
8390_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008391if { (ac_try="$ac_cpp conftest.$ac_ext"
8392case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395esac
8396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00008403 (exit $ac_status); } >/dev/null && {
8404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008407 ac_header_preproc=yes
8408else
8409 echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 ac_header_preproc=no
8413fi
Reid Spencera773bd52006-08-04 18:18:08 +00008414
Brian Gaeke0a621332004-09-08 20:38:05 +00008415rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008416{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8417echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008418
8419# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8421 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8426 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008427 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008428 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8432echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8436echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008441 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008442## ----------------------------------- ##
8443## Report this to llvmbugs@cs.uiuc.edu ##
8444## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008445_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008446 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008447 ;;
8448esac
Reid Spencera773bd52006-08-04 18:18:08 +00008449{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008454 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008455fi
Reid Spencera773bd52006-08-04 18:18:08 +00008456ac_res=`eval echo '${'$as_ac_Header'}'`
8457 { echo "$as_me:$LINENO: result: $ac_res" >&5
8458echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008459
8460fi
John Criswell7a73b802003-06-30 21:59:07 +00008461if test `eval echo '${'$as_ac_Header'}'` = yes; then
8462 cat >>confdefs.h <<_ACEOF
8463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8464_ACEOF
8465
8466fi
8467
8468done
8469
Reid Spencera773bd52006-08-04 18:18:08 +00008470# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008471if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008472 enableval=$enable_ltdl_install;
8473fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008474
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008475
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008476
8477
8478if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008479 INSTALL_LTDL_TRUE=
8480 INSTALL_LTDL_FALSE='#'
8481else
8482 INSTALL_LTDL_TRUE='#'
8483 INSTALL_LTDL_FALSE=
8484fi
8485
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008486
8487
8488if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008489 CONVENIENCE_LTDL_TRUE=
8490 CONVENIENCE_LTDL_FALSE='#'
8491else
8492 CONVENIENCE_LTDL_TRUE='#'
8493 CONVENIENCE_LTDL_FALSE=
8494fi
8495
8496
Reid Spencera773bd52006-08-04 18:18:08 +00008497{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8498echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008499library_names_spec=
8500libname_spec='lib$name'
8501soname_spec=
8502shrext_cmds=".so"
8503postinstall_cmds=
8504postuninstall_cmds=
8505finish_cmds=
8506finish_eval=
8507shlibpath_var=
8508shlibpath_overrides_runpath=unknown
8509version_type=none
8510dynamic_linker="$host_os ld.so"
8511sys_lib_dlsearch_path_spec="/lib /usr/lib"
8512if test "$GCC" = yes; then
8513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8514 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8515 # if the path contains ";" then we assume it to be the separator
8516 # otherwise default to the standard path separator (i.e. ":") - it is
8517 # assumed that no part of a normal pathname contains ";" but that should
8518 # okay in the real world where ";" in dirpaths is itself problematic.
8519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8520 else
8521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8522 fi
8523else
8524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8525fi
8526need_lib_prefix=unknown
8527hardcode_into_libs=no
8528
8529# when you set need_version to no, make sure it does not cause -set_version
8530# flags to be left without arguments
8531need_version=unknown
8532
8533case $host_os in
8534aix3*)
8535 version_type=linux
8536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8537 shlibpath_var=LIBPATH
8538
8539 # AIX 3 has no versioning support, so we append a major version to the name.
8540 soname_spec='${libname}${release}${shared_ext}$major'
8541 ;;
8542
8543aix4* | aix5*)
8544 version_type=linux
8545 need_lib_prefix=no
8546 need_version=no
8547 hardcode_into_libs=yes
8548 if test "$host_cpu" = ia64; then
8549 # AIX 5 supports IA64
8550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8551 shlibpath_var=LD_LIBRARY_PATH
8552 else
8553 # With GCC up to 2.95.x, collect2 would create an import file
8554 # for dependence libraries. The import file would start with
8555 # the line `#! .'. This would cause the generated library to
8556 # depend on `.', always an invalid library. This was fixed in
8557 # development snapshots of GCC prior to 3.0.
8558 case $host_os in
8559 aix4 | aix4.[01] | aix4.[01].*)
8560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8561 echo ' yes '
8562 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8563 :
8564 else
8565 can_build_shared=no
8566 fi
8567 ;;
8568 esac
8569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8570 # soname into executable. Probably we can add versioning support to
8571 # collect2, so additional links can be useful in future.
8572 if test "$aix_use_runtimelinking" = yes; then
8573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8574 # instead of lib<name>.a to let people know that these are not
8575 # typical AIX shared libraries.
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8577 else
8578 # We preserve .a as extension for shared libraries through AIX4.2
8579 # and later when we are not doing run time linking.
8580 library_names_spec='${libname}${release}.a $libname.a'
8581 soname_spec='${libname}${release}${shared_ext}$major'
8582 fi
8583 shlibpath_var=LIBPATH
8584 fi
8585 ;;
8586
8587amigaos*)
8588 library_names_spec='$libname.ixlibrary $libname.a'
8589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8590 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'
8591 ;;
8592
8593beos*)
8594 library_names_spec='${libname}${shared_ext}'
8595 dynamic_linker="$host_os ld.so"
8596 shlibpath_var=LIBRARY_PATH
8597 ;;
8598
8599bsdi[45]*)
8600 version_type=linux
8601 need_version=no
8602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8603 soname_spec='${libname}${release}${shared_ext}$major'
8604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8605 shlibpath_var=LD_LIBRARY_PATH
8606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8608 # the default ld.so.conf also contains /usr/contrib/lib and
8609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8610 # libtool to hard-code these into programs
8611 ;;
8612
8613cygwin* | mingw* | pw32*)
8614 version_type=windows
8615 shrext_cmds=".dll"
8616 need_version=no
8617 need_lib_prefix=no
8618
8619 case $GCC,$host_os in
8620 yes,cygwin* | yes,mingw* | yes,pw32*)
8621 library_names_spec='$libname.dll.a'
8622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8623 postinstall_cmds='base_file=`basename \${file}`~
8624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8625 dldir=$destdir/`dirname \$dlpath`~
8626 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008627 $install_prog $dir/$dlname \$dldir/$dlname~
8628 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8630 dlpath=$dir/\$dldll~
8631 $rm \$dlpath'
8632 shlibpath_overrides_runpath=yes
8633
8634 case $host_os in
8635 cygwin*)
8636 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8637 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8638 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8639 ;;
8640 mingw*)
8641 # MinGW DLLs use traditional 'lib' prefix
8642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8643 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8644 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8645 # It is most probably a Windows format PATH printed by
8646 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8647 # path with ; separators, and with drive letters. We can handle the
8648 # drive letters (cygwin fileutils understands them), so leave them,
8649 # especially as we might pass files found there to a mingw objdump,
8650 # which wouldn't understand a cygwinified path. Ahh.
8651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8652 else
8653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8654 fi
8655 ;;
8656 pw32*)
8657 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008658 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 +00008659 ;;
8660 esac
8661 ;;
8662
8663 *)
8664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8665 ;;
8666 esac
8667 dynamic_linker='Win32 ld.exe'
8668 # FIXME: first we should search . and the directory the executable is in
8669 shlibpath_var=PATH
8670 ;;
8671
8672darwin* | rhapsody*)
8673 dynamic_linker="$host_os dyld"
8674 version_type=darwin
8675 need_lib_prefix=no
8676 need_version=no
8677 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8678 soname_spec='${libname}${release}${major}$shared_ext'
8679 shlibpath_overrides_runpath=yes
8680 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008681 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008682 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8683 if test "$GCC" = yes; then
8684 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"`
8685 else
8686 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8687 fi
8688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8689 ;;
8690
8691dgux*)
8692 version_type=linux
8693 need_lib_prefix=no
8694 need_version=no
8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 shlibpath_var=LD_LIBRARY_PATH
8698 ;;
8699
8700freebsd1*)
8701 dynamic_linker=no
8702 ;;
8703
8704kfreebsd*-gnu)
8705 version_type=linux
8706 need_lib_prefix=no
8707 need_version=no
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 shlibpath_var=LD_LIBRARY_PATH
8711 shlibpath_overrides_runpath=no
8712 hardcode_into_libs=yes
8713 dynamic_linker='GNU ld.so'
8714 ;;
8715
Reid Spencera773bd52006-08-04 18:18:08 +00008716freebsd* | dragonfly*)
8717 # DragonFly does not have aout. When/if they implement a new
8718 # versioning mechanism, adjust this.
8719 if test -x /usr/bin/objformat; then
8720 objformat=`/usr/bin/objformat`
8721 else
8722 case $host_os in
8723 freebsd[123]*) objformat=aout ;;
8724 *) objformat=elf ;;
8725 esac
8726 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008727 version_type=freebsd-$objformat
8728 case $version_type in
8729 freebsd-elf*)
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8731 need_version=no
8732 need_lib_prefix=no
8733 ;;
8734 freebsd-*)
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8736 need_version=yes
8737 ;;
8738 esac
8739 shlibpath_var=LD_LIBRARY_PATH
8740 case $host_os in
8741 freebsd2*)
8742 shlibpath_overrides_runpath=yes
8743 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008744 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008745 shlibpath_overrides_runpath=yes
8746 hardcode_into_libs=yes
8747 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008750 shlibpath_overrides_runpath=no
8751 hardcode_into_libs=yes
8752 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008753 freebsd*) # from 4.6 on
8754 shlibpath_overrides_runpath=yes
8755 hardcode_into_libs=yes
8756 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008757 esac
8758 ;;
8759
8760gnu*)
8761 version_type=linux
8762 need_lib_prefix=no
8763 need_version=no
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 shlibpath_var=LD_LIBRARY_PATH
8767 hardcode_into_libs=yes
8768 ;;
8769
8770hpux9* | hpux10* | hpux11*)
8771 # Give a soname corresponding to the major version so that dld.sl refuses to
8772 # link against other versions.
8773 version_type=sunos
8774 need_lib_prefix=no
8775 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008776 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008777 ia64*)
8778 shrext_cmds='.so'
8779 hardcode_into_libs=yes
8780 dynamic_linker="$host_os dld.so"
8781 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 if test "X$HPUX_IA64_MODE" = X32; then
8786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8787 else
8788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8789 fi
8790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8791 ;;
8792 hppa*64*)
8793 shrext_cmds='.sl'
8794 hardcode_into_libs=yes
8795 dynamic_linker="$host_os dld.sl"
8796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8802 ;;
8803 *)
8804 shrext_cmds='.sl'
8805 dynamic_linker="$host_os dld.sl"
8806 shlibpath_var=SHLIB_PATH
8807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 ;;
8811 esac
8812 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8813 postinstall_cmds='chmod 555 $lib'
8814 ;;
8815
Reid Spencera773bd52006-08-04 18:18:08 +00008816interix3*)
8817 version_type=linux
8818 need_lib_prefix=no
8819 need_version=no
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 shlibpath_overrides_runpath=no
8825 hardcode_into_libs=yes
8826 ;;
8827
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008828irix5* | irix6* | nonstopux*)
8829 case $host_os in
8830 nonstopux*) version_type=nonstopux ;;
8831 *)
8832 if test "$lt_cv_prog_gnu_ld" = yes; then
8833 version_type=linux
8834 else
8835 version_type=irix
8836 fi ;;
8837 esac
8838 need_lib_prefix=no
8839 need_version=no
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8842 case $host_os in
8843 irix5* | nonstopux*)
8844 libsuff= shlibsuff=
8845 ;;
8846 *)
8847 case $LD in # libtool.m4 will add one of these switches to LD
8848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8849 libsuff= shlibsuff= libmagic=32-bit;;
8850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8851 libsuff=32 shlibsuff=N32 libmagic=N32;;
8852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8853 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8854 *) libsuff= shlibsuff= libmagic=never-match;;
8855 esac
8856 ;;
8857 esac
8858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8859 shlibpath_overrides_runpath=no
8860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8862 hardcode_into_libs=yes
8863 ;;
8864
8865# No shared lib support for Linux oldld, aout, or coff.
8866linux*oldld* | linux*aout* | linux*coff*)
8867 dynamic_linker=no
8868 ;;
8869
8870# This must be Linux ELF.
8871linux*)
8872 version_type=linux
8873 need_lib_prefix=no
8874 need_version=no
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=no
8880 # This implies no fast_install, which is unacceptable.
8881 # Some rework will be needed to allow for fast_install
8882 # before this can be enabled.
8883 hardcode_into_libs=yes
8884
8885 # Append ld.so.conf contents to the search path
8886 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008887 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 +00008888 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8889 fi
8890
8891 # We used to test for /lib/ld.so.1 and disable shared libraries on
8892 # powerpc, because MkLinux only supported shared libraries with the
8893 # GNU dynamic linker. Since this was broken with cross compilers,
8894 # most powerpc-linux boxes support dynamic linking these days and
8895 # people can always --disable-shared, the test was removed, and we
8896 # assume the GNU/Linux dynamic linker is in use.
8897 dynamic_linker='GNU/Linux ld.so'
8898 ;;
8899
8900knetbsd*-gnu)
8901 version_type=linux
8902 need_lib_prefix=no
8903 need_version=no
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 shlibpath_var=LD_LIBRARY_PATH
8907 shlibpath_overrides_runpath=no
8908 hardcode_into_libs=yes
8909 dynamic_linker='GNU ld.so'
8910 ;;
8911
8912netbsd*)
8913 version_type=sunos
8914 need_lib_prefix=no
8915 need_version=no
8916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8919 dynamic_linker='NetBSD (a.out) ld.so'
8920 else
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 dynamic_linker='NetBSD ld.elf_so'
8924 fi
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=yes
8927 hardcode_into_libs=yes
8928 ;;
8929
8930newsos6)
8931 version_type=linux
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=yes
8935 ;;
8936
8937nto-qnx*)
8938 version_type=linux
8939 need_lib_prefix=no
8940 need_version=no
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=yes
8945 ;;
8946
8947openbsd*)
8948 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008949 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008950 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008951 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8952 case $host_os in
8953 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8954 *) need_version=no ;;
8955 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8960 case $host_os in
8961 openbsd2.[89] | openbsd2.[89].*)
8962 shlibpath_overrides_runpath=no
8963 ;;
8964 *)
8965 shlibpath_overrides_runpath=yes
8966 ;;
8967 esac
8968 else
8969 shlibpath_overrides_runpath=yes
8970 fi
8971 ;;
8972
8973os2*)
8974 libname_spec='$name'
8975 shrext_cmds=".dll"
8976 need_lib_prefix=no
8977 library_names_spec='$libname${shared_ext} $libname.a'
8978 dynamic_linker='OS/2 ld.exe'
8979 shlibpath_var=LIBPATH
8980 ;;
8981
8982osf3* | osf4* | osf5*)
8983 version_type=osf
8984 need_lib_prefix=no
8985 need_version=no
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8990 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8991 ;;
8992
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008993solaris*)
8994 version_type=linux
8995 need_lib_prefix=no
8996 need_version=no
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 shlibpath_overrides_runpath=yes
9001 hardcode_into_libs=yes
9002 # ldd complains unless libraries are executable
9003 postinstall_cmds='chmod +x $lib'
9004 ;;
9005
9006sunos4*)
9007 version_type=sunos
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9009 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9010 shlibpath_var=LD_LIBRARY_PATH
9011 shlibpath_overrides_runpath=yes
9012 if test "$with_gnu_ld" = yes; then
9013 need_lib_prefix=no
9014 fi
9015 need_version=yes
9016 ;;
9017
Reid Spencera773bd52006-08-04 18:18:08 +00009018sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009019 version_type=linux
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 case $host_vendor in
9024 sni)
9025 shlibpath_overrides_runpath=no
9026 need_lib_prefix=no
9027 export_dynamic_flag_spec='${wl}-Blargedynsym'
9028 runpath_var=LD_RUN_PATH
9029 ;;
9030 siemens)
9031 need_lib_prefix=no
9032 ;;
9033 motorola)
9034 need_lib_prefix=no
9035 need_version=no
9036 shlibpath_overrides_runpath=no
9037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9038 ;;
9039 esac
9040 ;;
9041
9042sysv4*MP*)
9043 if test -d /usr/nec ;then
9044 version_type=linux
9045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9046 soname_spec='$libname${shared_ext}.$major'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 fi
9049 ;;
9050
Reid Spencera773bd52006-08-04 18:18:08 +00009051sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9052 version_type=freebsd-elf
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 hardcode_into_libs=yes
9059 if test "$with_gnu_ld" = yes; then
9060 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9061 shlibpath_overrides_runpath=no
9062 else
9063 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9064 shlibpath_overrides_runpath=yes
9065 case $host_os in
9066 sco3.2v5*)
9067 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9068 ;;
9069 esac
9070 fi
9071 sys_lib_dlsearch_path_spec='/usr/lib'
9072 ;;
9073
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009074uts4*)
9075 version_type=linux
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 ;;
9080
9081*)
9082 dynamic_linker=no
9083 ;;
9084esac
Reid Spencera773bd52006-08-04 18:18:08 +00009085{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9086echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009087test "$dynamic_linker" = no && can_build_shared=no
9088
Reid Spencera773bd52006-08-04 18:18:08 +00009089variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9090if test "$GCC" = yes; then
9091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9092fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009093
Reid Spencera773bd52006-08-04 18:18:08 +00009094
9095{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9096echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009097if test "${libltdl_cv_shlibext+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9099else
9100
9101module=yes
9102eval libltdl_cv_shlibext=$shrext_cmds
9103
9104fi
Reid Spencera773bd52006-08-04 18:18:08 +00009105{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9106echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009107if test -n "$libltdl_cv_shlibext"; then
9108
9109cat >>confdefs.h <<_ACEOF
9110#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9111_ACEOF
9112
9113fi
9114
9115
Reid Spencera773bd52006-08-04 18:18:08 +00009116{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9117echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009118if test "${libltdl_cv_shlibpath_var+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120else
9121 libltdl_cv_shlibpath_var="$shlibpath_var"
9122fi
Reid Spencera773bd52006-08-04 18:18:08 +00009123{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9124echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009125if test -n "$libltdl_cv_shlibpath_var"; then
9126
9127cat >>confdefs.h <<_ACEOF
9128#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9129_ACEOF
9130
9131fi
9132
9133
Reid Spencera773bd52006-08-04 18:18:08 +00009134{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9135echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009136if test "${libltdl_cv_sys_search_path+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9138else
9139 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9140fi
Reid Spencera773bd52006-08-04 18:18:08 +00009141{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9142echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009143if test -n "$libltdl_cv_sys_search_path"; then
9144 sys_search_path=
9145 for dir in $libltdl_cv_sys_search_path; do
9146 if test -z "$sys_search_path"; then
9147 sys_search_path="$dir"
9148 else
9149 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9150 fi
9151 done
9152
9153cat >>confdefs.h <<_ACEOF
9154#define LTDL_SYSSEARCHPATH "$sys_search_path"
9155_ACEOF
9156
9157fi
9158
Reid Spencera773bd52006-08-04 18:18:08 +00009159{ echo "$as_me:$LINENO: checking for objdir" >&5
9160echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009161if test "${libltdl_cv_objdir+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163else
9164 libltdl_cv_objdir="$objdir"
9165 if test -n "$objdir"; then
9166 :
9167 else
9168 rm -f .libs 2>/dev/null
9169 mkdir .libs 2>/dev/null
9170 if test -d .libs; then
9171 libltdl_cv_objdir=.libs
9172 else
9173 # MS-DOS does not allow filenames that begin with a dot.
9174 libltdl_cv_objdir=_libs
9175 fi
9176 rmdir .libs 2>/dev/null
9177 fi
9178
9179fi
Reid Spencera773bd52006-08-04 18:18:08 +00009180{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9181echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009182
9183cat >>confdefs.h <<_ACEOF
9184#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9185_ACEOF
9186
9187
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009188
9189
9190
9191
9192# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009193{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9194echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009195if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
9198
9199# These are sane defaults that work on at least a few old systems.
9200# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9201
9202# Character class describing NM global symbol codes.
9203symcode='[BCDEGRST]'
9204
9205# Regexp to match symbols that can be accessed directly from C.
9206sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9207
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009208# Transform an extracted symbol line into a proper C declaration
9209lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9210
9211# Transform an extracted symbol line into symbol name and symbol address
9212lt_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'"
9213
9214# Define system-specific variables.
9215case $host_os in
9216aix*)
9217 symcode='[BCDT]'
9218 ;;
9219cygwin* | mingw* | pw32*)
9220 symcode='[ABCDGISTW]'
9221 ;;
9222hpux*) # Its linker distinguishes data from code symbols
9223 if test "$host_cpu" = ia64; then
9224 symcode='[ABCDEGRST]'
9225 fi
9226 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9227 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'"
9228 ;;
9229linux*)
9230 if test "$host_cpu" = ia64; then
9231 symcode='[ABCDGIRSTW]'
9232 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9233 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'"
9234 fi
9235 ;;
9236irix* | nonstopux*)
9237 symcode='[BCDEGRST]'
9238 ;;
9239osf*)
9240 symcode='[BCDEGQRST]'
9241 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009242solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009243 symcode='[BDRT]'
9244 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009245sco3.2v5*)
9246 symcode='[DT]'
9247 ;;
9248sysv4.2uw2*)
9249 symcode='[DT]'
9250 ;;
9251sysv5* | sco5v6* | unixware* | OpenUNIX*)
9252 symcode='[ABDT]'
9253 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009254sysv4)
9255 symcode='[DFNSTU]'
9256 ;;
9257esac
9258
9259# Handle CRLF in mingw tool chain
9260opt_cr=
9261case $build_os in
9262mingw*)
9263 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9264 ;;
9265esac
9266
9267# If we're using GNU nm, then use its standard symbol codes.
9268case `$NM -V 2>&1` in
9269*GNU* | *'with BFD'*)
9270 symcode='[ABCDGIRSTW]' ;;
9271esac
9272
9273# Try without a prefix undercore, then with it.
9274for ac_symprfx in "" "_"; do
9275
Reid Spencera773bd52006-08-04 18:18:08 +00009276 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9277 symxfrm="\\1 $ac_symprfx\\2 \\2"
9278
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009280 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 +00009281
9282 # Check to see that the pipe works correctly.
9283 pipe_works=no
9284
9285 rm -f conftest*
9286 cat > conftest.$ac_ext <<EOF
9287#ifdef __cplusplus
9288extern "C" {
9289#endif
9290char nm_test_var;
9291void nm_test_func(){}
9292#ifdef __cplusplus
9293}
9294#endif
9295int main(){nm_test_var='a';nm_test_func();return(0);}
9296EOF
9297
9298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9299 (eval $ac_compile) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; then
9303 # Now try to grab the symbols.
9304 nlist=conftest.nm
9305 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9306 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && test -s "$nlist"; then
9310 # Try sorting and uniquifying the output.
9311 if sort "$nlist" | uniq > "$nlist"T; then
9312 mv -f "$nlist"T "$nlist"
9313 else
9314 rm -f "$nlist"T
9315 fi
9316
9317 # Make sure that we snagged all the symbols we need.
9318 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9319 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9320 cat <<EOF > conftest.$ac_ext
9321#ifdef __cplusplus
9322extern "C" {
9323#endif
9324
9325EOF
9326 # Now generate the symbol file.
9327 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9328
9329 cat <<EOF >> conftest.$ac_ext
9330#if defined (__STDC__) && __STDC__
9331# define lt_ptr_t void *
9332#else
9333# define lt_ptr_t char *
9334# define const
9335#endif
9336
9337/* The mapping between symbol names and symbols. */
9338const struct {
9339 const char *name;
9340 lt_ptr_t address;
9341}
9342lt_preloaded_symbols[] =
9343{
9344EOF
9345 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9346 cat <<\EOF >> conftest.$ac_ext
9347 {0, (lt_ptr_t) 0}
9348};
9349
9350#ifdef __cplusplus
9351}
9352#endif
9353EOF
9354 # Now try linking the two files.
9355 mv conftest.$ac_objext conftstm.$ac_objext
9356 lt_save_LIBS="$LIBS"
9357 lt_save_CFLAGS="$CFLAGS"
9358 LIBS="conftstm.$ac_objext"
9359 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9361 (eval $ac_link) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9365 pipe_works=yes
9366 fi
9367 LIBS="$lt_save_LIBS"
9368 CFLAGS="$lt_save_CFLAGS"
9369 else
9370 echo "cannot find nm_test_func in $nlist" >&5
9371 fi
9372 else
9373 echo "cannot find nm_test_var in $nlist" >&5
9374 fi
9375 else
9376 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9377 fi
9378 else
9379 echo "$progname: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9381 fi
9382 rm -f conftest* conftst*
9383
9384 # Do not use the global_symbol_pipe unless it works.
9385 if test "$pipe_works" = yes; then
9386 break
9387 else
9388 lt_cv_sys_global_symbol_pipe=
9389 fi
9390done
9391
9392fi
9393
9394if test -z "$lt_cv_sys_global_symbol_pipe"; then
9395 lt_cv_sys_global_symbol_to_cdecl=
9396fi
9397if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009398 { echo "$as_me:$LINENO: result: failed" >&5
9399echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400else
Reid Spencera773bd52006-08-04 18:18:08 +00009401 { echo "$as_me:$LINENO: result: ok" >&5
9402echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009403fi
9404
9405
Reid Spencera773bd52006-08-04 18:18:08 +00009406{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9407echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009408if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9412 libltdl_cv_preloaded_symbols=yes
9413 else
9414 libltdl_cv_preloaded_symbols=no
9415 fi
9416
9417fi
Reid Spencera773bd52006-08-04 18:18:08 +00009418{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9419echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9421
9422cat >>confdefs.h <<\_ACEOF
9423#define HAVE_PRELOADED_SYMBOLS 1
9424_ACEOF
9425
9426fi
9427
9428LIBADD_DL=
9429
9430ac_ext=c
9431ac_cpp='$CPP $CPPFLAGS'
9432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9434ac_compiler_gnu=$ac_cv_c_compiler_gnu
9435
9436
Reid Spencera773bd52006-08-04 18:18:08 +00009437{ echo "$as_me:$LINENO: checking for shl_load" >&5
9438echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009439if test "${ac_cv_func_shl_load+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9441else
9442 cat >conftest.$ac_ext <<_ACEOF
9443/* confdefs.h. */
9444_ACEOF
9445cat confdefs.h >>conftest.$ac_ext
9446cat >>conftest.$ac_ext <<_ACEOF
9447/* end confdefs.h. */
9448/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9450#define shl_load innocuous_shl_load
9451
9452/* System header to define __stub macros and hopefully few prototypes,
9453 which can conflict with char shl_load (); below.
9454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9455 <limits.h> exists even on freestanding compilers. */
9456
9457#ifdef __STDC__
9458# include <limits.h>
9459#else
9460# include <assert.h>
9461#endif
9462
9463#undef shl_load
9464
Reid Spencera773bd52006-08-04 18:18:08 +00009465/* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468#ifdef __cplusplus
9469extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009470#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009471char shl_load ();
9472/* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009475#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009476choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009477#endif
9478
9479int
9480main ()
9481{
Reid Spencera773bd52006-08-04 18:18:08 +00009482return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009483 ;
9484 return 0;
9485}
9486_ACEOF
9487rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009488if { (ac_try="$ac_link"
9489case "(($ac_try" in
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9492esac
9493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009500 (exit $ac_status); } && {
9501 test -z "$ac_c_werror_flag" ||
9502 test ! -s conftest.err
9503 } && test -s conftest$ac_exeext &&
9504 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009505 ac_cv_func_shl_load=yes
9506else
9507 echo "$as_me: failed program was:" >&5
9508sed 's/^/| /' conftest.$ac_ext >&5
9509
Reid Spencera773bd52006-08-04 18:18:08 +00009510 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511fi
Reid Spencera773bd52006-08-04 18:18:08 +00009512
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009514 conftest$ac_exeext conftest.$ac_ext
9515fi
Reid Spencera773bd52006-08-04 18:18:08 +00009516{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9517echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518if test $ac_cv_func_shl_load = yes; then
9519
9520cat >>confdefs.h <<\_ACEOF
9521#define HAVE_SHL_LOAD 1
9522_ACEOF
9523
9524else
Reid Spencera773bd52006-08-04 18:18:08 +00009525 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9526echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009527if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530 ac_check_lib_save_LIBS=$LIBS
9531LIBS="-ldld $LIBS"
9532cat >conftest.$ac_ext <<_ACEOF
9533/* confdefs.h. */
9534_ACEOF
9535cat confdefs.h >>conftest.$ac_ext
9536cat >>conftest.$ac_ext <<_ACEOF
9537/* end confdefs.h. */
9538
Reid Spencera773bd52006-08-04 18:18:08 +00009539/* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009542#ifdef __cplusplus
9543extern "C"
9544#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545char shl_load ();
9546int
9547main ()
9548{
Reid Spencera773bd52006-08-04 18:18:08 +00009549return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009550 ;
9551 return 0;
9552}
9553_ACEOF
9554rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009555if { (ac_try="$ac_link"
9556case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559esac
9560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009567 (exit $ac_status); } && {
9568 test -z "$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest$ac_exeext &&
9571 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572 ac_cv_lib_dld_shl_load=yes
9573else
9574 echo "$as_me: failed program was:" >&5
9575sed 's/^/| /' conftest.$ac_ext >&5
9576
Reid Spencera773bd52006-08-04 18:18:08 +00009577 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009578fi
Reid Spencera773bd52006-08-04 18:18:08 +00009579
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009581 conftest$ac_exeext conftest.$ac_ext
9582LIBS=$ac_check_lib_save_LIBS
9583fi
Reid Spencera773bd52006-08-04 18:18:08 +00009584{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9585echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009586if test $ac_cv_lib_dld_shl_load = yes; then
9587
9588cat >>confdefs.h <<\_ACEOF
9589#define HAVE_SHL_LOAD 1
9590_ACEOF
9591
9592 LIBADD_DL="$LIBADD_DL -ldld"
9593else
Reid Spencera773bd52006-08-04 18:18:08 +00009594 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9595echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009596if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598else
9599 ac_check_lib_save_LIBS=$LIBS
9600LIBS="-ldl $LIBS"
9601cat >conftest.$ac_ext <<_ACEOF
9602/* confdefs.h. */
9603_ACEOF
9604cat confdefs.h >>conftest.$ac_ext
9605cat >>conftest.$ac_ext <<_ACEOF
9606/* end confdefs.h. */
9607
Reid Spencera773bd52006-08-04 18:18:08 +00009608/* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611#ifdef __cplusplus
9612extern "C"
9613#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009614char dlopen ();
9615int
9616main ()
9617{
Reid Spencera773bd52006-08-04 18:18:08 +00009618return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009619 ;
9620 return 0;
9621}
9622_ACEOF
9623rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009624if { (ac_try="$ac_link"
9625case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9628esac
9629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009636 (exit $ac_status); } && {
9637 test -z "$ac_c_werror_flag" ||
9638 test ! -s conftest.err
9639 } && test -s conftest$ac_exeext &&
9640 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009641 ac_cv_lib_dl_dlopen=yes
9642else
9643 echo "$as_me: failed program was:" >&5
9644sed 's/^/| /' conftest.$ac_ext >&5
9645
Reid Spencera773bd52006-08-04 18:18:08 +00009646 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647fi
Reid Spencera773bd52006-08-04 18:18:08 +00009648
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009650 conftest$ac_exeext conftest.$ac_ext
9651LIBS=$ac_check_lib_save_LIBS
9652fi
Reid Spencera773bd52006-08-04 18:18:08 +00009653{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9654echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009655if test $ac_cv_lib_dl_dlopen = yes; then
9656
9657cat >>confdefs.h <<\_ACEOF
9658#define HAVE_LIBDL 1
9659_ACEOF
9660
9661 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9662else
9663 cat >conftest.$ac_ext <<_ACEOF
9664/* confdefs.h. */
9665_ACEOF
9666cat confdefs.h >>conftest.$ac_ext
9667cat >>conftest.$ac_ext <<_ACEOF
9668/* end confdefs.h. */
9669#if HAVE_DLFCN_H
9670# include <dlfcn.h>
9671#endif
9672
9673int
9674main ()
9675{
9676dlopen(0, 0);
9677 ;
9678 return 0;
9679}
9680_ACEOF
9681rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009682if { (ac_try="$ac_link"
9683case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686esac
9687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009699
9700cat >>confdefs.h <<\_ACEOF
9701#define HAVE_LIBDL 1
9702_ACEOF
9703 libltdl_cv_func_dlopen="yes"
9704else
9705 echo "$as_me: failed program was:" >&5
9706sed 's/^/| /' conftest.$ac_ext >&5
9707
Reid Spencera773bd52006-08-04 18:18:08 +00009708 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9709echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009710if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712else
9713 ac_check_lib_save_LIBS=$LIBS
9714LIBS="-lsvld $LIBS"
9715cat >conftest.$ac_ext <<_ACEOF
9716/* confdefs.h. */
9717_ACEOF
9718cat confdefs.h >>conftest.$ac_ext
9719cat >>conftest.$ac_ext <<_ACEOF
9720/* end confdefs.h. */
9721
Reid Spencera773bd52006-08-04 18:18:08 +00009722/* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725#ifdef __cplusplus
9726extern "C"
9727#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009728char dlopen ();
9729int
9730main ()
9731{
Reid Spencera773bd52006-08-04 18:18:08 +00009732return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009733 ;
9734 return 0;
9735}
9736_ACEOF
9737rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009738if { (ac_try="$ac_link"
9739case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742esac
9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009750 (exit $ac_status); } && {
9751 test -z "$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9753 } && test -s conftest$ac_exeext &&
9754 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755 ac_cv_lib_svld_dlopen=yes
9756else
9757 echo "$as_me: failed program was:" >&5
9758sed 's/^/| /' conftest.$ac_ext >&5
9759
Reid Spencera773bd52006-08-04 18:18:08 +00009760 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761fi
Reid Spencera773bd52006-08-04 18:18:08 +00009762
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764 conftest$ac_exeext conftest.$ac_ext
9765LIBS=$ac_check_lib_save_LIBS
9766fi
Reid Spencera773bd52006-08-04 18:18:08 +00009767{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9768echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769if test $ac_cv_lib_svld_dlopen = yes; then
9770
9771cat >>confdefs.h <<\_ACEOF
9772#define HAVE_LIBDL 1
9773_ACEOF
9774
9775 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9776else
Reid Spencera773bd52006-08-04 18:18:08 +00009777 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9778echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781else
9782 ac_check_lib_save_LIBS=$LIBS
9783LIBS="-ldld $LIBS"
9784cat >conftest.$ac_ext <<_ACEOF
9785/* confdefs.h. */
9786_ACEOF
9787cat confdefs.h >>conftest.$ac_ext
9788cat >>conftest.$ac_ext <<_ACEOF
9789/* end confdefs.h. */
9790
Reid Spencera773bd52006-08-04 18:18:08 +00009791/* Override any GCC internal prototype to avoid an error.
9792 Use char because int might match the return type of a GCC
9793 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794#ifdef __cplusplus
9795extern "C"
9796#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009797char dld_link ();
9798int
9799main ()
9800{
Reid Spencera773bd52006-08-04 18:18:08 +00009801return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009802 ;
9803 return 0;
9804}
9805_ACEOF
9806rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009807if { (ac_try="$ac_link"
9808case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811esac
9812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009819 (exit $ac_status); } && {
9820 test -z "$ac_c_werror_flag" ||
9821 test ! -s conftest.err
9822 } && test -s conftest$ac_exeext &&
9823 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824 ac_cv_lib_dld_dld_link=yes
9825else
9826 echo "$as_me: failed program was:" >&5
9827sed 's/^/| /' conftest.$ac_ext >&5
9828
Reid Spencera773bd52006-08-04 18:18:08 +00009829 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009830fi
Reid Spencera773bd52006-08-04 18:18:08 +00009831
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833 conftest$ac_exeext conftest.$ac_ext
9834LIBS=$ac_check_lib_save_LIBS
9835fi
Reid Spencera773bd52006-08-04 18:18:08 +00009836{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9837echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838if test $ac_cv_lib_dld_dld_link = yes; then
9839
9840cat >>confdefs.h <<\_ACEOF
9841#define HAVE_DLD 1
9842_ACEOF
9843
9844 LIBADD_DL="$LIBADD_DL -ldld"
9845else
Reid Spencera773bd52006-08-04 18:18:08 +00009846 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9847echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850else
9851 cat >conftest.$ac_ext <<_ACEOF
9852/* confdefs.h. */
9853_ACEOF
9854cat confdefs.h >>conftest.$ac_ext
9855cat >>conftest.$ac_ext <<_ACEOF
9856/* end confdefs.h. */
9857/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9859#define _dyld_func_lookup innocuous__dyld_func_lookup
9860
9861/* System header to define __stub macros and hopefully few prototypes,
9862 which can conflict with char _dyld_func_lookup (); below.
9863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9864 <limits.h> exists even on freestanding compilers. */
9865
9866#ifdef __STDC__
9867# include <limits.h>
9868#else
9869# include <assert.h>
9870#endif
9871
9872#undef _dyld_func_lookup
9873
Reid Spencera773bd52006-08-04 18:18:08 +00009874/* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009877#ifdef __cplusplus
9878extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009879#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009880char _dyld_func_lookup ();
9881/* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009884#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009886#endif
9887
9888int
9889main ()
9890{
Reid Spencera773bd52006-08-04 18:18:08 +00009891return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009892 ;
9893 return 0;
9894}
9895_ACEOF
9896rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009897if { (ac_try="$ac_link"
9898case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901esac
9902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009909 (exit $ac_status); } && {
9910 test -z "$ac_c_werror_flag" ||
9911 test ! -s conftest.err
9912 } && test -s conftest$ac_exeext &&
9913 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914 ac_cv_func__dyld_func_lookup=yes
9915else
9916 echo "$as_me: failed program was:" >&5
9917sed 's/^/| /' conftest.$ac_ext >&5
9918
Reid Spencera773bd52006-08-04 18:18:08 +00009919 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920fi
Reid Spencera773bd52006-08-04 18:18:08 +00009921
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923 conftest$ac_exeext conftest.$ac_ext
9924fi
Reid Spencera773bd52006-08-04 18:18:08 +00009925{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9926echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009927if test $ac_cv_func__dyld_func_lookup = yes; then
9928
9929cat >>confdefs.h <<\_ACEOF
9930#define HAVE_DYLD 1
9931_ACEOF
9932
9933fi
9934
9935
9936fi
9937
9938
9939fi
9940
9941
9942fi
Reid Spencera773bd52006-08-04 18:18:08 +00009943
Nick Lewycky2ab1d862009-01-20 00:52:24 +00009944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945 conftest$ac_exeext conftest.$ac_ext
9946
9947fi
9948
9949
9950fi
9951
9952
9953fi
9954
9955
9956if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9957then
9958 lt_save_LIBS="$LIBS"
9959 LIBS="$LIBS $LIBADD_DL"
9960
9961for ac_func in dlerror
9962do
9963as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009964{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9965echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9966if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968else
9969 cat >conftest.$ac_ext <<_ACEOF
9970/* confdefs.h. */
9971_ACEOF
9972cat confdefs.h >>conftest.$ac_ext
9973cat >>conftest.$ac_ext <<_ACEOF
9974/* end confdefs.h. */
9975/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9977#define $ac_func innocuous_$ac_func
9978
9979/* System header to define __stub macros and hopefully few prototypes,
9980 which can conflict with char $ac_func (); below.
9981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982 <limits.h> exists even on freestanding compilers. */
9983
9984#ifdef __STDC__
9985# include <limits.h>
9986#else
9987# include <assert.h>
9988#endif
9989
9990#undef $ac_func
9991
Reid Spencera773bd52006-08-04 18:18:08 +00009992/* Override any GCC internal prototype to avoid an error.
9993 Use char because int might match the return type of a GCC
9994 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995#ifdef __cplusplus
9996extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998char $ac_func ();
9999/* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010002#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004#endif
10005
10006int
10007main ()
10008{
Reid Spencera773bd52006-08-04 18:18:08 +000010009return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010010 ;
10011 return 0;
10012}
10013_ACEOF
10014rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010015if { (ac_try="$ac_link"
10016case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019esac
10020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest$ac_exeext &&
10031 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032 eval "$as_ac_var=yes"
10033else
10034 echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
Reid Spencera773bd52006-08-04 18:18:08 +000010037 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010038fi
Reid Spencera773bd52006-08-04 18:18:08 +000010039
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010041 conftest$ac_exeext conftest.$ac_ext
10042fi
Reid Spencera773bd52006-08-04 18:18:08 +000010043ac_res=`eval echo '${'$as_ac_var'}'`
10044 { echo "$as_me:$LINENO: result: $ac_res" >&5
10045echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046if test `eval echo '${'$as_ac_var'}'` = yes; then
10047 cat >>confdefs.h <<_ACEOF
10048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10049_ACEOF
10050
10051fi
10052done
10053
10054 LIBS="$lt_save_LIBS"
10055fi
10056ac_ext=c
10057ac_cpp='$CPP $CPPFLAGS'
10058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10060ac_compiler_gnu=$ac_cv_c_compiler_gnu
10061
10062
10063
Reid Spencera773bd52006-08-04 18:18:08 +000010064{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10065echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069 ac_cv_sys_symbol_underscore=no
10070 cat > conftest.$ac_ext <<EOF
10071void nm_test_func(){}
10072int main(){nm_test_func;return 0;}
10073EOF
10074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10075 (eval $ac_compile) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; then
10079 # Now try to grab the symbols.
10080 ac_nlist=conftest.nm
10081 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10082 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } && test -s "$ac_nlist"; then
10086 # See whether the symbols have a leading underscore.
10087 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10088 ac_cv_sys_symbol_underscore=yes
10089 else
10090 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10091 :
10092 else
10093 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10094 fi
10095 fi
10096 else
10097 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10098 fi
10099 else
10100 echo "configure: failed program was:" >&5
10101 cat conftest.c >&5
10102 fi
10103 rm -rf conftest*
10104
10105fi
Reid Spencera773bd52006-08-04 18:18:08 +000010106{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10107echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010108
10109
10110if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10111 if test x"$libltdl_cv_func_dlopen" = xyes ||
10112 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010113 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10114echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115if test "${libltdl_cv_need_uscore+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10117else
10118 libltdl_cv_need_uscore=unknown
10119 save_LIBS="$LIBS"
10120 LIBS="$LIBS $LIBADD_DL"
10121 if test "$cross_compiling" = yes; then :
10122 libltdl_cv_need_uscore=cross
10123else
10124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10125 lt_status=$lt_dlunknown
10126 cat > conftest.$ac_ext <<EOF
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010127#line 10127 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010128#include "confdefs.h"
10129
10130#if HAVE_DLFCN_H
10131#include <dlfcn.h>
10132#endif
10133
10134#include <stdio.h>
10135
10136#ifdef RTLD_GLOBAL
10137# define LT_DLGLOBAL RTLD_GLOBAL
10138#else
10139# ifdef DL_GLOBAL
10140# define LT_DLGLOBAL DL_GLOBAL
10141# else
10142# define LT_DLGLOBAL 0
10143# endif
10144#endif
10145
10146/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10147 find out it does not work in some platform. */
10148#ifndef LT_DLLAZY_OR_NOW
10149# ifdef RTLD_LAZY
10150# define LT_DLLAZY_OR_NOW RTLD_LAZY
10151# else
10152# ifdef DL_LAZY
10153# define LT_DLLAZY_OR_NOW DL_LAZY
10154# else
10155# ifdef RTLD_NOW
10156# define LT_DLLAZY_OR_NOW RTLD_NOW
10157# else
10158# ifdef DL_NOW
10159# define LT_DLLAZY_OR_NOW DL_NOW
10160# else
10161# define LT_DLLAZY_OR_NOW 0
10162# endif
10163# endif
10164# endif
10165# endif
10166#endif
10167
10168#ifdef __cplusplus
10169extern "C" void exit (int);
10170#endif
10171
10172void fnord() { int i=42;}
10173int main ()
10174{
10175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10176 int status = $lt_dlunknown;
10177
10178 if (self)
10179 {
10180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10182 /* dlclose (self); */
10183 }
Reid Spencera773bd52006-08-04 18:18:08 +000010184 else
10185 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186
10187 exit (status);
10188}
10189EOF
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010195 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010196 lt_status=$?
10197 case x$lt_status in
10198 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10199 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010200 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010201 esac
10202 else :
10203 # compilation failed
10204
10205 fi
10206fi
10207rm -fr conftest*
10208
10209 LIBS="$save_LIBS"
10210
10211fi
Reid Spencera773bd52006-08-04 18:18:08 +000010212{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10213echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010214 fi
10215fi
10216
10217if test x"$libltdl_cv_need_uscore" = xyes; then
10218
10219cat >>confdefs.h <<\_ACEOF
10220#define NEED_USCORE 1
10221_ACEOF
10222
10223fi
10224
10225
Reid Spencera773bd52006-08-04 18:18:08 +000010226{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10227echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230else
10231 # PORTME does your system automatically load deplibs for dlopen?
10232 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10233 # For now, we just catch OSes we know something about -- in the
10234 # future, we'll try test this programmatically.
10235 libltdl_cv_sys_dlopen_deplibs=unknown
10236 case "$host_os" in
10237 aix3*|aix4.1.*|aix4.2.*)
10238 # Unknown whether this is true for these versions of AIX, but
10239 # we want this `case' here to explicitly catch those versions.
10240 libltdl_cv_sys_dlopen_deplibs=unknown
10241 ;;
10242 aix[45]*)
10243 libltdl_cv_sys_dlopen_deplibs=yes
10244 ;;
10245 darwin*)
10246 # Assuming the user has installed a libdl from somewhere, this is true
10247 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10248 libltdl_cv_sys_dlopen_deplibs=yes
10249 ;;
10250 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10251 # GNU and its variants, using gnu ld.so (Glibc)
10252 libltdl_cv_sys_dlopen_deplibs=yes
10253 ;;
10254 hpux10*|hpux11*)
10255 libltdl_cv_sys_dlopen_deplibs=yes
10256 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010257 interix*)
10258 libltdl_cv_sys_dlopen_deplibs=yes
10259 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260 irix[12345]*|irix6.[01]*)
10261 # Catch all versions of IRIX before 6.2, and indicate that we don't
10262 # know how it worked for any of those versions.
10263 libltdl_cv_sys_dlopen_deplibs=unknown
10264 ;;
10265 irix*)
10266 # The case above catches anything before 6.2, and it's known that
10267 # at 6.2 and later dlopen does load deplibs.
10268 libltdl_cv_sys_dlopen_deplibs=yes
10269 ;;
10270 netbsd*)
10271 libltdl_cv_sys_dlopen_deplibs=yes
10272 ;;
10273 openbsd*)
10274 libltdl_cv_sys_dlopen_deplibs=yes
10275 ;;
10276 osf[1234]*)
10277 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10278 # it did *not* use an RPATH in a shared library to find objects the
10279 # library depends on, so we explictly say `no'.
10280 libltdl_cv_sys_dlopen_deplibs=no
10281 ;;
10282 osf5.0|osf5.0a|osf5.1)
10283 # dlopen *does* load deplibs and with the right loader patch applied
10284 # it even uses RPATH in a shared library to search for shared objects
10285 # that the library depends on, but there's no easy way to know if that
10286 # patch is installed. Since this is the case, all we can really
10287 # say is unknown -- it depends on the patch being installed. If
10288 # it is, this changes to `yes'. Without it, it would be `no'.
10289 libltdl_cv_sys_dlopen_deplibs=unknown
10290 ;;
10291 osf*)
10292 # the two cases above should catch all versions of osf <= 5.1. Read
10293 # the comments above for what we know about them.
10294 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10295 # is used to find them so we can finally say `yes'.
10296 libltdl_cv_sys_dlopen_deplibs=yes
10297 ;;
10298 solaris*)
10299 libltdl_cv_sys_dlopen_deplibs=yes
10300 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10302 libltdl_cv_sys_dlopen_deplibs=yes
10303 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010304 esac
10305
10306fi
Reid Spencera773bd52006-08-04 18:18:08 +000010307{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10308echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010309if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10310
10311cat >>confdefs.h <<\_ACEOF
10312#define LTDL_DLOPEN_DEPLIBS 1
10313_ACEOF
10314
10315fi
10316
10317
10318for ac_header in argz.h
10319do
10320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326fi
Reid Spencera773bd52006-08-04 18:18:08 +000010327ac_res=`eval echo '${'$as_ac_Header'}'`
10328 { echo "$as_me:$LINENO: result: $ac_res" >&5
10329echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330else
10331 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010332{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10333echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334cat >conftest.$ac_ext <<_ACEOF
10335/* confdefs.h. */
10336_ACEOF
10337cat confdefs.h >>conftest.$ac_ext
10338cat >>conftest.$ac_ext <<_ACEOF
10339/* end confdefs.h. */
10340$ac_includes_default
10341#include <$ac_header>
10342_ACEOF
10343rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010344if { (ac_try="$ac_compile"
10345case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10348esac
10349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010356 (exit $ac_status); } && {
10357 test -z "$ac_c_werror_flag" ||
10358 test ! -s conftest.err
10359 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360 ac_header_compiler=yes
10361else
10362 echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
Reid Spencera773bd52006-08-04 18:18:08 +000010365 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366fi
Reid Spencera773bd52006-08-04 18:18:08 +000010367
10368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10370echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371
10372# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010373{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010375cat >conftest.$ac_ext <<_ACEOF
10376/* confdefs.h. */
10377_ACEOF
10378cat confdefs.h >>conftest.$ac_ext
10379cat >>conftest.$ac_ext <<_ACEOF
10380/* end confdefs.h. */
10381#include <$ac_header>
10382_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010383if { (ac_try="$ac_cpp conftest.$ac_ext"
10384case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387esac
10388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010395 (exit $ac_status); } >/dev/null && {
10396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10398 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399 ac_header_preproc=yes
10400else
10401 echo "$as_me: failed program was:" >&5
10402sed 's/^/| /' conftest.$ac_ext >&5
10403
10404 ac_header_preproc=no
10405fi
Reid Spencera773bd52006-08-04 18:18:08 +000010406
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010408{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10409echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410
10411# So? What about this header?
10412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10413 yes:no: )
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10418 ac_header_preproc=yes
10419 ;;
10420 no:yes:* )
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010433 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434## ----------------------------------- ##
10435## Report this to llvmbugs@cs.uiuc.edu ##
10436## ----------------------------------- ##
10437_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010438 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439 ;;
10440esac
Reid Spencera773bd52006-08-04 18:18:08 +000010441{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444 echo $ECHO_N "(cached) $ECHO_C" >&6
10445else
10446 eval "$as_ac_Header=\$ac_header_preproc"
10447fi
Reid Spencera773bd52006-08-04 18:18:08 +000010448ac_res=`eval echo '${'$as_ac_Header'}'`
10449 { echo "$as_me:$LINENO: result: $ac_res" >&5
10450echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451
10452fi
10453if test `eval echo '${'$as_ac_Header'}'` = yes; then
10454 cat >>confdefs.h <<_ACEOF
10455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10456_ACEOF
10457
10458fi
10459
10460done
10461
10462
Reid Spencera773bd52006-08-04 18:18:08 +000010463{ echo "$as_me:$LINENO: checking for error_t" >&5
10464echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010465if test "${ac_cv_type_error_t+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468 cat >conftest.$ac_ext <<_ACEOF
10469/* confdefs.h. */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
10473/* end confdefs.h. */
10474#if HAVE_ARGZ_H
10475# include <argz.h>
10476#endif
10477
Reid Spencera773bd52006-08-04 18:18:08 +000010478typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479int
10480main ()
10481{
Reid Spencera773bd52006-08-04 18:18:08 +000010482if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010484if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485 return 0;
10486 ;
10487 return 0;
10488}
10489_ACEOF
10490rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010491if { (ac_try="$ac_compile"
10492case "(($ac_try" in
10493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10494 *) ac_try_echo=$ac_try;;
10495esac
10496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10497 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498 ac_status=$?
10499 grep -v '^ *+' conftest.er1 >conftest.err
10500 rm -f conftest.er1
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010503 (exit $ac_status); } && {
10504 test -z "$ac_c_werror_flag" ||
10505 test ! -s conftest.err
10506 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507 ac_cv_type_error_t=yes
10508else
10509 echo "$as_me: failed program was:" >&5
10510sed 's/^/| /' conftest.$ac_ext >&5
10511
Reid Spencera773bd52006-08-04 18:18:08 +000010512 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010513fi
Reid Spencera773bd52006-08-04 18:18:08 +000010514
10515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010516fi
Reid Spencera773bd52006-08-04 18:18:08 +000010517{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10518echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519if test $ac_cv_type_error_t = yes; then
10520
10521cat >>confdefs.h <<_ACEOF
10522#define HAVE_ERROR_T 1
10523_ACEOF
10524
10525
10526else
10527
10528cat >>confdefs.h <<\_ACEOF
10529#define error_t int
10530_ACEOF
10531
10532fi
10533
10534
10535
10536
10537
10538
10539
10540for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10541do
10542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010543{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548 cat >conftest.$ac_ext <<_ACEOF
10549/* confdefs.h. */
10550_ACEOF
10551cat confdefs.h >>conftest.$ac_ext
10552cat >>conftest.$ac_ext <<_ACEOF
10553/* end confdefs.h. */
10554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10556#define $ac_func innocuous_$ac_func
10557
10558/* System header to define __stub macros and hopefully few prototypes,
10559 which can conflict with char $ac_func (); below.
10560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10561 <limits.h> exists even on freestanding compilers. */
10562
10563#ifdef __STDC__
10564# include <limits.h>
10565#else
10566# include <assert.h>
10567#endif
10568
10569#undef $ac_func
10570
Reid Spencera773bd52006-08-04 18:18:08 +000010571/* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010574#ifdef __cplusplus
10575extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577char $ac_func ();
10578/* The GNU C library defines this for functions which it implements
10579 to always fail with ENOSYS. Some functions are actually named
10580 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010581#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010582choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010583#endif
10584
10585int
10586main ()
10587{
Reid Spencera773bd52006-08-04 18:18:08 +000010588return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589 ;
10590 return 0;
10591}
10592_ACEOF
10593rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010594if { (ac_try="$ac_link"
10595case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598esac
10599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010611 eval "$as_ac_var=yes"
10612else
10613 echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
Reid Spencera773bd52006-08-04 18:18:08 +000010616 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010617fi
Reid Spencera773bd52006-08-04 18:18:08 +000010618
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620 conftest$ac_exeext conftest.$ac_ext
10621fi
Reid Spencera773bd52006-08-04 18:18:08 +000010622ac_res=`eval echo '${'$as_ac_var'}'`
10623 { echo "$as_me:$LINENO: result: $ac_res" >&5
10624echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625if test `eval echo '${'$as_ac_var'}'` = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10628_ACEOF
10629
10630fi
10631done
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10661 stdio.h unistd.h
10662do
10663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669fi
Reid Spencera773bd52006-08-04 18:18:08 +000010670ac_res=`eval echo '${'$as_ac_Header'}'`
10671 { echo "$as_me:$LINENO: result: $ac_res" >&5
10672echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673else
10674 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010675{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677cat >conftest.$ac_ext <<_ACEOF
10678/* confdefs.h. */
10679_ACEOF
10680cat confdefs.h >>conftest.$ac_ext
10681cat >>conftest.$ac_ext <<_ACEOF
10682/* end confdefs.h. */
10683$ac_includes_default
10684#include <$ac_header>
10685_ACEOF
10686rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010687if { (ac_try="$ac_compile"
10688case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691esac
10692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703 ac_header_compiler=yes
10704else
10705 echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
Reid Spencera773bd52006-08-04 18:18:08 +000010708 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709fi
Reid Spencera773bd52006-08-04 18:18:08 +000010710
10711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10713echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010714
10715# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010716{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718cat >conftest.$ac_ext <<_ACEOF
10719/* confdefs.h. */
10720_ACEOF
10721cat confdefs.h >>conftest.$ac_ext
10722cat >>conftest.$ac_ext <<_ACEOF
10723/* end confdefs.h. */
10724#include <$ac_header>
10725_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010726if { (ac_try="$ac_cpp conftest.$ac_ext"
10727case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730esac
10731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010733 ac_status=$?
10734 grep -v '^ *+' conftest.er1 >conftest.err
10735 rm -f conftest.er1
10736 cat conftest.err >&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010738 (exit $ac_status); } >/dev/null && {
10739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10740 test ! -s conftest.err
10741 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010742 ac_header_preproc=yes
10743else
10744 echo "$as_me: failed program was:" >&5
10745sed 's/^/| /' conftest.$ac_ext >&5
10746
10747 ac_header_preproc=no
10748fi
Reid Spencera773bd52006-08-04 18:18:08 +000010749
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010751{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10752echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010753
10754# So? What about this header?
10755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10756 yes:no: )
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10761 ac_header_preproc=yes
10762 ;;
10763 no:yes:* )
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010776 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777## ----------------------------------- ##
10778## Report this to llvmbugs@cs.uiuc.edu ##
10779## ----------------------------------- ##
10780_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010781 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010782 ;;
10783esac
Reid Spencera773bd52006-08-04 18:18:08 +000010784{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788else
10789 eval "$as_ac_Header=\$ac_header_preproc"
10790fi
Reid Spencera773bd52006-08-04 18:18:08 +000010791ac_res=`eval echo '${'$as_ac_Header'}'`
10792 { echo "$as_me:$LINENO: result: $ac_res" >&5
10793echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010794
10795fi
10796if test `eval echo '${'$as_ac_Header'}'` = yes; then
10797 cat >>confdefs.h <<_ACEOF
10798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10799_ACEOF
10800
10801fi
10802
10803done
10804
10805
10806
10807
10808
10809for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10810do
10811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817fi
Reid Spencera773bd52006-08-04 18:18:08 +000010818ac_res=`eval echo '${'$as_ac_Header'}'`
10819 { echo "$as_me:$LINENO: result: $ac_res" >&5
10820echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821else
10822 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010823{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10824echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010825cat >conftest.$ac_ext <<_ACEOF
10826/* confdefs.h. */
10827_ACEOF
10828cat confdefs.h >>conftest.$ac_ext
10829cat >>conftest.$ac_ext <<_ACEOF
10830/* end confdefs.h. */
10831$ac_includes_default
10832#include <$ac_header>
10833_ACEOF
10834rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010835if { (ac_try="$ac_compile"
10836case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10839esac
10840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851 ac_header_compiler=yes
10852else
10853 echo "$as_me: failed program was:" >&5
10854sed 's/^/| /' conftest.$ac_ext >&5
10855
Reid Spencera773bd52006-08-04 18:18:08 +000010856 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857fi
Reid Spencera773bd52006-08-04 18:18:08 +000010858
10859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10861echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010862
10863# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010864{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010866cat >conftest.$ac_ext <<_ACEOF
10867/* confdefs.h. */
10868_ACEOF
10869cat confdefs.h >>conftest.$ac_ext
10870cat >>conftest.$ac_ext <<_ACEOF
10871/* end confdefs.h. */
10872#include <$ac_header>
10873_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010874if { (ac_try="$ac_cpp conftest.$ac_ext"
10875case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010886 (exit $ac_status); } >/dev/null && {
10887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010890 ac_header_preproc=yes
10891else
10892 echo "$as_me: failed program was:" >&5
10893sed 's/^/| /' conftest.$ac_ext >&5
10894
10895 ac_header_preproc=no
10896fi
Reid Spencera773bd52006-08-04 18:18:08 +000010897
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010899{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10900echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901
10902# So? What about this header?
10903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10904 yes:no: )
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10908echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10909 ac_header_preproc=yes
10910 ;;
10911 no:yes:* )
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10913echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10915echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10917echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10919echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10921echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10923echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010924 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010925## ----------------------------------- ##
10926## Report this to llvmbugs@cs.uiuc.edu ##
10927## ----------------------------------- ##
10928_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010929 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930 ;;
10931esac
Reid Spencera773bd52006-08-04 18:18:08 +000010932{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937 eval "$as_ac_Header=\$ac_header_preproc"
10938fi
Reid Spencera773bd52006-08-04 18:18:08 +000010939ac_res=`eval echo '${'$as_ac_Header'}'`
10940 { echo "$as_me:$LINENO: result: $ac_res" >&5
10941echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942
10943fi
10944if test `eval echo '${'$as_ac_Header'}'` = yes; then
10945 cat >>confdefs.h <<_ACEOF
10946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10947_ACEOF
10948
10949fi
10950
10951done
10952
10953
10954
10955for ac_header in string.h strings.h
10956do
10957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963fi
Reid Spencera773bd52006-08-04 18:18:08 +000010964ac_res=`eval echo '${'$as_ac_Header'}'`
10965 { echo "$as_me:$LINENO: result: $ac_res" >&5
10966echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967else
10968 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010969{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010971cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h. */
10977$ac_includes_default
10978#include <$ac_header>
10979_ACEOF
10980rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010981if { (ac_try="$ac_compile"
10982case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985esac
10986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000010993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest.$ac_objext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010997 ac_header_compiler=yes
10998else
10999 echo "$as_me: failed program was:" >&5
11000sed 's/^/| /' conftest.$ac_ext >&5
11001
Reid Spencera773bd52006-08-04 18:18:08 +000011002 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003fi
Reid Spencera773bd52006-08-04 18:18:08 +000011004
11005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11007echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008
11009# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011010{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012cat >conftest.$ac_ext <<_ACEOF
11013/* confdefs.h. */
11014_ACEOF
11015cat confdefs.h >>conftest.$ac_ext
11016cat >>conftest.$ac_ext <<_ACEOF
11017/* end confdefs.h. */
11018#include <$ac_header>
11019_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011020if { (ac_try="$ac_cpp conftest.$ac_ext"
11021case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11024esac
11025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011027 ac_status=$?
11028 grep -v '^ *+' conftest.er1 >conftest.err
11029 rm -f conftest.er1
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011032 (exit $ac_status); } >/dev/null && {
11033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11034 test ! -s conftest.err
11035 }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011036 ac_header_preproc=yes
11037else
11038 echo "$as_me: failed program was:" >&5
11039sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 ac_header_preproc=no
11042fi
Reid Spencera773bd52006-08-04 18:18:08 +000011043
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011045{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11046echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011047
11048# So? What about this header?
11049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11050 yes:no: )
11051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11055 ac_header_preproc=yes
11056 ;;
11057 no:yes:* )
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011070 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071## ----------------------------------- ##
11072## Report this to llvmbugs@cs.uiuc.edu ##
11073## ----------------------------------- ##
11074_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011075 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076 ;;
11077esac
Reid Spencera773bd52006-08-04 18:18:08 +000011078{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082else
11083 eval "$as_ac_Header=\$ac_header_preproc"
11084fi
Reid Spencera773bd52006-08-04 18:18:08 +000011085ac_res=`eval echo '${'$as_ac_Header'}'`
11086 { echo "$as_me:$LINENO: result: $ac_res" >&5
11087echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088
11089fi
11090if test `eval echo '${'$as_ac_Header'}'` = yes; then
11091 cat >>confdefs.h <<_ACEOF
11092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11093_ACEOF
11094 break
11095fi
11096
11097done
11098
11099
11100
11101
11102for ac_func in strchr index
11103do
11104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011105{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11107if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109else
11110 cat >conftest.$ac_ext <<_ACEOF
11111/* confdefs.h. */
11112_ACEOF
11113cat confdefs.h >>conftest.$ac_ext
11114cat >>conftest.$ac_ext <<_ACEOF
11115/* end confdefs.h. */
11116/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11118#define $ac_func innocuous_$ac_func
11119
11120/* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char $ac_func (); below.
11122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123 <limits.h> exists even on freestanding compilers. */
11124
11125#ifdef __STDC__
11126# include <limits.h>
11127#else
11128# include <assert.h>
11129#endif
11130
11131#undef $ac_func
11132
Reid Spencera773bd52006-08-04 18:18:08 +000011133/* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136#ifdef __cplusplus
11137extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139char $ac_func ();
11140/* The GNU C library defines this for functions which it implements
11141 to always fail with ENOSYS. Some functions are actually named
11142 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011143#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011145#endif
11146
11147int
11148main ()
11149{
Reid Spencera773bd52006-08-04 18:18:08 +000011150return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011151 ;
11152 return 0;
11153}
11154_ACEOF
11155rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011156if { (ac_try="$ac_link"
11157case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160esac
11161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest$ac_exeext &&
11172 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011173 eval "$as_ac_var=yes"
11174else
11175 echo "$as_me: failed program was:" >&5
11176sed 's/^/| /' conftest.$ac_ext >&5
11177
Reid Spencera773bd52006-08-04 18:18:08 +000011178 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179fi
Reid Spencera773bd52006-08-04 18:18:08 +000011180
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011182 conftest$ac_exeext conftest.$ac_ext
11183fi
Reid Spencera773bd52006-08-04 18:18:08 +000011184ac_res=`eval echo '${'$as_ac_var'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011187if test `eval echo '${'$as_ac_var'}'` = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11190_ACEOF
11191 break
11192fi
11193done
11194
11195
11196
11197for ac_func in strrchr rindex
11198do
11199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011200{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11202if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204else
11205 cat >conftest.$ac_ext <<_ACEOF
11206/* confdefs.h. */
11207_ACEOF
11208cat confdefs.h >>conftest.$ac_ext
11209cat >>conftest.$ac_ext <<_ACEOF
11210/* end confdefs.h. */
11211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11213#define $ac_func innocuous_$ac_func
11214
11215/* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char $ac_func (); below.
11217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11218 <limits.h> exists even on freestanding compilers. */
11219
11220#ifdef __STDC__
11221# include <limits.h>
11222#else
11223# include <assert.h>
11224#endif
11225
11226#undef $ac_func
11227
Reid Spencera773bd52006-08-04 18:18:08 +000011228/* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011231#ifdef __cplusplus
11232extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011233#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011234char $ac_func ();
11235/* The GNU C library defines this for functions which it implements
11236 to always fail with ENOSYS. Some functions are actually named
11237 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011238#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240#endif
11241
11242int
11243main ()
11244{
Reid Spencera773bd52006-08-04 18:18:08 +000011245return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246 ;
11247 return 0;
11248}
11249_ACEOF
11250rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011251if { (ac_try="$ac_link"
11252case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255esac
11256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest$ac_exeext &&
11267 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268 eval "$as_ac_var=yes"
11269else
11270 echo "$as_me: failed program was:" >&5
11271sed 's/^/| /' conftest.$ac_ext >&5
11272
Reid Spencera773bd52006-08-04 18:18:08 +000011273 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274fi
Reid Spencera773bd52006-08-04 18:18:08 +000011275
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277 conftest$ac_exeext conftest.$ac_ext
11278fi
Reid Spencera773bd52006-08-04 18:18:08 +000011279ac_res=`eval echo '${'$as_ac_var'}'`
11280 { echo "$as_me:$LINENO: result: $ac_res" >&5
11281echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282if test `eval echo '${'$as_ac_var'}'` = yes; then
11283 cat >>confdefs.h <<_ACEOF
11284#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11285_ACEOF
11286 break
11287fi
11288done
11289
11290
11291
11292for ac_func in memcpy bcopy
11293do
11294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011295{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11297if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299else
11300 cat >conftest.$ac_ext <<_ACEOF
11301/* confdefs.h. */
11302_ACEOF
11303cat confdefs.h >>conftest.$ac_ext
11304cat >>conftest.$ac_ext <<_ACEOF
11305/* end confdefs.h. */
11306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11308#define $ac_func innocuous_$ac_func
11309
11310/* System header to define __stub macros and hopefully few prototypes,
11311 which can conflict with char $ac_func (); below.
11312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11313 <limits.h> exists even on freestanding compilers. */
11314
11315#ifdef __STDC__
11316# include <limits.h>
11317#else
11318# include <assert.h>
11319#endif
11320
11321#undef $ac_func
11322
Reid Spencera773bd52006-08-04 18:18:08 +000011323/* Override any GCC internal prototype to avoid an error.
11324 Use char because int might match the return type of a GCC
11325 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326#ifdef __cplusplus
11327extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011329char $ac_func ();
11330/* The GNU C library defines this for functions which it implements
11331 to always fail with ENOSYS. Some functions are actually named
11332 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011333#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011334choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335#endif
11336
11337int
11338main ()
11339{
Reid Spencera773bd52006-08-04 18:18:08 +000011340return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341 ;
11342 return 0;
11343}
11344_ACEOF
11345rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011346if { (ac_try="$ac_link"
11347case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11350esac
11351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011358 (exit $ac_status); } && {
11359 test -z "$ac_c_werror_flag" ||
11360 test ! -s conftest.err
11361 } && test -s conftest$ac_exeext &&
11362 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011363 eval "$as_ac_var=yes"
11364else
11365 echo "$as_me: failed program was:" >&5
11366sed 's/^/| /' conftest.$ac_ext >&5
11367
Reid Spencera773bd52006-08-04 18:18:08 +000011368 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011369fi
Reid Spencera773bd52006-08-04 18:18:08 +000011370
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011372 conftest$ac_exeext conftest.$ac_ext
11373fi
Reid Spencera773bd52006-08-04 18:18:08 +000011374ac_res=`eval echo '${'$as_ac_var'}'`
11375 { echo "$as_me:$LINENO: result: $ac_res" >&5
11376echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011377if test `eval echo '${'$as_ac_var'}'` = yes; then
11378 cat >>confdefs.h <<_ACEOF
11379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11380_ACEOF
11381 break
11382fi
11383done
11384
11385
11386
11387for ac_func in memmove strcmp
11388do
11389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011390{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11392if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394else
11395 cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h. */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h. */
11401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11403#define $ac_func innocuous_$ac_func
11404
11405/* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char $ac_func (); below.
11407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11408 <limits.h> exists even on freestanding compilers. */
11409
11410#ifdef __STDC__
11411# include <limits.h>
11412#else
11413# include <assert.h>
11414#endif
11415
11416#undef $ac_func
11417
Reid Spencera773bd52006-08-04 18:18:08 +000011418/* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421#ifdef __cplusplus
11422extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424char $ac_func ();
11425/* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011428#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011429choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011430#endif
11431
11432int
11433main ()
11434{
Reid Spencera773bd52006-08-04 18:18:08 +000011435return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011436 ;
11437 return 0;
11438}
11439_ACEOF
11440rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011441if { (ac_try="$ac_link"
11442case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445esac
11446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest$ac_exeext &&
11457 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011458 eval "$as_ac_var=yes"
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
Reid Spencera773bd52006-08-04 18:18:08 +000011463 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464fi
Reid Spencera773bd52006-08-04 18:18:08 +000011465
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467 conftest$ac_exeext conftest.$ac_ext
11468fi
Reid Spencera773bd52006-08-04 18:18:08 +000011469ac_res=`eval echo '${'$as_ac_var'}'`
11470 { echo "$as_me:$LINENO: result: $ac_res" >&5
11471echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472if test `eval echo '${'$as_ac_var'}'` = yes; then
11473 cat >>confdefs.h <<_ACEOF
11474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11475_ACEOF
11476
11477fi
11478done
11479
11480
11481
11482
11483for ac_func in closedir opendir readdir
11484do
11485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011486{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11488if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490else
11491 cat >conftest.$ac_ext <<_ACEOF
11492/* confdefs.h. */
11493_ACEOF
11494cat confdefs.h >>conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h. */
11497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11499#define $ac_func innocuous_$ac_func
11500
11501/* System header to define __stub macros and hopefully few prototypes,
11502 which can conflict with char $ac_func (); below.
11503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11504 <limits.h> exists even on freestanding compilers. */
11505
11506#ifdef __STDC__
11507# include <limits.h>
11508#else
11509# include <assert.h>
11510#endif
11511
11512#undef $ac_func
11513
Reid Spencera773bd52006-08-04 18:18:08 +000011514/* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011517#ifdef __cplusplus
11518extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011519#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011520char $ac_func ();
11521/* The GNU C library defines this for functions which it implements
11522 to always fail with ENOSYS. Some functions are actually named
11523 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011524#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526#endif
11527
11528int
11529main ()
11530{
Reid Spencera773bd52006-08-04 18:18:08 +000011531return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532 ;
11533 return 0;
11534}
11535_ACEOF
11536rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011537if { (ac_try="$ac_link"
11538case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541esac
11542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest$ac_exeext &&
11553 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554 eval "$as_ac_var=yes"
11555else
11556 echo "$as_me: failed program was:" >&5
11557sed 's/^/| /' conftest.$ac_ext >&5
11558
Reid Spencera773bd52006-08-04 18:18:08 +000011559 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560fi
Reid Spencera773bd52006-08-04 18:18:08 +000011561
Nick Lewycky2ab1d862009-01-20 00:52:24 +000011562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563 conftest$ac_exeext conftest.$ac_ext
11564fi
Reid Spencera773bd52006-08-04 18:18:08 +000011565ac_res=`eval echo '${'$as_ac_var'}'`
11566 { echo "$as_me:$LINENO: result: $ac_res" >&5
11567echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011568if test `eval echo '${'$as_ac_var'}'` = yes; then
11569 cat >>confdefs.h <<_ACEOF
11570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11571_ACEOF
11572
11573fi
11574done
11575
11576
Reid Spencera773bd52006-08-04 18:18:08 +000011577# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011579 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580 case $enableval in
11581 yes) enable_shared=yes ;;
11582 no) enable_shared=no ;;
11583 *)
11584 enable_shared=no
11585 # Look at the argument we got. We use all the common list separators.
11586 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11587 for pkg in $enableval; do
11588 IFS="$lt_save_ifs"
11589 if test "X$pkg" = "X$p"; then
11590 enable_shared=yes
11591 fi
11592 done
11593 IFS="$lt_save_ifs"
11594 ;;
11595 esac
11596else
11597 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011598fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011599
Reid Spencera773bd52006-08-04 18:18:08 +000011600
11601# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011602if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011603 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604 case $enableval in
11605 yes) enable_static=yes ;;
11606 no) enable_static=no ;;
11607 *)
11608 enable_static=no
11609 # Look at the argument we got. We use all the common list separators.
11610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11611 for pkg in $enableval; do
11612 IFS="$lt_save_ifs"
11613 if test "X$pkg" = "X$p"; then
11614 enable_static=yes
11615 fi
11616 done
11617 IFS="$lt_save_ifs"
11618 ;;
11619 esac
11620else
11621 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011622fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011623
Reid Spencera773bd52006-08-04 18:18:08 +000011624
11625# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011626if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011627 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628 case $enableval in
11629 yes) enable_fast_install=yes ;;
11630 no) enable_fast_install=no ;;
11631 *)
11632 enable_fast_install=no
11633 # Look at the argument we got. We use all the common list separators.
11634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11635 for pkg in $enableval; do
11636 IFS="$lt_save_ifs"
11637 if test "X$pkg" = "X$p"; then
11638 enable_fast_install=yes
11639 fi
11640 done
11641 IFS="$lt_save_ifs"
11642 ;;
11643 esac
11644else
11645 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011646fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011647
Reid Spencera773bd52006-08-04 18:18:08 +000011648
11649{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11650echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011651if test "${lt_cv_path_SED+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653else
11654 # Loop through the user's path and test for sed and gsed.
11655# Then use that list of sed's as ones to test for truncation.
11656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657for as_dir in $PATH
11658do
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for lt_ac_prog in sed gsed; do
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11664 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11665 fi
11666 done
11667 done
11668done
11669lt_ac_max=0
11670lt_ac_count=0
11671# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11672# along with /bin/sed that truncates output.
11673for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000011674 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675 cat /dev/null > conftest.in
11676 lt_ac_count=0
11677 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11678 # Check for GNU sed and select it if it is found.
11679 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11680 lt_cv_path_SED=$lt_ac_sed
11681 break
11682 fi
11683 while true; do
11684 cat conftest.in conftest.in >conftest.tmp
11685 mv conftest.tmp conftest.in
11686 cp conftest.in conftest.nl
11687 echo >>conftest.nl
11688 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11689 cmp -s conftest.out conftest.nl || break
11690 # 10000 chars as input seems more than enough
11691 test $lt_ac_count -gt 10 && break
11692 lt_ac_count=`expr $lt_ac_count + 1`
11693 if test $lt_ac_count -gt $lt_ac_max; then
11694 lt_ac_max=$lt_ac_count
11695 lt_cv_path_SED=$lt_ac_sed
11696 fi
11697 done
11698done
11699
11700fi
11701
11702SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000011703{ echo "$as_me:$LINENO: result: $SED" >&5
11704echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705
11706
Reid Spencera773bd52006-08-04 18:18:08 +000011707# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011710else
11711 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000011712fi
11713
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011714ac_prog=ld
11715if test "$GCC" = yes; then
11716 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000011717 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11718echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011719 case $host in
11720 *-*-mingw*)
11721 # gcc leaves a trailing carriage return which upsets mingw
11722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11723 *)
11724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11725 esac
11726 case $ac_prog in
11727 # Accept absolute paths.
11728 [\\/]* | ?:[\\/]*)
11729 re_direlt='/[^/][^/]*/\.\./'
11730 # Canonicalize the pathname of ld
11731 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11732 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11733 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11734 done
11735 test -z "$LD" && LD="$ac_prog"
11736 ;;
11737 "")
11738 # If it fails, then pretend we aren't using GCC.
11739 ac_prog=ld
11740 ;;
11741 *)
11742 # If it is relative, then search for the first ld in PATH.
11743 with_gnu_ld=unknown
11744 ;;
11745 esac
11746elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000011747 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11748echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011749else
Reid Spencera773bd52006-08-04 18:18:08 +000011750 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11751echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752fi
11753if test "${lt_cv_path_LD+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755else
11756 if test -z "$LD"; then
11757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11758 for ac_dir in $PATH; do
11759 IFS="$lt_save_ifs"
11760 test -z "$ac_dir" && ac_dir=.
11761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11762 lt_cv_path_LD="$ac_dir/$ac_prog"
11763 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000011764 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011765 # Break only if it was the GNU/non-GNU ld that we prefer.
11766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11767 *GNU* | *'with BFD'*)
11768 test "$with_gnu_ld" != no && break
11769 ;;
11770 *)
11771 test "$with_gnu_ld" != yes && break
11772 ;;
11773 esac
11774 fi
11775 done
11776 IFS="$lt_save_ifs"
11777else
11778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11779fi
11780fi
11781
11782LD="$lt_cv_path_LD"
11783if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000011784 { echo "$as_me:$LINENO: result: $LD" >&5
11785echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786else
Reid Spencera773bd52006-08-04 18:18:08 +000011787 { echo "$as_me:$LINENO: result: no" >&5
11788echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011789fi
11790test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11791echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11792 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000011793{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11794echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011795if test "${lt_cv_prog_gnu_ld+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
Reid Spencera773bd52006-08-04 18:18:08 +000011798 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011799case `$LD -v 2>&1 </dev/null` in
11800*GNU* | *'with BFD'*)
11801 lt_cv_prog_gnu_ld=yes
11802 ;;
11803*)
11804 lt_cv_prog_gnu_ld=no
11805 ;;
11806esac
11807fi
Reid Spencera773bd52006-08-04 18:18:08 +000011808{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11809echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011810with_gnu_ld=$lt_cv_prog_gnu_ld
11811
11812
Reid Spencera773bd52006-08-04 18:18:08 +000011813{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11814echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815if test "${lt_cv_ld_reload_flag+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817else
11818 lt_cv_ld_reload_flag='-r'
11819fi
Reid Spencera773bd52006-08-04 18:18:08 +000011820{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11821echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822reload_flag=$lt_cv_ld_reload_flag
11823case $reload_flag in
11824"" | " "*) ;;
11825*) reload_flag=" $reload_flag" ;;
11826esac
11827reload_cmds='$LD$reload_flag -o $output$reload_objs'
11828case $host_os in
11829 darwin*)
11830 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000011831 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011832 else
11833 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11834 fi
11835 ;;
11836esac
11837
Reid Spencera773bd52006-08-04 18:18:08 +000011838{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11839echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011840if test "${lt_cv_deplibs_check_method+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842else
11843 lt_cv_file_magic_cmd='$MAGIC_CMD'
11844lt_cv_file_magic_test_file=
11845lt_cv_deplibs_check_method='unknown'
11846# Need to set the preceding variable on all platforms that support
11847# interlibrary dependencies.
11848# 'none' -- dependencies not supported.
11849# `unknown' -- same as none, but documents that we really don't know.
11850# 'pass_all' -- all dependencies passed with no checks.
11851# 'test_compile' -- check by making test program.
11852# 'file_magic [[regex]]' -- check by looking for files in library path
11853# which responds to the $file_magic_cmd with a given extended regex.
11854# If you have `file' or equivalent on your system and you're not sure
11855# whether `pass_all' will *always* work, you probably want this one.
11856
11857case $host_os in
11858aix4* | aix5*)
11859 lt_cv_deplibs_check_method=pass_all
11860 ;;
11861
11862beos*)
11863 lt_cv_deplibs_check_method=pass_all
11864 ;;
11865
11866bsdi[45]*)
11867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11868 lt_cv_file_magic_cmd='/usr/bin/file -L'
11869 lt_cv_file_magic_test_file=/shlib/libc.so
11870 ;;
11871
11872cygwin*)
11873 # func_win32_libid is a shell function defined in ltmain.sh
11874 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11875 lt_cv_file_magic_cmd='func_win32_libid'
11876 ;;
11877
11878mingw* | pw32*)
11879 # Base MSYS/MinGW do not provide the 'file' command needed by
11880 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11881 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11882 lt_cv_file_magic_cmd='$OBJDUMP -f'
11883 ;;
11884
11885darwin* | rhapsody*)
11886 lt_cv_deplibs_check_method=pass_all
11887 ;;
11888
Reid Spencera773bd52006-08-04 18:18:08 +000011889freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011890 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11891 case $host_cpu in
11892 i*86 )
11893 # Not sure whether the presence of OpenBSD here was a mistake.
11894 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000011895 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 +000011896 lt_cv_file_magic_cmd=/usr/bin/file
11897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11898 ;;
11899 esac
11900 else
11901 lt_cv_deplibs_check_method=pass_all
11902 fi
11903 ;;
11904
11905gnu*)
11906 lt_cv_deplibs_check_method=pass_all
11907 ;;
11908
11909hpux10.20* | hpux11*)
11910 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000011911 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011912 ia64*)
11913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11914 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11915 ;;
11916 hppa*64*)
11917 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]'
11918 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11919 ;;
11920 *)
11921 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11922 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11923 ;;
11924 esac
11925 ;;
11926
Reid Spencera773bd52006-08-04 18:18:08 +000011927interix3*)
11928 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11930 ;;
11931
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011932irix5* | irix6* | nonstopux*)
11933 case $LD in
11934 *-32|*"-32 ") libmagic=32-bit;;
11935 *-n32|*"-n32 ") libmagic=N32;;
11936 *-64|*"-64 ") libmagic=64-bit;;
11937 *) libmagic=never-match;;
11938 esac
11939 lt_cv_deplibs_check_method=pass_all
11940 ;;
11941
11942# This must be Linux ELF.
11943linux*)
11944 lt_cv_deplibs_check_method=pass_all
11945 ;;
11946
11947netbsd*)
11948 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11950 else
11951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11952 fi
11953 ;;
11954
11955newos6*)
11956 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11957 lt_cv_file_magic_cmd=/usr/bin/file
11958 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11959 ;;
11960
11961nto-qnx*)
11962 lt_cv_deplibs_check_method=unknown
11963 ;;
11964
11965openbsd*)
11966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11968 else
11969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11970 fi
11971 ;;
11972
11973osf3* | osf4* | osf5*)
11974 lt_cv_deplibs_check_method=pass_all
11975 ;;
11976
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011977solaris*)
11978 lt_cv_deplibs_check_method=pass_all
11979 ;;
11980
Reid Spencera773bd52006-08-04 18:18:08 +000011981sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982 case $host_vendor in
11983 motorola)
11984 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]'
11985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11986 ;;
11987 ncr)
11988 lt_cv_deplibs_check_method=pass_all
11989 ;;
11990 sequent)
11991 lt_cv_file_magic_cmd='/bin/file'
11992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11993 ;;
11994 sni)
11995 lt_cv_file_magic_cmd='/bin/file'
11996 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11997 lt_cv_file_magic_test_file=/lib/libc.so
11998 ;;
11999 siemens)
12000 lt_cv_deplibs_check_method=pass_all
12001 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012002 pc)
12003 lt_cv_deplibs_check_method=pass_all
12004 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005 esac
12006 ;;
12007
Reid Spencera773bd52006-08-04 18:18:08 +000012008sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012009 lt_cv_deplibs_check_method=pass_all
12010 ;;
12011esac
12012
12013fi
Reid Spencera773bd52006-08-04 18:18:08 +000012014{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12015echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012016file_magic_cmd=$lt_cv_file_magic_cmd
12017deplibs_check_method=$lt_cv_deplibs_check_method
12018test -z "$deplibs_check_method" && deplibs_check_method=unknown
12019
12020
12021
12022# If no C compiler was specified, use CC.
12023LTCC=${LTCC-"$CC"}
12024
Reid Spencera773bd52006-08-04 18:18:08 +000012025# If no C compiler flags were specified, use CFLAGS.
12026LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12027
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028# Allow CC to be a program name with arguments.
12029compiler=$CC
12030
Reid Spencera773bd52006-08-04 18:18:08 +000012031# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012032if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012033 enableval=$enable_libtool_lock;
12034fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012035
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12037
12038# Some flags need to be propagated to the compiler or linker for good
12039# libtool support.
12040case $host in
12041ia64-*-hpux*)
12042 # Find out which ABI we are using.
12043 echo 'int i;' > conftest.$ac_ext
12044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12045 (eval $ac_compile) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; then
12049 case `/usr/bin/file conftest.$ac_objext` in
12050 *ELF-32*)
12051 HPUX_IA64_MODE="32"
12052 ;;
12053 *ELF-64*)
12054 HPUX_IA64_MODE="64"
12055 ;;
12056 esac
12057 fi
12058 rm -rf conftest*
12059 ;;
12060*-*-irix6*)
12061 # Find out which ABI we are using.
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012062 echo '#line 12062 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; then
12068 if test "$lt_cv_prog_gnu_ld" = yes; then
12069 case `/usr/bin/file conftest.$ac_objext` in
12070 *32-bit*)
12071 LD="${LD-ld} -melf32bsmip"
12072 ;;
12073 *N32*)
12074 LD="${LD-ld} -melf32bmipn32"
12075 ;;
12076 *64-bit*)
12077 LD="${LD-ld} -melf64bmip"
12078 ;;
12079 esac
12080 else
12081 case `/usr/bin/file conftest.$ac_objext` in
12082 *32-bit*)
12083 LD="${LD-ld} -32"
12084 ;;
12085 *N32*)
12086 LD="${LD-ld} -n32"
12087 ;;
12088 *64-bit*)
12089 LD="${LD-ld} -64"
12090 ;;
12091 esac
12092 fi
12093 fi
12094 rm -rf conftest*
12095 ;;
12096
12097x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12098 # Find out which ABI we are using.
12099 echo 'int i;' > conftest.$ac_ext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101 (eval $ac_compile) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012105 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012106 *32-bit*)
12107 case $host in
12108 x86_64-*linux*)
12109 LD="${LD-ld} -m elf_i386"
12110 ;;
12111 ppc64-*linux*|powerpc64-*linux*)
12112 LD="${LD-ld} -m elf32ppclinux"
12113 ;;
12114 s390x-*linux*)
12115 LD="${LD-ld} -m elf_s390"
12116 ;;
12117 sparc64-*linux*)
12118 LD="${LD-ld} -m elf32_sparc"
12119 ;;
12120 esac
12121 ;;
12122 *64-bit*)
12123 case $host in
12124 x86_64-*linux*)
12125 LD="${LD-ld} -m elf_x86_64"
12126 ;;
12127 ppc*-*linux*|powerpc*-*linux*)
12128 LD="${LD-ld} -m elf64ppc"
12129 ;;
12130 s390*-*linux*)
12131 LD="${LD-ld} -m elf64_s390"
12132 ;;
12133 sparc*-*linux*)
12134 LD="${LD-ld} -m elf64_sparc"
12135 ;;
12136 esac
12137 ;;
12138 esac
12139 fi
12140 rm -rf conftest*
12141 ;;
12142
12143*-*-sco3.2v5*)
12144 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12145 SAVE_CFLAGS="$CFLAGS"
12146 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012147 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12148echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012149if test "${lt_cv_cc_needs_belf+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151else
12152 ac_ext=c
12153ac_cpp='$CPP $CPPFLAGS'
12154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156ac_compiler_gnu=$ac_cv_c_compiler_gnu
12157
12158 cat >conftest.$ac_ext <<_ACEOF
12159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
12164
Reid Spencera773bd52006-08-04 18:18:08 +000012165int
12166main ()
12167{
12168
12169 ;
12170 return 0;
12171}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172_ACEOF
12173rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012174if { (ac_try="$ac_link"
12175case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest$ac_exeext &&
12190 $as_test_x conftest$ac_exeext; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012191 lt_cv_cc_needs_belf=yes
12192else
12193 echo "$as_me: failed program was:" >&5
12194sed 's/^/| /' conftest.$ac_ext >&5
12195
Reid Spencera773bd52006-08-04 18:18:08 +000012196 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197fi
Reid Spencera773bd52006-08-04 18:18:08 +000012198
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012200 conftest$ac_exeext conftest.$ac_ext
12201 ac_ext=c
12202ac_cpp='$CPP $CPPFLAGS'
12203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12205ac_compiler_gnu=$ac_cv_c_compiler_gnu
12206
12207fi
Reid Spencera773bd52006-08-04 18:18:08 +000012208{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12209echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12212 CFLAGS="$SAVE_CFLAGS"
12213 fi
12214 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012215sparc*-*solaris*)
12216 # Find out which ABI we are using.
12217 echo 'int i;' > conftest.$ac_ext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219 (eval $ac_compile) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; then
12223 case `/usr/bin/file conftest.o` in
12224 *64-bit*)
12225 case $lt_cv_prog_gnu_ld in
12226 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12227 *) LD="${LD-ld} -64" ;;
12228 esac
12229 ;;
12230 esac
12231 fi
12232 rm -rf conftest*
12233 ;;
12234
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012235
12236esac
12237
12238need_locks="$enable_libtool_lock"
12239
12240
Reid Spencer2706f8c2004-09-19 23:53:36 +000012241
12242
12243if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12244 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12245 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012246 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012247ac_cpp='$CXXCPP $CPPFLAGS'
12248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012251{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12252echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012253if test -z "$CXXCPP"; then
12254 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256else
John Criswell47fdd832003-07-14 16:52:07 +000012257 # Double quotes because CXXCPP needs to be expanded
12258 for CXXCPP in "$CXX -E" "/lib/cpp"
12259 do
12260 ac_preproc_ok=false
12261for ac_cxx_preproc_warn_flag in '' yes
12262do
12263 # Use a header file that comes with gcc, so configuring glibc
12264 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12266 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012267 # On the NeXT, cc -E runs the code through the compiler's parser,
12268 # not just through cpp. "Syntax error" is here to catch this case.
12269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h. */
12275#ifdef __STDC__
12276# include <limits.h>
12277#else
12278# include <assert.h>
12279#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012280 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012281_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012282if { (ac_try="$ac_cpp conftest.$ac_ext"
12283case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12286esac
12287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012289 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012290 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012294 (exit $ac_status); } >/dev/null && {
12295 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12296 test ! -s conftest.err
12297 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012298 :
12299else
12300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012301sed 's/^/| /' conftest.$ac_ext >&5
12302
John Criswell47fdd832003-07-14 16:52:07 +000012303 # Broken: fails on valid input.
12304continue
12305fi
Reid Spencera773bd52006-08-04 18:18:08 +000012306
John Criswell47fdd832003-07-14 16:52:07 +000012307rm -f conftest.err conftest.$ac_ext
12308
Reid Spencera773bd52006-08-04 18:18:08 +000012309 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012310 # can be detected and how.
12311 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012312/* confdefs.h. */
12313_ACEOF
12314cat confdefs.h >>conftest.$ac_ext
12315cat >>conftest.$ac_ext <<_ACEOF
12316/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012317#include <ac_nonexistent.h>
12318_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012319if { (ac_try="$ac_cpp conftest.$ac_ext"
12320case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323esac
12324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012326 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012327 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012331 (exit $ac_status); } >/dev/null && {
12332 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12333 test ! -s conftest.err
12334 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012335 # Broken: success on invalid input.
12336continue
12337else
12338 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012339sed 's/^/| /' conftest.$ac_ext >&5
12340
John Criswell47fdd832003-07-14 16:52:07 +000012341 # Passes both tests.
12342ac_preproc_ok=:
12343break
12344fi
Reid Spencera773bd52006-08-04 18:18:08 +000012345
John Criswell47fdd832003-07-14 16:52:07 +000012346rm -f conftest.err conftest.$ac_ext
12347
12348done
12349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12350rm -f conftest.err conftest.$ac_ext
12351if $ac_preproc_ok; then
12352 break
John Criswell7a73b802003-06-30 21:59:07 +000012353fi
12354
John Criswell47fdd832003-07-14 16:52:07 +000012355 done
12356 ac_cv_prog_CXXCPP=$CXXCPP
12357
12358fi
12359 CXXCPP=$ac_cv_prog_CXXCPP
12360else
12361 ac_cv_prog_CXXCPP=$CXXCPP
12362fi
Reid Spencera773bd52006-08-04 18:18:08 +000012363{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12364echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012365ac_preproc_ok=false
12366for ac_cxx_preproc_warn_flag in '' yes
12367do
12368 # Use a header file that comes with gcc, so configuring glibc
12369 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12371 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012372 # On the NeXT, cc -E runs the code through the compiler's parser,
12373 # not just through cpp. "Syntax error" is here to catch this case.
12374 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
12380#ifdef __STDC__
12381# include <limits.h>
12382#else
12383# include <assert.h>
12384#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012385 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012386_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012387if { (ac_try="$ac_cpp conftest.$ac_ext"
12388case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391esac
12392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012394 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012395 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012399 (exit $ac_status); } >/dev/null && {
12400 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12401 test ! -s conftest.err
12402 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012403 :
12404else
12405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012406sed 's/^/| /' conftest.$ac_ext >&5
12407
John Criswell47fdd832003-07-14 16:52:07 +000012408 # Broken: fails on valid input.
12409continue
12410fi
Reid Spencera773bd52006-08-04 18:18:08 +000012411
John Criswell47fdd832003-07-14 16:52:07 +000012412rm -f conftest.err conftest.$ac_ext
12413
Reid Spencera773bd52006-08-04 18:18:08 +000012414 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012415 # can be detected and how.
12416 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012417/* confdefs.h. */
12418_ACEOF
12419cat confdefs.h >>conftest.$ac_ext
12420cat >>conftest.$ac_ext <<_ACEOF
12421/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012422#include <ac_nonexistent.h>
12423_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012424if { (ac_try="$ac_cpp conftest.$ac_ext"
12425case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12428esac
12429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012431 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012432 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012436 (exit $ac_status); } >/dev/null && {
12437 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12438 test ! -s conftest.err
12439 }; then
John Criswell47fdd832003-07-14 16:52:07 +000012440 # Broken: success on invalid input.
12441continue
12442else
12443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012444sed 's/^/| /' conftest.$ac_ext >&5
12445
John Criswell47fdd832003-07-14 16:52:07 +000012446 # Passes both tests.
12447ac_preproc_ok=:
12448break
12449fi
Reid Spencera773bd52006-08-04 18:18:08 +000012450
John Criswell47fdd832003-07-14 16:52:07 +000012451rm -f conftest.err conftest.$ac_ext
12452
12453done
12454# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12455rm -f conftest.err conftest.$ac_ext
12456if $ac_preproc_ok; then
12457 :
12458else
John Criswell0c38eaf2003-09-10 15:17:25 +000012459 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12460See \`config.log' for more details." >&5
12461echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12462See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012463 { (exit 1); exit 1; }; }
12464fi
12465
Reid Spencera773bd52006-08-04 18:18:08 +000012466ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012467ac_cpp='$CXXCPP $CPPFLAGS'
12468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12471
Reid Spencer2706f8c2004-09-19 23:53:36 +000012472fi
12473
John Criswell47fdd832003-07-14 16:52:07 +000012474
12475ac_ext=f
12476ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12477ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12479if test -n "$ac_tool_prefix"; then
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012480 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 +000012481 do
12482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012486if test "${ac_cv_prog_F77+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489 if test -n "$F77"; then
12490 ac_cv_prog_F77="$F77" # Let the user override the test.
12491else
12492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493for as_dir in $PATH
12494do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012498 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 +000012499 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12502 fi
12503done
12504done
Reid Spencera773bd52006-08-04 18:18:08 +000012505IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012506
12507fi
12508fi
12509F77=$ac_cv_prog_F77
12510if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012511 { echo "$as_me:$LINENO: result: $F77" >&5
12512echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012513else
Reid Spencera773bd52006-08-04 18:18:08 +000012514 { echo "$as_me:$LINENO: result: no" >&5
12515echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012516fi
12517
Reid Spencera773bd52006-08-04 18:18:08 +000012518
John Criswell47fdd832003-07-14 16:52:07 +000012519 test -n "$F77" && break
12520 done
12521fi
12522if test -z "$F77"; then
12523 ac_ct_F77=$F77
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012524 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 +000012525do
12526 # Extract the first word of "$ac_prog", so it can be a program name with args.
12527set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012530if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532else
12533 if test -n "$ac_ct_F77"; then
12534 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12535else
12536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537for as_dir in $PATH
12538do
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012542 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 +000012543 ac_cv_prog_ac_ct_F77="$ac_prog"
12544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 break 2
12546 fi
12547done
12548done
Reid Spencera773bd52006-08-04 18:18:08 +000012549IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012550
12551fi
12552fi
12553ac_ct_F77=$ac_cv_prog_ac_ct_F77
12554if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012555 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12556echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012557else
Reid Spencera773bd52006-08-04 18:18:08 +000012558 { echo "$as_me:$LINENO: result: no" >&5
12559echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012560fi
12561
Reid Spencera773bd52006-08-04 18:18:08 +000012562
John Criswell47fdd832003-07-14 16:52:07 +000012563 test -n "$ac_ct_F77" && break
12564done
12565
Reid Spencera773bd52006-08-04 18:18:08 +000012566 if test "x$ac_ct_F77" = x; then
12567 F77=""
12568 else
12569 case $cross_compiling:$ac_tool_warned in
12570yes:)
12571{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12572whose name does not start with the host triplet. If you think this
12573configuration is useful to you, please write to autoconf@gnu.org." >&5
12574echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12575whose name does not start with the host triplet. If you think this
12576configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12577ac_tool_warned=yes ;;
12578esac
12579 F77=$ac_ct_F77
12580 fi
John Criswell47fdd832003-07-14 16:52:07 +000012581fi
12582
12583
12584# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000012585echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012586ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000012587{ (ac_try="$ac_compiler --version >&5"
12588case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591esac
12592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012597{ (ac_try="$ac_compiler -v >&5"
12598case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601esac
12602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000012607{ (ac_try="$ac_compiler -V >&5"
12608case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611esac
12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000012614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000012617rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000012618
12619# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000012620# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000012621ac_save_ext=$ac_ext
12622ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000012623{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12624echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012625if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12627else
12628 cat >conftest.$ac_ext <<_ACEOF
12629 program main
12630#ifndef __GNUC__
12631 choke me
12632#endif
12633
12634 end
12635_ACEOF
12636rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012637if { (ac_try="$ac_compile"
12638case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641esac
12642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012644 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012649 (exit $ac_status); } && {
12650 test -z "$ac_f77_werror_flag" ||
12651 test ! -s conftest.err
12652 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012653 ac_compiler_gnu=yes
12654else
12655 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012656sed 's/^/| /' conftest.$ac_ext >&5
12657
Reid Spencera773bd52006-08-04 18:18:08 +000012658 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000012659fi
Reid Spencera773bd52006-08-04 18:18:08 +000012660
12661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012662ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12663
12664fi
Reid Spencera773bd52006-08-04 18:18:08 +000012665{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12666echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012667ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000012668ac_test_FFLAGS=${FFLAGS+set}
12669ac_save_FFLAGS=$FFLAGS
12670FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000012671{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12672echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012673if test "${ac_cv_prog_f77_g+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675else
12676 FFLAGS=-g
12677cat >conftest.$ac_ext <<_ACEOF
12678 program main
12679
12680 end
12681_ACEOF
12682rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012683if { (ac_try="$ac_compile"
12684case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687esac
12688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012690 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000012695 (exit $ac_status); } && {
12696 test -z "$ac_f77_werror_flag" ||
12697 test ! -s conftest.err
12698 } && test -s conftest.$ac_objext; then
John Criswell47fdd832003-07-14 16:52:07 +000012699 ac_cv_prog_f77_g=yes
12700else
12701 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012702sed 's/^/| /' conftest.$ac_ext >&5
12703
Reid Spencera773bd52006-08-04 18:18:08 +000012704 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000012705fi
Reid Spencera773bd52006-08-04 18:18:08 +000012706
12707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012708
12709fi
Reid Spencera773bd52006-08-04 18:18:08 +000012710{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12711echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012712if test "$ac_test_FFLAGS" = set; then
12713 FFLAGS=$ac_save_FFLAGS
12714elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012715 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012716 FFLAGS="-g -O2"
12717 else
12718 FFLAGS="-g"
12719 fi
12720else
Reid Spencer2706f8c2004-09-19 23:53:36 +000012721 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000012722 FFLAGS="-O2"
12723 else
12724 FFLAGS=
12725 fi
12726fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012727
12728G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000012729ac_ext=c
12730ac_cpp='$CPP $CPPFLAGS'
12731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733ac_compiler_gnu=$ac_cv_c_compiler_gnu
12734
12735
12736
12737# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12738
12739# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000012740{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12741echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012742if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744else
12745 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000012746 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000012747
12748 case $build_os in
12749 msdosdjgpp*)
12750 # On DJGPP, this test can blow up pretty badly due to problems in libc
12751 # (any single argument exceeding 2000 bytes causes a buffer overrun
12752 # during glob expansion). Even if it were fixed, the result of this
12753 # check would be larger than it should be.
12754 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12755 ;;
12756
12757 gnu*)
12758 # Under GNU Hurd, this test is not required because there is
12759 # no limit to the length of command line arguments.
12760 # Libtool will interpret -1 as no limit whatsoever
12761 lt_cv_sys_max_cmd_len=-1;
12762 ;;
12763
12764 cygwin* | mingw*)
12765 # On Win9x/ME, this test blows up -- it succeeds, but takes
12766 # about 5 minutes as the teststring grows exponentially.
12767 # Worse, since 9x/ME are not pre-emptively multitasking,
12768 # you end up with a "frozen" computer, even though with patience
12769 # the test eventually succeeds (with a max line length of 256k).
12770 # Instead, let's just punt: use the minimum linelength reported by
12771 # all of the supported platforms: 8192 (on NT/2K/XP).
12772 lt_cv_sys_max_cmd_len=8192;
12773 ;;
12774
Reid Spencer2706f8c2004-09-19 23:53:36 +000012775 amigaos*)
12776 # On AmigaOS with pdksh, this test takes hours, literally.
12777 # So we just punt and use a minimum line length of 8192.
12778 lt_cv_sys_max_cmd_len=8192;
12779 ;;
12780
Reid Spencera773bd52006-08-04 18:18:08 +000012781 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012782 # This has been around since 386BSD, at least. Likely further.
12783 if test -x /sbin/sysctl; then
12784 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12785 elif test -x /usr/sbin/sysctl; then
12786 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12787 else
Reid Spencera773bd52006-08-04 18:18:08 +000012788 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000012789 fi
12790 # And add a safety zone
12791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000012792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012793 ;;
12794
Reid Spencera773bd52006-08-04 18:18:08 +000012795 interix*)
12796 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12797 lt_cv_sys_max_cmd_len=196608
12798 ;;
12799
12800 osf*)
12801 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12802 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12803 # nice to cause kernel panics so lets avoid the loop below.
12804 # First set a reasonable default.
12805 lt_cv_sys_max_cmd_len=16384
12806 #
12807 if test -x /sbin/sysconfig; then
12808 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12809 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12810 esac
12811 fi
12812 ;;
12813 sco3.2v5*)
12814 lt_cv_sys_max_cmd_len=102400
12815 ;;
12816 sysv5* | sco5v6* | sysv4.2uw2*)
12817 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12818 if test -n "$kargmax"; then
12819 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12820 else
12821 lt_cv_sys_max_cmd_len=32768
12822 fi
12823 ;;
12824 *)
John Criswell47fdd832003-07-14 16:52:07 +000012825 # If test is not a shell built-in, we'll probably end up computing a
12826 # maximum length that is only half of the actual maximum length, but
12827 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012828 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12829 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12830 = "XX$teststring") >/dev/null 2>&1 &&
12831 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000012832 lt_cv_sys_max_cmd_len=$new_result &&
12833 test $i != 17 # 1/2 MB should be enough
12834 do
12835 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000012836 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000012837 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000012838 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000012839 # Add a significant safety factor because C++ compilers can tack on massive
12840 # amounts of additional arguments before passing them to the linker.
12841 # It appears as though 1/2 is a usable value.
12842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12843 ;;
12844 esac
12845
12846fi
12847
12848if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012849 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12850echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012851else
Reid Spencera773bd52006-08-04 18:18:08 +000012852 { echo "$as_me:$LINENO: result: none" >&5
12853echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012854fi
12855
12856
12857
12858
12859# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000012860{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12861echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012862if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864else
12865
12866# These are sane defaults that work on at least a few old systems.
12867# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12868
12869# Character class describing NM global symbol codes.
12870symcode='[BCDEGRST]'
12871
12872# Regexp to match symbols that can be accessed directly from C.
12873sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12874
John Criswell47fdd832003-07-14 16:52:07 +000012875# Transform an extracted symbol line into a proper C declaration
12876lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12877
12878# Transform an extracted symbol line into symbol name and symbol address
12879lt_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'"
12880
12881# Define system-specific variables.
12882case $host_os in
12883aix*)
12884 symcode='[BCDT]'
12885 ;;
12886cygwin* | mingw* | pw32*)
12887 symcode='[ABCDGISTW]'
12888 ;;
12889hpux*) # Its linker distinguishes data from code symbols
12890 if test "$host_cpu" = ia64; then
12891 symcode='[ABCDEGRST]'
12892 fi
12893 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12894 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'"
12895 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012896linux*)
12897 if test "$host_cpu" = ia64; then
12898 symcode='[ABCDGIRSTW]'
12899 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12900 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'"
12901 fi
12902 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012903irix* | nonstopux*)
12904 symcode='[BCDEGRST]'
12905 ;;
12906osf*)
12907 symcode='[BCDEGQRST]'
12908 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012909solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012910 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000012911 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012912sco3.2v5*)
12913 symcode='[DT]'
12914 ;;
12915sysv4.2uw2*)
12916 symcode='[DT]'
12917 ;;
12918sysv5* | sco5v6* | unixware* | OpenUNIX*)
12919 symcode='[ABDT]'
12920 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012921sysv4)
12922 symcode='[DFNSTU]'
12923 ;;
12924esac
12925
12926# Handle CRLF in mingw tool chain
12927opt_cr=
12928case $build_os in
12929mingw*)
12930 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12931 ;;
12932esac
12933
12934# If we're using GNU nm, then use its standard symbol codes.
12935case `$NM -V 2>&1` in
12936*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012937 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000012938esac
12939
12940# Try without a prefix undercore, then with it.
12941for ac_symprfx in "" "_"; do
12942
Reid Spencera773bd52006-08-04 18:18:08 +000012943 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12944 symxfrm="\\1 $ac_symprfx\\2 \\2"
12945
John Criswell47fdd832003-07-14 16:52:07 +000012946 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000012947 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 +000012948
12949 # Check to see that the pipe works correctly.
12950 pipe_works=no
12951
12952 rm -f conftest*
12953 cat > conftest.$ac_ext <<EOF
12954#ifdef __cplusplus
12955extern "C" {
12956#endif
12957char nm_test_var;
12958void nm_test_func(){}
12959#ifdef __cplusplus
12960}
12961#endif
12962int main(){nm_test_var='a';nm_test_func();return(0);}
12963EOF
12964
12965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 (eval $ac_compile) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; then
12970 # Now try to grab the symbols.
12971 nlist=conftest.nm
12972 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12973 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } && test -s "$nlist"; then
12977 # Try sorting and uniquifying the output.
12978 if sort "$nlist" | uniq > "$nlist"T; then
12979 mv -f "$nlist"T "$nlist"
12980 else
12981 rm -f "$nlist"T
12982 fi
12983
12984 # Make sure that we snagged all the symbols we need.
12985 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12986 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12987 cat <<EOF > conftest.$ac_ext
12988#ifdef __cplusplus
12989extern "C" {
12990#endif
12991
12992EOF
12993 # Now generate the symbol file.
12994 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12995
12996 cat <<EOF >> conftest.$ac_ext
12997#if defined (__STDC__) && __STDC__
12998# define lt_ptr_t void *
12999#else
13000# define lt_ptr_t char *
13001# define const
13002#endif
13003
13004/* The mapping between symbol names and symbols. */
13005const struct {
13006 const char *name;
13007 lt_ptr_t address;
13008}
13009lt_preloaded_symbols[] =
13010{
13011EOF
13012 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13013 cat <<\EOF >> conftest.$ac_ext
13014 {0, (lt_ptr_t) 0}
13015};
13016
13017#ifdef __cplusplus
13018}
13019#endif
13020EOF
13021 # Now try linking the two files.
13022 mv conftest.$ac_objext conftstm.$ac_objext
13023 lt_save_LIBS="$LIBS"
13024 lt_save_CFLAGS="$CFLAGS"
13025 LIBS="conftstm.$ac_objext"
13026 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13032 pipe_works=yes
13033 fi
13034 LIBS="$lt_save_LIBS"
13035 CFLAGS="$lt_save_CFLAGS"
13036 else
13037 echo "cannot find nm_test_func in $nlist" >&5
13038 fi
13039 else
13040 echo "cannot find nm_test_var in $nlist" >&5
13041 fi
13042 else
13043 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13044 fi
13045 else
13046 echo "$progname: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13048 fi
13049 rm -f conftest* conftst*
13050
13051 # Do not use the global_symbol_pipe unless it works.
13052 if test "$pipe_works" = yes; then
13053 break
13054 else
13055 lt_cv_sys_global_symbol_pipe=
13056 fi
13057done
13058
13059fi
13060
13061if test -z "$lt_cv_sys_global_symbol_pipe"; then
13062 lt_cv_sys_global_symbol_to_cdecl=
13063fi
13064if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013065 { echo "$as_me:$LINENO: result: failed" >&5
13066echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013067else
Reid Spencera773bd52006-08-04 18:18:08 +000013068 { echo "$as_me:$LINENO: result: ok" >&5
13069echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013070fi
13071
Reid Spencera773bd52006-08-04 18:18:08 +000013072{ echo "$as_me:$LINENO: checking for objdir" >&5
13073echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013074if test "${lt_cv_objdir+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076else
13077 rm -f .libs 2>/dev/null
13078mkdir .libs 2>/dev/null
13079if test -d .libs; then
13080 lt_cv_objdir=.libs
13081else
13082 # MS-DOS does not allow filenames that begin with a dot.
13083 lt_cv_objdir=_libs
13084fi
13085rmdir .libs 2>/dev/null
13086fi
Reid Spencera773bd52006-08-04 18:18:08 +000013087{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13088echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013089objdir=$lt_cv_objdir
13090
13091
13092
13093
13094
13095case $host_os in
13096aix3*)
13097 # AIX sometimes has problems with the GCC collect2 program. For some
13098 # reason, if we set the COLLECT_NAMES environment variable, the problems
13099 # vanish in a puff of smoke.
13100 if test "X${COLLECT_NAMES+set}" != Xset; then
13101 COLLECT_NAMES=
13102 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013103 fi
13104 ;;
13105esac
13106
John Criswell47fdd832003-07-14 16:52:07 +000013107# Sed substitution that helps us do robust quoting. It backslashifies
13108# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013109Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013110sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13111
13112# Same as above, but do not quote variable references.
13113double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13114
13115# Sed substitution to delay expansion of an escaped shell variable in a
13116# double_quote_subst'ed string.
13117delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13118
13119# Sed substitution to avoid accidental globbing in evaled expressions
13120no_glob_subst='s/\*/\\\*/g'
13121
13122# Constants:
13123rm="rm -f"
13124
13125# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013126default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013127can_build_shared=yes
13128
Reid Spencera773bd52006-08-04 18:18:08 +000013129# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013130# which needs '.lib').
13131libext=a
13132ltmain="$ac_aux_dir/ltmain.sh"
13133ofile="$default_ofile"
13134with_gnu_ld="$lt_cv_prog_gnu_ld"
13135
13136if test -n "$ac_tool_prefix"; then
13137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13138set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013141if test "${ac_cv_prog_AR+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143else
13144 if test -n "$AR"; then
13145 ac_cv_prog_AR="$AR" # Let the user override the test.
13146else
13147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148for as_dir in $PATH
13149do
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013153 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 +000013154 ac_cv_prog_AR="${ac_tool_prefix}ar"
13155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13157 fi
13158done
13159done
Reid Spencera773bd52006-08-04 18:18:08 +000013160IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013161
13162fi
13163fi
13164AR=$ac_cv_prog_AR
13165if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013166 { echo "$as_me:$LINENO: result: $AR" >&5
13167echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013168else
Reid Spencera773bd52006-08-04 18:18:08 +000013169 { echo "$as_me:$LINENO: result: no" >&5
13170echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013171fi
13172
Reid Spencera773bd52006-08-04 18:18:08 +000013173
John Criswell47fdd832003-07-14 16:52:07 +000013174fi
13175if test -z "$ac_cv_prog_AR"; then
13176 ac_ct_AR=$AR
13177 # Extract the first word of "ar", so it can be a program name with args.
13178set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013181if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183else
13184 if test -n "$ac_ct_AR"; then
13185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13186else
13187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188for as_dir in $PATH
13189do
13190 IFS=$as_save_IFS
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013193 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 +000013194 ac_cv_prog_ac_ct_AR="ar"
13195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 break 2
13197 fi
13198done
13199done
Reid Spencera773bd52006-08-04 18:18:08 +000013200IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013201
John Criswell47fdd832003-07-14 16:52:07 +000013202fi
13203fi
13204ac_ct_AR=$ac_cv_prog_ac_ct_AR
13205if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013206 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13207echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013208else
Reid Spencera773bd52006-08-04 18:18:08 +000013209 { echo "$as_me:$LINENO: result: no" >&5
13210echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013211fi
13212
Reid Spencera773bd52006-08-04 18:18:08 +000013213 if test "x$ac_ct_AR" = x; then
13214 AR="false"
13215 else
13216 case $cross_compiling:$ac_tool_warned in
13217yes:)
13218{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13219whose name does not start with the host triplet. If you think this
13220configuration is useful to you, please write to autoconf@gnu.org." >&5
13221echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13222whose name does not start with the host triplet. If you think this
13223configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13224ac_tool_warned=yes ;;
13225esac
13226 AR=$ac_ct_AR
13227 fi
John Criswell47fdd832003-07-14 16:52:07 +000013228else
13229 AR="$ac_cv_prog_AR"
13230fi
13231
John Criswell7a73b802003-06-30 21:59:07 +000013232if test -n "$ac_tool_prefix"; then
13233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13234set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013237if test "${ac_cv_prog_RANLIB+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239else
13240 if test -n "$RANLIB"; then
13241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13242else
13243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244for as_dir in $PATH
13245do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013249 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 +000013250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13253 fi
13254done
13255done
Reid Spencera773bd52006-08-04 18:18:08 +000013256IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013257
13258fi
13259fi
13260RANLIB=$ac_cv_prog_RANLIB
13261if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013262 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13263echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013264else
Reid Spencera773bd52006-08-04 18:18:08 +000013265 { echo "$as_me:$LINENO: result: no" >&5
13266echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013267fi
13268
Reid Spencera773bd52006-08-04 18:18:08 +000013269
John Criswell7a73b802003-06-30 21:59:07 +000013270fi
13271if test -z "$ac_cv_prog_RANLIB"; then
13272 ac_ct_RANLIB=$RANLIB
13273 # Extract the first word of "ranlib", so it can be a program name with args.
13274set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013277if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13279else
13280 if test -n "$ac_ct_RANLIB"; then
13281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13282else
13283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284for as_dir in $PATH
13285do
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013289 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 +000013290 ac_cv_prog_ac_ct_RANLIB="ranlib"
13291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13293 fi
13294done
13295done
Reid Spencera773bd52006-08-04 18:18:08 +000013296IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013297
John Criswell7a73b802003-06-30 21:59:07 +000013298fi
13299fi
13300ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13301if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013302 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13303echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013304else
Reid Spencera773bd52006-08-04 18:18:08 +000013305 { echo "$as_me:$LINENO: result: no" >&5
13306echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013307fi
13308
Reid Spencera773bd52006-08-04 18:18:08 +000013309 if test "x$ac_ct_RANLIB" = x; then
13310 RANLIB=":"
13311 else
13312 case $cross_compiling:$ac_tool_warned in
13313yes:)
13314{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13315whose name does not start with the host triplet. If you think this
13316configuration is useful to you, please write to autoconf@gnu.org." >&5
13317echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13318whose name does not start with the host triplet. If you think this
13319configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13320ac_tool_warned=yes ;;
13321esac
13322 RANLIB=$ac_ct_RANLIB
13323 fi
John Criswell7a73b802003-06-30 21:59:07 +000013324else
13325 RANLIB="$ac_cv_prog_RANLIB"
13326fi
13327
13328if test -n "$ac_tool_prefix"; then
13329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13330set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013333if test "${ac_cv_prog_STRIP+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335else
13336 if test -n "$STRIP"; then
13337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13338else
13339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340for as_dir in $PATH
13341do
13342 IFS=$as_save_IFS
13343 test -z "$as_dir" && as_dir=.
13344 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013345 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 +000013346 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13348 break 2
13349 fi
13350done
13351done
Reid Spencera773bd52006-08-04 18:18:08 +000013352IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013353
13354fi
13355fi
13356STRIP=$ac_cv_prog_STRIP
13357if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013358 { echo "$as_me:$LINENO: result: $STRIP" >&5
13359echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013360else
Reid Spencera773bd52006-08-04 18:18:08 +000013361 { echo "$as_me:$LINENO: result: no" >&5
13362echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013363fi
13364
Reid Spencera773bd52006-08-04 18:18:08 +000013365
John Criswell7a73b802003-06-30 21:59:07 +000013366fi
13367if test -z "$ac_cv_prog_STRIP"; then
13368 ac_ct_STRIP=$STRIP
13369 # Extract the first word of "strip", so it can be a program name with args.
13370set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013373if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375else
13376 if test -n "$ac_ct_STRIP"; then
13377 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13378else
13379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380for as_dir in $PATH
13381do
13382 IFS=$as_save_IFS
13383 test -z "$as_dir" && as_dir=.
13384 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013385 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 +000013386 ac_cv_prog_ac_ct_STRIP="strip"
13387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13388 break 2
13389 fi
13390done
13391done
Reid Spencera773bd52006-08-04 18:18:08 +000013392IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013393
John Criswell7a73b802003-06-30 21:59:07 +000013394fi
13395fi
13396ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13397if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013398 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13399echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013400else
Reid Spencera773bd52006-08-04 18:18:08 +000013401 { echo "$as_me:$LINENO: result: no" >&5
13402echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013403fi
13404
Reid Spencera773bd52006-08-04 18:18:08 +000013405 if test "x$ac_ct_STRIP" = x; then
13406 STRIP=":"
13407 else
13408 case $cross_compiling:$ac_tool_warned in
13409yes:)
13410{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13411whose name does not start with the host triplet. If you think this
13412configuration is useful to you, please write to autoconf@gnu.org." >&5
13413echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13414whose name does not start with the host triplet. If you think this
13415configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13416ac_tool_warned=yes ;;
13417esac
13418 STRIP=$ac_ct_STRIP
13419 fi
John Criswell7a73b802003-06-30 21:59:07 +000013420else
13421 STRIP="$ac_cv_prog_STRIP"
13422fi
13423
13424
John Criswell7a73b802003-06-30 21:59:07 +000013425old_CC="$CC"
13426old_CFLAGS="$CFLAGS"
13427
13428# Set sane defaults for various variables
13429test -z "$AR" && AR=ar
13430test -z "$AR_FLAGS" && AR_FLAGS=cru
13431test -z "$AS" && AS=as
13432test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013433test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013434test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013435test -z "$DLLTOOL" && DLLTOOL=dlltool
13436test -z "$LD" && LD=ld
13437test -z "$LN_S" && LN_S="ln -s"
13438test -z "$MAGIC_CMD" && MAGIC_CMD=file
13439test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013440test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013441test -z "$OBJDUMP" && OBJDUMP=objdump
13442test -z "$RANLIB" && RANLIB=:
13443test -z "$STRIP" && STRIP=:
13444test -z "$ac_objext" && ac_objext=o
13445
John Criswell7a73b802003-06-30 21:59:07 +000013446# Determine commands to create old-style static archives.
13447old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13448old_postinstall_cmds='chmod 644 $oldlib'
13449old_postuninstall_cmds=
13450
13451if test -n "$RANLIB"; then
13452 case $host_os in
13453 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013454 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013455 ;;
13456 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013457 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013458 ;;
13459 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013460 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013461fi
13462
Reid Spencera773bd52006-08-04 18:18:08 +000013463for cc_temp in $compiler""; do
13464 case $cc_temp in
13465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13467 \-*) ;;
13468 *) break;;
13469 esac
13470done
13471cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13472
Reid Spencer2706f8c2004-09-19 23:53:36 +000013473
John Criswell47fdd832003-07-14 16:52:07 +000013474# Only perform the check for file, if the check method requires it
13475case $deplibs_check_method in
13476file_magic*)
13477 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013478 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13479echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013480if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013482else
John Criswell47fdd832003-07-14 16:52:07 +000013483 case $MAGIC_CMD in
13484[\\/*] | ?:[\\/]*)
13485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13486 ;;
13487*)
13488 lt_save_MAGIC_CMD="$MAGIC_CMD"
13489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13491 for ac_dir in $ac_dummy; do
13492 IFS="$lt_save_ifs"
13493 test -z "$ac_dir" && ac_dir=.
13494 if test -f $ac_dir/${ac_tool_prefix}file; then
13495 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13496 if test -n "$file_magic_test_file"; then
13497 case $deplibs_check_method in
13498 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13502 $EGREP "$file_magic_regex" > /dev/null; then
13503 :
13504 else
13505 cat <<EOF 1>&2
13506
13507*** Warning: the command libtool uses to detect shared libraries,
13508*** $file_magic_cmd, produces output that libtool cannot recognize.
13509*** The result is that libtool may fail to recognize shared libraries
13510*** as such. This will affect the creation of libtool libraries that
13511*** depend on shared libraries, but programs linked with such libtool
13512*** libraries will work regardless of this problem. Nevertheless, you
13513*** may want to report the problem to your system manager and/or to
13514*** bug-libtool@gnu.org
13515
13516EOF
13517 fi ;;
13518 esac
13519 fi
13520 break
13521 fi
13522 done
13523 IFS="$lt_save_ifs"
13524 MAGIC_CMD="$lt_save_MAGIC_CMD"
13525 ;;
13526esac
John Criswell7a73b802003-06-30 21:59:07 +000013527fi
John Criswell7a73b802003-06-30 21:59:07 +000013528
John Criswell47fdd832003-07-14 16:52:07 +000013529MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13530if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013531 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13532echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013533else
Reid Spencera773bd52006-08-04 18:18:08 +000013534 { echo "$as_me:$LINENO: result: no" >&5
13535echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013536fi
John Criswell7a73b802003-06-30 21:59:07 +000013537
John Criswell47fdd832003-07-14 16:52:07 +000013538if test -z "$lt_cv_path_MAGIC_CMD"; then
13539 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013540 { echo "$as_me:$LINENO: checking for file" >&5
13541echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013542if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
13545 case $MAGIC_CMD in
13546[\\/*] | ?:[\\/]*)
13547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13548 ;;
13549*)
13550 lt_save_MAGIC_CMD="$MAGIC_CMD"
13551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13552 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13553 for ac_dir in $ac_dummy; do
13554 IFS="$lt_save_ifs"
13555 test -z "$ac_dir" && ac_dir=.
13556 if test -f $ac_dir/file; then
13557 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13558 if test -n "$file_magic_test_file"; then
13559 case $deplibs_check_method in
13560 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013561 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13563 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13564 $EGREP "$file_magic_regex" > /dev/null; then
13565 :
13566 else
13567 cat <<EOF 1>&2
13568
13569*** Warning: the command libtool uses to detect shared libraries,
13570*** $file_magic_cmd, produces output that libtool cannot recognize.
13571*** The result is that libtool may fail to recognize shared libraries
13572*** as such. This will affect the creation of libtool libraries that
13573*** depend on shared libraries, but programs linked with such libtool
13574*** libraries will work regardless of this problem. Nevertheless, you
13575*** may want to report the problem to your system manager and/or to
13576*** bug-libtool@gnu.org
13577
13578EOF
13579 fi ;;
13580 esac
13581 fi
13582 break
13583 fi
13584 done
13585 IFS="$lt_save_ifs"
13586 MAGIC_CMD="$lt_save_MAGIC_CMD"
13587 ;;
13588esac
13589fi
13590
13591MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13592if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013593 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13594echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013595else
Reid Spencera773bd52006-08-04 18:18:08 +000013596 { echo "$as_me:$LINENO: result: no" >&5
13597echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013598fi
13599
13600 else
13601 MAGIC_CMD=:
13602 fi
13603fi
13604
13605 fi
13606 ;;
13607esac
13608
Reid Spencer17795972004-11-18 09:47:37 +000013609enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000013610enable_win32_dll=no
13611
Reid Spencera773bd52006-08-04 18:18:08 +000013612# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000013613if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013614 enableval=$enable_libtool_lock;
13615fi
John Criswell47fdd832003-07-14 16:52:07 +000013616
John Criswell47fdd832003-07-14 16:52:07 +000013617test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13618
John Criswell7a73b802003-06-30 21:59:07 +000013619
Reid Spencera773bd52006-08-04 18:18:08 +000013620# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000013621if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013622 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000013623else
13624 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000013625fi
13626
John Criswell7a73b802003-06-30 21:59:07 +000013627test -z "$pic_mode" && pic_mode=default
13628
John Criswell47fdd832003-07-14 16:52:07 +000013629# Use C for the default configuration in the libtool script
13630tagname=
13631lt_save_CC="$CC"
13632ac_ext=c
13633ac_cpp='$CPP $CPPFLAGS'
13634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13636ac_compiler_gnu=$ac_cv_c_compiler_gnu
13637
13638
13639# Source file extension for C test sources.
13640ac_ext=c
13641
13642# Object file extension for compiled C test sources.
13643objext=o
13644objext=$objext
13645
13646# Code to be used in simple compile tests
13647lt_simple_compile_test_code="int some_variable = 0;\n"
13648
13649# Code to be used in simple link tests
13650lt_simple_link_test_code='int main(){return(0);}\n'
13651
13652
13653# If no C compiler was specified, use CC.
13654LTCC=${LTCC-"$CC"}
13655
Reid Spencera773bd52006-08-04 18:18:08 +000013656# If no C compiler flags were specified, use CFLAGS.
13657LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13658
John Criswell47fdd832003-07-14 16:52:07 +000013659# Allow CC to be a program name with arguments.
13660compiler=$CC
13661
13662
Reid Spencera773bd52006-08-04 18:18:08 +000013663# save warnings/boilerplate of simple test code
13664ac_outfile=conftest.$ac_objext
13665printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13666eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13667_lt_compiler_boilerplate=`cat conftest.err`
13668$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013669
Reid Spencera773bd52006-08-04 18:18:08 +000013670ac_outfile=conftest.$ac_objext
13671printf "$lt_simple_link_test_code" >conftest.$ac_ext
13672eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13673_lt_linker_boilerplate=`cat conftest.err`
13674$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000013675
13676
John Criswell47fdd832003-07-14 16:52:07 +000013677
13678lt_prog_compiler_no_builtin_flag=
13679
13680if test "$GCC" = yes; then
13681 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13682
Reid Spencer2706f8c2004-09-19 23:53:36 +000013683
Reid Spencera773bd52006-08-04 18:18:08 +000013684{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13685echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013686if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688else
13689 lt_cv_prog_compiler_rtti_exceptions=no
13690 ac_outfile=conftest.$ac_objext
13691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13692 lt_compiler_flag="-fno-rtti -fno-exceptions"
13693 # Insert the option either (1) after the last *FLAGS variable, or
13694 # (2) before a word containing "conftest.", or (3) at the end.
13695 # Note that $ac_compile itself does not contain backslashes and begins
13696 # with a dollar sign (not a hyphen), so the echo should work correctly.
13697 # The option is referenced via a variable to avoid confusing sed.
13698 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13701 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013702 (eval echo "\"\$as_me:13702: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013703 (eval "$lt_compile" 2>conftest.err)
13704 ac_status=$?
13705 cat conftest.err >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013706 echo "$as_me:13706: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013707 if (exit $ac_status) && test -s "$ac_outfile"; then
13708 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013709 # So say no if there are warnings other than the usual output.
13710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013713 lt_cv_prog_compiler_rtti_exceptions=yes
13714 fi
13715 fi
13716 $rm conftest*
13717
13718fi
Reid Spencera773bd52006-08-04 18:18:08 +000013719{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13720echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013721
13722if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13724else
13725 :
13726fi
13727
13728fi
13729
13730lt_prog_compiler_wl=
13731lt_prog_compiler_pic=
13732lt_prog_compiler_static=
13733
Reid Spencera773bd52006-08-04 18:18:08 +000013734{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13735echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013736
13737 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000013738 lt_prog_compiler_wl='-Wl,'
13739 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000013740
13741 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013742 aix*)
13743 # All AIX code is PIC.
13744 if test "$host_cpu" = ia64; then
13745 # AIX 5 now supports IA64 processor
13746 lt_prog_compiler_static='-Bstatic'
13747 fi
John Criswell7a73b802003-06-30 21:59:07 +000013748 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013749
John Criswell7a73b802003-06-30 21:59:07 +000013750 amigaos*)
13751 # FIXME: we need at least 68020 code to build shared libraries, but
13752 # adding the `-m68020' flag to GCC prevents building anything better,
13753 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000013754 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000013755 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013756
13757 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000013758 # PIC is the default for these OSes.
13759 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013760
13761 mingw* | pw32* | os2*)
13762 # This hack is so that the source file can tell whether it is being
13763 # built for inclusion in a dll (and should export symbols for example).
13764 lt_prog_compiler_pic='-DDLL_EXPORT'
13765 ;;
13766
John Criswell7a73b802003-06-30 21:59:07 +000013767 darwin* | rhapsody*)
13768 # PIC is the default on this platform
13769 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000013770 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000013771 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013772
Reid Spencera773bd52006-08-04 18:18:08 +000013773 interix3*)
13774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13775 # Instead, we relocate shared libraries at runtime.
13776 ;;
13777
John Criswell47fdd832003-07-14 16:52:07 +000013778 msdosdjgpp*)
13779 # Just because we use GCC doesn't mean we suddenly get shared libraries
13780 # on systems that don't support them.
13781 lt_prog_compiler_can_build_shared=no
13782 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013783 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013784
John Criswell7a73b802003-06-30 21:59:07 +000013785 sysv4*MP*)
13786 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000013787 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000013788 fi
13789 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013790
13791 hpux*)
13792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13793 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013794 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013795 hppa*64*|ia64*)
13796 # +Z the default
13797 ;;
13798 *)
13799 lt_prog_compiler_pic='-fPIC'
13800 ;;
13801 esac
13802 ;;
13803
John Criswell7a73b802003-06-30 21:59:07 +000013804 *)
John Criswell47fdd832003-07-14 16:52:07 +000013805 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000013806 ;;
13807 esac
13808 else
John Criswell47fdd832003-07-14 16:52:07 +000013809 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000013810 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013811 aix*)
13812 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013813 if test "$host_cpu" = ia64; then
13814 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000013815 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013816 else
John Criswell47fdd832003-07-14 16:52:07 +000013817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000013818 fi
13819 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013820 darwin*)
13821 # PIC is the default on this platform
13822 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000013823 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013824 xlc*)
13825 lt_prog_compiler_pic='-qnocommon'
13826 lt_prog_compiler_wl='-Wl,'
13827 ;;
13828 esac
13829 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013830
John Criswell47fdd832003-07-14 16:52:07 +000013831 mingw* | pw32* | os2*)
13832 # This hack is so that the source file can tell whether it is being
13833 # built for inclusion in a dll (and should export symbols for example).
13834 lt_prog_compiler_pic='-DDLL_EXPORT'
13835 ;;
13836
John Criswell7a73b802003-06-30 21:59:07 +000013837 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000013838 lt_prog_compiler_wl='-Wl,'
13839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13840 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000013841 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000013842 hppa*64*|ia64*)
13843 # +Z the default
13844 ;;
13845 *)
13846 lt_prog_compiler_pic='+Z'
13847 ;;
13848 esac
13849 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13850 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000013851 ;;
13852
John Criswell47fdd832003-07-14 16:52:07 +000013853 irix5* | irix6* | nonstopux*)
13854 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013855 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000013856 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013857 ;;
13858
13859 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000013860 lt_prog_compiler_pic='-KPIC'
13861 lt_prog_compiler_static='-Bstatic'
13862 ;;
13863
13864 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000013865 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013866 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013867 lt_prog_compiler_wl='-Wl,'
13868 lt_prog_compiler_pic='-KPIC'
13869 lt_prog_compiler_static='-static'
13870 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013871 pgcc* | pgf77* | pgf90* | pgf95*)
13872 # Portland Group compilers (*not* the Pentium gcc compiler,
13873 # which looks to be a dead project)
13874 lt_prog_compiler_wl='-Wl,'
13875 lt_prog_compiler_pic='-fpic'
13876 lt_prog_compiler_static='-Bstatic'
13877 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013878 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013879 lt_prog_compiler_wl='-Wl,'
13880 # All Alpha code is PIC.
13881 lt_prog_compiler_static='-non_shared'
13882 ;;
13883 esac
John Criswell7a73b802003-06-30 21:59:07 +000013884 ;;
13885
13886 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000013887 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000013888 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000013889 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000013890 ;;
13891
John Criswell7a73b802003-06-30 21:59:07 +000013892 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000013893 lt_prog_compiler_pic='-KPIC'
13894 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000013895 case $cc_basename in
13896 f77* | f90* | f95*)
13897 lt_prog_compiler_wl='-Qoption ld ';;
13898 *)
13899 lt_prog_compiler_wl='-Wl,';;
13900 esac
John Criswell7a73b802003-06-30 21:59:07 +000013901 ;;
13902
13903 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000013904 lt_prog_compiler_wl='-Qoption ld '
13905 lt_prog_compiler_pic='-PIC'
13906 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013907 ;;
13908
Reid Spencera773bd52006-08-04 18:18:08 +000013909 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000013910 lt_prog_compiler_wl='-Wl,'
13911 lt_prog_compiler_pic='-KPIC'
13912 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013913 ;;
13914
13915 sysv4*MP*)
13916 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000013917 lt_prog_compiler_pic='-Kconform_pic'
13918 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000013919 fi
13920 ;;
13921
Reid Spencera773bd52006-08-04 18:18:08 +000013922 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13923 lt_prog_compiler_wl='-Wl,'
13924 lt_prog_compiler_pic='-KPIC'
13925 lt_prog_compiler_static='-Bstatic'
13926 ;;
13927
13928 unicos*)
13929 lt_prog_compiler_wl='-Wl,'
13930 lt_prog_compiler_can_build_shared=no
13931 ;;
13932
John Criswell47fdd832003-07-14 16:52:07 +000013933 uts4*)
13934 lt_prog_compiler_pic='-pic'
13935 lt_prog_compiler_static='-Bstatic'
13936 ;;
13937
John Criswell7a73b802003-06-30 21:59:07 +000013938 *)
John Criswell47fdd832003-07-14 16:52:07 +000013939 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013940 ;;
13941 esac
13942 fi
13943
Reid Spencera773bd52006-08-04 18:18:08 +000013944{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13945echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013946
John Criswell47fdd832003-07-14 16:52:07 +000013947#
13948# Check to make sure the PIC flag actually works.
13949#
13950if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013951
Reid Spencera773bd52006-08-04 18:18:08 +000013952{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13953echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013954if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956else
John Criswell47fdd832003-07-14 16:52:07 +000013957 lt_prog_compiler_pic_works=no
13958 ac_outfile=conftest.$ac_objext
13959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13960 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13961 # Insert the option either (1) after the last *FLAGS variable, or
13962 # (2) before a word containing "conftest.", or (3) at the end.
13963 # Note that $ac_compile itself does not contain backslashes and begins
13964 # with a dollar sign (not a hyphen), so the echo should work correctly.
13965 # The option is referenced via a variable to avoid confusing sed.
13966 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000013967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000013968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13969 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013970 (eval echo "\"\$as_me:13970: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013971 (eval "$lt_compile" 2>conftest.err)
13972 ac_status=$?
13973 cat conftest.err >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000013974 echo "$as_me:13974: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013975 if (exit $ac_status) && test -s "$ac_outfile"; then
13976 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000013977 # So say no if there are warnings other than the usual output.
13978 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013981 lt_prog_compiler_pic_works=yes
13982 fi
13983 fi
13984 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000013985
John Criswell47fdd832003-07-14 16:52:07 +000013986fi
Reid Spencera773bd52006-08-04 18:18:08 +000013987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13988echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013989
John Criswell47fdd832003-07-14 16:52:07 +000013990if test x"$lt_prog_compiler_pic_works" = xyes; then
13991 case $lt_prog_compiler_pic in
13992 "" | " "*) ;;
13993 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13994 esac
John Criswell7a73b802003-06-30 21:59:07 +000013995else
John Criswell47fdd832003-07-14 16:52:07 +000013996 lt_prog_compiler_pic=
13997 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013998fi
13999
John Criswell7a73b802003-06-30 21:59:07 +000014000fi
Reid Spencera773bd52006-08-04 18:18:08 +000014001case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014002 # For platforms which do not support PIC, -DPIC is meaningless:
14003 *djgpp*)
14004 lt_prog_compiler_pic=
14005 ;;
14006 *)
14007 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14008 ;;
14009esac
John Criswell7a73b802003-06-30 21:59:07 +000014010
Reid Spencera773bd52006-08-04 18:18:08 +000014011#
14012# Check to make sure the static flag actually works.
14013#
14014wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14015{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14016echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14017if test "${lt_prog_compiler_static_works+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019else
14020 lt_prog_compiler_static_works=no
14021 save_LDFLAGS="$LDFLAGS"
14022 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14023 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14024 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14025 # The linker can only warn and ignore the option if not recognized
14026 # So say no if there are warnings
14027 if test -s conftest.err; then
14028 # Append any errors to the config.log.
14029 cat conftest.err 1>&5
14030 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14032 if diff conftest.exp conftest.er2 >/dev/null; then
14033 lt_prog_compiler_static_works=yes
14034 fi
14035 else
14036 lt_prog_compiler_static_works=yes
14037 fi
14038 fi
14039 $rm conftest*
14040 LDFLAGS="$save_LDFLAGS"
14041
14042fi
14043{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14044echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14045
14046if test x"$lt_prog_compiler_static_works" = xyes; then
14047 :
14048else
14049 lt_prog_compiler_static=
14050fi
14051
14052
14053{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14054echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014055if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014056 echo $ECHO_N "(cached) $ECHO_C" >&6
14057else
John Criswell47fdd832003-07-14 16:52:07 +000014058 lt_cv_prog_compiler_c_o=no
14059 $rm -r conftest 2>/dev/null
14060 mkdir conftest
14061 cd conftest
14062 mkdir out
14063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014064
John Criswell47fdd832003-07-14 16:52:07 +000014065 lt_compiler_flag="-o out/conftest2.$ac_objext"
14066 # Insert the option either (1) after the last *FLAGS variable, or
14067 # (2) before a word containing "conftest.", or (3) at the end.
14068 # Note that $ac_compile itself does not contain backslashes and begins
14069 # with a dollar sign (not a hyphen), so the echo should work correctly.
14070 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14073 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky2ab1d862009-01-20 00:52:24 +000014074 (eval echo "\"\$as_me:14074: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014075 (eval "$lt_compile" 2>out/conftest.err)
14076 ac_status=$?
14077 cat out/conftest.err >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000014078 echo "$as_me:14078: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14080 then
14081 # The compiler can only warn and ignore the option if not recognized
14082 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014083 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014086 lt_cv_prog_compiler_c_o=yes
14087 fi
14088 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014089 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014090 $rm conftest*
14091 # SGI C++ compiler will create directory out/ii_files/ for
14092 # template instantiation
14093 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14094 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014095 cd ..
14096 rmdir conftest
14097 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014098
14099fi
Reid Spencera773bd52006-08-04 18:18:08 +000014100{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14101echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014102
John Criswell7a73b802003-06-30 21:59:07 +000014103
John Criswell7a73b802003-06-30 21:59:07 +000014104hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014105if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014106 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014107 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14108echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014109 hard_links=yes
14110 $rm conftest*
14111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14112 touch conftest.a
14113 ln conftest.a conftest.b 2>&5 || hard_links=no
14114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014115 { echo "$as_me:$LINENO: result: $hard_links" >&5
14116echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014117 if test "$hard_links" = no; then
14118 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14119echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14120 need_locks=warn
14121 fi
14122else
14123 need_locks=no
14124fi
John Criswell7a73b802003-06-30 21:59:07 +000014125
Reid Spencera773bd52006-08-04 18:18:08 +000014126{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14127echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014128
14129 runpath_var=
14130 allow_undefined_flag=
14131 enable_shared_with_static_runtimes=no
14132 archive_cmds=
14133 archive_expsym_cmds=
14134 old_archive_From_new_cmds=
14135 old_archive_from_expsyms_cmds=
14136 export_dynamic_flag_spec=
14137 whole_archive_flag_spec=
14138 thread_safe_flag_spec=
14139 hardcode_libdir_flag_spec=
14140 hardcode_libdir_flag_spec_ld=
14141 hardcode_libdir_separator=
14142 hardcode_direct=no
14143 hardcode_minus_L=no
14144 hardcode_shlibpath_var=unsupported
14145 link_all_deplibs=unknown
14146 hardcode_automatic=no
14147 module_cmds=
14148 module_expsym_cmds=
14149 always_export_symbols=no
14150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14151 # include_expsyms should be a list of space-separated symbols to be *always*
14152 # included in the symbol list
14153 include_expsyms=
14154 # exclude_expsyms can be an extended regexp of symbols to exclude
14155 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14156 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14157 # as well as any symbol that contains `d'.
14158 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14159 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14160 # platforms (ab)use it in PIC code, but their linkers get confused if
14161 # the symbol is explicitly referenced. Since portable code cannot
14162 # rely on this symbol name, it's probably fine to never include it in
14163 # preloaded symbol tables.
14164 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014165 # Just being paranoid about ensuring that cc_basename is set.
14166 for cc_temp in $compiler""; do
14167 case $cc_temp in
14168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14170 \-*) ;;
14171 *) break;;
14172 esac
14173done
14174cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014175
14176 case $host_os in
14177 cygwin* | mingw* | pw32*)
14178 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14179 # When not using gcc, we currently assume that we are using
14180 # Microsoft Visual C++.
14181 if test "$GCC" != yes; then
14182 with_gnu_ld=no
14183 fi
14184 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014185 interix*)
14186 # we just hope/assume this is gcc and not c89 (= MSVC++)
14187 with_gnu_ld=yes
14188 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014189 openbsd*)
14190 with_gnu_ld=no
14191 ;;
14192 esac
14193
14194 ld_shlibs=yes
14195 if test "$with_gnu_ld" = yes; then
14196 # If archive_cmds runs LD, not CC, wlarc should be empty
14197 wlarc='${wl}'
14198
Reid Spencera773bd52006-08-04 18:18:08 +000014199 # Set some defaults for GNU ld with shared library support. These
14200 # are reset later if shared libraries are not supported. Putting them
14201 # here allows them to be overridden if necessary.
14202 runpath_var=LD_RUN_PATH
14203 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14204 export_dynamic_flag_spec='${wl}--export-dynamic'
14205 # ancient GNU ld didn't support --whole-archive et. al.
14206 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14207 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14208 else
14209 whole_archive_flag_spec=
14210 fi
14211 supports_anon_versioning=no
14212 case `$LD -v 2>/dev/null` in
14213 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14214 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14215 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14216 *\ 2.11.*) ;; # other 2.11 versions
14217 *) supports_anon_versioning=yes ;;
14218 esac
14219
John Criswell47fdd832003-07-14 16:52:07 +000014220 # See if GNU ld supports shared libraries.
14221 case $host_os in
14222 aix3* | aix4* | aix5*)
14223 # On AIX/PPC, the GNU linker is very broken
14224 if test "$host_cpu" != ia64; then
14225 ld_shlibs=no
14226 cat <<EOF 1>&2
14227
14228*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14229*** to be unable to reliably create shared libraries on AIX.
14230*** Therefore, libtool is disabling shared libraries support. If you
14231*** really care for shared libraries, you may want to modify your PATH
14232*** so that a non-GNU linker is found, and then restart.
14233
14234EOF
14235 fi
14236 ;;
14237
14238 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014239 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 +000014240 hardcode_libdir_flag_spec='-L$libdir'
14241 hardcode_minus_L=yes
14242
14243 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14244 # that the semantics of dynamic libraries on AmigaOS, at least up
14245 # to version 4, is to share data among multiple programs linked
14246 # with the same dynamic library. Since this doesn't match the
14247 # behavior of shared libraries on other platforms, we can't use
14248 # them.
14249 ld_shlibs=no
14250 ;;
14251
14252 beos*)
14253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14254 allow_undefined_flag=unsupported
14255 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14256 # support --undefined. This deserves some investigation. FIXME
14257 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14258 else
14259 ld_shlibs=no
14260 fi
14261 ;;
14262
14263 cygwin* | mingw* | pw32*)
14264 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14265 # as there is no search path for DLLs.
14266 hardcode_libdir_flag_spec='-L$libdir'
14267 allow_undefined_flag=unsupported
14268 always_export_symbols=no
14269 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014270 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 +000014271
14272 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014273 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 +000014274 # If the export-symbols file already is a .def file (1st line
14275 # is EXPORTS), use it as is; otherwise, prepend...
14276 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14277 cp $export_symbols $output_objdir/$soname.def;
14278 else
14279 echo EXPORTS > $output_objdir/$soname.def;
14280 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014281 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014282 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14283 else
14284 ld_shlibs=no
14285 fi
14286 ;;
14287
14288 interix3*)
14289 hardcode_direct=no
14290 hardcode_shlibpath_var=no
14291 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14292 export_dynamic_flag_spec='${wl}-E'
14293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14294 # Instead, shared libraries are loaded at an image base (0x10000000 by
14295 # default) and relocated if they conflict, which is a slow very memory
14296 # consuming and fragmenting process. To avoid this, we pick a random,
14297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14300 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'
14301 ;;
14302
14303 linux*)
14304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14305 tmp_addflag=
14306 case $cc_basename,$host_cpu in
14307 pgcc*) # Portland Group C compiler
14308 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'
14309 tmp_addflag=' $pic_flag'
14310 ;;
14311 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14312 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'
14313 tmp_addflag=' $pic_flag -Mnomain' ;;
14314 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14315 tmp_addflag=' -i_dynamic' ;;
14316 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14317 tmp_addflag=' -i_dynamic -nofor_main' ;;
14318 ifc* | ifort*) # Intel Fortran compiler
14319 tmp_addflag=' -nofor_main' ;;
14320 esac
14321 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14322
14323 if test $supports_anon_versioning = yes; then
14324 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14326 $echo "local: *; };" >> $output_objdir/$libname.ver~
14327 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14328 fi
John Criswell47fdd832003-07-14 16:52:07 +000014329 else
14330 ld_shlibs=no
14331 fi
14332 ;;
14333
14334 netbsd*)
14335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14336 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14337 wlarc=
14338 else
14339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14341 fi
14342 ;;
14343
Reid Spencera773bd52006-08-04 18:18:08 +000014344 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014345 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14346 ld_shlibs=no
14347 cat <<EOF 1>&2
14348
14349*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14350*** create shared libraries on Solaris systems. Therefore, libtool
14351*** is disabling shared libraries support. We urge you to upgrade GNU
14352*** binutils to release 2.9.1 or newer. Another option is to modify
14353*** your PATH or compiler configuration so that the native linker is
14354*** used, and then restart.
14355
14356EOF
14357 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14360 else
14361 ld_shlibs=no
14362 fi
14363 ;;
14364
Reid Spencera773bd52006-08-04 18:18:08 +000014365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14366 case `$LD -v 2>&1` in
14367 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14368 ld_shlibs=no
14369 cat <<_LT_EOF 1>&2
14370
14371*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14372*** reliably create shared libraries on SCO systems. Therefore, libtool
14373*** is disabling shared libraries support. We urge you to upgrade GNU
14374*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14375*** your PATH or compiler configuration so that the native linker is
14376*** used, and then restart.
14377
14378_LT_EOF
14379 ;;
14380 *)
14381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14382 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14385 else
14386 ld_shlibs=no
14387 fi
14388 ;;
14389 esac
14390 ;;
14391
John Criswell47fdd832003-07-14 16:52:07 +000014392 sunos4*)
14393 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14394 wlarc=
14395 hardcode_direct=yes
14396 hardcode_shlibpath_var=no
14397 ;;
14398
14399 *)
14400 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14403 else
14404 ld_shlibs=no
14405 fi
14406 ;;
14407 esac
14408
Reid Spencera773bd52006-08-04 18:18:08 +000014409 if test "$ld_shlibs" = no; then
14410 runpath_var=
14411 hardcode_libdir_flag_spec=
14412 export_dynamic_flag_spec=
14413 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014414 fi
14415 else
14416 # PORTME fill in a description of your system's linker (not GNU ld)
14417 case $host_os in
14418 aix3*)
14419 allow_undefined_flag=unsupported
14420 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014421 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 +000014422 # Note: this linker hardcodes the directories in LIBPATH if there
14423 # are no directories specified by -L.
14424 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014425 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014426 # Neither direct hardcoding nor static linking is supported with a
14427 # broken collect2.
14428 hardcode_direct=unsupported
14429 fi
14430 ;;
14431
14432 aix4* | aix5*)
14433 if test "$host_cpu" = ia64; then
14434 # On IA64, the linker does run time linking by default, so we don't
14435 # have to do anything special.
14436 aix_use_runtimelinking=no
14437 exp_sym_flag='-Bexport'
14438 no_entry_flag=""
14439 else
14440 # If we're using GNU nm, then we don't want the "-C" option.
14441 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14442 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14443 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'
14444 else
14445 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'
14446 fi
14447 aix_use_runtimelinking=no
14448
14449 # Test if we are trying to use run time linking or normal
14450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14451 # need to do runtime linking.
14452 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14453 for ld_flag in $LDFLAGS; do
14454 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14455 aix_use_runtimelinking=yes
14456 break
14457 fi
14458 done
Reid Spencera773bd52006-08-04 18:18:08 +000014459 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014460 esac
14461
14462 exp_sym_flag='-bexport'
14463 no_entry_flag='-bnoentry'
14464 fi
14465
14466 # When large executables or shared objects are built, AIX ld can
14467 # have problems creating the table of contents. If linking a library
14468 # or program results in "error TOC overflow" add -mminimal-toc to
14469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14471
14472 archive_cmds=''
14473 hardcode_direct=yes
14474 hardcode_libdir_separator=':'
14475 link_all_deplibs=yes
14476
14477 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014478 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014479 # We only want to do this on AIX 4.2 and lower, the check
14480 # below for broken collect2 doesn't work under 4.3+
14481 collect2name=`${CC} -print-prog-name=collect2`
14482 if test -f "$collect2name" && \
14483 strings "$collect2name" | grep resolve_lib_name >/dev/null
14484 then
14485 # We have reworked collect2
14486 hardcode_direct=yes
14487 else
14488 # We have old collect2
14489 hardcode_direct=unsupported
14490 # It fails to find uninstalled libraries when the uninstalled
14491 # path is not listed in the libpath. Setting hardcode_minus_L
14492 # to unsupported forces relinking
14493 hardcode_minus_L=yes
14494 hardcode_libdir_flag_spec='-L$libdir'
14495 hardcode_libdir_separator=
14496 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014497 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014498 esac
14499 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014500 if test "$aix_use_runtimelinking" = yes; then
14501 shared_flag="$shared_flag "'${wl}-G'
14502 fi
John Criswell47fdd832003-07-14 16:52:07 +000014503 else
14504 # not using gcc
14505 if test "$host_cpu" = ia64; then
14506 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14507 # chokes on -Wl,-G. The following line is correct:
14508 shared_flag='-G'
14509 else
Reid Spencera773bd52006-08-04 18:18:08 +000014510 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014511 shared_flag='${wl}-G'
14512 else
14513 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014514 fi
John Criswell47fdd832003-07-14 16:52:07 +000014515 fi
14516 fi
14517
14518 # It seems that -bexpall does not export symbols beginning with
14519 # underscore (_), so it is better to generate a list of symbols to export.
14520 always_export_symbols=yes
14521 if test "$aix_use_runtimelinking" = yes; then
14522 # Warning - without using the other runtime loading flags (-brtl),
14523 # -berok will link without error, but may produce a broken library.
14524 allow_undefined_flag='-berok'
14525 # Determine the default libpath from the value encoded in an empty executable.
14526 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014527/* confdefs.h. */
14528_ACEOF
14529cat confdefs.h >>conftest.$ac_ext
14530cat >>conftest.$ac_ext <<_ACEOF
14531/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014532
John Criswell7a73b802003-06-30 21:59:07 +000014533int
14534main ()
14535{
John Criswell47fdd832003-07-14 16:52:07 +000014536
John Criswell7a73b802003-06-30 21:59:07 +000014537 ;
14538 return 0;
14539}
14540_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000014541rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014542if { (ac_try="$ac_link"
14543case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546esac
14547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014549 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014550 grep -v '^ *+' conftest.er1 >conftest.err
14551 rm -f conftest.er1
14552 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000014554 (exit $ac_status); } && {
14555 test -z "$ac_c_werror_flag" ||
14556 test ! -s conftest.err
14557 } && test -s conftest$ac_exeext &&
14558 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014559
John Criswell47fdd832003-07-14 16:52:07 +000014560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14561}'`
14562# Check for a 64-bit object if we didn't find anything.
14563if 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; }
14564}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014565else
14566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014567sed 's/^/| /' conftest.$ac_ext >&5
14568
Reid Spencera773bd52006-08-04 18:18:08 +000014569
John Criswell7a73b802003-06-30 21:59:07 +000014570fi
Reid Spencera773bd52006-08-04 18:18:08 +000014571
Nick Lewycky2ab1d862009-01-20 00:52:24 +000014572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014573 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014574if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014575
John Criswell47fdd832003-07-14 16:52:07 +000014576 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000014577 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 +000014578 else
14579 if test "$host_cpu" = ia64; then
14580 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14581 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000014582 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 +000014583 else
14584 # Determine the default libpath from the value encoded in an empty executable.
14585 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014586/* confdefs.h. */
14587_ACEOF
14588cat confdefs.h >>conftest.$ac_ext
14589cat >>conftest.$ac_ext <<_ACEOF
14590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014591
John Criswell47fdd832003-07-14 16:52:07 +000014592int
14593main ()
14594{
John Criswell7a73b802003-06-30 21:59:07 +000014595
John Criswell47fdd832003-07-14 16:52:07 +000014596 ;
14597 return 0;
14598}
14599_ACEOF
14600rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014601if { (ac_try="$ac_link"
14602case "(($ac_try" in
14603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14605esac
14606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014608 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000014613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest$ac_exeext &&
14617 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000014618
John Criswell47fdd832003-07-14 16:52:07 +000014619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14620}'`
14621# Check for a 64-bit object if we didn't find anything.
14622if 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; }
14623}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000014624else
John Criswell47fdd832003-07-14 16:52:07 +000014625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014626sed 's/^/| /' conftest.$ac_ext >&5
14627
Reid Spencera773bd52006-08-04 18:18:08 +000014628
John Criswell47fdd832003-07-14 16:52:07 +000014629fi
Reid Spencera773bd52006-08-04 18:18:08 +000014630
Nick Lewycky2ab1d862009-01-20 00:52:24 +000014631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014632 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014633if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000014634
John Criswell47fdd832003-07-14 16:52:07 +000014635 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14636 # Warning - without using the other run time loading flags,
14637 # -berok will link without error, but may produce a broken library.
14638 no_undefined_flag=' ${wl}-bernotok'
14639 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000014640 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000014641 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000014642 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014643 # This is similar to how AIX traditionally builds its shared libraries.
14644 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 +000014645 fi
14646 fi
John Criswell7a73b802003-06-30 21:59:07 +000014647 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014648
14649 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014650 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 +000014651 hardcode_libdir_flag_spec='-L$libdir'
14652 hardcode_minus_L=yes
14653 # see comment about different semantics on the GNU ld section
14654 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000014655 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014656
Reid Spencer2706f8c2004-09-19 23:53:36 +000014657 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014658 export_dynamic_flag_spec=-rdynamic
14659 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014660
John Criswell47fdd832003-07-14 16:52:07 +000014661 cygwin* | mingw* | pw32*)
14662 # When not using gcc, we currently assume that we are using
14663 # Microsoft Visual C++.
14664 # hardcode_libdir_flag_spec is actually meaningless, as there is
14665 # no search path for DLLs.
14666 hardcode_libdir_flag_spec=' '
14667 allow_undefined_flag=unsupported
14668 # Tell ltmain to make .lib files, not .a files.
14669 libext=lib
14670 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014671 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014672 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000014673 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000014674 # The linker will automatically build a .lib file if we build a DLL.
14675 old_archive_From_new_cmds='true'
14676 # FIXME: Should let the user specify the lib program.
14677 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14678 fix_srcfile_path='`cygpath -w "$srcfile"`'
14679 enable_shared_with_static_runtimes=yes
14680 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014681
John Criswell47fdd832003-07-14 16:52:07 +000014682 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000014683 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014684 rhapsody* | darwin1.[012])
14685 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14686 ;;
14687 *) # Darwin 1.3 on
14688 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14689 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14690 else
14691 case ${MACOSX_DEPLOYMENT_TARGET} in
14692 10.[012])
14693 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14694 ;;
14695 10.*)
14696 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14697 ;;
14698 esac
14699 fi
14700 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014701 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000014702 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000014703 hardcode_direct=no
14704 hardcode_automatic=yes
14705 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014706 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000014707 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000014708 if test "$GCC" = yes ; then
14709 output_verbose_link_cmd='echo'
14710 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14711 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014712 # 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 +000014713 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}'
14714 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 +000014715 else
Reid Spencera773bd52006-08-04 18:18:08 +000014716 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014717 xlc*)
14718 output_verbose_link_cmd='echo'
14719 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14720 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000014721 # 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 +000014722 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}'
14723 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 +000014724 ;;
14725 *)
14726 ld_shlibs=no
14727 ;;
14728 esac
John Criswell7a73b802003-06-30 21:59:07 +000014729 fi
John Criswell47fdd832003-07-14 16:52:07 +000014730 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014731
John Criswell47fdd832003-07-14 16:52:07 +000014732 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000014733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014734 hardcode_libdir_flag_spec='-L$libdir'
14735 hardcode_shlibpath_var=no
14736 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014737
John Criswell47fdd832003-07-14 16:52:07 +000014738 freebsd1*)
14739 ld_shlibs=no
14740 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014741
John Criswell47fdd832003-07-14 16:52:07 +000014742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14743 # support. Future versions do this automatically, but an explicit c++rt0.o
14744 # does not break anything, and helps significantly (at the cost of a little
14745 # extra space).
14746 freebsd2.2*)
14747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14748 hardcode_libdir_flag_spec='-R$libdir'
14749 hardcode_direct=yes
14750 hardcode_shlibpath_var=no
14751 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014752
John Criswell47fdd832003-07-14 16:52:07 +000014753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14754 freebsd2*)
14755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14756 hardcode_direct=yes
14757 hardcode_minus_L=yes
14758 hardcode_shlibpath_var=no
14759 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014760
John Criswell47fdd832003-07-14 16:52:07 +000014761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000014762 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000014763 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14764 hardcode_libdir_flag_spec='-R$libdir'
14765 hardcode_direct=yes
14766 hardcode_shlibpath_var=no
14767 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014768
John Criswell47fdd832003-07-14 16:52:07 +000014769 hpux9*)
14770 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014771 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 +000014772 else
Reid Spencer177dbe22004-10-13 01:01:03 +000014773 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 +000014774 fi
14775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14776 hardcode_libdir_separator=:
14777 hardcode_direct=yes
14778
14779 # hardcode_minus_L: Not really in the search PATH,
14780 # but as the default location of the library.
14781 hardcode_minus_L=yes
14782 export_dynamic_flag_spec='${wl}-E'
14783 ;;
14784
Reid Spencera773bd52006-08-04 18:18:08 +000014785 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000014786 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014787 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14788 else
14789 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14790 fi
14791 if test "$with_gnu_ld" = no; then
14792 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14793 hardcode_libdir_separator=:
14794
14795 hardcode_direct=yes
14796 export_dynamic_flag_spec='${wl}-E'
14797
14798 # hardcode_minus_L: Not really in the search PATH,
14799 # but as the default location of the library.
14800 hardcode_minus_L=yes
14801 fi
14802 ;;
14803
14804 hpux11*)
14805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14806 case $host_cpu in
14807 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000014808 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14809 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014810 ia64*)
14811 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14812 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014813 *)
14814 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14815 ;;
14816 esac
14817 else
Reid Spencera773bd52006-08-04 18:18:08 +000014818 case $host_cpu in
14819 hppa*64*)
14820 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 ;;
14822 ia64*)
14823 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000014824 ;;
14825 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014826 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 +000014827 ;;
14828 esac
14829 fi
14830 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14832 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000014833
Reid Spencera773bd52006-08-04 18:18:08 +000014834 case $host_cpu in
14835 hppa*64*|ia64*)
14836 hardcode_libdir_flag_spec_ld='+b $libdir'
14837 hardcode_direct=no
14838 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000014839 ;;
14840 *)
John Criswell47fdd832003-07-14 16:52:07 +000014841 hardcode_direct=yes
14842 export_dynamic_flag_spec='${wl}-E'
14843
14844 # hardcode_minus_L: Not really in the search PATH,
14845 # but as the default location of the library.
14846 hardcode_minus_L=yes
14847 ;;
14848 esac
14849 fi
14850 ;;
14851
14852 irix5* | irix6* | nonstopux*)
14853 if test "$GCC" = yes; then
14854 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'
14855 else
14856 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'
14857 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14858 fi
14859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14860 hardcode_libdir_separator=:
14861 link_all_deplibs=yes
14862 ;;
14863
14864 netbsd*)
14865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14867 else
14868 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14869 fi
14870 hardcode_libdir_flag_spec='-R$libdir'
14871 hardcode_direct=yes
14872 hardcode_shlibpath_var=no
14873 ;;
14874
14875 newsos6)
14876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14877 hardcode_direct=yes
14878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14879 hardcode_libdir_separator=:
14880 hardcode_shlibpath_var=no
14881 ;;
14882
14883 openbsd*)
14884 hardcode_direct=yes
14885 hardcode_shlibpath_var=no
14886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014888 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 +000014889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14890 export_dynamic_flag_spec='${wl}-E'
14891 else
14892 case $host_os in
14893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_libdir_flag_spec='-R$libdir'
14896 ;;
14897 *)
14898 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14900 ;;
14901 esac
14902 fi
14903 ;;
14904
14905 os2*)
14906 hardcode_libdir_flag_spec='-L$libdir'
14907 hardcode_minus_L=yes
14908 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014909 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 +000014910 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14911 ;;
14912
14913 osf3*)
14914 if test "$GCC" = yes; then
14915 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14916 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'
14917 else
14918 allow_undefined_flag=' -expect_unresolved \*'
14919 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'
14920 fi
14921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14922 hardcode_libdir_separator=:
14923 ;;
14924
14925 osf4* | osf5*) # as osf3* with the addition of -msym flag
14926 if test "$GCC" = yes; then
14927 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14928 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'
14929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14930 else
14931 allow_undefined_flag=' -expect_unresolved \*'
14932 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 +000014933 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 +000014934 $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 +000014935
John Criswell47fdd832003-07-14 16:52:07 +000014936 # Both c and cxx compiler support -rpath directly
14937 hardcode_libdir_flag_spec='-rpath $libdir'
14938 fi
14939 hardcode_libdir_separator=:
14940 ;;
14941
John Criswell47fdd832003-07-14 16:52:07 +000014942 solaris*)
14943 no_undefined_flag=' -z text'
14944 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014945 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000014946 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014947 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14948 $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 +000014949 else
Reid Spencera773bd52006-08-04 18:18:08 +000014950 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000014951 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014952 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14953 $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 +000014954 fi
14955 hardcode_libdir_flag_spec='-R$libdir'
14956 hardcode_shlibpath_var=no
14957 case $host_os in
14958 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014959 *)
14960 # The compiler driver will combine linker options so we
14961 # cannot just pass the convience library names through
14962 # without $wl, iff we do not link with $LD.
14963 # Luckily, gcc supports the same syntax we need for Sun Studio.
14964 # Supported since Solaris 2.6 (maybe 2.5.1?)
14965 case $wlarc in
14966 '')
14967 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14968 *)
14969 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' ;;
14970 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000014971 esac
14972 link_all_deplibs=yes
14973 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014974
John Criswell47fdd832003-07-14 16:52:07 +000014975 sunos4*)
14976 if test "x$host_vendor" = xsequent; then
14977 # Use $CC to link under sequent, because it throws in some extra .o
14978 # files that make .init and .fini sections work.
14979 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14980 else
14981 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14982 fi
14983 hardcode_libdir_flag_spec='-L$libdir'
14984 hardcode_direct=yes
14985 hardcode_minus_L=yes
14986 hardcode_shlibpath_var=no
14987 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014988
John Criswell47fdd832003-07-14 16:52:07 +000014989 sysv4)
14990 case $host_vendor in
14991 sni)
14992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_direct=yes # is this really true???
14994 ;;
14995 siemens)
14996 ## LD is ld it makes a PLAMLIB
14997 ## CC just makes a GrossModule.
14998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14999 reload_cmds='$CC -r -o $output$reload_objs'
15000 hardcode_direct=no
15001 ;;
15002 motorola)
15003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15004 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15005 ;;
15006 esac
15007 runpath_var='LD_RUN_PATH'
15008 hardcode_shlibpath_var=no
15009 ;;
15010
15011 sysv4.3*)
15012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_shlibpath_var=no
15014 export_dynamic_flag_spec='-Bexport'
15015 ;;
15016
15017 sysv4*MP*)
15018 if test -d /usr/nec; then
15019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020 hardcode_shlibpath_var=no
15021 runpath_var=LD_RUN_PATH
15022 hardcode_runpath_var=yes
15023 ld_shlibs=yes
15024 fi
15025 ;;
15026
Reid Spencera773bd52006-08-04 18:18:08 +000015027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15028 no_undefined_flag='${wl}-z,text'
15029 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015030 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015031 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015032
John Criswell47fdd832003-07-14 16:52:07 +000015033 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015034 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15035 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 +000015036 else
Reid Spencera773bd52006-08-04 18:18:08 +000015037 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 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 +000015039 fi
John Criswell47fdd832003-07-14 16:52:07 +000015040 ;;
15041
Reid Spencera773bd52006-08-04 18:18:08 +000015042 sysv5* | sco3.2v5* | sco5v6*)
15043 # Note: We can NOT use -z defs as we might desire, because we do not
15044 # link with -lc, and that would cause any symbols used from libc to
15045 # always be unresolved, which means just about no library would
15046 # ever link correctly. If we're not using GNU ld we use -z text
15047 # though, which does catch some bad symbols but isn't as heavy-handed
15048 # as -z defs.
15049 no_undefined_flag='${wl}-z,text'
15050 allow_undefined_flag='${wl}-z,nodefs'
15051 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015052 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015053 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15054 hardcode_libdir_separator=':'
15055 link_all_deplibs=yes
15056 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015057 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015058
15059 if test "$GCC" = yes; then
15060 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 else
15063 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 fi
John Criswell47fdd832003-07-14 16:52:07 +000015066 ;;
15067
15068 uts4*)
15069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070 hardcode_libdir_flag_spec='-L$libdir'
15071 hardcode_shlibpath_var=no
15072 ;;
15073
15074 *)
15075 ld_shlibs=no
15076 ;;
15077 esac
15078 fi
15079
Reid Spencera773bd52006-08-04 18:18:08 +000015080{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15081echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015082test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015083
John Criswell47fdd832003-07-14 16:52:07 +000015084#
15085# Do we need to explicitly link libc?
15086#
15087case "x$archive_cmds_need_lc" in
15088x|xyes)
15089 # Assume -lc should be added
15090 archive_cmds_need_lc=yes
15091
15092 if test "$enable_shared" = yes && test "$GCC" = yes; then
15093 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015094 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015095 # FIXME: we may have to deal with multi-command sequences.
15096 ;;
15097 '$CC '*)
15098 # Test whether the compiler implicitly links with -lc since on some
15099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15100 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015101 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15102echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015103 $rm conftest*
15104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15105
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); } 2>conftest.err; then
15111 soname=conftest
15112 lib=conftest
15113 libobjs=conftest.$ac_objext
15114 deplibs=
15115 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015116 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015117 compiler_flags=-v
15118 linker_flags=-v
15119 verstring=
15120 output_objdir=.
15121 libname=conftest
15122 lt_save_allow_undefined_flag=$allow_undefined_flag
15123 allow_undefined_flag=
15124 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15125 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }
15129 then
15130 archive_cmds_need_lc=no
15131 else
15132 archive_cmds_need_lc=yes
15133 fi
15134 allow_undefined_flag=$lt_save_allow_undefined_flag
15135 else
15136 cat conftest.err 1>&5
15137 fi
15138 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015139 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15140echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015141 ;;
15142 esac
15143 fi
15144 ;;
15145esac
15146
Reid Spencera773bd52006-08-04 18:18:08 +000015147{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15148echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015149library_names_spec=
15150libname_spec='lib$name'
15151soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015152shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015153postinstall_cmds=
15154postuninstall_cmds=
15155finish_cmds=
15156finish_eval=
15157shlibpath_var=
15158shlibpath_overrides_runpath=unknown
15159version_type=none
15160dynamic_linker="$host_os ld.so"
15161sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015162if test "$GCC" = yes; then
15163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15164 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15165 # if the path contains ";" then we assume it to be the separator
15166 # otherwise default to the standard path separator (i.e. ":") - it is
15167 # assumed that no part of a normal pathname contains ";" but that should
15168 # okay in the real world where ";" in dirpaths is itself problematic.
15169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15170 else
15171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15172 fi
15173else
15174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15175fi
15176need_lib_prefix=unknown
15177hardcode_into_libs=no
15178
15179# when you set need_version to no, make sure it does not cause -set_version
15180# flags to be left without arguments
15181need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015182
15183case $host_os in
15184aix3*)
15185 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015187 shlibpath_var=LIBPATH
15188
John Criswell47fdd832003-07-14 16:52:07 +000015189 # AIX 3 has no versioning support, so we append a major version to the name.
15190 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015191 ;;
15192
15193aix4* | aix5*)
15194 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015195 need_lib_prefix=no
15196 need_version=no
15197 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015198 if test "$host_cpu" = ia64; then
15199 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015200 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015201 shlibpath_var=LD_LIBRARY_PATH
15202 else
15203 # With GCC up to 2.95.x, collect2 would create an import file
15204 # for dependence libraries. The import file would start with
15205 # the line `#! .'. This would cause the generated library to
15206 # depend on `.', always an invalid library. This was fixed in
15207 # development snapshots of GCC prior to 3.0.
15208 case $host_os in
15209 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15211 echo ' yes '
15212 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15213 :
15214 else
15215 can_build_shared=no
15216 fi
15217 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015218 esac
John Criswell47fdd832003-07-14 16:52:07 +000015219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15220 # soname into executable. Probably we can add versioning support to
15221 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015222 if test "$aix_use_runtimelinking" = yes; then
15223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15224 # instead of lib<name>.a to let people know that these are not
15225 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015227 else
15228 # We preserve .a as extension for shared libraries through AIX4.2
15229 # and later when we are not doing run time linking.
15230 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015231 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015232 fi
15233 shlibpath_var=LIBPATH
15234 fi
15235 ;;
15236
15237amigaos*)
15238 library_names_spec='$libname.ixlibrary $libname.a'
15239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015240 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 +000015241 ;;
15242
15243beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015244 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015245 dynamic_linker="$host_os ld.so"
15246 shlibpath_var=LIBRARY_PATH
15247 ;;
15248
Reid Spencer2706f8c2004-09-19 23:53:36 +000015249bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015250 version_type=linux
15251 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015254 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15257 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015258 # the default ld.so.conf also contains /usr/contrib/lib and
15259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15260 # libtool to hard-code these into programs
15261 ;;
15262
15263cygwin* | mingw* | pw32*)
15264 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015265 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015266 need_version=no
15267 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015268
John Criswell7a73b802003-06-30 21:59:07 +000015269 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015270 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015271 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015273 postinstall_cmds='base_file=`basename \${file}`~
15274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15275 dldir=$destdir/`dirname \$dlpath`~
15276 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015277 $install_prog $dir/$dlname \$dldir/$dlname~
15278 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15280 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015281 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015282 shlibpath_overrides_runpath=yes
15283
15284 case $host_os in
15285 cygwin*)
15286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15287 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 +000015288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015289 ;;
15290 mingw*)
15291 # MinGW DLLs use traditional 'lib' prefix
15292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15295 # It is most probably a Windows format PATH printed by
15296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15297 # path with ; separators, and with drive letters. We can handle the
15298 # drive letters (cygwin fileutils understands them), so leave them,
15299 # especially as we might pass files found there to a mingw objdump,
15300 # which wouldn't understand a cygwinified path. Ahh.
15301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15302 else
15303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15304 fi
15305 ;;
15306 pw32*)
15307 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015308 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 +000015309 ;;
15310 esac
John Criswell7a73b802003-06-30 21:59:07 +000015311 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015312
John Criswell7a73b802003-06-30 21:59:07 +000015313 *)
John Criswell47fdd832003-07-14 16:52:07 +000015314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015315 ;;
15316 esac
15317 dynamic_linker='Win32 ld.exe'
15318 # FIXME: first we should search . and the directory the executable is in
15319 shlibpath_var=PATH
15320 ;;
15321
15322darwin* | rhapsody*)
15323 dynamic_linker="$host_os dyld"
15324 version_type=darwin
15325 need_lib_prefix=no
15326 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015328 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015329 shlibpath_overrides_runpath=yes
15330 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015331 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015333 if test "$GCC" = yes; then
15334 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"`
15335 else
15336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015337 fi
15338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15339 ;;
15340
15341dgux*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015348 ;;
15349
15350freebsd1*)
15351 dynamic_linker=no
15352 ;;
15353
Reid Spencer2706f8c2004-09-19 23:53:36 +000015354kfreebsd*-gnu)
15355 version_type=linux
15356 need_lib_prefix=no
15357 need_version=no
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=no
15362 hardcode_into_libs=yes
15363 dynamic_linker='GNU ld.so'
15364 ;;
15365
Reid Spencera773bd52006-08-04 18:18:08 +000015366freebsd* | dragonfly*)
15367 # DragonFly does not have aout. When/if they implement a new
15368 # versioning mechanism, adjust this.
15369 if test -x /usr/bin/objformat; then
15370 objformat=`/usr/bin/objformat`
15371 else
15372 case $host_os in
15373 freebsd[123]*) objformat=aout ;;
15374 *) objformat=elf ;;
15375 esac
15376 fi
John Criswell7a73b802003-06-30 21:59:07 +000015377 version_type=freebsd-$objformat
15378 case $version_type in
15379 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015381 need_version=no
15382 need_lib_prefix=no
15383 ;;
15384 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015386 need_version=yes
15387 ;;
15388 esac
15389 shlibpath_var=LD_LIBRARY_PATH
15390 case $host_os in
15391 freebsd2*)
15392 shlibpath_overrides_runpath=yes
15393 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015394 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015395 shlibpath_overrides_runpath=yes
15396 hardcode_into_libs=yes
15397 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015400 shlibpath_overrides_runpath=no
15401 hardcode_into_libs=yes
15402 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015403 freebsd*) # from 4.6 on
15404 shlibpath_overrides_runpath=yes
15405 hardcode_into_libs=yes
15406 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015407 esac
15408 ;;
15409
15410gnu*)
15411 version_type=linux
15412 need_lib_prefix=no
15413 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015416 shlibpath_var=LD_LIBRARY_PATH
15417 hardcode_into_libs=yes
15418 ;;
15419
15420hpux9* | hpux10* | hpux11*)
15421 # Give a soname corresponding to the major version so that dld.sl refuses to
15422 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015423 version_type=sunos
15424 need_lib_prefix=no
15425 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015426 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015427 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015428 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015429 hardcode_into_libs=yes
15430 dynamic_linker="$host_os dld.so"
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 if test "X$HPUX_IA64_MODE" = X32; then
15436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437 else
15438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15439 fi
15440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15441 ;;
15442 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015443 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015444 hardcode_into_libs=yes
15445 dynamic_linker="$host_os dld.sl"
15446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15452 ;;
15453 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015454 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015455 dynamic_linker="$host_os dld.sl"
15456 shlibpath_var=SHLIB_PATH
15457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 ;;
15461 esac
John Criswell7a73b802003-06-30 21:59:07 +000015462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15463 postinstall_cmds='chmod 555 $lib'
15464 ;;
15465
Reid Spencera773bd52006-08-04 18:18:08 +000015466interix3*)
15467 version_type=linux
15468 need_lib_prefix=no
15469 need_version=no
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath=no
15475 hardcode_into_libs=yes
15476 ;;
15477
John Criswell47fdd832003-07-14 16:52:07 +000015478irix5* | irix6* | nonstopux*)
15479 case $host_os in
15480 nonstopux*) version_type=nonstopux ;;
15481 *)
15482 if test "$lt_cv_prog_gnu_ld" = yes; then
15483 version_type=linux
15484 else
15485 version_type=irix
15486 fi ;;
15487 esac
John Criswell7a73b802003-06-30 21:59:07 +000015488 need_lib_prefix=no
15489 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015490 soname_spec='${libname}${release}${shared_ext}$major'
15491 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 +000015492 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015493 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015494 libsuff= shlibsuff=
15495 ;;
15496 *)
15497 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15499 libsuff= shlibsuff= libmagic=32-bit;;
15500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15501 libsuff=32 shlibsuff=N32 libmagic=N32;;
15502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015504 *) libsuff= shlibsuff= libmagic=never-match;;
15505 esac
15506 ;;
15507 esac
15508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15509 shlibpath_overrides_runpath=no
15510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000015512 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015513 ;;
15514
15515# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000015516linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000015517 dynamic_linker=no
15518 ;;
15519
15520# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000015521linux*)
John Criswell7a73b802003-06-30 21:59:07 +000015522 version_type=linux
15523 need_lib_prefix=no
15524 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=no
15530 # This implies no fast_install, which is unacceptable.
15531 # Some rework will be needed to allow for fast_install
15532 # before this can be enabled.
15533 hardcode_into_libs=yes
15534
Reid Spencer2706f8c2004-09-19 23:53:36 +000015535 # Append ld.so.conf contents to the search path
15536 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000015537 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 +000015538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15539 fi
15540
John Criswell7a73b802003-06-30 21:59:07 +000015541 # We used to test for /lib/ld.so.1 and disable shared libraries on
15542 # powerpc, because MkLinux only supported shared libraries with the
15543 # GNU dynamic linker. Since this was broken with cross compilers,
15544 # most powerpc-linux boxes support dynamic linking these days and
15545 # people can always --disable-shared, the test was removed, and we
15546 # assume the GNU/Linux dynamic linker is in use.
15547 dynamic_linker='GNU/Linux ld.so'
15548 ;;
15549
Reid Spencer2706f8c2004-09-19 23:53:36 +000015550knetbsd*-gnu)
15551 version_type=linux
15552 need_lib_prefix=no
15553 need_version=no
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15555 soname_spec='${libname}${release}${shared_ext}$major'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=no
15558 hardcode_into_libs=yes
15559 dynamic_linker='GNU ld.so'
15560 ;;
15561
John Criswell7a73b802003-06-30 21:59:07 +000015562netbsd*)
15563 version_type=sunos
15564 need_lib_prefix=no
15565 need_version=no
15566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15569 dynamic_linker='NetBSD (a.out) ld.so'
15570 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000015571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000015572 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015573 dynamic_linker='NetBSD ld.elf_so'
15574 fi
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=yes
15577 hardcode_into_libs=yes
15578 ;;
15579
15580newsos6)
15581 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=yes
15585 ;;
15586
Reid Spencer2706f8c2004-09-19 23:53:36 +000015587nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000015588 version_type=linux
15589 need_lib_prefix=no
15590 need_version=no
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015593 shlibpath_var=LD_LIBRARY_PATH
15594 shlibpath_overrides_runpath=yes
15595 ;;
15596
15597openbsd*)
15598 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000015599 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015600 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000015601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15602 case $host_os in
15603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15604 *) need_version=no ;;
15605 esac
John Criswell47fdd832003-07-14 16:52:07 +000015606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15608 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015609 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 +000015610 case $host_os in
15611 openbsd2.[89] | openbsd2.[89].*)
15612 shlibpath_overrides_runpath=no
15613 ;;
15614 *)
15615 shlibpath_overrides_runpath=yes
15616 ;;
15617 esac
John Criswell7a73b802003-06-30 21:59:07 +000015618 else
15619 shlibpath_overrides_runpath=yes
15620 fi
John Criswell7a73b802003-06-30 21:59:07 +000015621 ;;
15622
15623os2*)
15624 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015625 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015626 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015627 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015628 dynamic_linker='OS/2 ld.exe'
15629 shlibpath_var=LIBPATH
15630 ;;
15631
15632osf3* | osf4* | osf5*)
15633 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000015634 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015635 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015636 soname_spec='${libname}${release}${shared_ext}$major'
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015638 shlibpath_var=LD_LIBRARY_PATH
15639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15641 ;;
15642
John Criswell7a73b802003-06-30 21:59:07 +000015643solaris*)
15644 version_type=linux
15645 need_lib_prefix=no
15646 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015649 shlibpath_var=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath=yes
15651 hardcode_into_libs=yes
15652 # ldd complains unless libraries are executable
15653 postinstall_cmds='chmod +x $lib'
15654 ;;
15655
15656sunos4*)
15657 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000015658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 shlibpath_overrides_runpath=yes
15662 if test "$with_gnu_ld" = yes; then
15663 need_lib_prefix=no
15664 fi
15665 need_version=yes
15666 ;;
15667
Reid Spencera773bd52006-08-04 18:18:08 +000015668sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000015669 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015672 shlibpath_var=LD_LIBRARY_PATH
15673 case $host_vendor in
15674 sni)
15675 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000015676 need_lib_prefix=no
15677 export_dynamic_flag_spec='${wl}-Blargedynsym'
15678 runpath_var=LD_RUN_PATH
15679 ;;
15680 siemens)
15681 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000015682 ;;
15683 motorola)
15684 need_lib_prefix=no
15685 need_version=no
15686 shlibpath_overrides_runpath=no
15687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15688 ;;
15689 esac
15690 ;;
15691
John Criswell7a73b802003-06-30 21:59:07 +000015692sysv4*MP*)
15693 if test -d /usr/nec ;then
15694 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15696 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000015697 shlibpath_var=LD_LIBRARY_PATH
15698 fi
15699 ;;
15700
Reid Spencera773bd52006-08-04 18:18:08 +000015701sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15702 version_type=freebsd-elf
15703 need_lib_prefix=no
15704 need_version=no
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 hardcode_into_libs=yes
15709 if test "$with_gnu_ld" = yes; then
15710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15711 shlibpath_overrides_runpath=no
15712 else
15713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15714 shlibpath_overrides_runpath=yes
15715 case $host_os in
15716 sco3.2v5*)
15717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15718 ;;
15719 esac
15720 fi
15721 sys_lib_dlsearch_path_spec='/usr/lib'
15722 ;;
15723
John Criswell47fdd832003-07-14 16:52:07 +000015724uts4*)
15725 version_type=linux
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 ;;
15730
John Criswell7a73b802003-06-30 21:59:07 +000015731*)
15732 dynamic_linker=no
15733 ;;
15734esac
Reid Spencera773bd52006-08-04 18:18:08 +000015735{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15736echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015737test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015738
Reid Spencera773bd52006-08-04 18:18:08 +000015739variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15740if test "$GCC" = yes; then
15741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15742fi
15743
15744{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15745echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015746hardcode_action=
15747if test -n "$hardcode_libdir_flag_spec" || \
15748 test -n "$runpath_var" || \
15749 test "X$hardcode_automatic" = "Xyes" ; then
15750
15751 # We can hardcode non-existant directories.
15752 if test "$hardcode_direct" != no &&
15753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15754 # have to relink, otherwise we might link with an installed library
15755 # when we should be linking with a yet-to-be-installed one
15756 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15757 test "$hardcode_minus_L" != no; then
15758 # Linking always hardcodes the temporary library directory.
15759 hardcode_action=relink
15760 else
15761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15762 hardcode_action=immediate
15763 fi
15764else
15765 # We cannot hardcode anything, or else we can only hardcode existing
15766 # directories.
15767 hardcode_action=unsupported
15768fi
Reid Spencera773bd52006-08-04 18:18:08 +000015769{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
15770echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015771
15772if test "$hardcode_action" = relink; then
15773 # Fast installation is not supported
15774 enable_fast_install=no
15775elif test "$shlibpath_overrides_runpath" = yes ||
15776 test "$enable_shared" = no; then
15777 # Fast installation is not necessary
15778 enable_fast_install=needless
15779fi
15780
15781striplib=
15782old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000015783{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15784echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015785if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15786 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15787 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000015788 { echo "$as_me:$LINENO: result: yes" >&5
15789echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015790else
15791# FIXME - insert some real tests, host_os isn't really good enough
15792 case $host_os in
15793 darwin*)
15794 if test -n "$STRIP" ; then
15795 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000015796 { echo "$as_me:$LINENO: result: yes" >&5
15797echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015798 else
Reid Spencera773bd52006-08-04 18:18:08 +000015799 { echo "$as_me:$LINENO: result: no" >&5
15800echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015801fi
15802 ;;
15803 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015804 { echo "$as_me:$LINENO: result: no" >&5
15805echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000015806 ;;
15807 esac
15808fi
15809
John Criswell7a73b802003-06-30 21:59:07 +000015810if test "x$enable_dlopen" != xyes; then
15811 enable_dlopen=unknown
15812 enable_dlopen_self=unknown
15813 enable_dlopen_self_static=unknown
15814else
15815 lt_cv_dlopen=no
15816 lt_cv_dlopen_libs=
15817
15818 case $host_os in
15819 beos*)
15820 lt_cv_dlopen="load_add_on"
15821 lt_cv_dlopen_libs=
15822 lt_cv_dlopen_self=yes
15823 ;;
15824
John Criswell47fdd832003-07-14 16:52:07 +000015825 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015826 lt_cv_dlopen="LoadLibrary"
15827 lt_cv_dlopen_libs=
15828 ;;
15829
John Criswell47fdd832003-07-14 16:52:07 +000015830 cygwin*)
15831 lt_cv_dlopen="dlopen"
15832 lt_cv_dlopen_libs=
15833 ;;
15834
15835 darwin*)
15836 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000015837 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15838echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015839if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15841else
15842 ac_check_lib_save_LIBS=$LIBS
15843LIBS="-ldl $LIBS"
15844cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015845/* confdefs.h. */
15846_ACEOF
15847cat confdefs.h >>conftest.$ac_ext
15848cat >>conftest.$ac_ext <<_ACEOF
15849/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015850
Reid Spencera773bd52006-08-04 18:18:08 +000015851/* Override any GCC internal prototype to avoid an error.
15852 Use char because int might match the return type of a GCC
15853 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000015854#ifdef __cplusplus
15855extern "C"
15856#endif
John Criswell47fdd832003-07-14 16:52:07 +000015857char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000015858int
15859main ()
15860{
Reid Spencera773bd52006-08-04 18:18:08 +000015861return dlopen ();
John Criswell47fdd832003-07-14 16:52: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 Criswell47fdd832003-07-14 16:52: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 Criswell47fdd832003-07-14 16:52:07 +000015878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +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 Criswell47fdd832003-07-14 16:52:07 +000015884 ac_cv_lib_dl_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_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000015890fi
Reid Spencera773bd52006-08-04 18:18:08 +000015891
Nick Lewycky2ab1d862009-01-20 00:52:24 +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 Criswell47fdd832003-07-14 16:52:07 +000015894LIBS=$ac_check_lib_save_LIBS
15895fi
Reid Spencera773bd52006-08-04 18:18:08 +000015896{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15897echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015898if test $ac_cv_lib_dl_dlopen = yes; then
15899 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15900else
15901
15902 lt_cv_dlopen="dyld"
15903 lt_cv_dlopen_libs=
15904 lt_cv_dlopen_self=yes
15905
15906fi
15907
15908 ;;
15909
John Criswell7a73b802003-06-30 21:59:07 +000015910 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015911 { echo "$as_me:$LINENO: checking for shl_load" >&5
15912echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015913if test "${ac_cv_func_shl_load+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15915else
15916 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015917/* confdefs.h. */
15918_ACEOF
15919cat confdefs.h >>conftest.$ac_ext
15920cat >>conftest.$ac_ext <<_ACEOF
15921/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015922/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15924#define shl_load innocuous_shl_load
15925
John Criswell7a73b802003-06-30 21:59:07 +000015926/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000015927 which can conflict with char shl_load (); below.
15928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15929 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000015930
John Criswell0c38eaf2003-09-10 15:17:25 +000015931#ifdef __STDC__
15932# include <limits.h>
15933#else
15934# include <assert.h>
15935#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000015936
15937#undef shl_load
15938
Reid Spencera773bd52006-08-04 18:18:08 +000015939/* Override any GCC internal prototype to avoid an error.
15940 Use char because int might match the return type of a GCC
15941 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000015942#ifdef __cplusplus
15943extern "C"
15944#endif
John Criswell7a73b802003-06-30 21:59:07 +000015945char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015946/* The GNU C library defines this for functions which it implements
15947 to always fail with ENOSYS. Some functions are actually named
15948 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000015949#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000015950choke me
John Criswell7a73b802003-06-30 21:59:07 +000015951#endif
15952
John Criswell0c38eaf2003-09-10 15:17:25 +000015953int
15954main ()
15955{
Reid Spencera773bd52006-08-04 18:18:08 +000015956return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000015957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015962if { (ac_try="$ac_link"
15963case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015974 (exit $ac_status); } && {
15975 test -z "$ac_c_werror_flag" ||
15976 test ! -s conftest.err
15977 } && test -s conftest$ac_exeext &&
15978 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000015979 ac_cv_func_shl_load=yes
15980else
15981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015982sed 's/^/| /' conftest.$ac_ext >&5
15983
Reid Spencera773bd52006-08-04 18:18:08 +000015984 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000015985fi
Reid Spencera773bd52006-08-04 18:18:08 +000015986
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015988 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015989fi
Reid Spencera773bd52006-08-04 18:18:08 +000015990{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15991echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015992if test $ac_cv_func_shl_load = yes; then
15993 lt_cv_dlopen="shl_load"
15994else
Reid Spencera773bd52006-08-04 18:18:08 +000015995 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15996echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015997if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
15999else
16000 ac_check_lib_save_LIBS=$LIBS
16001LIBS="-ldld $LIBS"
16002cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016003/* confdefs.h. */
16004_ACEOF
16005cat confdefs.h >>conftest.$ac_ext
16006cat >>conftest.$ac_ext <<_ACEOF
16007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016008
Reid Spencera773bd52006-08-04 18:18:08 +000016009/* Override any GCC internal prototype to avoid an error.
16010 Use char because int might match the return type of a GCC
16011 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016012#ifdef __cplusplus
16013extern "C"
16014#endif
John Criswell7a73b802003-06-30 21:59:07 +000016015char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016016int
16017main ()
16018{
Reid Spencera773bd52006-08-04 18:18:08 +000016019return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016020 ;
16021 return 0;
16022}
16023_ACEOF
16024rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016025if { (ac_try="$ac_link"
16026case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029esac
16030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016032 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016037 (exit $ac_status); } && {
16038 test -z "$ac_c_werror_flag" ||
16039 test ! -s conftest.err
16040 } && test -s conftest$ac_exeext &&
16041 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016042 ac_cv_lib_dld_shl_load=yes
16043else
16044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016045sed 's/^/| /' conftest.$ac_ext >&5
16046
Reid Spencera773bd52006-08-04 18:18:08 +000016047 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016048fi
Reid Spencera773bd52006-08-04 18:18:08 +000016049
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016051 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016052LIBS=$ac_check_lib_save_LIBS
16053fi
Reid Spencera773bd52006-08-04 18:18:08 +000016054{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16055echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016056if test $ac_cv_lib_dld_shl_load = yes; then
16057 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16058else
Reid Spencera773bd52006-08-04 18:18:08 +000016059 { echo "$as_me:$LINENO: checking for dlopen" >&5
16060echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016061if test "${ac_cv_func_dlopen+set}" = set; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063else
16064 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016070/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16072#define dlopen innocuous_dlopen
16073
John Criswell7a73b802003-06-30 21:59:07 +000016074/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016075 which can conflict with char dlopen (); below.
16076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16077 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016078
John Criswell0c38eaf2003-09-10 15:17:25 +000016079#ifdef __STDC__
16080# include <limits.h>
16081#else
16082# include <assert.h>
16083#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016084
16085#undef dlopen
16086
Reid Spencera773bd52006-08-04 18:18:08 +000016087/* Override any GCC internal prototype to avoid an error.
16088 Use char because int might match the return type of a GCC
16089 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016090#ifdef __cplusplus
16091extern "C"
16092#endif
John Criswell7a73b802003-06-30 21:59:07 +000016093char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016094/* The GNU C library defines this for functions which it implements
16095 to always fail with ENOSYS. Some functions are actually named
16096 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016097#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016098choke me
John Criswell7a73b802003-06-30 21:59:07 +000016099#endif
16100
John Criswell0c38eaf2003-09-10 15:17:25 +000016101int
16102main ()
16103{
Reid Spencera773bd52006-08-04 18:18:08 +000016104return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016105 ;
16106 return 0;
16107}
16108_ACEOF
16109rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016110if { (ac_try="$ac_link"
16111case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114esac
16115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016118 grep -v '^ *+' conftest.er1 >conftest.err
16119 rm -f conftest.er1
16120 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016122 (exit $ac_status); } && {
16123 test -z "$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16125 } && test -s conftest$ac_exeext &&
16126 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016127 ac_cv_func_dlopen=yes
16128else
16129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016130sed 's/^/| /' conftest.$ac_ext >&5
16131
Reid Spencera773bd52006-08-04 18:18:08 +000016132 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016133fi
Reid Spencera773bd52006-08-04 18:18:08 +000016134
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016136 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016137fi
Reid Spencera773bd52006-08-04 18:18:08 +000016138{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16139echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016140if test $ac_cv_func_dlopen = yes; then
16141 lt_cv_dlopen="dlopen"
16142else
Reid Spencera773bd52006-08-04 18:18:08 +000016143 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16144echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016145if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147else
16148 ac_check_lib_save_LIBS=$LIBS
16149LIBS="-ldl $LIBS"
16150cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016151/* confdefs.h. */
16152_ACEOF
16153cat confdefs.h >>conftest.$ac_ext
16154cat >>conftest.$ac_ext <<_ACEOF
16155/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016156
Reid Spencera773bd52006-08-04 18:18:08 +000016157/* Override any GCC internal prototype to avoid an error.
16158 Use char because int might match the return type of a GCC
16159 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016160#ifdef __cplusplus
16161extern "C"
16162#endif
John Criswell7a73b802003-06-30 21:59:07 +000016163char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016164int
16165main ()
16166{
Reid Spencera773bd52006-08-04 18:18:08 +000016167return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016168 ;
16169 return 0;
16170}
16171_ACEOF
16172rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016173if { (ac_try="$ac_link"
16174case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177esac
16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016180 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016185 (exit $ac_status); } && {
16186 test -z "$ac_c_werror_flag" ||
16187 test ! -s conftest.err
16188 } && test -s conftest$ac_exeext &&
16189 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016190 ac_cv_lib_dl_dlopen=yes
16191else
16192 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016193sed 's/^/| /' conftest.$ac_ext >&5
16194
Reid Spencera773bd52006-08-04 18:18:08 +000016195 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016196fi
Reid Spencera773bd52006-08-04 18:18:08 +000016197
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016199 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016200LIBS=$ac_check_lib_save_LIBS
16201fi
Reid Spencera773bd52006-08-04 18:18:08 +000016202{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16203echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016204if test $ac_cv_lib_dl_dlopen = yes; then
16205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16206else
Reid Spencera773bd52006-08-04 18:18:08 +000016207 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16208echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016209if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16211else
16212 ac_check_lib_save_LIBS=$LIBS
16213LIBS="-lsvld $LIBS"
16214cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016215/* confdefs.h. */
16216_ACEOF
16217cat confdefs.h >>conftest.$ac_ext
16218cat >>conftest.$ac_ext <<_ACEOF
16219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016220
Reid Spencera773bd52006-08-04 18:18:08 +000016221/* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016224#ifdef __cplusplus
16225extern "C"
16226#endif
John Criswell7a73b802003-06-30 21:59:07 +000016227char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016228int
16229main ()
16230{
Reid Spencera773bd52006-08-04 18:18:08 +000016231return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016232 ;
16233 return 0;
16234}
16235_ACEOF
16236rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016237if { (ac_try="$ac_link"
16238case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241esac
16242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016244 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016249 (exit $ac_status); } && {
16250 test -z "$ac_c_werror_flag" ||
16251 test ! -s conftest.err
16252 } && test -s conftest$ac_exeext &&
16253 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016254 ac_cv_lib_svld_dlopen=yes
16255else
16256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016257sed 's/^/| /' conftest.$ac_ext >&5
16258
Reid Spencera773bd52006-08-04 18:18:08 +000016259 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016260fi
Reid Spencera773bd52006-08-04 18:18:08 +000016261
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016263 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016264LIBS=$ac_check_lib_save_LIBS
16265fi
Reid Spencera773bd52006-08-04 18:18:08 +000016266{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16267echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016268if test $ac_cv_lib_svld_dlopen = yes; then
16269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16270else
Reid Spencera773bd52006-08-04 18:18:08 +000016271 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16272echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016273if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275else
16276 ac_check_lib_save_LIBS=$LIBS
16277LIBS="-ldld $LIBS"
16278cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016279/* confdefs.h. */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016284
Reid Spencera773bd52006-08-04 18:18:08 +000016285/* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016288#ifdef __cplusplus
16289extern "C"
16290#endif
John Criswell7a73b802003-06-30 21:59:07 +000016291char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016292int
16293main ()
16294{
Reid Spencera773bd52006-08-04 18:18:08 +000016295return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016296 ;
16297 return 0;
16298}
16299_ACEOF
16300rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016301if { (ac_try="$ac_link"
16302case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16305esac
16306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016308 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest$ac_exeext &&
16317 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000016318 ac_cv_lib_dld_dld_link=yes
16319else
16320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016321sed 's/^/| /' conftest.$ac_ext >&5
16322
Reid Spencera773bd52006-08-04 18:18:08 +000016323 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016324fi
Reid Spencera773bd52006-08-04 18:18:08 +000016325
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016327 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016328LIBS=$ac_check_lib_save_LIBS
16329fi
Reid Spencera773bd52006-08-04 18:18:08 +000016330{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16331echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016332if test $ac_cv_lib_dld_dld_link = yes; then
16333 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16334fi
16335
16336
16337fi
16338
16339
16340fi
16341
16342
16343fi
16344
16345
16346fi
16347
16348
16349fi
16350
16351 ;;
16352 esac
16353
16354 if test "x$lt_cv_dlopen" != xno; then
16355 enable_dlopen=yes
16356 else
16357 enable_dlopen=no
16358 fi
16359
16360 case $lt_cv_dlopen in
16361 dlopen)
16362 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016363 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016364
16365 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016367
16368 save_LIBS="$LIBS"
16369 LIBS="$lt_cv_dlopen_libs $LIBS"
16370
Reid Spencera773bd52006-08-04 18:18:08 +000016371 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16372echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016373if test "${lt_cv_dlopen_self+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16375else
16376 if test "$cross_compiling" = yes; then :
16377 lt_cv_dlopen_self=cross
16378else
John Criswell47fdd832003-07-14 16:52:07 +000016379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016380 lt_status=$lt_dlunknown
16381 cat > conftest.$ac_ext <<EOF
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016382#line 16382 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016383#include "confdefs.h"
16384
16385#if HAVE_DLFCN_H
16386#include <dlfcn.h>
16387#endif
16388
16389#include <stdio.h>
16390
16391#ifdef RTLD_GLOBAL
16392# define LT_DLGLOBAL RTLD_GLOBAL
16393#else
16394# ifdef DL_GLOBAL
16395# define LT_DLGLOBAL DL_GLOBAL
16396# else
16397# define LT_DLGLOBAL 0
16398# endif
16399#endif
16400
16401/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16402 find out it does not work in some platform. */
16403#ifndef LT_DLLAZY_OR_NOW
16404# ifdef RTLD_LAZY
16405# define LT_DLLAZY_OR_NOW RTLD_LAZY
16406# else
16407# ifdef DL_LAZY
16408# define LT_DLLAZY_OR_NOW DL_LAZY
16409# else
16410# ifdef RTLD_NOW
16411# define LT_DLLAZY_OR_NOW RTLD_NOW
16412# else
16413# ifdef DL_NOW
16414# define LT_DLLAZY_OR_NOW DL_NOW
16415# else
16416# define LT_DLLAZY_OR_NOW 0
16417# endif
16418# endif
16419# endif
16420# endif
16421#endif
16422
16423#ifdef __cplusplus
16424extern "C" void exit (int);
16425#endif
16426
16427void fnord() { int i=42;}
16428int main ()
16429{
16430 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16431 int status = $lt_dlunknown;
16432
16433 if (self)
16434 {
16435 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16436 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16437 /* dlclose (self); */
16438 }
Reid Spencera773bd52006-08-04 18:18:08 +000016439 else
16440 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016441
16442 exit (status);
16443}
16444EOF
16445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16446 (eval $ac_link) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016450 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016451 lt_status=$?
16452 case x$lt_status in
16453 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16454 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016455 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016456 esac
16457 else :
16458 # compilation failed
16459 lt_cv_dlopen_self=no
16460 fi
16461fi
16462rm -fr conftest*
16463
16464
16465fi
Reid Spencera773bd52006-08-04 18:18:08 +000016466{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16467echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016468
16469 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16471 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16472echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016473if test "${lt_cv_dlopen_self_static+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475else
16476 if test "$cross_compiling" = yes; then :
16477 lt_cv_dlopen_self_static=cross
16478else
John Criswell47fdd832003-07-14 16:52:07 +000016479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016480 lt_status=$lt_dlunknown
16481 cat > conftest.$ac_ext <<EOF
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016482#line 16482 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016483#include "confdefs.h"
16484
16485#if HAVE_DLFCN_H
16486#include <dlfcn.h>
16487#endif
16488
16489#include <stdio.h>
16490
16491#ifdef RTLD_GLOBAL
16492# define LT_DLGLOBAL RTLD_GLOBAL
16493#else
16494# ifdef DL_GLOBAL
16495# define LT_DLGLOBAL DL_GLOBAL
16496# else
16497# define LT_DLGLOBAL 0
16498# endif
16499#endif
16500
16501/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16502 find out it does not work in some platform. */
16503#ifndef LT_DLLAZY_OR_NOW
16504# ifdef RTLD_LAZY
16505# define LT_DLLAZY_OR_NOW RTLD_LAZY
16506# else
16507# ifdef DL_LAZY
16508# define LT_DLLAZY_OR_NOW DL_LAZY
16509# else
16510# ifdef RTLD_NOW
16511# define LT_DLLAZY_OR_NOW RTLD_NOW
16512# else
16513# ifdef DL_NOW
16514# define LT_DLLAZY_OR_NOW DL_NOW
16515# else
16516# define LT_DLLAZY_OR_NOW 0
16517# endif
16518# endif
16519# endif
16520# endif
16521#endif
16522
16523#ifdef __cplusplus
16524extern "C" void exit (int);
16525#endif
16526
16527void fnord() { int i=42;}
16528int main ()
16529{
16530 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16531 int status = $lt_dlunknown;
16532
16533 if (self)
16534 {
16535 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16536 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16537 /* dlclose (self); */
16538 }
Reid Spencera773bd52006-08-04 18:18:08 +000016539 else
16540 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000016541
16542 exit (status);
16543}
16544EOF
16545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16546 (eval $ac_link) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000016550 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000016551 lt_status=$?
16552 case x$lt_status in
16553 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16554 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016555 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000016556 esac
16557 else :
16558 # compilation failed
16559 lt_cv_dlopen_self_static=no
16560 fi
16561fi
16562rm -fr conftest*
16563
16564
16565fi
Reid Spencera773bd52006-08-04 18:18:08 +000016566{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16567echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016568 fi
16569
16570 CPPFLAGS="$save_CPPFLAGS"
16571 LDFLAGS="$save_LDFLAGS"
16572 LIBS="$save_LIBS"
16573 ;;
16574 esac
16575
16576 case $lt_cv_dlopen_self in
16577 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16578 *) enable_dlopen_self=unknown ;;
16579 esac
16580
16581 case $lt_cv_dlopen_self_static in
16582 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16583 *) enable_dlopen_self_static=unknown ;;
16584 esac
16585fi
16586
16587
Reid Spencera773bd52006-08-04 18:18:08 +000016588# Report which library types will actually be built
16589{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16590echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16591{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16592echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016593
Reid Spencera773bd52006-08-04 18:18:08 +000016594{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16595echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016596test "$can_build_shared" = "no" && enable_shared=no
16597
16598# On AIX, shared libraries and static libraries use the same namespace, and
16599# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000016600case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016601aix3*)
16602 test "$enable_shared" = yes && enable_static=no
16603 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016604 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000016605 postinstall_cmds='$RANLIB $lib'
16606 fi
16607 ;;
16608
Reid Spencer2706f8c2004-09-19 23:53:36 +000016609aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000016610 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16611 test "$enable_shared" = yes && enable_static=no
16612 fi
John Criswell7a73b802003-06-30 21:59:07 +000016613 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016614esac
Reid Spencera773bd52006-08-04 18:18:08 +000016615{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16616echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016617
Reid Spencera773bd52006-08-04 18:18:08 +000016618{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16619echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016620# Make sure either enable_shared or enable_static is yes.
16621test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000016622{ echo "$as_me:$LINENO: result: $enable_static" >&5
16623echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016624
16625# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000016626# libtool distribution, otherwise you forgot to ship ltmain.sh
16627# with your package, and you will get complaints that there are
16628# no rules to generate ltmain.sh.
16629if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000016630 # See if we are running on zsh, and set the options which allow our commands through
16631 # without removal of \ escapes.
16632 if test -n "${ZSH_VERSION+set}" ; then
16633 setopt NO_GLOB_SUBST
16634 fi
John Criswell7a73b802003-06-30 21:59:07 +000016635 # Now quote all the things that may contain metacharacters while being
16636 # careful not to overquote the AC_SUBSTed values. We take copies of the
16637 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000016638 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 +000016639 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000016640 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16641 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16642 deplibs_check_method reload_flag reload_cmds need_locks \
16643 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16644 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000016645 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000016646 old_postinstall_cmds old_postuninstall_cmds \
16647 compiler \
16648 CC \
16649 LD \
16650 lt_prog_compiler_wl \
16651 lt_prog_compiler_pic \
16652 lt_prog_compiler_static \
16653 lt_prog_compiler_no_builtin_flag \
16654 export_dynamic_flag_spec \
16655 thread_safe_flag_spec \
16656 whole_archive_flag_spec \
16657 enable_shared_with_static_runtimes \
16658 old_archive_cmds \
16659 old_archive_from_new_cmds \
16660 predep_objects \
16661 postdep_objects \
16662 predeps \
16663 postdeps \
16664 compiler_lib_search_path \
16665 archive_cmds \
16666 archive_expsym_cmds \
16667 postinstall_cmds \
16668 postuninstall_cmds \
16669 old_archive_from_expsyms_cmds \
16670 allow_undefined_flag \
16671 no_undefined_flag \
16672 export_symbols_cmds \
16673 hardcode_libdir_flag_spec \
16674 hardcode_libdir_flag_spec_ld \
16675 hardcode_libdir_separator \
16676 hardcode_automatic \
16677 module_cmds \
16678 module_expsym_cmds \
16679 lt_cv_prog_compiler_c_o \
16680 exclude_expsyms \
16681 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000016682
16683 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000016684 old_archive_cmds | \
16685 old_archive_from_new_cmds | \
16686 archive_cmds | \
16687 archive_expsym_cmds | \
16688 module_cmds | \
16689 module_expsym_cmds | \
16690 old_archive_from_expsyms_cmds | \
16691 export_symbols_cmds | \
16692 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000016693 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000016694 old_postinstall_cmds | old_postuninstall_cmds | \
16695 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000016696 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016697 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 +000016698 ;;
16699 *)
16700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16701 ;;
16702 esac
16703 done
16704
John Criswell47fdd832003-07-14 16:52:07 +000016705 case $lt_echo in
16706 *'\$0 --fallback-echo"')
16707 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16708 ;;
16709 esac
16710
16711cfgfile="${ofile}T"
16712 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16713 $rm -f "$cfgfile"
16714 { echo "$as_me:$LINENO: creating $ofile" >&5
16715echo "$as_me: creating $ofile" >&6;}
16716
16717 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000016718#! $SHELL
16719
John Criswell47fdd832003-07-14 16:52:07 +000016720# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000016721# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16722# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16723#
John Criswell47fdd832003-07-14 16:52:07 +000016724# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16725# Free Software Foundation, Inc.
16726#
16727# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000016728# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16729#
16730# This program is free software; you can redistribute it and/or modify
16731# it under the terms of the GNU General Public License as published by
16732# the Free Software Foundation; either version 2 of the License, or
16733# (at your option) any later version.
16734#
16735# This program is distributed in the hope that it will be useful, but
16736# WITHOUT ANY WARRANTY; without even the implied warranty of
16737# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16738# General Public License for more details.
16739#
16740# You should have received a copy of the GNU General Public License
16741# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000016742# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000016743#
16744# As a special exception to the GNU General Public License, if you
16745# distribute this file as part of a program that contains a
16746# configuration script generated by Autoconf, you may include it under
16747# the same distribution terms that you use for the rest of that program.
16748
John Criswell47fdd832003-07-14 16:52:07 +000016749# A sed program that does not truncate output.
16750SED=$lt_SED
16751
John Criswell7a73b802003-06-30 21:59:07 +000016752# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000016753Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000016754
16755# The HP-UX ksh and POSIX shell print the target directory to stdout
16756# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016757(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000016758
John Criswell47fdd832003-07-14 16:52:07 +000016759# The names of the tagged configurations supported by this script.
16760available_tags=
16761
John Criswell7a73b802003-06-30 21:59:07 +000016762# ### BEGIN LIBTOOL CONFIG
16763
16764# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16765
16766# Shell to use when invoking shell scripts.
16767SHELL=$lt_SHELL
16768
16769# Whether or not to build shared libraries.
16770build_libtool_libs=$enable_shared
16771
16772# Whether or not to build static libraries.
16773build_old_libs=$enable_static
16774
16775# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016776build_libtool_need_lc=$archive_cmds_need_lc
16777
16778# Whether or not to disallow shared libs when runtime libs are static
16779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000016780
16781# Whether or not to optimize for fast installation.
16782fast_install=$enable_fast_install
16783
16784# The host system.
16785host_alias=$host_alias
16786host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000016787host_os=$host_os
16788
16789# The build system.
16790build_alias=$build_alias
16791build=$build
16792build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000016793
16794# An echo program that does not interpret backslashes.
16795echo=$lt_echo
16796
16797# The archiver.
16798AR=$lt_AR
16799AR_FLAGS=$lt_AR_FLAGS
16800
John Criswell47fdd832003-07-14 16:52:07 +000016801# A C compiler.
16802LTCC=$lt_LTCC
16803
Reid Spencera773bd52006-08-04 18:18:08 +000016804# LTCC compiler flags.
16805LTCFLAGS=$lt_LTCFLAGS
16806
John Criswell47fdd832003-07-14 16:52:07 +000016807# A language-specific compiler.
16808CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000016809
16810# Is the compiler the GNU C compiler?
16811with_gcc=$GCC
16812
John Criswell47fdd832003-07-14 16:52:07 +000016813# An ERE matcher.
16814EGREP=$lt_EGREP
16815
John Criswell7a73b802003-06-30 21:59:07 +000016816# The linker used to build libraries.
16817LD=$lt_LD
16818
16819# Whether we need hard or soft links.
16820LN_S=$lt_LN_S
16821
16822# A BSD-compatible nm program.
16823NM=$lt_NM
16824
16825# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000016826STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000016827
16828# Used to examine libraries when file_magic_cmd begins "file"
16829MAGIC_CMD=$MAGIC_CMD
16830
16831# Used on cygwin: DLL creation program.
16832DLLTOOL="$DLLTOOL"
16833
16834# Used on cygwin: object dumper.
16835OBJDUMP="$OBJDUMP"
16836
16837# Used on cygwin: assembler.
16838AS="$AS"
16839
16840# The name of the directory that contains temporary libtool files.
16841objdir=$objdir
16842
16843# How to create reloadable object files.
16844reload_flag=$lt_reload_flag
16845reload_cmds=$lt_reload_cmds
16846
16847# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000016848wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000016849
16850# Object file suffix (normally "o").
16851objext="$ac_objext"
16852
16853# Old archive suffix (normally "a").
16854libext="$libext"
16855
John Criswell47fdd832003-07-14 16:52:07 +000016856# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000016857shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000016858
John Criswell7a73b802003-06-30 21:59:07 +000016859# Executable file suffix (normally "").
16860exeext="$exeext"
16861
16862# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000016863pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000016864pic_mode=$pic_mode
16865
John Criswell47fdd832003-07-14 16:52:07 +000016866# What is the maximum length of a command?
16867max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000016868
John Criswell47fdd832003-07-14 16:52:07 +000016869# Does compiler simultaneously support -c and -o options?
16870compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000016871
Reid Spencera773bd52006-08-04 18:18:08 +000016872# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000016873need_locks=$lt_need_locks
16874
16875# Do we need the lib prefix for modules?
16876need_lib_prefix=$need_lib_prefix
16877
16878# Do we need a version for libraries?
16879need_version=$need_version
16880
16881# Whether dlopen is supported.
16882dlopen_support=$enable_dlopen
16883
16884# Whether dlopen of programs is supported.
16885dlopen_self=$enable_dlopen_self
16886
16887# Whether dlopen of statically linked programs is supported.
16888dlopen_self_static=$enable_dlopen_self_static
16889
16890# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000016891link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000016892
16893# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000016894no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000016895
16896# Compiler flag to allow reflexive dlopens.
16897export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16898
16899# Compiler flag to generate shared objects directly from archives.
16900whole_archive_flag_spec=$lt_whole_archive_flag_spec
16901
16902# Compiler flag to generate thread-safe objects.
16903thread_safe_flag_spec=$lt_thread_safe_flag_spec
16904
16905# Library versioning type.
16906version_type=$version_type
16907
16908# Format of library name prefix.
16909libname_spec=$lt_libname_spec
16910
16911# List of archive names. First name is the real one, the rest are links.
16912# The last name is the one that the linker finds with -lNAME.
16913library_names_spec=$lt_library_names_spec
16914
16915# The coded name of the library, if different from the real name.
16916soname_spec=$lt_soname_spec
16917
16918# Commands used to build and install an old-style archive.
16919RANLIB=$lt_RANLIB
16920old_archive_cmds=$lt_old_archive_cmds
16921old_postinstall_cmds=$lt_old_postinstall_cmds
16922old_postuninstall_cmds=$lt_old_postuninstall_cmds
16923
16924# Create an old-style archive from a shared archive.
16925old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16926
16927# Create a temporary old-style archive to link instead of a shared archive.
16928old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16929
16930# Commands used to build and install a shared archive.
16931archive_cmds=$lt_archive_cmds
16932archive_expsym_cmds=$lt_archive_expsym_cmds
16933postinstall_cmds=$lt_postinstall_cmds
16934postuninstall_cmds=$lt_postuninstall_cmds
16935
John Criswell47fdd832003-07-14 16:52:07 +000016936# Commands used to build a loadable module (assumed same as above if empty)
16937module_cmds=$lt_module_cmds
16938module_expsym_cmds=$lt_module_expsym_cmds
16939
John Criswell7a73b802003-06-30 21:59:07 +000016940# Commands to strip libraries.
16941old_striplib=$lt_old_striplib
16942striplib=$lt_striplib
16943
John Criswell47fdd832003-07-14 16:52:07 +000016944# Dependencies to place before the objects being linked to create a
16945# shared library.
16946predep_objects=$lt_predep_objects
16947
16948# Dependencies to place after the objects being linked to create a
16949# shared library.
16950postdep_objects=$lt_postdep_objects
16951
16952# Dependencies to place before the objects being linked to create a
16953# shared library.
16954predeps=$lt_predeps
16955
16956# Dependencies to place after the objects being linked to create a
16957# shared library.
16958postdeps=$lt_postdeps
16959
16960# The library search path used internally by the compiler when linking
16961# a shared library.
16962compiler_lib_search_path=$lt_compiler_lib_search_path
16963
John Criswell7a73b802003-06-30 21:59:07 +000016964# Method to check whether dependent libraries are shared objects.
16965deplibs_check_method=$lt_deplibs_check_method
16966
16967# Command to use when deplibs_check_method == file_magic.
16968file_magic_cmd=$lt_file_magic_cmd
16969
16970# Flag that allows shared libraries with undefined symbols to be built.
16971allow_undefined_flag=$lt_allow_undefined_flag
16972
16973# Flag that forces no undefined symbols.
16974no_undefined_flag=$lt_no_undefined_flag
16975
16976# Commands used to finish a libtool library installation in a directory.
16977finish_cmds=$lt_finish_cmds
16978
16979# Same as above, but a single script fragment to be evaled but not shown.
16980finish_eval=$lt_finish_eval
16981
16982# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000016983global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000016984
16985# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000016986global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000016987
16988# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000016989global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000016990
16991# This is the shared library runtime path variable.
16992runpath_var=$runpath_var
16993
16994# This is the shared library path variable.
16995shlibpath_var=$shlibpath_var
16996
16997# Is shlibpath searched before the hard-coded library search path?
16998shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16999
17000# How to hardcode a shared library path into an executable.
17001hardcode_action=$hardcode_action
17002
17003# Whether we should hardcode library paths into libraries.
17004hardcode_into_libs=$hardcode_into_libs
17005
17006# Flag to hardcode \$libdir into a binary during linking.
17007# This must work even if \$libdir does not exist.
17008hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17009
John Criswell47fdd832003-07-14 16:52:07 +000017010# If ld is used when linking, flag to hardcode \$libdir into
17011# a binary during linking. This must work even if \$libdir does
17012# not exist.
17013hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17014
John Criswell7a73b802003-06-30 21:59:07 +000017015# Whether we need a single -rpath flag with a separated argument.
17016hardcode_libdir_separator=$lt_hardcode_libdir_separator
17017
John Criswell47fdd832003-07-14 16:52:07 +000017018# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017019# resulting binary.
17020hardcode_direct=$hardcode_direct
17021
17022# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17023# resulting binary.
17024hardcode_minus_L=$hardcode_minus_L
17025
17026# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17027# the resulting binary.
17028hardcode_shlibpath_var=$hardcode_shlibpath_var
17029
John Criswell47fdd832003-07-14 16:52:07 +000017030# Set to yes if building a shared library automatically hardcodes DIR into the library
17031# and all subsequent libraries and executables linked against it.
17032hardcode_automatic=$hardcode_automatic
17033
John Criswell7a73b802003-06-30 21:59:07 +000017034# Variables whose values should be saved in libtool wrapper scripts and
17035# restored at relink time.
17036variables_saved_for_relink="$variables_saved_for_relink"
17037
17038# Whether libtool must link a program against all its dependency libraries.
17039link_all_deplibs=$link_all_deplibs
17040
17041# Compile-time system search path for libraries
17042sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17043
17044# Run-time system search path for libraries
17045sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17046
17047# Fix the shell variable \$srcfile for the compiler.
17048fix_srcfile_path="$fix_srcfile_path"
17049
17050# Set to yes if exported symbols are required.
17051always_export_symbols=$always_export_symbols
17052
17053# The commands to list exported symbols.
17054export_symbols_cmds=$lt_export_symbols_cmds
17055
17056# The commands to extract the exported symbol list from a shared archive.
17057extract_expsyms_cmds=$lt_extract_expsyms_cmds
17058
17059# Symbols that should not be listed in the preloaded symbols.
17060exclude_expsyms=$lt_exclude_expsyms
17061
17062# Symbols that must always be exported.
17063include_expsyms=$lt_include_expsyms
17064
17065# ### END LIBTOOL CONFIG
17066
17067__EOF__
17068
John Criswell47fdd832003-07-14 16:52:07 +000017069
John Criswell7a73b802003-06-30 21:59:07 +000017070 case $host_os in
17071 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017072 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017073
17074# AIX sometimes has problems with the GCC collect2 program. For some
17075# reason, if we set the COLLECT_NAMES environment variable, the problems
17076# vanish in a puff of smoke.
17077if test "X${COLLECT_NAMES+set}" != Xset; then
17078 COLLECT_NAMES=
17079 export COLLECT_NAMES
17080fi
17081EOF
17082 ;;
17083 esac
17084
John Criswell7a73b802003-06-30 21:59:07 +000017085 # We use sed instead of cat because bash on DJGPP gets confused if
17086 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17087 # text mode, it properly converts lines to CR/LF. This bash problem
17088 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017089 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017090
John Criswell47fdd832003-07-14 16:52:07 +000017091 mv -f "$cfgfile" "$ofile" || \
17092 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017093 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017094
17095else
17096 # If there is no Makefile yet, we rely on a make rule to execute
17097 # `config.status --recheck' to rerun these tests and create the
17098 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017099 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17100 if test -f "$ltmain_in"; then
17101 test -f Makefile && make "$ltmain"
17102 fi
John Criswell7a73b802003-06-30 21:59:07 +000017103fi
John Criswell7a73b802003-06-30 21:59:07 +000017104
17105
John Criswell47fdd832003-07-14 16:52:07 +000017106ac_ext=c
17107ac_cpp='$CPP $CPPFLAGS'
17108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17110ac_compiler_gnu=$ac_cv_c_compiler_gnu
17111
17112CC="$lt_save_CC"
17113
17114
Reid Spencera773bd52006-08-04 18:18:08 +000017115# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017116if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017117 withval=$with_tags; tagnames="$withval"
17118fi
17119
John Criswell47fdd832003-07-14 16:52:07 +000017120
17121if test -f "$ltmain" && test -n "$tagnames"; then
17122 if test ! -f "${ofile}"; then
17123 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17124echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17125 fi
17126
17127 if test -z "$LTCC"; then
17128 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17129 if test -z "$LTCC"; then
17130 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17131echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17132 else
17133 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17134echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17135 fi
17136 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017137 if test -z "$LTCFLAGS"; then
17138 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17139 fi
John Criswell47fdd832003-07-14 16:52:07 +000017140
17141 # Extract list of available tagged configurations in $ofile.
17142 # Note that this assumes the entire list is on one line.
17143 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17144
17145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17146 for tagname in $tagnames; do
17147 IFS="$lt_save_ifs"
17148 # Check whether tagname contains only valid characters
17149 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17150 "") ;;
17151 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17152echo "$as_me: error: invalid tag name: $tagname" >&2;}
17153 { (exit 1); exit 1; }; }
17154 ;;
17155 esac
17156
17157 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17158 then
17159 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17160echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17161 { (exit 1); exit 1; }; }
17162 fi
17163
17164 # Update the list of available tags.
17165 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017166 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017167
17168 case $tagname in
17169 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017170 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17171 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17172 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017173 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017174ac_cpp='$CXXCPP $CPPFLAGS'
17175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17178
17179
17180
17181
17182archive_cmds_need_lc_CXX=no
17183allow_undefined_flag_CXX=
17184always_export_symbols_CXX=no
17185archive_expsym_cmds_CXX=
17186export_dynamic_flag_spec_CXX=
17187hardcode_direct_CXX=no
17188hardcode_libdir_flag_spec_CXX=
17189hardcode_libdir_flag_spec_ld_CXX=
17190hardcode_libdir_separator_CXX=
17191hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017192hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017193hardcode_automatic_CXX=no
17194module_cmds_CXX=
17195module_expsym_cmds_CXX=
17196link_all_deplibs_CXX=unknown
17197old_archive_cmds_CXX=$old_archive_cmds
17198no_undefined_flag_CXX=
17199whole_archive_flag_spec_CXX=
17200enable_shared_with_static_runtimes_CXX=no
17201
17202# Dependencies to place before and after the object being linked:
17203predep_objects_CXX=
17204postdep_objects_CXX=
17205predeps_CXX=
17206postdeps_CXX=
17207compiler_lib_search_path_CXX=
17208
17209# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017210ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017211
17212# Object file extension for compiled C++ test sources.
17213objext=o
17214objext_CXX=$objext
17215
17216# Code to be used in simple compile tests
17217lt_simple_compile_test_code="int some_variable = 0;\n"
17218
17219# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017220lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017221
17222# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17223
17224# If no C compiler was specified, use CC.
17225LTCC=${LTCC-"$CC"}
17226
Reid Spencera773bd52006-08-04 18:18:08 +000017227# If no C compiler flags were specified, use CFLAGS.
17228LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17229
John Criswell47fdd832003-07-14 16:52:07 +000017230# Allow CC to be a program name with arguments.
17231compiler=$CC
17232
17233
Reid Spencera773bd52006-08-04 18:18:08 +000017234# save warnings/boilerplate of simple test code
17235ac_outfile=conftest.$ac_objext
17236printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17237eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17238_lt_compiler_boilerplate=`cat conftest.err`
17239$rm conftest*
17240
17241ac_outfile=conftest.$ac_objext
17242printf "$lt_simple_link_test_code" >conftest.$ac_ext
17243eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17244_lt_linker_boilerplate=`cat conftest.err`
17245$rm conftest*
17246
17247
John Criswell47fdd832003-07-14 16:52:07 +000017248# Allow CC to be a program name with arguments.
17249lt_save_CC=$CC
17250lt_save_LD=$LD
17251lt_save_GCC=$GCC
17252GCC=$GXX
17253lt_save_with_gnu_ld=$with_gnu_ld
17254lt_save_path_LD=$lt_cv_path_LD
17255if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17256 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17257else
Reid Spencera773bd52006-08-04 18:18:08 +000017258 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017259fi
17260if test -n "${lt_cv_path_LDCXX+set}"; then
17261 lt_cv_path_LD=$lt_cv_path_LDCXX
17262else
Reid Spencera773bd52006-08-04 18:18:08 +000017263 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017264fi
17265test -z "${LDCXX+set}" || LD=$LDCXX
17266CC=${CXX-"c++"}
17267compiler=$CC
17268compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017269for cc_temp in $compiler""; do
17270 case $cc_temp in
17271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17273 \-*) ;;
17274 *) break;;
17275 esac
17276done
17277cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17278
John Criswell47fdd832003-07-14 16:52:07 +000017279
17280# We don't want -fno-exception wen compiling C++ code, so set the
17281# no_builtin_flag separately
17282if test "$GXX" = yes; then
17283 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17284else
17285 lt_prog_compiler_no_builtin_flag_CXX=
17286fi
17287
17288if test "$GXX" = yes; then
17289 # Set up default GNU C++ configuration
17290
17291
Reid Spencera773bd52006-08-04 18:18:08 +000017292# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017293if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017294 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017295else
17296 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017297fi
17298
John Criswell47fdd832003-07-14 16:52:07 +000017299ac_prog=ld
17300if test "$GCC" = yes; then
17301 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017302 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17303echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017304 case $host in
17305 *-*-mingw*)
17306 # gcc leaves a trailing carriage return which upsets mingw
17307 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17308 *)
17309 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17310 esac
17311 case $ac_prog in
17312 # Accept absolute paths.
17313 [\\/]* | ?:[\\/]*)
17314 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017315 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017316 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17317 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17318 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17319 done
17320 test -z "$LD" && LD="$ac_prog"
17321 ;;
17322 "")
17323 # If it fails, then pretend we aren't using GCC.
17324 ac_prog=ld
17325 ;;
17326 *)
17327 # If it is relative, then search for the first ld in PATH.
17328 with_gnu_ld=unknown
17329 ;;
17330 esac
17331elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017332 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17333echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017334else
Reid Spencera773bd52006-08-04 18:18:08 +000017335 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17336echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017337fi
17338if test "${lt_cv_path_LD+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340else
17341 if test -z "$LD"; then
17342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17343 for ac_dir in $PATH; do
17344 IFS="$lt_save_ifs"
17345 test -z "$ac_dir" && ac_dir=.
17346 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17347 lt_cv_path_LD="$ac_dir/$ac_prog"
17348 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017349 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017350 # Break only if it was the GNU/non-GNU ld that we prefer.
17351 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17352 *GNU* | *'with BFD'*)
17353 test "$with_gnu_ld" != no && break
17354 ;;
17355 *)
17356 test "$with_gnu_ld" != yes && break
17357 ;;
17358 esac
17359 fi
17360 done
17361 IFS="$lt_save_ifs"
17362else
17363 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17364fi
17365fi
17366
17367LD="$lt_cv_path_LD"
17368if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017369 { echo "$as_me:$LINENO: result: $LD" >&5
17370echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017371else
Reid Spencera773bd52006-08-04 18:18:08 +000017372 { echo "$as_me:$LINENO: result: no" >&5
17373echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017374fi
17375test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17376echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17377 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017378{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17379echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017380if test "${lt_cv_prog_gnu_ld+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382else
Reid Spencera773bd52006-08-04 18:18:08 +000017383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017384case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017385*GNU* | *'with BFD'*)
17386 lt_cv_prog_gnu_ld=yes
17387 ;;
17388*)
17389 lt_cv_prog_gnu_ld=no
17390 ;;
17391esac
17392fi
Reid Spencera773bd52006-08-04 18:18:08 +000017393{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17394echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017395with_gnu_ld=$lt_cv_prog_gnu_ld
17396
17397
17398
17399 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17400 # archiving commands below assume that GNU ld is being used.
17401 if test "$with_gnu_ld" = yes; then
17402 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17403 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'
17404
17405 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17406 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17407
17408 # If archive_cmds runs LD, not CC, wlarc should be empty
17409 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17410 # investigate it a little bit more. (MM)
17411 wlarc='${wl}'
17412
17413 # ancient GNU ld didn't support --whole-archive et. al.
17414 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17415 grep 'no-whole-archive' > /dev/null; then
17416 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17417 else
17418 whole_archive_flag_spec_CXX=
17419 fi
17420 else
17421 with_gnu_ld=no
17422 wlarc=
17423
17424 # A generic and very simple default shared library creation
17425 # command for GNU C++ for the case where it uses the native
17426 # linker, instead of GNU ld. If possible, this setting should
17427 # overridden to take advantage of the native linker features on
17428 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017429 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000017430 fi
17431
17432 # Commands to make compiler produce verbose output that lists
17433 # what "hidden" libraries, object files and flags are used when
17434 # linking a shared library.
17435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17436
17437else
17438 GXX=no
17439 with_gnu_ld=no
17440 wlarc=
17441fi
17442
17443# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000017444{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17445echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017446ld_shlibs_CXX=yes
17447case $host_os in
17448 aix3*)
17449 # FIXME: insert proper C++ library support
17450 ld_shlibs_CXX=no
17451 ;;
17452 aix4* | aix5*)
17453 if test "$host_cpu" = ia64; then
17454 # On IA64, the linker does run time linking by default, so we don't
17455 # have to do anything special.
17456 aix_use_runtimelinking=no
17457 exp_sym_flag='-Bexport'
17458 no_entry_flag=""
17459 else
17460 aix_use_runtimelinking=no
17461
17462 # Test if we are trying to use run time linking or normal
17463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17464 # need to do runtime linking.
17465 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17466 for ld_flag in $LDFLAGS; do
17467 case $ld_flag in
17468 *-brtl*)
17469 aix_use_runtimelinking=yes
17470 break
17471 ;;
17472 esac
17473 done
Reid Spencera773bd52006-08-04 18:18:08 +000017474 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017475 esac
17476
17477 exp_sym_flag='-bexport'
17478 no_entry_flag='-bnoentry'
17479 fi
17480
17481 # When large executables or shared objects are built, AIX ld can
17482 # have problems creating the table of contents. If linking a library
17483 # or program results in "error TOC overflow" add -mminimal-toc to
17484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17486
17487 archive_cmds_CXX=''
17488 hardcode_direct_CXX=yes
17489 hardcode_libdir_separator_CXX=':'
17490 link_all_deplibs_CXX=yes
17491
17492 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017493 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000017494 # We only want to do this on AIX 4.2 and lower, the check
17495 # below for broken collect2 doesn't work under 4.3+
17496 collect2name=`${CC} -print-prog-name=collect2`
17497 if test -f "$collect2name" && \
17498 strings "$collect2name" | grep resolve_lib_name >/dev/null
17499 then
17500 # We have reworked collect2
17501 hardcode_direct_CXX=yes
17502 else
17503 # We have old collect2
17504 hardcode_direct_CXX=unsupported
17505 # It fails to find uninstalled libraries when the uninstalled
17506 # path is not listed in the libpath. Setting hardcode_minus_L
17507 # to unsupported forces relinking
17508 hardcode_minus_L_CXX=yes
17509 hardcode_libdir_flag_spec_CXX='-L$libdir'
17510 hardcode_libdir_separator_CXX=
17511 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017512 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017513 esac
17514 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000017515 if test "$aix_use_runtimelinking" = yes; then
17516 shared_flag="$shared_flag "'${wl}-G'
17517 fi
John Criswell47fdd832003-07-14 16:52:07 +000017518 else
17519 # not using gcc
17520 if test "$host_cpu" = ia64; then
17521 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17522 # chokes on -Wl,-G. The following line is correct:
17523 shared_flag='-G'
17524 else
17525 if test "$aix_use_runtimelinking" = yes; then
17526 shared_flag='${wl}-G'
17527 else
17528 shared_flag='${wl}-bM:SRE'
17529 fi
17530 fi
17531 fi
17532
17533 # It seems that -bexpall does not export symbols beginning with
17534 # underscore (_), so it is better to generate a list of symbols to export.
17535 always_export_symbols_CXX=yes
17536 if test "$aix_use_runtimelinking" = yes; then
17537 # Warning - without using the other runtime loading flags (-brtl),
17538 # -berok will link without error, but may produce a broken library.
17539 allow_undefined_flag_CXX='-berok'
17540 # Determine the default libpath from the value encoded in an empty executable.
17541 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017542/* confdefs.h. */
17543_ACEOF
17544cat confdefs.h >>conftest.$ac_ext
17545cat >>conftest.$ac_ext <<_ACEOF
17546/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017547
John Criswell47fdd832003-07-14 16:52:07 +000017548int
17549main ()
17550{
17551
17552 ;
17553 return 0;
17554}
17555_ACEOF
17556rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017557if { (ac_try="$ac_link"
17558case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17561esac
17562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017564 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017569 (exit $ac_status); } && {
17570 test -z "$ac_cxx_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest$ac_exeext &&
17573 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017574
17575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17576}'`
17577# Check for a 64-bit object if we didn't find anything.
17578if 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; }
17579}'`; fi
17580else
17581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017582sed 's/^/| /' conftest.$ac_ext >&5
17583
Reid Spencera773bd52006-08-04 18:18:08 +000017584
John Criswell47fdd832003-07-14 16:52:07 +000017585fi
Reid Spencera773bd52006-08-04 18:18:08 +000017586
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017588 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17590
17591 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17592
Reid Spencera773bd52006-08-04 18:18:08 +000017593 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 +000017594 else
17595 if test "$host_cpu" = ia64; then
17596 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17597 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000017598 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 +000017599 else
17600 # Determine the default libpath from the value encoded in an empty executable.
17601 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017602/* confdefs.h. */
17603_ACEOF
17604cat confdefs.h >>conftest.$ac_ext
17605cat >>conftest.$ac_ext <<_ACEOF
17606/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017607
John Criswell47fdd832003-07-14 16:52:07 +000017608int
17609main ()
17610{
17611
17612 ;
17613 return 0;
17614}
17615_ACEOF
17616rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017617if { (ac_try="$ac_link"
17618case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621esac
17622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017624 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017625 grep -v '^ *+' conftest.er1 >conftest.err
17626 rm -f conftest.er1
17627 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017629 (exit $ac_status); } && {
17630 test -z "$ac_cxx_werror_flag" ||
17631 test ! -s conftest.err
17632 } && test -s conftest$ac_exeext &&
17633 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000017634
17635aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17636}'`
17637# Check for a 64-bit object if we didn't find anything.
17638if 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; }
17639}'`; fi
17640else
17641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017642sed 's/^/| /' conftest.$ac_ext >&5
17643
Reid Spencera773bd52006-08-04 18:18:08 +000017644
John Criswell47fdd832003-07-14 16:52:07 +000017645fi
Reid Spencera773bd52006-08-04 18:18:08 +000017646
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017648 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017649if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17650
17651 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17652 # Warning - without using the other run time loading flags,
17653 # -berok will link without error, but may produce a broken library.
17654 no_undefined_flag_CXX=' ${wl}-bernotok'
17655 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000017656 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000017657 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000017658 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017659 # This is similar to how AIX traditionally builds its shared libraries.
17660 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 +000017661 fi
17662 fi
17663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017664
17665 beos*)
17666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17667 allow_undefined_flag_CXX=unsupported
17668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17669 # support --undefined. This deserves some investigation. FIXME
17670 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17671 else
17672 ld_shlibs_CXX=no
17673 fi
17674 ;;
17675
John Criswell47fdd832003-07-14 16:52:07 +000017676 chorus*)
17677 case $cc_basename in
17678 *)
17679 # FIXME: insert proper C++ library support
17680 ld_shlibs_CXX=no
17681 ;;
17682 esac
17683 ;;
17684
17685 cygwin* | mingw* | pw32*)
17686 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17687 # as there is no search path for DLLs.
17688 hardcode_libdir_flag_spec_CXX='-L$libdir'
17689 allow_undefined_flag_CXX=unsupported
17690 always_export_symbols_CXX=no
17691 enable_shared_with_static_runtimes_CXX=yes
17692
17693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017694 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 +000017695 # If the export-symbols file already is a .def file (1st line
17696 # is EXPORTS), use it as is; otherwise, prepend...
17697 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17698 cp $export_symbols $output_objdir/$soname.def;
17699 else
17700 echo EXPORTS > $output_objdir/$soname.def;
17701 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000017702 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000017703 $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 +000017704 else
17705 ld_shlibs_CXX=no
17706 fi
17707 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000017708 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000017709 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017710 rhapsody* | darwin1.[012])
17711 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17712 ;;
17713 *) # Darwin 1.3 on
17714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17715 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17716 else
17717 case ${MACOSX_DEPLOYMENT_TARGET} in
17718 10.[012])
17719 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17720 ;;
17721 10.*)
17722 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17723 ;;
17724 esac
17725 fi
17726 ;;
17727 esac
17728 archive_cmds_need_lc_CXX=no
17729 hardcode_direct_CXX=no
17730 hardcode_automatic_CXX=yes
17731 hardcode_shlibpath_var_CXX=unsupported
17732 whole_archive_flag_spec_CXX=''
17733 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000017734
Reid Spencer2706f8c2004-09-19 23:53:36 +000017735 if test "$GXX" = yes ; then
17736 lt_int_apple_cc_single_mod=no
17737 output_verbose_link_cmd='echo'
17738 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17739 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000017740 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000017741 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000017742 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 +000017743 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017744 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 +000017745 fi
17746 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017747 # 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 +000017748 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017749 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 +000017750 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017751 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 +000017752 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000017753 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 +000017754 else
Reid Spencera773bd52006-08-04 18:18:08 +000017755 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017756 xlc*)
17757 output_verbose_link_cmd='echo'
17758 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'
17759 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000017760 # 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 +000017761 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}'
17762 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 +000017763 ;;
17764 *)
17765 ld_shlibs_CXX=no
17766 ;;
17767 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000017768 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017769 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017770
17771 dgux*)
17772 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017773 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000017774 # FIXME: insert proper C++ library support
17775 ld_shlibs_CXX=no
17776 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017777 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000017778 # Green Hills C++ Compiler
17779 # FIXME: insert proper C++ library support
17780 ld_shlibs_CXX=no
17781 ;;
17782 *)
17783 # FIXME: insert proper C++ library support
17784 ld_shlibs_CXX=no
17785 ;;
17786 esac
17787 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017788 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000017789 # C++ shared libraries reported to be fairly broken before switch to ELF
17790 ld_shlibs_CXX=no
17791 ;;
17792 freebsd-elf*)
17793 archive_cmds_need_lc_CXX=no
17794 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017795 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000017796 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17797 # conventions
17798 ld_shlibs_CXX=yes
17799 ;;
17800 gnu*)
17801 ;;
17802 hpux9*)
17803 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17804 hardcode_libdir_separator_CXX=:
17805 export_dynamic_flag_spec_CXX='${wl}-E'
17806 hardcode_direct_CXX=yes
17807 hardcode_minus_L_CXX=yes # Not in the search PATH,
17808 # but as the default
17809 # location of the library.
17810
17811 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017812 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017813 # FIXME: insert proper C++ library support
17814 ld_shlibs_CXX=no
17815 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017816 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000017817 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 +000017818 # Commands to make compiler produce verbose output that lists
17819 # what "hidden" libraries, object files and flags are used when
17820 # linking a shared library.
17821 #
17822 # There doesn't appear to be a way to prevent this compiler from
17823 # explicitly linking system object files so we need to strip them
17824 # from the output so that they don't get included in the library
17825 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000017826 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 +000017827 ;;
17828 *)
17829 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017830 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 +000017831 else
17832 # FIXME: insert proper C++ library support
17833 ld_shlibs_CXX=no
17834 fi
17835 ;;
17836 esac
17837 ;;
17838 hpux10*|hpux11*)
17839 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017840 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17841 hardcode_libdir_separator_CXX=:
17842
17843 case $host_cpu in
17844 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017845 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000017846 ;;
17847 *)
John Criswell47fdd832003-07-14 16:52:07 +000017848 export_dynamic_flag_spec_CXX='${wl}-E'
17849 ;;
17850 esac
17851 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017852 case $host_cpu in
17853 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000017854 hardcode_direct_CXX=no
17855 hardcode_shlibpath_var_CXX=no
17856 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017857 *)
17858 hardcode_direct_CXX=yes
17859 hardcode_minus_L_CXX=yes # Not in the search PATH,
17860 # but as the default
17861 # location of the library.
17862 ;;
17863 esac
17864
17865 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017866 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017867 # FIXME: insert proper C++ library support
17868 ld_shlibs_CXX=no
17869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017870 aCC*)
17871 case $host_cpu in
17872 hppa*64*)
17873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17874 ;;
17875 ia64*)
17876 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 +000017877 ;;
17878 *)
17879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17880 ;;
17881 esac
17882 # Commands to make compiler produce verbose output that lists
17883 # what "hidden" libraries, object files and flags are used when
17884 # linking a shared library.
17885 #
17886 # There doesn't appear to be a way to prevent this compiler from
17887 # explicitly linking system object files so we need to strip them
17888 # from the output so that they don't get included in the library
17889 # dependencies.
17890 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'
17891 ;;
17892 *)
17893 if test "$GXX" = yes; then
17894 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017895 case $host_cpu in
17896 hppa*64*)
17897 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17898 ;;
17899 ia64*)
17900 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 +000017901 ;;
17902 *)
17903 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'
17904 ;;
17905 esac
17906 fi
17907 else
17908 # FIXME: insert proper C++ library support
17909 ld_shlibs_CXX=no
17910 fi
17911 ;;
17912 esac
17913 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017914 interix3*)
17915 hardcode_direct_CXX=no
17916 hardcode_shlibpath_var_CXX=no
17917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17918 export_dynamic_flag_spec_CXX='${wl}-E'
17919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17920 # Instead, shared libraries are loaded at an image base (0x10000000 by
17921 # default) and relocated if they conflict, which is a slow very memory
17922 # consuming and fragmenting process. To avoid this, we pick a random,
17923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17925 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'
17926 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'
17927 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017928 irix5* | irix6*)
17929 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017930 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000017931 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000017932 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 +000017933
17934 # Archives containing C++ object files must be created using
17935 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17936 # necessary to make sure instantiated templates are included
17937 # in the archive.
17938 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17939 ;;
17940 *)
17941 if test "$GXX" = yes; then
17942 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000017943 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 +000017944 else
17945 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'
17946 fi
17947 fi
17948 link_all_deplibs_CXX=yes
17949 ;;
17950 esac
17951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17952 hardcode_libdir_separator_CXX=:
17953 ;;
17954 linux*)
17955 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000017956 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000017957 # Kuck and Associates, Inc. (KAI) C++ Compiler
17958
17959 # KCC will only create a shared library if the output file
17960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17961 # to its proper name (with version) after linking.
17962 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'
17963 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'
17964 # Commands to make compiler produce verbose output that lists
17965 # what "hidden" libraries, object files and flags are used when
17966 # linking a shared library.
17967 #
17968 # There doesn't appear to be a way to prevent this compiler from
17969 # explicitly linking system object files so we need to strip them
17970 # from the output so that they don't get included in the library
17971 # dependencies.
17972 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'
17973
17974 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17976
17977 # Archives containing C++ object files must be created using
17978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17980 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017981 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000017982 # Intel C++
17983 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000017984 # version 8.0 and above of icpc choke on multiply defined symbols
17985 # if we add $predep_objects and $postdep_objects, however 7.1 and
17986 # earlier do not add the objects themselves.
17987 case `$CC -V 2>&1` in
17988 *"Version 7."*)
17989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990 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'
17991 ;;
17992 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000017993 tmp_idyn=
17994 case $host_cpu in
17995 ia64*) tmp_idyn=' -i_dynamic';;
17996 esac
17997 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17998 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 +000017999 ;;
18000 esac
John Criswell47fdd832003-07-14 16:52:07 +000018001 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18004 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18005 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018006 pgCC*)
18007 # Portland Group C++ compiler
18008 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18009 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'
18010
18011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18013 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'
18014 ;;
18015 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018016 # Compaq C++
18017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18018 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'
18019
18020 runpath_var=LD_RUN_PATH
18021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18022 hardcode_libdir_separator_CXX=:
18023
18024 # Commands to make compiler produce verbose output that lists
18025 # what "hidden" libraries, object files and flags are used when
18026 # linking a shared library.
18027 #
18028 # There doesn't appear to be a way to prevent this compiler from
18029 # explicitly linking system object files so we need to strip them
18030 # from the output so that they don't get included in the library
18031 # dependencies.
18032 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'
18033 ;;
18034 esac
18035 ;;
18036 lynxos*)
18037 # FIXME: insert proper C++ library support
18038 ld_shlibs_CXX=no
18039 ;;
18040 m88k*)
18041 # FIXME: insert proper C++ library support
18042 ld_shlibs_CXX=no
18043 ;;
18044 mvs*)
18045 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018046 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018047 # FIXME: insert proper C++ library support
18048 ld_shlibs_CXX=no
18049 ;;
18050 *)
18051 # FIXME: insert proper C++ library support
18052 ld_shlibs_CXX=no
18053 ;;
18054 esac
18055 ;;
18056 netbsd*)
18057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18058 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18059 wlarc=
18060 hardcode_libdir_flag_spec_CXX='-R$libdir'
18061 hardcode_direct_CXX=yes
18062 hardcode_shlibpath_var_CXX=no
18063 fi
18064 # Workaround some broken pre-1.5 toolchains
18065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18066 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018067 openbsd2*)
18068 # C++ shared libraries are fairly broken
18069 ld_shlibs_CXX=no
18070 ;;
18071 openbsd*)
18072 hardcode_direct_CXX=yes
18073 hardcode_shlibpath_var_CXX=no
18074 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18077 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18078 export_dynamic_flag_spec_CXX='${wl}-E'
18079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18080 fi
18081 output_verbose_link_cmd='echo'
18082 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018083 osf3*)
18084 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018085 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018086 # Kuck and Associates, Inc. (KAI) C++ Compiler
18087
18088 # KCC will only create a shared library if the output file
18089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18090 # to its proper name (with version) after linking.
18091 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'
18092
18093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18094 hardcode_libdir_separator_CXX=:
18095
18096 # Archives containing C++ object files must be created using
18097 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18098 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18099
18100 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018101 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018102 # Rational C++ 2.4.1
18103 # FIXME: insert proper C++ library support
18104 ld_shlibs_CXX=no
18105 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018106 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018107 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018108 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 +000018109
18110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18111 hardcode_libdir_separator_CXX=:
18112
18113 # Commands to make compiler produce verbose output that lists
18114 # what "hidden" libraries, object files and flags are used when
18115 # linking a shared library.
18116 #
18117 # There doesn't appear to be a way to prevent this compiler from
18118 # explicitly linking system object files so we need to strip them
18119 # from the output so that they don't get included in the library
18120 # dependencies.
18121 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'
18122 ;;
18123 *)
18124 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18125 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018126 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 +000018127
18128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18129 hardcode_libdir_separator_CXX=:
18130
18131 # Commands to make compiler produce verbose output that lists
18132 # what "hidden" libraries, object files and flags are used when
18133 # linking a shared library.
18134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18135
18136 else
18137 # FIXME: insert proper C++ library support
18138 ld_shlibs_CXX=no
18139 fi
18140 ;;
18141 esac
18142 ;;
18143 osf4* | osf5*)
18144 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018145 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018146 # Kuck and Associates, Inc. (KAI) C++ Compiler
18147
18148 # KCC will only create a shared library if the output file
18149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18150 # to its proper name (with version) after linking.
18151 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'
18152
18153 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18154 hardcode_libdir_separator_CXX=:
18155
18156 # Archives containing C++ object files must be created using
18157 # the KAI C++ compiler.
18158 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18159 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018160 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018161 # Rational C++ 2.4.1
18162 # FIXME: insert proper C++ library support
18163 ld_shlibs_CXX=no
18164 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018165 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018166 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018167 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 +000018168 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18169 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018170 $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 +000018171 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018172
18173 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18174 hardcode_libdir_separator_CXX=:
18175
18176 # Commands to make compiler produce verbose output that lists
18177 # what "hidden" libraries, object files and flags are used when
18178 # linking a shared library.
18179 #
18180 # There doesn't appear to be a way to prevent this compiler from
18181 # explicitly linking system object files so we need to strip them
18182 # from the output so that they don't get included in the library
18183 # dependencies.
18184 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'
18185 ;;
18186 *)
18187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018189 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 +000018190
18191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18192 hardcode_libdir_separator_CXX=:
18193
18194 # Commands to make compiler produce verbose output that lists
18195 # what "hidden" libraries, object files and flags are used when
18196 # linking a shared library.
18197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18198
18199 else
18200 # FIXME: insert proper C++ library support
18201 ld_shlibs_CXX=no
18202 fi
18203 ;;
18204 esac
18205 ;;
18206 psos*)
18207 # FIXME: insert proper C++ library support
18208 ld_shlibs_CXX=no
18209 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018210 sunos4*)
18211 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018212 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018213 # Sun C++ 4.x
18214 # FIXME: insert proper C++ library support
18215 ld_shlibs_CXX=no
18216 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018217 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018218 # Lucid
18219 # FIXME: insert proper C++ library support
18220 ld_shlibs_CXX=no
18221 ;;
18222 *)
18223 # FIXME: insert proper C++ library support
18224 ld_shlibs_CXX=no
18225 ;;
18226 esac
18227 ;;
18228 solaris*)
18229 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018230 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018231 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018232 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018233 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018234 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 +000018235 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 +000018236 $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 +000018237
18238 hardcode_libdir_flag_spec_CXX='-R$libdir'
18239 hardcode_shlibpath_var_CXX=no
18240 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018241 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018242 *)
18243 # The C++ compiler is used as linker so we must use $wl
18244 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018245 # linker. We must also pass each convience library through
18246 # to the system linker between allextract/defaultextract.
18247 # The C++ compiler will combine linker options so we
18248 # cannot just pass the convience library names through
18249 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018250 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018251 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 +000018252 ;;
18253 esac
18254 link_all_deplibs_CXX=yes
18255
Reid Spencera773bd52006-08-04 18:18:08 +000018256 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018257
18258 # Archives containing C++ object files must be created using
18259 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18260 # necessary to make sure instantiated templates are included
18261 # in the archive.
18262 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18263 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018264 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018265 # Green Hills C++ Compiler
18266 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18267
18268 # The C++ compiler must be used to create the archive.
18269 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18270 ;;
18271 *)
18272 # GNU C++ compiler with Solaris linker
18273 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18274 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18275 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018276 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 +000018277 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18278 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18279
John Criswell47fdd832003-07-14 16:52:07 +000018280 # Commands to make compiler produce verbose output that lists
18281 # what "hidden" libraries, object files and flags are used when
18282 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018283 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018284 else
18285 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18286 # platform.
18287 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 +000018288 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18289 $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 +000018290
18291 # Commands to make compiler produce verbose output that lists
18292 # what "hidden" libraries, object files and flags are used when
18293 # linking a shared library.
18294 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18295 fi
18296
18297 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18298 fi
18299 ;;
18300 esac
18301 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18303 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018304 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018305 hardcode_shlibpath_var_CXX=no
18306 runpath_var='LD_RUN_PATH'
18307
18308 case $cc_basename in
18309 CC*)
18310 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18311 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18312 ;;
18313 *)
18314 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18315 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18316 ;;
18317 esac
18318 ;;
18319 sysv5* | sco3.2v5* | sco5v6*)
18320 # Note: We can NOT use -z defs as we might desire, because we do not
18321 # link with -lc, and that would cause any symbols used from libc to
18322 # always be unresolved, which means just about no library would
18323 # ever link correctly. If we're not using GNU ld we use -z text
18324 # though, which does catch some bad symbols but isn't as heavy-handed
18325 # as -z defs.
18326 # For security reasons, it is highly recommended that you always
18327 # use absolute paths for naming shared libraries, and exclude the
18328 # DT_RUNPATH tag from executables and libraries. But doing so
18329 # requires that you compile everything twice, which is a pain.
18330 # So that behaviour is only enabled if SCOABSPATH is set to a
18331 # non-empty value in the environment. Most likely only useful for
18332 # creating official distributions of packages.
18333 # This is a hack until libtool officially supports absolute path
18334 # names for shared libraries.
18335 no_undefined_flag_CXX='${wl}-z,text'
18336 allow_undefined_flag_CXX='${wl}-z,nodefs'
18337 archive_cmds_need_lc_CXX=no
18338 hardcode_shlibpath_var_CXX=no
18339 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18340 hardcode_libdir_separator_CXX=':'
18341 link_all_deplibs_CXX=yes
18342 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18343 runpath_var='LD_RUN_PATH'
18344
18345 case $cc_basename in
18346 CC*)
18347 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18348 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18349 ;;
18350 *)
18351 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18352 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18353 ;;
18354 esac
John Criswell47fdd832003-07-14 16:52:07 +000018355 ;;
18356 tandem*)
18357 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018358 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018359 # NonStop-UX NCC 3.20
18360 # FIXME: insert proper C++ library support
18361 ld_shlibs_CXX=no
18362 ;;
18363 *)
18364 # FIXME: insert proper C++ library support
18365 ld_shlibs_CXX=no
18366 ;;
18367 esac
18368 ;;
18369 vxworks*)
18370 # FIXME: insert proper C++ library support
18371 ld_shlibs_CXX=no
18372 ;;
18373 *)
18374 # FIXME: insert proper C++ library support
18375 ld_shlibs_CXX=no
18376 ;;
18377esac
Reid Spencera773bd52006-08-04 18:18:08 +000018378{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18379echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018380test "$ld_shlibs_CXX" = no && can_build_shared=no
18381
18382GCC_CXX="$GXX"
18383LD_CXX="$LD"
18384
John Criswell47fdd832003-07-14 16:52:07 +000018385
18386cat > conftest.$ac_ext <<EOF
18387class Foo
18388{
18389public:
18390 Foo (void) { a = 0; }
18391private:
18392 int a;
18393};
18394EOF
18395
18396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18397 (eval $ac_compile) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; then
18401 # Parse the compiler output and extract the necessary
18402 # objects, libraries and library flags.
18403
18404 # Sentinel used to keep track of whether or not we are before
18405 # the conftest object file.
18406 pre_test_object_deps_done=no
18407
18408 # The `*' in the case matches for architectures that use `case' in
18409 # $output_verbose_cmd can trigger glob expansion during the loop
18410 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000018411 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000018412
18413 for p in `eval $output_verbose_link_cmd`; do
18414 case $p in
18415
18416 -L* | -R* | -l*)
18417 # Some compilers place space between "-{L,R}" and the path.
18418 # Remove the space.
18419 if test $p = "-L" \
18420 || test $p = "-R"; then
18421 prev=$p
18422 continue
18423 else
18424 prev=
18425 fi
18426
18427 if test "$pre_test_object_deps_done" = no; then
18428 case $p in
18429 -L* | -R*)
18430 # Internal compiler library paths should come after those
18431 # provided the user. The postdeps already come after the
18432 # user supplied libs so there is no need to process them.
18433 if test -z "$compiler_lib_search_path_CXX"; then
18434 compiler_lib_search_path_CXX="${prev}${p}"
18435 else
18436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18437 fi
18438 ;;
18439 # The "-l" case would never come before the object being
18440 # linked, so don't bother handling this case.
18441 esac
18442 else
18443 if test -z "$postdeps_CXX"; then
18444 postdeps_CXX="${prev}${p}"
18445 else
18446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18447 fi
18448 fi
18449 ;;
18450
18451 *.$objext)
18452 # This assumes that the test object file only shows up
18453 # once in the compiler output.
18454 if test "$p" = "conftest.$objext"; then
18455 pre_test_object_deps_done=yes
18456 continue
18457 fi
18458
18459 if test "$pre_test_object_deps_done" = no; then
18460 if test -z "$predep_objects_CXX"; then
18461 predep_objects_CXX="$p"
18462 else
18463 predep_objects_CXX="$predep_objects_CXX $p"
18464 fi
18465 else
18466 if test -z "$postdep_objects_CXX"; then
18467 postdep_objects_CXX="$p"
18468 else
18469 postdep_objects_CXX="$postdep_objects_CXX $p"
18470 fi
18471 fi
18472 ;;
18473
18474 *) ;; # Ignore the rest.
18475
18476 esac
18477 done
18478
18479 # Clean up.
18480 rm -f a.out a.exe
18481else
18482 echo "libtool.m4: error: problem compiling CXX test program"
18483fi
18484
18485$rm -f confest.$objext
18486
Reid Spencera773bd52006-08-04 18:18:08 +000018487# PORTME: override above test on systems where it is broken
18488case $host_os in
18489interix3*)
18490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18491 # hack all around it, let's just trust "g++" to DTRT.
18492 predep_objects_CXX=
18493 postdep_objects_CXX=
18494 postdeps_CXX=
18495 ;;
18496
18497solaris*)
18498 case $cc_basename in
18499 CC*)
18500 # Adding this requires a known-good setup of shared libraries for
18501 # Sun compiler versions before 5.6, else PIC objects from an old
18502 # archive will be linked into the output, leading to subtle bugs.
18503 postdeps_CXX='-lCstd -lCrun'
18504 ;;
18505 esac
18506 ;;
18507esac
18508
18509
John Criswell47fdd832003-07-14 16:52:07 +000018510case " $postdeps_CXX " in
18511*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18512esac
18513
18514lt_prog_compiler_wl_CXX=
18515lt_prog_compiler_pic_CXX=
18516lt_prog_compiler_static_CXX=
18517
Reid Spencera773bd52006-08-04 18:18:08 +000018518{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18519echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018520
18521 # C++ specific cases for pic, static, wl, etc.
18522 if test "$GXX" = yes; then
18523 lt_prog_compiler_wl_CXX='-Wl,'
18524 lt_prog_compiler_static_CXX='-static'
18525
18526 case $host_os in
18527 aix*)
18528 # All AIX code is PIC.
18529 if test "$host_cpu" = ia64; then
18530 # AIX 5 now supports IA64 processor
18531 lt_prog_compiler_static_CXX='-Bstatic'
18532 fi
18533 ;;
18534 amigaos*)
18535 # FIXME: we need at least 68020 code to build shared libraries, but
18536 # adding the `-m68020' flag to GCC prevents building anything better,
18537 # like `-m68040'.
18538 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18539 ;;
18540 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18541 # PIC is the default for these OSes.
18542 ;;
18543 mingw* | os2* | pw32*)
18544 # This hack is so that the source file can tell whether it is being
18545 # built for inclusion in a dll (and should export symbols for example).
18546 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18547 ;;
18548 darwin* | rhapsody*)
18549 # PIC is the default on this platform
18550 # Common symbols not allowed in MH_DYLIB files
18551 lt_prog_compiler_pic_CXX='-fno-common'
18552 ;;
18553 *djgpp*)
18554 # DJGPP does not support shared libraries at all
18555 lt_prog_compiler_pic_CXX=
18556 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018557 interix3*)
18558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18559 # Instead, we relocate shared libraries at runtime.
18560 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018561 sysv4*MP*)
18562 if test -d /usr/nec; then
18563 lt_prog_compiler_pic_CXX=-Kconform_pic
18564 fi
18565 ;;
18566 hpux*)
18567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18568 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000018569 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018570 hppa*64*|ia64*)
18571 ;;
18572 *)
18573 lt_prog_compiler_pic_CXX='-fPIC'
18574 ;;
18575 esac
18576 ;;
18577 *)
18578 lt_prog_compiler_pic_CXX='-fPIC'
18579 ;;
18580 esac
18581 else
18582 case $host_os in
18583 aix4* | aix5*)
18584 # All AIX code is PIC.
18585 if test "$host_cpu" = ia64; then
18586 # AIX 5 now supports IA64 processor
18587 lt_prog_compiler_static_CXX='-Bstatic'
18588 else
18589 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18590 fi
18591 ;;
18592 chorus*)
18593 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018594 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000018595 # Green Hills C++ Compiler
18596 # _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"
18597 ;;
18598 esac
18599 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018600 darwin*)
18601 # PIC is the default on this platform
18602 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000018603 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018604 xlc*)
18605 lt_prog_compiler_pic_CXX='-qnocommon'
18606 lt_prog_compiler_wl_CXX='-Wl,'
18607 ;;
18608 esac
18609 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018610 dgux*)
18611 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018612 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018613 lt_prog_compiler_pic_CXX='-KPIC'
18614 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018615 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018616 # Green Hills C++ Compiler
18617 lt_prog_compiler_pic_CXX='-pic'
18618 ;;
18619 *)
18620 ;;
18621 esac
18622 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018623 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018624 # FreeBSD uses GNU C++
18625 ;;
18626 hpux9* | hpux10* | hpux11*)
18627 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018628 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018629 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018630 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000018631 if test "$host_cpu" != ia64; then
18632 lt_prog_compiler_pic_CXX='+Z'
18633 fi
18634 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018635 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018636 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000018637 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18638 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000018639 hppa*64*|ia64*)
18640 # +Z the default
18641 ;;
18642 *)
18643 lt_prog_compiler_pic_CXX='+Z'
18644 ;;
18645 esac
18646 ;;
18647 *)
18648 ;;
18649 esac
18650 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018651 interix*)
18652 # This is c89, which is MS Visual C++ (no shared libs)
18653 # Anyone wants to do a port?
18654 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018655 irix5* | irix6* | nonstopux*)
18656 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018657 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018658 lt_prog_compiler_wl_CXX='-Wl,'
18659 lt_prog_compiler_static_CXX='-non_shared'
18660 # CC pic flag -KPIC is the default.
18661 ;;
18662 *)
18663 ;;
18664 esac
18665 ;;
18666 linux*)
18667 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018668 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018669 # KAI C++ Compiler
18670 lt_prog_compiler_wl_CXX='--backend -Wl,'
18671 lt_prog_compiler_pic_CXX='-fPIC'
18672 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018673 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018674 # Intel C++
18675 lt_prog_compiler_wl_CXX='-Wl,'
18676 lt_prog_compiler_pic_CXX='-KPIC'
18677 lt_prog_compiler_static_CXX='-static'
18678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018679 pgCC*)
18680 # Portland Group C++ compiler.
18681 lt_prog_compiler_wl_CXX='-Wl,'
18682 lt_prog_compiler_pic_CXX='-fpic'
18683 lt_prog_compiler_static_CXX='-Bstatic'
18684 ;;
18685 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018686 # Compaq C++
18687 # Make sure the PIC flag is empty. It appears that all Alpha
18688 # Linux and Compaq Tru64 Unix objects are PIC.
18689 lt_prog_compiler_pic_CXX=
18690 lt_prog_compiler_static_CXX='-non_shared'
18691 ;;
18692 *)
18693 ;;
18694 esac
18695 ;;
18696 lynxos*)
18697 ;;
18698 m88k*)
18699 ;;
18700 mvs*)
18701 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018702 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018703 lt_prog_compiler_pic_CXX='-W c,exportall'
18704 ;;
18705 *)
18706 ;;
18707 esac
18708 ;;
18709 netbsd*)
18710 ;;
18711 osf3* | osf4* | osf5*)
18712 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018713 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018714 lt_prog_compiler_wl_CXX='--backend -Wl,'
18715 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018716 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018717 # Rational C++ 2.4.1
18718 lt_prog_compiler_pic_CXX='-pic'
18719 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018720 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018721 # Digital/Compaq C++
18722 lt_prog_compiler_wl_CXX='-Wl,'
18723 # Make sure the PIC flag is empty. It appears that all Alpha
18724 # Linux and Compaq Tru64 Unix objects are PIC.
18725 lt_prog_compiler_pic_CXX=
18726 lt_prog_compiler_static_CXX='-non_shared'
18727 ;;
18728 *)
18729 ;;
18730 esac
18731 ;;
18732 psos*)
18733 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018734 solaris*)
18735 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018736 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018737 # Sun C++ 4.2, 5.x and Centerline C++
18738 lt_prog_compiler_pic_CXX='-KPIC'
18739 lt_prog_compiler_static_CXX='-Bstatic'
18740 lt_prog_compiler_wl_CXX='-Qoption ld '
18741 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018742 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018743 # Green Hills C++ Compiler
18744 lt_prog_compiler_pic_CXX='-PIC'
18745 ;;
18746 *)
18747 ;;
18748 esac
18749 ;;
18750 sunos4*)
18751 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018752 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018753 # Sun C++ 4.x
18754 lt_prog_compiler_pic_CXX='-pic'
18755 lt_prog_compiler_static_CXX='-Bstatic'
18756 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018757 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018758 # Lucid
18759 lt_prog_compiler_pic_CXX='-pic'
18760 ;;
18761 *)
18762 ;;
18763 esac
18764 ;;
18765 tandem*)
18766 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018767 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018768 # NonStop-UX NCC 3.20
18769 lt_prog_compiler_pic_CXX='-KPIC'
18770 ;;
18771 *)
18772 ;;
18773 esac
18774 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018775 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18776 case $cc_basename in
18777 CC*)
18778 lt_prog_compiler_wl_CXX='-Wl,'
18779 lt_prog_compiler_pic_CXX='-KPIC'
18780 lt_prog_compiler_static_CXX='-Bstatic'
18781 ;;
18782 esac
John Criswell47fdd832003-07-14 16:52:07 +000018783 ;;
18784 vxworks*)
18785 ;;
18786 *)
18787 lt_prog_compiler_can_build_shared_CXX=no
18788 ;;
18789 esac
18790 fi
18791
Reid Spencera773bd52006-08-04 18:18:08 +000018792{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18793echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018794
18795#
18796# Check to make sure the PIC flag actually works.
18797#
18798if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018799
Reid Spencera773bd52006-08-04 18:18:08 +000018800{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18801echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018802if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804else
18805 lt_prog_compiler_pic_works_CXX=no
18806 ac_outfile=conftest.$ac_objext
18807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18808 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18809 # Insert the option either (1) after the last *FLAGS variable, or
18810 # (2) before a word containing "conftest.", or (3) at the end.
18811 # Note that $ac_compile itself does not contain backslashes and begins
18812 # with a dollar sign (not a hyphen), so the echo should work correctly.
18813 # The option is referenced via a variable to avoid confusing sed.
18814 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18817 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky2ab1d862009-01-20 00:52:24 +000018818 (eval echo "\"\$as_me:18818: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018819 (eval "$lt_compile" 2>conftest.err)
18820 ac_status=$?
18821 cat conftest.err >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000018822 echo "$as_me:18822: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018823 if (exit $ac_status) && test -s "$ac_outfile"; then
18824 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000018825 # So say no if there are warnings other than the usual output.
18826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018829 lt_prog_compiler_pic_works_CXX=yes
18830 fi
18831 fi
18832 $rm conftest*
18833
18834fi
Reid Spencera773bd52006-08-04 18:18:08 +000018835{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18836echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018837
18838if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18839 case $lt_prog_compiler_pic_CXX in
18840 "" | " "*) ;;
18841 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18842 esac
18843else
18844 lt_prog_compiler_pic_CXX=
18845 lt_prog_compiler_can_build_shared_CXX=no
18846fi
18847
18848fi
Reid Spencera773bd52006-08-04 18:18:08 +000018849case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000018850 # For platforms which do not support PIC, -DPIC is meaningless:
18851 *djgpp*)
18852 lt_prog_compiler_pic_CXX=
18853 ;;
18854 *)
18855 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18856 ;;
18857esac
18858
Reid Spencera773bd52006-08-04 18:18:08 +000018859#
18860# Check to make sure the static flag actually works.
18861#
18862wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18863{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18864echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18865if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18867else
18868 lt_prog_compiler_static_works_CXX=no
18869 save_LDFLAGS="$LDFLAGS"
18870 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18871 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18873 # The linker can only warn and ignore the option if not recognized
18874 # So say no if there are warnings
18875 if test -s conftest.err; then
18876 # Append any errors to the config.log.
18877 cat conftest.err 1>&5
18878 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18880 if diff conftest.exp conftest.er2 >/dev/null; then
18881 lt_prog_compiler_static_works_CXX=yes
18882 fi
18883 else
18884 lt_prog_compiler_static_works_CXX=yes
18885 fi
18886 fi
18887 $rm conftest*
18888 LDFLAGS="$save_LDFLAGS"
18889
18890fi
18891{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18892echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18893
18894if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18895 :
18896else
18897 lt_prog_compiler_static_CXX=
18898fi
18899
18900
18901{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18902echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018903if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905else
18906 lt_cv_prog_compiler_c_o_CXX=no
18907 $rm -r conftest 2>/dev/null
18908 mkdir conftest
18909 cd conftest
18910 mkdir out
18911 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18912
John Criswell47fdd832003-07-14 16:52:07 +000018913 lt_compiler_flag="-o out/conftest2.$ac_objext"
18914 # Insert the option either (1) after the last *FLAGS variable, or
18915 # (2) before a word containing "conftest.", or (3) at the end.
18916 # Note that $ac_compile itself does not contain backslashes and begins
18917 # with a dollar sign (not a hyphen), so the echo should work correctly.
18918 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000018919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000018920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18921 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky2ab1d862009-01-20 00:52:24 +000018922 (eval echo "\"\$as_me:18922: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018923 (eval "$lt_compile" 2>out/conftest.err)
18924 ac_status=$?
18925 cat out/conftest.err >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000018926 echo "$as_me:18926: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18928 then
18929 # The compiler can only warn and ignore the option if not recognized
18930 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000018931 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000018934 lt_cv_prog_compiler_c_o_CXX=yes
18935 fi
18936 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018937 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018938 $rm conftest*
18939 # SGI C++ compiler will create directory out/ii_files/ for
18940 # template instantiation
18941 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18942 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018943 cd ..
18944 rmdir conftest
18945 $rm conftest*
18946
18947fi
Reid Spencera773bd52006-08-04 18:18:08 +000018948{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18949echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018950
18951
18952hard_links="nottested"
18953if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18954 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000018955 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18956echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018957 hard_links=yes
18958 $rm conftest*
18959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18960 touch conftest.a
18961 ln conftest.a conftest.b 2>&5 || hard_links=no
18962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000018963 { echo "$as_me:$LINENO: result: $hard_links" >&5
18964echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018965 if test "$hard_links" = no; then
18966 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18967echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18968 need_locks=warn
18969 fi
18970else
18971 need_locks=no
18972fi
18973
Reid Spencera773bd52006-08-04 18:18:08 +000018974{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18975echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018976
18977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18978 case $host_os in
18979 aix4* | aix5*)
18980 # If we're using GNU nm, then we don't want the "-C" option.
18981 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18982 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18983 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'
18984 else
18985 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'
18986 fi
18987 ;;
18988 pw32*)
18989 export_symbols_cmds_CXX="$ltdll_cmds"
18990 ;;
18991 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000018992 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 +000018993 ;;
18994 *)
18995 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18996 ;;
18997 esac
18998
Reid Spencera773bd52006-08-04 18:18:08 +000018999{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19000echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019001test "$ld_shlibs_CXX" = no && can_build_shared=no
19002
John Criswell47fdd832003-07-14 16:52:07 +000019003#
19004# Do we need to explicitly link libc?
19005#
19006case "x$archive_cmds_need_lc_CXX" in
19007x|xyes)
19008 # Assume -lc should be added
19009 archive_cmds_need_lc_CXX=yes
19010
19011 if test "$enable_shared" = yes && test "$GCC" = yes; then
19012 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019013 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019014 # FIXME: we may have to deal with multi-command sequences.
19015 ;;
19016 '$CC '*)
19017 # Test whether the compiler implicitly links with -lc since on some
19018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19019 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019020 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19021echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019022 $rm conftest*
19023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19024
19025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19026 (eval $ac_compile) 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } 2>conftest.err; then
19030 soname=conftest
19031 lib=conftest
19032 libobjs=conftest.$ac_objext
19033 deplibs=
19034 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019035 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019036 compiler_flags=-v
19037 linker_flags=-v
19038 verstring=
19039 output_objdir=.
19040 libname=conftest
19041 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19042 allow_undefined_flag_CXX=
19043 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19044 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }
19048 then
19049 archive_cmds_need_lc_CXX=no
19050 else
19051 archive_cmds_need_lc_CXX=yes
19052 fi
19053 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19054 else
19055 cat conftest.err 1>&5
19056 fi
19057 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019058 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19059echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019060 ;;
19061 esac
19062 fi
19063 ;;
19064esac
19065
Reid Spencera773bd52006-08-04 18:18:08 +000019066{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19067echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019068library_names_spec=
19069libname_spec='lib$name'
19070soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019071shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019072postinstall_cmds=
19073postuninstall_cmds=
19074finish_cmds=
19075finish_eval=
19076shlibpath_var=
19077shlibpath_overrides_runpath=unknown
19078version_type=none
19079dynamic_linker="$host_os ld.so"
19080sys_lib_dlsearch_path_spec="/lib /usr/lib"
19081if test "$GCC" = yes; then
19082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19083 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19084 # if the path contains ";" then we assume it to be the separator
19085 # otherwise default to the standard path separator (i.e. ":") - it is
19086 # assumed that no part of a normal pathname contains ";" but that should
19087 # okay in the real world where ";" in dirpaths is itself problematic.
19088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19089 else
19090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19091 fi
19092else
19093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19094fi
19095need_lib_prefix=unknown
19096hardcode_into_libs=no
19097
19098# when you set need_version to no, make sure it does not cause -set_version
19099# flags to be left without arguments
19100need_version=unknown
19101
19102case $host_os in
19103aix3*)
19104 version_type=linux
19105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19106 shlibpath_var=LIBPATH
19107
19108 # AIX 3 has no versioning support, so we append a major version to the name.
19109 soname_spec='${libname}${release}${shared_ext}$major'
19110 ;;
19111
19112aix4* | aix5*)
19113 version_type=linux
19114 need_lib_prefix=no
19115 need_version=no
19116 hardcode_into_libs=yes
19117 if test "$host_cpu" = ia64; then
19118 # AIX 5 supports IA64
19119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19120 shlibpath_var=LD_LIBRARY_PATH
19121 else
19122 # With GCC up to 2.95.x, collect2 would create an import file
19123 # for dependence libraries. The import file would start with
19124 # the line `#! .'. This would cause the generated library to
19125 # depend on `.', always an invalid library. This was fixed in
19126 # development snapshots of GCC prior to 3.0.
19127 case $host_os in
19128 aix4 | aix4.[01] | aix4.[01].*)
19129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19130 echo ' yes '
19131 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19132 :
19133 else
19134 can_build_shared=no
19135 fi
19136 ;;
19137 esac
19138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19139 # soname into executable. Probably we can add versioning support to
19140 # collect2, so additional links can be useful in future.
19141 if test "$aix_use_runtimelinking" = yes; then
19142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19143 # instead of lib<name>.a to let people know that these are not
19144 # typical AIX shared libraries.
19145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19146 else
19147 # We preserve .a as extension for shared libraries through AIX4.2
19148 # and later when we are not doing run time linking.
19149 library_names_spec='${libname}${release}.a $libname.a'
19150 soname_spec='${libname}${release}${shared_ext}$major'
19151 fi
19152 shlibpath_var=LIBPATH
19153 fi
19154 ;;
19155
19156amigaos*)
19157 library_names_spec='$libname.ixlibrary $libname.a'
19158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019159 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 +000019160 ;;
19161
19162beos*)
19163 library_names_spec='${libname}${shared_ext}'
19164 dynamic_linker="$host_os ld.so"
19165 shlibpath_var=LIBRARY_PATH
19166 ;;
19167
Reid Spencer2706f8c2004-09-19 23:53:36 +000019168bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019169 version_type=linux
19170 need_version=no
19171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19172 soname_spec='${libname}${release}${shared_ext}$major'
19173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19174 shlibpath_var=LD_LIBRARY_PATH
19175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19177 # the default ld.so.conf also contains /usr/contrib/lib and
19178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19179 # libtool to hard-code these into programs
19180 ;;
19181
19182cygwin* | mingw* | pw32*)
19183 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019184 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019185 need_version=no
19186 need_lib_prefix=no
19187
19188 case $GCC,$host_os in
19189 yes,cygwin* | yes,mingw* | yes,pw32*)
19190 library_names_spec='$libname.dll.a'
19191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019192 postinstall_cmds='base_file=`basename \${file}`~
19193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19194 dldir=$destdir/`dirname \$dlpath`~
19195 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019196 $install_prog $dir/$dlname \$dldir/$dlname~
19197 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19199 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019200 $rm \$dlpath'
19201 shlibpath_overrides_runpath=yes
19202
19203 case $host_os in
19204 cygwin*)
19205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19206 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 +000019207 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019208 ;;
19209 mingw*)
19210 # MinGW DLLs use traditional 'lib' prefix
19211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19213 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19214 # It is most probably a Windows format PATH printed by
19215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19216 # path with ; separators, and with drive letters. We can handle the
19217 # drive letters (cygwin fileutils understands them), so leave them,
19218 # especially as we might pass files found there to a mingw objdump,
19219 # which wouldn't understand a cygwinified path. Ahh.
19220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19221 else
19222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19223 fi
19224 ;;
19225 pw32*)
19226 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019227 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 +000019228 ;;
19229 esac
19230 ;;
19231
19232 *)
19233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19234 ;;
19235 esac
19236 dynamic_linker='Win32 ld.exe'
19237 # FIXME: first we should search . and the directory the executable is in
19238 shlibpath_var=PATH
19239 ;;
19240
19241darwin* | rhapsody*)
19242 dynamic_linker="$host_os dyld"
19243 version_type=darwin
19244 need_lib_prefix=no
19245 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019246 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019247 soname_spec='${libname}${release}${major}$shared_ext'
19248 shlibpath_overrides_runpath=yes
19249 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000019250 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000019251 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019252 if test "$GCC" = yes; then
19253 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"`
19254 else
19255 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019256 fi
19257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19258 ;;
19259
19260dgux*)
19261 version_type=linux
19262 need_lib_prefix=no
19263 need_version=no
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19265 soname_spec='${libname}${release}${shared_ext}$major'
19266 shlibpath_var=LD_LIBRARY_PATH
19267 ;;
19268
19269freebsd1*)
19270 dynamic_linker=no
19271 ;;
19272
Reid Spencer2706f8c2004-09-19 23:53:36 +000019273kfreebsd*-gnu)
19274 version_type=linux
19275 need_lib_prefix=no
19276 need_version=no
19277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19278 soname_spec='${libname}${release}${shared_ext}$major'
19279 shlibpath_var=LD_LIBRARY_PATH
19280 shlibpath_overrides_runpath=no
19281 hardcode_into_libs=yes
19282 dynamic_linker='GNU ld.so'
19283 ;;
19284
Reid Spencera773bd52006-08-04 18:18:08 +000019285freebsd* | dragonfly*)
19286 # DragonFly does not have aout. When/if they implement a new
19287 # versioning mechanism, adjust this.
19288 if test -x /usr/bin/objformat; then
19289 objformat=`/usr/bin/objformat`
19290 else
19291 case $host_os in
19292 freebsd[123]*) objformat=aout ;;
19293 *) objformat=elf ;;
19294 esac
19295 fi
John Criswell47fdd832003-07-14 16:52:07 +000019296 version_type=freebsd-$objformat
19297 case $version_type in
19298 freebsd-elf*)
19299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19300 need_version=no
19301 need_lib_prefix=no
19302 ;;
19303 freebsd-*)
19304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19305 need_version=yes
19306 ;;
19307 esac
19308 shlibpath_var=LD_LIBRARY_PATH
19309 case $host_os in
19310 freebsd2*)
19311 shlibpath_overrides_runpath=yes
19312 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019313 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019314 shlibpath_overrides_runpath=yes
19315 hardcode_into_libs=yes
19316 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019319 shlibpath_overrides_runpath=no
19320 hardcode_into_libs=yes
19321 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019322 freebsd*) # from 4.6 on
19323 shlibpath_overrides_runpath=yes
19324 hardcode_into_libs=yes
19325 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019326 esac
19327 ;;
19328
19329gnu*)
19330 version_type=linux
19331 need_lib_prefix=no
19332 need_version=no
19333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19334 soname_spec='${libname}${release}${shared_ext}$major'
19335 shlibpath_var=LD_LIBRARY_PATH
19336 hardcode_into_libs=yes
19337 ;;
19338
19339hpux9* | hpux10* | hpux11*)
19340 # Give a soname corresponding to the major version so that dld.sl refuses to
19341 # link against other versions.
19342 version_type=sunos
19343 need_lib_prefix=no
19344 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019345 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019346 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019347 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019348 hardcode_into_libs=yes
19349 dynamic_linker="$host_os dld.so"
19350 shlibpath_var=LD_LIBRARY_PATH
19351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19353 soname_spec='${libname}${release}${shared_ext}$major'
19354 if test "X$HPUX_IA64_MODE" = X32; then
19355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19356 else
19357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19358 fi
19359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19360 ;;
19361 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019362 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019363 hardcode_into_libs=yes
19364 dynamic_linker="$host_os dld.sl"
19365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19368 soname_spec='${libname}${release}${shared_ext}$major'
19369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19371 ;;
19372 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019373 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019374 dynamic_linker="$host_os dld.sl"
19375 shlibpath_var=SHLIB_PATH
19376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19378 soname_spec='${libname}${release}${shared_ext}$major'
19379 ;;
19380 esac
19381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19382 postinstall_cmds='chmod 555 $lib'
19383 ;;
19384
Reid Spencera773bd52006-08-04 18:18:08 +000019385interix3*)
19386 version_type=linux
19387 need_lib_prefix=no
19388 need_version=no
19389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19390 soname_spec='${libname}${release}${shared_ext}$major'
19391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19392 shlibpath_var=LD_LIBRARY_PATH
19393 shlibpath_overrides_runpath=no
19394 hardcode_into_libs=yes
19395 ;;
19396
John Criswell47fdd832003-07-14 16:52:07 +000019397irix5* | irix6* | nonstopux*)
19398 case $host_os in
19399 nonstopux*) version_type=nonstopux ;;
19400 *)
19401 if test "$lt_cv_prog_gnu_ld" = yes; then
19402 version_type=linux
19403 else
19404 version_type=irix
19405 fi ;;
19406 esac
19407 need_lib_prefix=no
19408 need_version=no
19409 soname_spec='${libname}${release}${shared_ext}$major'
19410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19411 case $host_os in
19412 irix5* | nonstopux*)
19413 libsuff= shlibsuff=
19414 ;;
19415 *)
19416 case $LD in # libtool.m4 will add one of these switches to LD
19417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19418 libsuff= shlibsuff= libmagic=32-bit;;
19419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19420 libsuff=32 shlibsuff=N32 libmagic=N32;;
19421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19423 *) libsuff= shlibsuff= libmagic=never-match;;
19424 esac
19425 ;;
19426 esac
19427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19428 shlibpath_overrides_runpath=no
19429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19431 hardcode_into_libs=yes
19432 ;;
19433
19434# No shared lib support for Linux oldld, aout, or coff.
19435linux*oldld* | linux*aout* | linux*coff*)
19436 dynamic_linker=no
19437 ;;
19438
19439# This must be Linux ELF.
19440linux*)
19441 version_type=linux
19442 need_lib_prefix=no
19443 need_version=no
19444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19445 soname_spec='${libname}${release}${shared_ext}$major'
19446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19447 shlibpath_var=LD_LIBRARY_PATH
19448 shlibpath_overrides_runpath=no
19449 # This implies no fast_install, which is unacceptable.
19450 # Some rework will be needed to allow for fast_install
19451 # before this can be enabled.
19452 hardcode_into_libs=yes
19453
Reid Spencer2706f8c2004-09-19 23:53:36 +000019454 # Append ld.so.conf contents to the search path
19455 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000019456 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 +000019457 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19458 fi
19459
John Criswell47fdd832003-07-14 16:52:07 +000019460 # We used to test for /lib/ld.so.1 and disable shared libraries on
19461 # powerpc, because MkLinux only supported shared libraries with the
19462 # GNU dynamic linker. Since this was broken with cross compilers,
19463 # most powerpc-linux boxes support dynamic linking these days and
19464 # people can always --disable-shared, the test was removed, and we
19465 # assume the GNU/Linux dynamic linker is in use.
19466 dynamic_linker='GNU/Linux ld.so'
19467 ;;
19468
Reid Spencer2706f8c2004-09-19 23:53:36 +000019469knetbsd*-gnu)
19470 version_type=linux
19471 need_lib_prefix=no
19472 need_version=no
19473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19474 soname_spec='${libname}${release}${shared_ext}$major'
19475 shlibpath_var=LD_LIBRARY_PATH
19476 shlibpath_overrides_runpath=no
19477 hardcode_into_libs=yes
19478 dynamic_linker='GNU ld.so'
19479 ;;
19480
John Criswell47fdd832003-07-14 16:52:07 +000019481netbsd*)
19482 version_type=sunos
19483 need_lib_prefix=no
19484 need_version=no
19485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19488 dynamic_linker='NetBSD (a.out) ld.so'
19489 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000019491 soname_spec='${libname}${release}${shared_ext}$major'
19492 dynamic_linker='NetBSD ld.elf_so'
19493 fi
19494 shlibpath_var=LD_LIBRARY_PATH
19495 shlibpath_overrides_runpath=yes
19496 hardcode_into_libs=yes
19497 ;;
19498
19499newsos6)
19500 version_type=linux
19501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19502 shlibpath_var=LD_LIBRARY_PATH
19503 shlibpath_overrides_runpath=yes
19504 ;;
19505
Reid Spencer2706f8c2004-09-19 23:53:36 +000019506nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000019507 version_type=linux
19508 need_lib_prefix=no
19509 need_version=no
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19511 soname_spec='${libname}${release}${shared_ext}$major'
19512 shlibpath_var=LD_LIBRARY_PATH
19513 shlibpath_overrides_runpath=yes
19514 ;;
19515
19516openbsd*)
19517 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000019518 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019519 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000019520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19521 case $host_os in
19522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19523 *) need_version=no ;;
19524 esac
John Criswell47fdd832003-07-14 16:52:07 +000019525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19527 shlibpath_var=LD_LIBRARY_PATH
19528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19529 case $host_os in
19530 openbsd2.[89] | openbsd2.[89].*)
19531 shlibpath_overrides_runpath=no
19532 ;;
19533 *)
19534 shlibpath_overrides_runpath=yes
19535 ;;
19536 esac
19537 else
19538 shlibpath_overrides_runpath=yes
19539 fi
19540 ;;
19541
19542os2*)
19543 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019544 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019545 need_lib_prefix=no
19546 library_names_spec='$libname${shared_ext} $libname.a'
19547 dynamic_linker='OS/2 ld.exe'
19548 shlibpath_var=LIBPATH
19549 ;;
19550
19551osf3* | osf4* | osf5*)
19552 version_type=osf
19553 need_lib_prefix=no
19554 need_version=no
19555 soname_spec='${libname}${release}${shared_ext}$major'
19556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557 shlibpath_var=LD_LIBRARY_PATH
19558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19560 ;;
19561
John Criswell47fdd832003-07-14 16:52:07 +000019562solaris*)
19563 version_type=linux
19564 need_lib_prefix=no
19565 need_version=no
19566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19567 soname_spec='${libname}${release}${shared_ext}$major'
19568 shlibpath_var=LD_LIBRARY_PATH
19569 shlibpath_overrides_runpath=yes
19570 hardcode_into_libs=yes
19571 # ldd complains unless libraries are executable
19572 postinstall_cmds='chmod +x $lib'
19573 ;;
19574
19575sunos4*)
19576 version_type=sunos
19577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19579 shlibpath_var=LD_LIBRARY_PATH
19580 shlibpath_overrides_runpath=yes
19581 if test "$with_gnu_ld" = yes; then
19582 need_lib_prefix=no
19583 fi
19584 need_version=yes
19585 ;;
19586
Reid Spencera773bd52006-08-04 18:18:08 +000019587sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000019588 version_type=linux
19589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590 soname_spec='${libname}${release}${shared_ext}$major'
19591 shlibpath_var=LD_LIBRARY_PATH
19592 case $host_vendor in
19593 sni)
19594 shlibpath_overrides_runpath=no
19595 need_lib_prefix=no
19596 export_dynamic_flag_spec='${wl}-Blargedynsym'
19597 runpath_var=LD_RUN_PATH
19598 ;;
19599 siemens)
19600 need_lib_prefix=no
19601 ;;
19602 motorola)
19603 need_lib_prefix=no
19604 need_version=no
19605 shlibpath_overrides_runpath=no
19606 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19607 ;;
19608 esac
19609 ;;
19610
19611sysv4*MP*)
19612 if test -d /usr/nec ;then
19613 version_type=linux
19614 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19615 soname_spec='$libname${shared_ext}.$major'
19616 shlibpath_var=LD_LIBRARY_PATH
19617 fi
19618 ;;
19619
Reid Spencera773bd52006-08-04 18:18:08 +000019620sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19621 version_type=freebsd-elf
19622 need_lib_prefix=no
19623 need_version=no
19624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19625 soname_spec='${libname}${release}${shared_ext}$major'
19626 shlibpath_var=LD_LIBRARY_PATH
19627 hardcode_into_libs=yes
19628 if test "$with_gnu_ld" = yes; then
19629 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19630 shlibpath_overrides_runpath=no
19631 else
19632 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19633 shlibpath_overrides_runpath=yes
19634 case $host_os in
19635 sco3.2v5*)
19636 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19637 ;;
19638 esac
19639 fi
19640 sys_lib_dlsearch_path_spec='/usr/lib'
19641 ;;
19642
John Criswell47fdd832003-07-14 16:52:07 +000019643uts4*)
19644 version_type=linux
19645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19646 soname_spec='${libname}${release}${shared_ext}$major'
19647 shlibpath_var=LD_LIBRARY_PATH
19648 ;;
19649
19650*)
19651 dynamic_linker=no
19652 ;;
19653esac
Reid Spencera773bd52006-08-04 18:18:08 +000019654{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19655echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019656test "$dynamic_linker" = no && can_build_shared=no
19657
Reid Spencera773bd52006-08-04 18:18:08 +000019658variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19659if test "$GCC" = yes; then
19660 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19661fi
19662
19663{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19664echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019665hardcode_action_CXX=
19666if test -n "$hardcode_libdir_flag_spec_CXX" || \
19667 test -n "$runpath_var_CXX" || \
19668 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19669
19670 # We can hardcode non-existant directories.
19671 if test "$hardcode_direct_CXX" != no &&
19672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19673 # have to relink, otherwise we might link with an installed library
19674 # when we should be linking with a yet-to-be-installed one
19675 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19676 test "$hardcode_minus_L_CXX" != no; then
19677 # Linking always hardcodes the temporary library directory.
19678 hardcode_action_CXX=relink
19679 else
19680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19681 hardcode_action_CXX=immediate
19682 fi
19683else
19684 # We cannot hardcode anything, or else we can only hardcode existing
19685 # directories.
19686 hardcode_action_CXX=unsupported
19687fi
Reid Spencera773bd52006-08-04 18:18:08 +000019688{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19689echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000019690
19691if test "$hardcode_action_CXX" = relink; then
19692 # Fast installation is not supported
19693 enable_fast_install=no
19694elif test "$shlibpath_overrides_runpath" = yes ||
19695 test "$enable_shared" = no; then
19696 # Fast installation is not necessary
19697 enable_fast_install=needless
19698fi
19699
John Criswell47fdd832003-07-14 16:52:07 +000019700
19701# The else clause should only fire when bootstrapping the
19702# libtool distribution, otherwise you forgot to ship ltmain.sh
19703# with your package, and you will get complaints that there are
19704# no rules to generate ltmain.sh.
19705if test -f "$ltmain"; then
19706 # See if we are running on zsh, and set the options which allow our commands through
19707 # without removal of \ escapes.
19708 if test -n "${ZSH_VERSION+set}" ; then
19709 setopt NO_GLOB_SUBST
19710 fi
19711 # Now quote all the things that may contain metacharacters while being
19712 # careful not to overquote the AC_SUBSTed values. We take copies of the
19713 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000019714 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 +000019715 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000019716 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19717 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19718 deplibs_check_method reload_flag reload_cmds need_locks \
19719 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19720 lt_cv_sys_global_symbol_to_c_name_address \
19721 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19722 old_postinstall_cmds old_postuninstall_cmds \
19723 compiler_CXX \
19724 CC_CXX \
19725 LD_CXX \
19726 lt_prog_compiler_wl_CXX \
19727 lt_prog_compiler_pic_CXX \
19728 lt_prog_compiler_static_CXX \
19729 lt_prog_compiler_no_builtin_flag_CXX \
19730 export_dynamic_flag_spec_CXX \
19731 thread_safe_flag_spec_CXX \
19732 whole_archive_flag_spec_CXX \
19733 enable_shared_with_static_runtimes_CXX \
19734 old_archive_cmds_CXX \
19735 old_archive_from_new_cmds_CXX \
19736 predep_objects_CXX \
19737 postdep_objects_CXX \
19738 predeps_CXX \
19739 postdeps_CXX \
19740 compiler_lib_search_path_CXX \
19741 archive_cmds_CXX \
19742 archive_expsym_cmds_CXX \
19743 postinstall_cmds_CXX \
19744 postuninstall_cmds_CXX \
19745 old_archive_from_expsyms_cmds_CXX \
19746 allow_undefined_flag_CXX \
19747 no_undefined_flag_CXX \
19748 export_symbols_cmds_CXX \
19749 hardcode_libdir_flag_spec_CXX \
19750 hardcode_libdir_flag_spec_ld_CXX \
19751 hardcode_libdir_separator_CXX \
19752 hardcode_automatic_CXX \
19753 module_cmds_CXX \
19754 module_expsym_cmds_CXX \
19755 lt_cv_prog_compiler_c_o_CXX \
19756 exclude_expsyms_CXX \
19757 include_expsyms_CXX; do
19758
19759 case $var in
19760 old_archive_cmds_CXX | \
19761 old_archive_from_new_cmds_CXX | \
19762 archive_cmds_CXX | \
19763 archive_expsym_cmds_CXX | \
19764 module_cmds_CXX | \
19765 module_expsym_cmds_CXX | \
19766 old_archive_from_expsyms_cmds_CXX | \
19767 export_symbols_cmds_CXX | \
19768 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19769 postinstall_cmds | postuninstall_cmds | \
19770 old_postinstall_cmds | old_postuninstall_cmds | \
19771 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19772 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019773 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 +000019774 ;;
19775 *)
19776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19777 ;;
19778 esac
19779 done
19780
19781 case $lt_echo in
19782 *'\$0 --fallback-echo"')
19783 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19784 ;;
19785 esac
19786
19787cfgfile="$ofile"
19788
19789 cat <<__EOF__ >> "$cfgfile"
19790# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19791
19792# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19793
19794# Shell to use when invoking shell scripts.
19795SHELL=$lt_SHELL
19796
19797# Whether or not to build shared libraries.
19798build_libtool_libs=$enable_shared
19799
19800# Whether or not to build static libraries.
19801build_old_libs=$enable_static
19802
19803# Whether or not to add -lc for building shared libraries.
19804build_libtool_need_lc=$archive_cmds_need_lc_CXX
19805
19806# Whether or not to disallow shared libs when runtime libs are static
19807allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19808
19809# Whether or not to optimize for fast installation.
19810fast_install=$enable_fast_install
19811
19812# The host system.
19813host_alias=$host_alias
19814host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000019815host_os=$host_os
19816
19817# The build system.
19818build_alias=$build_alias
19819build=$build
19820build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000019821
19822# An echo program that does not interpret backslashes.
19823echo=$lt_echo
19824
19825# The archiver.
19826AR=$lt_AR
19827AR_FLAGS=$lt_AR_FLAGS
19828
19829# A C compiler.
19830LTCC=$lt_LTCC
19831
Reid Spencera773bd52006-08-04 18:18:08 +000019832# LTCC compiler flags.
19833LTCFLAGS=$lt_LTCFLAGS
19834
John Criswell47fdd832003-07-14 16:52:07 +000019835# A language-specific compiler.
19836CC=$lt_compiler_CXX
19837
19838# Is the compiler the GNU C compiler?
19839with_gcc=$GCC_CXX
19840
19841# An ERE matcher.
19842EGREP=$lt_EGREP
19843
19844# The linker used to build libraries.
19845LD=$lt_LD_CXX
19846
19847# Whether we need hard or soft links.
19848LN_S=$lt_LN_S
19849
19850# A BSD-compatible nm program.
19851NM=$lt_NM
19852
19853# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000019854STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000019855
19856# Used to examine libraries when file_magic_cmd begins "file"
19857MAGIC_CMD=$MAGIC_CMD
19858
19859# Used on cygwin: DLL creation program.
19860DLLTOOL="$DLLTOOL"
19861
19862# Used on cygwin: object dumper.
19863OBJDUMP="$OBJDUMP"
19864
19865# Used on cygwin: assembler.
19866AS="$AS"
19867
19868# The name of the directory that contains temporary libtool files.
19869objdir=$objdir
19870
19871# How to create reloadable object files.
19872reload_flag=$lt_reload_flag
19873reload_cmds=$lt_reload_cmds
19874
19875# How to pass a linker flag through the compiler.
19876wl=$lt_lt_prog_compiler_wl_CXX
19877
19878# Object file suffix (normally "o").
19879objext="$ac_objext"
19880
19881# Old archive suffix (normally "a").
19882libext="$libext"
19883
19884# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000019885shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000019886
19887# Executable file suffix (normally "").
19888exeext="$exeext"
19889
19890# Additional compiler flags for building library objects.
19891pic_flag=$lt_lt_prog_compiler_pic_CXX
19892pic_mode=$pic_mode
19893
19894# What is the maximum length of a command?
19895max_cmd_len=$lt_cv_sys_max_cmd_len
19896
19897# Does compiler simultaneously support -c and -o options?
19898compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19899
Reid Spencera773bd52006-08-04 18:18:08 +000019900# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000019901need_locks=$lt_need_locks
19902
19903# Do we need the lib prefix for modules?
19904need_lib_prefix=$need_lib_prefix
19905
19906# Do we need a version for libraries?
19907need_version=$need_version
19908
19909# Whether dlopen is supported.
19910dlopen_support=$enable_dlopen
19911
19912# Whether dlopen of programs is supported.
19913dlopen_self=$enable_dlopen_self
19914
19915# Whether dlopen of statically linked programs is supported.
19916dlopen_self_static=$enable_dlopen_self_static
19917
19918# Compiler flag to prevent dynamic linking.
19919link_static_flag=$lt_lt_prog_compiler_static_CXX
19920
19921# Compiler flag to turn off builtin functions.
19922no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19923
19924# Compiler flag to allow reflexive dlopens.
19925export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19926
19927# Compiler flag to generate shared objects directly from archives.
19928whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19929
19930# Compiler flag to generate thread-safe objects.
19931thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19932
19933# Library versioning type.
19934version_type=$version_type
19935
19936# Format of library name prefix.
19937libname_spec=$lt_libname_spec
19938
19939# List of archive names. First name is the real one, the rest are links.
19940# The last name is the one that the linker finds with -lNAME.
19941library_names_spec=$lt_library_names_spec
19942
19943# The coded name of the library, if different from the real name.
19944soname_spec=$lt_soname_spec
19945
19946# Commands used to build and install an old-style archive.
19947RANLIB=$lt_RANLIB
19948old_archive_cmds=$lt_old_archive_cmds_CXX
19949old_postinstall_cmds=$lt_old_postinstall_cmds
19950old_postuninstall_cmds=$lt_old_postuninstall_cmds
19951
19952# Create an old-style archive from a shared archive.
19953old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19954
19955# Create a temporary old-style archive to link instead of a shared archive.
19956old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19957
19958# Commands used to build and install a shared archive.
19959archive_cmds=$lt_archive_cmds_CXX
19960archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19961postinstall_cmds=$lt_postinstall_cmds
19962postuninstall_cmds=$lt_postuninstall_cmds
19963
19964# Commands used to build a loadable module (assumed same as above if empty)
19965module_cmds=$lt_module_cmds_CXX
19966module_expsym_cmds=$lt_module_expsym_cmds_CXX
19967
19968# Commands to strip libraries.
19969old_striplib=$lt_old_striplib
19970striplib=$lt_striplib
19971
19972# Dependencies to place before the objects being linked to create a
19973# shared library.
19974predep_objects=$lt_predep_objects_CXX
19975
19976# Dependencies to place after the objects being linked to create a
19977# shared library.
19978postdep_objects=$lt_postdep_objects_CXX
19979
19980# Dependencies to place before the objects being linked to create a
19981# shared library.
19982predeps=$lt_predeps_CXX
19983
19984# Dependencies to place after the objects being linked to create a
19985# shared library.
19986postdeps=$lt_postdeps_CXX
19987
19988# The library search path used internally by the compiler when linking
19989# a shared library.
19990compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19991
19992# Method to check whether dependent libraries are shared objects.
19993deplibs_check_method=$lt_deplibs_check_method
19994
19995# Command to use when deplibs_check_method == file_magic.
19996file_magic_cmd=$lt_file_magic_cmd
19997
19998# Flag that allows shared libraries with undefined symbols to be built.
19999allow_undefined_flag=$lt_allow_undefined_flag_CXX
20000
20001# Flag that forces no undefined symbols.
20002no_undefined_flag=$lt_no_undefined_flag_CXX
20003
20004# Commands used to finish a libtool library installation in a directory.
20005finish_cmds=$lt_finish_cmds
20006
20007# Same as above, but a single script fragment to be evaled but not shown.
20008finish_eval=$lt_finish_eval
20009
20010# Take the output of nm and produce a listing of raw symbols and C names.
20011global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20012
20013# Transform the output of nm in a proper C declaration
20014global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20015
20016# Transform the output of nm in a C name address pair
20017global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20018
20019# This is the shared library runtime path variable.
20020runpath_var=$runpath_var
20021
20022# This is the shared library path variable.
20023shlibpath_var=$shlibpath_var
20024
20025# Is shlibpath searched before the hard-coded library search path?
20026shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20027
20028# How to hardcode a shared library path into an executable.
20029hardcode_action=$hardcode_action_CXX
20030
20031# Whether we should hardcode library paths into libraries.
20032hardcode_into_libs=$hardcode_into_libs
20033
20034# Flag to hardcode \$libdir into a binary during linking.
20035# This must work even if \$libdir does not exist.
20036hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20037
20038# If ld is used when linking, flag to hardcode \$libdir into
20039# a binary during linking. This must work even if \$libdir does
20040# not exist.
20041hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20042
20043# Whether we need a single -rpath flag with a separated argument.
20044hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20045
20046# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20047# resulting binary.
20048hardcode_direct=$hardcode_direct_CXX
20049
20050# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20051# resulting binary.
20052hardcode_minus_L=$hardcode_minus_L_CXX
20053
20054# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20055# the resulting binary.
20056hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20057
20058# Set to yes if building a shared library automatically hardcodes DIR into the library
20059# and all subsequent libraries and executables linked against it.
20060hardcode_automatic=$hardcode_automatic_CXX
20061
20062# Variables whose values should be saved in libtool wrapper scripts and
20063# restored at relink time.
20064variables_saved_for_relink="$variables_saved_for_relink"
20065
20066# Whether libtool must link a program against all its dependency libraries.
20067link_all_deplibs=$link_all_deplibs_CXX
20068
20069# Compile-time system search path for libraries
20070sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20071
20072# Run-time system search path for libraries
20073sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20074
20075# Fix the shell variable \$srcfile for the compiler.
20076fix_srcfile_path="$fix_srcfile_path_CXX"
20077
20078# Set to yes if exported symbols are required.
20079always_export_symbols=$always_export_symbols_CXX
20080
20081# The commands to list exported symbols.
20082export_symbols_cmds=$lt_export_symbols_cmds_CXX
20083
20084# The commands to extract the exported symbol list from a shared archive.
20085extract_expsyms_cmds=$lt_extract_expsyms_cmds
20086
20087# Symbols that should not be listed in the preloaded symbols.
20088exclude_expsyms=$lt_exclude_expsyms_CXX
20089
20090# Symbols that must always be exported.
20091include_expsyms=$lt_include_expsyms_CXX
20092
20093# ### END LIBTOOL TAG CONFIG: $tagname
20094
20095__EOF__
20096
20097
20098else
20099 # If there is no Makefile yet, we rely on a make rule to execute
20100 # `config.status --recheck' to rerun these tests and create the
20101 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020102 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20103 if test -f "$ltmain_in"; then
20104 test -f Makefile && make "$ltmain"
20105 fi
John Criswell47fdd832003-07-14 16:52:07 +000020106fi
20107
20108
20109ac_ext=c
20110ac_cpp='$CPP $CPPFLAGS'
20111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113ac_compiler_gnu=$ac_cv_c_compiler_gnu
20114
20115CC=$lt_save_CC
20116LDCXX=$LD
20117LD=$lt_save_LD
20118GCC=$lt_save_GCC
20119with_gnu_ldcxx=$with_gnu_ld
20120with_gnu_ld=$lt_save_with_gnu_ld
20121lt_cv_path_LDCXX=$lt_cv_path_LD
20122lt_cv_path_LD=$lt_save_path_LD
20123lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20124lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20125
20126 else
20127 tagname=""
20128 fi
20129 ;;
20130
20131 F77)
20132 if test -n "$F77" && test "X$F77" != "Xno"; then
20133
20134ac_ext=f
20135ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20136ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20137ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20138
20139
20140archive_cmds_need_lc_F77=no
20141allow_undefined_flag_F77=
20142always_export_symbols_F77=no
20143archive_expsym_cmds_F77=
20144export_dynamic_flag_spec_F77=
20145hardcode_direct_F77=no
20146hardcode_libdir_flag_spec_F77=
20147hardcode_libdir_flag_spec_ld_F77=
20148hardcode_libdir_separator_F77=
20149hardcode_minus_L_F77=no
20150hardcode_automatic_F77=no
20151module_cmds_F77=
20152module_expsym_cmds_F77=
20153link_all_deplibs_F77=unknown
20154old_archive_cmds_F77=$old_archive_cmds
20155no_undefined_flag_F77=
20156whole_archive_flag_spec_F77=
20157enable_shared_with_static_runtimes_F77=no
20158
20159# Source file extension for f77 test sources.
20160ac_ext=f
20161
20162# Object file extension for compiled f77 test sources.
20163objext=o
20164objext_F77=$objext
20165
20166# Code to be used in simple compile tests
20167lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20168
20169# Code to be used in simple link tests
20170lt_simple_link_test_code=" program t\n end\n"
20171
20172# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20173
20174# If no C compiler was specified, use CC.
20175LTCC=${LTCC-"$CC"}
20176
Reid Spencera773bd52006-08-04 18:18:08 +000020177# If no C compiler flags were specified, use CFLAGS.
20178LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20179
John Criswell47fdd832003-07-14 16:52:07 +000020180# Allow CC to be a program name with arguments.
20181compiler=$CC
20182
20183
Reid Spencera773bd52006-08-04 18:18:08 +000020184# save warnings/boilerplate of simple test code
20185ac_outfile=conftest.$ac_objext
20186printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20187eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20188_lt_compiler_boilerplate=`cat conftest.err`
20189$rm conftest*
20190
20191ac_outfile=conftest.$ac_objext
20192printf "$lt_simple_link_test_code" >conftest.$ac_ext
20193eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20194_lt_linker_boilerplate=`cat conftest.err`
20195$rm conftest*
20196
20197
John Criswell47fdd832003-07-14 16:52:07 +000020198# Allow CC to be a program name with arguments.
20199lt_save_CC="$CC"
20200CC=${F77-"f77"}
20201compiler=$CC
20202compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020203for cc_temp in $compiler""; do
20204 case $cc_temp in
20205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20207 \-*) ;;
20208 *) break;;
20209 esac
20210done
20211cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020212
John Criswell47fdd832003-07-14 16:52:07 +000020213
Reid Spencera773bd52006-08-04 18:18:08 +000020214{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20215echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20216{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20217echo "${ECHO_T}$can_build_shared" >&6; }
20218
20219{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20220echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020221test "$can_build_shared" = "no" && enable_shared=no
20222
20223# On AIX, shared libraries and static libraries use the same namespace, and
20224# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020225case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020226aix3*)
20227 test "$enable_shared" = yes && enable_static=no
20228 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020229 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020230 postinstall_cmds='$RANLIB $lib'
20231 fi
20232 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020233aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020234 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20235 test "$enable_shared" = yes && enable_static=no
20236 fi
John Criswell47fdd832003-07-14 16:52:07 +000020237 ;;
20238esac
Reid Spencera773bd52006-08-04 18:18:08 +000020239{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20240echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020241
Reid Spencera773bd52006-08-04 18:18:08 +000020242{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20243echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020244# Make sure either enable_shared or enable_static is yes.
20245test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020246{ echo "$as_me:$LINENO: result: $enable_static" >&5
20247echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020248
20249GCC_F77="$G77"
20250LD_F77="$LD"
20251
20252lt_prog_compiler_wl_F77=
20253lt_prog_compiler_pic_F77=
20254lt_prog_compiler_static_F77=
20255
Reid Spencera773bd52006-08-04 18:18:08 +000020256{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20257echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020258
20259 if test "$GCC" = yes; then
20260 lt_prog_compiler_wl_F77='-Wl,'
20261 lt_prog_compiler_static_F77='-static'
20262
20263 case $host_os in
20264 aix*)
20265 # All AIX code is PIC.
20266 if test "$host_cpu" = ia64; then
20267 # AIX 5 now supports IA64 processor
20268 lt_prog_compiler_static_F77='-Bstatic'
20269 fi
20270 ;;
20271
20272 amigaos*)
20273 # FIXME: we need at least 68020 code to build shared libraries, but
20274 # adding the `-m68020' flag to GCC prevents building anything better,
20275 # like `-m68040'.
20276 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20277 ;;
20278
20279 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20280 # PIC is the default for these OSes.
20281 ;;
20282
20283 mingw* | pw32* | os2*)
20284 # This hack is so that the source file can tell whether it is being
20285 # built for inclusion in a dll (and should export symbols for example).
20286 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20287 ;;
20288
20289 darwin* | rhapsody*)
20290 # PIC is the default on this platform
20291 # Common symbols not allowed in MH_DYLIB files
20292 lt_prog_compiler_pic_F77='-fno-common'
20293 ;;
20294
Reid Spencera773bd52006-08-04 18:18:08 +000020295 interix3*)
20296 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20297 # Instead, we relocate shared libraries at runtime.
20298 ;;
20299
John Criswell47fdd832003-07-14 16:52:07 +000020300 msdosdjgpp*)
20301 # Just because we use GCC doesn't mean we suddenly get shared libraries
20302 # on systems that don't support them.
20303 lt_prog_compiler_can_build_shared_F77=no
20304 enable_shared=no
20305 ;;
20306
20307 sysv4*MP*)
20308 if test -d /usr/nec; then
20309 lt_prog_compiler_pic_F77=-Kconform_pic
20310 fi
20311 ;;
20312
20313 hpux*)
20314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20315 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020316 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020317 hppa*64*|ia64*)
20318 # +Z the default
20319 ;;
20320 *)
20321 lt_prog_compiler_pic_F77='-fPIC'
20322 ;;
20323 esac
20324 ;;
20325
20326 *)
20327 lt_prog_compiler_pic_F77='-fPIC'
20328 ;;
20329 esac
20330 else
20331 # PORTME Check for flag to pass linker flags through the system compiler.
20332 case $host_os in
20333 aix*)
20334 lt_prog_compiler_wl_F77='-Wl,'
20335 if test "$host_cpu" = ia64; then
20336 # AIX 5 now supports IA64 processor
20337 lt_prog_compiler_static_F77='-Bstatic'
20338 else
20339 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20340 fi
20341 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020342 darwin*)
20343 # PIC is the default on this platform
20344 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020345 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020346 xlc*)
20347 lt_prog_compiler_pic_F77='-qnocommon'
20348 lt_prog_compiler_wl_F77='-Wl,'
20349 ;;
20350 esac
20351 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020352
20353 mingw* | pw32* | os2*)
20354 # This hack is so that the source file can tell whether it is being
20355 # built for inclusion in a dll (and should export symbols for example).
20356 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20357 ;;
20358
20359 hpux9* | hpux10* | hpux11*)
20360 lt_prog_compiler_wl_F77='-Wl,'
20361 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20362 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020363 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020364 hppa*64*|ia64*)
20365 # +Z the default
20366 ;;
20367 *)
20368 lt_prog_compiler_pic_F77='+Z'
20369 ;;
20370 esac
20371 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20372 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20373 ;;
20374
20375 irix5* | irix6* | nonstopux*)
20376 lt_prog_compiler_wl_F77='-Wl,'
20377 # PIC (with -KPIC) is the default.
20378 lt_prog_compiler_static_F77='-non_shared'
20379 ;;
20380
20381 newsos6)
20382 lt_prog_compiler_pic_F77='-KPIC'
20383 lt_prog_compiler_static_F77='-Bstatic'
20384 ;;
20385
20386 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000020387 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020388 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000020389 lt_prog_compiler_wl_F77='-Wl,'
20390 lt_prog_compiler_pic_F77='-KPIC'
20391 lt_prog_compiler_static_F77='-static'
20392 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020393 pgcc* | pgf77* | pgf90* | pgf95*)
20394 # Portland Group compilers (*not* the Pentium gcc compiler,
20395 # which looks to be a dead project)
20396 lt_prog_compiler_wl_F77='-Wl,'
20397 lt_prog_compiler_pic_F77='-fpic'
20398 lt_prog_compiler_static_F77='-Bstatic'
20399 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020400 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000020401 lt_prog_compiler_wl_F77='-Wl,'
20402 # All Alpha code is PIC.
20403 lt_prog_compiler_static_F77='-non_shared'
20404 ;;
20405 esac
20406 ;;
20407
20408 osf3* | osf4* | osf5*)
20409 lt_prog_compiler_wl_F77='-Wl,'
20410 # All OSF/1 code is PIC.
20411 lt_prog_compiler_static_F77='-non_shared'
20412 ;;
20413
John Criswell47fdd832003-07-14 16:52:07 +000020414 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020415 lt_prog_compiler_pic_F77='-KPIC'
20416 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000020417 case $cc_basename in
20418 f77* | f90* | f95*)
20419 lt_prog_compiler_wl_F77='-Qoption ld ';;
20420 *)
20421 lt_prog_compiler_wl_F77='-Wl,';;
20422 esac
John Criswell47fdd832003-07-14 16:52:07 +000020423 ;;
20424
20425 sunos4*)
20426 lt_prog_compiler_wl_F77='-Qoption ld '
20427 lt_prog_compiler_pic_F77='-PIC'
20428 lt_prog_compiler_static_F77='-Bstatic'
20429 ;;
20430
Reid Spencera773bd52006-08-04 18:18:08 +000020431 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020432 lt_prog_compiler_wl_F77='-Wl,'
20433 lt_prog_compiler_pic_F77='-KPIC'
20434 lt_prog_compiler_static_F77='-Bstatic'
20435 ;;
20436
20437 sysv4*MP*)
20438 if test -d /usr/nec ;then
20439 lt_prog_compiler_pic_F77='-Kconform_pic'
20440 lt_prog_compiler_static_F77='-Bstatic'
20441 fi
20442 ;;
20443
Reid Spencera773bd52006-08-04 18:18:08 +000020444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20445 lt_prog_compiler_wl_F77='-Wl,'
20446 lt_prog_compiler_pic_F77='-KPIC'
20447 lt_prog_compiler_static_F77='-Bstatic'
20448 ;;
20449
20450 unicos*)
20451 lt_prog_compiler_wl_F77='-Wl,'
20452 lt_prog_compiler_can_build_shared_F77=no
20453 ;;
20454
John Criswell47fdd832003-07-14 16:52:07 +000020455 uts4*)
20456 lt_prog_compiler_pic_F77='-pic'
20457 lt_prog_compiler_static_F77='-Bstatic'
20458 ;;
20459
20460 *)
20461 lt_prog_compiler_can_build_shared_F77=no
20462 ;;
20463 esac
20464 fi
20465
Reid Spencera773bd52006-08-04 18:18:08 +000020466{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20467echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020468
20469#
20470# Check to make sure the PIC flag actually works.
20471#
20472if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020473
Reid Spencera773bd52006-08-04 18:18:08 +000020474{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20475echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020476if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478else
20479 lt_prog_compiler_pic_works_F77=no
20480 ac_outfile=conftest.$ac_objext
20481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20482 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20483 # Insert the option either (1) after the last *FLAGS variable, or
20484 # (2) before a word containing "conftest.", or (3) at the end.
20485 # Note that $ac_compile itself does not contain backslashes and begins
20486 # with a dollar sign (not a hyphen), so the echo should work correctly.
20487 # The option is referenced via a variable to avoid confusing sed.
20488 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20491 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky2ab1d862009-01-20 00:52:24 +000020492 (eval echo "\"\$as_me:20492: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020493 (eval "$lt_compile" 2>conftest.err)
20494 ac_status=$?
20495 cat conftest.err >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000020496 echo "$as_me:20496: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020497 if (exit $ac_status) && test -s "$ac_outfile"; then
20498 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020499 # So say no if there are warnings other than the usual output.
20500 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20502 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020503 lt_prog_compiler_pic_works_F77=yes
20504 fi
20505 fi
20506 $rm conftest*
20507
20508fi
Reid Spencera773bd52006-08-04 18:18:08 +000020509{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20510echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020511
20512if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20513 case $lt_prog_compiler_pic_F77 in
20514 "" | " "*) ;;
20515 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20516 esac
20517else
20518 lt_prog_compiler_pic_F77=
20519 lt_prog_compiler_can_build_shared_F77=no
20520fi
20521
20522fi
Reid Spencera773bd52006-08-04 18:18:08 +000020523case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020524 # For platforms which do not support PIC, -DPIC is meaningless:
20525 *djgpp*)
20526 lt_prog_compiler_pic_F77=
20527 ;;
20528 *)
20529 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20530 ;;
20531esac
20532
Reid Spencera773bd52006-08-04 18:18:08 +000020533#
20534# Check to make sure the static flag actually works.
20535#
20536wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20537{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20538echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20539if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20541else
20542 lt_prog_compiler_static_works_F77=no
20543 save_LDFLAGS="$LDFLAGS"
20544 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20545 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20547 # The linker can only warn and ignore the option if not recognized
20548 # So say no if there are warnings
20549 if test -s conftest.err; then
20550 # Append any errors to the config.log.
20551 cat conftest.err 1>&5
20552 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20554 if diff conftest.exp conftest.er2 >/dev/null; then
20555 lt_prog_compiler_static_works_F77=yes
20556 fi
20557 else
20558 lt_prog_compiler_static_works_F77=yes
20559 fi
20560 fi
20561 $rm conftest*
20562 LDFLAGS="$save_LDFLAGS"
20563
20564fi
20565{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20566echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20567
20568if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20569 :
20570else
20571 lt_prog_compiler_static_F77=
20572fi
20573
20574
20575{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20576echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020577if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579else
20580 lt_cv_prog_compiler_c_o_F77=no
20581 $rm -r conftest 2>/dev/null
20582 mkdir conftest
20583 cd conftest
20584 mkdir out
20585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20586
John Criswell47fdd832003-07-14 16:52:07 +000020587 lt_compiler_flag="-o out/conftest2.$ac_objext"
20588 # Insert the option either (1) after the last *FLAGS variable, or
20589 # (2) before a word containing "conftest.", or (3) at the end.
20590 # Note that $ac_compile itself does not contain backslashes and begins
20591 # with a dollar sign (not a hyphen), so the echo should work correctly.
20592 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20595 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky2ab1d862009-01-20 00:52:24 +000020596 (eval echo "\"\$as_me:20596: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020597 (eval "$lt_compile" 2>out/conftest.err)
20598 ac_status=$?
20599 cat out/conftest.err >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000020600 echo "$as_me:20600: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20602 then
20603 # The compiler can only warn and ignore the option if not recognized
20604 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020605 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020608 lt_cv_prog_compiler_c_o_F77=yes
20609 fi
20610 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020611 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020612 $rm conftest*
20613 # SGI C++ compiler will create directory out/ii_files/ for
20614 # template instantiation
20615 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20616 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020617 cd ..
20618 rmdir conftest
20619 $rm conftest*
20620
20621fi
Reid Spencera773bd52006-08-04 18:18:08 +000020622{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20623echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020624
20625
20626hard_links="nottested"
20627if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20628 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020629 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20630echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020631 hard_links=yes
20632 $rm conftest*
20633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20634 touch conftest.a
20635 ln conftest.a conftest.b 2>&5 || hard_links=no
20636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020637 { echo "$as_me:$LINENO: result: $hard_links" >&5
20638echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020639 if test "$hard_links" = no; then
20640 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20641echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20642 need_locks=warn
20643 fi
20644else
20645 need_locks=no
20646fi
20647
Reid Spencera773bd52006-08-04 18:18:08 +000020648{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20649echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020650
20651 runpath_var=
20652 allow_undefined_flag_F77=
20653 enable_shared_with_static_runtimes_F77=no
20654 archive_cmds_F77=
20655 archive_expsym_cmds_F77=
20656 old_archive_From_new_cmds_F77=
20657 old_archive_from_expsyms_cmds_F77=
20658 export_dynamic_flag_spec_F77=
20659 whole_archive_flag_spec_F77=
20660 thread_safe_flag_spec_F77=
20661 hardcode_libdir_flag_spec_F77=
20662 hardcode_libdir_flag_spec_ld_F77=
20663 hardcode_libdir_separator_F77=
20664 hardcode_direct_F77=no
20665 hardcode_minus_L_F77=no
20666 hardcode_shlibpath_var_F77=unsupported
20667 link_all_deplibs_F77=unknown
20668 hardcode_automatic_F77=no
20669 module_cmds_F77=
20670 module_expsym_cmds_F77=
20671 always_export_symbols_F77=no
20672 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20673 # include_expsyms should be a list of space-separated symbols to be *always*
20674 # included in the symbol list
20675 include_expsyms_F77=
20676 # exclude_expsyms can be an extended regexp of symbols to exclude
20677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20679 # as well as any symbol that contains `d'.
20680 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20682 # platforms (ab)use it in PIC code, but their linkers get confused if
20683 # the symbol is explicitly referenced. Since portable code cannot
20684 # rely on this symbol name, it's probably fine to never include it in
20685 # preloaded symbol tables.
20686 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000020687 # Just being paranoid about ensuring that cc_basename is set.
20688 for cc_temp in $compiler""; do
20689 case $cc_temp in
20690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20692 \-*) ;;
20693 *) break;;
20694 esac
20695done
20696cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020697
20698 case $host_os in
20699 cygwin* | mingw* | pw32*)
20700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20701 # When not using gcc, we currently assume that we are using
20702 # Microsoft Visual C++.
20703 if test "$GCC" != yes; then
20704 with_gnu_ld=no
20705 fi
20706 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020707 interix*)
20708 # we just hope/assume this is gcc and not c89 (= MSVC++)
20709 with_gnu_ld=yes
20710 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020711 openbsd*)
20712 with_gnu_ld=no
20713 ;;
20714 esac
20715
20716 ld_shlibs_F77=yes
20717 if test "$with_gnu_ld" = yes; then
20718 # If archive_cmds runs LD, not CC, wlarc should be empty
20719 wlarc='${wl}'
20720
Reid Spencera773bd52006-08-04 18:18:08 +000020721 # Set some defaults for GNU ld with shared library support. These
20722 # are reset later if shared libraries are not supported. Putting them
20723 # here allows them to be overridden if necessary.
20724 runpath_var=LD_RUN_PATH
20725 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20726 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20727 # ancient GNU ld didn't support --whole-archive et. al.
20728 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20729 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20730 else
20731 whole_archive_flag_spec_F77=
20732 fi
20733 supports_anon_versioning=no
20734 case `$LD -v 2>/dev/null` in
20735 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20736 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20737 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20738 *\ 2.11.*) ;; # other 2.11 versions
20739 *) supports_anon_versioning=yes ;;
20740 esac
20741
John Criswell47fdd832003-07-14 16:52:07 +000020742 # See if GNU ld supports shared libraries.
20743 case $host_os in
20744 aix3* | aix4* | aix5*)
20745 # On AIX/PPC, the GNU linker is very broken
20746 if test "$host_cpu" != ia64; then
20747 ld_shlibs_F77=no
20748 cat <<EOF 1>&2
20749
20750*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20751*** to be unable to reliably create shared libraries on AIX.
20752*** Therefore, libtool is disabling shared libraries support. If you
20753*** really care for shared libraries, you may want to modify your PATH
20754*** so that a non-GNU linker is found, and then restart.
20755
20756EOF
20757 fi
20758 ;;
20759
20760 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000020761 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 +000020762 hardcode_libdir_flag_spec_F77='-L$libdir'
20763 hardcode_minus_L_F77=yes
20764
20765 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20766 # that the semantics of dynamic libraries on AmigaOS, at least up
20767 # to version 4, is to share data among multiple programs linked
20768 # with the same dynamic library. Since this doesn't match the
20769 # behavior of shared libraries on other platforms, we can't use
20770 # them.
20771 ld_shlibs_F77=no
20772 ;;
20773
20774 beos*)
20775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20776 allow_undefined_flag_F77=unsupported
20777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20778 # support --undefined. This deserves some investigation. FIXME
20779 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20780 else
20781 ld_shlibs_F77=no
20782 fi
20783 ;;
20784
20785 cygwin* | mingw* | pw32*)
20786 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20787 # as there is no search path for DLLs.
20788 hardcode_libdir_flag_spec_F77='-L$libdir'
20789 allow_undefined_flag_F77=unsupported
20790 always_export_symbols_F77=no
20791 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020792 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 +000020793
20794 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000020795 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 +000020796 # If the export-symbols file already is a .def file (1st line
20797 # is EXPORTS), use it as is; otherwise, prepend...
20798 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20799 cp $export_symbols $output_objdir/$soname.def;
20800 else
20801 echo EXPORTS > $output_objdir/$soname.def;
20802 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000020803 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000020804 $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 +000020805 else
Reid Spencera773bd52006-08-04 18:18:08 +000020806 ld_shlibs_F77=no
20807 fi
20808 ;;
20809
20810 interix3*)
20811 hardcode_direct_F77=no
20812 hardcode_shlibpath_var_F77=no
20813 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20814 export_dynamic_flag_spec_F77='${wl}-E'
20815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20816 # Instead, shared libraries are loaded at an image base (0x10000000 by
20817 # default) and relocated if they conflict, which is a slow very memory
20818 # consuming and fragmenting process. To avoid this, we pick a random,
20819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20820 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20821 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'
20822 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'
20823 ;;
20824
20825 linux*)
20826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20827 tmp_addflag=
20828 case $cc_basename,$host_cpu in
20829 pgcc*) # Portland Group C compiler
20830 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'
20831 tmp_addflag=' $pic_flag'
20832 ;;
20833 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20834 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'
20835 tmp_addflag=' $pic_flag -Mnomain' ;;
20836 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20837 tmp_addflag=' -i_dynamic' ;;
20838 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20839 tmp_addflag=' -i_dynamic -nofor_main' ;;
20840 ifc* | ifort*) # Intel Fortran compiler
20841 tmp_addflag=' -nofor_main' ;;
20842 esac
20843 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20844
20845 if test $supports_anon_versioning = yes; then
20846 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20847 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20848 $echo "local: *; };" >> $output_objdir/$libname.ver~
20849 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20850 fi
20851 else
20852 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020853 fi
20854 ;;
20855
20856 netbsd*)
20857 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20858 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20859 wlarc=
20860 else
20861 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20862 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20863 fi
20864 ;;
20865
Reid Spencera773bd52006-08-04 18:18:08 +000020866 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000020867 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20868 ld_shlibs_F77=no
20869 cat <<EOF 1>&2
20870
20871*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20872*** create shared libraries on Solaris systems. Therefore, libtool
20873*** is disabling shared libraries support. We urge you to upgrade GNU
20874*** binutils to release 2.9.1 or newer. Another option is to modify
20875*** your PATH or compiler configuration so that the native linker is
20876*** used, and then restart.
20877
20878EOF
20879 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20880 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20881 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20882 else
20883 ld_shlibs_F77=no
20884 fi
20885 ;;
20886
Reid Spencera773bd52006-08-04 18:18:08 +000020887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20888 case `$LD -v 2>&1` in
20889 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20890 ld_shlibs_F77=no
20891 cat <<_LT_EOF 1>&2
20892
20893*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20894*** reliably create shared libraries on SCO systems. Therefore, libtool
20895*** is disabling shared libraries support. We urge you to upgrade GNU
20896*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20897*** your PATH or compiler configuration so that the native linker is
20898*** used, and then restart.
20899
20900_LT_EOF
20901 ;;
20902 *)
20903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20904 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20905 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20906 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20907 else
20908 ld_shlibs_F77=no
20909 fi
20910 ;;
20911 esac
20912 ;;
20913
John Criswell47fdd832003-07-14 16:52:07 +000020914 sunos4*)
20915 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20916 wlarc=
20917 hardcode_direct_F77=yes
20918 hardcode_shlibpath_var_F77=no
20919 ;;
20920
20921 *)
20922 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20923 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20924 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20925 else
20926 ld_shlibs_F77=no
20927 fi
20928 ;;
20929 esac
20930
Reid Spencera773bd52006-08-04 18:18:08 +000020931 if test "$ld_shlibs_F77" = no; then
20932 runpath_var=
20933 hardcode_libdir_flag_spec_F77=
20934 export_dynamic_flag_spec_F77=
20935 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000020936 fi
20937 else
20938 # PORTME fill in a description of your system's linker (not GNU ld)
20939 case $host_os in
20940 aix3*)
20941 allow_undefined_flag_F77=unsupported
20942 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000020943 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 +000020944 # Note: this linker hardcodes the directories in LIBPATH if there
20945 # are no directories specified by -L.
20946 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020947 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000020948 # Neither direct hardcoding nor static linking is supported with a
20949 # broken collect2.
20950 hardcode_direct_F77=unsupported
20951 fi
20952 ;;
20953
20954 aix4* | aix5*)
20955 if test "$host_cpu" = ia64; then
20956 # On IA64, the linker does run time linking by default, so we don't
20957 # have to do anything special.
20958 aix_use_runtimelinking=no
20959 exp_sym_flag='-Bexport'
20960 no_entry_flag=""
20961 else
20962 # If we're using GNU nm, then we don't want the "-C" option.
20963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20964 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20965 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'
20966 else
20967 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'
20968 fi
20969 aix_use_runtimelinking=no
20970
20971 # Test if we are trying to use run time linking or normal
20972 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20973 # need to do runtime linking.
20974 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20975 for ld_flag in $LDFLAGS; do
20976 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20977 aix_use_runtimelinking=yes
20978 break
20979 fi
20980 done
Reid Spencera773bd52006-08-04 18:18:08 +000020981 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020982 esac
20983
20984 exp_sym_flag='-bexport'
20985 no_entry_flag='-bnoentry'
20986 fi
20987
20988 # When large executables or shared objects are built, AIX ld can
20989 # have problems creating the table of contents. If linking a library
20990 # or program results in "error TOC overflow" add -mminimal-toc to
20991 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20992 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20993
20994 archive_cmds_F77=''
20995 hardcode_direct_F77=yes
20996 hardcode_libdir_separator_F77=':'
20997 link_all_deplibs_F77=yes
20998
20999 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021000 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021001 # We only want to do this on AIX 4.2 and lower, the check
21002 # below for broken collect2 doesn't work under 4.3+
21003 collect2name=`${CC} -print-prog-name=collect2`
21004 if test -f "$collect2name" && \
21005 strings "$collect2name" | grep resolve_lib_name >/dev/null
21006 then
21007 # We have reworked collect2
21008 hardcode_direct_F77=yes
21009 else
21010 # We have old collect2
21011 hardcode_direct_F77=unsupported
21012 # It fails to find uninstalled libraries when the uninstalled
21013 # path is not listed in the libpath. Setting hardcode_minus_L
21014 # to unsupported forces relinking
21015 hardcode_minus_L_F77=yes
21016 hardcode_libdir_flag_spec_F77='-L$libdir'
21017 hardcode_libdir_separator_F77=
21018 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021019 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021020 esac
21021 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021022 if test "$aix_use_runtimelinking" = yes; then
21023 shared_flag="$shared_flag "'${wl}-G'
21024 fi
John Criswell47fdd832003-07-14 16:52:07 +000021025 else
21026 # not using gcc
21027 if test "$host_cpu" = ia64; then
21028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21029 # chokes on -Wl,-G. The following line is correct:
21030 shared_flag='-G'
21031 else
Reid Spencera773bd52006-08-04 18:18:08 +000021032 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021033 shared_flag='${wl}-G'
21034 else
21035 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021036 fi
John Criswell47fdd832003-07-14 16:52:07 +000021037 fi
21038 fi
21039
21040 # It seems that -bexpall does not export symbols beginning with
21041 # underscore (_), so it is better to generate a list of symbols to export.
21042 always_export_symbols_F77=yes
21043 if test "$aix_use_runtimelinking" = yes; then
21044 # Warning - without using the other runtime loading flags (-brtl),
21045 # -berok will link without error, but may produce a broken library.
21046 allow_undefined_flag_F77='-berok'
21047 # Determine the default libpath from the value encoded in an empty executable.
21048 cat >conftest.$ac_ext <<_ACEOF
21049 program main
21050
21051 end
21052_ACEOF
21053rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021054if { (ac_try="$ac_link"
21055case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058esac
21059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021061 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000021066 (exit $ac_status); } && {
21067 test -z "$ac_f77_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest$ac_exeext &&
21070 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000021071
21072aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21073}'`
21074# Check for a 64-bit object if we didn't find anything.
21075if 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; }
21076}'`; fi
21077else
21078 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021079sed 's/^/| /' conftest.$ac_ext >&5
21080
Reid Spencera773bd52006-08-04 18:18:08 +000021081
John Criswell47fdd832003-07-14 16:52:07 +000021082fi
Reid Spencera773bd52006-08-04 18:18:08 +000021083
Nick Lewycky2ab1d862009-01-20 00:52:24 +000021084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021085 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021086if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21087
21088 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021089 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 +000021090 else
21091 if test "$host_cpu" = ia64; then
21092 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21093 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021094 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 +000021095 else
21096 # Determine the default libpath from the value encoded in an empty executable.
21097 cat >conftest.$ac_ext <<_ACEOF
21098 program main
21099
21100 end
21101_ACEOF
21102rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021103if { (ac_try="$ac_link"
21104case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21107esac
21108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021110 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021111 grep -v '^ *+' conftest.er1 >conftest.err
21112 rm -f conftest.er1
21113 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000021115 (exit $ac_status); } && {
21116 test -z "$ac_f77_werror_flag" ||
21117 test ! -s conftest.err
21118 } && test -s conftest$ac_exeext &&
21119 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000021120
21121aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21122}'`
21123# Check for a 64-bit object if we didn't find anything.
21124if 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; }
21125}'`; fi
21126else
21127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021128sed 's/^/| /' conftest.$ac_ext >&5
21129
Reid Spencera773bd52006-08-04 18:18:08 +000021130
John Criswell47fdd832003-07-14 16:52:07 +000021131fi
Reid Spencera773bd52006-08-04 18:18:08 +000021132
Nick Lewycky2ab1d862009-01-20 00:52:24 +000021133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021134 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21136
21137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21138 # Warning - without using the other run time loading flags,
21139 # -berok will link without error, but may produce a broken library.
21140 no_undefined_flag_F77=' ${wl}-bernotok'
21141 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021142 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021143 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021144 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021145 # This is similar to how AIX traditionally builds its shared libraries.
21146 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 +000021147 fi
21148 fi
21149 ;;
21150
21151 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021152 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 +000021153 hardcode_libdir_flag_spec_F77='-L$libdir'
21154 hardcode_minus_L_F77=yes
21155 # see comment about different semantics on the GNU ld section
21156 ld_shlibs_F77=no
21157 ;;
21158
Reid Spencer2706f8c2004-09-19 23:53:36 +000021159 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021160 export_dynamic_flag_spec_F77=-rdynamic
21161 ;;
21162
21163 cygwin* | mingw* | pw32*)
21164 # When not using gcc, we currently assume that we are using
21165 # Microsoft Visual C++.
21166 # hardcode_libdir_flag_spec is actually meaningless, as there is
21167 # no search path for DLLs.
21168 hardcode_libdir_flag_spec_F77=' '
21169 allow_undefined_flag_F77=unsupported
21170 # Tell ltmain to make .lib files, not .a files.
21171 libext=lib
21172 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021173 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021174 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021175 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 +000021176 # The linker will automatically build a .lib file if we build a DLL.
21177 old_archive_From_new_cmds_F77='true'
21178 # FIXME: Should let the user specify the lib program.
21179 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021180 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021181 enable_shared_with_static_runtimes_F77=yes
21182 ;;
21183
21184 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021185 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021186 rhapsody* | darwin1.[012])
21187 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21188 ;;
21189 *) # Darwin 1.3 on
21190 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21191 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21192 else
21193 case ${MACOSX_DEPLOYMENT_TARGET} in
21194 10.[012])
21195 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21196 ;;
21197 10.*)
21198 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21199 ;;
21200 esac
21201 fi
21202 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021203 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021204 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021205 hardcode_direct_F77=no
21206 hardcode_automatic_F77=yes
21207 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021208 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021209 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021210 if test "$GCC" = yes ; then
21211 output_verbose_link_cmd='echo'
21212 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21213 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021214 # 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 +000021215 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}'
21216 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 +000021217 else
Reid Spencera773bd52006-08-04 18:18:08 +000021218 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021219 xlc*)
21220 output_verbose_link_cmd='echo'
21221 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21222 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021223 # 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 +000021224 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}'
21225 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 +000021226 ;;
21227 *)
21228 ld_shlibs_F77=no
21229 ;;
21230 esac
John Criswell47fdd832003-07-14 16:52:07 +000021231 fi
21232 ;;
21233
21234 dgux*)
21235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21236 hardcode_libdir_flag_spec_F77='-L$libdir'
21237 hardcode_shlibpath_var_F77=no
21238 ;;
21239
21240 freebsd1*)
21241 ld_shlibs_F77=no
21242 ;;
21243
21244 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21245 # support. Future versions do this automatically, but an explicit c++rt0.o
21246 # does not break anything, and helps significantly (at the cost of a little
21247 # extra space).
21248 freebsd2.2*)
21249 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21250 hardcode_libdir_flag_spec_F77='-R$libdir'
21251 hardcode_direct_F77=yes
21252 hardcode_shlibpath_var_F77=no
21253 ;;
21254
21255 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21256 freebsd2*)
21257 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21258 hardcode_direct_F77=yes
21259 hardcode_minus_L_F77=yes
21260 hardcode_shlibpath_var_F77=no
21261 ;;
21262
21263 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021264 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021265 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21266 hardcode_libdir_flag_spec_F77='-R$libdir'
21267 hardcode_direct_F77=yes
21268 hardcode_shlibpath_var_F77=no
21269 ;;
21270
21271 hpux9*)
21272 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021273 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 +000021274 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021275 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 +000021276 fi
21277 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21278 hardcode_libdir_separator_F77=:
21279 hardcode_direct_F77=yes
21280
21281 # hardcode_minus_L: Not really in the search PATH,
21282 # but as the default location of the library.
21283 hardcode_minus_L_F77=yes
21284 export_dynamic_flag_spec_F77='${wl}-E'
21285 ;;
21286
Reid Spencera773bd52006-08-04 18:18:08 +000021287 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021288 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021289 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21290 else
21291 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21292 fi
21293 if test "$with_gnu_ld" = no; then
21294 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21295 hardcode_libdir_separator_F77=:
21296
21297 hardcode_direct_F77=yes
21298 export_dynamic_flag_spec_F77='${wl}-E'
21299
21300 # hardcode_minus_L: Not really in the search PATH,
21301 # but as the default location of the library.
21302 hardcode_minus_L_F77=yes
21303 fi
21304 ;;
21305
21306 hpux11*)
21307 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21308 case $host_cpu in
21309 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021310 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21311 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021312 ia64*)
21313 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21314 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021315 *)
21316 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21317 ;;
21318 esac
21319 else
Reid Spencera773bd52006-08-04 18:18:08 +000021320 case $host_cpu in
21321 hppa*64*)
21322 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21323 ;;
21324 ia64*)
21325 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021326 ;;
21327 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021328 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 +000021329 ;;
21330 esac
21331 fi
21332 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021333 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21334 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000021335
Reid Spencera773bd52006-08-04 18:18:08 +000021336 case $host_cpu in
21337 hppa*64*|ia64*)
21338 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21339 hardcode_direct_F77=no
21340 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021341 ;;
21342 *)
John Criswell47fdd832003-07-14 16:52:07 +000021343 hardcode_direct_F77=yes
21344 export_dynamic_flag_spec_F77='${wl}-E'
21345
21346 # hardcode_minus_L: Not really in the search PATH,
21347 # but as the default location of the library.
21348 hardcode_minus_L_F77=yes
21349 ;;
21350 esac
21351 fi
21352 ;;
21353
21354 irix5* | irix6* | nonstopux*)
21355 if test "$GCC" = yes; then
21356 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'
21357 else
21358 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'
21359 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21360 fi
21361 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21362 hardcode_libdir_separator_F77=:
21363 link_all_deplibs_F77=yes
21364 ;;
21365
21366 netbsd*)
21367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21368 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21369 else
21370 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21371 fi
21372 hardcode_libdir_flag_spec_F77='-R$libdir'
21373 hardcode_direct_F77=yes
21374 hardcode_shlibpath_var_F77=no
21375 ;;
21376
21377 newsos6)
21378 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21379 hardcode_direct_F77=yes
21380 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21381 hardcode_libdir_separator_F77=:
21382 hardcode_shlibpath_var_F77=no
21383 ;;
21384
21385 openbsd*)
21386 hardcode_direct_F77=yes
21387 hardcode_shlibpath_var_F77=no
21388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21389 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021390 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 +000021391 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21392 export_dynamic_flag_spec_F77='${wl}-E'
21393 else
21394 case $host_os in
21395 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21396 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21397 hardcode_libdir_flag_spec_F77='-R$libdir'
21398 ;;
21399 *)
21400 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21401 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21402 ;;
21403 esac
21404 fi
21405 ;;
21406
21407 os2*)
21408 hardcode_libdir_flag_spec_F77='-L$libdir'
21409 hardcode_minus_L_F77=yes
21410 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000021411 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 +000021412 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21413 ;;
21414
21415 osf3*)
21416 if test "$GCC" = yes; then
21417 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21418 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'
21419 else
21420 allow_undefined_flag_F77=' -expect_unresolved \*'
21421 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'
21422 fi
21423 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21424 hardcode_libdir_separator_F77=:
21425 ;;
21426
21427 osf4* | osf5*) # as osf3* with the addition of -msym flag
21428 if test "$GCC" = yes; then
21429 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21430 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'
21431 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21432 else
21433 allow_undefined_flag_F77=' -expect_unresolved \*'
21434 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 +000021435 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 +000021436 $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 +000021437
John Criswell47fdd832003-07-14 16:52:07 +000021438 # Both c and cxx compiler support -rpath directly
21439 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21440 fi
21441 hardcode_libdir_separator_F77=:
21442 ;;
21443
John Criswell47fdd832003-07-14 16:52:07 +000021444 solaris*)
21445 no_undefined_flag_F77=' -z text'
21446 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021447 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000021448 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021449 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21450 $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 +000021451 else
Reid Spencera773bd52006-08-04 18:18:08 +000021452 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000021453 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021454 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21455 $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 +000021456 fi
21457 hardcode_libdir_flag_spec_F77='-R$libdir'
21458 hardcode_shlibpath_var_F77=no
21459 case $host_os in
21460 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021461 *)
21462 # The compiler driver will combine linker options so we
21463 # cannot just pass the convience library names through
21464 # without $wl, iff we do not link with $LD.
21465 # Luckily, gcc supports the same syntax we need for Sun Studio.
21466 # Supported since Solaris 2.6 (maybe 2.5.1?)
21467 case $wlarc in
21468 '')
21469 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21470 *)
21471 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' ;;
21472 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000021473 esac
21474 link_all_deplibs_F77=yes
21475 ;;
21476
21477 sunos4*)
21478 if test "x$host_vendor" = xsequent; then
21479 # Use $CC to link under sequent, because it throws in some extra .o
21480 # files that make .init and .fini sections work.
21481 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21482 else
21483 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21484 fi
21485 hardcode_libdir_flag_spec_F77='-L$libdir'
21486 hardcode_direct_F77=yes
21487 hardcode_minus_L_F77=yes
21488 hardcode_shlibpath_var_F77=no
21489 ;;
21490
21491 sysv4)
21492 case $host_vendor in
21493 sni)
21494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21495 hardcode_direct_F77=yes # is this really true???
21496 ;;
21497 siemens)
21498 ## LD is ld it makes a PLAMLIB
21499 ## CC just makes a GrossModule.
21500 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21501 reload_cmds_F77='$CC -r -o $output$reload_objs'
21502 hardcode_direct_F77=no
21503 ;;
21504 motorola)
21505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21506 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21507 ;;
21508 esac
21509 runpath_var='LD_RUN_PATH'
21510 hardcode_shlibpath_var_F77=no
21511 ;;
21512
21513 sysv4.3*)
21514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21515 hardcode_shlibpath_var_F77=no
21516 export_dynamic_flag_spec_F77='-Bexport'
21517 ;;
21518
21519 sysv4*MP*)
21520 if test -d /usr/nec; then
21521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21522 hardcode_shlibpath_var_F77=no
21523 runpath_var=LD_RUN_PATH
21524 hardcode_runpath_var=yes
21525 ld_shlibs_F77=yes
21526 fi
21527 ;;
21528
Reid Spencera773bd52006-08-04 18:18:08 +000021529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21530 no_undefined_flag_F77='${wl}-z,text'
21531 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021532 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021533 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000021534
John Criswell47fdd832003-07-14 16:52:07 +000021535 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021536 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21537 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 +000021538 else
Reid Spencera773bd52006-08-04 18:18:08 +000021539 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21540 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 +000021541 fi
John Criswell47fdd832003-07-14 16:52:07 +000021542 ;;
21543
Reid Spencera773bd52006-08-04 18:18:08 +000021544 sysv5* | sco3.2v5* | sco5v6*)
21545 # Note: We can NOT use -z defs as we might desire, because we do not
21546 # link with -lc, and that would cause any symbols used from libc to
21547 # always be unresolved, which means just about no library would
21548 # ever link correctly. If we're not using GNU ld we use -z text
21549 # though, which does catch some bad symbols but isn't as heavy-handed
21550 # as -z defs.
21551 no_undefined_flag_F77='${wl}-z,text'
21552 allow_undefined_flag_F77='${wl}-z,nodefs'
21553 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021554 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000021555 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21556 hardcode_libdir_separator_F77=':'
21557 link_all_deplibs_F77=yes
21558 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000021559 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000021560
21561 if test "$GCC" = yes; then
21562 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21563 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21564 else
21565 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21566 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21567 fi
John Criswell47fdd832003-07-14 16:52:07 +000021568 ;;
21569
21570 uts4*)
21571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21572 hardcode_libdir_flag_spec_F77='-L$libdir'
21573 hardcode_shlibpath_var_F77=no
21574 ;;
21575
21576 *)
21577 ld_shlibs_F77=no
21578 ;;
21579 esac
21580 fi
21581
Reid Spencera773bd52006-08-04 18:18:08 +000021582{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21583echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021584test "$ld_shlibs_F77" = no && can_build_shared=no
21585
John Criswell47fdd832003-07-14 16:52:07 +000021586#
21587# Do we need to explicitly link libc?
21588#
21589case "x$archive_cmds_need_lc_F77" in
21590x|xyes)
21591 # Assume -lc should be added
21592 archive_cmds_need_lc_F77=yes
21593
21594 if test "$enable_shared" = yes && test "$GCC" = yes; then
21595 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021596 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000021597 # FIXME: we may have to deal with multi-command sequences.
21598 ;;
21599 '$CC '*)
21600 # Test whether the compiler implicitly links with -lc since on some
21601 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21602 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000021603 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21604echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021605 $rm conftest*
21606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21607
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } 2>conftest.err; then
21613 soname=conftest
21614 lib=conftest
21615 libobjs=conftest.$ac_objext
21616 deplibs=
21617 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000021618 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000021619 compiler_flags=-v
21620 linker_flags=-v
21621 verstring=
21622 output_objdir=.
21623 libname=conftest
21624 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21625 allow_undefined_flag_F77=
21626 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21627 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21628 ac_status=$?
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }
21631 then
21632 archive_cmds_need_lc_F77=no
21633 else
21634 archive_cmds_need_lc_F77=yes
21635 fi
21636 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21637 else
21638 cat conftest.err 1>&5
21639 fi
21640 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000021641 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21642echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021643 ;;
21644 esac
21645 fi
21646 ;;
21647esac
21648
Reid Spencera773bd52006-08-04 18:18:08 +000021649{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21650echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021651library_names_spec=
21652libname_spec='lib$name'
21653soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000021654shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000021655postinstall_cmds=
21656postuninstall_cmds=
21657finish_cmds=
21658finish_eval=
21659shlibpath_var=
21660shlibpath_overrides_runpath=unknown
21661version_type=none
21662dynamic_linker="$host_os ld.so"
21663sys_lib_dlsearch_path_spec="/lib /usr/lib"
21664if test "$GCC" = yes; then
21665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21666 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21667 # if the path contains ";" then we assume it to be the separator
21668 # otherwise default to the standard path separator (i.e. ":") - it is
21669 # assumed that no part of a normal pathname contains ";" but that should
21670 # okay in the real world where ";" in dirpaths is itself problematic.
21671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21672 else
21673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21674 fi
21675else
21676 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21677fi
21678need_lib_prefix=unknown
21679hardcode_into_libs=no
21680
21681# when you set need_version to no, make sure it does not cause -set_version
21682# flags to be left without arguments
21683need_version=unknown
21684
21685case $host_os in
21686aix3*)
21687 version_type=linux
21688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21689 shlibpath_var=LIBPATH
21690
21691 # AIX 3 has no versioning support, so we append a major version to the name.
21692 soname_spec='${libname}${release}${shared_ext}$major'
21693 ;;
21694
21695aix4* | aix5*)
21696 version_type=linux
21697 need_lib_prefix=no
21698 need_version=no
21699 hardcode_into_libs=yes
21700 if test "$host_cpu" = ia64; then
21701 # AIX 5 supports IA64
21702 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21703 shlibpath_var=LD_LIBRARY_PATH
21704 else
21705 # With GCC up to 2.95.x, collect2 would create an import file
21706 # for dependence libraries. The import file would start with
21707 # the line `#! .'. This would cause the generated library to
21708 # depend on `.', always an invalid library. This was fixed in
21709 # development snapshots of GCC prior to 3.0.
21710 case $host_os in
21711 aix4 | aix4.[01] | aix4.[01].*)
21712 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21713 echo ' yes '
21714 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21715 :
21716 else
21717 can_build_shared=no
21718 fi
21719 ;;
21720 esac
21721 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21722 # soname into executable. Probably we can add versioning support to
21723 # collect2, so additional links can be useful in future.
21724 if test "$aix_use_runtimelinking" = yes; then
21725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21726 # instead of lib<name>.a to let people know that these are not
21727 # typical AIX shared libraries.
21728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21729 else
21730 # We preserve .a as extension for shared libraries through AIX4.2
21731 # and later when we are not doing run time linking.
21732 library_names_spec='${libname}${release}.a $libname.a'
21733 soname_spec='${libname}${release}${shared_ext}$major'
21734 fi
21735 shlibpath_var=LIBPATH
21736 fi
21737 ;;
21738
21739amigaos*)
21740 library_names_spec='$libname.ixlibrary $libname.a'
21741 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021742 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 +000021743 ;;
21744
21745beos*)
21746 library_names_spec='${libname}${shared_ext}'
21747 dynamic_linker="$host_os ld.so"
21748 shlibpath_var=LIBRARY_PATH
21749 ;;
21750
Reid Spencer2706f8c2004-09-19 23:53:36 +000021751bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021752 version_type=linux
21753 need_version=no
21754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21755 soname_spec='${libname}${release}${shared_ext}$major'
21756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21757 shlibpath_var=LD_LIBRARY_PATH
21758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21760 # the default ld.so.conf also contains /usr/contrib/lib and
21761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21762 # libtool to hard-code these into programs
21763 ;;
21764
21765cygwin* | mingw* | pw32*)
21766 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000021767 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021768 need_version=no
21769 need_lib_prefix=no
21770
21771 case $GCC,$host_os in
21772 yes,cygwin* | yes,mingw* | yes,pw32*)
21773 library_names_spec='$libname.dll.a'
21774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000021775 postinstall_cmds='base_file=`basename \${file}`~
21776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21777 dldir=$destdir/`dirname \$dlpath`~
21778 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000021779 $install_prog $dir/$dlname \$dldir/$dlname~
21780 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000021781 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21782 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000021783 $rm \$dlpath'
21784 shlibpath_overrides_runpath=yes
21785
21786 case $host_os in
21787 cygwin*)
21788 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21789 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 +000021790 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000021791 ;;
21792 mingw*)
21793 # MinGW DLLs use traditional 'lib' prefix
21794 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21796 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21797 # It is most probably a Windows format PATH printed by
21798 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21799 # path with ; separators, and with drive letters. We can handle the
21800 # drive letters (cygwin fileutils understands them), so leave them,
21801 # especially as we might pass files found there to a mingw objdump,
21802 # which wouldn't understand a cygwinified path. Ahh.
21803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21804 else
21805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21806 fi
21807 ;;
21808 pw32*)
21809 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000021810 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 +000021811 ;;
21812 esac
21813 ;;
21814
21815 *)
21816 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21817 ;;
21818 esac
21819 dynamic_linker='Win32 ld.exe'
21820 # FIXME: first we should search . and the directory the executable is in
21821 shlibpath_var=PATH
21822 ;;
21823
21824darwin* | rhapsody*)
21825 dynamic_linker="$host_os dyld"
21826 version_type=darwin
21827 need_lib_prefix=no
21828 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000021829 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000021830 soname_spec='${libname}${release}${major}$shared_ext'
21831 shlibpath_overrides_runpath=yes
21832 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000021833 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000021834 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021835 if test "$GCC" = yes; then
21836 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"`
21837 else
21838 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000021839 fi
21840 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21841 ;;
21842
21843dgux*)
21844 version_type=linux
21845 need_lib_prefix=no
21846 need_version=no
21847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21848 soname_spec='${libname}${release}${shared_ext}$major'
21849 shlibpath_var=LD_LIBRARY_PATH
21850 ;;
21851
21852freebsd1*)
21853 dynamic_linker=no
21854 ;;
21855
Reid Spencer2706f8c2004-09-19 23:53:36 +000021856kfreebsd*-gnu)
21857 version_type=linux
21858 need_lib_prefix=no
21859 need_version=no
21860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21861 soname_spec='${libname}${release}${shared_ext}$major'
21862 shlibpath_var=LD_LIBRARY_PATH
21863 shlibpath_overrides_runpath=no
21864 hardcode_into_libs=yes
21865 dynamic_linker='GNU ld.so'
21866 ;;
21867
Reid Spencera773bd52006-08-04 18:18:08 +000021868freebsd* | dragonfly*)
21869 # DragonFly does not have aout. When/if they implement a new
21870 # versioning mechanism, adjust this.
21871 if test -x /usr/bin/objformat; then
21872 objformat=`/usr/bin/objformat`
21873 else
21874 case $host_os in
21875 freebsd[123]*) objformat=aout ;;
21876 *) objformat=elf ;;
21877 esac
21878 fi
John Criswell47fdd832003-07-14 16:52:07 +000021879 version_type=freebsd-$objformat
21880 case $version_type in
21881 freebsd-elf*)
21882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21883 need_version=no
21884 need_lib_prefix=no
21885 ;;
21886 freebsd-*)
21887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21888 need_version=yes
21889 ;;
21890 esac
21891 shlibpath_var=LD_LIBRARY_PATH
21892 case $host_os in
21893 freebsd2*)
21894 shlibpath_overrides_runpath=yes
21895 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021896 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000021897 shlibpath_overrides_runpath=yes
21898 hardcode_into_libs=yes
21899 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021900 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21901 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000021902 shlibpath_overrides_runpath=no
21903 hardcode_into_libs=yes
21904 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021905 freebsd*) # from 4.6 on
21906 shlibpath_overrides_runpath=yes
21907 hardcode_into_libs=yes
21908 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021909 esac
21910 ;;
21911
21912gnu*)
21913 version_type=linux
21914 need_lib_prefix=no
21915 need_version=no
21916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21917 soname_spec='${libname}${release}${shared_ext}$major'
21918 shlibpath_var=LD_LIBRARY_PATH
21919 hardcode_into_libs=yes
21920 ;;
21921
21922hpux9* | hpux10* | hpux11*)
21923 # Give a soname corresponding to the major version so that dld.sl refuses to
21924 # link against other versions.
21925 version_type=sunos
21926 need_lib_prefix=no
21927 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000021928 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021929 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021930 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000021931 hardcode_into_libs=yes
21932 dynamic_linker="$host_os dld.so"
21933 shlibpath_var=LD_LIBRARY_PATH
21934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21936 soname_spec='${libname}${release}${shared_ext}$major'
21937 if test "X$HPUX_IA64_MODE" = X32; then
21938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21939 else
21940 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21941 fi
21942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21943 ;;
21944 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021945 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021946 hardcode_into_libs=yes
21947 dynamic_linker="$host_os dld.sl"
21948 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21951 soname_spec='${libname}${release}${shared_ext}$major'
21952 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21954 ;;
21955 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000021956 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000021957 dynamic_linker="$host_os dld.sl"
21958 shlibpath_var=SHLIB_PATH
21959 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21961 soname_spec='${libname}${release}${shared_ext}$major'
21962 ;;
21963 esac
21964 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21965 postinstall_cmds='chmod 555 $lib'
21966 ;;
21967
Reid Spencera773bd52006-08-04 18:18:08 +000021968interix3*)
21969 version_type=linux
21970 need_lib_prefix=no
21971 need_version=no
21972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21973 soname_spec='${libname}${release}${shared_ext}$major'
21974 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21975 shlibpath_var=LD_LIBRARY_PATH
21976 shlibpath_overrides_runpath=no
21977 hardcode_into_libs=yes
21978 ;;
21979
John Criswell47fdd832003-07-14 16:52:07 +000021980irix5* | irix6* | nonstopux*)
21981 case $host_os in
21982 nonstopux*) version_type=nonstopux ;;
21983 *)
21984 if test "$lt_cv_prog_gnu_ld" = yes; then
21985 version_type=linux
21986 else
21987 version_type=irix
21988 fi ;;
21989 esac
21990 need_lib_prefix=no
21991 need_version=no
21992 soname_spec='${libname}${release}${shared_ext}$major'
21993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21994 case $host_os in
21995 irix5* | nonstopux*)
21996 libsuff= shlibsuff=
21997 ;;
21998 *)
21999 case $LD in # libtool.m4 will add one of these switches to LD
22000 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22001 libsuff= shlibsuff= libmagic=32-bit;;
22002 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22003 libsuff=32 shlibsuff=N32 libmagic=N32;;
22004 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22005 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22006 *) libsuff= shlibsuff= libmagic=never-match;;
22007 esac
22008 ;;
22009 esac
22010 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22011 shlibpath_overrides_runpath=no
22012 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22013 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22014 hardcode_into_libs=yes
22015 ;;
22016
22017# No shared lib support for Linux oldld, aout, or coff.
22018linux*oldld* | linux*aout* | linux*coff*)
22019 dynamic_linker=no
22020 ;;
22021
22022# This must be Linux ELF.
22023linux*)
22024 version_type=linux
22025 need_lib_prefix=no
22026 need_version=no
22027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22028 soname_spec='${libname}${release}${shared_ext}$major'
22029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22030 shlibpath_var=LD_LIBRARY_PATH
22031 shlibpath_overrides_runpath=no
22032 # This implies no fast_install, which is unacceptable.
22033 # Some rework will be needed to allow for fast_install
22034 # before this can be enabled.
22035 hardcode_into_libs=yes
22036
Reid Spencer2706f8c2004-09-19 23:53:36 +000022037 # Append ld.so.conf contents to the search path
22038 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022039 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 +000022040 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22041 fi
22042
John Criswell47fdd832003-07-14 16:52:07 +000022043 # We used to test for /lib/ld.so.1 and disable shared libraries on
22044 # powerpc, because MkLinux only supported shared libraries with the
22045 # GNU dynamic linker. Since this was broken with cross compilers,
22046 # most powerpc-linux boxes support dynamic linking these days and
22047 # people can always --disable-shared, the test was removed, and we
22048 # assume the GNU/Linux dynamic linker is in use.
22049 dynamic_linker='GNU/Linux ld.so'
22050 ;;
22051
Reid Spencer2706f8c2004-09-19 23:53:36 +000022052knetbsd*-gnu)
22053 version_type=linux
22054 need_lib_prefix=no
22055 need_version=no
22056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22057 soname_spec='${libname}${release}${shared_ext}$major'
22058 shlibpath_var=LD_LIBRARY_PATH
22059 shlibpath_overrides_runpath=no
22060 hardcode_into_libs=yes
22061 dynamic_linker='GNU ld.so'
22062 ;;
22063
John Criswell47fdd832003-07-14 16:52:07 +000022064netbsd*)
22065 version_type=sunos
22066 need_lib_prefix=no
22067 need_version=no
22068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22071 dynamic_linker='NetBSD (a.out) ld.so'
22072 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022074 soname_spec='${libname}${release}${shared_ext}$major'
22075 dynamic_linker='NetBSD ld.elf_so'
22076 fi
22077 shlibpath_var=LD_LIBRARY_PATH
22078 shlibpath_overrides_runpath=yes
22079 hardcode_into_libs=yes
22080 ;;
22081
22082newsos6)
22083 version_type=linux
22084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22085 shlibpath_var=LD_LIBRARY_PATH
22086 shlibpath_overrides_runpath=yes
22087 ;;
22088
Reid Spencer2706f8c2004-09-19 23:53:36 +000022089nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022090 version_type=linux
22091 need_lib_prefix=no
22092 need_version=no
22093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22094 soname_spec='${libname}${release}${shared_ext}$major'
22095 shlibpath_var=LD_LIBRARY_PATH
22096 shlibpath_overrides_runpath=yes
22097 ;;
22098
22099openbsd*)
22100 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022101 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022102 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022103 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22104 case $host_os in
22105 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22106 *) need_version=no ;;
22107 esac
John Criswell47fdd832003-07-14 16:52:07 +000022108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22110 shlibpath_var=LD_LIBRARY_PATH
22111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22112 case $host_os in
22113 openbsd2.[89] | openbsd2.[89].*)
22114 shlibpath_overrides_runpath=no
22115 ;;
22116 *)
22117 shlibpath_overrides_runpath=yes
22118 ;;
22119 esac
22120 else
22121 shlibpath_overrides_runpath=yes
22122 fi
22123 ;;
22124
22125os2*)
22126 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022127 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022128 need_lib_prefix=no
22129 library_names_spec='$libname${shared_ext} $libname.a'
22130 dynamic_linker='OS/2 ld.exe'
22131 shlibpath_var=LIBPATH
22132 ;;
22133
22134osf3* | osf4* | osf5*)
22135 version_type=osf
22136 need_lib_prefix=no
22137 need_version=no
22138 soname_spec='${libname}${release}${shared_ext}$major'
22139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22140 shlibpath_var=LD_LIBRARY_PATH
22141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22143 ;;
22144
John Criswell47fdd832003-07-14 16:52:07 +000022145solaris*)
22146 version_type=linux
22147 need_lib_prefix=no
22148 need_version=no
22149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22150 soname_spec='${libname}${release}${shared_ext}$major'
22151 shlibpath_var=LD_LIBRARY_PATH
22152 shlibpath_overrides_runpath=yes
22153 hardcode_into_libs=yes
22154 # ldd complains unless libraries are executable
22155 postinstall_cmds='chmod +x $lib'
22156 ;;
22157
22158sunos4*)
22159 version_type=sunos
22160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22161 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22162 shlibpath_var=LD_LIBRARY_PATH
22163 shlibpath_overrides_runpath=yes
22164 if test "$with_gnu_ld" = yes; then
22165 need_lib_prefix=no
22166 fi
22167 need_version=yes
22168 ;;
22169
Reid Spencera773bd52006-08-04 18:18:08 +000022170sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022171 version_type=linux
22172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22173 soname_spec='${libname}${release}${shared_ext}$major'
22174 shlibpath_var=LD_LIBRARY_PATH
22175 case $host_vendor in
22176 sni)
22177 shlibpath_overrides_runpath=no
22178 need_lib_prefix=no
22179 export_dynamic_flag_spec='${wl}-Blargedynsym'
22180 runpath_var=LD_RUN_PATH
22181 ;;
22182 siemens)
22183 need_lib_prefix=no
22184 ;;
22185 motorola)
22186 need_lib_prefix=no
22187 need_version=no
22188 shlibpath_overrides_runpath=no
22189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22190 ;;
22191 esac
22192 ;;
22193
22194sysv4*MP*)
22195 if test -d /usr/nec ;then
22196 version_type=linux
22197 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22198 soname_spec='$libname${shared_ext}.$major'
22199 shlibpath_var=LD_LIBRARY_PATH
22200 fi
22201 ;;
22202
Reid Spencera773bd52006-08-04 18:18:08 +000022203sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22204 version_type=freebsd-elf
22205 need_lib_prefix=no
22206 need_version=no
22207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22208 soname_spec='${libname}${release}${shared_ext}$major'
22209 shlibpath_var=LD_LIBRARY_PATH
22210 hardcode_into_libs=yes
22211 if test "$with_gnu_ld" = yes; then
22212 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22213 shlibpath_overrides_runpath=no
22214 else
22215 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22216 shlibpath_overrides_runpath=yes
22217 case $host_os in
22218 sco3.2v5*)
22219 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22220 ;;
22221 esac
22222 fi
22223 sys_lib_dlsearch_path_spec='/usr/lib'
22224 ;;
22225
John Criswell47fdd832003-07-14 16:52:07 +000022226uts4*)
22227 version_type=linux
22228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22229 soname_spec='${libname}${release}${shared_ext}$major'
22230 shlibpath_var=LD_LIBRARY_PATH
22231 ;;
22232
22233*)
22234 dynamic_linker=no
22235 ;;
22236esac
Reid Spencera773bd52006-08-04 18:18:08 +000022237{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22238echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022239test "$dynamic_linker" = no && can_build_shared=no
22240
Reid Spencera773bd52006-08-04 18:18:08 +000022241variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22242if test "$GCC" = yes; then
22243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22244fi
22245
22246{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22247echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022248hardcode_action_F77=
22249if test -n "$hardcode_libdir_flag_spec_F77" || \
22250 test -n "$runpath_var_F77" || \
22251 test "X$hardcode_automatic_F77" = "Xyes" ; then
22252
22253 # We can hardcode non-existant directories.
22254 if test "$hardcode_direct_F77" != no &&
22255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22256 # have to relink, otherwise we might link with an installed library
22257 # when we should be linking with a yet-to-be-installed one
22258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22259 test "$hardcode_minus_L_F77" != no; then
22260 # Linking always hardcodes the temporary library directory.
22261 hardcode_action_F77=relink
22262 else
22263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22264 hardcode_action_F77=immediate
22265 fi
22266else
22267 # We cannot hardcode anything, or else we can only hardcode existing
22268 # directories.
22269 hardcode_action_F77=unsupported
22270fi
Reid Spencera773bd52006-08-04 18:18:08 +000022271{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22272echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022273
22274if test "$hardcode_action_F77" = relink; then
22275 # Fast installation is not supported
22276 enable_fast_install=no
22277elif test "$shlibpath_overrides_runpath" = yes ||
22278 test "$enable_shared" = no; then
22279 # Fast installation is not necessary
22280 enable_fast_install=needless
22281fi
22282
John Criswell47fdd832003-07-14 16:52:07 +000022283
22284# The else clause should only fire when bootstrapping the
22285# libtool distribution, otherwise you forgot to ship ltmain.sh
22286# with your package, and you will get complaints that there are
22287# no rules to generate ltmain.sh.
22288if test -f "$ltmain"; then
22289 # See if we are running on zsh, and set the options which allow our commands through
22290 # without removal of \ escapes.
22291 if test -n "${ZSH_VERSION+set}" ; then
22292 setopt NO_GLOB_SUBST
22293 fi
22294 # Now quote all the things that may contain metacharacters while being
22295 # careful not to overquote the AC_SUBSTed values. We take copies of the
22296 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022297 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 +000022298 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022299 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22300 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22301 deplibs_check_method reload_flag reload_cmds need_locks \
22302 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22303 lt_cv_sys_global_symbol_to_c_name_address \
22304 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22305 old_postinstall_cmds old_postuninstall_cmds \
22306 compiler_F77 \
22307 CC_F77 \
22308 LD_F77 \
22309 lt_prog_compiler_wl_F77 \
22310 lt_prog_compiler_pic_F77 \
22311 lt_prog_compiler_static_F77 \
22312 lt_prog_compiler_no_builtin_flag_F77 \
22313 export_dynamic_flag_spec_F77 \
22314 thread_safe_flag_spec_F77 \
22315 whole_archive_flag_spec_F77 \
22316 enable_shared_with_static_runtimes_F77 \
22317 old_archive_cmds_F77 \
22318 old_archive_from_new_cmds_F77 \
22319 predep_objects_F77 \
22320 postdep_objects_F77 \
22321 predeps_F77 \
22322 postdeps_F77 \
22323 compiler_lib_search_path_F77 \
22324 archive_cmds_F77 \
22325 archive_expsym_cmds_F77 \
22326 postinstall_cmds_F77 \
22327 postuninstall_cmds_F77 \
22328 old_archive_from_expsyms_cmds_F77 \
22329 allow_undefined_flag_F77 \
22330 no_undefined_flag_F77 \
22331 export_symbols_cmds_F77 \
22332 hardcode_libdir_flag_spec_F77 \
22333 hardcode_libdir_flag_spec_ld_F77 \
22334 hardcode_libdir_separator_F77 \
22335 hardcode_automatic_F77 \
22336 module_cmds_F77 \
22337 module_expsym_cmds_F77 \
22338 lt_cv_prog_compiler_c_o_F77 \
22339 exclude_expsyms_F77 \
22340 include_expsyms_F77; do
22341
22342 case $var in
22343 old_archive_cmds_F77 | \
22344 old_archive_from_new_cmds_F77 | \
22345 archive_cmds_F77 | \
22346 archive_expsym_cmds_F77 | \
22347 module_cmds_F77 | \
22348 module_expsym_cmds_F77 | \
22349 old_archive_from_expsyms_cmds_F77 | \
22350 export_symbols_cmds_F77 | \
22351 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22352 postinstall_cmds | postuninstall_cmds | \
22353 old_postinstall_cmds | old_postuninstall_cmds | \
22354 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22355 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022356 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 +000022357 ;;
22358 *)
22359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22360 ;;
22361 esac
22362 done
22363
22364 case $lt_echo in
22365 *'\$0 --fallback-echo"')
22366 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22367 ;;
22368 esac
22369
22370cfgfile="$ofile"
22371
22372 cat <<__EOF__ >> "$cfgfile"
22373# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22374
22375# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22376
22377# Shell to use when invoking shell scripts.
22378SHELL=$lt_SHELL
22379
22380# Whether or not to build shared libraries.
22381build_libtool_libs=$enable_shared
22382
22383# Whether or not to build static libraries.
22384build_old_libs=$enable_static
22385
22386# Whether or not to add -lc for building shared libraries.
22387build_libtool_need_lc=$archive_cmds_need_lc_F77
22388
22389# Whether or not to disallow shared libs when runtime libs are static
22390allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22391
22392# Whether or not to optimize for fast installation.
22393fast_install=$enable_fast_install
22394
22395# The host system.
22396host_alias=$host_alias
22397host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000022398host_os=$host_os
22399
22400# The build system.
22401build_alias=$build_alias
22402build=$build
22403build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000022404
22405# An echo program that does not interpret backslashes.
22406echo=$lt_echo
22407
22408# The archiver.
22409AR=$lt_AR
22410AR_FLAGS=$lt_AR_FLAGS
22411
22412# A C compiler.
22413LTCC=$lt_LTCC
22414
Reid Spencera773bd52006-08-04 18:18:08 +000022415# LTCC compiler flags.
22416LTCFLAGS=$lt_LTCFLAGS
22417
John Criswell47fdd832003-07-14 16:52:07 +000022418# A language-specific compiler.
22419CC=$lt_compiler_F77
22420
22421# Is the compiler the GNU C compiler?
22422with_gcc=$GCC_F77
22423
22424# An ERE matcher.
22425EGREP=$lt_EGREP
22426
22427# The linker used to build libraries.
22428LD=$lt_LD_F77
22429
22430# Whether we need hard or soft links.
22431LN_S=$lt_LN_S
22432
22433# A BSD-compatible nm program.
22434NM=$lt_NM
22435
22436# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000022437STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000022438
22439# Used to examine libraries when file_magic_cmd begins "file"
22440MAGIC_CMD=$MAGIC_CMD
22441
22442# Used on cygwin: DLL creation program.
22443DLLTOOL="$DLLTOOL"
22444
22445# Used on cygwin: object dumper.
22446OBJDUMP="$OBJDUMP"
22447
22448# Used on cygwin: assembler.
22449AS="$AS"
22450
22451# The name of the directory that contains temporary libtool files.
22452objdir=$objdir
22453
22454# How to create reloadable object files.
22455reload_flag=$lt_reload_flag
22456reload_cmds=$lt_reload_cmds
22457
22458# How to pass a linker flag through the compiler.
22459wl=$lt_lt_prog_compiler_wl_F77
22460
22461# Object file suffix (normally "o").
22462objext="$ac_objext"
22463
22464# Old archive suffix (normally "a").
22465libext="$libext"
22466
22467# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000022468shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000022469
22470# Executable file suffix (normally "").
22471exeext="$exeext"
22472
22473# Additional compiler flags for building library objects.
22474pic_flag=$lt_lt_prog_compiler_pic_F77
22475pic_mode=$pic_mode
22476
22477# What is the maximum length of a command?
22478max_cmd_len=$lt_cv_sys_max_cmd_len
22479
22480# Does compiler simultaneously support -c and -o options?
22481compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22482
Reid Spencera773bd52006-08-04 18:18:08 +000022483# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000022484need_locks=$lt_need_locks
22485
22486# Do we need the lib prefix for modules?
22487need_lib_prefix=$need_lib_prefix
22488
22489# Do we need a version for libraries?
22490need_version=$need_version
22491
22492# Whether dlopen is supported.
22493dlopen_support=$enable_dlopen
22494
22495# Whether dlopen of programs is supported.
22496dlopen_self=$enable_dlopen_self
22497
22498# Whether dlopen of statically linked programs is supported.
22499dlopen_self_static=$enable_dlopen_self_static
22500
22501# Compiler flag to prevent dynamic linking.
22502link_static_flag=$lt_lt_prog_compiler_static_F77
22503
22504# Compiler flag to turn off builtin functions.
22505no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22506
22507# Compiler flag to allow reflexive dlopens.
22508export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22509
22510# Compiler flag to generate shared objects directly from archives.
22511whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22512
22513# Compiler flag to generate thread-safe objects.
22514thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22515
22516# Library versioning type.
22517version_type=$version_type
22518
22519# Format of library name prefix.
22520libname_spec=$lt_libname_spec
22521
22522# List of archive names. First name is the real one, the rest are links.
22523# The last name is the one that the linker finds with -lNAME.
22524library_names_spec=$lt_library_names_spec
22525
22526# The coded name of the library, if different from the real name.
22527soname_spec=$lt_soname_spec
22528
22529# Commands used to build and install an old-style archive.
22530RANLIB=$lt_RANLIB
22531old_archive_cmds=$lt_old_archive_cmds_F77
22532old_postinstall_cmds=$lt_old_postinstall_cmds
22533old_postuninstall_cmds=$lt_old_postuninstall_cmds
22534
22535# Create an old-style archive from a shared archive.
22536old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22537
22538# Create a temporary old-style archive to link instead of a shared archive.
22539old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22540
22541# Commands used to build and install a shared archive.
22542archive_cmds=$lt_archive_cmds_F77
22543archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22544postinstall_cmds=$lt_postinstall_cmds
22545postuninstall_cmds=$lt_postuninstall_cmds
22546
22547# Commands used to build a loadable module (assumed same as above if empty)
22548module_cmds=$lt_module_cmds_F77
22549module_expsym_cmds=$lt_module_expsym_cmds_F77
22550
22551# Commands to strip libraries.
22552old_striplib=$lt_old_striplib
22553striplib=$lt_striplib
22554
22555# Dependencies to place before the objects being linked to create a
22556# shared library.
22557predep_objects=$lt_predep_objects_F77
22558
22559# Dependencies to place after the objects being linked to create a
22560# shared library.
22561postdep_objects=$lt_postdep_objects_F77
22562
22563# Dependencies to place before the objects being linked to create a
22564# shared library.
22565predeps=$lt_predeps_F77
22566
22567# Dependencies to place after the objects being linked to create a
22568# shared library.
22569postdeps=$lt_postdeps_F77
22570
22571# The library search path used internally by the compiler when linking
22572# a shared library.
22573compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22574
22575# Method to check whether dependent libraries are shared objects.
22576deplibs_check_method=$lt_deplibs_check_method
22577
22578# Command to use when deplibs_check_method == file_magic.
22579file_magic_cmd=$lt_file_magic_cmd
22580
22581# Flag that allows shared libraries with undefined symbols to be built.
22582allow_undefined_flag=$lt_allow_undefined_flag_F77
22583
22584# Flag that forces no undefined symbols.
22585no_undefined_flag=$lt_no_undefined_flag_F77
22586
22587# Commands used to finish a libtool library installation in a directory.
22588finish_cmds=$lt_finish_cmds
22589
22590# Same as above, but a single script fragment to be evaled but not shown.
22591finish_eval=$lt_finish_eval
22592
22593# Take the output of nm and produce a listing of raw symbols and C names.
22594global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22595
22596# Transform the output of nm in a proper C declaration
22597global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22598
22599# Transform the output of nm in a C name address pair
22600global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22601
22602# This is the shared library runtime path variable.
22603runpath_var=$runpath_var
22604
22605# This is the shared library path variable.
22606shlibpath_var=$shlibpath_var
22607
22608# Is shlibpath searched before the hard-coded library search path?
22609shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22610
22611# How to hardcode a shared library path into an executable.
22612hardcode_action=$hardcode_action_F77
22613
22614# Whether we should hardcode library paths into libraries.
22615hardcode_into_libs=$hardcode_into_libs
22616
22617# Flag to hardcode \$libdir into a binary during linking.
22618# This must work even if \$libdir does not exist.
22619hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22620
22621# If ld is used when linking, flag to hardcode \$libdir into
22622# a binary during linking. This must work even if \$libdir does
22623# not exist.
22624hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22625
22626# Whether we need a single -rpath flag with a separated argument.
22627hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22628
22629# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22630# resulting binary.
22631hardcode_direct=$hardcode_direct_F77
22632
22633# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22634# resulting binary.
22635hardcode_minus_L=$hardcode_minus_L_F77
22636
22637# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22638# the resulting binary.
22639hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22640
22641# Set to yes if building a shared library automatically hardcodes DIR into the library
22642# and all subsequent libraries and executables linked against it.
22643hardcode_automatic=$hardcode_automatic_F77
22644
22645# Variables whose values should be saved in libtool wrapper scripts and
22646# restored at relink time.
22647variables_saved_for_relink="$variables_saved_for_relink"
22648
22649# Whether libtool must link a program against all its dependency libraries.
22650link_all_deplibs=$link_all_deplibs_F77
22651
22652# Compile-time system search path for libraries
22653sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22654
22655# Run-time system search path for libraries
22656sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22657
22658# Fix the shell variable \$srcfile for the compiler.
22659fix_srcfile_path="$fix_srcfile_path_F77"
22660
22661# Set to yes if exported symbols are required.
22662always_export_symbols=$always_export_symbols_F77
22663
22664# The commands to list exported symbols.
22665export_symbols_cmds=$lt_export_symbols_cmds_F77
22666
22667# The commands to extract the exported symbol list from a shared archive.
22668extract_expsyms_cmds=$lt_extract_expsyms_cmds
22669
22670# Symbols that should not be listed in the preloaded symbols.
22671exclude_expsyms=$lt_exclude_expsyms_F77
22672
22673# Symbols that must always be exported.
22674include_expsyms=$lt_include_expsyms_F77
22675
22676# ### END LIBTOOL TAG CONFIG: $tagname
22677
22678__EOF__
22679
22680
22681else
22682 # If there is no Makefile yet, we rely on a make rule to execute
22683 # `config.status --recheck' to rerun these tests and create the
22684 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022685 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22686 if test -f "$ltmain_in"; then
22687 test -f Makefile && make "$ltmain"
22688 fi
John Criswell47fdd832003-07-14 16:52:07 +000022689fi
22690
22691
22692ac_ext=c
22693ac_cpp='$CPP $CPPFLAGS'
22694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22696ac_compiler_gnu=$ac_cv_c_compiler_gnu
22697
22698CC="$lt_save_CC"
22699
22700 else
22701 tagname=""
22702 fi
22703 ;;
22704
22705 GCJ)
22706 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000022707 ac_ext=c
22708ac_cpp='$CPP $CPPFLAGS'
22709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22711ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000022712
22713
22714# Source file extension for Java test sources.
22715ac_ext=java
22716
22717# Object file extension for compiled Java test sources.
22718objext=o
22719objext_GCJ=$objext
22720
22721# Code to be used in simple compile tests
22722lt_simple_compile_test_code="class foo {}\n"
22723
22724# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000022725lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000022726
22727# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22728
22729# If no C compiler was specified, use CC.
22730LTCC=${LTCC-"$CC"}
22731
Reid Spencera773bd52006-08-04 18:18:08 +000022732# If no C compiler flags were specified, use CFLAGS.
22733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22734
John Criswell47fdd832003-07-14 16:52:07 +000022735# Allow CC to be a program name with arguments.
22736compiler=$CC
22737
22738
Reid Spencera773bd52006-08-04 18:18:08 +000022739# save warnings/boilerplate of simple test code
22740ac_outfile=conftest.$ac_objext
22741printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22742eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22743_lt_compiler_boilerplate=`cat conftest.err`
22744$rm conftest*
22745
22746ac_outfile=conftest.$ac_objext
22747printf "$lt_simple_link_test_code" >conftest.$ac_ext
22748eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22749_lt_linker_boilerplate=`cat conftest.err`
22750$rm conftest*
22751
22752
John Criswell47fdd832003-07-14 16:52:07 +000022753# Allow CC to be a program name with arguments.
22754lt_save_CC="$CC"
22755CC=${GCJ-"gcj"}
22756compiler=$CC
22757compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000022758for cc_temp in $compiler""; do
22759 case $cc_temp in
22760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22762 \-*) ;;
22763 *) break;;
22764 esac
22765done
22766cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22767
John Criswell47fdd832003-07-14 16:52:07 +000022768
22769# GCJ did not exist at the time GCC didn't implicitly link libc in.
22770archive_cmds_need_lc_GCJ=no
22771
Reid Spencera773bd52006-08-04 18:18:08 +000022772old_archive_cmds_GCJ=$old_archive_cmds
22773
John Criswell47fdd832003-07-14 16:52:07 +000022774
22775lt_prog_compiler_no_builtin_flag_GCJ=
22776
22777if test "$GCC" = yes; then
22778 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22779
Reid Spencer2706f8c2004-09-19 23:53:36 +000022780
Reid Spencera773bd52006-08-04 18:18:08 +000022781{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22782echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022783if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785else
22786 lt_cv_prog_compiler_rtti_exceptions=no
22787 ac_outfile=conftest.$ac_objext
22788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22789 lt_compiler_flag="-fno-rtti -fno-exceptions"
22790 # Insert the option either (1) after the last *FLAGS variable, or
22791 # (2) before a word containing "conftest.", or (3) at the end.
22792 # Note that $ac_compile itself does not contain backslashes and begins
22793 # with a dollar sign (not a hyphen), so the echo should work correctly.
22794 # The option is referenced via a variable to avoid confusing sed.
22795 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22798 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky2ab1d862009-01-20 00:52:24 +000022799 (eval echo "\"\$as_me:22799: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022800 (eval "$lt_compile" 2>conftest.err)
22801 ac_status=$?
22802 cat conftest.err >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000022803 echo "$as_me:22803: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022804 if (exit $ac_status) && test -s "$ac_outfile"; then
22805 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000022806 # So say no if there are warnings other than the usual output.
22807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022810 lt_cv_prog_compiler_rtti_exceptions=yes
22811 fi
22812 fi
22813 $rm conftest*
22814
22815fi
Reid Spencera773bd52006-08-04 18:18:08 +000022816{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22817echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022818
22819if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22820 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22821else
22822 :
22823fi
22824
22825fi
22826
22827lt_prog_compiler_wl_GCJ=
22828lt_prog_compiler_pic_GCJ=
22829lt_prog_compiler_static_GCJ=
22830
Reid Spencera773bd52006-08-04 18:18:08 +000022831{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22832echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022833
22834 if test "$GCC" = yes; then
22835 lt_prog_compiler_wl_GCJ='-Wl,'
22836 lt_prog_compiler_static_GCJ='-static'
22837
22838 case $host_os in
22839 aix*)
22840 # All AIX code is PIC.
22841 if test "$host_cpu" = ia64; then
22842 # AIX 5 now supports IA64 processor
22843 lt_prog_compiler_static_GCJ='-Bstatic'
22844 fi
22845 ;;
22846
22847 amigaos*)
22848 # FIXME: we need at least 68020 code to build shared libraries, but
22849 # adding the `-m68020' flag to GCC prevents building anything better,
22850 # like `-m68040'.
22851 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22852 ;;
22853
22854 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22855 # PIC is the default for these OSes.
22856 ;;
22857
22858 mingw* | pw32* | os2*)
22859 # This hack is so that the source file can tell whether it is being
22860 # built for inclusion in a dll (and should export symbols for example).
22861 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22862 ;;
22863
22864 darwin* | rhapsody*)
22865 # PIC is the default on this platform
22866 # Common symbols not allowed in MH_DYLIB files
22867 lt_prog_compiler_pic_GCJ='-fno-common'
22868 ;;
22869
Reid Spencera773bd52006-08-04 18:18:08 +000022870 interix3*)
22871 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22872 # Instead, we relocate shared libraries at runtime.
22873 ;;
22874
John Criswell47fdd832003-07-14 16:52:07 +000022875 msdosdjgpp*)
22876 # Just because we use GCC doesn't mean we suddenly get shared libraries
22877 # on systems that don't support them.
22878 lt_prog_compiler_can_build_shared_GCJ=no
22879 enable_shared=no
22880 ;;
22881
22882 sysv4*MP*)
22883 if test -d /usr/nec; then
22884 lt_prog_compiler_pic_GCJ=-Kconform_pic
22885 fi
22886 ;;
22887
22888 hpux*)
22889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22890 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022891 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022892 hppa*64*|ia64*)
22893 # +Z the default
22894 ;;
22895 *)
22896 lt_prog_compiler_pic_GCJ='-fPIC'
22897 ;;
22898 esac
22899 ;;
22900
22901 *)
22902 lt_prog_compiler_pic_GCJ='-fPIC'
22903 ;;
22904 esac
22905 else
22906 # PORTME Check for flag to pass linker flags through the system compiler.
22907 case $host_os in
22908 aix*)
22909 lt_prog_compiler_wl_GCJ='-Wl,'
22910 if test "$host_cpu" = ia64; then
22911 # AIX 5 now supports IA64 processor
22912 lt_prog_compiler_static_GCJ='-Bstatic'
22913 else
22914 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22915 fi
22916 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022917 darwin*)
22918 # PIC is the default on this platform
22919 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000022920 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022921 xlc*)
22922 lt_prog_compiler_pic_GCJ='-qnocommon'
22923 lt_prog_compiler_wl_GCJ='-Wl,'
22924 ;;
22925 esac
22926 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022927
22928 mingw* | pw32* | os2*)
22929 # This hack is so that the source file can tell whether it is being
22930 # built for inclusion in a dll (and should export symbols for example).
22931 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22932 ;;
22933
22934 hpux9* | hpux10* | hpux11*)
22935 lt_prog_compiler_wl_GCJ='-Wl,'
22936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22937 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000022938 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022939 hppa*64*|ia64*)
22940 # +Z the default
22941 ;;
22942 *)
22943 lt_prog_compiler_pic_GCJ='+Z'
22944 ;;
22945 esac
22946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22947 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22948 ;;
22949
22950 irix5* | irix6* | nonstopux*)
22951 lt_prog_compiler_wl_GCJ='-Wl,'
22952 # PIC (with -KPIC) is the default.
22953 lt_prog_compiler_static_GCJ='-non_shared'
22954 ;;
22955
22956 newsos6)
22957 lt_prog_compiler_pic_GCJ='-KPIC'
22958 lt_prog_compiler_static_GCJ='-Bstatic'
22959 ;;
22960
22961 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000022962 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022963 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000022964 lt_prog_compiler_wl_GCJ='-Wl,'
22965 lt_prog_compiler_pic_GCJ='-KPIC'
22966 lt_prog_compiler_static_GCJ='-static'
22967 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022968 pgcc* | pgf77* | pgf90* | pgf95*)
22969 # Portland Group compilers (*not* the Pentium gcc compiler,
22970 # which looks to be a dead project)
22971 lt_prog_compiler_wl_GCJ='-Wl,'
22972 lt_prog_compiler_pic_GCJ='-fpic'
22973 lt_prog_compiler_static_GCJ='-Bstatic'
22974 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022975 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000022976 lt_prog_compiler_wl_GCJ='-Wl,'
22977 # All Alpha code is PIC.
22978 lt_prog_compiler_static_GCJ='-non_shared'
22979 ;;
22980 esac
22981 ;;
22982
22983 osf3* | osf4* | osf5*)
22984 lt_prog_compiler_wl_GCJ='-Wl,'
22985 # All OSF/1 code is PIC.
22986 lt_prog_compiler_static_GCJ='-non_shared'
22987 ;;
22988
John Criswell47fdd832003-07-14 16:52:07 +000022989 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022990 lt_prog_compiler_pic_GCJ='-KPIC'
22991 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000022992 case $cc_basename in
22993 f77* | f90* | f95*)
22994 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22995 *)
22996 lt_prog_compiler_wl_GCJ='-Wl,';;
22997 esac
John Criswell47fdd832003-07-14 16:52:07 +000022998 ;;
22999
23000 sunos4*)
23001 lt_prog_compiler_wl_GCJ='-Qoption ld '
23002 lt_prog_compiler_pic_GCJ='-PIC'
23003 lt_prog_compiler_static_GCJ='-Bstatic'
23004 ;;
23005
Reid Spencera773bd52006-08-04 18:18:08 +000023006 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023007 lt_prog_compiler_wl_GCJ='-Wl,'
23008 lt_prog_compiler_pic_GCJ='-KPIC'
23009 lt_prog_compiler_static_GCJ='-Bstatic'
23010 ;;
23011
23012 sysv4*MP*)
23013 if test -d /usr/nec ;then
23014 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23015 lt_prog_compiler_static_GCJ='-Bstatic'
23016 fi
23017 ;;
23018
Reid Spencera773bd52006-08-04 18:18:08 +000023019 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23020 lt_prog_compiler_wl_GCJ='-Wl,'
23021 lt_prog_compiler_pic_GCJ='-KPIC'
23022 lt_prog_compiler_static_GCJ='-Bstatic'
23023 ;;
23024
23025 unicos*)
23026 lt_prog_compiler_wl_GCJ='-Wl,'
23027 lt_prog_compiler_can_build_shared_GCJ=no
23028 ;;
23029
John Criswell47fdd832003-07-14 16:52:07 +000023030 uts4*)
23031 lt_prog_compiler_pic_GCJ='-pic'
23032 lt_prog_compiler_static_GCJ='-Bstatic'
23033 ;;
23034
23035 *)
23036 lt_prog_compiler_can_build_shared_GCJ=no
23037 ;;
23038 esac
23039 fi
23040
Reid Spencera773bd52006-08-04 18:18:08 +000023041{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23042echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023043
23044#
23045# Check to make sure the PIC flag actually works.
23046#
23047if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023048
Reid Spencera773bd52006-08-04 18:18:08 +000023049{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23050echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023051if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23052 echo $ECHO_N "(cached) $ECHO_C" >&6
23053else
23054 lt_prog_compiler_pic_works_GCJ=no
23055 ac_outfile=conftest.$ac_objext
23056 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23057 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23058 # Insert the option either (1) after the last *FLAGS variable, or
23059 # (2) before a word containing "conftest.", or (3) at the end.
23060 # Note that $ac_compile itself does not contain backslashes and begins
23061 # with a dollar sign (not a hyphen), so the echo should work correctly.
23062 # The option is referenced via a variable to avoid confusing sed.
23063 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23066 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky2ab1d862009-01-20 00:52:24 +000023067 (eval echo "\"\$as_me:23067: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023068 (eval "$lt_compile" 2>conftest.err)
23069 ac_status=$?
23070 cat conftest.err >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000023071 echo "$as_me:23071: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023072 if (exit $ac_status) && test -s "$ac_outfile"; then
23073 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023074 # So say no if there are warnings other than the usual output.
23075 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023078 lt_prog_compiler_pic_works_GCJ=yes
23079 fi
23080 fi
23081 $rm conftest*
23082
23083fi
Reid Spencera773bd52006-08-04 18:18:08 +000023084{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23085echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023086
23087if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23088 case $lt_prog_compiler_pic_GCJ in
23089 "" | " "*) ;;
23090 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23091 esac
23092else
23093 lt_prog_compiler_pic_GCJ=
23094 lt_prog_compiler_can_build_shared_GCJ=no
23095fi
23096
23097fi
Reid Spencera773bd52006-08-04 18:18:08 +000023098case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023099 # For platforms which do not support PIC, -DPIC is meaningless:
23100 *djgpp*)
23101 lt_prog_compiler_pic_GCJ=
23102 ;;
23103 *)
23104 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23105 ;;
23106esac
23107
Reid Spencera773bd52006-08-04 18:18:08 +000023108#
23109# Check to make sure the static flag actually works.
23110#
23111wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23112{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23113echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23114if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23116else
23117 lt_prog_compiler_static_works_GCJ=no
23118 save_LDFLAGS="$LDFLAGS"
23119 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23120 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23121 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23122 # The linker can only warn and ignore the option if not recognized
23123 # So say no if there are warnings
23124 if test -s conftest.err; then
23125 # Append any errors to the config.log.
23126 cat conftest.err 1>&5
23127 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23129 if diff conftest.exp conftest.er2 >/dev/null; then
23130 lt_prog_compiler_static_works_GCJ=yes
23131 fi
23132 else
23133 lt_prog_compiler_static_works_GCJ=yes
23134 fi
23135 fi
23136 $rm conftest*
23137 LDFLAGS="$save_LDFLAGS"
23138
23139fi
23140{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23141echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23142
23143if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23144 :
23145else
23146 lt_prog_compiler_static_GCJ=
23147fi
23148
23149
23150{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23151echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023152if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23154else
23155 lt_cv_prog_compiler_c_o_GCJ=no
23156 $rm -r conftest 2>/dev/null
23157 mkdir conftest
23158 cd conftest
23159 mkdir out
23160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23161
John Criswell47fdd832003-07-14 16:52:07 +000023162 lt_compiler_flag="-o out/conftest2.$ac_objext"
23163 # Insert the option either (1) after the last *FLAGS variable, or
23164 # (2) before a word containing "conftest.", or (3) at the end.
23165 # Note that $ac_compile itself does not contain backslashes and begins
23166 # with a dollar sign (not a hyphen), so the echo should work correctly.
23167 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23170 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky2ab1d862009-01-20 00:52:24 +000023171 (eval echo "\"\$as_me:23171: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023172 (eval "$lt_compile" 2>out/conftest.err)
23173 ac_status=$?
23174 cat out/conftest.err >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000023175 echo "$as_me:23175: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23177 then
23178 # The compiler can only warn and ignore the option if not recognized
23179 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023180 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023183 lt_cv_prog_compiler_c_o_GCJ=yes
23184 fi
23185 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023186 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023187 $rm conftest*
23188 # SGI C++ compiler will create directory out/ii_files/ for
23189 # template instantiation
23190 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23191 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023192 cd ..
23193 rmdir conftest
23194 $rm conftest*
23195
23196fi
Reid Spencera773bd52006-08-04 18:18:08 +000023197{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23198echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023199
23200
23201hard_links="nottested"
23202if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23203 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023204 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23205echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023206 hard_links=yes
23207 $rm conftest*
23208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23209 touch conftest.a
23210 ln conftest.a conftest.b 2>&5 || hard_links=no
23211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023212 { echo "$as_me:$LINENO: result: $hard_links" >&5
23213echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023214 if test "$hard_links" = no; then
23215 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23216echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23217 need_locks=warn
23218 fi
23219else
23220 need_locks=no
23221fi
23222
Reid Spencera773bd52006-08-04 18:18:08 +000023223{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23224echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023225
23226 runpath_var=
23227 allow_undefined_flag_GCJ=
23228 enable_shared_with_static_runtimes_GCJ=no
23229 archive_cmds_GCJ=
23230 archive_expsym_cmds_GCJ=
23231 old_archive_From_new_cmds_GCJ=
23232 old_archive_from_expsyms_cmds_GCJ=
23233 export_dynamic_flag_spec_GCJ=
23234 whole_archive_flag_spec_GCJ=
23235 thread_safe_flag_spec_GCJ=
23236 hardcode_libdir_flag_spec_GCJ=
23237 hardcode_libdir_flag_spec_ld_GCJ=
23238 hardcode_libdir_separator_GCJ=
23239 hardcode_direct_GCJ=no
23240 hardcode_minus_L_GCJ=no
23241 hardcode_shlibpath_var_GCJ=unsupported
23242 link_all_deplibs_GCJ=unknown
23243 hardcode_automatic_GCJ=no
23244 module_cmds_GCJ=
23245 module_expsym_cmds_GCJ=
23246 always_export_symbols_GCJ=no
23247 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23248 # include_expsyms should be a list of space-separated symbols to be *always*
23249 # included in the symbol list
23250 include_expsyms_GCJ=
23251 # exclude_expsyms can be an extended regexp of symbols to exclude
23252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23254 # as well as any symbol that contains `d'.
23255 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23257 # platforms (ab)use it in PIC code, but their linkers get confused if
23258 # the symbol is explicitly referenced. Since portable code cannot
23259 # rely on this symbol name, it's probably fine to never include it in
23260 # preloaded symbol tables.
23261 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023262 # Just being paranoid about ensuring that cc_basename is set.
23263 for cc_temp in $compiler""; do
23264 case $cc_temp in
23265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23267 \-*) ;;
23268 *) break;;
23269 esac
23270done
23271cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023272
23273 case $host_os in
23274 cygwin* | mingw* | pw32*)
23275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23276 # When not using gcc, we currently assume that we are using
23277 # Microsoft Visual C++.
23278 if test "$GCC" != yes; then
23279 with_gnu_ld=no
23280 fi
23281 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023282 interix*)
23283 # we just hope/assume this is gcc and not c89 (= MSVC++)
23284 with_gnu_ld=yes
23285 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023286 openbsd*)
23287 with_gnu_ld=no
23288 ;;
23289 esac
23290
23291 ld_shlibs_GCJ=yes
23292 if test "$with_gnu_ld" = yes; then
23293 # If archive_cmds runs LD, not CC, wlarc should be empty
23294 wlarc='${wl}'
23295
Reid Spencera773bd52006-08-04 18:18:08 +000023296 # Set some defaults for GNU ld with shared library support. These
23297 # are reset later if shared libraries are not supported. Putting them
23298 # here allows them to be overridden if necessary.
23299 runpath_var=LD_RUN_PATH
23300 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23301 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23302 # ancient GNU ld didn't support --whole-archive et. al.
23303 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23304 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23305 else
23306 whole_archive_flag_spec_GCJ=
23307 fi
23308 supports_anon_versioning=no
23309 case `$LD -v 2>/dev/null` in
23310 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23311 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23312 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23313 *\ 2.11.*) ;; # other 2.11 versions
23314 *) supports_anon_versioning=yes ;;
23315 esac
23316
John Criswell47fdd832003-07-14 16:52:07 +000023317 # See if GNU ld supports shared libraries.
23318 case $host_os in
23319 aix3* | aix4* | aix5*)
23320 # On AIX/PPC, the GNU linker is very broken
23321 if test "$host_cpu" != ia64; then
23322 ld_shlibs_GCJ=no
23323 cat <<EOF 1>&2
23324
23325*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23326*** to be unable to reliably create shared libraries on AIX.
23327*** Therefore, libtool is disabling shared libraries support. If you
23328*** really care for shared libraries, you may want to modify your PATH
23329*** so that a non-GNU linker is found, and then restart.
23330
23331EOF
23332 fi
23333 ;;
23334
23335 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023336 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 +000023337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23338 hardcode_minus_L_GCJ=yes
23339
23340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23341 # that the semantics of dynamic libraries on AmigaOS, at least up
23342 # to version 4, is to share data among multiple programs linked
23343 # with the same dynamic library. Since this doesn't match the
23344 # behavior of shared libraries on other platforms, we can't use
23345 # them.
23346 ld_shlibs_GCJ=no
23347 ;;
23348
23349 beos*)
23350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23351 allow_undefined_flag_GCJ=unsupported
23352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23353 # support --undefined. This deserves some investigation. FIXME
23354 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23355 else
23356 ld_shlibs_GCJ=no
23357 fi
23358 ;;
23359
23360 cygwin* | mingw* | pw32*)
23361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23362 # as there is no search path for DLLs.
23363 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23364 allow_undefined_flag_GCJ=unsupported
23365 always_export_symbols_GCJ=no
23366 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023367 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 +000023368
23369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000023370 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 +000023371 # If the export-symbols file already is a .def file (1st line
23372 # is EXPORTS), use it as is; otherwise, prepend...
23373 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23374 cp $export_symbols $output_objdir/$soname.def;
23375 else
23376 echo EXPORTS > $output_objdir/$soname.def;
23377 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000023378 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000023379 $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 +000023380 else
Reid Spencera773bd52006-08-04 18:18:08 +000023381 ld_shlibs_GCJ=no
23382 fi
23383 ;;
23384
23385 interix3*)
23386 hardcode_direct_GCJ=no
23387 hardcode_shlibpath_var_GCJ=no
23388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23389 export_dynamic_flag_spec_GCJ='${wl}-E'
23390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23391 # Instead, shared libraries are loaded at an image base (0x10000000 by
23392 # default) and relocated if they conflict, which is a slow very memory
23393 # consuming and fragmenting process. To avoid this, we pick a random,
23394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23395 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23396 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'
23397 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'
23398 ;;
23399
23400 linux*)
23401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23402 tmp_addflag=
23403 case $cc_basename,$host_cpu in
23404 pgcc*) # Portland Group C compiler
23405 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'
23406 tmp_addflag=' $pic_flag'
23407 ;;
23408 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23409 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'
23410 tmp_addflag=' $pic_flag -Mnomain' ;;
23411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23412 tmp_addflag=' -i_dynamic' ;;
23413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23414 tmp_addflag=' -i_dynamic -nofor_main' ;;
23415 ifc* | ifort*) # Intel Fortran compiler
23416 tmp_addflag=' -nofor_main' ;;
23417 esac
23418 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23419
23420 if test $supports_anon_versioning = yes; then
23421 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23423 $echo "local: *; };" >> $output_objdir/$libname.ver~
23424 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23425 fi
23426 else
23427 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023428 fi
23429 ;;
23430
23431 netbsd*)
23432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23433 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23434 wlarc=
23435 else
23436 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23437 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23438 fi
23439 ;;
23440
Reid Spencera773bd52006-08-04 18:18:08 +000023441 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023442 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23443 ld_shlibs_GCJ=no
23444 cat <<EOF 1>&2
23445
23446*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23447*** create shared libraries on Solaris systems. Therefore, libtool
23448*** is disabling shared libraries support. We urge you to upgrade GNU
23449*** binutils to release 2.9.1 or newer. Another option is to modify
23450*** your PATH or compiler configuration so that the native linker is
23451*** used, and then restart.
23452
23453EOF
23454 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23455 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23456 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23457 else
23458 ld_shlibs_GCJ=no
23459 fi
23460 ;;
23461
Reid Spencera773bd52006-08-04 18:18:08 +000023462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23463 case `$LD -v 2>&1` in
23464 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23465 ld_shlibs_GCJ=no
23466 cat <<_LT_EOF 1>&2
23467
23468*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23469*** reliably create shared libraries on SCO systems. Therefore, libtool
23470*** is disabling shared libraries support. We urge you to upgrade GNU
23471*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23472*** your PATH or compiler configuration so that the native linker is
23473*** used, and then restart.
23474
23475_LT_EOF
23476 ;;
23477 *)
23478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23479 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23482 else
23483 ld_shlibs_GCJ=no
23484 fi
23485 ;;
23486 esac
23487 ;;
23488
John Criswell47fdd832003-07-14 16:52:07 +000023489 sunos4*)
23490 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23491 wlarc=
23492 hardcode_direct_GCJ=yes
23493 hardcode_shlibpath_var_GCJ=no
23494 ;;
23495
23496 *)
23497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23499 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23500 else
23501 ld_shlibs_GCJ=no
23502 fi
23503 ;;
23504 esac
23505
Reid Spencera773bd52006-08-04 18:18:08 +000023506 if test "$ld_shlibs_GCJ" = no; then
23507 runpath_var=
23508 hardcode_libdir_flag_spec_GCJ=
23509 export_dynamic_flag_spec_GCJ=
23510 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000023511 fi
23512 else
23513 # PORTME fill in a description of your system's linker (not GNU ld)
23514 case $host_os in
23515 aix3*)
23516 allow_undefined_flag_GCJ=unsupported
23517 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000023518 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 +000023519 # Note: this linker hardcodes the directories in LIBPATH if there
23520 # are no directories specified by -L.
23521 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000023523 # Neither direct hardcoding nor static linking is supported with a
23524 # broken collect2.
23525 hardcode_direct_GCJ=unsupported
23526 fi
23527 ;;
23528
23529 aix4* | aix5*)
23530 if test "$host_cpu" = ia64; then
23531 # On IA64, the linker does run time linking by default, so we don't
23532 # have to do anything special.
23533 aix_use_runtimelinking=no
23534 exp_sym_flag='-Bexport'
23535 no_entry_flag=""
23536 else
23537 # If we're using GNU nm, then we don't want the "-C" option.
23538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23539 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23540 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'
23541 else
23542 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'
23543 fi
23544 aix_use_runtimelinking=no
23545
23546 # Test if we are trying to use run time linking or normal
23547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23548 # need to do runtime linking.
23549 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23550 for ld_flag in $LDFLAGS; do
23551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23552 aix_use_runtimelinking=yes
23553 break
23554 fi
23555 done
Reid Spencera773bd52006-08-04 18:18:08 +000023556 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023557 esac
23558
23559 exp_sym_flag='-bexport'
23560 no_entry_flag='-bnoentry'
23561 fi
23562
23563 # When large executables or shared objects are built, AIX ld can
23564 # have problems creating the table of contents. If linking a library
23565 # or program results in "error TOC overflow" add -mminimal-toc to
23566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23568
23569 archive_cmds_GCJ=''
23570 hardcode_direct_GCJ=yes
23571 hardcode_libdir_separator_GCJ=':'
23572 link_all_deplibs_GCJ=yes
23573
23574 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023575 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000023576 # We only want to do this on AIX 4.2 and lower, the check
23577 # below for broken collect2 doesn't work under 4.3+
23578 collect2name=`${CC} -print-prog-name=collect2`
23579 if test -f "$collect2name" && \
23580 strings "$collect2name" | grep resolve_lib_name >/dev/null
23581 then
23582 # We have reworked collect2
23583 hardcode_direct_GCJ=yes
23584 else
23585 # We have old collect2
23586 hardcode_direct_GCJ=unsupported
23587 # It fails to find uninstalled libraries when the uninstalled
23588 # path is not listed in the libpath. Setting hardcode_minus_L
23589 # to unsupported forces relinking
23590 hardcode_minus_L_GCJ=yes
23591 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23592 hardcode_libdir_separator_GCJ=
23593 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023594 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023595 esac
23596 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000023597 if test "$aix_use_runtimelinking" = yes; then
23598 shared_flag="$shared_flag "'${wl}-G'
23599 fi
John Criswell47fdd832003-07-14 16:52:07 +000023600 else
23601 # not using gcc
23602 if test "$host_cpu" = ia64; then
23603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23604 # chokes on -Wl,-G. The following line is correct:
23605 shared_flag='-G'
23606 else
Reid Spencera773bd52006-08-04 18:18:08 +000023607 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000023608 shared_flag='${wl}-G'
23609 else
23610 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000023611 fi
John Criswell47fdd832003-07-14 16:52:07 +000023612 fi
23613 fi
23614
23615 # It seems that -bexpall does not export symbols beginning with
23616 # underscore (_), so it is better to generate a list of symbols to export.
23617 always_export_symbols_GCJ=yes
23618 if test "$aix_use_runtimelinking" = yes; then
23619 # Warning - without using the other runtime loading flags (-brtl),
23620 # -berok will link without error, but may produce a broken library.
23621 allow_undefined_flag_GCJ='-berok'
23622 # Determine the default libpath from the value encoded in an empty executable.
23623 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023624/* confdefs.h. */
23625_ACEOF
23626cat confdefs.h >>conftest.$ac_ext
23627cat >>conftest.$ac_ext <<_ACEOF
23628/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023629
John Criswell47fdd832003-07-14 16:52:07 +000023630int
23631main ()
23632{
23633
23634 ;
23635 return 0;
23636}
23637_ACEOF
23638rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023639if { (ac_try="$ac_link"
23640case "(($ac_try" in
23641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23643esac
23644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23645 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023647 grep -v '^ *+' conftest.er1 >conftest.err
23648 rm -f conftest.er1
23649 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000023651 (exit $ac_status); } && {
23652 test -z "$ac_c_werror_flag" ||
23653 test ! -s conftest.err
23654 } && test -s conftest$ac_exeext &&
23655 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023656
23657aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23658}'`
23659# Check for a 64-bit object if we didn't find anything.
23660if 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; }
23661}'`; fi
23662else
23663 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023664sed 's/^/| /' conftest.$ac_ext >&5
23665
Reid Spencera773bd52006-08-04 18:18:08 +000023666
John Criswell47fdd832003-07-14 16:52:07 +000023667fi
Reid Spencera773bd52006-08-04 18:18:08 +000023668
Nick Lewycky2ab1d862009-01-20 00:52:24 +000023669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023670 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023671if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23672
23673 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000023674 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 +000023675 else
23676 if test "$host_cpu" = ia64; then
23677 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23678 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000023679 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 +000023680 else
23681 # Determine the default libpath from the value encoded in an empty executable.
23682 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023683/* confdefs.h. */
23684_ACEOF
23685cat confdefs.h >>conftest.$ac_ext
23686cat >>conftest.$ac_ext <<_ACEOF
23687/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023688
John Criswell47fdd832003-07-14 16:52:07 +000023689int
23690main ()
23691{
23692
23693 ;
23694 return 0;
23695}
23696_ACEOF
23697rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000023698if { (ac_try="$ac_link"
23699case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23702esac
23703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023705 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023706 grep -v '^ *+' conftest.er1 >conftest.err
23707 rm -f conftest.er1
23708 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000023710 (exit $ac_status); } && {
23711 test -z "$ac_c_werror_flag" ||
23712 test ! -s conftest.err
23713 } && test -s conftest$ac_exeext &&
23714 $as_test_x conftest$ac_exeext; then
John Criswell47fdd832003-07-14 16:52:07 +000023715
23716aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23717}'`
23718# Check for a 64-bit object if we didn't find anything.
23719if 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; }
23720}'`; fi
23721else
23722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023723sed 's/^/| /' conftest.$ac_ext >&5
23724
Reid Spencera773bd52006-08-04 18:18:08 +000023725
John Criswell47fdd832003-07-14 16:52:07 +000023726fi
Reid Spencera773bd52006-08-04 18:18:08 +000023727
Nick Lewycky2ab1d862009-01-20 00:52:24 +000023728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023729 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023730if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23731
23732 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23733 # Warning - without using the other run time loading flags,
23734 # -berok will link without error, but may produce a broken library.
23735 no_undefined_flag_GCJ=' ${wl}-bernotok'
23736 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000023737 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000023738 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000023739 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000023740 # This is similar to how AIX traditionally builds its shared libraries.
23741 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 +000023742 fi
23743 fi
23744 ;;
23745
23746 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023747 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 +000023748 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23749 hardcode_minus_L_GCJ=yes
23750 # see comment about different semantics on the GNU ld section
23751 ld_shlibs_GCJ=no
23752 ;;
23753
Reid Spencer2706f8c2004-09-19 23:53:36 +000023754 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023755 export_dynamic_flag_spec_GCJ=-rdynamic
23756 ;;
23757
23758 cygwin* | mingw* | pw32*)
23759 # When not using gcc, we currently assume that we are using
23760 # Microsoft Visual C++.
23761 # hardcode_libdir_flag_spec is actually meaningless, as there is
23762 # no search path for DLLs.
23763 hardcode_libdir_flag_spec_GCJ=' '
23764 allow_undefined_flag_GCJ=unsupported
23765 # Tell ltmain to make .lib files, not .a files.
23766 libext=lib
23767 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023768 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023769 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000023770 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 +000023771 # The linker will automatically build a .lib file if we build a DLL.
23772 old_archive_From_new_cmds_GCJ='true'
23773 # FIXME: Should let the user specify the lib program.
23774 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000023775 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000023776 enable_shared_with_static_runtimes_GCJ=yes
23777 ;;
23778
23779 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000023780 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023781 rhapsody* | darwin1.[012])
23782 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23783 ;;
23784 *) # Darwin 1.3 on
23785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23786 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23787 else
23788 case ${MACOSX_DEPLOYMENT_TARGET} in
23789 10.[012])
23790 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23791 ;;
23792 10.*)
23793 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23794 ;;
23795 esac
23796 fi
23797 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023798 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000023799 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023800 hardcode_direct_GCJ=no
23801 hardcode_automatic_GCJ=yes
23802 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000023803 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000023804 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000023805 if test "$GCC" = yes ; then
23806 output_verbose_link_cmd='echo'
23807 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23808 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023809 # 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 +000023810 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}'
23811 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 +000023812 else
Reid Spencera773bd52006-08-04 18:18:08 +000023813 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023814 xlc*)
23815 output_verbose_link_cmd='echo'
23816 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23817 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000023818 # 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 +000023819 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}'
23820 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 +000023821 ;;
23822 *)
23823 ld_shlibs_GCJ=no
23824 ;;
23825 esac
John Criswell47fdd832003-07-14 16:52:07 +000023826 fi
23827 ;;
23828
23829 dgux*)
23830 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23831 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23832 hardcode_shlibpath_var_GCJ=no
23833 ;;
23834
23835 freebsd1*)
23836 ld_shlibs_GCJ=no
23837 ;;
23838
23839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23840 # support. Future versions do this automatically, but an explicit c++rt0.o
23841 # does not break anything, and helps significantly (at the cost of a little
23842 # extra space).
23843 freebsd2.2*)
23844 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23845 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23846 hardcode_direct_GCJ=yes
23847 hardcode_shlibpath_var_GCJ=no
23848 ;;
23849
23850 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23851 freebsd2*)
23852 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23853 hardcode_direct_GCJ=yes
23854 hardcode_minus_L_GCJ=yes
23855 hardcode_shlibpath_var_GCJ=no
23856 ;;
23857
23858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000023859 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000023860 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23861 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23862 hardcode_direct_GCJ=yes
23863 hardcode_shlibpath_var_GCJ=no
23864 ;;
23865
23866 hpux9*)
23867 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000023868 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 +000023869 else
Reid Spencer177dbe22004-10-13 01:01:03 +000023870 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 +000023871 fi
23872 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23873 hardcode_libdir_separator_GCJ=:
23874 hardcode_direct_GCJ=yes
23875
23876 # hardcode_minus_L: Not really in the search PATH,
23877 # but as the default location of the library.
23878 hardcode_minus_L_GCJ=yes
23879 export_dynamic_flag_spec_GCJ='${wl}-E'
23880 ;;
23881
Reid Spencera773bd52006-08-04 18:18:08 +000023882 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000023883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023884 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23885 else
23886 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23887 fi
23888 if test "$with_gnu_ld" = no; then
23889 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23890 hardcode_libdir_separator_GCJ=:
23891
23892 hardcode_direct_GCJ=yes
23893 export_dynamic_flag_spec_GCJ='${wl}-E'
23894
23895 # hardcode_minus_L: Not really in the search PATH,
23896 # but as the default location of the library.
23897 hardcode_minus_L_GCJ=yes
23898 fi
23899 ;;
23900
23901 hpux11*)
23902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23903 case $host_cpu in
23904 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000023905 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23906 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023907 ia64*)
23908 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23909 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023910 *)
23911 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23912 ;;
23913 esac
23914 else
Reid Spencera773bd52006-08-04 18:18:08 +000023915 case $host_cpu in
23916 hppa*64*)
23917 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23918 ;;
23919 ia64*)
23920 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000023921 ;;
23922 *)
Reid Spencera773bd52006-08-04 18:18:08 +000023923 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 +000023924 ;;
23925 esac
23926 fi
23927 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000023928 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23929 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000023930
Reid Spencera773bd52006-08-04 18:18:08 +000023931 case $host_cpu in
23932 hppa*64*|ia64*)
23933 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23934 hardcode_direct_GCJ=no
23935 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000023936 ;;
23937 *)
John Criswell47fdd832003-07-14 16:52:07 +000023938 hardcode_direct_GCJ=yes
23939 export_dynamic_flag_spec_GCJ='${wl}-E'
23940
23941 # hardcode_minus_L: Not really in the search PATH,
23942 # but as the default location of the library.
23943 hardcode_minus_L_GCJ=yes
23944 ;;
23945 esac
23946 fi
23947 ;;
23948
23949 irix5* | irix6* | nonstopux*)
23950 if test "$GCC" = yes; then
23951 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'
23952 else
23953 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'
23954 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23955 fi
23956 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23957 hardcode_libdir_separator_GCJ=:
23958 link_all_deplibs_GCJ=yes
23959 ;;
23960
23961 netbsd*)
23962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23963 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23964 else
23965 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23966 fi
23967 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23968 hardcode_direct_GCJ=yes
23969 hardcode_shlibpath_var_GCJ=no
23970 ;;
23971
23972 newsos6)
23973 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23974 hardcode_direct_GCJ=yes
23975 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23976 hardcode_libdir_separator_GCJ=:
23977 hardcode_shlibpath_var_GCJ=no
23978 ;;
23979
23980 openbsd*)
23981 hardcode_direct_GCJ=yes
23982 hardcode_shlibpath_var_GCJ=no
23983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23984 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023985 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 +000023986 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23987 export_dynamic_flag_spec_GCJ='${wl}-E'
23988 else
23989 case $host_os in
23990 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23991 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23992 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23993 ;;
23994 *)
23995 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23997 ;;
23998 esac
23999 fi
24000 ;;
24001
24002 os2*)
24003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24004 hardcode_minus_L_GCJ=yes
24005 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024006 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 +000024007 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24008 ;;
24009
24010 osf3*)
24011 if test "$GCC" = yes; then
24012 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24013 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'
24014 else
24015 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24016 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'
24017 fi
24018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24019 hardcode_libdir_separator_GCJ=:
24020 ;;
24021
24022 osf4* | osf5*) # as osf3* with the addition of -msym flag
24023 if test "$GCC" = yes; then
24024 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24025 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'
24026 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24027 else
24028 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24029 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 +000024030 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 +000024031 $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 +000024032
John Criswell47fdd832003-07-14 16:52:07 +000024033 # Both c and cxx compiler support -rpath directly
24034 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24035 fi
24036 hardcode_libdir_separator_GCJ=:
24037 ;;
24038
John Criswell47fdd832003-07-14 16:52:07 +000024039 solaris*)
24040 no_undefined_flag_GCJ=' -z text'
24041 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024042 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024043 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024044 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24045 $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 +000024046 else
Reid Spencera773bd52006-08-04 18:18:08 +000024047 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024048 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024049 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24050 $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 +000024051 fi
24052 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24053 hardcode_shlibpath_var_GCJ=no
24054 case $host_os in
24055 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024056 *)
24057 # The compiler driver will combine linker options so we
24058 # cannot just pass the convience library names through
24059 # without $wl, iff we do not link with $LD.
24060 # Luckily, gcc supports the same syntax we need for Sun Studio.
24061 # Supported since Solaris 2.6 (maybe 2.5.1?)
24062 case $wlarc in
24063 '')
24064 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24065 *)
24066 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' ;;
24067 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024068 esac
24069 link_all_deplibs_GCJ=yes
24070 ;;
24071
24072 sunos4*)
24073 if test "x$host_vendor" = xsequent; then
24074 # Use $CC to link under sequent, because it throws in some extra .o
24075 # files that make .init and .fini sections work.
24076 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24077 else
24078 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24079 fi
24080 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24081 hardcode_direct_GCJ=yes
24082 hardcode_minus_L_GCJ=yes
24083 hardcode_shlibpath_var_GCJ=no
24084 ;;
24085
24086 sysv4)
24087 case $host_vendor in
24088 sni)
24089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24090 hardcode_direct_GCJ=yes # is this really true???
24091 ;;
24092 siemens)
24093 ## LD is ld it makes a PLAMLIB
24094 ## CC just makes a GrossModule.
24095 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24096 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24097 hardcode_direct_GCJ=no
24098 ;;
24099 motorola)
24100 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24101 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24102 ;;
24103 esac
24104 runpath_var='LD_RUN_PATH'
24105 hardcode_shlibpath_var_GCJ=no
24106 ;;
24107
24108 sysv4.3*)
24109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24110 hardcode_shlibpath_var_GCJ=no
24111 export_dynamic_flag_spec_GCJ='-Bexport'
24112 ;;
24113
24114 sysv4*MP*)
24115 if test -d /usr/nec; then
24116 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24117 hardcode_shlibpath_var_GCJ=no
24118 runpath_var=LD_RUN_PATH
24119 hardcode_runpath_var=yes
24120 ld_shlibs_GCJ=yes
24121 fi
24122 ;;
24123
Reid Spencera773bd52006-08-04 18:18:08 +000024124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24125 no_undefined_flag_GCJ='${wl}-z,text'
24126 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024127 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024128 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024129
John Criswell47fdd832003-07-14 16:52:07 +000024130 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024131 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24132 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 +000024133 else
Reid Spencera773bd52006-08-04 18:18:08 +000024134 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24135 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 +000024136 fi
John Criswell47fdd832003-07-14 16:52:07 +000024137 ;;
24138
Reid Spencera773bd52006-08-04 18:18:08 +000024139 sysv5* | sco3.2v5* | sco5v6*)
24140 # Note: We can NOT use -z defs as we might desire, because we do not
24141 # link with -lc, and that would cause any symbols used from libc to
24142 # always be unresolved, which means just about no library would
24143 # ever link correctly. If we're not using GNU ld we use -z text
24144 # though, which does catch some bad symbols but isn't as heavy-handed
24145 # as -z defs.
24146 no_undefined_flag_GCJ='${wl}-z,text'
24147 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24148 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024149 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024150 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24151 hardcode_libdir_separator_GCJ=':'
24152 link_all_deplibs_GCJ=yes
24153 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024154 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024155
24156 if test "$GCC" = yes; then
24157 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24158 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24159 else
24160 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24161 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24162 fi
John Criswell47fdd832003-07-14 16:52:07 +000024163 ;;
24164
24165 uts4*)
24166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24168 hardcode_shlibpath_var_GCJ=no
24169 ;;
24170
24171 *)
24172 ld_shlibs_GCJ=no
24173 ;;
24174 esac
24175 fi
24176
Reid Spencera773bd52006-08-04 18:18:08 +000024177{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24178echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024179test "$ld_shlibs_GCJ" = no && can_build_shared=no
24180
John Criswell47fdd832003-07-14 16:52:07 +000024181#
24182# Do we need to explicitly link libc?
24183#
24184case "x$archive_cmds_need_lc_GCJ" in
24185x|xyes)
24186 # Assume -lc should be added
24187 archive_cmds_need_lc_GCJ=yes
24188
24189 if test "$enable_shared" = yes && test "$GCC" = yes; then
24190 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024191 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024192 # FIXME: we may have to deal with multi-command sequences.
24193 ;;
24194 '$CC '*)
24195 # Test whether the compiler implicitly links with -lc since on some
24196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24197 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024198 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24199echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024200 $rm conftest*
24201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24202
24203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24204 (eval $ac_compile) 2>&5
24205 ac_status=$?
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } 2>conftest.err; then
24208 soname=conftest
24209 lib=conftest
24210 libobjs=conftest.$ac_objext
24211 deplibs=
24212 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024213 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024214 compiler_flags=-v
24215 linker_flags=-v
24216 verstring=
24217 output_objdir=.
24218 libname=conftest
24219 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24220 allow_undefined_flag_GCJ=
24221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24222 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24223 ac_status=$?
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); }
24226 then
24227 archive_cmds_need_lc_GCJ=no
24228 else
24229 archive_cmds_need_lc_GCJ=yes
24230 fi
24231 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24232 else
24233 cat conftest.err 1>&5
24234 fi
24235 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024236 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24237echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024238 ;;
24239 esac
24240 fi
24241 ;;
24242esac
24243
Reid Spencera773bd52006-08-04 18:18:08 +000024244{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24245echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024246library_names_spec=
24247libname_spec='lib$name'
24248soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024249shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024250postinstall_cmds=
24251postuninstall_cmds=
24252finish_cmds=
24253finish_eval=
24254shlibpath_var=
24255shlibpath_overrides_runpath=unknown
24256version_type=none
24257dynamic_linker="$host_os ld.so"
24258sys_lib_dlsearch_path_spec="/lib /usr/lib"
24259if test "$GCC" = yes; then
24260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24262 # if the path contains ";" then we assume it to be the separator
24263 # otherwise default to the standard path separator (i.e. ":") - it is
24264 # assumed that no part of a normal pathname contains ";" but that should
24265 # okay in the real world where ";" in dirpaths is itself problematic.
24266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24267 else
24268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24269 fi
24270else
24271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24272fi
24273need_lib_prefix=unknown
24274hardcode_into_libs=no
24275
24276# when you set need_version to no, make sure it does not cause -set_version
24277# flags to be left without arguments
24278need_version=unknown
24279
24280case $host_os in
24281aix3*)
24282 version_type=linux
24283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24284 shlibpath_var=LIBPATH
24285
24286 # AIX 3 has no versioning support, so we append a major version to the name.
24287 soname_spec='${libname}${release}${shared_ext}$major'
24288 ;;
24289
24290aix4* | aix5*)
24291 version_type=linux
24292 need_lib_prefix=no
24293 need_version=no
24294 hardcode_into_libs=yes
24295 if test "$host_cpu" = ia64; then
24296 # AIX 5 supports IA64
24297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24298 shlibpath_var=LD_LIBRARY_PATH
24299 else
24300 # With GCC up to 2.95.x, collect2 would create an import file
24301 # for dependence libraries. The import file would start with
24302 # the line `#! .'. This would cause the generated library to
24303 # depend on `.', always an invalid library. This was fixed in
24304 # development snapshots of GCC prior to 3.0.
24305 case $host_os in
24306 aix4 | aix4.[01] | aix4.[01].*)
24307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24308 echo ' yes '
24309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24310 :
24311 else
24312 can_build_shared=no
24313 fi
24314 ;;
24315 esac
24316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24317 # soname into executable. Probably we can add versioning support to
24318 # collect2, so additional links can be useful in future.
24319 if test "$aix_use_runtimelinking" = yes; then
24320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24321 # instead of lib<name>.a to let people know that these are not
24322 # typical AIX shared libraries.
24323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24324 else
24325 # We preserve .a as extension for shared libraries through AIX4.2
24326 # and later when we are not doing run time linking.
24327 library_names_spec='${libname}${release}.a $libname.a'
24328 soname_spec='${libname}${release}${shared_ext}$major'
24329 fi
24330 shlibpath_var=LIBPATH
24331 fi
24332 ;;
24333
24334amigaos*)
24335 library_names_spec='$libname.ixlibrary $libname.a'
24336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024337 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 +000024338 ;;
24339
24340beos*)
24341 library_names_spec='${libname}${shared_ext}'
24342 dynamic_linker="$host_os ld.so"
24343 shlibpath_var=LIBRARY_PATH
24344 ;;
24345
Reid Spencer2706f8c2004-09-19 23:53:36 +000024346bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024347 version_type=linux
24348 need_version=no
24349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24350 soname_spec='${libname}${release}${shared_ext}$major'
24351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24352 shlibpath_var=LD_LIBRARY_PATH
24353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24355 # the default ld.so.conf also contains /usr/contrib/lib and
24356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24357 # libtool to hard-code these into programs
24358 ;;
24359
24360cygwin* | mingw* | pw32*)
24361 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000024362 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024363 need_version=no
24364 need_lib_prefix=no
24365
24366 case $GCC,$host_os in
24367 yes,cygwin* | yes,mingw* | yes,pw32*)
24368 library_names_spec='$libname.dll.a'
24369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000024370 postinstall_cmds='base_file=`basename \${file}`~
24371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24372 dldir=$destdir/`dirname \$dlpath`~
24373 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000024374 $install_prog $dir/$dlname \$dldir/$dlname~
24375 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000024376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24377 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000024378 $rm \$dlpath'
24379 shlibpath_overrides_runpath=yes
24380
24381 case $host_os in
24382 cygwin*)
24383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24384 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 +000024385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024386 ;;
24387 mingw*)
24388 # MinGW DLLs use traditional 'lib' prefix
24389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24392 # It is most probably a Windows format PATH printed by
24393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24394 # path with ; separators, and with drive letters. We can handle the
24395 # drive letters (cygwin fileutils understands them), so leave them,
24396 # especially as we might pass files found there to a mingw objdump,
24397 # which wouldn't understand a cygwinified path. Ahh.
24398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24399 else
24400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24401 fi
24402 ;;
24403 pw32*)
24404 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000024405 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 +000024406 ;;
24407 esac
24408 ;;
24409
24410 *)
24411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24412 ;;
24413 esac
24414 dynamic_linker='Win32 ld.exe'
24415 # FIXME: first we should search . and the directory the executable is in
24416 shlibpath_var=PATH
24417 ;;
24418
24419darwin* | rhapsody*)
24420 dynamic_linker="$host_os dyld"
24421 version_type=darwin
24422 need_lib_prefix=no
24423 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000024424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000024425 soname_spec='${libname}${release}${major}$shared_ext'
24426 shlibpath_overrides_runpath=yes
24427 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000024428 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000024429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024430 if test "$GCC" = yes; then
24431 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"`
24432 else
24433 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000024434 fi
24435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24436 ;;
24437
24438dgux*)
24439 version_type=linux
24440 need_lib_prefix=no
24441 need_version=no
24442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24443 soname_spec='${libname}${release}${shared_ext}$major'
24444 shlibpath_var=LD_LIBRARY_PATH
24445 ;;
24446
24447freebsd1*)
24448 dynamic_linker=no
24449 ;;
24450
Reid Spencer2706f8c2004-09-19 23:53:36 +000024451kfreebsd*-gnu)
24452 version_type=linux
24453 need_lib_prefix=no
24454 need_version=no
24455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24456 soname_spec='${libname}${release}${shared_ext}$major'
24457 shlibpath_var=LD_LIBRARY_PATH
24458 shlibpath_overrides_runpath=no
24459 hardcode_into_libs=yes
24460 dynamic_linker='GNU ld.so'
24461 ;;
24462
Reid Spencera773bd52006-08-04 18:18:08 +000024463freebsd* | dragonfly*)
24464 # DragonFly does not have aout. When/if they implement a new
24465 # versioning mechanism, adjust this.
24466 if test -x /usr/bin/objformat; then
24467 objformat=`/usr/bin/objformat`
24468 else
24469 case $host_os in
24470 freebsd[123]*) objformat=aout ;;
24471 *) objformat=elf ;;
24472 esac
24473 fi
John Criswell47fdd832003-07-14 16:52:07 +000024474 version_type=freebsd-$objformat
24475 case $version_type in
24476 freebsd-elf*)
24477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24478 need_version=no
24479 need_lib_prefix=no
24480 ;;
24481 freebsd-*)
24482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24483 need_version=yes
24484 ;;
24485 esac
24486 shlibpath_var=LD_LIBRARY_PATH
24487 case $host_os in
24488 freebsd2*)
24489 shlibpath_overrides_runpath=yes
24490 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024491 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000024492 shlibpath_overrides_runpath=yes
24493 hardcode_into_libs=yes
24494 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000024497 shlibpath_overrides_runpath=no
24498 hardcode_into_libs=yes
24499 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024500 freebsd*) # from 4.6 on
24501 shlibpath_overrides_runpath=yes
24502 hardcode_into_libs=yes
24503 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024504 esac
24505 ;;
24506
24507gnu*)
24508 version_type=linux
24509 need_lib_prefix=no
24510 need_version=no
24511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24512 soname_spec='${libname}${release}${shared_ext}$major'
24513 shlibpath_var=LD_LIBRARY_PATH
24514 hardcode_into_libs=yes
24515 ;;
24516
24517hpux9* | hpux10* | hpux11*)
24518 # Give a soname corresponding to the major version so that dld.sl refuses to
24519 # link against other versions.
24520 version_type=sunos
24521 need_lib_prefix=no
24522 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000024523 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024524 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024525 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000024526 hardcode_into_libs=yes
24527 dynamic_linker="$host_os dld.so"
24528 shlibpath_var=LD_LIBRARY_PATH
24529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24531 soname_spec='${libname}${release}${shared_ext}$major'
24532 if test "X$HPUX_IA64_MODE" = X32; then
24533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24534 else
24535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24536 fi
24537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24538 ;;
24539 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024540 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024541 hardcode_into_libs=yes
24542 dynamic_linker="$host_os dld.sl"
24543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24546 soname_spec='${libname}${release}${shared_ext}$major'
24547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24549 ;;
24550 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024551 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000024552 dynamic_linker="$host_os dld.sl"
24553 shlibpath_var=SHLIB_PATH
24554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24556 soname_spec='${libname}${release}${shared_ext}$major'
24557 ;;
24558 esac
24559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24560 postinstall_cmds='chmod 555 $lib'
24561 ;;
24562
Reid Spencera773bd52006-08-04 18:18:08 +000024563interix3*)
24564 version_type=linux
24565 need_lib_prefix=no
24566 need_version=no
24567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24568 soname_spec='${libname}${release}${shared_ext}$major'
24569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24570 shlibpath_var=LD_LIBRARY_PATH
24571 shlibpath_overrides_runpath=no
24572 hardcode_into_libs=yes
24573 ;;
24574
John Criswell47fdd832003-07-14 16:52:07 +000024575irix5* | irix6* | nonstopux*)
24576 case $host_os in
24577 nonstopux*) version_type=nonstopux ;;
24578 *)
24579 if test "$lt_cv_prog_gnu_ld" = yes; then
24580 version_type=linux
24581 else
24582 version_type=irix
24583 fi ;;
24584 esac
24585 need_lib_prefix=no
24586 need_version=no
24587 soname_spec='${libname}${release}${shared_ext}$major'
24588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24589 case $host_os in
24590 irix5* | nonstopux*)
24591 libsuff= shlibsuff=
24592 ;;
24593 *)
24594 case $LD in # libtool.m4 will add one of these switches to LD
24595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24596 libsuff= shlibsuff= libmagic=32-bit;;
24597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24598 libsuff=32 shlibsuff=N32 libmagic=N32;;
24599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24601 *) libsuff= shlibsuff= libmagic=never-match;;
24602 esac
24603 ;;
24604 esac
24605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24606 shlibpath_overrides_runpath=no
24607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24609 hardcode_into_libs=yes
24610 ;;
24611
24612# No shared lib support for Linux oldld, aout, or coff.
24613linux*oldld* | linux*aout* | linux*coff*)
24614 dynamic_linker=no
24615 ;;
24616
24617# This must be Linux ELF.
24618linux*)
24619 version_type=linux
24620 need_lib_prefix=no
24621 need_version=no
24622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24623 soname_spec='${libname}${release}${shared_ext}$major'
24624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24625 shlibpath_var=LD_LIBRARY_PATH
24626 shlibpath_overrides_runpath=no
24627 # This implies no fast_install, which is unacceptable.
24628 # Some rework will be needed to allow for fast_install
24629 # before this can be enabled.
24630 hardcode_into_libs=yes
24631
Reid Spencer2706f8c2004-09-19 23:53:36 +000024632 # Append ld.so.conf contents to the search path
24633 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000024634 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 +000024635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24636 fi
24637
John Criswell47fdd832003-07-14 16:52:07 +000024638 # We used to test for /lib/ld.so.1 and disable shared libraries on
24639 # powerpc, because MkLinux only supported shared libraries with the
24640 # GNU dynamic linker. Since this was broken with cross compilers,
24641 # most powerpc-linux boxes support dynamic linking these days and
24642 # people can always --disable-shared, the test was removed, and we
24643 # assume the GNU/Linux dynamic linker is in use.
24644 dynamic_linker='GNU/Linux ld.so'
24645 ;;
24646
Reid Spencer2706f8c2004-09-19 23:53:36 +000024647knetbsd*-gnu)
24648 version_type=linux
24649 need_lib_prefix=no
24650 need_version=no
24651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24652 soname_spec='${libname}${release}${shared_ext}$major'
24653 shlibpath_var=LD_LIBRARY_PATH
24654 shlibpath_overrides_runpath=no
24655 hardcode_into_libs=yes
24656 dynamic_linker='GNU ld.so'
24657 ;;
24658
John Criswell47fdd832003-07-14 16:52:07 +000024659netbsd*)
24660 version_type=sunos
24661 need_lib_prefix=no
24662 need_version=no
24663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24666 dynamic_linker='NetBSD (a.out) ld.so'
24667 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000024669 soname_spec='${libname}${release}${shared_ext}$major'
24670 dynamic_linker='NetBSD ld.elf_so'
24671 fi
24672 shlibpath_var=LD_LIBRARY_PATH
24673 shlibpath_overrides_runpath=yes
24674 hardcode_into_libs=yes
24675 ;;
24676
24677newsos6)
24678 version_type=linux
24679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24680 shlibpath_var=LD_LIBRARY_PATH
24681 shlibpath_overrides_runpath=yes
24682 ;;
24683
Reid Spencer2706f8c2004-09-19 23:53:36 +000024684nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000024685 version_type=linux
24686 need_lib_prefix=no
24687 need_version=no
24688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24689 soname_spec='${libname}${release}${shared_ext}$major'
24690 shlibpath_var=LD_LIBRARY_PATH
24691 shlibpath_overrides_runpath=yes
24692 ;;
24693
24694openbsd*)
24695 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000024696 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000024697 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000024698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24699 case $host_os in
24700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24701 *) need_version=no ;;
24702 esac
John Criswell47fdd832003-07-14 16:52:07 +000024703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24705 shlibpath_var=LD_LIBRARY_PATH
24706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24707 case $host_os in
24708 openbsd2.[89] | openbsd2.[89].*)
24709 shlibpath_overrides_runpath=no
24710 ;;
24711 *)
24712 shlibpath_overrides_runpath=yes
24713 ;;
24714 esac
24715 else
24716 shlibpath_overrides_runpath=yes
24717 fi
24718 ;;
24719
24720os2*)
24721 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024722 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024723 need_lib_prefix=no
24724 library_names_spec='$libname${shared_ext} $libname.a'
24725 dynamic_linker='OS/2 ld.exe'
24726 shlibpath_var=LIBPATH
24727 ;;
24728
24729osf3* | osf4* | osf5*)
24730 version_type=osf
24731 need_lib_prefix=no
24732 need_version=no
24733 soname_spec='${libname}${release}${shared_ext}$major'
24734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24735 shlibpath_var=LD_LIBRARY_PATH
24736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24738 ;;
24739
John Criswell47fdd832003-07-14 16:52:07 +000024740solaris*)
24741 version_type=linux
24742 need_lib_prefix=no
24743 need_version=no
24744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24745 soname_spec='${libname}${release}${shared_ext}$major'
24746 shlibpath_var=LD_LIBRARY_PATH
24747 shlibpath_overrides_runpath=yes
24748 hardcode_into_libs=yes
24749 # ldd complains unless libraries are executable
24750 postinstall_cmds='chmod +x $lib'
24751 ;;
24752
24753sunos4*)
24754 version_type=sunos
24755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24757 shlibpath_var=LD_LIBRARY_PATH
24758 shlibpath_overrides_runpath=yes
24759 if test "$with_gnu_ld" = yes; then
24760 need_lib_prefix=no
24761 fi
24762 need_version=yes
24763 ;;
24764
Reid Spencera773bd52006-08-04 18:18:08 +000024765sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024766 version_type=linux
24767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24768 soname_spec='${libname}${release}${shared_ext}$major'
24769 shlibpath_var=LD_LIBRARY_PATH
24770 case $host_vendor in
24771 sni)
24772 shlibpath_overrides_runpath=no
24773 need_lib_prefix=no
24774 export_dynamic_flag_spec='${wl}-Blargedynsym'
24775 runpath_var=LD_RUN_PATH
24776 ;;
24777 siemens)
24778 need_lib_prefix=no
24779 ;;
24780 motorola)
24781 need_lib_prefix=no
24782 need_version=no
24783 shlibpath_overrides_runpath=no
24784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24785 ;;
24786 esac
24787 ;;
24788
24789sysv4*MP*)
24790 if test -d /usr/nec ;then
24791 version_type=linux
24792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24793 soname_spec='$libname${shared_ext}.$major'
24794 shlibpath_var=LD_LIBRARY_PATH
24795 fi
24796 ;;
24797
Reid Spencera773bd52006-08-04 18:18:08 +000024798sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24799 version_type=freebsd-elf
24800 need_lib_prefix=no
24801 need_version=no
24802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24803 soname_spec='${libname}${release}${shared_ext}$major'
24804 shlibpath_var=LD_LIBRARY_PATH
24805 hardcode_into_libs=yes
24806 if test "$with_gnu_ld" = yes; then
24807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24808 shlibpath_overrides_runpath=no
24809 else
24810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24811 shlibpath_overrides_runpath=yes
24812 case $host_os in
24813 sco3.2v5*)
24814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24815 ;;
24816 esac
24817 fi
24818 sys_lib_dlsearch_path_spec='/usr/lib'
24819 ;;
24820
John Criswell47fdd832003-07-14 16:52:07 +000024821uts4*)
24822 version_type=linux
24823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24824 soname_spec='${libname}${release}${shared_ext}$major'
24825 shlibpath_var=LD_LIBRARY_PATH
24826 ;;
24827
24828*)
24829 dynamic_linker=no
24830 ;;
24831esac
Reid Spencera773bd52006-08-04 18:18:08 +000024832{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24833echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024834test "$dynamic_linker" = no && can_build_shared=no
24835
Reid Spencera773bd52006-08-04 18:18:08 +000024836variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24837if test "$GCC" = yes; then
24838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24839fi
24840
24841{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24842echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024843hardcode_action_GCJ=
24844if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24845 test -n "$runpath_var_GCJ" || \
24846 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24847
24848 # We can hardcode non-existant directories.
24849 if test "$hardcode_direct_GCJ" != no &&
24850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24851 # have to relink, otherwise we might link with an installed library
24852 # when we should be linking with a yet-to-be-installed one
24853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24854 test "$hardcode_minus_L_GCJ" != no; then
24855 # Linking always hardcodes the temporary library directory.
24856 hardcode_action_GCJ=relink
24857 else
24858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24859 hardcode_action_GCJ=immediate
24860 fi
24861else
24862 # We cannot hardcode anything, or else we can only hardcode existing
24863 # directories.
24864 hardcode_action_GCJ=unsupported
24865fi
Reid Spencera773bd52006-08-04 18:18:08 +000024866{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24867echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024868
24869if test "$hardcode_action_GCJ" = relink; then
24870 # Fast installation is not supported
24871 enable_fast_install=no
24872elif test "$shlibpath_overrides_runpath" = yes ||
24873 test "$enable_shared" = no; then
24874 # Fast installation is not necessary
24875 enable_fast_install=needless
24876fi
24877
John Criswell47fdd832003-07-14 16:52:07 +000024878
24879# The else clause should only fire when bootstrapping the
24880# libtool distribution, otherwise you forgot to ship ltmain.sh
24881# with your package, and you will get complaints that there are
24882# no rules to generate ltmain.sh.
24883if test -f "$ltmain"; then
24884 # See if we are running on zsh, and set the options which allow our commands through
24885 # without removal of \ escapes.
24886 if test -n "${ZSH_VERSION+set}" ; then
24887 setopt NO_GLOB_SUBST
24888 fi
24889 # Now quote all the things that may contain metacharacters while being
24890 # careful not to overquote the AC_SUBSTed values. We take copies of the
24891 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000024892 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 +000024893 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024894 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24895 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24896 deplibs_check_method reload_flag reload_cmds need_locks \
24897 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24898 lt_cv_sys_global_symbol_to_c_name_address \
24899 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24900 old_postinstall_cmds old_postuninstall_cmds \
24901 compiler_GCJ \
24902 CC_GCJ \
24903 LD_GCJ \
24904 lt_prog_compiler_wl_GCJ \
24905 lt_prog_compiler_pic_GCJ \
24906 lt_prog_compiler_static_GCJ \
24907 lt_prog_compiler_no_builtin_flag_GCJ \
24908 export_dynamic_flag_spec_GCJ \
24909 thread_safe_flag_spec_GCJ \
24910 whole_archive_flag_spec_GCJ \
24911 enable_shared_with_static_runtimes_GCJ \
24912 old_archive_cmds_GCJ \
24913 old_archive_from_new_cmds_GCJ \
24914 predep_objects_GCJ \
24915 postdep_objects_GCJ \
24916 predeps_GCJ \
24917 postdeps_GCJ \
24918 compiler_lib_search_path_GCJ \
24919 archive_cmds_GCJ \
24920 archive_expsym_cmds_GCJ \
24921 postinstall_cmds_GCJ \
24922 postuninstall_cmds_GCJ \
24923 old_archive_from_expsyms_cmds_GCJ \
24924 allow_undefined_flag_GCJ \
24925 no_undefined_flag_GCJ \
24926 export_symbols_cmds_GCJ \
24927 hardcode_libdir_flag_spec_GCJ \
24928 hardcode_libdir_flag_spec_ld_GCJ \
24929 hardcode_libdir_separator_GCJ \
24930 hardcode_automatic_GCJ \
24931 module_cmds_GCJ \
24932 module_expsym_cmds_GCJ \
24933 lt_cv_prog_compiler_c_o_GCJ \
24934 exclude_expsyms_GCJ \
24935 include_expsyms_GCJ; do
24936
24937 case $var in
24938 old_archive_cmds_GCJ | \
24939 old_archive_from_new_cmds_GCJ | \
24940 archive_cmds_GCJ | \
24941 archive_expsym_cmds_GCJ | \
24942 module_cmds_GCJ | \
24943 module_expsym_cmds_GCJ | \
24944 old_archive_from_expsyms_cmds_GCJ | \
24945 export_symbols_cmds_GCJ | \
24946 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24947 postinstall_cmds | postuninstall_cmds | \
24948 old_postinstall_cmds | old_postuninstall_cmds | \
24949 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24950 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024951 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 +000024952 ;;
24953 *)
24954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24955 ;;
24956 esac
24957 done
24958
24959 case $lt_echo in
24960 *'\$0 --fallback-echo"')
24961 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24962 ;;
24963 esac
24964
24965cfgfile="$ofile"
24966
24967 cat <<__EOF__ >> "$cfgfile"
24968# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24969
24970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24971
24972# Shell to use when invoking shell scripts.
24973SHELL=$lt_SHELL
24974
24975# Whether or not to build shared libraries.
24976build_libtool_libs=$enable_shared
24977
24978# Whether or not to build static libraries.
24979build_old_libs=$enable_static
24980
24981# Whether or not to add -lc for building shared libraries.
24982build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24983
24984# Whether or not to disallow shared libs when runtime libs are static
24985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24986
24987# Whether or not to optimize for fast installation.
24988fast_install=$enable_fast_install
24989
24990# The host system.
24991host_alias=$host_alias
24992host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000024993host_os=$host_os
24994
24995# The build system.
24996build_alias=$build_alias
24997build=$build
24998build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000024999
25000# An echo program that does not interpret backslashes.
25001echo=$lt_echo
25002
25003# The archiver.
25004AR=$lt_AR
25005AR_FLAGS=$lt_AR_FLAGS
25006
25007# A C compiler.
25008LTCC=$lt_LTCC
25009
Reid Spencera773bd52006-08-04 18:18:08 +000025010# LTCC compiler flags.
25011LTCFLAGS=$lt_LTCFLAGS
25012
John Criswell47fdd832003-07-14 16:52:07 +000025013# A language-specific compiler.
25014CC=$lt_compiler_GCJ
25015
25016# Is the compiler the GNU C compiler?
25017with_gcc=$GCC_GCJ
25018
25019# An ERE matcher.
25020EGREP=$lt_EGREP
25021
25022# The linker used to build libraries.
25023LD=$lt_LD_GCJ
25024
25025# Whether we need hard or soft links.
25026LN_S=$lt_LN_S
25027
25028# A BSD-compatible nm program.
25029NM=$lt_NM
25030
25031# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025032STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025033
25034# Used to examine libraries when file_magic_cmd begins "file"
25035MAGIC_CMD=$MAGIC_CMD
25036
25037# Used on cygwin: DLL creation program.
25038DLLTOOL="$DLLTOOL"
25039
25040# Used on cygwin: object dumper.
25041OBJDUMP="$OBJDUMP"
25042
25043# Used on cygwin: assembler.
25044AS="$AS"
25045
25046# The name of the directory that contains temporary libtool files.
25047objdir=$objdir
25048
25049# How to create reloadable object files.
25050reload_flag=$lt_reload_flag
25051reload_cmds=$lt_reload_cmds
25052
25053# How to pass a linker flag through the compiler.
25054wl=$lt_lt_prog_compiler_wl_GCJ
25055
25056# Object file suffix (normally "o").
25057objext="$ac_objext"
25058
25059# Old archive suffix (normally "a").
25060libext="$libext"
25061
25062# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025063shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025064
25065# Executable file suffix (normally "").
25066exeext="$exeext"
25067
25068# Additional compiler flags for building library objects.
25069pic_flag=$lt_lt_prog_compiler_pic_GCJ
25070pic_mode=$pic_mode
25071
25072# What is the maximum length of a command?
25073max_cmd_len=$lt_cv_sys_max_cmd_len
25074
25075# Does compiler simultaneously support -c and -o options?
25076compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25077
Reid Spencera773bd52006-08-04 18:18:08 +000025078# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025079need_locks=$lt_need_locks
25080
25081# Do we need the lib prefix for modules?
25082need_lib_prefix=$need_lib_prefix
25083
25084# Do we need a version for libraries?
25085need_version=$need_version
25086
25087# Whether dlopen is supported.
25088dlopen_support=$enable_dlopen
25089
25090# Whether dlopen of programs is supported.
25091dlopen_self=$enable_dlopen_self
25092
25093# Whether dlopen of statically linked programs is supported.
25094dlopen_self_static=$enable_dlopen_self_static
25095
25096# Compiler flag to prevent dynamic linking.
25097link_static_flag=$lt_lt_prog_compiler_static_GCJ
25098
25099# Compiler flag to turn off builtin functions.
25100no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25101
25102# Compiler flag to allow reflexive dlopens.
25103export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25104
25105# Compiler flag to generate shared objects directly from archives.
25106whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25107
25108# Compiler flag to generate thread-safe objects.
25109thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25110
25111# Library versioning type.
25112version_type=$version_type
25113
25114# Format of library name prefix.
25115libname_spec=$lt_libname_spec
25116
25117# List of archive names. First name is the real one, the rest are links.
25118# The last name is the one that the linker finds with -lNAME.
25119library_names_spec=$lt_library_names_spec
25120
25121# The coded name of the library, if different from the real name.
25122soname_spec=$lt_soname_spec
25123
25124# Commands used to build and install an old-style archive.
25125RANLIB=$lt_RANLIB
25126old_archive_cmds=$lt_old_archive_cmds_GCJ
25127old_postinstall_cmds=$lt_old_postinstall_cmds
25128old_postuninstall_cmds=$lt_old_postuninstall_cmds
25129
25130# Create an old-style archive from a shared archive.
25131old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25132
25133# Create a temporary old-style archive to link instead of a shared archive.
25134old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25135
25136# Commands used to build and install a shared archive.
25137archive_cmds=$lt_archive_cmds_GCJ
25138archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25139postinstall_cmds=$lt_postinstall_cmds
25140postuninstall_cmds=$lt_postuninstall_cmds
25141
25142# Commands used to build a loadable module (assumed same as above if empty)
25143module_cmds=$lt_module_cmds_GCJ
25144module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25145
25146# Commands to strip libraries.
25147old_striplib=$lt_old_striplib
25148striplib=$lt_striplib
25149
25150# Dependencies to place before the objects being linked to create a
25151# shared library.
25152predep_objects=$lt_predep_objects_GCJ
25153
25154# Dependencies to place after the objects being linked to create a
25155# shared library.
25156postdep_objects=$lt_postdep_objects_GCJ
25157
25158# Dependencies to place before the objects being linked to create a
25159# shared library.
25160predeps=$lt_predeps_GCJ
25161
25162# Dependencies to place after the objects being linked to create a
25163# shared library.
25164postdeps=$lt_postdeps_GCJ
25165
25166# The library search path used internally by the compiler when linking
25167# a shared library.
25168compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25169
25170# Method to check whether dependent libraries are shared objects.
25171deplibs_check_method=$lt_deplibs_check_method
25172
25173# Command to use when deplibs_check_method == file_magic.
25174file_magic_cmd=$lt_file_magic_cmd
25175
25176# Flag that allows shared libraries with undefined symbols to be built.
25177allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25178
25179# Flag that forces no undefined symbols.
25180no_undefined_flag=$lt_no_undefined_flag_GCJ
25181
25182# Commands used to finish a libtool library installation in a directory.
25183finish_cmds=$lt_finish_cmds
25184
25185# Same as above, but a single script fragment to be evaled but not shown.
25186finish_eval=$lt_finish_eval
25187
25188# Take the output of nm and produce a listing of raw symbols and C names.
25189global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25190
25191# Transform the output of nm in a proper C declaration
25192global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25193
25194# Transform the output of nm in a C name address pair
25195global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25196
25197# This is the shared library runtime path variable.
25198runpath_var=$runpath_var
25199
25200# This is the shared library path variable.
25201shlibpath_var=$shlibpath_var
25202
25203# Is shlibpath searched before the hard-coded library search path?
25204shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25205
25206# How to hardcode a shared library path into an executable.
25207hardcode_action=$hardcode_action_GCJ
25208
25209# Whether we should hardcode library paths into libraries.
25210hardcode_into_libs=$hardcode_into_libs
25211
25212# Flag to hardcode \$libdir into a binary during linking.
25213# This must work even if \$libdir does not exist.
25214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25215
25216# If ld is used when linking, flag to hardcode \$libdir into
25217# a binary during linking. This must work even if \$libdir does
25218# not exist.
25219hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25220
25221# Whether we need a single -rpath flag with a separated argument.
25222hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25223
25224# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25225# resulting binary.
25226hardcode_direct=$hardcode_direct_GCJ
25227
25228# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25229# resulting binary.
25230hardcode_minus_L=$hardcode_minus_L_GCJ
25231
25232# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25233# the resulting binary.
25234hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25235
25236# Set to yes if building a shared library automatically hardcodes DIR into the library
25237# and all subsequent libraries and executables linked against it.
25238hardcode_automatic=$hardcode_automatic_GCJ
25239
25240# Variables whose values should be saved in libtool wrapper scripts and
25241# restored at relink time.
25242variables_saved_for_relink="$variables_saved_for_relink"
25243
25244# Whether libtool must link a program against all its dependency libraries.
25245link_all_deplibs=$link_all_deplibs_GCJ
25246
25247# Compile-time system search path for libraries
25248sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25249
25250# Run-time system search path for libraries
25251sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25252
25253# Fix the shell variable \$srcfile for the compiler.
25254fix_srcfile_path="$fix_srcfile_path_GCJ"
25255
25256# Set to yes if exported symbols are required.
25257always_export_symbols=$always_export_symbols_GCJ
25258
25259# The commands to list exported symbols.
25260export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25261
25262# The commands to extract the exported symbol list from a shared archive.
25263extract_expsyms_cmds=$lt_extract_expsyms_cmds
25264
25265# Symbols that should not be listed in the preloaded symbols.
25266exclude_expsyms=$lt_exclude_expsyms_GCJ
25267
25268# Symbols that must always be exported.
25269include_expsyms=$lt_include_expsyms_GCJ
25270
25271# ### END LIBTOOL TAG CONFIG: $tagname
25272
25273__EOF__
25274
25275
25276else
25277 # If there is no Makefile yet, we rely on a make rule to execute
25278 # `config.status --recheck' to rerun these tests and create the
25279 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025280 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25281 if test -f "$ltmain_in"; then
25282 test -f Makefile && make "$ltmain"
25283 fi
John Criswell47fdd832003-07-14 16:52:07 +000025284fi
25285
25286
25287ac_ext=c
25288ac_cpp='$CPP $CPPFLAGS'
25289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25291ac_compiler_gnu=$ac_cv_c_compiler_gnu
25292
25293CC="$lt_save_CC"
25294
25295 else
25296 tagname=""
25297 fi
25298 ;;
25299
25300 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025301 ac_ext=c
25302ac_cpp='$CPP $CPPFLAGS'
25303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25305ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000025306
25307
25308# Source file extension for RC test sources.
25309ac_ext=rc
25310
25311# Object file extension for compiled RC test sources.
25312objext=o
25313objext_RC=$objext
25314
25315# Code to be used in simple compile tests
25316lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25317
25318# Code to be used in simple link tests
25319lt_simple_link_test_code="$lt_simple_compile_test_code"
25320
25321# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25322
25323# If no C compiler was specified, use CC.
25324LTCC=${LTCC-"$CC"}
25325
Reid Spencera773bd52006-08-04 18:18:08 +000025326# If no C compiler flags were specified, use CFLAGS.
25327LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25328
John Criswell47fdd832003-07-14 16:52:07 +000025329# Allow CC to be a program name with arguments.
25330compiler=$CC
25331
25332
Reid Spencera773bd52006-08-04 18:18:08 +000025333# save warnings/boilerplate of simple test code
25334ac_outfile=conftest.$ac_objext
25335printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25336eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25337_lt_compiler_boilerplate=`cat conftest.err`
25338$rm conftest*
25339
25340ac_outfile=conftest.$ac_objext
25341printf "$lt_simple_link_test_code" >conftest.$ac_ext
25342eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25343_lt_linker_boilerplate=`cat conftest.err`
25344$rm conftest*
25345
25346
John Criswell47fdd832003-07-14 16:52:07 +000025347# Allow CC to be a program name with arguments.
25348lt_save_CC="$CC"
25349CC=${RC-"windres"}
25350compiler=$CC
25351compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000025352for cc_temp in $compiler""; do
25353 case $cc_temp in
25354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25356 \-*) ;;
25357 *) break;;
25358 esac
25359done
25360cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25361
John Criswell47fdd832003-07-14 16:52:07 +000025362lt_cv_prog_compiler_c_o_RC=yes
25363
25364# The else clause should only fire when bootstrapping the
25365# libtool distribution, otherwise you forgot to ship ltmain.sh
25366# with your package, and you will get complaints that there are
25367# no rules to generate ltmain.sh.
25368if test -f "$ltmain"; then
25369 # See if we are running on zsh, and set the options which allow our commands through
25370 # without removal of \ escapes.
25371 if test -n "${ZSH_VERSION+set}" ; then
25372 setopt NO_GLOB_SUBST
25373 fi
25374 # Now quote all the things that may contain metacharacters while being
25375 # careful not to overquote the AC_SUBSTed values. We take copies of the
25376 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025377 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 +000025378 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025379 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25380 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25381 deplibs_check_method reload_flag reload_cmds need_locks \
25382 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25383 lt_cv_sys_global_symbol_to_c_name_address \
25384 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25385 old_postinstall_cmds old_postuninstall_cmds \
25386 compiler_RC \
25387 CC_RC \
25388 LD_RC \
25389 lt_prog_compiler_wl_RC \
25390 lt_prog_compiler_pic_RC \
25391 lt_prog_compiler_static_RC \
25392 lt_prog_compiler_no_builtin_flag_RC \
25393 export_dynamic_flag_spec_RC \
25394 thread_safe_flag_spec_RC \
25395 whole_archive_flag_spec_RC \
25396 enable_shared_with_static_runtimes_RC \
25397 old_archive_cmds_RC \
25398 old_archive_from_new_cmds_RC \
25399 predep_objects_RC \
25400 postdep_objects_RC \
25401 predeps_RC \
25402 postdeps_RC \
25403 compiler_lib_search_path_RC \
25404 archive_cmds_RC \
25405 archive_expsym_cmds_RC \
25406 postinstall_cmds_RC \
25407 postuninstall_cmds_RC \
25408 old_archive_from_expsyms_cmds_RC \
25409 allow_undefined_flag_RC \
25410 no_undefined_flag_RC \
25411 export_symbols_cmds_RC \
25412 hardcode_libdir_flag_spec_RC \
25413 hardcode_libdir_flag_spec_ld_RC \
25414 hardcode_libdir_separator_RC \
25415 hardcode_automatic_RC \
25416 module_cmds_RC \
25417 module_expsym_cmds_RC \
25418 lt_cv_prog_compiler_c_o_RC \
25419 exclude_expsyms_RC \
25420 include_expsyms_RC; do
25421
25422 case $var in
25423 old_archive_cmds_RC | \
25424 old_archive_from_new_cmds_RC | \
25425 archive_cmds_RC | \
25426 archive_expsym_cmds_RC | \
25427 module_cmds_RC | \
25428 module_expsym_cmds_RC | \
25429 old_archive_from_expsyms_cmds_RC | \
25430 export_symbols_cmds_RC | \
25431 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25432 postinstall_cmds | postuninstall_cmds | \
25433 old_postinstall_cmds | old_postuninstall_cmds | \
25434 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25435 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025436 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 +000025437 ;;
25438 *)
25439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25440 ;;
25441 esac
25442 done
25443
25444 case $lt_echo in
25445 *'\$0 --fallback-echo"')
25446 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25447 ;;
25448 esac
25449
25450cfgfile="$ofile"
25451
25452 cat <<__EOF__ >> "$cfgfile"
25453# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25454
25455# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25456
25457# Shell to use when invoking shell scripts.
25458SHELL=$lt_SHELL
25459
25460# Whether or not to build shared libraries.
25461build_libtool_libs=$enable_shared
25462
25463# Whether or not to build static libraries.
25464build_old_libs=$enable_static
25465
25466# Whether or not to add -lc for building shared libraries.
25467build_libtool_need_lc=$archive_cmds_need_lc_RC
25468
25469# Whether or not to disallow shared libs when runtime libs are static
25470allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25471
25472# Whether or not to optimize for fast installation.
25473fast_install=$enable_fast_install
25474
25475# The host system.
25476host_alias=$host_alias
25477host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025478host_os=$host_os
25479
25480# The build system.
25481build_alias=$build_alias
25482build=$build
25483build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025484
25485# An echo program that does not interpret backslashes.
25486echo=$lt_echo
25487
25488# The archiver.
25489AR=$lt_AR
25490AR_FLAGS=$lt_AR_FLAGS
25491
25492# A C compiler.
25493LTCC=$lt_LTCC
25494
Reid Spencera773bd52006-08-04 18:18:08 +000025495# LTCC compiler flags.
25496LTCFLAGS=$lt_LTCFLAGS
25497
John Criswell47fdd832003-07-14 16:52:07 +000025498# A language-specific compiler.
25499CC=$lt_compiler_RC
25500
25501# Is the compiler the GNU C compiler?
25502with_gcc=$GCC_RC
25503
25504# An ERE matcher.
25505EGREP=$lt_EGREP
25506
25507# The linker used to build libraries.
25508LD=$lt_LD_RC
25509
25510# Whether we need hard or soft links.
25511LN_S=$lt_LN_S
25512
25513# A BSD-compatible nm program.
25514NM=$lt_NM
25515
25516# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025517STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025518
25519# Used to examine libraries when file_magic_cmd begins "file"
25520MAGIC_CMD=$MAGIC_CMD
25521
25522# Used on cygwin: DLL creation program.
25523DLLTOOL="$DLLTOOL"
25524
25525# Used on cygwin: object dumper.
25526OBJDUMP="$OBJDUMP"
25527
25528# Used on cygwin: assembler.
25529AS="$AS"
25530
25531# The name of the directory that contains temporary libtool files.
25532objdir=$objdir
25533
25534# How to create reloadable object files.
25535reload_flag=$lt_reload_flag
25536reload_cmds=$lt_reload_cmds
25537
25538# How to pass a linker flag through the compiler.
25539wl=$lt_lt_prog_compiler_wl_RC
25540
25541# Object file suffix (normally "o").
25542objext="$ac_objext"
25543
25544# Old archive suffix (normally "a").
25545libext="$libext"
25546
25547# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025548shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025549
25550# Executable file suffix (normally "").
25551exeext="$exeext"
25552
25553# Additional compiler flags for building library objects.
25554pic_flag=$lt_lt_prog_compiler_pic_RC
25555pic_mode=$pic_mode
25556
25557# What is the maximum length of a command?
25558max_cmd_len=$lt_cv_sys_max_cmd_len
25559
25560# Does compiler simultaneously support -c and -o options?
25561compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25562
Reid Spencera773bd52006-08-04 18:18:08 +000025563# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025564need_locks=$lt_need_locks
25565
25566# Do we need the lib prefix for modules?
25567need_lib_prefix=$need_lib_prefix
25568
25569# Do we need a version for libraries?
25570need_version=$need_version
25571
25572# Whether dlopen is supported.
25573dlopen_support=$enable_dlopen
25574
25575# Whether dlopen of programs is supported.
25576dlopen_self=$enable_dlopen_self
25577
25578# Whether dlopen of statically linked programs is supported.
25579dlopen_self_static=$enable_dlopen_self_static
25580
25581# Compiler flag to prevent dynamic linking.
25582link_static_flag=$lt_lt_prog_compiler_static_RC
25583
25584# Compiler flag to turn off builtin functions.
25585no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25586
25587# Compiler flag to allow reflexive dlopens.
25588export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25589
25590# Compiler flag to generate shared objects directly from archives.
25591whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25592
25593# Compiler flag to generate thread-safe objects.
25594thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25595
25596# Library versioning type.
25597version_type=$version_type
25598
25599# Format of library name prefix.
25600libname_spec=$lt_libname_spec
25601
25602# List of archive names. First name is the real one, the rest are links.
25603# The last name is the one that the linker finds with -lNAME.
25604library_names_spec=$lt_library_names_spec
25605
25606# The coded name of the library, if different from the real name.
25607soname_spec=$lt_soname_spec
25608
25609# Commands used to build and install an old-style archive.
25610RANLIB=$lt_RANLIB
25611old_archive_cmds=$lt_old_archive_cmds_RC
25612old_postinstall_cmds=$lt_old_postinstall_cmds
25613old_postuninstall_cmds=$lt_old_postuninstall_cmds
25614
25615# Create an old-style archive from a shared archive.
25616old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25617
25618# Create a temporary old-style archive to link instead of a shared archive.
25619old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25620
25621# Commands used to build and install a shared archive.
25622archive_cmds=$lt_archive_cmds_RC
25623archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25624postinstall_cmds=$lt_postinstall_cmds
25625postuninstall_cmds=$lt_postuninstall_cmds
25626
25627# Commands used to build a loadable module (assumed same as above if empty)
25628module_cmds=$lt_module_cmds_RC
25629module_expsym_cmds=$lt_module_expsym_cmds_RC
25630
25631# Commands to strip libraries.
25632old_striplib=$lt_old_striplib
25633striplib=$lt_striplib
25634
25635# Dependencies to place before the objects being linked to create a
25636# shared library.
25637predep_objects=$lt_predep_objects_RC
25638
25639# Dependencies to place after the objects being linked to create a
25640# shared library.
25641postdep_objects=$lt_postdep_objects_RC
25642
25643# Dependencies to place before the objects being linked to create a
25644# shared library.
25645predeps=$lt_predeps_RC
25646
25647# Dependencies to place after the objects being linked to create a
25648# shared library.
25649postdeps=$lt_postdeps_RC
25650
25651# The library search path used internally by the compiler when linking
25652# a shared library.
25653compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25654
25655# Method to check whether dependent libraries are shared objects.
25656deplibs_check_method=$lt_deplibs_check_method
25657
25658# Command to use when deplibs_check_method == file_magic.
25659file_magic_cmd=$lt_file_magic_cmd
25660
25661# Flag that allows shared libraries with undefined symbols to be built.
25662allow_undefined_flag=$lt_allow_undefined_flag_RC
25663
25664# Flag that forces no undefined symbols.
25665no_undefined_flag=$lt_no_undefined_flag_RC
25666
25667# Commands used to finish a libtool library installation in a directory.
25668finish_cmds=$lt_finish_cmds
25669
25670# Same as above, but a single script fragment to be evaled but not shown.
25671finish_eval=$lt_finish_eval
25672
25673# Take the output of nm and produce a listing of raw symbols and C names.
25674global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25675
25676# Transform the output of nm in a proper C declaration
25677global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25678
25679# Transform the output of nm in a C name address pair
25680global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25681
25682# This is the shared library runtime path variable.
25683runpath_var=$runpath_var
25684
25685# This is the shared library path variable.
25686shlibpath_var=$shlibpath_var
25687
25688# Is shlibpath searched before the hard-coded library search path?
25689shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25690
25691# How to hardcode a shared library path into an executable.
25692hardcode_action=$hardcode_action_RC
25693
25694# Whether we should hardcode library paths into libraries.
25695hardcode_into_libs=$hardcode_into_libs
25696
25697# Flag to hardcode \$libdir into a binary during linking.
25698# This must work even if \$libdir does not exist.
25699hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25700
25701# If ld is used when linking, flag to hardcode \$libdir into
25702# a binary during linking. This must work even if \$libdir does
25703# not exist.
25704hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25705
25706# Whether we need a single -rpath flag with a separated argument.
25707hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25708
25709# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25710# resulting binary.
25711hardcode_direct=$hardcode_direct_RC
25712
25713# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25714# resulting binary.
25715hardcode_minus_L=$hardcode_minus_L_RC
25716
25717# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25718# the resulting binary.
25719hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25720
25721# Set to yes if building a shared library automatically hardcodes DIR into the library
25722# and all subsequent libraries and executables linked against it.
25723hardcode_automatic=$hardcode_automatic_RC
25724
25725# Variables whose values should be saved in libtool wrapper scripts and
25726# restored at relink time.
25727variables_saved_for_relink="$variables_saved_for_relink"
25728
25729# Whether libtool must link a program against all its dependency libraries.
25730link_all_deplibs=$link_all_deplibs_RC
25731
25732# Compile-time system search path for libraries
25733sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25734
25735# Run-time system search path for libraries
25736sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25737
25738# Fix the shell variable \$srcfile for the compiler.
25739fix_srcfile_path="$fix_srcfile_path_RC"
25740
25741# Set to yes if exported symbols are required.
25742always_export_symbols=$always_export_symbols_RC
25743
25744# The commands to list exported symbols.
25745export_symbols_cmds=$lt_export_symbols_cmds_RC
25746
25747# The commands to extract the exported symbol list from a shared archive.
25748extract_expsyms_cmds=$lt_extract_expsyms_cmds
25749
25750# Symbols that should not be listed in the preloaded symbols.
25751exclude_expsyms=$lt_exclude_expsyms_RC
25752
25753# Symbols that must always be exported.
25754include_expsyms=$lt_include_expsyms_RC
25755
25756# ### END LIBTOOL TAG CONFIG: $tagname
25757
25758__EOF__
25759
25760
25761else
25762 # If there is no Makefile yet, we rely on a make rule to execute
25763 # `config.status --recheck' to rerun these tests and create the
25764 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025765 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25766 if test -f "$ltmain_in"; then
25767 test -f Makefile && make "$ltmain"
25768 fi
John Criswell47fdd832003-07-14 16:52:07 +000025769fi
25770
25771
25772ac_ext=c
25773ac_cpp='$CPP $CPPFLAGS'
25774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25776ac_compiler_gnu=$ac_cv_c_compiler_gnu
25777
25778CC="$lt_save_CC"
25779
25780 ;;
25781
25782 *)
25783 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25784echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25785 { (exit 1); exit 1; }; }
25786 ;;
25787 esac
25788
25789 # Append the new tag name to the list of available tags.
25790 if test -n "$tagname" ; then
25791 available_tags="$available_tags $tagname"
25792 fi
25793 fi
25794 done
25795 IFS="$lt_save_ifs"
25796
25797 # Now substitute the updated list of available tags.
25798 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25799 mv "${ofile}T" "$ofile"
25800 chmod +x "$ofile"
25801 else
25802 rm -f "${ofile}T"
25803 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25804echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25805 { (exit 1); exit 1; }; }
25806 fi
25807fi
John Criswell7a73b802003-06-30 21:59:07 +000025808
25809
25810
25811# This can be used to rebuild libtool when needed
25812LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25813
25814# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025815LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000025816
25817# Prevent multiple expansion
25818
25819
25820
John Criswell47fdd832003-07-14 16:52:07 +000025821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025838
Reid Spencer582a23c2004-12-29 07:07:57 +000025839if test "$lt_cv_dlopen_self" = "yes" ; then
25840
25841cat >>confdefs.h <<\_ACEOF
25842#define CAN_DLOPEN_SELF 1
25843_ACEOF
25844
25845fi
25846
Reid Spencer7931a782004-12-27 06:15:02 +000025847if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000025848 LLVMGCC="llvm-gcc${EXEEXT}"
25849 LLVMGXX="llvm-g++${EXEEXT}"
25850 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25851set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025854if test "${ac_cv_path_LLVMGCC+set}" = set; then
25855 echo $ECHO_N "(cached) $ECHO_C" >&6
25856else
25857 case $LLVMGCC in
25858 [\\/]* | ?:[\\/]*)
25859 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25860 ;;
25861 *)
25862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25863for as_dir in $PATH
25864do
25865 IFS=$as_save_IFS
25866 test -z "$as_dir" && as_dir=.
25867 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +000025868 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 +000025869 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25871 break 2
25872 fi
25873done
25874done
Reid Spencera773bd52006-08-04 18:18:08 +000025875IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025876
Reid Spencer59473af2004-12-25 07:31:29 +000025877 ;;
25878esac
25879fi
25880LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000025881if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025882 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25883echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025884else
Reid Spencera773bd52006-08-04 18:18:08 +000025885 { echo "$as_me:$LINENO: result: no" >&5
25886echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025887fi
25888
Reid Spencera773bd52006-08-04 18:18:08 +000025889
Reid Spencerc84492c2005-06-02 22:34:49 +000025890 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25891set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000025892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025894if test "${ac_cv_path_LLVMGXX+set}" = set; then
25895 echo $ECHO_N "(cached) $ECHO_C" >&6
25896else
25897 case $LLVMGXX in
25898 [\\/]* | ?:[\\/]*)
25899 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25900 ;;
25901 *)
25902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25903for as_dir in $PATH
25904do
25905 IFS=$as_save_IFS
25906 test -z "$as_dir" && as_dir=.
25907 for ac_exec_ext in '' $ac_executable_extensions; do
Nick Lewycky2ab1d862009-01-20 00:52:24 +000025908 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 +000025909 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25911 break 2
25912 fi
25913done
25914done
Reid Spencera773bd52006-08-04 18:18:08 +000025915IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000025916
Reid Spencer59473af2004-12-25 07:31:29 +000025917 ;;
25918esac
25919fi
25920LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000025921if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000025922 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25923echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025924else
Reid Spencera773bd52006-08-04 18:18:08 +000025925 { echo "$as_me:$LINENO: result: no" >&5
25926echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000025927fi
25928
Reid Spencera773bd52006-08-04 18:18:08 +000025929
Reid Spencer59473af2004-12-25 07:31:29 +000025930else
Devang Patel5d28b882007-12-04 22:54:47 +000025931 if test -z "$LLVMGCC"; then
25932 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25933 fi
25934 if test -z "$LLVMGXX"; then
25935 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25936 fi
Reid Spencer59473af2004-12-25 07:31:29 +000025937 LLVMGCC=$LLVMGCC
25938
25939 LLVMGXX=$LLVMGXX
25940
25941fi
25942
Reid Spencera773bd52006-08-04 18:18:08 +000025943{ echo "$as_me:$LINENO: checking tool compatibility" >&5
25944echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025945
Reid Spencer86901802004-12-08 23:07:27 +000025946ICC=no
25947IXX=no
25948case $CC in
25949 icc*|icpc*)
25950 ICC=yes
25951 IXX=yes
25952 ;;
25953 *)
25954 ;;
25955esac
25956
Duraid Madina937c60a2006-02-15 07:57:42 +000025957if test "$GCC" != "yes" && test "$ICC" != "yes"
25958then
25959 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25960echo "$as_me: error: gcc|icc required but not found" >&2;}
25961 { (exit 1); exit 1; }; }
25962fi
25963
25964if test "$GXX" != "yes" && test "$IXX" != "yes"
25965then
25966 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25967echo "$as_me: error: g++|icc required but not found" >&2;}
25968 { (exit 1); exit 1; }; }
25969fi
25970
Reid Spencer86901802004-12-08 23:07:27 +000025971if test "$GCC" = "yes"
25972then
Chris Lattner399c7c72008-02-05 19:43:53 +000025973 cat >conftest.$ac_ext <<_ACEOF
25974#if !defined(__GNUC__) || __GNUC__ < 3
25975#error Unsupported GCC version
25976#endif
25977
25978_ACEOF
25979rm -f conftest.$ac_objext
25980if { (ac_try="$ac_compile"
25981case "(($ac_try" in
25982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25983 *) ac_try_echo=$ac_try;;
25984esac
25985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25986 (eval "$ac_compile") 2>conftest.er1
25987 ac_status=$?
25988 grep -v '^ *+' conftest.er1 >conftest.err
25989 rm -f conftest.er1
25990 cat conftest.err >&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000025992 (exit $ac_status); } && {
25993 test -z "$ac_c_werror_flag" ||
25994 test ! -s conftest.err
25995 } && test -s conftest.$ac_objext; then
Chris Lattner399c7c72008-02-05 19:43:53 +000025996 :
25997else
25998 echo "$as_me: failed program was:" >&5
25999sed 's/^/| /' conftest.$ac_ext >&5
26000
26001 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026002echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26003 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000026004fi
26005
26006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026007fi
26008
26009if test -z "$llvm_cv_gnu_make_command"
26010then
26011 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26012echo "$as_me: error: GNU Make required but not found" >&2;}
26013 { (exit 1); exit 1; }; }
26014fi
26015
Reid Spencera773bd52006-08-04 18:18:08 +000026016{ echo "$as_me:$LINENO: result: ok" >&5
26017echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026018
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026019
John Criswell7a73b802003-06-30 21:59:07 +000026020
Reid Spencera773bd52006-08-04 18:18:08 +000026021{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26022echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026023if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26025else
26026 ac_check_lib_save_LIBS=$LIBS
26027LIBS="-lelf $LIBS"
26028cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026029/* confdefs.h. */
26030_ACEOF
26031cat confdefs.h >>conftest.$ac_ext
26032cat >>conftest.$ac_ext <<_ACEOF
26033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026034
Reid Spencera773bd52006-08-04 18:18:08 +000026035/* Override any GCC internal prototype to avoid an error.
26036 Use char because int might match the return type of a GCC
26037 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026038#ifdef __cplusplus
26039extern "C"
26040#endif
John Criswell7a73b802003-06-30 21:59:07 +000026041char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026042int
26043main ()
26044{
Reid Spencera773bd52006-08-04 18:18:08 +000026045return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026046 ;
26047 return 0;
26048}
26049_ACEOF
26050rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026051if { (ac_try="$ac_link"
26052case "(($ac_try" in
26053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054 *) ac_try_echo=$ac_try;;
26055esac
26056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026058 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026059 grep -v '^ *+' conftest.er1 >conftest.err
26060 rm -f conftest.er1
26061 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026063 (exit $ac_status); } && {
26064 test -z "$ac_c_werror_flag" ||
26065 test ! -s conftest.err
26066 } && test -s conftest$ac_exeext &&
26067 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000026068 ac_cv_lib_elf_elf_begin=yes
26069else
26070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026071sed 's/^/| /' conftest.$ac_ext >&5
26072
Reid Spencera773bd52006-08-04 18:18:08 +000026073 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026074fi
Reid Spencera773bd52006-08-04 18:18:08 +000026075
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026077 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026078LIBS=$ac_check_lib_save_LIBS
26079fi
Reid Spencera773bd52006-08-04 18:18:08 +000026080{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26081echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026082if test $ac_cv_lib_elf_elf_begin = yes; then
26083 cat >>confdefs.h <<_ACEOF
26084#define HAVE_LIBELF 1
26085_ACEOF
26086
26087 LIBS="-lelf $LIBS"
26088
26089fi
26090
26091
Reid Spencera773bd52006-08-04 18:18:08 +000026092{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26093echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026094if test "${ac_cv_lib_m_sin+set}" = set; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
26096else
26097 ac_check_lib_save_LIBS=$LIBS
26098LIBS="-lm $LIBS"
26099cat >conftest.$ac_ext <<_ACEOF
26100/* confdefs.h. */
26101_ACEOF
26102cat confdefs.h >>conftest.$ac_ext
26103cat >>conftest.$ac_ext <<_ACEOF
26104/* end confdefs.h. */
26105
Reid Spencera773bd52006-08-04 18:18:08 +000026106/* Override any GCC internal prototype to avoid an error.
26107 Use char because int might match the return type of a GCC
26108 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026109#ifdef __cplusplus
26110extern "C"
26111#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026112char sin ();
26113int
26114main ()
26115{
Reid Spencera773bd52006-08-04 18:18:08 +000026116return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026117 ;
26118 return 0;
26119}
26120_ACEOF
26121rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026122if { (ac_try="$ac_link"
26123case "(($ac_try" in
26124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26125 *) ac_try_echo=$ac_try;;
26126esac
26127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26128 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026129 ac_status=$?
26130 grep -v '^ *+' conftest.er1 >conftest.err
26131 rm -f conftest.er1
26132 cat conftest.err >&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026134 (exit $ac_status); } && {
26135 test -z "$ac_c_werror_flag" ||
26136 test ! -s conftest.err
26137 } && test -s conftest$ac_exeext &&
26138 $as_test_x conftest$ac_exeext; then
Reid Spencer3484a992006-01-19 08:31:08 +000026139 ac_cv_lib_m_sin=yes
26140else
26141 echo "$as_me: failed program was:" >&5
26142sed 's/^/| /' conftest.$ac_ext >&5
26143
Reid Spencera773bd52006-08-04 18:18:08 +000026144 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026145fi
Reid Spencera773bd52006-08-04 18:18:08 +000026146
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer3484a992006-01-19 08:31:08 +000026148 conftest$ac_exeext conftest.$ac_ext
26149LIBS=$ac_check_lib_save_LIBS
26150fi
Reid Spencera773bd52006-08-04 18:18:08 +000026151{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26152echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026153if test $ac_cv_lib_m_sin = yes; then
26154 cat >>confdefs.h <<_ACEOF
26155#define HAVE_LIBM 1
26156_ACEOF
26157
26158 LIBS="-lm $LIBS"
26159
26160fi
26161
Jeff Cohen28783c32007-01-12 18:22:38 +000026162if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026163
Reid Spencera773bd52006-08-04 18:18:08 +000026164{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26165echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026166if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026167 echo $ECHO_N "(cached) $ECHO_C" >&6
26168else
26169 ac_check_lib_save_LIBS=$LIBS
26170LIBS="-limagehlp $LIBS"
26171cat >conftest.$ac_ext <<_ACEOF
26172/* confdefs.h. */
26173_ACEOF
26174cat confdefs.h >>conftest.$ac_ext
26175cat >>conftest.$ac_ext <<_ACEOF
26176/* end confdefs.h. */
26177
Reid Spencer48fdf912006-06-01 19:03:21 +000026178
Reid Spencer484fc8e2006-06-01 16:55:59 +000026179int
26180main ()
26181{
Reid Spencera773bd52006-08-04 18:18:08 +000026182return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026183 ;
26184 return 0;
26185}
26186_ACEOF
26187rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026188if { (ac_try="$ac_link"
26189case "(($ac_try" in
26190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26191 *) ac_try_echo=$ac_try;;
26192esac
26193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26194 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026195 ac_status=$?
26196 grep -v '^ *+' conftest.er1 >conftest.err
26197 rm -f conftest.er1
26198 cat conftest.err >&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026200 (exit $ac_status); } && {
26201 test -z "$ac_c_werror_flag" ||
26202 test ! -s conftest.err
26203 } && test -s conftest$ac_exeext &&
26204 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026205 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026206else
26207 echo "$as_me: failed program was:" >&5
26208sed 's/^/| /' conftest.$ac_ext >&5
26209
Reid Spencera773bd52006-08-04 18:18:08 +000026210 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026211fi
Reid Spencera773bd52006-08-04 18:18:08 +000026212
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026214 conftest$ac_exeext conftest.$ac_ext
26215LIBS=$ac_check_lib_save_LIBS
26216fi
Reid Spencera773bd52006-08-04 18:18:08 +000026217{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26218echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026219if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026220 cat >>confdefs.h <<_ACEOF
26221#define HAVE_LIBIMAGEHLP 1
26222_ACEOF
26223
26224 LIBS="-limagehlp $LIBS"
26225
26226fi
26227
26228
Reid Spencera773bd52006-08-04 18:18:08 +000026229{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26230echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026231if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026232 echo $ECHO_N "(cached) $ECHO_C" >&6
26233else
26234 ac_check_lib_save_LIBS=$LIBS
26235LIBS="-lpsapi $LIBS"
26236cat >conftest.$ac_ext <<_ACEOF
26237/* confdefs.h. */
26238_ACEOF
26239cat confdefs.h >>conftest.$ac_ext
26240cat >>conftest.$ac_ext <<_ACEOF
26241/* end confdefs.h. */
26242
Reid Spencer48fdf912006-06-01 19:03:21 +000026243
Reid Spencer484fc8e2006-06-01 16:55:59 +000026244int
26245main ()
26246{
Reid Spencera773bd52006-08-04 18:18:08 +000026247return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026248 ;
26249 return 0;
26250}
26251_ACEOF
26252rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026253if { (ac_try="$ac_link"
26254case "(($ac_try" in
26255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26256 *) ac_try_echo=$ac_try;;
26257esac
26258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26259 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026260 ac_status=$?
26261 grep -v '^ *+' conftest.er1 >conftest.err
26262 rm -f conftest.er1
26263 cat conftest.err >&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026265 (exit $ac_status); } && {
26266 test -z "$ac_c_werror_flag" ||
26267 test ! -s conftest.err
26268 } && test -s conftest$ac_exeext &&
26269 $as_test_x conftest$ac_exeext; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026270 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026271else
26272 echo "$as_me: failed program was:" >&5
26273sed 's/^/| /' conftest.$ac_ext >&5
26274
Reid Spencera773bd52006-08-04 18:18:08 +000026275 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026276fi
Reid Spencera773bd52006-08-04 18:18:08 +000026277
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026279 conftest$ac_exeext conftest.$ac_ext
26280LIBS=$ac_check_lib_save_LIBS
26281fi
Reid Spencera773bd52006-08-04 18:18:08 +000026282{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26283echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026284if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026285 cat >>confdefs.h <<_ACEOF
26286#define HAVE_LIBPSAPI 1
26287_ACEOF
26288
26289 LIBS="-lpsapi $LIBS"
26290
26291fi
26292
26293fi
Reid Spencer22177fe2005-07-12 15:24:20 +000026294
Reid Spencera773bd52006-08-04 18:18:08 +000026295{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26296echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026297if test "${ac_cv_search_dlopen+set}" = set; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26299else
26300 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026301cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026302/* confdefs.h. */
26303_ACEOF
26304cat confdefs.h >>conftest.$ac_ext
26305cat >>conftest.$ac_ext <<_ACEOF
26306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026307
Reid Spencera773bd52006-08-04 18:18:08 +000026308/* Override any GCC internal prototype to avoid an error.
26309 Use char because int might match the return type of a GCC
26310 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026311#ifdef __cplusplus
26312extern "C"
26313#endif
John Criswell7a73b802003-06-30 21:59:07 +000026314char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026315int
26316main ()
26317{
Reid Spencera773bd52006-08-04 18:18:08 +000026318return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000026319 ;
26320 return 0;
26321}
26322_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026323for ac_lib in '' dl; do
26324 if test -z "$ac_lib"; then
26325 ac_res="none required"
26326 else
26327 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026329 fi
26330 rm -f conftest.$ac_objext conftest$ac_exeext
26331if { (ac_try="$ac_link"
26332case "(($ac_try" in
26333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334 *) ac_try_echo=$ac_try;;
26335esac
26336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026338 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026339 grep -v '^ *+' conftest.er1 >conftest.err
26340 rm -f conftest.er1
26341 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026343 (exit $ac_status); } && {
26344 test -z "$ac_c_werror_flag" ||
26345 test ! -s conftest.err
26346 } && test -s conftest$ac_exeext &&
26347 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026348 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026349else
26350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026351sed 's/^/| /' conftest.$ac_ext >&5
26352
Reid Spencera773bd52006-08-04 18:18:08 +000026353
John Criswell7a73b802003-06-30 21:59:07 +000026354fi
Reid Spencera773bd52006-08-04 18:18:08 +000026355
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026357 conftest$ac_exeext
26358 if test "${ac_cv_search_dlopen+set}" = set; then
26359 break
John Criswell7a73b802003-06-30 21:59:07 +000026360fi
Reid Spencera773bd52006-08-04 18:18:08 +000026361done
26362if test "${ac_cv_search_dlopen+set}" = set; then
26363 :
26364else
26365 ac_cv_search_dlopen=no
26366fi
26367rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026368LIBS=$ac_func_search_save_LIBS
26369fi
Reid Spencera773bd52006-08-04 18:18:08 +000026370{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26371echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26372ac_res=$ac_cv_search_dlopen
26373if test "$ac_res" != no; then
26374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026375
26376cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000026377#define HAVE_DLOPEN 1
26378_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026379
26380else
Brian Gaekec45be042003-10-07 06:01:34 +000026381 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26382echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000026383fi
26384
26385
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026386{ echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
26387echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
26388if test "${ac_cv_search_ffi_call+set}" = set; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26390else
26391 ac_func_search_save_LIBS=$LIBS
26392cat >conftest.$ac_ext <<_ACEOF
26393/* confdefs.h. */
26394_ACEOF
26395cat confdefs.h >>conftest.$ac_ext
26396cat >>conftest.$ac_ext <<_ACEOF
26397/* end confdefs.h. */
26398
26399/* Override any GCC internal prototype to avoid an error.
26400 Use char because int might match the return type of a GCC
26401 builtin and then its argument prototype would still apply. */
26402#ifdef __cplusplus
26403extern "C"
26404#endif
26405char ffi_call ();
26406int
26407main ()
26408{
26409return ffi_call ();
26410 ;
26411 return 0;
26412}
26413_ACEOF
26414for ac_lib in '' ffi; do
26415 if test -z "$ac_lib"; then
26416 ac_res="none required"
26417 else
26418 ac_res=-l$ac_lib
26419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26420 fi
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422if { (ac_try="$ac_link"
26423case "(($ac_try" in
26424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26426esac
26427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428 (eval "$ac_link") 2>conftest.er1
26429 ac_status=$?
26430 grep -v '^ *+' conftest.er1 >conftest.err
26431 rm -f conftest.er1
26432 cat conftest.err >&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); } && {
26435 test -z "$ac_c_werror_flag" ||
26436 test ! -s conftest.err
26437 } && test -s conftest$ac_exeext &&
26438 $as_test_x conftest$ac_exeext; then
26439 ac_cv_search_ffi_call=$ac_res
26440else
26441 echo "$as_me: failed program was:" >&5
26442sed 's/^/| /' conftest.$ac_ext >&5
26443
26444
26445fi
26446
26447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26448 conftest$ac_exeext
26449 if test "${ac_cv_search_ffi_call+set}" = set; then
26450 break
26451fi
26452done
26453if test "${ac_cv_search_ffi_call+set}" = set; then
26454 :
26455else
26456 ac_cv_search_ffi_call=no
26457fi
26458rm conftest.$ac_ext
26459LIBS=$ac_func_search_save_LIBS
26460fi
26461{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
26462echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
26463ac_res=$ac_cv_search_ffi_call
26464if test "$ac_res" != no; then
26465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26466
26467cat >>confdefs.h <<\_ACEOF
26468#define HAVE_LIBFFI 1
26469_ACEOF
26470
26471else
26472 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
26473echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
26474fi
26475
26476
Reid Spencera773bd52006-08-04 18:18:08 +000026477{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26478echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026479if test "${ac_cv_search_mallinfo+set}" = set; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26481else
26482 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000026483cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026484/* confdefs.h. */
26485_ACEOF
26486cat confdefs.h >>conftest.$ac_ext
26487cat >>conftest.$ac_ext <<_ACEOF
26488/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026489
Reid Spencera773bd52006-08-04 18:18:08 +000026490/* Override any GCC internal prototype to avoid an error.
26491 Use char because int might match the return type of a GCC
26492 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026493#ifdef __cplusplus
26494extern "C"
26495#endif
John Criswell7a73b802003-06-30 21:59:07 +000026496char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026497int
26498main ()
26499{
Reid Spencera773bd52006-08-04 18:18:08 +000026500return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000026501 ;
26502 return 0;
26503}
26504_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026505for ac_lib in '' malloc; do
26506 if test -z "$ac_lib"; then
26507 ac_res="none required"
26508 else
26509 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000026510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026511 fi
26512 rm -f conftest.$ac_objext conftest$ac_exeext
26513if { (ac_try="$ac_link"
26514case "(($ac_try" in
26515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26516 *) ac_try_echo=$ac_try;;
26517esac
26518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26519 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026521 grep -v '^ *+' conftest.er1 >conftest.err
26522 rm -f conftest.er1
26523 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026525 (exit $ac_status); } && {
26526 test -z "$ac_c_werror_flag" ||
26527 test ! -s conftest.err
26528 } && test -s conftest$ac_exeext &&
26529 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026530 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000026531else
26532 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026533sed 's/^/| /' conftest.$ac_ext >&5
26534
Reid Spencera773bd52006-08-04 18:18:08 +000026535
John Criswell7a73b802003-06-30 21:59:07 +000026536fi
Reid Spencera773bd52006-08-04 18:18:08 +000026537
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026539 conftest$ac_exeext
26540 if test "${ac_cv_search_mallinfo+set}" = set; then
26541 break
John Criswell7a73b802003-06-30 21:59:07 +000026542fi
Reid Spencera773bd52006-08-04 18:18:08 +000026543done
26544if test "${ac_cv_search_mallinfo+set}" = set; then
26545 :
26546else
26547 ac_cv_search_mallinfo=no
26548fi
26549rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026550LIBS=$ac_func_search_save_LIBS
26551fi
Reid Spencera773bd52006-08-04 18:18:08 +000026552{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26553echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26554ac_res=$ac_cv_search_mallinfo
26555if test "$ac_res" != no; then
26556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026557
26558cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026559#define HAVE_MALLINFO 1
26560_ACEOF
26561
26562fi
26563
26564
Reid Spencer0a262ba2005-08-24 10:07:20 +000026565if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026566
Reid Spencera773bd52006-08-04 18:18:08 +000026567{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26568echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026569if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26570 echo $ECHO_N "(cached) $ECHO_C" >&6
26571else
26572 ac_check_lib_save_LIBS=$LIBS
26573LIBS="-lpthread $LIBS"
26574cat >conftest.$ac_ext <<_ACEOF
26575/* confdefs.h. */
26576_ACEOF
26577cat confdefs.h >>conftest.$ac_ext
26578cat >>conftest.$ac_ext <<_ACEOF
26579/* end confdefs.h. */
26580
Reid Spencera773bd52006-08-04 18:18:08 +000026581/* Override any GCC internal prototype to avoid an error.
26582 Use char because int might match the return type of a GCC
26583 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000026584#ifdef __cplusplus
26585extern "C"
26586#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000026587char pthread_mutex_init ();
26588int
26589main ()
26590{
Reid Spencera773bd52006-08-04 18:18:08 +000026591return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000026592 ;
26593 return 0;
26594}
26595_ACEOF
26596rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026597if { (ac_try="$ac_link"
26598case "(($ac_try" in
26599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26600 *) ac_try_echo=$ac_try;;
26601esac
26602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26603 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000026604 ac_status=$?
26605 grep -v '^ *+' conftest.er1 >conftest.err
26606 rm -f conftest.er1
26607 cat conftest.err >&5
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026609 (exit $ac_status); } && {
26610 test -z "$ac_c_werror_flag" ||
26611 test ! -s conftest.err
26612 } && test -s conftest$ac_exeext &&
26613 $as_test_x conftest$ac_exeext; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026614 ac_cv_lib_pthread_pthread_mutex_init=yes
26615else
26616 echo "$as_me: failed program was:" >&5
26617sed 's/^/| /' conftest.$ac_ext >&5
26618
Reid Spencera773bd52006-08-04 18:18:08 +000026619 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000026620fi
Reid Spencera773bd52006-08-04 18:18:08 +000026621
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer22177fe2005-07-12 15:24:20 +000026623 conftest$ac_exeext conftest.$ac_ext
26624LIBS=$ac_check_lib_save_LIBS
26625fi
Reid Spencera773bd52006-08-04 18:18:08 +000026626{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26627echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000026628if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26629 cat >>confdefs.h <<_ACEOF
26630#define HAVE_LIBPTHREAD 1
26631_ACEOF
26632
26633 LIBS="-lpthread $LIBS"
26634
26635fi
26636
Reid Spencera773bd52006-08-04 18:18:08 +000026637 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26638echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000026639if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26640 echo $ECHO_N "(cached) $ECHO_C" >&6
26641else
26642 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000026643cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000026644/* confdefs.h. */
26645_ACEOF
26646cat confdefs.h >>conftest.$ac_ext
26647cat >>conftest.$ac_ext <<_ACEOF
26648/* end confdefs.h. */
26649
Reid Spencera773bd52006-08-04 18:18:08 +000026650/* Override any GCC internal prototype to avoid an error.
26651 Use char because int might match the return type of a GCC
26652 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000026653#ifdef __cplusplus
26654extern "C"
26655#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000026656char pthread_mutex_lock ();
26657int
26658main ()
26659{
Reid Spencera773bd52006-08-04 18:18:08 +000026660return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000026661 ;
26662 return 0;
26663}
26664_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026665for ac_lib in '' pthread; do
26666 if test -z "$ac_lib"; then
26667 ac_res="none required"
26668 else
26669 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000026670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026671 fi
26672 rm -f conftest.$ac_objext conftest$ac_exeext
26673if { (ac_try="$ac_link"
26674case "(($ac_try" in
26675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26676 *) ac_try_echo=$ac_try;;
26677esac
26678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26679 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000026680 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026681 grep -v '^ *+' conftest.er1 >conftest.err
26682 rm -f conftest.er1
26683 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026685 (exit $ac_status); } && {
26686 test -z "$ac_c_werror_flag" ||
26687 test ! -s conftest.err
26688 } && test -s conftest$ac_exeext &&
26689 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026690 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000026691else
26692 echo "$as_me: failed program was:" >&5
26693sed 's/^/| /' conftest.$ac_ext >&5
26694
Reid Spencera773bd52006-08-04 18:18:08 +000026695
Brian Gaeke5f268f72003-12-05 19:29:01 +000026696fi
Reid Spencera773bd52006-08-04 18:18:08 +000026697
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026699 conftest$ac_exeext
26700 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26701 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000026702fi
Reid Spencera773bd52006-08-04 18:18:08 +000026703done
26704if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26705 :
26706else
26707 ac_cv_search_pthread_mutex_lock=no
26708fi
26709rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000026710LIBS=$ac_func_search_save_LIBS
26711fi
Reid Spencera773bd52006-08-04 18:18:08 +000026712{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26713echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26714ac_res=$ac_cv_search_pthread_mutex_lock
26715if test "$ac_res" != no; then
26716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000026717
John Criswell40468462004-09-24 21:19:06 +000026718cat >>confdefs.h <<\_ACEOF
26719#define HAVE_PTHREAD_MUTEX_LOCK 1
26720_ACEOF
26721
26722fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000026723
Reid Spencer0a262ba2005-08-24 10:07:20 +000026724fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000026725
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026726
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026727# Check whether --with-udis86 was given.
26728if test "${with_udis86+set}" = set; then
26729 withval=$with_udis86;
26730 USE_UDIS86=1
26731
26732 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000026733 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026734 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26735 esac
26736
26737{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26738echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26739if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26741else
26742 ac_check_lib_save_LIBS=$LIBS
26743LIBS="-ludis86 $LIBS"
26744cat >conftest.$ac_ext <<_ACEOF
26745/* confdefs.h. */
26746_ACEOF
26747cat confdefs.h >>conftest.$ac_ext
26748cat >>conftest.$ac_ext <<_ACEOF
26749/* end confdefs.h. */
26750
26751/* Override any GCC internal prototype to avoid an error.
26752 Use char because int might match the return type of a GCC
26753 builtin and then its argument prototype would still apply. */
26754#ifdef __cplusplus
26755extern "C"
26756#endif
26757char ud_init ();
26758int
26759main ()
26760{
26761return ud_init ();
26762 ;
26763 return 0;
26764}
26765_ACEOF
26766rm -f conftest.$ac_objext conftest$ac_exeext
26767if { (ac_try="$ac_link"
26768case "(($ac_try" in
26769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26770 *) ac_try_echo=$ac_try;;
26771esac
26772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26773 (eval "$ac_link") 2>conftest.er1
26774 ac_status=$?
26775 grep -v '^ *+' conftest.er1 >conftest.err
26776 rm -f conftest.er1
26777 cat conftest.err >&5
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026779 (exit $ac_status); } && {
26780 test -z "$ac_c_werror_flag" ||
26781 test ! -s conftest.err
26782 } && test -s conftest$ac_exeext &&
26783 $as_test_x conftest$ac_exeext; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026784 ac_cv_lib_udis86_ud_init=yes
26785else
26786 echo "$as_me: failed program was:" >&5
26787sed 's/^/| /' conftest.$ac_ext >&5
26788
26789 ac_cv_lib_udis86_ud_init=no
26790fi
26791
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000026793 conftest$ac_exeext conftest.$ac_ext
26794LIBS=$ac_check_lib_save_LIBS
26795fi
26796{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26797echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26798if test $ac_cv_lib_udis86_ud_init = yes; then
26799 cat >>confdefs.h <<_ACEOF
26800#define HAVE_LIBUDIS86 1
26801_ACEOF
26802
26803 LIBS="-ludis86 $LIBS"
26804
26805else
26806
26807 echo "Error! You need to have libudis86 around."
26808 exit -1
26809
26810fi
26811
26812
26813else
26814 USE_UDIS86=0
26815
26816fi
26817
26818
26819cat >>confdefs.h <<_ACEOF
26820#define USE_UDIS86 $USE_UDIS86
26821_ACEOF
26822
26823
26824
Reid Spencer59473af2004-12-25 07:31:29 +000026825
26826
26827
26828
26829
26830ac_header_dirent=no
26831for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26832 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000026833{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26834echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026836 echo $ECHO_N "(cached) $ECHO_C" >&6
26837else
26838 cat >conftest.$ac_ext <<_ACEOF
26839/* confdefs.h. */
26840_ACEOF
26841cat confdefs.h >>conftest.$ac_ext
26842cat >>conftest.$ac_ext <<_ACEOF
26843/* end confdefs.h. */
26844#include <sys/types.h>
26845#include <$ac_hdr>
26846
26847int
26848main ()
26849{
26850if ((DIR *) 0)
26851return 0;
26852 ;
26853 return 0;
26854}
26855_ACEOF
26856rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000026857if { (ac_try="$ac_compile"
26858case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26861esac
26862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026864 ac_status=$?
26865 grep -v '^ *+' conftest.er1 >conftest.err
26866 rm -f conftest.er1
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026869 (exit $ac_status); } && {
26870 test -z "$ac_c_werror_flag" ||
26871 test ! -s conftest.err
26872 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000026873 eval "$as_ac_Header=yes"
26874else
26875 echo "$as_me: failed program was:" >&5
26876sed 's/^/| /' conftest.$ac_ext >&5
26877
Reid Spencera773bd52006-08-04 18:18:08 +000026878 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000026879fi
Reid Spencera773bd52006-08-04 18:18:08 +000026880
26881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026882fi
Reid Spencera773bd52006-08-04 18:18:08 +000026883ac_res=`eval echo '${'$as_ac_Header'}'`
26884 { echo "$as_me:$LINENO: result: $ac_res" >&5
26885echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026886if test `eval echo '${'$as_ac_Header'}'` = yes; then
26887 cat >>confdefs.h <<_ACEOF
26888#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26889_ACEOF
26890
26891ac_header_dirent=$ac_hdr; break
26892fi
26893
26894done
26895# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26896if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000026897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26898echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026899if test "${ac_cv_search_opendir+set}" = set; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26901else
26902 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026903cat >conftest.$ac_ext <<_ACEOF
26904/* confdefs.h. */
26905_ACEOF
26906cat confdefs.h >>conftest.$ac_ext
26907cat >>conftest.$ac_ext <<_ACEOF
26908/* end confdefs.h. */
26909
Reid Spencera773bd52006-08-04 18:18:08 +000026910/* Override any GCC internal prototype to avoid an error.
26911 Use char because int might match the return type of a GCC
26912 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026913#ifdef __cplusplus
26914extern "C"
26915#endif
Reid Spencer59473af2004-12-25 07:31:29 +000026916char opendir ();
26917int
26918main ()
26919{
Reid Spencera773bd52006-08-04 18:18:08 +000026920return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000026921 ;
26922 return 0;
26923}
26924_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000026925for ac_lib in '' dir; do
26926 if test -z "$ac_lib"; then
26927 ac_res="none required"
26928 else
26929 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000026930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000026931 fi
26932 rm -f conftest.$ac_objext conftest$ac_exeext
26933if { (ac_try="$ac_link"
26934case "(($ac_try" in
26935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26936 *) ac_try_echo=$ac_try;;
26937esac
26938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26939 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000026940 ac_status=$?
26941 grep -v '^ *+' conftest.er1 >conftest.err
26942 rm -f conftest.er1
26943 cat conftest.err >&5
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026945 (exit $ac_status); } && {
26946 test -z "$ac_c_werror_flag" ||
26947 test ! -s conftest.err
26948 } && test -s conftest$ac_exeext &&
26949 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000026950 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000026951else
26952 echo "$as_me: failed program was:" >&5
26953sed 's/^/| /' conftest.$ac_ext >&5
26954
Reid Spencera773bd52006-08-04 18:18:08 +000026955
Reid Spencer59473af2004-12-25 07:31:29 +000026956fi
Reid Spencera773bd52006-08-04 18:18:08 +000026957
Nick Lewycky2ab1d862009-01-20 00:52:24 +000026958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000026959 conftest$ac_exeext
26960 if test "${ac_cv_search_opendir+set}" = set; then
26961 break
Reid Spencer59473af2004-12-25 07:31:29 +000026962fi
Reid Spencera773bd52006-08-04 18:18:08 +000026963done
26964if test "${ac_cv_search_opendir+set}" = set; then
26965 :
26966else
26967 ac_cv_search_opendir=no
26968fi
26969rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026970LIBS=$ac_func_search_save_LIBS
26971fi
Reid Spencera773bd52006-08-04 18:18:08 +000026972{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26973echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26974ac_res=$ac_cv_search_opendir
26975if test "$ac_res" != no; then
26976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000026977
26978fi
26979
26980else
Reid Spencera773bd52006-08-04 18:18:08 +000026981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26982echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026983if test "${ac_cv_search_opendir+set}" = set; then
26984 echo $ECHO_N "(cached) $ECHO_C" >&6
26985else
26986 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000026987cat >conftest.$ac_ext <<_ACEOF
26988/* confdefs.h. */
26989_ACEOF
26990cat confdefs.h >>conftest.$ac_ext
26991cat >>conftest.$ac_ext <<_ACEOF
26992/* end confdefs.h. */
26993
Reid Spencera773bd52006-08-04 18:18:08 +000026994/* Override any GCC internal prototype to avoid an error.
26995 Use char because int might match the return type of a GCC
26996 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000026997#ifdef __cplusplus
26998extern "C"
26999#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027000char opendir ();
27001int
27002main ()
27003{
Reid Spencera773bd52006-08-04 18:18:08 +000027004return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027005 ;
27006 return 0;
27007}
27008_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027009for ac_lib in '' x; do
27010 if test -z "$ac_lib"; then
27011 ac_res="none required"
27012 else
27013 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027015 fi
27016 rm -f conftest.$ac_objext conftest$ac_exeext
27017if { (ac_try="$ac_link"
27018case "(($ac_try" in
27019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020 *) ac_try_echo=$ac_try;;
27021esac
27022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027024 ac_status=$?
27025 grep -v '^ *+' conftest.er1 >conftest.err
27026 rm -f conftest.er1
27027 cat conftest.err >&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027029 (exit $ac_status); } && {
27030 test -z "$ac_c_werror_flag" ||
27031 test ! -s conftest.err
27032 } && test -s conftest$ac_exeext &&
27033 $as_test_x conftest$ac_exeext; then
Reid Spencera773bd52006-08-04 18:18:08 +000027034 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027035else
27036 echo "$as_me: failed program was:" >&5
27037sed 's/^/| /' conftest.$ac_ext >&5
27038
Reid Spencera773bd52006-08-04 18:18:08 +000027039
Reid Spencer59473af2004-12-25 07:31:29 +000027040fi
Reid Spencera773bd52006-08-04 18:18:08 +000027041
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencera773bd52006-08-04 18:18:08 +000027043 conftest$ac_exeext
27044 if test "${ac_cv_search_opendir+set}" = set; then
27045 break
Reid Spencer59473af2004-12-25 07:31:29 +000027046fi
Reid Spencera773bd52006-08-04 18:18:08 +000027047done
27048if test "${ac_cv_search_opendir+set}" = set; then
27049 :
27050else
27051 ac_cv_search_opendir=no
27052fi
27053rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027054LIBS=$ac_func_search_save_LIBS
27055fi
Reid Spencera773bd52006-08-04 18:18:08 +000027056{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27057echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27058ac_res=$ac_cv_search_opendir
27059if test "$ac_res" != no; then
27060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027061
27062fi
27063
27064fi
27065
Reid Spencera773bd52006-08-04 18:18:08 +000027066{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27067echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027068if test "${ac_cv_header_mmap_anon+set}" = set; then
27069 echo $ECHO_N "(cached) $ECHO_C" >&6
27070else
27071 ac_ext=c
27072ac_cpp='$CPP $CPPFLAGS'
27073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27075ac_compiler_gnu=$ac_cv_c_compiler_gnu
27076
27077 cat >conftest.$ac_ext <<_ACEOF
27078/* confdefs.h. */
27079_ACEOF
27080cat confdefs.h >>conftest.$ac_ext
27081cat >>conftest.$ac_ext <<_ACEOF
27082/* end confdefs.h. */
27083#include <sys/mman.h>
27084#include <unistd.h>
27085#include <fcntl.h>
27086int
27087main ()
27088{
27089mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27090 ;
27091 return 0;
27092}
27093_ACEOF
27094rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027095if { (ac_try="$ac_compile"
27096case "(($ac_try" in
27097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098 *) ac_try_echo=$ac_try;;
27099esac
27100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027102 ac_status=$?
27103 grep -v '^ *+' conftest.er1 >conftest.err
27104 rm -f conftest.er1
27105 cat conftest.err >&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027107 (exit $ac_status); } && {
27108 test -z "$ac_c_werror_flag" ||
27109 test ! -s conftest.err
27110 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027111 ac_cv_header_mmap_anon=yes
27112else
27113 echo "$as_me: failed program was:" >&5
27114sed 's/^/| /' conftest.$ac_ext >&5
27115
Reid Spencera773bd52006-08-04 18:18:08 +000027116 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000027117fi
Reid Spencera773bd52006-08-04 18:18:08 +000027118
27119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027120 ac_ext=c
27121ac_cpp='$CPP $CPPFLAGS'
27122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27124ac_compiler_gnu=$ac_cv_c_compiler_gnu
27125
27126
27127fi
Reid Spencera773bd52006-08-04 18:18:08 +000027128{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27129echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027130if test "$ac_cv_header_mmap_anon" = yes; then
27131
27132cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000027133#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000027134_ACEOF
27135
27136fi
27137
Reid Spencera773bd52006-08-04 18:18:08 +000027138{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27139echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027140if test "${ac_cv_header_stat_broken+set}" = set; then
27141 echo $ECHO_N "(cached) $ECHO_C" >&6
27142else
27143 cat >conftest.$ac_ext <<_ACEOF
27144/* confdefs.h. */
27145_ACEOF
27146cat confdefs.h >>conftest.$ac_ext
27147cat >>conftest.$ac_ext <<_ACEOF
27148/* end confdefs.h. */
27149#include <sys/types.h>
27150#include <sys/stat.h>
27151
Reid Spencera773bd52006-08-04 18:18:08 +000027152#if defined S_ISBLK && defined S_IFDIR
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027153extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000027154#endif
27155
Reid Spencera773bd52006-08-04 18:18:08 +000027156#if defined S_ISBLK && defined S_IFCHR
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027157extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000027158#endif
27159
Reid Spencera773bd52006-08-04 18:18:08 +000027160#if defined S_ISLNK && defined S_IFREG
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027161extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000027162#endif
27163
Reid Spencera773bd52006-08-04 18:18:08 +000027164#if defined S_ISSOCK && defined S_IFREG
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027165extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Reid Spencer59473af2004-12-25 07:31:29 +000027166#endif
27167
27168_ACEOF
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027169rm -f conftest.$ac_objext
27170if { (ac_try="$ac_compile"
27171case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27174esac
27175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_compile") 2>conftest.er1
27177 ac_status=$?
27178 grep -v '^ *+' conftest.er1 >conftest.err
27179 rm -f conftest.er1
27180 cat conftest.err >&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } && {
27183 test -z "$ac_c_werror_flag" ||
27184 test ! -s conftest.err
27185 } && test -s conftest.$ac_objext; then
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027186 ac_cv_header_stat_broken=no
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027187else
27188 echo "$as_me: failed program was:" >&5
27189sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwincc499a42008-10-22 09:56:27 +000027190
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027191 ac_cv_header_stat_broken=yes
27192fi
27193
27194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027195fi
Reid Spencera773bd52006-08-04 18:18:08 +000027196{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27197echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027198if test $ac_cv_header_stat_broken = yes; then
27199
27200cat >>confdefs.h <<\_ACEOF
27201#define STAT_MACROS_BROKEN 1
27202_ACEOF
27203
27204fi
27205
Reid Spencera773bd52006-08-04 18:18:08 +000027206{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27207echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027208if test "${ac_cv_header_stdc+set}" = set; then
27209 echo $ECHO_N "(cached) $ECHO_C" >&6
27210else
27211 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027212/* confdefs.h. */
27213_ACEOF
27214cat confdefs.h >>conftest.$ac_ext
27215cat >>conftest.$ac_ext <<_ACEOF
27216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027217#include <stdlib.h>
27218#include <stdarg.h>
27219#include <string.h>
27220#include <float.h>
27221
John Criswell0c38eaf2003-09-10 15:17:25 +000027222int
27223main ()
27224{
27225
27226 ;
27227 return 0;
27228}
John Criswell7a73b802003-06-30 21:59:07 +000027229_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027230rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027231if { (ac_try="$ac_compile"
27232case "(($ac_try" in
27233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234 *) ac_try_echo=$ac_try;;
27235esac
27236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27237 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027238 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027239 grep -v '^ *+' conftest.er1 >conftest.err
27240 rm -f conftest.er1
27241 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027243 (exit $ac_status); } && {
27244 test -z "$ac_c_werror_flag" ||
27245 test ! -s conftest.err
27246 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000027247 ac_cv_header_stdc=yes
27248else
27249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027250sed 's/^/| /' conftest.$ac_ext >&5
27251
Reid Spencera773bd52006-08-04 18:18:08 +000027252 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000027253fi
Reid Spencera773bd52006-08-04 18:18:08 +000027254
27255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027256
27257if test $ac_cv_header_stdc = yes; then
27258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27259 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027260/* confdefs.h. */
27261_ACEOF
27262cat confdefs.h >>conftest.$ac_ext
27263cat >>conftest.$ac_ext <<_ACEOF
27264/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027265#include <string.h>
27266
27267_ACEOF
27268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000027269 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000027270 :
27271else
27272 ac_cv_header_stdc=no
27273fi
27274rm -f conftest*
27275
27276fi
27277
27278if test $ac_cv_header_stdc = yes; then
27279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27280 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027281/* confdefs.h. */
27282_ACEOF
27283cat confdefs.h >>conftest.$ac_ext
27284cat >>conftest.$ac_ext <<_ACEOF
27285/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027286#include <stdlib.h>
27287
27288_ACEOF
27289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000027290 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000027291 :
27292else
27293 ac_cv_header_stdc=no
27294fi
27295rm -f conftest*
27296
27297fi
27298
27299if test $ac_cv_header_stdc = yes; then
27300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27301 if test "$cross_compiling" = yes; then
27302 :
27303else
27304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027305/* confdefs.h. */
27306_ACEOF
27307cat confdefs.h >>conftest.$ac_ext
27308cat >>conftest.$ac_ext <<_ACEOF
27309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027310#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000027311#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000027312#if ((' ' & 0x0FF) == 0x020)
27313# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27314# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27315#else
John Criswell0c38eaf2003-09-10 15:17:25 +000027316# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027317 (('a' <= (c) && (c) <= 'i') \
27318 || ('j' <= (c) && (c) <= 'r') \
27319 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000027320# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27321#endif
27322
27323#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27324int
27325main ()
27326{
27327 int i;
27328 for (i = 0; i < 256; i++)
27329 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000027330 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000027331 return 2;
27332 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000027333}
27334_ACEOF
27335rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027336if { (ac_try="$ac_link"
27337case "(($ac_try" in
27338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27339 *) ac_try_echo=$ac_try;;
27340esac
27341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27342 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027343 ac_status=$?
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027346 { (case "(($ac_try" in
27347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348 *) ac_try_echo=$ac_try;;
27349esac
27350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; }; then
27355 :
27356else
27357 echo "$as_me: program exited with status $ac_status" >&5
27358echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027359sed 's/^/| /' conftest.$ac_ext >&5
27360
John Criswell7a73b802003-06-30 21:59:07 +000027361( exit $ac_status )
27362ac_cv_header_stdc=no
27363fi
Reid Spencera773bd52006-08-04 18:18:08 +000027364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27365fi
27366
27367
John Criswell7a73b802003-06-30 21:59:07 +000027368fi
27369fi
Reid Spencera773bd52006-08-04 18:18:08 +000027370{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27371echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027372if test $ac_cv_header_stdc = yes; then
27373
27374cat >>confdefs.h <<\_ACEOF
27375#define STDC_HEADERS 1
27376_ACEOF
27377
27378fi
27379
Reid Spencera773bd52006-08-04 18:18:08 +000027380{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27381echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027382if test "${ac_cv_header_sys_wait_h+set}" = set; then
27383 echo $ECHO_N "(cached) $ECHO_C" >&6
27384else
27385 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027386/* confdefs.h. */
27387_ACEOF
27388cat confdefs.h >>conftest.$ac_ext
27389cat >>conftest.$ac_ext <<_ACEOF
27390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027391#include <sys/types.h>
27392#include <sys/wait.h>
27393#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000027394# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000027395#endif
27396#ifndef WIFEXITED
27397# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27398#endif
27399
John Criswell7a73b802003-06-30 21:59:07 +000027400int
27401main ()
27402{
27403 int s;
27404 wait (&s);
27405 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27406 ;
27407 return 0;
27408}
27409_ACEOF
27410rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027411if { (ac_try="$ac_compile"
27412case "(($ac_try" in
27413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27414 *) ac_try_echo=$ac_try;;
27415esac
27416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27417 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027418 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027419 grep -v '^ *+' conftest.er1 >conftest.err
27420 rm -f conftest.er1
27421 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027423 (exit $ac_status); } && {
27424 test -z "$ac_c_werror_flag" ||
27425 test ! -s conftest.err
27426 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000027427 ac_cv_header_sys_wait_h=yes
27428else
27429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027430sed 's/^/| /' conftest.$ac_ext >&5
27431
Reid Spencera773bd52006-08-04 18:18:08 +000027432 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000027433fi
Reid Spencera773bd52006-08-04 18:18:08 +000027434
27435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027436fi
Reid Spencera773bd52006-08-04 18:18:08 +000027437{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27438echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027439if test $ac_cv_header_sys_wait_h = yes; then
27440
27441cat >>confdefs.h <<\_ACEOF
27442#define HAVE_SYS_WAIT_H 1
27443_ACEOF
27444
27445fi
27446
Reid Spencera773bd52006-08-04 18:18:08 +000027447{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27448echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027449if test "${ac_cv_header_time+set}" = set; then
27450 echo $ECHO_N "(cached) $ECHO_C" >&6
27451else
27452 cat >conftest.$ac_ext <<_ACEOF
27453/* confdefs.h. */
27454_ACEOF
27455cat confdefs.h >>conftest.$ac_ext
27456cat >>conftest.$ac_ext <<_ACEOF
27457/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027458#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027459#include <sys/time.h>
27460#include <time.h>
27461
27462int
27463main ()
27464{
27465if ((struct tm *) 0)
27466return 0;
27467 ;
27468 return 0;
27469}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027470_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027471rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027472if { (ac_try="$ac_compile"
27473case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27476esac
27477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027479 ac_status=$?
27480 grep -v '^ *+' conftest.er1 >conftest.err
27481 rm -f conftest.er1
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027484 (exit $ac_status); } && {
27485 test -z "$ac_c_werror_flag" ||
27486 test ! -s conftest.err
27487 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027488 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027489else
27490 echo "$as_me: failed program was:" >&5
27491sed 's/^/| /' conftest.$ac_ext >&5
27492
Reid Spencera773bd52006-08-04 18:18:08 +000027493 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027494fi
Reid Spencera773bd52006-08-04 18:18:08 +000027495
27496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027497fi
Reid Spencera773bd52006-08-04 18:18:08 +000027498{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27499echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027500if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027501
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027502cat >>confdefs.h <<\_ACEOF
27503#define TIME_WITH_SYS_TIME 1
27504_ACEOF
27505
27506fi
27507
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027508
Reid Spencer59473af2004-12-25 07:31:29 +000027509
27510
27511
27512
27513
27514
27515for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27516do
27517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027522 echo $ECHO_N "(cached) $ECHO_C" >&6
27523fi
Reid Spencera773bd52006-08-04 18:18:08 +000027524ac_res=`eval echo '${'$as_ac_Header'}'`
27525 { echo "$as_me:$LINENO: result: $ac_res" >&5
27526echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027527else
27528 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027529{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027531cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027532/* confdefs.h. */
27533_ACEOF
27534cat confdefs.h >>conftest.$ac_ext
27535cat >>conftest.$ac_ext <<_ACEOF
27536/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000027537$ac_includes_default
27538#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027539_ACEOF
27540rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027541if { (ac_try="$ac_compile"
27542case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27545esac
27546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027548 ac_status=$?
27549 grep -v '^ *+' conftest.er1 >conftest.err
27550 rm -f conftest.er1
27551 cat conftest.err >&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027553 (exit $ac_status); } && {
27554 test -z "$ac_c_werror_flag" ||
27555 test ! -s conftest.err
27556 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027557 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027558else
27559 echo "$as_me: failed program was:" >&5
27560sed 's/^/| /' conftest.$ac_ext >&5
27561
Reid Spencera773bd52006-08-04 18:18:08 +000027562 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027563fi
Reid Spencera773bd52006-08-04 18:18:08 +000027564
27565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27566{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27567echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027568
Reid Spencer59473af2004-12-25 07:31:29 +000027569# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027570{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027572cat >conftest.$ac_ext <<_ACEOF
27573/* confdefs.h. */
27574_ACEOF
27575cat confdefs.h >>conftest.$ac_ext
27576cat >>conftest.$ac_ext <<_ACEOF
27577/* end confdefs.h. */
27578#include <$ac_header>
27579_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027580if { (ac_try="$ac_cpp conftest.$ac_ext"
27581case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27584esac
27585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027587 ac_status=$?
27588 grep -v '^ *+' conftest.er1 >conftest.err
27589 rm -f conftest.er1
27590 cat conftest.err >&5
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027592 (exit $ac_status); } >/dev/null && {
27593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27594 test ! -s conftest.err
27595 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027596 ac_header_preproc=yes
27597else
27598 echo "$as_me: failed program was:" >&5
27599sed 's/^/| /' conftest.$ac_ext >&5
27600
27601 ac_header_preproc=no
27602fi
Reid Spencera773bd52006-08-04 18:18:08 +000027603
Reid Spencer59473af2004-12-25 07:31:29 +000027604rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027605{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27606echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027607
27608# So? What about this header?
27609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27610 yes:no: )
27611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27615 ac_header_preproc=yes
27616 ;;
27617 no:yes:* )
27618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027630 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027631## ----------------------------------- ##
27632## Report this to llvmbugs@cs.uiuc.edu ##
27633## ----------------------------------- ##
27634_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027635 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027636 ;;
27637esac
Reid Spencera773bd52006-08-04 18:18:08 +000027638{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027641 echo $ECHO_N "(cached) $ECHO_C" >&6
27642else
27643 eval "$as_ac_Header=\$ac_header_preproc"
27644fi
Reid Spencera773bd52006-08-04 18:18:08 +000027645ac_res=`eval echo '${'$as_ac_Header'}'`
27646 { echo "$as_me:$LINENO: result: $ac_res" >&5
27647echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027648
27649fi
Reid Spencer59473af2004-12-25 07:31:29 +000027650if test `eval echo '${'$as_ac_Header'}'` = yes; then
27651 cat >>confdefs.h <<_ACEOF
27652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027653_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027654
27655fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027656
Reid Spencer59473af2004-12-25 07:31:29 +000027657done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027658
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027659
27660
Reid Spencer59473af2004-12-25 07:31:29 +000027661
27662
27663
27664
Reid Spencercdb08a32006-06-05 16:11:07 +000027665for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000027666do
27667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027672 echo $ECHO_N "(cached) $ECHO_C" >&6
27673fi
Reid Spencera773bd52006-08-04 18:18:08 +000027674ac_res=`eval echo '${'$as_ac_Header'}'`
27675 { echo "$as_me:$LINENO: result: $ac_res" >&5
27676echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027677else
27678 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027679{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027681cat >conftest.$ac_ext <<_ACEOF
27682/* confdefs.h. */
27683_ACEOF
27684cat confdefs.h >>conftest.$ac_ext
27685cat >>conftest.$ac_ext <<_ACEOF
27686/* end confdefs.h. */
27687$ac_includes_default
27688#include <$ac_header>
27689_ACEOF
27690rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027691if { (ac_try="$ac_compile"
27692case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27695esac
27696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027698 ac_status=$?
27699 grep -v '^ *+' conftest.er1 >conftest.err
27700 rm -f conftest.er1
27701 cat conftest.err >&5
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027703 (exit $ac_status); } && {
27704 test -z "$ac_c_werror_flag" ||
27705 test ! -s conftest.err
27706 } && test -s conftest.$ac_objext; then
Reid Spencer59473af2004-12-25 07:31:29 +000027707 ac_header_compiler=yes
27708else
27709 echo "$as_me: failed program was:" >&5
27710sed 's/^/| /' conftest.$ac_ext >&5
27711
Reid Spencera773bd52006-08-04 18:18:08 +000027712 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000027713fi
Reid Spencera773bd52006-08-04 18:18:08 +000027714
27715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27716{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27717echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027718
27719# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000027720{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027722cat >conftest.$ac_ext <<_ACEOF
27723/* confdefs.h. */
27724_ACEOF
27725cat confdefs.h >>conftest.$ac_ext
27726cat >>conftest.$ac_ext <<_ACEOF
27727/* end confdefs.h. */
27728#include <$ac_header>
27729_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027730if { (ac_try="$ac_cpp conftest.$ac_ext"
27731case "(($ac_try" in
27732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733 *) ac_try_echo=$ac_try;;
27734esac
27735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027737 ac_status=$?
27738 grep -v '^ *+' conftest.er1 >conftest.err
27739 rm -f conftest.er1
27740 cat conftest.err >&5
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027742 (exit $ac_status); } >/dev/null && {
27743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27744 test ! -s conftest.err
27745 }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027746 ac_header_preproc=yes
27747else
27748 echo "$as_me: failed program was:" >&5
27749sed 's/^/| /' conftest.$ac_ext >&5
27750
27751 ac_header_preproc=no
27752fi
Reid Spencera773bd52006-08-04 18:18:08 +000027753
Reid Spencer59473af2004-12-25 07:31:29 +000027754rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000027755{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27756echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027757
27758# So? What about this header?
27759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27760 yes:no: )
27761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27764echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27765 ac_header_preproc=yes
27766 ;;
27767 no:yes:* )
27768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27769echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27771echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27773echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27775echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27779echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000027780 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000027781## ----------------------------------- ##
27782## Report this to llvmbugs@cs.uiuc.edu ##
27783## ----------------------------------- ##
27784_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000027785 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000027786 ;;
27787esac
Reid Spencera773bd52006-08-04 18:18:08 +000027788{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027791 echo $ECHO_N "(cached) $ECHO_C" >&6
27792else
27793 eval "$as_ac_Header=\$ac_header_preproc"
27794fi
Reid Spencera773bd52006-08-04 18:18:08 +000027795ac_res=`eval echo '${'$as_ac_Header'}'`
27796 { echo "$as_me:$LINENO: result: $ac_res" >&5
27797echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027798
27799fi
27800if test `eval echo '${'$as_ac_Header'}'` = yes; then
27801 cat >>confdefs.h <<_ACEOF
27802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27803_ACEOF
27804
27805fi
27806
27807done
27808
27809
Reid Spencerbe3e4192007-08-17 05:45:26 +000027810for ac_header in windows.h
27811do
27812as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27817 echo $ECHO_N "(cached) $ECHO_C" >&6
27818fi
27819ac_res=`eval echo '${'$as_ac_Header'}'`
27820 { echo "$as_me:$LINENO: result: $ac_res" >&5
27821echo "${ECHO_T}$ac_res" >&6; }
27822else
27823 # Is the header compilable?
27824{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27826cat >conftest.$ac_ext <<_ACEOF
27827/* confdefs.h. */
27828_ACEOF
27829cat confdefs.h >>conftest.$ac_ext
27830cat >>conftest.$ac_ext <<_ACEOF
27831/* end confdefs.h. */
27832$ac_includes_default
27833#include <$ac_header>
27834_ACEOF
27835rm -f conftest.$ac_objext
27836if { (ac_try="$ac_compile"
27837case "(($ac_try" in
27838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839 *) ac_try_echo=$ac_try;;
27840esac
27841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_compile") 2>conftest.er1
27843 ac_status=$?
27844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027848 (exit $ac_status); } && {
27849 test -z "$ac_c_werror_flag" ||
27850 test ! -s conftest.err
27851 } && test -s conftest.$ac_objext; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027852 ac_header_compiler=yes
27853else
27854 echo "$as_me: failed program was:" >&5
27855sed 's/^/| /' conftest.$ac_ext >&5
27856
27857 ac_header_compiler=no
27858fi
27859
27860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27861{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27862echo "${ECHO_T}$ac_header_compiler" >&6; }
27863
27864# Is the header present?
27865{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27867cat >conftest.$ac_ext <<_ACEOF
27868/* confdefs.h. */
27869_ACEOF
27870cat confdefs.h >>conftest.$ac_ext
27871cat >>conftest.$ac_ext <<_ACEOF
27872/* end confdefs.h. */
27873#include <$ac_header>
27874_ACEOF
27875if { (ac_try="$ac_cpp conftest.$ac_ext"
27876case "(($ac_try" in
27877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878 *) ac_try_echo=$ac_try;;
27879esac
27880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27882 ac_status=$?
27883 grep -v '^ *+' conftest.er1 >conftest.err
27884 rm -f conftest.er1
27885 cat conftest.err >&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027887 (exit $ac_status); } >/dev/null && {
27888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27889 test ! -s conftest.err
27890 }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000027891 ac_header_preproc=yes
27892else
27893 echo "$as_me: failed program was:" >&5
27894sed 's/^/| /' conftest.$ac_ext >&5
27895
27896 ac_header_preproc=no
27897fi
27898
27899rm -f conftest.err conftest.$ac_ext
27900{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27901echo "${ECHO_T}$ac_header_preproc" >&6; }
27902
27903# So? What about this header?
27904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27905 yes:no: )
27906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27910 ac_header_preproc=yes
27911 ;;
27912 no:yes:* )
27913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27920echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27925 ( cat <<\_ASBOX
27926## ----------------------------------- ##
27927## Report this to llvmbugs@cs.uiuc.edu ##
27928## ----------------------------------- ##
27929_ASBOX
27930 ) | sed "s/^/$as_me: WARNING: /" >&2
27931 ;;
27932esac
27933{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27936 echo $ECHO_N "(cached) $ECHO_C" >&6
27937else
27938 eval "$as_ac_Header=\$ac_header_preproc"
27939fi
27940ac_res=`eval echo '${'$as_ac_Header'}'`
27941 { echo "$as_me:$LINENO: result: $ac_res" >&5
27942echo "${ECHO_T}$ac_res" >&6; }
27943
27944fi
27945if test `eval echo '${'$as_ac_Header'}'` = yes; then
27946 cat >>confdefs.h <<_ACEOF
27947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27948_ACEOF
27949
27950fi
27951
27952done
Reid Spencer59473af2004-12-25 07:31:29 +000027953
27954
27955
27956
Reid Spencerbe3e4192007-08-17 05:45:26 +000027957
27958for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027959do
27960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027965 echo $ECHO_N "(cached) $ECHO_C" >&6
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; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027970else
27971 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000027972{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027974cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027975/* confdefs.h. */
27976_ACEOF
27977cat confdefs.h >>conftest.$ac_ext
27978cat >>conftest.$ac_ext <<_ACEOF
27979/* end confdefs.h. */
27980$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027981#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027982_ACEOF
27983rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027984if { (ac_try="$ac_compile"
27985case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27988esac
27989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027992 grep -v '^ *+' conftest.er1 >conftest.err
27993 rm -f conftest.er1
27994 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000027996 (exit $ac_status); } && {
27997 test -z "$ac_c_werror_flag" ||
27998 test ! -s conftest.err
27999 } && test -s conftest.$ac_objext; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028000 ac_header_compiler=yes
28001else
28002 echo "$as_me: failed program was:" >&5
28003sed 's/^/| /' conftest.$ac_ext >&5
28004
Reid Spencera773bd52006-08-04 18:18:08 +000028005 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028006fi
Reid Spencera773bd52006-08-04 18:18:08 +000028007
28008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28009{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28010echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028011
28012# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028013{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028015cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028016/* confdefs.h. */
28017_ACEOF
28018cat confdefs.h >>conftest.$ac_ext
28019cat >>conftest.$ac_ext <<_ACEOF
28020/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028021#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028022_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028023if { (ac_try="$ac_cpp conftest.$ac_ext"
28024case "(($ac_try" in
28025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026 *) ac_try_echo=$ac_try;;
28027esac
28028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028030 ac_status=$?
28031 grep -v '^ *+' conftest.er1 >conftest.err
28032 rm -f conftest.er1
28033 cat conftest.err >&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028035 (exit $ac_status); } >/dev/null && {
28036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28037 test ! -s conftest.err
28038 }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028039 ac_header_preproc=yes
28040else
28041 echo "$as_me: failed program was:" >&5
28042sed 's/^/| /' conftest.$ac_ext >&5
28043
28044 ac_header_preproc=no
28045fi
Reid Spencera773bd52006-08-04 18:18:08 +000028046
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028047rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028048{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28049echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028050
28051# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28053 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028058 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028059 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028060 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28068echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028073 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028074## ----------------------------------- ##
28075## Report this to llvmbugs@cs.uiuc.edu ##
28076## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028077_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028078 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028079 ;;
28080esac
Reid Spencera773bd52006-08-04 18:18:08 +000028081{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028084 echo $ECHO_N "(cached) $ECHO_C" >&6
28085else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028086 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028087fi
Reid Spencera773bd52006-08-04 18:18:08 +000028088ac_res=`eval echo '${'$as_ac_Header'}'`
28089 { echo "$as_me:$LINENO: result: $ac_res" >&5
28090echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028091
28092fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028093if test `eval echo '${'$as_ac_Header'}'` = yes; then
28094 cat >>confdefs.h <<_ACEOF
28095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000028096_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000028097
28098fi
John Criswell7ed43ad2004-07-19 16:12:29 +000028099
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028100done
28101
John Criswell7ed43ad2004-07-19 16:12:29 +000028102
Reid Spencercdb08a32006-06-05 16:11:07 +000028103
Reid Spencera6d990a2006-09-14 06:17:21 +000028104
28105for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000028106do
28107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028112 echo $ECHO_N "(cached) $ECHO_C" >&6
28113fi
Reid Spencera773bd52006-08-04 18:18:08 +000028114ac_res=`eval echo '${'$as_ac_Header'}'`
28115 { echo "$as_me:$LINENO: result: $ac_res" >&5
28116echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028117else
28118 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028121cat >conftest.$ac_ext <<_ACEOF
28122/* confdefs.h. */
28123_ACEOF
28124cat confdefs.h >>conftest.$ac_ext
28125cat >>conftest.$ac_ext <<_ACEOF
28126/* end confdefs.h. */
28127$ac_includes_default
28128#include <$ac_header>
28129_ACEOF
28130rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028131if { (ac_try="$ac_compile"
28132case "(($ac_try" in
28133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28134 *) ac_try_echo=$ac_try;;
28135esac
28136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28137 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028138 ac_status=$?
28139 grep -v '^ *+' conftest.er1 >conftest.err
28140 rm -f conftest.er1
28141 cat conftest.err >&5
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028143 (exit $ac_status); } && {
28144 test -z "$ac_c_werror_flag" ||
28145 test ! -s conftest.err
28146 } && test -s conftest.$ac_objext; then
Chris Lattner0b142592005-11-14 06:57:34 +000028147 ac_header_compiler=yes
28148else
28149 echo "$as_me: failed program was:" >&5
28150sed 's/^/| /' conftest.$ac_ext >&5
28151
Reid Spencera773bd52006-08-04 18:18:08 +000028152 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000028153fi
Reid Spencera773bd52006-08-04 18:18:08 +000028154
28155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28156{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28157echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028158
28159# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028160{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028162cat >conftest.$ac_ext <<_ACEOF
28163/* confdefs.h. */
28164_ACEOF
28165cat confdefs.h >>conftest.$ac_ext
28166cat >>conftest.$ac_ext <<_ACEOF
28167/* end confdefs.h. */
28168#include <$ac_header>
28169_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028170if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028177 ac_status=$?
28178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028182 (exit $ac_status); } >/dev/null && {
28183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28184 test ! -s conftest.err
28185 }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028186 ac_header_preproc=yes
28187else
28188 echo "$as_me: failed program was:" >&5
28189sed 's/^/| /' conftest.$ac_ext >&5
28190
28191 ac_header_preproc=no
28192fi
Reid Spencera773bd52006-08-04 18:18:08 +000028193
Chris Lattner0b142592005-11-14 06:57:34 +000028194rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028195{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28196echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028197
28198# So? What about this header?
28199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28200 yes:no: )
28201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28205 ac_header_preproc=yes
28206 ;;
28207 no:yes:* )
28208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28211echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28215echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028220 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000028221## ----------------------------------- ##
28222## Report this to llvmbugs@cs.uiuc.edu ##
28223## ----------------------------------- ##
28224_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028225 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000028226 ;;
28227esac
Reid Spencera773bd52006-08-04 18:18:08 +000028228{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028231 echo $ECHO_N "(cached) $ECHO_C" >&6
28232else
28233 eval "$as_ac_Header=\$ac_header_preproc"
28234fi
Reid Spencera773bd52006-08-04 18:18:08 +000028235ac_res=`eval echo '${'$as_ac_Header'}'`
28236 { echo "$as_me:$LINENO: result: $ac_res" >&5
28237echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028238
28239fi
28240if test `eval echo '${'$as_ac_Header'}'` = yes; then
28241 cat >>confdefs.h <<_ACEOF
28242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28243_ACEOF
28244
28245fi
28246
28247done
28248
Reid Spencer0a262ba2005-08-24 10:07:20 +000028249if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000028250
28251for ac_header in pthread.h
28252do
28253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028258 echo $ECHO_N "(cached) $ECHO_C" >&6
28259fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028260ac_res=`eval echo '${'$as_ac_Header'}'`
28261 { echo "$as_me:$LINENO: result: $ac_res" >&5
28262echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028263else
28264 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000028265{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028267cat >conftest.$ac_ext <<_ACEOF
28268/* confdefs.h. */
28269_ACEOF
28270cat confdefs.h >>conftest.$ac_ext
28271cat >>conftest.$ac_ext <<_ACEOF
28272/* end confdefs.h. */
28273$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000028274#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000028275_ACEOF
28276rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028277if { (ac_try="$ac_compile"
28278case "(($ac_try" in
28279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280 *) ac_try_echo=$ac_try;;
28281esac
28282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028284 ac_status=$?
28285 grep -v '^ *+' conftest.er1 >conftest.err
28286 rm -f conftest.er1
28287 cat conftest.err >&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028289 (exit $ac_status); } && {
28290 test -z "$ac_c_werror_flag" ||
28291 test ! -s conftest.err
28292 } && test -s conftest.$ac_objext; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028293 ac_header_compiler=yes
28294else
28295 echo "$as_me: failed program was:" >&5
28296sed 's/^/| /' conftest.$ac_ext >&5
28297
Reid Spencera773bd52006-08-04 18:18:08 +000028298 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000028299fi
Reid Spencera773bd52006-08-04 18:18:08 +000028300
28301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28302{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28303echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028304
28305# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000028306{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028308cat >conftest.$ac_ext <<_ACEOF
28309/* confdefs.h. */
28310_ACEOF
28311cat confdefs.h >>conftest.$ac_ext
28312cat >>conftest.$ac_ext <<_ACEOF
28313/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000028314#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000028315_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028316if { (ac_try="$ac_cpp conftest.$ac_ext"
28317case "(($ac_try" in
28318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319 *) ac_try_echo=$ac_try;;
28320esac
28321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000028323 ac_status=$?
28324 grep -v '^ *+' conftest.er1 >conftest.err
28325 rm -f conftest.er1
28326 cat conftest.err >&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028328 (exit $ac_status); } >/dev/null && {
28329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28330 test ! -s conftest.err
28331 }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028332 ac_header_preproc=yes
28333else
28334 echo "$as_me: failed program was:" >&5
28335sed 's/^/| /' conftest.$ac_ext >&5
28336
28337 ac_header_preproc=no
28338fi
Reid Spencera773bd52006-08-04 18:18:08 +000028339
Reid Spencer0a262ba2005-08-24 10:07:20 +000028340rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028341{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28342echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028343
28344# So? What about this header?
28345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28346 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000028351 ac_header_preproc=yes
28352 ;;
28353 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000028354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028366 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000028367## ----------------------------------- ##
28368## Report this to llvmbugs@cs.uiuc.edu ##
28369## ----------------------------------- ##
28370_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028371 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000028372 ;;
28373esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000028374{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000028377 echo $ECHO_N "(cached) $ECHO_C" >&6
28378else
Reid Spencerbe3e4192007-08-17 05:45:26 +000028379 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000028380fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028381ac_res=`eval echo '${'$as_ac_Header'}'`
28382 { echo "$as_me:$LINENO: result: $ac_res" >&5
28383echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000028384
28385fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000028386if test `eval echo '${'$as_ac_Header'}'` = yes; then
28387 cat >>confdefs.h <<_ACEOF
28388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28389_ACEOF
28390 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000028391
28392else
28393 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028394
28395fi
28396
Reid Spencerbe3e4192007-08-17 05:45:26 +000028397done
Reid Spencer1000b732006-12-01 00:37:14 +000028398
28399else
28400 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000028401
28402fi
Reid Spencer8085cff2005-01-16 02:58:39 +000028403
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028404if test "${ac_cv_header_ffi_ffi_h+set}" = set; then
28405 { echo "$as_me:$LINENO: checking for ffi/ffi.h" >&5
28406echo $ECHO_N "checking for ffi/ffi.h... $ECHO_C" >&6; }
28407if test "${ac_cv_header_ffi_ffi_h+set}" = set; then
28408 echo $ECHO_N "(cached) $ECHO_C" >&6
28409fi
28410{ echo "$as_me:$LINENO: result: $ac_cv_header_ffi_ffi_h" >&5
28411echo "${ECHO_T}$ac_cv_header_ffi_ffi_h" >&6; }
28412else
28413 # Is the header compilable?
28414{ echo "$as_me:$LINENO: checking ffi/ffi.h usability" >&5
28415echo $ECHO_N "checking ffi/ffi.h usability... $ECHO_C" >&6; }
28416cat >conftest.$ac_ext <<_ACEOF
28417/* confdefs.h. */
28418_ACEOF
28419cat confdefs.h >>conftest.$ac_ext
28420cat >>conftest.$ac_ext <<_ACEOF
28421/* end confdefs.h. */
28422$ac_includes_default
28423#include <ffi/ffi.h>
28424_ACEOF
28425rm -f conftest.$ac_objext
28426if { (ac_try="$ac_compile"
28427case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28430esac
28431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_compile") 2>conftest.er1
28433 ac_status=$?
28434 grep -v '^ *+' conftest.er1 >conftest.err
28435 rm -f conftest.er1
28436 cat conftest.err >&5
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); } && {
28439 test -z "$ac_c_werror_flag" ||
28440 test ! -s conftest.err
28441 } && test -s conftest.$ac_objext; then
28442 ac_header_compiler=yes
28443else
28444 echo "$as_me: failed program was:" >&5
28445sed 's/^/| /' conftest.$ac_ext >&5
28446
28447 ac_header_compiler=no
28448fi
28449
28450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28451{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28452echo "${ECHO_T}$ac_header_compiler" >&6; }
28453
28454# Is the header present?
28455{ echo "$as_me:$LINENO: checking ffi/ffi.h presence" >&5
28456echo $ECHO_N "checking ffi/ffi.h presence... $ECHO_C" >&6; }
28457cat >conftest.$ac_ext <<_ACEOF
28458/* confdefs.h. */
28459_ACEOF
28460cat confdefs.h >>conftest.$ac_ext
28461cat >>conftest.$ac_ext <<_ACEOF
28462/* end confdefs.h. */
28463#include <ffi/ffi.h>
28464_ACEOF
28465if { (ac_try="$ac_cpp conftest.$ac_ext"
28466case "(($ac_try" in
28467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28468 *) ac_try_echo=$ac_try;;
28469esac
28470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28472 ac_status=$?
28473 grep -v '^ *+' conftest.er1 >conftest.err
28474 rm -f conftest.er1
28475 cat conftest.err >&5
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); } >/dev/null && {
28478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28479 test ! -s conftest.err
28480 }; then
28481 ac_header_preproc=yes
28482else
28483 echo "$as_me: failed program was:" >&5
28484sed 's/^/| /' conftest.$ac_ext >&5
28485
28486 ac_header_preproc=no
28487fi
28488
28489rm -f conftest.err conftest.$ac_ext
28490{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28491echo "${ECHO_T}$ac_header_preproc" >&6; }
28492
28493# So? What about this header?
28494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28495 yes:no: )
28496 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
28497echo "$as_me: WARNING: ffi/ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28498 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: proceeding with the compiler's result" >&5
28499echo "$as_me: WARNING: ffi/ffi.h: proceeding with the compiler's result" >&2;}
28500 ac_header_preproc=yes
28501 ;;
28502 no:yes:* )
28503 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: present but cannot be compiled" >&5
28504echo "$as_me: WARNING: ffi/ffi.h: present but cannot be compiled" >&2;}
28505 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: check for missing prerequisite headers?" >&5
28506echo "$as_me: WARNING: ffi/ffi.h: check for missing prerequisite headers?" >&2;}
28507 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: see the Autoconf documentation" >&5
28508echo "$as_me: WARNING: ffi/ffi.h: see the Autoconf documentation" >&2;}
28509 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: section \"Present But Cannot Be Compiled\"" >&5
28510echo "$as_me: WARNING: ffi/ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
28511 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: proceeding with the preprocessor's result" >&5
28512echo "$as_me: WARNING: ffi/ffi.h: proceeding with the preprocessor's result" >&2;}
28513 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: in the future, the compiler will take precedence" >&5
28514echo "$as_me: WARNING: ffi/ffi.h: in the future, the compiler will take precedence" >&2;}
28515 ( cat <<\_ASBOX
28516## ----------------------------------- ##
28517## Report this to llvmbugs@cs.uiuc.edu ##
28518## ----------------------------------- ##
28519_ASBOX
28520 ) | sed "s/^/$as_me: WARNING: /" >&2
28521 ;;
28522esac
28523{ echo "$as_me:$LINENO: checking for ffi/ffi.h" >&5
28524echo $ECHO_N "checking for ffi/ffi.h... $ECHO_C" >&6; }
28525if test "${ac_cv_header_ffi_ffi_h+set}" = set; then
28526 echo $ECHO_N "(cached) $ECHO_C" >&6
28527else
28528 ac_cv_header_ffi_ffi_h=$ac_header_preproc
28529fi
28530{ echo "$as_me:$LINENO: result: $ac_cv_header_ffi_ffi_h" >&5
28531echo "${ECHO_T}$ac_cv_header_ffi_ffi_h" >&6; }
28532
28533fi
28534if test $ac_cv_header_ffi_ffi_h = yes; then
28535
28536cat >>confdefs.h <<\_ACEOF
28537#define FFI_HEADER "ffi/ffi.h"
28538_ACEOF
28539
28540fi
28541
28542
28543if test "${ac_cv_header_ffi_h+set}" = set; then
28544 { echo "$as_me:$LINENO: checking for ffi.h" >&5
28545echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
28546if test "${ac_cv_header_ffi_h+set}" = set; then
28547 echo $ECHO_N "(cached) $ECHO_C" >&6
28548fi
28549{ echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
28550echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
28551else
28552 # Is the header compilable?
28553{ echo "$as_me:$LINENO: checking ffi.h usability" >&5
28554echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
28555cat >conftest.$ac_ext <<_ACEOF
28556/* confdefs.h. */
28557_ACEOF
28558cat confdefs.h >>conftest.$ac_ext
28559cat >>conftest.$ac_ext <<_ACEOF
28560/* end confdefs.h. */
28561$ac_includes_default
28562#include <ffi.h>
28563_ACEOF
28564rm -f conftest.$ac_objext
28565if { (ac_try="$ac_compile"
28566case "(($ac_try" in
28567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28568 *) ac_try_echo=$ac_try;;
28569esac
28570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28571 (eval "$ac_compile") 2>conftest.er1
28572 ac_status=$?
28573 grep -v '^ *+' conftest.er1 >conftest.err
28574 rm -f conftest.er1
28575 cat conftest.err >&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } && {
28578 test -z "$ac_c_werror_flag" ||
28579 test ! -s conftest.err
28580 } && test -s conftest.$ac_objext; then
28581 ac_header_compiler=yes
28582else
28583 echo "$as_me: failed program was:" >&5
28584sed 's/^/| /' conftest.$ac_ext >&5
28585
28586 ac_header_compiler=no
28587fi
28588
28589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28590{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28591echo "${ECHO_T}$ac_header_compiler" >&6; }
28592
28593# Is the header present?
28594{ echo "$as_me:$LINENO: checking ffi.h presence" >&5
28595echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
28596cat >conftest.$ac_ext <<_ACEOF
28597/* confdefs.h. */
28598_ACEOF
28599cat confdefs.h >>conftest.$ac_ext
28600cat >>conftest.$ac_ext <<_ACEOF
28601/* end confdefs.h. */
28602#include <ffi.h>
28603_ACEOF
28604if { (ac_try="$ac_cpp conftest.$ac_ext"
28605case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28608esac
28609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28611 ac_status=$?
28612 grep -v '^ *+' conftest.er1 >conftest.err
28613 rm -f conftest.er1
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } >/dev/null && {
28617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28618 test ! -s conftest.err
28619 }; then
28620 ac_header_preproc=yes
28621else
28622 echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
28625 ac_header_preproc=no
28626fi
28627
28628rm -f conftest.err conftest.$ac_ext
28629{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28630echo "${ECHO_T}$ac_header_preproc" >&6; }
28631
28632# So? What about this header?
28633case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28634 yes:no: )
28635 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
28636echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28637 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
28638echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
28639 ac_header_preproc=yes
28640 ;;
28641 no:yes:* )
28642 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
28643echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
28644 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
28645echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
28646 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
28647echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
28648 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
28649echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
28650 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
28651echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
28652 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
28653echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
28654 ( cat <<\_ASBOX
28655## ----------------------------------- ##
28656## Report this to llvmbugs@cs.uiuc.edu ##
28657## ----------------------------------- ##
28658_ASBOX
28659 ) | sed "s/^/$as_me: WARNING: /" >&2
28660 ;;
28661esac
28662{ echo "$as_me:$LINENO: checking for ffi.h" >&5
28663echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
28664if test "${ac_cv_header_ffi_h+set}" = set; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28666else
28667 ac_cv_header_ffi_h=$ac_header_preproc
28668fi
28669{ echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
28670echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
28671
28672fi
28673if test $ac_cv_header_ffi_h = yes; then
28674
28675cat >>confdefs.h <<\_ACEOF
28676#define FFI_HEADER "ffi.h"
28677_ACEOF
28678
28679fi
28680
28681
28682
28683
Reid Spencer8085cff2005-01-16 02:58:39 +000028684
Reid Spencerb2ed05262006-11-03 18:04:08 +000028685
28686 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28687echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28688if test "${ac_cv_huge_val_sanity+set}" = set; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28690else
28691
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028692 ac_ext=cpp
28693ac_cpp='$CXXCPP $CPPFLAGS'
28694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000028697
Reid Spencer6a7c0b72006-11-03 19:49:16 +000028698 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000028699 if test "$cross_compiling" = yes; then
28700 ac_cv_huge_val_sanity=yes
28701else
28702 cat >conftest.$ac_ext <<_ACEOF
28703/* confdefs.h. */
28704_ACEOF
28705cat confdefs.h >>conftest.$ac_ext
28706cat >>conftest.$ac_ext <<_ACEOF
28707/* end confdefs.h. */
28708#include <math.h>
28709int
28710main ()
28711{
28712double x = HUGE_VAL; return x != x;
28713 ;
28714 return 0;
28715}
28716_ACEOF
28717rm -f conftest$ac_exeext
28718if { (ac_try="$ac_link"
28719case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28722esac
28723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_link") 2>&5
28725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28728 { (case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28731esac
28732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_try") 2>&5
28734 ac_status=$?
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; }; then
28737 ac_cv_huge_val_sanity=yes
28738else
28739 echo "$as_me: program exited with status $ac_status" >&5
28740echo "$as_me: failed program was:" >&5
28741sed 's/^/| /' conftest.$ac_ext >&5
28742
28743( exit $ac_status )
28744ac_cv_huge_val_sanity=no
28745fi
28746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28747fi
28748
28749
28750 ac_ext=c
28751ac_cpp='$CPP $CPPFLAGS'
28752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28754ac_compiler_gnu=$ac_cv_c_compiler_gnu
28755
28756
28757fi
28758{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28759echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28760 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28761
28762
Reid Spencera773bd52006-08-04 18:18:08 +000028763{ echo "$as_me:$LINENO: checking for pid_t" >&5
28764echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028765if test "${ac_cv_type_pid_t+set}" = set; then
28766 echo $ECHO_N "(cached) $ECHO_C" >&6
28767else
28768 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028769/* confdefs.h. */
28770_ACEOF
28771cat confdefs.h >>conftest.$ac_ext
28772cat >>conftest.$ac_ext <<_ACEOF
28773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028774$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028775typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028776int
28777main ()
28778{
Reid Spencera773bd52006-08-04 18:18:08 +000028779if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028780 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028781if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028782 return 0;
28783 ;
28784 return 0;
28785}
28786_ACEOF
28787rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028788if { (ac_try="$ac_compile"
28789case "(($ac_try" in
28790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791 *) ac_try_echo=$ac_try;;
28792esac
28793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028796 grep -v '^ *+' conftest.er1 >conftest.err
28797 rm -f conftest.er1
28798 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028800 (exit $ac_status); } && {
28801 test -z "$ac_c_werror_flag" ||
28802 test ! -s conftest.err
28803 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028804 ac_cv_type_pid_t=yes
28805else
28806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028807sed 's/^/| /' conftest.$ac_ext >&5
28808
Reid Spencera773bd52006-08-04 18:18:08 +000028809 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028810fi
Reid Spencera773bd52006-08-04 18:18:08 +000028811
28812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028813fi
Reid Spencera773bd52006-08-04 18:18:08 +000028814{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28815echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028816if test $ac_cv_type_pid_t = yes; then
28817 :
28818else
28819
28820cat >>confdefs.h <<_ACEOF
28821#define pid_t int
28822_ACEOF
28823
28824fi
28825
Reid Spencera773bd52006-08-04 18:18:08 +000028826{ echo "$as_me:$LINENO: checking for size_t" >&5
28827echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028828if test "${ac_cv_type_size_t+set}" = set; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830else
28831 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028832/* confdefs.h. */
28833_ACEOF
28834cat confdefs.h >>conftest.$ac_ext
28835cat >>conftest.$ac_ext <<_ACEOF
28836/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028837$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000028838typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000028839int
28840main ()
28841{
Reid Spencera773bd52006-08-04 18:18:08 +000028842if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000028843 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000028844if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000028845 return 0;
28846 ;
28847 return 0;
28848}
28849_ACEOF
28850rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028851if { (ac_try="$ac_compile"
28852case "(($ac_try" in
28853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854 *) ac_try_echo=$ac_try;;
28855esac
28856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028858 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028859 grep -v '^ *+' conftest.er1 >conftest.err
28860 rm -f conftest.er1
28861 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028863 (exit $ac_status); } && {
28864 test -z "$ac_c_werror_flag" ||
28865 test ! -s conftest.err
28866 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000028867 ac_cv_type_size_t=yes
28868else
28869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028870sed 's/^/| /' conftest.$ac_ext >&5
28871
Reid Spencera773bd52006-08-04 18:18:08 +000028872 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000028873fi
Reid Spencera773bd52006-08-04 18:18:08 +000028874
28875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028876fi
Reid Spencera773bd52006-08-04 18:18:08 +000028877{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28878echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028879if test $ac_cv_type_size_t = yes; then
28880 :
28881else
28882
28883cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028884#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000028885_ACEOF
28886
28887fi
28888
Reid Spencera773bd52006-08-04 18:18:08 +000028889{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28890echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028891if test "${ac_cv_type_signal+set}" = set; then
28892 echo $ECHO_N "(cached) $ECHO_C" >&6
28893else
28894 cat >conftest.$ac_ext <<_ACEOF
28895/* confdefs.h. */
28896_ACEOF
28897cat confdefs.h >>conftest.$ac_ext
28898cat >>conftest.$ac_ext <<_ACEOF
28899/* end confdefs.h. */
28900#include <sys/types.h>
28901#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028902
28903int
28904main ()
28905{
Reid Spencera773bd52006-08-04 18:18:08 +000028906return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028907 ;
28908 return 0;
28909}
28910_ACEOF
28911rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028912if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028919 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
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028924 (exit $ac_status); } && {
28925 test -z "$ac_c_werror_flag" ||
28926 test ! -s conftest.err
28927 } && test -s conftest.$ac_objext; then
Reid Spencera773bd52006-08-04 18:18:08 +000028928 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028929else
28930 echo "$as_me: failed program was:" >&5
28931sed 's/^/| /' conftest.$ac_ext >&5
28932
Reid Spencera773bd52006-08-04 18:18:08 +000028933 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028934fi
Reid Spencera773bd52006-08-04 18:18:08 +000028935
28936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028937fi
Reid Spencera773bd52006-08-04 18:18:08 +000028938{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28939echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028940
28941cat >>confdefs.h <<_ACEOF
28942#define RETSIGTYPE $ac_cv_type_signal
28943_ACEOF
28944
28945
Reid Spencera773bd52006-08-04 18:18:08 +000028946{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28947echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028948if test "${ac_cv_struct_tm+set}" = set; then
28949 echo $ECHO_N "(cached) $ECHO_C" >&6
28950else
28951 cat >conftest.$ac_ext <<_ACEOF
28952/* confdefs.h. */
28953_ACEOF
28954cat confdefs.h >>conftest.$ac_ext
28955cat >>conftest.$ac_ext <<_ACEOF
28956/* end confdefs.h. */
28957#include <sys/types.h>
28958#include <time.h>
28959
28960int
28961main ()
28962{
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028963struct tm tm;
28964 int *p = &tm.tm_sec;
28965 return !p;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028966 ;
28967 return 0;
28968}
28969_ACEOF
28970rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028971if { (ac_try="$ac_compile"
28972case "(($ac_try" in
28973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974 *) ac_try_echo=$ac_try;;
28975esac
28976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028978 ac_status=$?
28979 grep -v '^ *+' conftest.er1 >conftest.err
28980 rm -f conftest.er1
28981 cat conftest.err >&5
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028983 (exit $ac_status); } && {
28984 test -z "$ac_c_werror_flag" ||
28985 test ! -s conftest.err
28986 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028987 ac_cv_struct_tm=time.h
28988else
28989 echo "$as_me: failed program was:" >&5
28990sed 's/^/| /' conftest.$ac_ext >&5
28991
Reid Spencera773bd52006-08-04 18:18:08 +000028992 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028993fi
Reid Spencera773bd52006-08-04 18:18:08 +000028994
28995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028996fi
Reid Spencera773bd52006-08-04 18:18:08 +000028997{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28998echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028999if test $ac_cv_struct_tm = sys/time.h; then
29000
29001cat >>confdefs.h <<\_ACEOF
29002#define TM_IN_SYS_TIME 1
29003_ACEOF
29004
29005fi
29006
Reid Spencera773bd52006-08-04 18:18:08 +000029007{ echo "$as_me:$LINENO: checking for int64_t" >&5
29008echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029009if test "${ac_cv_type_int64_t+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29011else
29012 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029013/* confdefs.h. */
29014_ACEOF
29015cat confdefs.h >>conftest.$ac_ext
29016cat >>conftest.$ac_ext <<_ACEOF
29017/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029018$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029019typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029020int
29021main ()
29022{
Reid Spencera773bd52006-08-04 18:18:08 +000029023if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029024 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029025if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029026 return 0;
29027 ;
29028 return 0;
29029}
29030_ACEOF
29031rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029032if { (ac_try="$ac_compile"
29033case "(($ac_try" in
29034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035 *) ac_try_echo=$ac_try;;
29036esac
29037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029039 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029040 grep -v '^ *+' conftest.er1 >conftest.err
29041 rm -f conftest.er1
29042 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029044 (exit $ac_status); } && {
29045 test -z "$ac_c_werror_flag" ||
29046 test ! -s conftest.err
29047 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000029048 ac_cv_type_int64_t=yes
29049else
29050 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029051sed 's/^/| /' conftest.$ac_ext >&5
29052
Reid Spencera773bd52006-08-04 18:18:08 +000029053 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029054fi
Reid Spencera773bd52006-08-04 18:18:08 +000029055
29056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029057fi
Reid Spencera773bd52006-08-04 18:18:08 +000029058{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29059echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029060if test $ac_cv_type_int64_t = yes; then
29061
29062cat >>confdefs.h <<_ACEOF
29063#define HAVE_INT64_T 1
29064_ACEOF
29065
29066
29067else
29068 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29069echo "$as_me: error: Type int64_t required but not found" >&2;}
29070 { (exit 1); exit 1; }; }
29071fi
29072
Reid Spencera773bd52006-08-04 18:18:08 +000029073{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29074echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029075if test "${ac_cv_type_uint64_t+set}" = set; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29077else
29078 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029079/* confdefs.h. */
29080_ACEOF
29081cat confdefs.h >>conftest.$ac_ext
29082cat >>conftest.$ac_ext <<_ACEOF
29083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029084$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029085typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029086int
29087main ()
29088{
Reid Spencera773bd52006-08-04 18:18:08 +000029089if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029090 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029091if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029092 return 0;
29093 ;
29094 return 0;
29095}
29096_ACEOF
29097rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029098if { (ac_try="$ac_compile"
29099case "(($ac_try" in
29100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101 *) ac_try_echo=$ac_try;;
29102esac
29103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029105 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029106 grep -v '^ *+' conftest.er1 >conftest.err
29107 rm -f conftest.er1
29108 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029110 (exit $ac_status); } && {
29111 test -z "$ac_c_werror_flag" ||
29112 test ! -s conftest.err
29113 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000029114 ac_cv_type_uint64_t=yes
29115else
29116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029117sed 's/^/| /' conftest.$ac_ext >&5
29118
Reid Spencera773bd52006-08-04 18:18:08 +000029119 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029120fi
Reid Spencera773bd52006-08-04 18:18:08 +000029121
29122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029123fi
Reid Spencera773bd52006-08-04 18:18:08 +000029124{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29125echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029126if test $ac_cv_type_uint64_t = yes; then
29127
29128cat >>confdefs.h <<_ACEOF
29129#define HAVE_UINT64_T 1
29130_ACEOF
29131
29132
29133else
Reid Spencera773bd52006-08-04 18:18:08 +000029134 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29135echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029136if test "${ac_cv_type_u_int64_t+set}" = set; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29138else
29139 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029140/* confdefs.h. */
29141_ACEOF
29142cat confdefs.h >>conftest.$ac_ext
29143cat >>conftest.$ac_ext <<_ACEOF
29144/* end confdefs.h. */
29145$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029146typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029147int
29148main ()
29149{
Reid Spencera773bd52006-08-04 18:18:08 +000029150if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029151 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029152if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029153 return 0;
29154 ;
29155 return 0;
29156}
29157_ACEOF
29158rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029159if { (ac_try="$ac_compile"
29160case "(($ac_try" in
29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162 *) ac_try_echo=$ac_try;;
29163esac
29164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029166 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029167 grep -v '^ *+' conftest.er1 >conftest.err
29168 rm -f conftest.er1
29169 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029171 (exit $ac_status); } && {
29172 test -z "$ac_c_werror_flag" ||
29173 test ! -s conftest.err
29174 } && test -s conftest.$ac_objext; then
John Criswell679ff312004-09-02 18:44:44 +000029175 ac_cv_type_u_int64_t=yes
29176else
29177 echo "$as_me: failed program was:" >&5
29178sed 's/^/| /' conftest.$ac_ext >&5
29179
Reid Spencera773bd52006-08-04 18:18:08 +000029180 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029181fi
Reid Spencera773bd52006-08-04 18:18:08 +000029182
29183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029184fi
Reid Spencera773bd52006-08-04 18:18:08 +000029185{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29186echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029187if test $ac_cv_type_u_int64_t = yes; then
29188
29189cat >>confdefs.h <<_ACEOF
29190#define HAVE_U_INT64_T 1
29191_ACEOF
29192
29193
Misha Brukmanceca9042004-09-02 23:02:30 +000029194else
29195 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29196echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29197 { (exit 1); exit 1; }; }
29198fi
29199
John Criswell679ff312004-09-02 18:44:44 +000029200fi
29201
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029202
29203
29204
29205
29206
29207
29208
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029209
29210
Reid Spencerdf3be822006-01-23 08:15:53 +000029211for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029212do
29213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029214{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29216if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029217 echo $ECHO_N "(cached) $ECHO_C" >&6
29218else
29219 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029220/* confdefs.h. */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29227#define $ac_func innocuous_$ac_func
29228
29229/* System header to define __stub macros and hopefully few prototypes,
29230 which can conflict with char $ac_func (); below.
29231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29232 <limits.h> exists even on freestanding compilers. */
29233
29234#ifdef __STDC__
29235# include <limits.h>
29236#else
29237# include <assert.h>
29238#endif
29239
29240#undef $ac_func
29241
Reid Spencera773bd52006-08-04 18:18:08 +000029242/* Override any GCC internal prototype to avoid an error.
29243 Use char because int might match the return type of a GCC
29244 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029245#ifdef __cplusplus
29246extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029247#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029248char $ac_func ();
29249/* The GNU C library defines this for functions which it implements
29250 to always fail with ENOSYS. Some functions are actually named
29251 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029252#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029253choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029254#endif
John Criswell7a73b802003-06-30 21:59:07 +000029255
John Criswell7a73b802003-06-30 21:59:07 +000029256int
29257main ()
29258{
Reid Spencera773bd52006-08-04 18:18:08 +000029259return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029260 ;
29261 return 0;
29262}
29263_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029264rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029265if { (ac_try="$ac_link"
29266case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29269esac
29270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029273 grep -v '^ *+' conftest.er1 >conftest.err
29274 rm -f conftest.er1
29275 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029277 (exit $ac_status); } && {
29278 test -z "$ac_c_werror_flag" ||
29279 test ! -s conftest.err
29280 } && test -s conftest$ac_exeext &&
29281 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029282 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029283else
29284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029285sed 's/^/| /' conftest.$ac_ext >&5
29286
Reid Spencera773bd52006-08-04 18:18:08 +000029287 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029288fi
Reid Spencera773bd52006-08-04 18:18:08 +000029289
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029291 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029292fi
Reid Spencera773bd52006-08-04 18:18:08 +000029293ac_res=`eval echo '${'$as_ac_var'}'`
29294 { echo "$as_me:$LINENO: result: $ac_res" >&5
29295echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029296if test `eval echo '${'$as_ac_var'}'` = yes; then
29297 cat >>confdefs.h <<_ACEOF
29298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029299_ACEOF
29300
29301fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029302done
John Criswell7a73b802003-06-30 21:59:07 +000029303
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029304
29305
29306
Reid Spencer6af3d262004-12-15 04:01:48 +000029307
Reid Spencer96cf5872007-07-13 10:05:30 +000029308for ac_func in powf fmodf strtof round
29309do
29310as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29311{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29312echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29313if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29314 echo $ECHO_N "(cached) $ECHO_C" >&6
29315else
29316 cat >conftest.$ac_ext <<_ACEOF
29317/* confdefs.h. */
29318_ACEOF
29319cat confdefs.h >>conftest.$ac_ext
29320cat >>conftest.$ac_ext <<_ACEOF
29321/* end confdefs.h. */
29322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29324#define $ac_func innocuous_$ac_func
29325
29326/* System header to define __stub macros and hopefully few prototypes,
29327 which can conflict with char $ac_func (); below.
29328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29329 <limits.h> exists even on freestanding compilers. */
29330
29331#ifdef __STDC__
29332# include <limits.h>
29333#else
29334# include <assert.h>
29335#endif
29336
29337#undef $ac_func
29338
29339/* Override any GCC internal prototype to avoid an error.
29340 Use char because int might match the return type of a GCC
29341 builtin and then its argument prototype would still apply. */
29342#ifdef __cplusplus
29343extern "C"
29344#endif
29345char $ac_func ();
29346/* The GNU C library defines this for functions which it implements
29347 to always fail with ENOSYS. Some functions are actually named
29348 something starting with __ and the normal name is an alias. */
29349#if defined __stub_$ac_func || defined __stub___$ac_func
29350choke me
29351#endif
29352
29353int
29354main ()
29355{
29356return $ac_func ();
29357 ;
29358 return 0;
29359}
29360_ACEOF
29361rm -f conftest.$ac_objext conftest$ac_exeext
29362if { (ac_try="$ac_link"
29363case "(($ac_try" in
29364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365 *) ac_try_echo=$ac_try;;
29366esac
29367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368 (eval "$ac_link") 2>conftest.er1
29369 ac_status=$?
29370 grep -v '^ *+' conftest.er1 >conftest.err
29371 rm -f conftest.er1
29372 cat conftest.err >&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029374 (exit $ac_status); } && {
29375 test -z "$ac_c_werror_flag" ||
29376 test ! -s conftest.err
29377 } && test -s conftest$ac_exeext &&
29378 $as_test_x conftest$ac_exeext; then
Reid Spencer96cf5872007-07-13 10:05:30 +000029379 eval "$as_ac_var=yes"
29380else
29381 echo "$as_me: failed program was:" >&5
29382sed 's/^/| /' conftest.$ac_ext >&5
29383
29384 eval "$as_ac_var=no"
29385fi
29386
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer96cf5872007-07-13 10:05:30 +000029388 conftest$ac_exeext conftest.$ac_ext
29389fi
29390ac_res=`eval echo '${'$as_ac_var'}'`
29391 { echo "$as_me:$LINENO: result: $ac_res" >&5
29392echo "${ECHO_T}$ac_res" >&6; }
29393if test `eval echo '${'$as_ac_var'}'` = yes; then
29394 cat >>confdefs.h <<_ACEOF
29395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29396_ACEOF
29397
29398fi
29399done
29400
29401
29402
29403
29404
Reid Spencer6af3d262004-12-15 04:01:48 +000029405
Reid Spencerb90645c2007-02-16 19:17:20 +000029406for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
29407do
29408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29409{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29411if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29412 echo $ECHO_N "(cached) $ECHO_C" >&6
29413else
29414 cat >conftest.$ac_ext <<_ACEOF
29415/* confdefs.h. */
29416_ACEOF
29417cat confdefs.h >>conftest.$ac_ext
29418cat >>conftest.$ac_ext <<_ACEOF
29419/* end confdefs.h. */
29420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29422#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000029423
Reid Spencerb90645c2007-02-16 19:17:20 +000029424/* System header to define __stub macros and hopefully few prototypes,
29425 which can conflict with char $ac_func (); below.
29426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29427 <limits.h> exists even on freestanding compilers. */
29428
29429#ifdef __STDC__
29430# include <limits.h>
29431#else
29432# include <assert.h>
29433#endif
29434
29435#undef $ac_func
29436
29437/* Override any GCC internal prototype to avoid an error.
29438 Use char because int might match the return type of a GCC
29439 builtin and then its argument prototype would still apply. */
29440#ifdef __cplusplus
29441extern "C"
29442#endif
29443char $ac_func ();
29444/* The GNU C library defines this for functions which it implements
29445 to always fail with ENOSYS. Some functions are actually named
29446 something starting with __ and the normal name is an alias. */
29447#if defined __stub_$ac_func || defined __stub___$ac_func
29448choke me
29449#endif
29450
29451int
29452main ()
29453{
29454return $ac_func ();
29455 ;
29456 return 0;
29457}
29458_ACEOF
29459rm -f conftest.$ac_objext conftest$ac_exeext
29460if { (ac_try="$ac_link"
29461case "(($ac_try" in
29462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463 *) ac_try_echo=$ac_try;;
29464esac
29465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29466 (eval "$ac_link") 2>conftest.er1
29467 ac_status=$?
29468 grep -v '^ *+' conftest.er1 >conftest.err
29469 rm -f conftest.er1
29470 cat conftest.err >&5
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029472 (exit $ac_status); } && {
29473 test -z "$ac_c_werror_flag" ||
29474 test ! -s conftest.err
29475 } && test -s conftest$ac_exeext &&
29476 $as_test_x conftest$ac_exeext; then
Reid Spencerb90645c2007-02-16 19:17:20 +000029477 eval "$as_ac_var=yes"
29478else
29479 echo "$as_me: failed program was:" >&5
29480sed 's/^/| /' conftest.$ac_ext >&5
29481
29482 eval "$as_ac_var=no"
29483fi
29484
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerb90645c2007-02-16 19:17:20 +000029486 conftest$ac_exeext conftest.$ac_ext
29487fi
29488ac_res=`eval echo '${'$as_ac_var'}'`
29489 { echo "$as_me:$LINENO: result: $ac_res" >&5
29490echo "${ECHO_T}$ac_res" >&6; }
29491if test `eval echo '${'$as_ac_var'}'` = yes; then
29492 cat >>confdefs.h <<_ACEOF
29493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29494_ACEOF
29495
29496fi
29497done
29498
29499
29500
29501
29502for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000029503do
29504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029505{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29507if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029508 echo $ECHO_N "(cached) $ECHO_C" >&6
29509else
29510 cat >conftest.$ac_ext <<_ACEOF
29511/* confdefs.h. */
29512_ACEOF
29513cat confdefs.h >>conftest.$ac_ext
29514cat >>conftest.$ac_ext <<_ACEOF
29515/* end confdefs.h. */
29516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29518#define $ac_func innocuous_$ac_func
29519
29520/* System header to define __stub macros and hopefully few prototypes,
29521 which can conflict with char $ac_func (); below.
29522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29523 <limits.h> exists even on freestanding compilers. */
29524
29525#ifdef __STDC__
29526# include <limits.h>
29527#else
29528# include <assert.h>
29529#endif
29530
29531#undef $ac_func
29532
Reid Spencera773bd52006-08-04 18:18:08 +000029533/* Override any GCC internal prototype to avoid an error.
29534 Use char because int might match the return type of a GCC
29535 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000029536#ifdef __cplusplus
29537extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000029538#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000029539char $ac_func ();
29540/* The GNU C library defines this for functions which it implements
29541 to always fail with ENOSYS. Some functions are actually named
29542 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029543#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000029544choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000029545#endif
29546
29547int
29548main ()
29549{
Reid Spencera773bd52006-08-04 18:18:08 +000029550return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000029551 ;
29552 return 0;
29553}
29554_ACEOF
29555rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029556if { (ac_try="$ac_link"
29557case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29560esac
29561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000029563 ac_status=$?
29564 grep -v '^ *+' conftest.er1 >conftest.err
29565 rm -f conftest.er1
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029568 (exit $ac_status); } && {
29569 test -z "$ac_c_werror_flag" ||
29570 test ! -s conftest.err
29571 } && test -s conftest$ac_exeext &&
29572 $as_test_x conftest$ac_exeext; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029573 eval "$as_ac_var=yes"
29574else
29575 echo "$as_me: failed program was:" >&5
29576sed 's/^/| /' conftest.$ac_ext >&5
29577
Reid Spencera773bd52006-08-04 18:18:08 +000029578 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000029579fi
Reid Spencera773bd52006-08-04 18:18:08 +000029580
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencerdf3be822006-01-23 08:15:53 +000029582 conftest$ac_exeext conftest.$ac_ext
29583fi
Reid Spencera773bd52006-08-04 18:18:08 +000029584ac_res=`eval echo '${'$as_ac_var'}'`
29585 { echo "$as_me:$LINENO: result: $ac_res" >&5
29586echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000029587if test `eval echo '${'$as_ac_var'}'` = yes; then
29588 cat >>confdefs.h <<_ACEOF
29589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29590_ACEOF
29591
29592fi
29593done
29594
29595
29596
29597
29598
29599
29600
29601
29602for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000029603do
29604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029605{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29607if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000029608 echo $ECHO_N "(cached) $ECHO_C" >&6
29609else
29610 cat >conftest.$ac_ext <<_ACEOF
29611/* confdefs.h. */
29612_ACEOF
29613cat confdefs.h >>conftest.$ac_ext
29614cat >>conftest.$ac_ext <<_ACEOF
29615/* end confdefs.h. */
29616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29618#define $ac_func innocuous_$ac_func
29619
29620/* System header to define __stub macros and hopefully few prototypes,
29621 which can conflict with char $ac_func (); below.
29622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29623 <limits.h> exists even on freestanding compilers. */
29624
29625#ifdef __STDC__
29626# include <limits.h>
29627#else
29628# include <assert.h>
29629#endif
29630
29631#undef $ac_func
29632
Reid Spencera773bd52006-08-04 18:18:08 +000029633/* Override any GCC internal prototype to avoid an error.
29634 Use char because int might match the return type of a GCC
29635 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000029636#ifdef __cplusplus
29637extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000029638#endif
Reid Spencer7931a782004-12-27 06:15:02 +000029639char $ac_func ();
29640/* The GNU C library defines this for functions which it implements
29641 to always fail with ENOSYS. Some functions are actually named
29642 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029643#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000029644choke me
Reid Spencer7931a782004-12-27 06:15:02 +000029645#endif
29646
29647int
29648main ()
29649{
Reid Spencera773bd52006-08-04 18:18:08 +000029650return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000029651 ;
29652 return 0;
29653}
29654_ACEOF
29655rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029656if { (ac_try="$ac_link"
29657case "(($ac_try" in
29658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659 *) ac_try_echo=$ac_try;;
29660esac
29661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000029663 ac_status=$?
29664 grep -v '^ *+' conftest.er1 >conftest.err
29665 rm -f conftest.er1
29666 cat conftest.err >&5
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029668 (exit $ac_status); } && {
29669 test -z "$ac_c_werror_flag" ||
29670 test ! -s conftest.err
29671 } && test -s conftest$ac_exeext &&
29672 $as_test_x conftest$ac_exeext; then
Reid Spencer7931a782004-12-27 06:15:02 +000029673 eval "$as_ac_var=yes"
29674else
29675 echo "$as_me: failed program was:" >&5
29676sed 's/^/| /' conftest.$ac_ext >&5
29677
Reid Spencera773bd52006-08-04 18:18:08 +000029678 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000029679fi
Reid Spencera773bd52006-08-04 18:18:08 +000029680
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer7931a782004-12-27 06:15:02 +000029682 conftest$ac_exeext conftest.$ac_ext
29683fi
Reid Spencera773bd52006-08-04 18:18:08 +000029684ac_res=`eval echo '${'$as_ac_var'}'`
29685 { echo "$as_me:$LINENO: result: $ac_res" >&5
29686echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000029687if test `eval echo '${'$as_ac_var'}'` = yes; then
29688 cat >>confdefs.h <<_ACEOF
29689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29690_ACEOF
29691
29692fi
29693done
29694
29695
Reid Spencerba46ca32004-12-31 05:49:15 +000029696
29697
Chris Lattner0b142592005-11-14 06:57:34 +000029698
Chris Lattner511f11d2005-11-14 07:25:50 +000029699for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029700do
29701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029702{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29704if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029705 echo $ECHO_N "(cached) $ECHO_C" >&6
29706else
29707 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029708/* confdefs.h. */
29709_ACEOF
29710cat confdefs.h >>conftest.$ac_ext
29711cat >>conftest.$ac_ext <<_ACEOF
29712/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29715#define $ac_func innocuous_$ac_func
29716
29717/* System header to define __stub macros and hopefully few prototypes,
29718 which can conflict with char $ac_func (); below.
29719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29720 <limits.h> exists even on freestanding compilers. */
29721
29722#ifdef __STDC__
29723# include <limits.h>
29724#else
29725# include <assert.h>
29726#endif
29727
29728#undef $ac_func
29729
Reid Spencera773bd52006-08-04 18:18:08 +000029730/* Override any GCC internal prototype to avoid an error.
29731 Use char because int might match the return type of a GCC
29732 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029733#ifdef __cplusplus
29734extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029735#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029736char $ac_func ();
29737/* The GNU C library defines this for functions which it implements
29738 to always fail with ENOSYS. Some functions are actually named
29739 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029740#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029741choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029742#endif
John Criswell7a73b802003-06-30 21:59:07 +000029743
John Criswell7a73b802003-06-30 21:59:07 +000029744int
29745main ()
29746{
Reid Spencera773bd52006-08-04 18:18:08 +000029747return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029748 ;
29749 return 0;
29750}
29751_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029752rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029753if { (ac_try="$ac_link"
29754case "(($ac_try" in
29755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756 *) ac_try_echo=$ac_try;;
29757esac
29758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029760 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029761 grep -v '^ *+' conftest.er1 >conftest.err
29762 rm -f conftest.er1
29763 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029765 (exit $ac_status); } && {
29766 test -z "$ac_c_werror_flag" ||
29767 test ! -s conftest.err
29768 } && test -s conftest$ac_exeext &&
29769 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029770 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029771else
29772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029773sed 's/^/| /' conftest.$ac_ext >&5
29774
Reid Spencera773bd52006-08-04 18:18:08 +000029775 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029776fi
Reid Spencera773bd52006-08-04 18:18:08 +000029777
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029779 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029780fi
Reid Spencera773bd52006-08-04 18:18:08 +000029781ac_res=`eval echo '${'$as_ac_var'}'`
29782 { echo "$as_me:$LINENO: result: $ac_res" >&5
29783echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029784if test `eval echo '${'$as_ac_var'}'` = yes; then
29785 cat >>confdefs.h <<_ACEOF
29786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029787_ACEOF
29788
29789fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029790done
John Criswell7a73b802003-06-30 21:59:07 +000029791
Reid Spencercdb08a32006-06-05 16:11:07 +000029792
29793
29794
29795
Reid Spencerafa22e22006-12-10 23:29:19 +000029796for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000029797do
29798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029799{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29801if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000029802 echo $ECHO_N "(cached) $ECHO_C" >&6
29803else
29804 cat >conftest.$ac_ext <<_ACEOF
29805/* confdefs.h. */
29806_ACEOF
29807cat confdefs.h >>conftest.$ac_ext
29808cat >>conftest.$ac_ext <<_ACEOF
29809/* end confdefs.h. */
29810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29812#define $ac_func innocuous_$ac_func
29813
29814/* System header to define __stub macros and hopefully few prototypes,
29815 which can conflict with char $ac_func (); below.
29816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29817 <limits.h> exists even on freestanding compilers. */
29818
29819#ifdef __STDC__
29820# include <limits.h>
29821#else
29822# include <assert.h>
29823#endif
29824
29825#undef $ac_func
29826
Reid Spencera773bd52006-08-04 18:18:08 +000029827/* Override any GCC internal prototype to avoid an error.
29828 Use char because int might match the return type of a GCC
29829 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000029830#ifdef __cplusplus
29831extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000029832#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000029833char $ac_func ();
29834/* The GNU C library defines this for functions which it implements
29835 to always fail with ENOSYS. Some functions are actually named
29836 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029837#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000029838choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000029839#endif
29840
29841int
29842main ()
29843{
Reid Spencera773bd52006-08-04 18:18:08 +000029844return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000029845 ;
29846 return 0;
29847}
29848_ACEOF
29849rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029850if { (ac_try="$ac_link"
29851case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29854esac
29855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000029857 ac_status=$?
29858 grep -v '^ *+' conftest.er1 >conftest.err
29859 rm -f conftest.er1
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029862 (exit $ac_status); } && {
29863 test -z "$ac_c_werror_flag" ||
29864 test ! -s conftest.err
29865 } && test -s conftest$ac_exeext &&
29866 $as_test_x conftest$ac_exeext; then
Reid Spencercdb08a32006-06-05 16:11:07 +000029867 eval "$as_ac_var=yes"
29868else
29869 echo "$as_me: failed program was:" >&5
29870sed 's/^/| /' conftest.$ac_ext >&5
29871
Reid Spencera773bd52006-08-04 18:18:08 +000029872 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000029873fi
Reid Spencera773bd52006-08-04 18:18:08 +000029874
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencercdb08a32006-06-05 16:11:07 +000029876 conftest$ac_exeext conftest.$ac_ext
29877fi
Reid Spencera773bd52006-08-04 18:18:08 +000029878ac_res=`eval echo '${'$as_ac_var'}'`
29879 { echo "$as_me:$LINENO: result: $ac_res" >&5
29880echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000029881if test `eval echo '${'$as_ac_var'}'` = yes; then
29882 cat >>confdefs.h <<_ACEOF
29883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29884_ACEOF
29885
29886fi
29887done
29888
Reid Spencera773bd52006-08-04 18:18:08 +000029889{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29890echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029891if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029892 echo $ECHO_N "(cached) $ECHO_C" >&6
29893else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029894 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029895ac_cpp='$CPP $CPPFLAGS'
29896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29898ac_compiler_gnu=$ac_cv_c_compiler_gnu
29899
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029900 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029901 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029902else
29903 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000029904
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029905 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000029906_ACEOF
29907cat confdefs.h >>conftest.$ac_ext
29908cat >>conftest.$ac_ext <<_ACEOF
29909/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029910
John Criswella0137d32003-10-13 16:22:01 +000029911#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000029912#include <stdlib.h>
29913
John Criswella0137d32003-10-13 16:22:01 +000029914int
29915main ()
29916{
29917
Reid Spencer2706f8c2004-09-19 23:53:36 +000029918volatile double A, B;
29919char Buffer[100];
29920A = 1;
29921A /= 10.0;
29922sprintf(Buffer, "%a", A);
29923B = atof(Buffer);
29924if (A != B)
29925 return (1);
29926if (A != 0x1.999999999999ap-4)
29927 return (1);
29928return (0);
John Criswella0137d32003-10-13 16:22:01 +000029929 ;
29930 return 0;
29931}
29932_ACEOF
29933rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029934if { (ac_try="$ac_link"
29935case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29938esac
29939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029944 { (case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29947esac
29948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000029950 ac_status=$?
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000029953 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000029954else
29955 echo "$as_me: program exited with status $ac_status" >&5
29956echo "$as_me: failed program was:" >&5
29957sed 's/^/| /' conftest.$ac_ext >&5
29958
29959( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000029960llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000029961fi
Reid Spencera773bd52006-08-04 18:18:08 +000029962rm -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 +000029963fi
Reid Spencera773bd52006-08-04 18:18:08 +000029964
29965
Reid Spencer2706f8c2004-09-19 23:53:36 +000029966 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000029967ac_cpp='$CPP $CPPFLAGS'
29968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29970ac_compiler_gnu=$ac_cv_c_compiler_gnu
29971
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029972fi
Reid Spencera773bd52006-08-04 18:18:08 +000029973{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29974echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000029975 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000029976
29977cat >>confdefs.h <<\_ACEOF
29978#define HAVE_PRINTF_A 1
29979_ACEOF
29980
Reid Spencer2706f8c2004-09-19 23:53:36 +000029981 fi
John Criswella0137d32003-10-13 16:22:01 +000029982
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029983# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29984# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000029985{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
29986echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029987if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000029988 echo $ECHO_N "(cached) $ECHO_C" >&6
29989else
John Criswell0021c312004-02-13 21:57:29 +000029990 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000029991/* confdefs.h. */
29992_ACEOF
29993cat confdefs.h >>conftest.$ac_ext
29994cat >>conftest.$ac_ext <<_ACEOF
29995/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029996#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000029997int
29998main ()
29999{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030000char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030001 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030002 ;
30003 return 0;
30004}
30005_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030006rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030007if { (ac_try="$ac_link"
30008case "(($ac_try" in
30009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010 *) ac_try_echo=$ac_try;;
30011esac
30012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030014 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030015 grep -v '^ *+' conftest.er1 >conftest.err
30016 rm -f conftest.er1
30017 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030019 (exit $ac_status); } && {
30020 test -z "$ac_c_werror_flag" ||
30021 test ! -s conftest.err
30022 } && test -s conftest$ac_exeext &&
30023 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030024 ac_cv_working_alloca_h=yes
30025else
30026 echo "$as_me: failed program was:" >&5
30027sed 's/^/| /' conftest.$ac_ext >&5
30028
Reid Spencera773bd52006-08-04 18:18:08 +000030029 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030030fi
Reid Spencera773bd52006-08-04 18:18:08 +000030031
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030033 conftest$ac_exeext conftest.$ac_ext
30034fi
Reid Spencera773bd52006-08-04 18:18:08 +000030035{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30036echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030037if test $ac_cv_working_alloca_h = yes; then
30038
30039cat >>confdefs.h <<\_ACEOF
30040#define HAVE_ALLOCA_H 1
30041_ACEOF
30042
30043fi
30044
Reid Spencera773bd52006-08-04 18:18:08 +000030045{ echo "$as_me:$LINENO: checking for alloca" >&5
30046echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030047if test "${ac_cv_func_alloca_works+set}" = set; then
30048 echo $ECHO_N "(cached) $ECHO_C" >&6
30049else
30050 cat >conftest.$ac_ext <<_ACEOF
30051/* confdefs.h. */
30052_ACEOF
30053cat confdefs.h >>conftest.$ac_ext
30054cat >>conftest.$ac_ext <<_ACEOF
30055/* end confdefs.h. */
30056#ifdef __GNUC__
30057# define alloca __builtin_alloca
30058#else
30059# ifdef _MSC_VER
30060# include <malloc.h>
30061# define alloca _alloca
30062# else
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030063# ifdef HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030064# include <alloca.h>
30065# else
30066# ifdef _AIX
30067 #pragma alloca
30068# else
30069# ifndef alloca /* predefined by HP cc +Olibcalls */
30070char *alloca ();
30071# endif
30072# endif
30073# endif
30074# endif
30075#endif
30076
30077int
30078main ()
30079{
30080char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030081 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030082 ;
30083 return 0;
30084}
30085_ACEOF
30086rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030087if { (ac_try="$ac_link"
30088case "(($ac_try" in
30089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30090 *) ac_try_echo=$ac_try;;
30091esac
30092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030094 ac_status=$?
30095 grep -v '^ *+' conftest.er1 >conftest.err
30096 rm -f conftest.er1
30097 cat conftest.err >&5
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030099 (exit $ac_status); } && {
30100 test -z "$ac_c_werror_flag" ||
30101 test ! -s conftest.err
30102 } && test -s conftest$ac_exeext &&
30103 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030104 ac_cv_func_alloca_works=yes
30105else
30106 echo "$as_me: failed program was:" >&5
30107sed 's/^/| /' conftest.$ac_ext >&5
30108
Reid Spencera773bd52006-08-04 18:18:08 +000030109 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030110fi
Reid Spencera773bd52006-08-04 18:18:08 +000030111
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030113 conftest$ac_exeext conftest.$ac_ext
30114fi
Reid Spencera773bd52006-08-04 18:18:08 +000030115{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30116echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030117
30118if test $ac_cv_func_alloca_works = yes; then
30119
30120cat >>confdefs.h <<\_ACEOF
30121#define HAVE_ALLOCA 1
30122_ACEOF
30123
30124else
30125 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30126# that cause trouble. Some versions do not even contain alloca or
30127# contain a buggy version. If you still want to use their alloca,
30128# use ar to extract alloca.o from them instead of compiling alloca.c.
30129
Reid Spencera773bd52006-08-04 18:18:08 +000030130ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030131
30132cat >>confdefs.h <<\_ACEOF
30133#define C_ALLOCA 1
30134_ACEOF
30135
30136
Reid Spencera773bd52006-08-04 18:18:08 +000030137{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30138echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030139if test "${ac_cv_os_cray+set}" = set; then
30140 echo $ECHO_N "(cached) $ECHO_C" >&6
30141else
30142 cat >conftest.$ac_ext <<_ACEOF
30143/* confdefs.h. */
30144_ACEOF
30145cat confdefs.h >>conftest.$ac_ext
30146cat >>conftest.$ac_ext <<_ACEOF
30147/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030148#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030149webecray
30150#else
30151wenotbecray
30152#endif
30153
30154_ACEOF
30155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30156 $EGREP "webecray" >/dev/null 2>&1; then
30157 ac_cv_os_cray=yes
30158else
30159 ac_cv_os_cray=no
30160fi
30161rm -f conftest*
30162
30163fi
Reid Spencera773bd52006-08-04 18:18:08 +000030164{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30165echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030166if test $ac_cv_os_cray = yes; then
30167 for ac_func in _getb67 GETB67 getb67; do
30168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030169{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30171if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030172 echo $ECHO_N "(cached) $ECHO_C" >&6
30173else
30174 cat >conftest.$ac_ext <<_ACEOF
30175/* confdefs.h. */
30176_ACEOF
30177cat confdefs.h >>conftest.$ac_ext
30178cat >>conftest.$ac_ext <<_ACEOF
30179/* end confdefs.h. */
30180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30182#define $ac_func innocuous_$ac_func
30183
30184/* System header to define __stub macros and hopefully few prototypes,
30185 which can conflict with char $ac_func (); below.
30186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30187 <limits.h> exists even on freestanding compilers. */
30188
30189#ifdef __STDC__
30190# include <limits.h>
30191#else
30192# include <assert.h>
30193#endif
30194
30195#undef $ac_func
30196
Reid Spencera773bd52006-08-04 18:18:08 +000030197/* Override any GCC internal prototype to avoid an error.
30198 Use char because int might match the return type of a GCC
30199 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030200#ifdef __cplusplus
30201extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030202#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030203char $ac_func ();
30204/* The GNU C library defines this for functions which it implements
30205 to always fail with ENOSYS. Some functions are actually named
30206 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030207#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030208choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030209#endif
30210
30211int
30212main ()
30213{
Reid Spencera773bd52006-08-04 18:18:08 +000030214return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030215 ;
30216 return 0;
30217}
30218_ACEOF
30219rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030220if { (ac_try="$ac_link"
30221case "(($ac_try" in
30222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30223 *) ac_try_echo=$ac_try;;
30224esac
30225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30226 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030227 ac_status=$?
30228 grep -v '^ *+' conftest.er1 >conftest.err
30229 rm -f conftest.er1
30230 cat conftest.err >&5
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030232 (exit $ac_status); } && {
30233 test -z "$ac_c_werror_flag" ||
30234 test ! -s conftest.err
30235 } && test -s conftest$ac_exeext &&
30236 $as_test_x conftest$ac_exeext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030237 eval "$as_ac_var=yes"
30238else
30239 echo "$as_me: failed program was:" >&5
30240sed 's/^/| /' conftest.$ac_ext >&5
30241
Reid Spencera773bd52006-08-04 18:18:08 +000030242 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030243fi
Reid Spencera773bd52006-08-04 18:18:08 +000030244
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030246 conftest$ac_exeext conftest.$ac_ext
30247fi
Reid Spencera773bd52006-08-04 18:18:08 +000030248ac_res=`eval echo '${'$as_ac_var'}'`
30249 { echo "$as_me:$LINENO: result: $ac_res" >&5
30250echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030251if test `eval echo '${'$as_ac_var'}'` = yes; then
30252
30253cat >>confdefs.h <<_ACEOF
30254#define CRAY_STACKSEG_END $ac_func
30255_ACEOF
30256
30257 break
30258fi
30259
30260 done
30261fi
30262
Reid Spencera773bd52006-08-04 18:18:08 +000030263{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30264echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030265if test "${ac_cv_c_stack_direction+set}" = set; then
30266 echo $ECHO_N "(cached) $ECHO_C" >&6
30267else
30268 if test "$cross_compiling" = yes; then
30269 ac_cv_c_stack_direction=0
30270else
30271 cat >conftest.$ac_ext <<_ACEOF
30272/* confdefs.h. */
30273_ACEOF
30274cat confdefs.h >>conftest.$ac_ext
30275cat >>conftest.$ac_ext <<_ACEOF
30276/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030277$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030278int
30279find_stack_direction ()
30280{
30281 static char *addr = 0;
30282 auto char dummy;
30283 if (addr == 0)
30284 {
30285 addr = &dummy;
30286 return find_stack_direction ();
30287 }
John Criswell0021c312004-02-13 21:57:29 +000030288 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030289 return (&dummy > addr) ? 1 : -1;
30290}
John Criswell0021c312004-02-13 21:57:29 +000030291
John Criswell0021c312004-02-13 21:57:29 +000030292int
30293main ()
30294{
Reid Spencera773bd52006-08-04 18:18:08 +000030295 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000030296}
30297_ACEOF
30298rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030299if { (ac_try="$ac_link"
30300case "(($ac_try" in
30301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302 *) ac_try_echo=$ac_try;;
30303esac
30304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030306 ac_status=$?
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030309 { (case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30312esac
30313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030315 ac_status=$?
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030318 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000030319else
30320 echo "$as_me: program exited with status $ac_status" >&5
30321echo "$as_me: failed program was:" >&5
30322sed 's/^/| /' conftest.$ac_ext >&5
30323
30324( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030325ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000030326fi
Reid Spencera773bd52006-08-04 18:18:08 +000030327rm -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 +000030328fi
Reid Spencera773bd52006-08-04 18:18:08 +000030329
30330
John Criswell0021c312004-02-13 21:57:29 +000030331fi
Reid Spencera773bd52006-08-04 18:18:08 +000030332{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30333echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030334
30335cat >>confdefs.h <<_ACEOF
30336#define STACK_DIRECTION $ac_cv_c_stack_direction
30337_ACEOF
30338
30339
John Criswell0021c312004-02-13 21:57:29 +000030340fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030341
30342
Reid Spencera773bd52006-08-04 18:18:08 +000030343{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30344echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030345if test "${ac_cv_func_rand48+set}" = set; then
30346 echo $ECHO_N "(cached) $ECHO_C" >&6
30347else
Reid Spencera773bd52006-08-04 18:18:08 +000030348 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030349ac_cpp='$CXXCPP $CPPFLAGS'
30350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30353
30354 cat >conftest.$ac_ext <<_ACEOF
30355/* confdefs.h. */
30356_ACEOF
30357cat confdefs.h >>conftest.$ac_ext
30358cat >>conftest.$ac_ext <<_ACEOF
30359/* end confdefs.h. */
30360#include <stdlib.h>
30361int
30362main ()
30363{
30364srand48(0);lrand48();drand48();
30365 ;
30366 return 0;
30367}
30368_ACEOF
30369rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030370if { (ac_try="$ac_compile"
30371case "(($ac_try" in
30372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30373 *) ac_try_echo=$ac_try;;
30374esac
30375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30376 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030377 ac_status=$?
30378 grep -v '^ *+' conftest.er1 >conftest.err
30379 rm -f conftest.er1
30380 cat conftest.err >&5
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030382 (exit $ac_status); } && {
30383 test -z "$ac_cxx_werror_flag" ||
30384 test ! -s conftest.err
30385 } && test -s conftest.$ac_objext; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030386 ac_cv_func_rand48=yes
30387else
30388 echo "$as_me: failed program was:" >&5
30389sed 's/^/| /' conftest.$ac_ext >&5
30390
Reid Spencera773bd52006-08-04 18:18:08 +000030391 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030392fi
Reid Spencera773bd52006-08-04 18:18:08 +000030393
30394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030395 ac_ext=c
30396ac_cpp='$CPP $CPPFLAGS'
30397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30399ac_compiler_gnu=$ac_cv_c_compiler_gnu
30400
30401fi
Reid Spencera773bd52006-08-04 18:18:08 +000030402{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30403echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030404
30405if test "$ac_cv_func_rand48" = "yes" ; then
30406
30407cat >>confdefs.h <<\_ACEOF
30408#define HAVE_RAND48 1
30409_ACEOF
30410
30411fi
John Criswell0021c312004-02-13 21:57:29 +000030412
30413
Reid Spencera773bd52006-08-04 18:18:08 +000030414{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30415echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030416if test "${ac_cv_cxx_namespaces+set}" = set; then
30417 echo $ECHO_N "(cached) $ECHO_C" >&6
30418else
Reid Spencera773bd52006-08-04 18:18:08 +000030419 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030420ac_cpp='$CXXCPP $CPPFLAGS'
30421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30424
30425 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030426/* confdefs.h. */
30427_ACEOF
30428cat confdefs.h >>conftest.$ac_ext
30429cat >>conftest.$ac_ext <<_ACEOF
30430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030431namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000030432int
30433main ()
30434{
30435using namespace Outer::Inner; return i;
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
Nick Lewycky2ab1d862009-01-20 00:52:24 +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_namespaces=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_namespaces=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_namespaces" >&5
30475echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030476if test "$ac_cv_cxx_namespaces" = yes; then
30477
30478cat >>confdefs.h <<\_ACEOF
30479#define HAVE_NAMESPACES
30480_ACEOF
30481
30482fi
30483
Reid Spencera773bd52006-08-04 18:18:08 +000030484{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
30485echo $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 +000030486if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000030487 echo $ECHO_N "(cached) $ECHO_C" >&6
30488else
30489
Reid Spencera773bd52006-08-04 18:18:08 +000030490 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030491ac_cpp='$CXXCPP $CPPFLAGS'
30492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30495
30496 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030497/* confdefs.h. */
30498_ACEOF
30499cat confdefs.h >>conftest.$ac_ext
30500cat >>conftest.$ac_ext <<_ACEOF
30501/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030502#include <ext/hash_map>
30503#ifdef HAVE_NAMESPACES
30504using namespace std;
30505#endif
John Criswell7a73b802003-06-30 21:59:07 +000030506int
30507main ()
30508{
Brian Gaeke90583492003-11-10 03:06:28 +000030509hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000030510 ;
30511 return 0;
30512}
30513_ACEOF
30514rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030515if { (ac_try="$ac_compile"
30516case "(($ac_try" in
30517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518 *) ac_try_echo=$ac_try;;
30519esac
30520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030522 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030523 grep -v '^ *+' conftest.er1 >conftest.err
30524 rm -f conftest.er1
30525 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030527 (exit $ac_status); } && {
30528 test -z "$ac_cxx_werror_flag" ||
30529 test ! -s conftest.err
30530 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030531 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000030532else
30533 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030534sed 's/^/| /' conftest.$ac_ext >&5
30535
Reid Spencera773bd52006-08-04 18:18:08 +000030536 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000030537fi
Reid Spencera773bd52006-08-04 18:18:08 +000030538
30539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030540 ac_ext=c
30541ac_cpp='$CPP $CPPFLAGS'
30542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30544ac_compiler_gnu=$ac_cv_c_compiler_gnu
30545
John Criswell7a73b802003-06-30 21:59:07 +000030546fi
Reid Spencera773bd52006-08-04 18:18:08 +000030547{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
30548echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030549 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
30550 then
John Criswell9f011862004-09-24 18:28:00 +000030551
30552cat >>confdefs.h <<\_ACEOF
30553#define HAVE_STD_EXT_HASH_MAP 1
30554_ACEOF
30555
30556 else
30557
30558cat >>confdefs.h <<\_ACEOF
30559#define HAVE_STD_EXT_HASH_MAP 0
30560_ACEOF
30561
Brian Gaeke90583492003-11-10 03:06:28 +000030562 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030563
Reid Spencera773bd52006-08-04 18:18:08 +000030564 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30565echo $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 +000030566if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30567 echo $ECHO_N "(cached) $ECHO_C" >&6
30568else
30569
Reid Spencera773bd52006-08-04 18:18:08 +000030570 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030571ac_cpp='$CXXCPP $CPPFLAGS'
30572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30575
30576 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030577/* confdefs.h. */
30578_ACEOF
30579cat confdefs.h >>conftest.$ac_ext
30580cat >>conftest.$ac_ext <<_ACEOF
30581/* end confdefs.h. */
30582#include <ext/hash_map>
30583#ifdef HAVE_NAMESPACES
30584using namespace __gnu_cxx;
30585#endif
30586int
30587main ()
30588{
30589hash_map<int,int> t;
30590 ;
30591 return 0;
30592}
30593_ACEOF
30594rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030595if { (ac_try="$ac_compile"
30596case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30599esac
30600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030603 grep -v '^ *+' conftest.er1 >conftest.err
30604 rm -f conftest.er1
30605 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030607 (exit $ac_status); } && {
30608 test -z "$ac_cxx_werror_flag" ||
30609 test ! -s conftest.err
30610 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030611 ac_cv_cxx_have_gnu_ext_hash_map=yes
30612else
30613 echo "$as_me: failed program was:" >&5
30614sed 's/^/| /' conftest.$ac_ext >&5
30615
Reid Spencera773bd52006-08-04 18:18:08 +000030616 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000030617fi
Reid Spencera773bd52006-08-04 18:18:08 +000030618
30619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030620 ac_ext=c
30621ac_cpp='$CPP $CPPFLAGS'
30622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30624ac_compiler_gnu=$ac_cv_c_compiler_gnu
30625
30626fi
Reid Spencera773bd52006-08-04 18:18:08 +000030627{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30628echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030629 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30630 then
John Criswell9f011862004-09-24 18:28:00 +000030631
30632cat >>confdefs.h <<\_ACEOF
30633#define HAVE_GNU_EXT_HASH_MAP 1
30634_ACEOF
30635
30636 else
30637
30638cat >>confdefs.h <<\_ACEOF
30639#define HAVE_GNU_EXT_HASH_MAP 0
30640_ACEOF
30641
Brian Gaeke90583492003-11-10 03:06:28 +000030642 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030643
Reid Spencera773bd52006-08-04 18:18:08 +000030644 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30645echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030646if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30648else
John Criswell7a73b802003-06-30 21:59:07 +000030649
Reid Spencera773bd52006-08-04 18:18:08 +000030650 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030651ac_cpp='$CXXCPP $CPPFLAGS'
30652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30655
30656 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030657/* confdefs.h. */
30658_ACEOF
30659cat confdefs.h >>conftest.$ac_ext
30660cat >>conftest.$ac_ext <<_ACEOF
30661/* end confdefs.h. */
30662#include <hash_map>
30663int
30664main ()
30665{
30666hash_map<int,int> t;
30667 ;
30668 return 0;
30669}
30670_ACEOF
30671rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030672if { (ac_try="$ac_compile"
30673case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30676esac
30677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030679 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030680 grep -v '^ *+' conftest.er1 >conftest.err
30681 rm -f conftest.er1
30682 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030684 (exit $ac_status); } && {
30685 test -z "$ac_cxx_werror_flag" ||
30686 test ! -s conftest.err
30687 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030688 ac_cv_cxx_have_global_hash_map=yes
30689else
30690 echo "$as_me: failed program was:" >&5
30691sed 's/^/| /' conftest.$ac_ext >&5
30692
Reid Spencera773bd52006-08-04 18:18:08 +000030693 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000030694fi
Reid Spencera773bd52006-08-04 18:18:08 +000030695
30696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030697 ac_ext=c
30698ac_cpp='$CPP $CPPFLAGS'
30699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30701ac_compiler_gnu=$ac_cv_c_compiler_gnu
30702
30703fi
Reid Spencera773bd52006-08-04 18:18:08 +000030704{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30705echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030706 if test "$ac_cv_cxx_have_global_hash_map" = yes
30707 then
John Criswell9f011862004-09-24 18:28:00 +000030708
30709cat >>confdefs.h <<\_ACEOF
30710#define HAVE_GLOBAL_HASH_MAP 1
30711_ACEOF
30712
30713 else
30714
30715cat >>confdefs.h <<\_ACEOF
30716#define HAVE_GLOBAL_HASH_MAP 0
30717_ACEOF
30718
Brian Gaeke90583492003-11-10 03:06:28 +000030719 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030720
Reid Spencera773bd52006-08-04 18:18:08 +000030721{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30722echo $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 +000030723if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000030724 echo $ECHO_N "(cached) $ECHO_C" >&6
30725else
30726
Reid Spencera773bd52006-08-04 18:18:08 +000030727 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030728ac_cpp='$CXXCPP $CPPFLAGS'
30729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30732
30733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030734/* confdefs.h. */
30735_ACEOF
30736cat confdefs.h >>conftest.$ac_ext
30737cat >>conftest.$ac_ext <<_ACEOF
30738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030739#include <ext/hash_set>
30740#ifdef HAVE_NAMESPACES
30741using namespace std;
30742#endif
John Criswell7a73b802003-06-30 21:59:07 +000030743int
30744main ()
30745{
Brian Gaeke90583492003-11-10 03:06:28 +000030746hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000030747 ;
30748 return 0;
30749}
30750_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
John Criswell7a73b802003-06-30 21:59:07 +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
John Criswell7a73b802003-06-30 21:59:07 +000030763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030764 (exit $ac_status); } && {
30765 test -z "$ac_cxx_werror_flag" ||
30766 test ! -s conftest.err
30767 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030768 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030769else
30770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030771sed 's/^/| /' conftest.$ac_ext >&5
30772
Reid Spencera773bd52006-08-04 18:18:08 +000030773 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030774fi
Reid Spencera773bd52006-08-04 18:18:08 +000030775
30776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030777 ac_ext=c
30778ac_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_cxx_have_std_ext_hash_set" >&5
30785echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030786 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30787 then
John Criswell9f011862004-09-24 18:28:00 +000030788
30789cat >>confdefs.h <<\_ACEOF
30790#define HAVE_STD_EXT_HASH_SET 1
30791_ACEOF
30792
30793 else
30794
30795cat >>confdefs.h <<\_ACEOF
30796#define HAVE_STD_EXT_HASH_SET 0
30797_ACEOF
30798
Brian Gaeke90583492003-11-10 03:06:28 +000030799 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030800
Reid Spencera773bd52006-08-04 18:18:08 +000030801 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30802echo $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 +000030803if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30804 echo $ECHO_N "(cached) $ECHO_C" >&6
30805else
30806
Reid Spencera773bd52006-08-04 18:18:08 +000030807 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030808ac_cpp='$CXXCPP $CPPFLAGS'
30809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30812
John Criswell7a73b802003-06-30 21:59:07 +000030813 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030814/* confdefs.h. */
30815_ACEOF
30816cat confdefs.h >>conftest.$ac_ext
30817cat >>conftest.$ac_ext <<_ACEOF
30818/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030819#include <ext/hash_set>
30820#ifdef HAVE_NAMESPACES
30821using namespace __gnu_cxx;
30822#endif
John Criswell7a73b802003-06-30 21:59:07 +000030823int
30824main ()
30825{
Brian Gaeke90583492003-11-10 03:06:28 +000030826hash_set<int> t;
30827 ;
30828 return 0;
30829}
30830_ACEOF
30831rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030832if { (ac_try="$ac_compile"
30833case "(($ac_try" in
30834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835 *) ac_try_echo=$ac_try;;
30836esac
30837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000030839 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030840 grep -v '^ *+' conftest.er1 >conftest.err
30841 rm -f conftest.er1
30842 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000030843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030844 (exit $ac_status); } && {
30845 test -z "$ac_cxx_werror_flag" ||
30846 test ! -s conftest.err
30847 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030848 ac_cv_cxx_have_gnu_ext_hash_set=yes
30849else
30850 echo "$as_me: failed program was:" >&5
30851sed 's/^/| /' conftest.$ac_ext >&5
30852
Reid Spencera773bd52006-08-04 18:18:08 +000030853 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000030854fi
Reid Spencera773bd52006-08-04 18:18:08 +000030855
30856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000030857 ac_ext=c
30858ac_cpp='$CPP $CPPFLAGS'
30859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30861ac_compiler_gnu=$ac_cv_c_compiler_gnu
30862
30863fi
Reid Spencera773bd52006-08-04 18:18:08 +000030864{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30865echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030866 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30867 then
John Criswell9f011862004-09-24 18:28:00 +000030868
30869cat >>confdefs.h <<\_ACEOF
30870#define HAVE_GNU_EXT_HASH_SET 1
30871_ACEOF
30872
30873 else
30874
30875cat >>confdefs.h <<\_ACEOF
30876#define HAVE_GNU_EXT_HASH_SET 0
30877_ACEOF
30878
Brian Gaeke90583492003-11-10 03:06:28 +000030879 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030880
Reid Spencera773bd52006-08-04 18:18:08 +000030881 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30882echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000030883if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30884 echo $ECHO_N "(cached) $ECHO_C" >&6
30885else
30886
Reid Spencera773bd52006-08-04 18:18:08 +000030887 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000030888ac_cpp='$CXXCPP $CPPFLAGS'
30889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30892
30893 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000030894/* confdefs.h. */
30895_ACEOF
30896cat confdefs.h >>conftest.$ac_ext
30897cat >>conftest.$ac_ext <<_ACEOF
30898/* end confdefs.h. */
30899#include <hash_set>
30900int
30901main ()
30902{
John Criswell7a73b802003-06-30 21:59:07 +000030903hash_set<int> t; return 0;
30904 ;
30905 return 0;
30906}
30907_ACEOF
30908rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030909if { (ac_try="$ac_compile"
30910case "(($ac_try" in
30911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912 *) ac_try_echo=$ac_try;;
30913esac
30914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30915 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030916 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030917 grep -v '^ *+' conftest.er1 >conftest.err
30918 rm -f conftest.er1
30919 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030921 (exit $ac_status); } && {
30922 test -z "$ac_cxx_werror_flag" ||
30923 test ! -s conftest.err
30924 } && test -s conftest.$ac_objext; then
Brian Gaeke90583492003-11-10 03:06:28 +000030925 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000030926else
30927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030928sed 's/^/| /' conftest.$ac_ext >&5
30929
Reid Spencera773bd52006-08-04 18:18:08 +000030930 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000030931fi
Reid Spencera773bd52006-08-04 18:18:08 +000030932
30933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030934 ac_ext=c
30935ac_cpp='$CPP $CPPFLAGS'
30936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30938ac_compiler_gnu=$ac_cv_c_compiler_gnu
30939
John Criswell7a73b802003-06-30 21:59:07 +000030940fi
Reid Spencera773bd52006-08-04 18:18:08 +000030941{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30942echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000030943 if test "$ac_cv_cxx_have_global_hash_set" = yes
30944 then
John Criswell9f011862004-09-24 18:28:00 +000030945
30946cat >>confdefs.h <<\_ACEOF
30947#define HAVE_GLOBAL_HASH_SET 1
30948_ACEOF
30949
30950 else
30951
30952cat >>confdefs.h <<\_ACEOF
30953#define HAVE_GLOBAL_HASH_SET 0
30954_ACEOF
30955
Brian Gaeke90583492003-11-10 03:06:28 +000030956 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000030957
Reid Spencera773bd52006-08-04 18:18:08 +000030958{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30959echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030960if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30961 echo $ECHO_N "(cached) $ECHO_C" >&6
30962else
30963
Reid Spencera773bd52006-08-04 18:18:08 +000030964 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030965ac_cpp='$CXXCPP $CPPFLAGS'
30966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30969
30970 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030971/* confdefs.h. */
30972_ACEOF
30973cat confdefs.h >>conftest.$ac_ext
30974cat >>conftest.$ac_ext <<_ACEOF
30975/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030976#include <iterator>
30977#ifdef HAVE_NAMESPACES
30978using namespace std;
30979#endif
John Criswell7a73b802003-06-30 21:59:07 +000030980int
30981main ()
30982{
30983iterator<int,int,int> t; return 0;
30984 ;
30985 return 0;
30986}
30987_ACEOF
30988rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030989if { (ac_try="$ac_compile"
30990case "(($ac_try" in
30991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30992 *) ac_try_echo=$ac_try;;
30993esac
30994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30995 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030996 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030997 grep -v '^ *+' conftest.er1 >conftest.err
30998 rm -f conftest.er1
30999 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031001 (exit $ac_status); } && {
31002 test -z "$ac_cxx_werror_flag" ||
31003 test ! -s conftest.err
31004 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000031005 ac_cv_cxx_have_std_iterator=yes
31006else
31007 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031008sed 's/^/| /' conftest.$ac_ext >&5
31009
Reid Spencera773bd52006-08-04 18:18:08 +000031010 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031011fi
Reid Spencera773bd52006-08-04 18:18:08 +000031012
31013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031014 ac_ext=c
31015ac_cpp='$CPP $CPPFLAGS'
31016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31018ac_compiler_gnu=$ac_cv_c_compiler_gnu
31019
31020
31021fi
Reid Spencera773bd52006-08-04 18:18:08 +000031022{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31023echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031024if test "$ac_cv_cxx_have_std_iterator" = yes
31025then
John Criswell40468462004-09-24 21:19:06 +000031026
31027cat >>confdefs.h <<\_ACEOF
31028#define HAVE_STD_ITERATOR 1
31029_ACEOF
31030
31031else
31032
31033cat >>confdefs.h <<\_ACEOF
31034#define HAVE_STD_ITERATOR 0
31035_ACEOF
31036
John Criswell7a73b802003-06-30 21:59:07 +000031037fi
31038
Reid Spencera773bd52006-08-04 18:18:08 +000031039{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31040echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031041if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31042 echo $ECHO_N "(cached) $ECHO_C" >&6
31043else
31044
Reid Spencera773bd52006-08-04 18:18:08 +000031045 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031046ac_cpp='$CXXCPP $CPPFLAGS'
31047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31050
31051 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031052/* confdefs.h. */
31053_ACEOF
31054cat confdefs.h >>conftest.$ac_ext
31055cat >>conftest.$ac_ext <<_ACEOF
31056/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031057#include <iterator>
31058#ifdef HAVE_NAMESPACES
31059using namespace std;
31060#endif
John Criswell7a73b802003-06-30 21:59:07 +000031061int
31062main ()
31063{
John Criswellc78022e2003-07-29 19:11:58 +000031064bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031065 ;
31066 return 0;
31067}
31068_ACEOF
31069rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031070if { (ac_try="$ac_compile"
31071case "(($ac_try" in
31072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073 *) ac_try_echo=$ac_try;;
31074esac
31075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031077 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031078 grep -v '^ *+' conftest.er1 >conftest.err
31079 rm -f conftest.er1
31080 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031082 (exit $ac_status); } && {
31083 test -z "$ac_cxx_werror_flag" ||
31084 test ! -s conftest.err
31085 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000031086 ac_cv_cxx_have_bi_iterator=yes
31087else
31088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031089sed 's/^/| /' conftest.$ac_ext >&5
31090
Reid Spencera773bd52006-08-04 18:18:08 +000031091 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031092fi
Reid Spencera773bd52006-08-04 18:18:08 +000031093
31094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031095 ac_ext=c
31096ac_cpp='$CPP $CPPFLAGS'
31097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31099ac_compiler_gnu=$ac_cv_c_compiler_gnu
31100
31101
31102fi
Reid Spencera773bd52006-08-04 18:18:08 +000031103{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31104echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031105if test "$ac_cv_cxx_have_bi_iterator" = yes
31106then
John Criswell40468462004-09-24 21:19:06 +000031107
31108cat >>confdefs.h <<\_ACEOF
31109#define HAVE_BI_ITERATOR 1
31110_ACEOF
31111
31112else
31113
31114cat >>confdefs.h <<\_ACEOF
31115#define HAVE_BI_ITERATOR 0
31116_ACEOF
31117
John Criswell7a73b802003-06-30 21:59:07 +000031118fi
31119
Reid Spencera773bd52006-08-04 18:18:08 +000031120{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31121echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031122if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31123 echo $ECHO_N "(cached) $ECHO_C" >&6
31124else
31125
Reid Spencera773bd52006-08-04 18:18:08 +000031126 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031127ac_cpp='$CXXCPP $CPPFLAGS'
31128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31131
31132 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031133/* confdefs.h. */
31134_ACEOF
31135cat confdefs.h >>conftest.$ac_ext
31136cat >>conftest.$ac_ext <<_ACEOF
31137/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031138#include <iterator>
31139#ifdef HAVE_NAMESPACES
31140using namespace std;
31141#endif
John Criswell7a73b802003-06-30 21:59:07 +000031142int
31143main ()
31144{
John Criswellc78022e2003-07-29 19:11:58 +000031145forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031146 ;
31147 return 0;
31148}
31149_ACEOF
31150rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031151if { (ac_try="$ac_compile"
31152case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31155esac
31156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031158 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031159 grep -v '^ *+' conftest.er1 >conftest.err
31160 rm -f conftest.er1
31161 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031163 (exit $ac_status); } && {
31164 test -z "$ac_cxx_werror_flag" ||
31165 test ! -s conftest.err
31166 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000031167 ac_cv_cxx_have_fwd_iterator=yes
31168else
31169 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031170sed 's/^/| /' conftest.$ac_ext >&5
31171
Reid Spencera773bd52006-08-04 18:18:08 +000031172 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031173fi
Reid Spencera773bd52006-08-04 18:18:08 +000031174
31175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031176 ac_ext=c
31177ac_cpp='$CPP $CPPFLAGS'
31178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31180ac_compiler_gnu=$ac_cv_c_compiler_gnu
31181
31182
31183fi
Reid Spencera773bd52006-08-04 18:18:08 +000031184{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31185echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031186if test "$ac_cv_cxx_have_fwd_iterator" = yes
31187then
John Criswell40468462004-09-24 21:19:06 +000031188
31189cat >>confdefs.h <<\_ACEOF
31190#define HAVE_FWD_ITERATOR 1
31191_ACEOF
31192
31193else
31194
31195cat >>confdefs.h <<\_ACEOF
31196#define HAVE_FWD_ITERATOR 0
31197_ACEOF
31198
John Criswell7a73b802003-06-30 21:59:07 +000031199fi
31200
31201
Reid Spencera773bd52006-08-04 18:18:08 +000031202{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31203echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031204if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31205 echo $ECHO_N "(cached) $ECHO_C" >&6
31206else
Reid Spencera773bd52006-08-04 18:18:08 +000031207 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031208ac_cpp='$CXXCPP $CPPFLAGS'
31209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31212
Reid Spencerabec8f92004-10-27 23:03:44 +000031213 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031214/* confdefs.h. */
31215_ACEOF
31216cat confdefs.h >>conftest.$ac_ext
31217cat >>conftest.$ac_ext <<_ACEOF
31218/* end confdefs.h. */
31219#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031220int
31221main ()
31222{
31223float f; isnan(f);
31224 ;
31225 return 0;
31226}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031227_ACEOF
31228rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031229if { (ac_try="$ac_compile"
31230case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31233esac
31234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031236 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031237 grep -v '^ *+' conftest.er1 >conftest.err
31238 rm -f conftest.er1
31239 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031241 (exit $ac_status); } && {
31242 test -z "$ac_cxx_werror_flag" ||
31243 test ! -s conftest.err
31244 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031245 ac_cv_func_isnan_in_math_h=yes
31246else
31247 echo "$as_me: failed program was:" >&5
31248sed 's/^/| /' conftest.$ac_ext >&5
31249
Reid Spencera773bd52006-08-04 18:18:08 +000031250 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031251fi
Reid Spencera773bd52006-08-04 18:18:08 +000031252
31253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031254 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031255ac_cpp='$CPP $CPPFLAGS'
31256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31258ac_compiler_gnu=$ac_cv_c_compiler_gnu
31259
31260fi
Reid Spencera773bd52006-08-04 18:18:08 +000031261{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
31262echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031263
31264
31265if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031266
31267cat >>confdefs.h <<\_ACEOF
31268#define HAVE_ISNAN_IN_MATH_H 1
31269_ACEOF
31270
Reid Spencerabec8f92004-10-27 23:03:44 +000031271fi
31272
Reid Spencera773bd52006-08-04 18:18:08 +000031273{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
31274echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031275if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
31276 echo $ECHO_N "(cached) $ECHO_C" >&6
31277else
Reid Spencera773bd52006-08-04 18:18:08 +000031278 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031279ac_cpp='$CXXCPP $CPPFLAGS'
31280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31283
Reid Spencerabec8f92004-10-27 23:03:44 +000031284 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031285/* confdefs.h. */
31286_ACEOF
31287cat confdefs.h >>conftest.$ac_ext
31288cat >>conftest.$ac_ext <<_ACEOF
31289/* end confdefs.h. */
31290#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031291int
31292main ()
31293{
31294float f; isnan(f);
31295 ;
31296 return 0;
31297}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031298_ACEOF
31299rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031300if { (ac_try="$ac_compile"
31301case "(($ac_try" in
31302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303 *) ac_try_echo=$ac_try;;
31304esac
31305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031307 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031308 grep -v '^ *+' conftest.er1 >conftest.err
31309 rm -f conftest.er1
31310 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031312 (exit $ac_status); } && {
31313 test -z "$ac_cxx_werror_flag" ||
31314 test ! -s conftest.err
31315 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031316 ac_cv_func_isnan_in_cmath=yes
31317else
31318 echo "$as_me: failed program was:" >&5
31319sed 's/^/| /' conftest.$ac_ext >&5
31320
Reid Spencera773bd52006-08-04 18:18:08 +000031321 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031322fi
Reid Spencera773bd52006-08-04 18:18:08 +000031323
31324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031325 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031326ac_cpp='$CPP $CPPFLAGS'
31327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31329ac_compiler_gnu=$ac_cv_c_compiler_gnu
31330
31331fi
Reid Spencera773bd52006-08-04 18:18:08 +000031332{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
31333echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031334
31335if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031336
31337cat >>confdefs.h <<\_ACEOF
31338#define HAVE_ISNAN_IN_CMATH 1
31339_ACEOF
31340
Reid Spencerabec8f92004-10-27 23:03:44 +000031341fi
31342
Reid Spencera773bd52006-08-04 18:18:08 +000031343{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
31344echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031345if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
31346 echo $ECHO_N "(cached) $ECHO_C" >&6
31347else
Reid Spencera773bd52006-08-04 18:18:08 +000031348 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031349ac_cpp='$CXXCPP $CPPFLAGS'
31350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31353
Reid Spencerabec8f92004-10-27 23:03:44 +000031354 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031355/* confdefs.h. */
31356_ACEOF
31357cat confdefs.h >>conftest.$ac_ext
31358cat >>conftest.$ac_ext <<_ACEOF
31359/* end confdefs.h. */
31360#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031361int
31362main ()
31363{
31364float f; std::isnan(f);
31365 ;
31366 return 0;
31367}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031368_ACEOF
31369rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031370if { (ac_try="$ac_compile"
31371case "(($ac_try" in
31372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31373 *) ac_try_echo=$ac_try;;
31374esac
31375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31376 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031377 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031378 grep -v '^ *+' conftest.er1 >conftest.err
31379 rm -f conftest.er1
31380 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031382 (exit $ac_status); } && {
31383 test -z "$ac_cxx_werror_flag" ||
31384 test ! -s conftest.err
31385 } && test -s conftest.$ac_objext; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031386 ac_cv_func_std_isnan_in_cmath=yes
31387else
31388 echo "$as_me: failed program was:" >&5
31389sed 's/^/| /' conftest.$ac_ext >&5
31390
Reid Spencera773bd52006-08-04 18:18:08 +000031391 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031392fi
Reid Spencera773bd52006-08-04 18:18:08 +000031393
31394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031395 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031396ac_cpp='$CPP $CPPFLAGS'
31397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31399ac_compiler_gnu=$ac_cv_c_compiler_gnu
31400
31401fi
Reid Spencera773bd52006-08-04 18:18:08 +000031402{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
31403echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031404
31405if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031406
31407cat >>confdefs.h <<\_ACEOF
31408#define HAVE_STD_ISNAN_IN_CMATH 1
31409_ACEOF
31410
Reid Spencerabec8f92004-10-27 23:03:44 +000031411fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031412
31413
Reid Spencera773bd52006-08-04 18:18:08 +000031414{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
31415echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000031416if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
31417 echo $ECHO_N "(cached) $ECHO_C" >&6
31418else
Reid Spencera773bd52006-08-04 18:18:08 +000031419 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000031420ac_cpp='$CXXCPP $CPPFLAGS'
31421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31424
Reid Spencerabec8f92004-10-27 23:03:44 +000031425 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000031426/* confdefs.h. */
31427_ACEOF
31428cat confdefs.h >>conftest.$ac_ext
31429cat >>conftest.$ac_ext <<_ACEOF
31430/* end confdefs.h. */
31431#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031432int
31433main ()
31434{
31435float f; isinf(f);
31436 ;
31437 return 0;
31438}
Brian Gaeke52a551d2004-07-21 03:14:12 +000031439_ACEOF
31440rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031441if { (ac_try="$ac_compile"
31442case "(($ac_try" in
31443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31444 *) ac_try_echo=$ac_try;;
31445esac
31446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31447 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000031448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031449 grep -v '^ *+' conftest.er1 >conftest.err
31450 rm -f conftest.er1
31451 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000031452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031453 (exit $ac_status); } && {
31454 test -z "$ac_cxx_werror_flag" ||
31455 test ! -s conftest.err
31456 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031457 ac_cv_func_isinf_in_math_h=yes
31458else
31459 echo "$as_me: failed program was:" >&5
31460sed 's/^/| /' conftest.$ac_ext >&5
31461
Reid Spencera773bd52006-08-04 18:18:08 +000031462 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000031463fi
Reid Spencera773bd52006-08-04 18:18:08 +000031464
31465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031466 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000031467ac_cpp='$CPP $CPPFLAGS'
31468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31470ac_compiler_gnu=$ac_cv_c_compiler_gnu
31471
31472fi
Reid Spencera773bd52006-08-04 18:18:08 +000031473{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
31474echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031475
31476if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031477
31478cat >>confdefs.h <<\_ACEOF
31479#define HAVE_ISINF_IN_MATH_H 1
31480_ACEOF
31481
Reid Spencerabec8f92004-10-27 23:03:44 +000031482fi
31483
Reid Spencera773bd52006-08-04 18:18:08 +000031484{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
31485echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000031486if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
31487 echo $ECHO_N "(cached) $ECHO_C" >&6
31488else
Reid Spencera773bd52006-08-04 18:18:08 +000031489 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000031490ac_cpp='$CXXCPP $CPPFLAGS'
31491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31494
Reid Spencerabec8f92004-10-27 23:03:44 +000031495 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000031496/* confdefs.h. */
31497_ACEOF
31498cat confdefs.h >>conftest.$ac_ext
31499cat >>conftest.$ac_ext <<_ACEOF
31500/* end confdefs.h. */
31501#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031502int
31503main ()
31504{
31505float f; isinf(f);
31506 ;
31507 return 0;
31508}
Brian Gaeke52a551d2004-07-21 03:14:12 +000031509_ACEOF
31510rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031511if { (ac_try="$ac_compile"
31512case "(($ac_try" in
31513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31514 *) ac_try_echo=$ac_try;;
31515esac
31516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31517 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000031518 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031519 grep -v '^ *+' conftest.er1 >conftest.err
31520 rm -f conftest.er1
31521 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000031522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031523 (exit $ac_status); } && {
31524 test -z "$ac_cxx_werror_flag" ||
31525 test ! -s conftest.err
31526 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031527 ac_cv_func_isinf_in_cmath=yes
31528else
31529 echo "$as_me: failed program was:" >&5
31530sed 's/^/| /' conftest.$ac_ext >&5
31531
Reid Spencera773bd52006-08-04 18:18:08 +000031532 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000031533fi
Reid Spencera773bd52006-08-04 18:18:08 +000031534
31535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031536 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000031537ac_cpp='$CPP $CPPFLAGS'
31538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31540ac_compiler_gnu=$ac_cv_c_compiler_gnu
31541
31542fi
Reid Spencera773bd52006-08-04 18:18:08 +000031543{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
31544echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031545
31546if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031547
31548cat >>confdefs.h <<\_ACEOF
31549#define HAVE_ISINF_IN_CMATH 1
31550_ACEOF
31551
Reid Spencerabec8f92004-10-27 23:03:44 +000031552fi
31553
Reid Spencera773bd52006-08-04 18:18:08 +000031554{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
31555echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000031556if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31557 echo $ECHO_N "(cached) $ECHO_C" >&6
31558else
Reid Spencera773bd52006-08-04 18:18:08 +000031559 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000031560ac_cpp='$CXXCPP $CPPFLAGS'
31561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31564
Reid Spencerabec8f92004-10-27 23:03:44 +000031565 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000031566/* confdefs.h. */
31567_ACEOF
31568cat confdefs.h >>conftest.$ac_ext
31569cat >>conftest.$ac_ext <<_ACEOF
31570/* end confdefs.h. */
31571#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000031572int
31573main ()
31574{
31575float f; std::isinf(f)}
31576 ;
31577 return 0;
31578}
Brian Gaeke52a551d2004-07-21 03:14:12 +000031579_ACEOF
31580rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031581if { (ac_try="$ac_compile"
31582case "(($ac_try" in
31583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31584 *) ac_try_echo=$ac_try;;
31585esac
31586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31587 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000031588 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031589 grep -v '^ *+' conftest.er1 >conftest.err
31590 rm -f conftest.er1
31591 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000031592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031593 (exit $ac_status); } && {
31594 test -z "$ac_cxx_werror_flag" ||
31595 test ! -s conftest.err
31596 } && test -s conftest.$ac_objext; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031597 ac_cv_func_std_isinf_in_cmath=yes
31598else
31599 echo "$as_me: failed program was:" >&5
31600sed 's/^/| /' conftest.$ac_ext >&5
31601
Reid Spencera773bd52006-08-04 18:18:08 +000031602 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000031603fi
Reid Spencera773bd52006-08-04 18:18:08 +000031604
31605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031606 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000031607ac_cpp='$CPP $CPPFLAGS'
31608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31610ac_compiler_gnu=$ac_cv_c_compiler_gnu
31611
31612fi
Reid Spencera773bd52006-08-04 18:18:08 +000031613{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31614echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031615
31616if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000031617
31618cat >>confdefs.h <<\_ACEOF
31619#define HAVE_STD_ISINF_IN_CMATH 1
31620_ACEOF
31621
Reid Spencerabec8f92004-10-27 23:03:44 +000031622fi
31623
Reid Spencera773bd52006-08-04 18:18:08 +000031624{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31625echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000031626if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31627 echo $ECHO_N "(cached) $ECHO_C" >&6
31628else
Reid Spencera773bd52006-08-04 18:18:08 +000031629 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000031630ac_cpp='$CXXCPP $CPPFLAGS'
31631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31634
Reid Spencerabec8f92004-10-27 23:03:44 +000031635 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000031636/* confdefs.h. */
31637_ACEOF
31638cat confdefs.h >>conftest.$ac_ext
31639cat >>conftest.$ac_ext <<_ACEOF
31640/* end confdefs.h. */
31641#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031642int
31643main ()
31644{
31645float f; finite(f);
31646 ;
31647 return 0;
31648}
Brian Gaeked59a6472004-07-21 03:33:58 +000031649_ACEOF
31650rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031651if { (ac_try="$ac_compile"
31652case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31655esac
31656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000031658 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031659 grep -v '^ *+' conftest.er1 >conftest.err
31660 rm -f conftest.er1
31661 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000031662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031663 (exit $ac_status); } && {
31664 test -z "$ac_cxx_werror_flag" ||
31665 test ! -s conftest.err
31666 } && test -s conftest.$ac_objext; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031667 ac_cv_func_finite_in_ieeefp_h=yes
31668else
31669 echo "$as_me: failed program was:" >&5
31670sed 's/^/| /' conftest.$ac_ext >&5
31671
Reid Spencera773bd52006-08-04 18:18:08 +000031672 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000031673fi
Reid Spencera773bd52006-08-04 18:18:08 +000031674
31675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000031676 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000031677ac_cpp='$CPP $CPPFLAGS'
31678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31680ac_compiler_gnu=$ac_cv_c_compiler_gnu
31681
31682fi
Reid Spencera773bd52006-08-04 18:18:08 +000031683{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31684echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000031685
Brian Gaeke6802b552004-10-28 05:06:45 +000031686if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000031687
31688cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000031689#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000031690_ACEOF
31691
Reid Spencerabec8f92004-10-27 23:03:44 +000031692fi
31693
31694
31695
Reid Spencer30fe5262007-01-20 07:48:49 +000031696if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000031697
31698
31699for ac_header in stdlib.h unistd.h
31700do
31701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031706 echo $ECHO_N "(cached) $ECHO_C" >&6
31707fi
Reid Spencera773bd52006-08-04 18:18:08 +000031708ac_res=`eval echo '${'$as_ac_Header'}'`
31709 { echo "$as_me:$LINENO: result: $ac_res" >&5
31710echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031711else
31712 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000031713{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031715cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031716/* confdefs.h. */
31717_ACEOF
31718cat confdefs.h >>conftest.$ac_ext
31719cat >>conftest.$ac_ext <<_ACEOF
31720/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031721$ac_includes_default
31722#include <$ac_header>
31723_ACEOF
31724rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031725if { (ac_try="$ac_compile"
31726case "(($ac_try" in
31727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728 *) ac_try_echo=$ac_try;;
31729esac
31730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031732 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031733 grep -v '^ *+' conftest.er1 >conftest.err
31734 rm -f conftest.er1
31735 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031737 (exit $ac_status); } && {
31738 test -z "$ac_c_werror_flag" ||
31739 test ! -s conftest.err
31740 } && test -s conftest.$ac_objext; then
John Criswell7a73b802003-06-30 21:59:07 +000031741 ac_header_compiler=yes
31742else
31743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031744sed 's/^/| /' conftest.$ac_ext >&5
31745
Reid Spencera773bd52006-08-04 18:18:08 +000031746 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000031747fi
Reid Spencera773bd52006-08-04 18:18:08 +000031748
31749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31750{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31751echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031752
31753# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000031754{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031756cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031757/* confdefs.h. */
31758_ACEOF
31759cat confdefs.h >>conftest.$ac_ext
31760cat >>conftest.$ac_ext <<_ACEOF
31761/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031762#include <$ac_header>
31763_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031764if { (ac_try="$ac_cpp conftest.$ac_ext"
31765case "(($ac_try" in
31766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31767 *) ac_try_echo=$ac_try;;
31768esac
31769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031771 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000031772 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000031773 rm -f conftest.er1
31774 cat conftest.err >&5
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031776 (exit $ac_status); } >/dev/null && {
31777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31778 test ! -s conftest.err
31779 }; then
John Criswell7a73b802003-06-30 21:59:07 +000031780 ac_header_preproc=yes
31781else
31782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031783sed 's/^/| /' conftest.$ac_ext >&5
31784
John Criswell7a73b802003-06-30 21:59:07 +000031785 ac_header_preproc=no
31786fi
Reid Spencera773bd52006-08-04 18:18:08 +000031787
John Criswell7a73b802003-06-30 21:59:07 +000031788rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000031789{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31790echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031791
31792# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31794 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000031795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31799 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000031800 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031801 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000031802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000031810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000031812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000031814 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000031815## ----------------------------------- ##
31816## Report this to llvmbugs@cs.uiuc.edu ##
31817## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000031818_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000031819 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000031820 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031821esac
Reid Spencera773bd52006-08-04 18:18:08 +000031822{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031825 echo $ECHO_N "(cached) $ECHO_C" >&6
31826else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031827 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000031828fi
Reid Spencera773bd52006-08-04 18:18:08 +000031829ac_res=`eval echo '${'$as_ac_Header'}'`
31830 { echo "$as_me:$LINENO: result: $ac_res" >&5
31831echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031832
31833fi
31834if test `eval echo '${'$as_ac_Header'}'` = yes; then
31835 cat >>confdefs.h <<_ACEOF
31836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31837_ACEOF
31838
31839fi
31840
31841done
31842
31843
31844for ac_func in getpagesize
31845do
31846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031847{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31849if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031850 echo $ECHO_N "(cached) $ECHO_C" >&6
31851else
31852 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031853/* confdefs.h. */
31854_ACEOF
31855cat confdefs.h >>conftest.$ac_ext
31856cat >>conftest.$ac_ext <<_ACEOF
31857/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31860#define $ac_func innocuous_$ac_func
31861
John Criswell7a73b802003-06-30 21:59:07 +000031862/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000031863 which can conflict with char $ac_func (); below.
31864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31865 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031866
John Criswell0c38eaf2003-09-10 15:17:25 +000031867#ifdef __STDC__
31868# include <limits.h>
31869#else
31870# include <assert.h>
31871#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000031872
31873#undef $ac_func
31874
Reid Spencera773bd52006-08-04 18:18:08 +000031875/* Override any GCC internal prototype to avoid an error.
31876 Use char because int might match the return type of a GCC
31877 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000031878#ifdef __cplusplus
31879extern "C"
31880#endif
John Criswell7a73b802003-06-30 21:59:07 +000031881char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031882/* The GNU C library defines this for functions which it implements
31883 to always fail with ENOSYS. Some functions are actually named
31884 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031885#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000031886choke me
John Criswell7a73b802003-06-30 21:59:07 +000031887#endif
31888
John Criswell0c38eaf2003-09-10 15:17:25 +000031889int
31890main ()
31891{
Reid Spencera773bd52006-08-04 18:18:08 +000031892return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031893 ;
31894 return 0;
31895}
31896_ACEOF
31897rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031898if { (ac_try="$ac_link"
31899case "(($ac_try" in
31900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901 *) ac_try_echo=$ac_try;;
31902esac
31903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31904 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031905 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031906 grep -v '^ *+' conftest.er1 >conftest.err
31907 rm -f conftest.er1
31908 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031910 (exit $ac_status); } && {
31911 test -z "$ac_c_werror_flag" ||
31912 test ! -s conftest.err
31913 } && test -s conftest$ac_exeext &&
31914 $as_test_x conftest$ac_exeext; then
John Criswell7a73b802003-06-30 21:59:07 +000031915 eval "$as_ac_var=yes"
31916else
31917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031918sed 's/^/| /' conftest.$ac_ext >&5
31919
Reid Spencera773bd52006-08-04 18:18:08 +000031920 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031921fi
Reid Spencera773bd52006-08-04 18:18:08 +000031922
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031924 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031925fi
Reid Spencera773bd52006-08-04 18:18:08 +000031926ac_res=`eval echo '${'$as_ac_var'}'`
31927 { echo "$as_me:$LINENO: result: $ac_res" >&5
31928echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031929if test `eval echo '${'$as_ac_var'}'` = yes; then
31930 cat >>confdefs.h <<_ACEOF
31931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31932_ACEOF
31933
31934fi
31935done
31936
Reid Spencera773bd52006-08-04 18:18:08 +000031937{ echo "$as_me:$LINENO: checking for working mmap" >&5
31938echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031939if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31940 echo $ECHO_N "(cached) $ECHO_C" >&6
31941else
31942 if test "$cross_compiling" = yes; then
31943 ac_cv_func_mmap_fixed_mapped=no
31944else
31945 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031946/* confdefs.h. */
31947_ACEOF
31948cat confdefs.h >>conftest.$ac_ext
31949cat >>conftest.$ac_ext <<_ACEOF
31950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031951$ac_includes_default
31952/* malloc might have been renamed as rpl_malloc. */
31953#undef malloc
31954
31955/* Thanks to Mike Haertel and Jim Avera for this test.
31956 Here is a matrix of mmap possibilities:
31957 mmap private not fixed
31958 mmap private fixed at somewhere currently unmapped
31959 mmap private fixed at somewhere already mapped
31960 mmap shared not fixed
31961 mmap shared fixed at somewhere currently unmapped
31962 mmap shared fixed at somewhere already mapped
31963 For private mappings, we should verify that changes cannot be read()
31964 back from the file, nor mmap's back from the file at a different
31965 address. (There have been systems where private was not correctly
31966 implemented like the infamous i386 svr4.0, and systems where the
31967 VM page cache was not coherent with the file system buffer cache
31968 like early versions of FreeBSD and possibly contemporary NetBSD.)
31969 For shared mappings, we should conversely verify that changes get
31970 propagated back to all the places they're supposed to be.
31971
31972 Grep wants private fixed already mapped.
31973 The main things grep needs to know about mmap are:
31974 * does it exist and is it safe to write into the mmap'd area
31975 * how to use it (BSD variants) */
31976
31977#include <fcntl.h>
31978#include <sys/mman.h>
31979
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031980#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000031981char *malloc ();
31982#endif
31983
31984/* This mess was copied from the GNU getpagesize.h. */
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031985#ifndef HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000031986/* Assume that all systems that can run configure have sys/param.h. */
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031987# ifndef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031988# define HAVE_SYS_PARAM_H 1
31989# endif
31990
31991# ifdef _SC_PAGESIZE
31992# define getpagesize() sysconf(_SC_PAGESIZE)
31993# else /* no _SC_PAGESIZE */
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031994# ifdef HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000031995# include <sys/param.h>
31996# ifdef EXEC_PAGESIZE
31997# define getpagesize() EXEC_PAGESIZE
31998# else /* no EXEC_PAGESIZE */
31999# ifdef NBPG
32000# define getpagesize() NBPG * CLSIZE
32001# ifndef CLSIZE
32002# define CLSIZE 1
32003# endif /* no CLSIZE */
32004# else /* no NBPG */
32005# ifdef NBPC
32006# define getpagesize() NBPC
32007# else /* no NBPC */
32008# ifdef PAGESIZE
32009# define getpagesize() PAGESIZE
32010# endif /* PAGESIZE */
32011# endif /* no NBPC */
32012# endif /* no NBPG */
32013# endif /* no EXEC_PAGESIZE */
32014# else /* no HAVE_SYS_PARAM_H */
32015# define getpagesize() 8192 /* punt totally */
32016# endif /* no HAVE_SYS_PARAM_H */
32017# endif /* no _SC_PAGESIZE */
32018
32019#endif /* no HAVE_GETPAGESIZE */
32020
32021int
32022main ()
32023{
32024 char *data, *data2, *data3;
32025 int i, pagesize;
32026 int fd;
32027
32028 pagesize = getpagesize ();
32029
32030 /* First, make a file with some known garbage in it. */
32031 data = (char *) malloc (pagesize);
32032 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000032033 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032034 for (i = 0; i < pagesize; ++i)
32035 *(data + i) = rand ();
32036 umask (0);
32037 fd = creat ("conftest.mmap", 0600);
32038 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032039 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032040 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032041 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032042 close (fd);
32043
32044 /* Next, try to mmap the file at a fixed address which already has
32045 something else allocated at it. If we can, also make sure that
32046 we see the same garbage. */
32047 fd = open ("conftest.mmap", O_RDWR);
32048 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032049 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032050 data2 = (char *) malloc (2 * pagesize);
32051 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000032052 return 1;
32053 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000032054 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000032055 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000032056 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032057 for (i = 0; i < pagesize; ++i)
32058 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032059 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032060
32061 /* Finally, make sure that changes to the mapped area do not
32062 percolate back to the file as seen by read(). (This is a bug on
32063 some variants of i386 svr4.0.) */
32064 for (i = 0; i < pagesize; ++i)
32065 *(data2 + i) = *(data2 + i) + 1;
32066 data3 = (char *) malloc (pagesize);
32067 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000032068 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032069 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032070 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032071 for (i = 0; i < pagesize; ++i)
32072 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032073 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032074 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000032075 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032076}
32077_ACEOF
32078rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032079if { (ac_try="$ac_link"
32080case "(($ac_try" in
32081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32082 *) ac_try_echo=$ac_try;;
32083esac
32084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32085 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032086 ac_status=$?
32087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032089 { (case "(($ac_try" in
32090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32092esac
32093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032095 ac_status=$?
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); }; }; then
32098 ac_cv_func_mmap_fixed_mapped=yes
32099else
32100 echo "$as_me: program exited with status $ac_status" >&5
32101echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032102sed 's/^/| /' conftest.$ac_ext >&5
32103
John Criswell7a73b802003-06-30 21:59:07 +000032104( exit $ac_status )
32105ac_cv_func_mmap_fixed_mapped=no
32106fi
Reid Spencera773bd52006-08-04 18:18:08 +000032107rm -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 +000032108fi
Reid Spencera773bd52006-08-04 18:18:08 +000032109
32110
John Criswell7a73b802003-06-30 21:59:07 +000032111fi
Reid Spencera773bd52006-08-04 18:18:08 +000032112{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
32113echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032114if test $ac_cv_func_mmap_fixed_mapped = yes; then
32115
32116cat >>confdefs.h <<\_ACEOF
32117#define HAVE_MMAP 1
32118_ACEOF
32119
32120fi
32121rm -f conftest.mmap
32122
Reid Spencer30fe5262007-01-20 07:48:49 +000032123 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000032124echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032125if test "${ac_cv_func_mmap_file+set}" = set; then
32126 echo $ECHO_N "(cached) $ECHO_C" >&6
32127else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032128 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000032129ac_cpp='$CPP $CPPFLAGS'
32130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32132ac_compiler_gnu=$ac_cv_c_compiler_gnu
32133
32134 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000032135 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000032136else
32137 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032138
Reid Spencer777ce172004-09-20 04:09:56 +000032139 /* confdefs.h. */
32140_ACEOF
32141cat confdefs.h >>conftest.$ac_ext
32142cat >>conftest.$ac_ext <<_ACEOF
32143/* end confdefs.h. */
32144
John Criswell7a73b802003-06-30 21:59:07 +000032145#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000032146#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000032147#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000032148
32149int
32150main ()
32151{
John Criswell7a73b802003-06-30 21:59:07 +000032152
32153 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000032154 fd = creat ("foo",0777);
32155 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
32156 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000032157 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000032158 ;
32159 return 0;
32160}
John Criswell7a73b802003-06-30 21:59:07 +000032161_ACEOF
32162rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032163if { (ac_try="$ac_link"
32164case "(($ac_try" in
32165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166 *) ac_try_echo=$ac_try;;
32167esac
32168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032173 { (case "(($ac_try" in
32174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32175 *) ac_try_echo=$ac_try;;
32176esac
32177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32178 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032179 ac_status=$?
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); }; }; then
32182 ac_cv_func_mmap_file=yes
32183else
32184 echo "$as_me: program exited with status $ac_status" >&5
32185echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032186sed 's/^/| /' conftest.$ac_ext >&5
32187
John Criswell7a73b802003-06-30 21:59:07 +000032188( exit $ac_status )
32189ac_cv_func_mmap_file=no
32190fi
Reid Spencera773bd52006-08-04 18:18:08 +000032191rm -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 +000032192fi
Reid Spencera773bd52006-08-04 18:18:08 +000032193
32194
John Criswell7a73b802003-06-30 21:59:07 +000032195 ac_ext=c
32196ac_cpp='$CPP $CPPFLAGS'
32197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32199ac_compiler_gnu=$ac_cv_c_compiler_gnu
32200
32201
32202fi
Reid Spencera773bd52006-08-04 18:18:08 +000032203{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
32204echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032205if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000032206
32207cat >>confdefs.h <<\_ACEOF
32208#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000032209_ACEOF
32210
32211 MMAP_FILE=yes
32212
32213fi
32214
Reid Spencer30fe5262007-01-20 07:48:49 +000032215 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000032216echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032217if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
32218 echo $ECHO_N "(cached) $ECHO_C" >&6
32219else
Reid Spencer582a23c2004-12-29 07:07:57 +000032220 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000032221 ac_cv_need_dev_zero_for_mmap=yes
32222 else
32223 ac_cv_need_dev_zero_for_mmap=no
32224 fi
32225
32226fi
Reid Spencera773bd52006-08-04 18:18:08 +000032227{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
32228echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032229if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
32230
32231cat >>confdefs.h <<\_ACEOF
32232#define NEED_DEV_ZERO_FOR_MMAP 1
32233_ACEOF
32234
32235fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000032236
Reid Spencer30fe5262007-01-20 07:48:49 +000032237 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
32238 then
32239 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000032240echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000032241 fi
32242 if test "$ac_cv_func_mmap_file" = "no"
32243 then
32244 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032245echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000032246 fi
John Criswellb13092b2003-07-22 21:00:24 +000032247fi
John Criswell7a73b802003-06-30 21:59:07 +000032248
32249
Reid Spencer9372f152007-07-30 20:13:24 +000032250
32251for ac_func in __dso_handle
32252do
32253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32254{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32256if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32258else
32259 cat >conftest.$ac_ext <<_ACEOF
32260/* confdefs.h. */
32261_ACEOF
32262cat confdefs.h >>conftest.$ac_ext
32263cat >>conftest.$ac_ext <<_ACEOF
32264/* end confdefs.h. */
32265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32267#define $ac_func innocuous_$ac_func
32268
32269/* System header to define __stub macros and hopefully few prototypes,
32270 which can conflict with char $ac_func (); below.
32271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32272 <limits.h> exists even on freestanding compilers. */
32273
32274#ifdef __STDC__
32275# include <limits.h>
32276#else
32277# include <assert.h>
32278#endif
32279
32280#undef $ac_func
32281
32282/* Override any GCC internal prototype to avoid an error.
32283 Use char because int might match the return type of a GCC
32284 builtin and then its argument prototype would still apply. */
32285#ifdef __cplusplus
32286extern "C"
32287#endif
32288char $ac_func ();
32289/* The GNU C library defines this for functions which it implements
32290 to always fail with ENOSYS. Some functions are actually named
32291 something starting with __ and the normal name is an alias. */
32292#if defined __stub_$ac_func || defined __stub___$ac_func
32293choke me
32294#endif
32295
32296int
32297main ()
32298{
32299return $ac_func ();
32300 ;
32301 return 0;
32302}
32303_ACEOF
32304rm -f conftest.$ac_objext conftest$ac_exeext
32305if { (ac_try="$ac_link"
32306case "(($ac_try" in
32307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308 *) ac_try_echo=$ac_try;;
32309esac
32310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311 (eval "$ac_link") 2>conftest.er1
32312 ac_status=$?
32313 grep -v '^ *+' conftest.er1 >conftest.err
32314 rm -f conftest.er1
32315 cat conftest.err >&5
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000032317 (exit $ac_status); } && {
32318 test -z "$ac_c_werror_flag" ||
32319 test ! -s conftest.err
32320 } && test -s conftest$ac_exeext &&
32321 $as_test_x conftest$ac_exeext; then
Reid Spencer9372f152007-07-30 20:13:24 +000032322 eval "$as_ac_var=yes"
32323else
32324 echo "$as_me: failed program was:" >&5
32325sed 's/^/| /' conftest.$ac_ext >&5
32326
32327 eval "$as_ac_var=no"
32328fi
32329
Nick Lewycky2ab1d862009-01-20 00:52:24 +000032330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer9372f152007-07-30 20:13:24 +000032331 conftest$ac_exeext conftest.$ac_ext
32332fi
32333ac_res=`eval echo '${'$as_ac_var'}'`
32334 { echo "$as_me:$LINENO: result: $ac_res" >&5
32335echo "${ECHO_T}$ac_res" >&6; }
32336if test `eval echo '${'$as_ac_var'}'` = yes; then
32337 cat >>confdefs.h <<_ACEOF
32338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32339_ACEOF
32340
32341fi
32342done
32343
32344
Reid Spencera773bd52006-08-04 18:18:08 +000032345{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
32346echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032347if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
32348 echo $ECHO_N "(cached) $ECHO_C" >&6
32349else
32350 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000032351if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032352 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000032353 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
32354 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032355 if test $? -eq 0 ; then
32356 llvm_cv_llvmgcc_sanity="yes"
32357 fi
32358 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000032359fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032360fi
Reid Spencera773bd52006-08-04 18:18:08 +000032361{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
32362echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032363
32364if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000032365 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
32366echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000032367 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032368 LLVMCC1=$llvmcc1path
32369
Reid Spencer502935f2004-12-22 05:56:56 +000032370 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032371 LLVMCC1PLUS=$llvmcc1pluspath
32372
Reid Spencer502935f2004-12-22 05:56:56 +000032373 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
32374 LLVMGCCDIR=$llvmgccdir
32375
Reid Spencer282d8c12006-12-21 22:55:41 +000032376 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
32377 LLVMGCCLIBEXEC=$llvmgcclibexec
32378
Reid Spencerb5d75b82006-05-09 00:31:01 +000032379 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000032380 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
32381 LLVMGCC_VERSION=$llvmgccversion
32382
32383 LLVMGCC_MAJVERS=$llvmgccmajvers
32384
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000032385 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000032386 LLVMGCC_LANGS=$llvmgcclangs
32387
32388 { echo "$as_me:$LINENO: result: ok" >&5
32389echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000032390fi
32391
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032392SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000032393
32394
Reid Spencere9de0912004-08-20 09:03:57 +000032395# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032396# information into substitutions that will end up in Makefile.config.in
32397# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000032398if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000032399 prefix="/usr/local"
32400fi
Reid Spencere9de0912004-08-20 09:03:57 +000032401eval LLVM_PREFIX="${prefix}";
32402eval LLVM_BINDIR="${prefix}/bin";
32403eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000032404eval LLVM_DATADIR="${prefix}/share/llvm";
32405eval LLVM_DOCSDIR="${prefix}/docs/llvm";
32406eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000032407eval LLVM_INCLUDEDIR="${prefix}/include";
32408eval LLVM_INFODIR="${prefix}/info";
32409eval LLVM_MANDIR="${prefix}/man";
32410LLVM_CONFIGTIME=`date`
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032422# Place the various directores into the config.h file as #defines so that we
32423# can know about the installation paths within LLVM.
32424
Reid Spencere9de0912004-08-20 09:03:57 +000032425cat >>confdefs.h <<_ACEOF
32426#define LLVM_PREFIX "$LLVM_PREFIX"
32427_ACEOF
32428
32429
32430cat >>confdefs.h <<_ACEOF
32431#define LLVM_BINDIR "$LLVM_BINDIR"
32432_ACEOF
32433
32434
32435cat >>confdefs.h <<_ACEOF
32436#define LLVM_LIBDIR "$LLVM_LIBDIR"
32437_ACEOF
32438
32439
32440cat >>confdefs.h <<_ACEOF
32441#define LLVM_DATADIR "$LLVM_DATADIR"
32442_ACEOF
32443
32444
32445cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000032446#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000032447_ACEOF
32448
32449
32450cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000032451#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000032452_ACEOF
32453
32454
32455cat >>confdefs.h <<_ACEOF
32456#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
32457_ACEOF
32458
32459
32460cat >>confdefs.h <<_ACEOF
32461#define LLVM_INFODIR "$LLVM_INFODIR"
32462_ACEOF
32463
32464
32465cat >>confdefs.h <<_ACEOF
32466#define LLVM_MANDIR "$LLVM_MANDIR"
32467_ACEOF
32468
32469
32470cat >>confdefs.h <<_ACEOF
32471#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
32472_ACEOF
32473
32474
Eric Christopher790e11c2007-12-01 00:34:39 +000032475cat >>confdefs.h <<_ACEOF
32476#define LLVM_HOSTTRIPLE "$host"
32477_ACEOF
32478
32479
Gordon Henriksenc0efff82007-10-02 09:50:32 +000032480# Determine which bindings to build.
32481if test "$BINDINGS_TO_BUILD" = auto ; then
32482 BINDINGS_TO_BUILD=""
32483 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
32484 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
32485 fi
32486fi
32487BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
32488
32489
32490# This isn't really configurey, but it avoids having to repeat the list in
32491# other files.
32492ALL_BINDINGS=ocaml
32493
32494
Gordon Henriksenf0915682007-10-02 16:42:22 +000032495# Do any work necessary to ensure that bindings have what they need.
32496binding_prereqs_failed=0
32497for a_binding in $BINDINGS_TO_BUILD ; do
32498 case "$a_binding" in
32499 ocaml)
32500 if test "x$OCAMLC" = x ; then
32501 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
32502echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
32503 binding_prereqs_failed=1
32504 fi
32505 if test "x$OCAMLDEP" = x ; then
32506 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
32507echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
32508 binding_prereqs_failed=1
32509 fi
32510 if test "x$OCAMLOPT" = x ; then
32511 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
32512echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
32513 fi
32514 if test "x$with_ocaml_libdir" != xauto ; then
32515 OCAML_LIBDIR=$with_ocaml_libdir
32516
32517 else
32518 ocaml_stdlib="`"$OCAMLC" -where`"
32519 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
32520 then
32521 # ocaml stdlib is beneath our prefix; use stdlib
32522 OCAML_LIBDIR=$ocaml_stdlib
32523
32524 else
32525 # ocaml stdlib is outside our prefix; use libdir/ocaml
32526 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
32527
32528 fi
32529 fi
32530 ;;
32531 esac
32532done
32533if test "$binding_prereqs_failed" = 1 ; then
32534 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
32535echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
32536 { (exit 1); exit 1; }; }
32537fi
32538
Daniel Dunbardcf114e2008-08-30 01:16:19 +000032539{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
32540echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
32541if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
32542 echo $ECHO_N "(cached) $ECHO_C" >&6
32543else
32544 ac_ext=cpp
32545ac_cpp='$CXXCPP $CPPFLAGS'
32546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32549
32550 oldcxxflags="$CXXFLAGS"
32551 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
32552 cat >conftest.$ac_ext <<_ACEOF
32553/* confdefs.h. */
32554_ACEOF
32555cat confdefs.h >>conftest.$ac_ext
32556cat >>conftest.$ac_ext <<_ACEOF
32557/* end confdefs.h. */
32558
32559int
32560main ()
32561{
32562
32563 ;
32564 return 0;
32565}
32566_ACEOF
32567rm -f conftest.$ac_objext
32568if { (ac_try="$ac_compile"
32569case "(($ac_try" in
32570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571 *) ac_try_echo=$ac_try;;
32572esac
32573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32574 (eval "$ac_compile") 2>conftest.er1
32575 ac_status=$?
32576 grep -v '^ *+' conftest.er1 >conftest.err
32577 rm -f conftest.er1
32578 cat conftest.err >&5
32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +000032580 (exit $ac_status); } && {
32581 test -z "$ac_cxx_werror_flag" ||
32582 test ! -s conftest.err
32583 } && test -s conftest.$ac_objext; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000032584 llvm_cv_cxx_visibility_inlines_hidden=yes
32585else
32586 echo "$as_me: failed program was:" >&5
32587sed 's/^/| /' conftest.$ac_ext >&5
32588
32589 llvm_cv_cxx_visibility_inlines_hidden=no
32590fi
32591
32592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32593 CXXFLAGS="$oldcxxflags"
32594 ac_ext=c
32595ac_cpp='$CPP $CPPFLAGS'
32596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32598ac_compiler_gnu=$ac_cv_c_compiler_gnu
32599
32600
32601fi
32602{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
32603echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
32604if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
32605 ENABLE_VISIBILITY_INLINES_HIDDEN=1
32606
32607else
32608 ENABLE_VISIBILITY_INLINES_HIDDEN=0
32609
32610fi
32611
Gordon Henriksenf0915682007-10-02 16:42:22 +000032612
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032613
Reid Spencera773bd52006-08-04 18:18:08 +000032614ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032615
Reid Spencera773bd52006-08-04 18:18:08 +000032616ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032617
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000032618ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032619
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000032620ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032621
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000032622ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032623
32624
Reid Spencera773bd52006-08-04 18:18:08 +000032625ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032626
32627
Reid Spencerea949cf2006-08-16 00:45:38 +000032628ac_config_files="$ac_config_files llvm.spec"
32629
32630
Reid Spencera773bd52006-08-04 18:18:08 +000032631ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000032632
32633
Reid Spencera773bd52006-08-04 18:18:08 +000032634ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000032635
32636
Reid Spencera773bd52006-08-04 18:18:08 +000032637ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000032638
Reid Spencera773bd52006-08-04 18:18:08 +000032639ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032640
32641
Reid Spencera773bd52006-08-04 18:18:08 +000032642ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032643
32644
Reid Spencera773bd52006-08-04 18:18:08 +000032645ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032646
32647
Reid Spencera773bd52006-08-04 18:18:08 +000032648ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032649
32650
Reid Spencer8b2e1412006-11-17 03:32:33 +000032651ac_config_commands="$ac_config_commands runtime/Makefile"
32652
32653
Reid Spencera773bd52006-08-04 18:18:08 +000032654ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032655
32656
Reid Spencera773bd52006-08-04 18:18:08 +000032657ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032658
32659
Bill Wendlingf24eb392009-01-04 23:12:30 +000032660ac_config_commands="$ac_config_commands unittests/Makefile"
32661
32662
Reid Spencera773bd52006-08-04 18:18:08 +000032663ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032664
32665
Reid Spencera773bd52006-08-04 18:18:08 +000032666ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032667
32668
Reid Spencera773bd52006-08-04 18:18:08 +000032669ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032670
32671
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000032672ac_config_commands="$ac_config_commands bindings/Makefile"
32673
32674
32675ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32676
32677
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032678
John Criswell7a73b802003-06-30 21:59:07 +000032679cat >confcache <<\_ACEOF
32680# This file is a shell script that caches the results of configure
32681# tests run on this system so they can be shared between configure
32682# scripts and configure runs, see configure's option --config-cache.
32683# It is not useful on other systems. If it contains results you don't
32684# want to keep, you may remove or edit it.
32685#
32686# config.status only pays attention to the cache file if you give it
32687# the --recheck option to rerun configure.
32688#
John Criswell0c38eaf2003-09-10 15:17:25 +000032689# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000032690# loading this file, other *unset* `ac_cv_foo' will be assigned the
32691# following values.
32692
32693_ACEOF
32694
32695# The following way of writing the cache mishandles newlines in values,
32696# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000032697# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000032698# Ultrix sh set writes to stderr and can't be redirected directly,
32699# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000032700(
32701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32702 eval ac_val=\$$ac_var
32703 case $ac_val in #(
32704 *${as_nl}*)
32705 case $ac_var in #(
32706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32707echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32708 esac
32709 case $ac_var in #(
32710 _ | IFS | as_nl) ;; #(
32711 *) $as_unset $ac_var ;;
32712 esac ;;
32713 esac
32714 done
32715
John Criswell7a73b802003-06-30 21:59:07 +000032716 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000032717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32718 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000032719 # `set' does not quote correctly, so add quotes (double-quote
32720 # substitution turns \\\\ into \\, and sed turns \\ into \).
32721 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032722 "s/'/'\\\\''/g;
32723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000032724 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000032725 *)
32726 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000032727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000032728 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000032729 esac |
32730 sort
32731) |
John Criswell7a73b802003-06-30 21:59:07 +000032732 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032733 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000032734 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000032735 :clear
John Criswell7a73b802003-06-30 21:59:07 +000032736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32737 t end
Reid Spencera773bd52006-08-04 18:18:08 +000032738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32739 :end' >>confcache
32740if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32741 if test -w "$cache_file"; then
32742 test "x$cache_file" != "x/dev/null" &&
32743 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32744echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032745 cat confcache >$cache_file
32746 else
Reid Spencera773bd52006-08-04 18:18:08 +000032747 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32748echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000032749 fi
32750fi
32751rm -f confcache
32752
32753test "x$prefix" = xNONE && prefix=$ac_default_prefix
32754# Let make expand exec_prefix.
32755test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32756
John Criswell7a73b802003-06-30 21:59:07 +000032757DEFS=-DHAVE_CONFIG_H
32758
John Criswell0c38eaf2003-09-10 15:17:25 +000032759ac_libobjs=
32760ac_ltlibobjs=
32761for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32762 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000032763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32764 ac_i=`echo "$ac_i" | sed "$ac_script"`
32765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32766 # will be set to the directory where LIBOBJS objects are built.
32767 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32768 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000032769done
32770LIBOBJS=$ac_libobjs
32771
32772LTLIBOBJS=$ac_ltlibobjs
32773
32774
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032775if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32776 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32777Usually this means the macro was only invoked conditionally." >&5
32778echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32779Usually this means the macro was only invoked conditionally." >&2;}
32780 { (exit 1); exit 1; }; }
32781fi
32782if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32783 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32784Usually this means the macro was only invoked conditionally." >&5
32785echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32786Usually this means the macro was only invoked conditionally." >&2;}
32787 { (exit 1); exit 1; }; }
32788fi
John Criswell7a73b802003-06-30 21:59:07 +000032789
32790: ${CONFIG_STATUS=./config.status}
32791ac_clean_files_save=$ac_clean_files
32792ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32793{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32794echo "$as_me: creating $CONFIG_STATUS" >&6;}
32795cat >$CONFIG_STATUS <<_ACEOF
32796#! $SHELL
32797# Generated by $as_me.
32798# Run this file to recreate the current configuration.
32799# Compiler output produced by configure, useful for debugging
32800# configure, is in config.log if it exists.
32801
32802debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000032803ac_cs_recheck=false
32804ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000032805SHELL=\${CONFIG_SHELL-$SHELL}
32806_ACEOF
32807
32808cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032809## --------------------- ##
32810## M4sh Initialization. ##
32811## --------------------- ##
32812
Nick Lewycky2ab1d862009-01-20 00:52:24 +000032813# Be more Bourne compatible
32814DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000032815if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32816 emulate sh
32817 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032818 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32819 # is contrary to our usage. Disable this feature.
32820 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000032821 setopt NO_GLOB_SUBST
32822else
Nick Lewycky2ab1d862009-01-20 00:52:24 +000032823 case `(set -o) 2>/dev/null` in
32824 *posix*) set -o posix ;;
32825esac
32826
John Criswell7a73b802003-06-30 21:59:07 +000032827fi
Nick Lewycky2ab1d862009-01-20 00:52:24 +000032828
32829
John Criswell7a73b802003-06-30 21:59:07 +000032830
John Criswell7a73b802003-06-30 21:59:07 +000032831
Reid Spencera773bd52006-08-04 18:18:08 +000032832# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000032833# Avoid depending upon Character Ranges.
32834as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32835as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32836as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32837as_cr_digits='0123456789'
32838as_cr_alnum=$as_cr_Letters$as_cr_digits
32839
32840# The user is always right.
32841if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032842 echo "#! /bin/sh" >conf$$.sh
32843 echo "exit 0" >>conf$$.sh
32844 chmod +x conf$$.sh
32845 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032846 PATH_SEPARATOR=';'
32847 else
32848 PATH_SEPARATOR=:
32849 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000032850 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000032851fi
32852
Reid Spencera773bd52006-08-04 18:18:08 +000032853# Support unset when possible.
32854if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32855 as_unset=unset
32856else
32857 as_unset=false
32858fi
John Criswell7a73b802003-06-30 21:59:07 +000032859
Reid Spencera773bd52006-08-04 18:18:08 +000032860
32861# IFS
32862# We need space, tab and new line, in precisely that order. Quoting is
32863# there to prevent editors from complaining about space-tab.
32864# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32865# splitting by setting IFS to empty value.)
32866as_nl='
32867'
32868IFS=" "" $as_nl"
32869
32870# Find who we are. Look in the path if we contain no directory separator.
32871case $0 in
32872 *[\\/]* ) as_myself=$0 ;;
32873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000032874for as_dir in $PATH
32875do
32876 IFS=$as_save_IFS
32877 test -z "$as_dir" && as_dir=.
32878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32879done
Reid Spencera773bd52006-08-04 18:18:08 +000032880IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000032881
Reid Spencera773bd52006-08-04 18:18:08 +000032882 ;;
32883esac
32884# We did not find ourselves, most probably we were run as `sh COMMAND'
32885# in which case we are not to be found in the path.
32886if test "x$as_myself" = x; then
32887 as_myself=$0
32888fi
32889if test ! -f "$as_myself"; then
32890 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32891 { (exit 1); exit 1; }
32892fi
32893
32894# Work around bugs in pre-3.0 UWIN ksh.
32895for as_var in ENV MAIL MAILPATH
32896do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32897done
32898PS1='$ '
32899PS2='> '
32900PS4='+ '
32901
32902# NLS nuisances.
32903for as_var in \
32904 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32905 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32906 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000032907do
Reid Spencera773bd52006-08-04 18:18:08 +000032908 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32909 eval $as_var=C; export $as_var
32910 else
32911 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32912 fi
32913done
32914
32915# Required to use basename.
32916if expr a : '\(a\)' >/dev/null 2>&1 &&
32917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32918 as_expr=expr
32919else
32920 as_expr=false
32921fi
32922
32923if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32924 as_basename=basename
32925else
32926 as_basename=false
32927fi
32928
32929
32930# Name of the executable.
32931as_me=`$as_basename -- "$0" ||
32932$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32933 X"$0" : 'X\(//\)$' \| \
32934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32935echo X/"$0" |
32936 sed '/^.*\/\([^/][^/]*\)\/*$/{
32937 s//\1/
32938 q
32939 }
32940 /^X\/\(\/\/\)$/{
32941 s//\1/
32942 q
32943 }
32944 /^X\/\(\/\).*/{
32945 s//\1/
32946 q
32947 }
32948 s/.*/./; q'`
32949
32950# CDPATH.
32951$as_unset CDPATH
32952
32953
32954
John Criswell7a73b802003-06-30 21:59:07 +000032955 as_lineno_1=$LINENO
32956 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000032957 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000032958 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000032959
32960 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32961 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000032962 # line-number line after each line using $LINENO; the second 'sed'
32963 # does the real work. The second script uses 'N' to pair each
32964 # line-number line with the line containing $LINENO, and appends
32965 # trailing '-' during substitution so that $LINENO is not a special
32966 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000032967 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000032968 # scripts with optimization help from Paolo Bonzini. Blame Lee
32969 # E. McMahon (1931-1989) for sed's syntax. :-)
32970 sed -n '
32971 p
32972 /[$]LINENO/=
32973 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000032974 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000032975 s/[$]LINENO.*/&-/
32976 t lineno
32977 b
32978 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000032979 N
Reid Spencera773bd52006-08-04 18:18:08 +000032980 :loop
32981 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000032982 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000032983 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000032984 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000032985 chmod +x "$as_me.lineno" ||
32986 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000032987 { (exit 1); exit 1; }; }
32988
32989 # Don't try to exec as it changes $[0], causing all sort of problems
32990 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000032991 # original and so on. Autoconf is especially sensitive to this).
32992 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000032993 # Exit status is that of the last command.
32994 exit
32995}
32996
32997
Reid Spencera773bd52006-08-04 18:18:08 +000032998if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32999 as_dirname=dirname
33000else
33001 as_dirname=false
33002fi
33003
33004ECHO_C= ECHO_N= ECHO_T=
33005case `echo -n x` in
33006-n*)
33007 case `echo 'x\c'` in
33008 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33009 *) ECHO_C='\c';;
33010 esac;;
33011*)
33012 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033013esac
33014
Reid Spencera773bd52006-08-04 18:18:08 +000033015if expr a : '\(a\)' >/dev/null 2>&1 &&
33016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033017 as_expr=expr
33018else
33019 as_expr=false
33020fi
33021
33022rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033023if test -d conf$$.dir; then
33024 rm -f conf$$.dir/conf$$.file
33025else
33026 rm -f conf$$.dir
33027 mkdir conf$$.dir
33028fi
John Criswell7a73b802003-06-30 21:59:07 +000033029echo >conf$$.file
33030if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033031 as_ln_s='ln -s'
33032 # ... but there are two gotchas:
33033 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33034 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33035 # In both cases, we have to default to `cp -p'.
33036 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033037 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033038elif ln conf$$.file conf$$ 2>/dev/null; then
33039 as_ln_s=ln
33040else
33041 as_ln_s='cp -p'
33042fi
Reid Spencera773bd52006-08-04 18:18:08 +000033043rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33044rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033045
John Criswell0c38eaf2003-09-10 15:17:25 +000033046if mkdir -p . 2>/dev/null; then
33047 as_mkdir_p=:
33048else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033049 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033050 as_mkdir_p=false
33051fi
33052
Nick Lewycky2ab1d862009-01-20 00:52:24 +000033053if test -x / >/dev/null 2>&1; then
33054 as_test_x='test -x'
Reid Spencera773bd52006-08-04 18:18:08 +000033055else
Nick Lewycky2ab1d862009-01-20 00:52:24 +000033056 if ls -dL / >/dev/null 2>&1; then
33057 as_ls_L_option=L
33058 else
33059 as_ls_L_option=
33060 fi
33061 as_test_x='
33062 eval sh -c '\''
33063 if test -d "$1"; then
33064 test -d "$1/.";
33065 else
33066 case $1 in
33067 -*)set "./$1";;
33068 esac;
33069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33070 ???[sx]*):;;*)false;;esac;fi
33071 '\'' sh
33072 '
Reid Spencera773bd52006-08-04 18:18:08 +000033073fi
Nick Lewycky2ab1d862009-01-20 00:52:24 +000033074as_executable_p=$as_test_x
John Criswell7a73b802003-06-30 21:59:07 +000033075
33076# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033077as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033078
33079# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033080as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033081
33082
John Criswell7a73b802003-06-30 21:59:07 +000033083exec 6>&1
33084
Reid Spencera773bd52006-08-04 18:18:08 +000033085# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033086# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033087# values after options handling.
33088ac_log="
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000033089This file was extended by llvm $as_me 2.5svn, which was
Nick Lewycky2ab1d862009-01-20 00:52:24 +000033090generated by GNU Autoconf 2.61. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033091
33092 CONFIG_FILES = $CONFIG_FILES
33093 CONFIG_HEADERS = $CONFIG_HEADERS
33094 CONFIG_LINKS = $CONFIG_LINKS
33095 CONFIG_COMMANDS = $CONFIG_COMMANDS
33096 $ $0 $@
33097
Reid Spencera773bd52006-08-04 18:18:08 +000033098on `(hostname || uname -n) 2>/dev/null | sed 1q`
33099"
33100
John Criswell7a73b802003-06-30 21:59:07 +000033101_ACEOF
33102
Reid Spencera773bd52006-08-04 18:18:08 +000033103cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033104# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000033105config_files="$ac_config_files"
33106config_headers="$ac_config_headers"
33107config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000033108
Reid Spencera773bd52006-08-04 18:18:08 +000033109_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033110
33111cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033112ac_cs_usage="\
33113\`$as_me' instantiates files from templates according to the
33114current configuration.
33115
33116Usage: $0 [OPTIONS] [FILE]...
33117
33118 -h, --help print this help, then exit
Nick Lewycky2ab1d862009-01-20 00:52:24 +000033119 -V, --version print version number and configuration settings, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000033120 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000033121 -d, --debug don't remove temporary files
33122 --recheck update $as_me by reconfiguring in the same conditions
33123 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033124 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000033125 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033126 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000033127
33128Configuration files:
33129$config_files
33130
33131Configuration headers:
33132$config_headers
33133
John Criswellc764fbc2003-09-06 15:17:13 +000033134Configuration commands:
33135$config_commands
33136
John Criswell7a73b802003-06-30 21:59:07 +000033137Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000033138
Reid Spencera773bd52006-08-04 18:18:08 +000033139_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033140cat >>$CONFIG_STATUS <<_ACEOF
33141ac_cs_version="\\
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000033142llvm config.status 2.5svn
Nick Lewycky2ab1d862009-01-20 00:52:24 +000033143configured by $0, generated by GNU Autoconf 2.61,
Reid Spencera773bd52006-08-04 18:18:08 +000033144 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000033145
Reid Spencera773bd52006-08-04 18:18:08 +000033146Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000033147This config.status script is free software; the Free Software Foundation
33148gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000033149
33150ac_pwd='$ac_pwd'
33151srcdir='$srcdir'
33152INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000033153_ACEOF
33154
33155cat >>$CONFIG_STATUS <<\_ACEOF
33156# If no file are specified by the user, then we need to provide default
33157# value. By we need to know if files were specified by the user.
33158ac_need_defaults=:
33159while test $# != 0
33160do
33161 case $1 in
33162 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000033163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33164 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000033165 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000033166 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033167 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000033168 ac_option=$1
33169 ac_optarg=$2
33170 ac_shift=shift
33171 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033172 esac
33173
John Criswell0c38eaf2003-09-10 15:17:25 +000033174 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000033175 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000033176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33177 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033178 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33179 echo "$ac_cs_version"; exit ;;
33180 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000033181 debug=: ;;
33182 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000033183 $ac_shift
33184 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033185 ac_need_defaults=false;;
33186 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000033187 $ac_shift
33188 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033189 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000033190 --he | --h)
33191 # Conflict between --help and --header
33192 { echo "$as_me: error: ambiguous option: $1
33193Try \`$0 --help' for more information." >&2
33194 { (exit 1); exit 1; }; };;
33195 --help | --hel | -h )
33196 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000033197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33198 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33199 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000033200
33201 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000033202 -*) { echo "$as_me: error: unrecognized option: $1
33203Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033204 { (exit 1); exit 1; }; } ;;
33205
Reid Spencera773bd52006-08-04 18:18:08 +000033206 *) ac_config_targets="$ac_config_targets $1"
33207 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000033208
33209 esac
33210 shift
33211done
33212
John Criswell0c38eaf2003-09-10 15:17:25 +000033213ac_configure_extra_args=
33214
33215if $ac_cs_silent; then
33216 exec 6>/dev/null
33217 ac_configure_extra_args="$ac_configure_extra_args --silent"
33218fi
33219
33220_ACEOF
33221cat >>$CONFIG_STATUS <<_ACEOF
33222if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000033223 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33224 CONFIG_SHELL=$SHELL
33225 export CONFIG_SHELL
33226 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000033227fi
33228
John Criswell7a73b802003-06-30 21:59:07 +000033229_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033230cat >>$CONFIG_STATUS <<\_ACEOF
33231exec 5>>config.log
33232{
33233 echo
33234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33235## Running $as_me. ##
33236_ASBOX
33237 echo "$ac_log"
33238} >&5
John Criswell7a73b802003-06-30 21:59:07 +000033239
Reid Spencera773bd52006-08-04 18:18:08 +000033240_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000033241cat >>$CONFIG_STATUS <<_ACEOF
33242#
Reid Spencera773bd52006-08-04 18:18:08 +000033243# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000033244#
Reid Spencerc0682832005-02-24 19:05:19 +000033245llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000033246
33247_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033248
John Criswell7a73b802003-06-30 21:59:07 +000033249cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033250
33251# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000033252for ac_config_target in $ac_config_targets
33253do
Reid Spencera773bd52006-08-04 18:18:08 +000033254 case $ac_config_target in
33255 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33256 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000033257 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
33258 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
33259 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033260 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000033261 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033262 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
33263 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
33264 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
33265 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
33266 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
33267 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
33268 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000033269 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033270 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
33271 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000033272 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033273 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
33274 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
33275 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000033276 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
33277 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033278
John Criswell7a73b802003-06-30 21:59:07 +000033279 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33280echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33281 { (exit 1); exit 1; }; };;
33282 esac
33283done
33284
Reid Spencera773bd52006-08-04 18:18:08 +000033285
John Criswell7a73b802003-06-30 21:59:07 +000033286# If the user did not use the arguments to specify the items to instantiate,
33287# then the envvar interface is used. Set only those that are not.
33288# We use the long form for the default assignment because of an extremely
33289# bizarre bug on SunOS 4.1.3.
33290if $ac_need_defaults; then
33291 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33292 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000033293 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000033294fi
33295
John Criswell0c38eaf2003-09-10 15:17:25 +000033296# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000033297# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000033298# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000033299# Hook for its removal unless debugging.
33300# Note that there is a small window in which the directory will not be cleaned:
33301# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000033302$debug ||
33303{
Reid Spencera773bd52006-08-04 18:18:08 +000033304 tmp=
33305 trap 'exit_status=$?
33306 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33307' 0
John Criswell7a73b802003-06-30 21:59:07 +000033308 trap '{ (exit 1); exit 1; }' 1 2 13 15
33309}
John Criswell7a73b802003-06-30 21:59:07 +000033310# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000033311
John Criswell7a73b802003-06-30 21:59:07 +000033312{
Reid Spencera773bd52006-08-04 18:18:08 +000033313 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000033314 test -n "$tmp" && test -d "$tmp"
33315} ||
33316{
Reid Spencera773bd52006-08-04 18:18:08 +000033317 tmp=./conf$$-$RANDOM
33318 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000033319} ||
33320{
John Criswell0c38eaf2003-09-10 15:17:25 +000033321 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033322 { (exit 1); exit 1; }
33323}
33324
John Criswell7a73b802003-06-30 21:59:07 +000033325#
Reid Spencera773bd52006-08-04 18:18:08 +000033326# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000033327#
33328
33329# No need to generate the scripts if there are no CONFIG_FILES.
33330# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000033331if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000033332
33333_ACEOF
33334
Reid Spencera773bd52006-08-04 18:18:08 +000033335
33336
33337ac_delim='%!_!# '
33338for ac_last_try in false false false false false :; do
33339 cat >conf$$subs.sed <<_ACEOF
33340SHELL!$SHELL$ac_delim
33341PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33342PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33343PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33344PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33345PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33346PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33347exec_prefix!$exec_prefix$ac_delim
33348prefix!$prefix$ac_delim
33349program_transform_name!$program_transform_name$ac_delim
33350bindir!$bindir$ac_delim
33351sbindir!$sbindir$ac_delim
33352libexecdir!$libexecdir$ac_delim
33353datarootdir!$datarootdir$ac_delim
33354datadir!$datadir$ac_delim
33355sysconfdir!$sysconfdir$ac_delim
33356sharedstatedir!$sharedstatedir$ac_delim
33357localstatedir!$localstatedir$ac_delim
33358includedir!$includedir$ac_delim
33359oldincludedir!$oldincludedir$ac_delim
33360docdir!$docdir$ac_delim
33361infodir!$infodir$ac_delim
33362htmldir!$htmldir$ac_delim
33363dvidir!$dvidir$ac_delim
33364pdfdir!$pdfdir$ac_delim
33365psdir!$psdir$ac_delim
33366libdir!$libdir$ac_delim
33367localedir!$localedir$ac_delim
33368mandir!$mandir$ac_delim
33369DEFS!$DEFS$ac_delim
33370ECHO_C!$ECHO_C$ac_delim
33371ECHO_N!$ECHO_N$ac_delim
33372ECHO_T!$ECHO_T$ac_delim
33373LIBS!$LIBS$ac_delim
33374build_alias!$build_alias$ac_delim
33375host_alias!$host_alias$ac_delim
33376target_alias!$target_alias$ac_delim
33377LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
33378subdirs!$subdirs$ac_delim
33379build!$build$ac_delim
33380build_cpu!$build_cpu$ac_delim
33381build_vendor!$build_vendor$ac_delim
33382build_os!$build_os$ac_delim
33383host!$host$ac_delim
33384host_cpu!$host_cpu$ac_delim
33385host_vendor!$host_vendor$ac_delim
33386host_os!$host_os$ac_delim
33387target!$target$ac_delim
33388target_cpu!$target_cpu$ac_delim
33389target_vendor!$target_vendor$ac_delim
33390target_os!$target_os$ac_delim
33391OS!$OS$ac_delim
33392LINKALL!$LINKALL$ac_delim
33393NOLINKALL!$NOLINKALL$ac_delim
33394LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
33395LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
33396ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000033397ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033398CC!$CC$ac_delim
33399CFLAGS!$CFLAGS$ac_delim
33400LDFLAGS!$LDFLAGS$ac_delim
33401CPPFLAGS!$CPPFLAGS$ac_delim
33402ac_ct_CC!$ac_ct_CC$ac_delim
33403EXEEXT!$EXEEXT$ac_delim
33404OBJEXT!$OBJEXT$ac_delim
33405CPP!$CPP$ac_delim
33406GREP!$GREP$ac_delim
33407EGREP!$EGREP$ac_delim
33408LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
33409BUILD_CC!$BUILD_CC$ac_delim
33410BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000033411BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033412CVSBUILD!$CVSBUILD$ac_delim
33413ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
33414DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000033415ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
33416EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000033417DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033418JIT!$JIT$ac_delim
33419TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
33420ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
33421ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000033422ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033423TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000033424ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033425EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
33426CXX!$CXX$ac_delim
33427CXXFLAGS!$CXXFLAGS$ac_delim
33428ac_ct_CXX!$ac_ct_CXX$ac_delim
33429LEX!$LEX$ac_delim
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033430LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Nick Lewycky2ab1d862009-01-20 00:52:24 +000033431LEXLIB!$LEXLIB$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033432FLEX!$FLEX$ac_delim
33433YACC!$YACC$ac_delim
33434YFLAGS!$YFLAGS$ac_delim
33435BISON!$BISON$ac_delim
33436NM!$NM$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033437_ACEOF
33438
33439 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33440 break
33441 elif $ac_last_try; then
33442 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33443echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33444 { (exit 1); exit 1; }; }
33445 else
33446 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000033447 fi
Reid Spencera773bd52006-08-04 18:18:08 +000033448done
33449
33450ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33451if test -n "$ac_eof"; then
33452 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33453 ac_eof=`expr $ac_eof + 1`
33454fi
33455
33456cat >>$CONFIG_STATUS <<_ACEOF
33457cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33458/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33459_ACEOF
33460sed '
33461s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33462s/^/s,@/; s/!/@,|#_!!_#|/
33463:n
33464t n
33465s/'"$ac_delim"'$/,g/; t
33466s/$/\\/; p
33467N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33468' >>$CONFIG_STATUS <conf$$subs.sed
33469rm -f conf$$subs.sed
33470cat >>$CONFIG_STATUS <<_ACEOF
33471CEOF$ac_eof
33472_ACEOF
33473
33474
33475ac_delim='%!_!# '
33476for ac_last_try in false false false false false :; do
33477 cat >conf$$subs.sed <<_ACEOF
Jim Grosbach673612e2008-10-02 22:56:44 +000033478ifGNUmake!$ifGNUmake$ac_delim
David Greenea696d242007-06-28 19:36:08 +000033479LN_S!$LN_S$ac_delim
33480CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000033481CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000033482DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033483FIND!$FIND$ac_delim
33484MKDIR!$MKDIR$ac_delim
33485MV!$MV$ac_delim
33486RANLIB!$RANLIB$ac_delim
33487RM!$RM$ac_delim
33488SED!$SED$ac_delim
33489TAR!$TAR$ac_delim
33490BINPWD!$BINPWD$ac_delim
33491GRAPHVIZ!$GRAPHVIZ$ac_delim
33492DOT!$DOT$ac_delim
33493GV!$GV$ac_delim
33494DOTTY!$DOTTY$ac_delim
33495PERL!$PERL$ac_delim
33496HAVE_PERL!$HAVE_PERL$ac_delim
33497INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33498INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33499INSTALL_DATA!$INSTALL_DATA$ac_delim
33500BZIP2!$BZIP2$ac_delim
33501DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033502GROFF!$GROFF$ac_delim
33503GZIP!$GZIP$ac_delim
33504POD2HTML!$POD2HTML$ac_delim
33505POD2MAN!$POD2MAN$ac_delim
33506RUNTEST!$RUNTEST$ac_delim
33507TCLSH!$TCLSH$ac_delim
33508ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000033509OCAMLC!$OCAMLC$ac_delim
33510OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000033511OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000033512OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000033513GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033514INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
33515INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
33516CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
33517CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
33518LIBADD_DL!$LIBADD_DL$ac_delim
33519ECHO!$ECHO$ac_delim
33520AR!$AR$ac_delim
33521STRIP!$STRIP$ac_delim
33522CXXCPP!$CXXCPP$ac_delim
33523F77!$F77$ac_delim
33524FFLAGS!$FFLAGS$ac_delim
33525ac_ct_F77!$ac_ct_F77$ac_delim
33526LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033527LLVMGCC!$LLVMGCC$ac_delim
33528LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000033529USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000033530HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000033531HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033532ALLOCA!$ALLOCA$ac_delim
33533MMAP_FILE!$MMAP_FILE$ac_delim
33534LLVMCC1!$LLVMCC1$ac_delim
33535LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
33536LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000033537LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033538LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
33539LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000033540LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033541SHLIBEXT!$SHLIBEXT$ac_delim
33542LLVM_PREFIX!$LLVM_PREFIX$ac_delim
33543LLVM_BINDIR!$LLVM_BINDIR$ac_delim
33544LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
33545LLVM_DATADIR!$LLVM_DATADIR$ac_delim
33546LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
33547LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
33548LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
33549LLVM_INFODIR!$LLVM_INFODIR$ac_delim
33550LLVM_MANDIR!$LLVM_MANDIR$ac_delim
33551LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000033552BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
33553ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000033554OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033555ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000033556LIBOBJS!$LIBOBJS$ac_delim
33557LTLIBOBJS!$LTLIBOBJS$ac_delim
33558_ACEOF
33559
Torok Edwincc499a42008-10-22 09:56:27 +000033560 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
Reid Spencera773bd52006-08-04 18:18:08 +000033561 break
33562 elif $ac_last_try; then
33563 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33564echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33565 { (exit 1); exit 1; }; }
33566 else
33567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33568 fi
33569done
33570
33571ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33572if test -n "$ac_eof"; then
33573 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33574 ac_eof=`expr $ac_eof + 1`
33575fi
33576
33577cat >>$CONFIG_STATUS <<_ACEOF
33578cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33579/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33580_ACEOF
33581sed '
33582s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33583s/^/s,@/; s/!/@,|#_!!_#|/
33584:n
33585t n
33586s/'"$ac_delim"'$/,g/; t
33587s/$/\\/; p
33588N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33589' >>$CONFIG_STATUS <conf$$subs.sed
33590rm -f conf$$subs.sed
33591cat >>$CONFIG_STATUS <<_ACEOF
33592:end
33593s/|#_!!_#|//g
33594CEOF$ac_eof
33595_ACEOF
33596
33597
33598# VPATH may cause trouble with some makes, so we remove $(srcdir),
33599# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33600# trailing colons and then remove the whole line if VPATH becomes empty
33601# (actually we leave an empty line to preserve line numbers).
33602if test "x$srcdir" = x.; then
33603 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33604s/:*\$(srcdir):*/:/
33605s/:*\${srcdir}:*/:/
33606s/:*@srcdir@:*/:/
33607s/^\([^=]*=[ ]*\):*/\1/
33608s/:*$//
33609s/^[^=]*=[ ]*$//
33610}'
33611fi
33612
33613cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033614fi # test -n "$CONFIG_FILES"
33615
Reid Spencera773bd52006-08-04 18:18:08 +000033616
33617for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
33618do
33619 case $ac_tag in
33620 :[FHLC]) ac_mode=$ac_tag; continue;;
33621 esac
33622 case $ac_mode$ac_tag in
33623 :[FHL]*:*);;
33624 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33625echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33626 { (exit 1); exit 1; }; };;
33627 :[FH]-) ac_tag=-:-;;
33628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33629 esac
33630 ac_save_IFS=$IFS
33631 IFS=:
33632 set x $ac_tag
33633 IFS=$ac_save_IFS
33634 shift
33635 ac_file=$1
33636 shift
33637
33638 case $ac_mode in
33639 :L) ac_source=$1;;
33640 :[FH])
33641 ac_file_inputs=
33642 for ac_f
33643 do
33644 case $ac_f in
33645 -) ac_f="$tmp/stdin";;
33646 *) # Look for the file first in the build tree, then in the source tree
33647 # (if the path is not absolute). The absolute path cannot be DOS-style,
33648 # because $ac_f cannot contain `:'.
33649 test -f "$ac_f" ||
33650 case $ac_f in
33651 [\\/$]*) false;;
33652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33653 esac ||
33654 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33655echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33656 { (exit 1); exit 1; }; };;
33657 esac
33658 ac_file_inputs="$ac_file_inputs $ac_f"
33659 done
33660
33661 # Let's still pretend it is `configure' which instantiates (i.e., don't
33662 # use $as_me), people would be surprised to read:
33663 # /* config.h. Generated by config.status. */
33664 configure_input="Generated from "`IFS=:
33665 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33666 if test x"$ac_file" != x-; then
33667 configure_input="$ac_file. $configure_input"
33668 { echo "$as_me:$LINENO: creating $ac_file" >&5
33669echo "$as_me: creating $ac_file" >&6;}
33670 fi
33671
33672 case $ac_tag in
33673 *:-:* | *:-) cat >"$tmp/stdin";;
33674 esac
33675 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033676 esac
33677
Reid Spencera773bd52006-08-04 18:18:08 +000033678 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000033679$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033680 X"$ac_file" : 'X\(//\)[^/]' \| \
33681 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000033683echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000033684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33685 s//\1/
33686 q
33687 }
33688 /^X\(\/\/\)[^/].*/{
33689 s//\1/
33690 q
33691 }
33692 /^X\(\/\/\)$/{
33693 s//\1/
33694 q
33695 }
33696 /^X\(\/\).*/{
33697 s//\1/
33698 q
33699 }
33700 s/.*/./; q'`
33701 { as_dir="$ac_dir"
33702 case $as_dir in #(
33703 -*) as_dir=./$as_dir;;
33704 esac
33705 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000033706 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000033707 while :; do
33708 case $as_dir in #(
33709 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33710 *) as_qdir=$as_dir;;
33711 esac
33712 as_dirs="'$as_qdir' $as_dirs"
33713 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033714$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033715 X"$as_dir" : 'X\(//\)[^/]' \| \
33716 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000033717 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000033718echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000033719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33720 s//\1/
33721 q
33722 }
33723 /^X\(\/\/\)[^/].*/{
33724 s//\1/
33725 q
33726 }
33727 /^X\(\/\/\)$/{
33728 s//\1/
33729 q
33730 }
33731 /^X\(\/\).*/{
33732 s//\1/
33733 q
33734 }
33735 s/.*/./; q'`
33736 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000033737 done
Reid Spencera773bd52006-08-04 18:18:08 +000033738 test -z "$as_dirs" || eval "mkdir $as_dirs"
33739 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33740echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000033741 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000033742 ac_builddir=.
33743
Reid Spencera773bd52006-08-04 18:18:08 +000033744case "$ac_dir" in
33745.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33746*)
John Criswell7a73b802003-06-30 21:59:07 +000033747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000033748 # A ".." for each directory in $ac_dir_suffix.
33749 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33750 case $ac_top_builddir_sub in
33751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33753 esac ;;
33754esac
33755ac_abs_top_builddir=$ac_pwd
33756ac_abs_builddir=$ac_pwd$ac_dir_suffix
33757# for backward compatibility:
33758ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000033759
33760case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000033761 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000033762 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000033763 ac_top_srcdir=$ac_top_builddir_sub
33764 ac_abs_top_srcdir=$ac_pwd ;;
33765 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000033766 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000033767 ac_top_srcdir=$srcdir
33768 ac_abs_top_srcdir=$srcdir ;;
33769 *) # Relative name.
33770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33771 ac_top_srcdir=$ac_top_build_prefix$srcdir
33772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000033773esac
Reid Spencera773bd52006-08-04 18:18:08 +000033774ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000033775
John Criswell7a73b802003-06-30 21:59:07 +000033776
Reid Spencera773bd52006-08-04 18:18:08 +000033777 case $ac_mode in
33778 :F)
33779 #
33780 # CONFIG_FILE
33781 #
John Criswell7a73b802003-06-30 21:59:07 +000033782
33783 case $INSTALL in
33784 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033785 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000033786 esac
John Criswell7a73b802003-06-30 21:59:07 +000033787_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033788
33789cat >>$CONFIG_STATUS <<\_ACEOF
33790# If the template does not know about datarootdir, expand it.
33791# FIXME: This hack should be removed a few years after 2.60.
33792ac_datarootdir_hack=; ac_datarootdir_seen=
33793
33794case `sed -n '/datarootdir/ {
33795 p
33796 q
33797}
33798/@datadir@/p
33799/@docdir@/p
33800/@infodir@/p
33801/@localedir@/p
33802/@mandir@/p
33803' $ac_file_inputs` in
33804*datarootdir*) ac_datarootdir_seen=yes;;
33805*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33806 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33807echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33808_ACEOF
33809cat >>$CONFIG_STATUS <<_ACEOF
33810 ac_datarootdir_hack='
33811 s&@datadir@&$datadir&g
33812 s&@docdir@&$docdir&g
33813 s&@infodir@&$infodir&g
33814 s&@localedir@&$localedir&g
33815 s&@mandir@&$mandir&g
33816 s&\\\${datarootdir}&$datarootdir&g' ;;
33817esac
33818_ACEOF
33819
33820# Neutralize VPATH when `$srcdir' = `.'.
33821# Shell code in configure.ac might set extrasub.
33822# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000033823cat >>$CONFIG_STATUS <<_ACEOF
33824 sed "$ac_vpsub
33825$extrasub
33826_ACEOF
33827cat >>$CONFIG_STATUS <<\_ACEOF
33828:t
33829/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000033830s&@configure_input@&$configure_input&;t t
33831s&@top_builddir@&$ac_top_builddir_sub&;t t
33832s&@srcdir@&$ac_srcdir&;t t
33833s&@abs_srcdir@&$ac_abs_srcdir&;t t
33834s&@top_srcdir@&$ac_top_srcdir&;t t
33835s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33836s&@builddir@&$ac_builddir&;t t
33837s&@abs_builddir@&$ac_abs_builddir&;t t
33838s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33839s&@INSTALL@&$ac_INSTALL&;t t
33840$ac_datarootdir_hack
33841" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000033842
Reid Spencera773bd52006-08-04 18:18:08 +000033843test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33844 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33846 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33847which seems to be undefined. Please make sure it is defined." >&5
33848echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33849which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000033850
Reid Spencera773bd52006-08-04 18:18:08 +000033851 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000033852 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000033853 -) cat "$tmp/out"; rm -f "$tmp/out";;
33854 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000033855 esac
Reid Spencera773bd52006-08-04 18:18:08 +000033856 ;;
33857 :H)
33858 #
33859 # CONFIG_HEADER
33860 #
John Criswell7a73b802003-06-30 21:59:07 +000033861_ACEOF
33862
Reid Spencera773bd52006-08-04 18:18:08 +000033863# Transform confdefs.h into a sed script `conftest.defines', that
33864# substitutes the proper values into config.h.in to produce config.h.
33865rm -f conftest.defines conftest.tail
33866# First, append a space to every undef/define line, to ease matching.
33867echo 's/$/ /' >conftest.defines
33868# Then, protect against being on the right side of a sed subst, or in
33869# an unquoted here document, in config.status. If some macros were
33870# called several times there might be several #defines for the same
33871# symbol, which is useless. But do not sort them, since the last
33872# AC_DEFINE must be honored.
33873ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33874# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33875# NAME is the cpp macro being defined, VALUE is the value it is being given.
33876# PARAMS is the parameter list in the macro definition--in most cases, it's
33877# just an empty string.
33878ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33879ac_dB='\\)[ (].*,\\1define\\2'
33880ac_dC=' '
33881ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000033882
Reid Spencera773bd52006-08-04 18:18:08 +000033883uniq confdefs.h |
33884 sed -n '
33885 t rset
33886 :rset
33887 s/^[ ]*#[ ]*define[ ][ ]*//
33888 t ok
33889 d
33890 :ok
33891 s/[\\&,]/\\&/g
33892 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33893 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33894 ' >>conftest.defines
33895
33896# Remove the space that was appended to ease matching.
33897# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000033898# example, in the case of _POSIX_SOURCE, which is predefined and required
33899# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000033900# (The regexp can be short, since the line contains either #define or #undef.)
33901echo 's/ $//
33902s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000033903
Reid Spencera773bd52006-08-04 18:18:08 +000033904# Break up conftest.defines:
33905ac_max_sed_lines=50
33906
33907# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33908# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33909# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33910# et cetera.
33911ac_in='$ac_file_inputs'
33912ac_out='"$tmp/out1"'
33913ac_nxt='"$tmp/out2"'
33914
33915while :
John Criswell7a73b802003-06-30 21:59:07 +000033916do
Reid Spencera773bd52006-08-04 18:18:08 +000033917 # Write a here document:
33918 cat >>$CONFIG_STATUS <<_ACEOF
33919 # First, check the format of the line:
33920 cat >"\$tmp/defines.sed" <<\\CEOF
33921/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33922/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33923b
33924:def
33925_ACEOF
33926 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033927 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033928 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33929 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33930 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33931 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000033932 rm -f conftest.defines
33933 mv conftest.tail conftest.defines
33934done
Reid Spencera773bd52006-08-04 18:18:08 +000033935rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000033936
Reid Spencera773bd52006-08-04 18:18:08 +000033937echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000033938cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033939 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000033940 echo "/* $configure_input */" >"$tmp/config.h"
33941 cat "$ac_result" >>"$tmp/config.h"
33942 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033943 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33944echo "$as_me: $ac_file is unchanged" >&6;}
33945 else
John Criswell7a73b802003-06-30 21:59:07 +000033946 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000033947 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000033948 fi
33949 else
Reid Spencera773bd52006-08-04 18:18:08 +000033950 echo "/* $configure_input */"
33951 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000033952 fi
Reid Spencera773bd52006-08-04 18:18:08 +000033953 rm -f "$tmp/out12"
33954 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033955
Reid Spencera773bd52006-08-04 18:18:08 +000033956 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33957echo "$as_me: executing $ac_file commands" >&6;}
33958 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000033959 esac
John Criswell7a73b802003-06-30 21:59:07 +000033960
Reid Spencera773bd52006-08-04 18:18:08 +000033961
33962 case $ac_file$ac_mode in
33963 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33964 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33965 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33966 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33967 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33968 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33969 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33970 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000033971 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33972 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033973 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33974 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33975 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33976 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000033977 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
33978 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033979 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33980 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33981 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33982 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33983 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33984 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000033985 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33986 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33987 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33988 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033989
33990 esac
33991done # for ac_tag
33992
John Criswell7a73b802003-06-30 21:59:07 +000033993
33994{ (exit 0); exit 0; }
33995_ACEOF
33996chmod +x $CONFIG_STATUS
33997ac_clean_files=$ac_clean_files_save
33998
33999
34000# configure is writing to config.log, and then calls config.status.
34001# config.status does its own redirection, appending to config.log.
34002# Unfortunately, on DOS this fails, as config.log is still kept open
34003# by configure, so config.status won't be able to write to it; its
34004# output is simply discarded. So we exec the FD to /dev/null,
34005# effectively closing config.log, so it can be properly (re)opened and
34006# appended to by config.status. When coming back to configure, we
34007# need to make the FD available again.
34008if test "$no_create" != yes; then
34009 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034010 ac_config_status_args=
34011 test "$silent" = yes &&
34012 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034013 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034015 exec 5>>config.log
34016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34017 # would make configure fail if this is the last instruction.
34018 $ac_cs_success || { (exit 1); exit 1; }
34019fi
34020
John Criswell12399a12003-09-30 15:55:44 +000034021#
34022# CONFIG_SUBDIRS section.
34023#
34024if test "$no_recursion" != yes; then
34025
34026 # Remove --cache-file and --srcdir arguments so they do not pile up.
34027 ac_sub_configure_args=
34028 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034029 eval "set x $ac_configure_args"
34030 shift
34031 for ac_arg
34032 do
John Criswell12399a12003-09-30 15:55:44 +000034033 if test -n "$ac_prev"; then
34034 ac_prev=
34035 continue
34036 fi
34037 case $ac_arg in
34038 -cache-file | --cache-file | --cache-fil | --cache-fi \
34039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34040 ac_prev=cache_file ;;
34041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34043 | --c=*)
34044 ;;
34045 --config-cache | -C)
34046 ;;
34047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34048 ac_prev=srcdir ;;
34049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34050 ;;
34051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34052 ac_prev=prefix ;;
34053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34054 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034055 *)
34056 case $ac_arg in
34057 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34058 esac
34059 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034060 esac
34061 done
34062
34063 # Always prepend --prefix to ensure using the same prefix
34064 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034065 ac_arg="--prefix=$prefix"
34066 case $ac_arg in
34067 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34068 esac
Nick Lewycky2ab1d862009-01-20 00:52:24 +000034069 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34070
34071 # Pass --silent
34072 if test "$silent" = yes; then
34073 ac_sub_configure_args="--silent $ac_sub_configure_args"
34074 fi
John Criswell12399a12003-09-30 15:55:44 +000034075
34076 ac_popdir=`pwd`
34077 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34078
34079 # Do not complain, so a configure script can configure whichever
34080 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034081 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034082
Reid Spencera773bd52006-08-04 18:18:08 +000034083 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34084 echo "$as_me:$LINENO: $ac_msg" >&5
34085 echo "$ac_msg" >&6
34086 { as_dir="$ac_dir"
34087 case $as_dir in #(
34088 -*) as_dir=./$as_dir;;
34089 esac
34090 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034091 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034092 while :; do
34093 case $as_dir in #(
34094 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34095 *) as_qdir=$as_dir;;
34096 esac
34097 as_dirs="'$as_qdir' $as_dirs"
34098 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034099$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034100 X"$as_dir" : 'X\(//\)[^/]' \| \
34101 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034103echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34105 s//\1/
34106 q
34107 }
34108 /^X\(\/\/\)[^/].*/{
34109 s//\1/
34110 q
34111 }
34112 /^X\(\/\/\)$/{
34113 s//\1/
34114 q
34115 }
34116 /^X\(\/\).*/{
34117 s//\1/
34118 q
34119 }
34120 s/.*/./; q'`
34121 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000034122 done
Reid Spencera773bd52006-08-04 18:18:08 +000034123 test -z "$as_dirs" || eval "mkdir $as_dirs"
34124 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34125echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000034126 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000034127 ac_builddir=.
34128
Reid Spencera773bd52006-08-04 18:18:08 +000034129case "$ac_dir" in
34130.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34131*)
John Criswell12399a12003-09-30 15:55:44 +000034132 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034133 # A ".." for each directory in $ac_dir_suffix.
34134 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34135 case $ac_top_builddir_sub in
34136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34138 esac ;;
34139esac
34140ac_abs_top_builddir=$ac_pwd
34141ac_abs_builddir=$ac_pwd$ac_dir_suffix
34142# for backward compatibility:
34143ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000034144
34145case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034146 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000034147 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034148 ac_top_srcdir=$ac_top_builddir_sub
34149 ac_abs_top_srcdir=$ac_pwd ;;
34150 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000034151 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034152 ac_top_srcdir=$srcdir
34153 ac_abs_top_srcdir=$srcdir ;;
34154 *) # Relative name.
34155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34156 ac_top_srcdir=$ac_top_build_prefix$srcdir
34157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000034158esac
Reid Spencera773bd52006-08-04 18:18:08 +000034159ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000034160
34161
Reid Spencera773bd52006-08-04 18:18:08 +000034162 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000034163
34164 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000034165 if test -f "$ac_srcdir/configure.gnu"; then
34166 ac_sub_configure=$ac_srcdir/configure.gnu
34167 elif test -f "$ac_srcdir/configure"; then
34168 ac_sub_configure=$ac_srcdir/configure
34169 elif test -f "$ac_srcdir/configure.in"; then
34170 # This should be Cygnus configure.
34171 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000034172 else
34173 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34174echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34175 ac_sub_configure=
34176 fi
34177
34178 # The recursion is here.
34179 if test -n "$ac_sub_configure"; then
34180 # Make the cache file name correct relative to the subdirectory.
34181 case $cache_file in
34182 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034183 *) # Relative name.
34184 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000034185 esac
34186
Reid Spencera773bd52006-08-04 18:18:08 +000034187 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34188echo "$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 +000034189 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000034190 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34191 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000034192 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000034193echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34194 { (exit 1); exit 1; }; }
34195 fi
34196
Reid Spencera773bd52006-08-04 18:18:08 +000034197 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000034198 done
34199fi
34200